diff --git a/onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/ba446fda-d00e-4d31-bb64-53afa0808c13_content_list.json b/onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/ba446fda-d00e-4d31-bb64-53afa0808c13_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..671b774d972b13af13323d91a79aa9076ab63344
--- /dev/null
+++ b/onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/ba446fda-d00e-4d31-bb64-53afa0808c13_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2d8c3ba3abdc0cd9c153c5c5bbf4bd077e6a43b025a980d879d80392e83879c8
+size 79274
diff --git a/onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/ba446fda-d00e-4d31-bb64-53afa0808c13_model.json b/onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/ba446fda-d00e-4d31-bb64-53afa0808c13_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..099c7d9633a765aea9f767ee4e6da9335e59f292
--- /dev/null
+++ b/onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/ba446fda-d00e-4d31-bb64-53afa0808c13_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:50667f0a5de125b19a3acb8080a3ddfcf461d54b32b6eacabac9aabcb64ab9f4
+size 95482
diff --git a/onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/ba446fda-d00e-4d31-bb64-53afa0808c13_origin.pdf b/onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/ba446fda-d00e-4d31-bb64-53afa0808c13_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..ac4137eceb9e092aeb246ae23e546bb8c2a3aa57
--- /dev/null
+++ b/onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/ba446fda-d00e-4d31-bb64-53afa0808c13_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ab27414107ea5b9779db416ef0956df6911d89bbc4e4ebd422d3091852d1c73b
+size 2261554
diff --git a/onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/full.md b/onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..0f365eb424fd4b5abf50f3e91ff11f2ab2797a78
--- /dev/null
+++ b/onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/full.md
@@ -0,0 +1,341 @@
+# Online Joint Multi-Metric Adaptation from Frequent Sharing-Subset Mining for Person Re-Identification
+
+Jiahuan Zhou $^{1}$ , Bing Su $^{2}$ , Ying Wu $^{1}$
+
+$^{1}$ Department of Electrical and Computer Engineering, Northwestern University, US
+
+$^{2}$ Institute of Software, Chinese Academy of Science, China
+
+zhoujh09@gmail.com, subingats@gmail.com, yingwu@northwestern.edu
+
+# Abstract
+
+Person Re-Identification (P-RID), as an instance-level recognition problem, still remains challenging in computer vision community. Many P-RID works aim to learn faithful and discriminative features/metrics from offline training data and directly use them for the unseen online testing data. However, their performance is largely limited due to the severe data shifting issue between training and testing data. Therefore, we propose an online joint multi-metric adaptation model to adapt the offline learned P-RID models for the online data by learning a series of metrics for all the sharing-subsets. Each sharing-subset is obtained from the proposed novel frequent sharing-subset mining module and contains a group of testing samples which share strong visual similarity relationships to each other. Unlike existing online P-RID methods, our model simultaneously takes both the sample-specific discriminant and the set-based visual similarity among testing samples into consideration so that the adapted multiple metrics can refine the discriminant of all the given testing samples jointly via a multi-kernel late fusion framework. Our proposed model is generally suitable to any offline learned P-RID baselines for online boosting, the performance improvement by our model is not only verified by extensive experiments on several widely-used P-RID benchmarks (CUHK03, Market1501, DukeMTMCreID and MSMT17) and state-of-the-art P-RID baselines but also guaranteed by the provided in-depth theoretical analyses.
+
+# 1. Introduction
+
+Person Re-Identification (P-RID), aiming to retrieve the same identity images of a query probe from a gallery set, is not only an attractive research task in computer vision community, but also a critical link to the practical applications such as public camera surveillance. A popular solution to P-RID is to perform supervised feature/metric learn
+
+
+Figure 1. The normalized pair-wise distance distributions of both training and testing samples based on the well-trained HA-CNN model on Market1501 dataset demonstrate the severe training-testing data distribution shifting issue, where the extremely challenging hard negative distractors (in blue box) will significantly influence the retrieval accuracy (the Original top-10 retrieval results). Even using the state-of-the-art online re-ranking method [45] (RR), the ground-truth (in red box) still has a lower rank than the distractors. Our method succeeds in handling the distractors so that the true-match is successfully re-ranked to the top position in the list (Ours).
+
+ing [2, 29, 18, 30, 6, 40, 12] from the offline training data, then directly apply them to the online unsupervised testing data for evaluation. However, due to the severe training-testing data distribution shifting (testing data are drawn from totally different classes against the training data as shown in Fig. 1) caused by large variations in visual appearance, human pose, camera viewpoint, illumination change, and background clutter, the performance of offline learned models is limited indeed.
+
+The root of such a limited performance is its treatment regardless of the information of online testing data themselves. So a straightforward solution is adapting the offline learned models for the online testing data to narrow the distribution gap. Recently, various online P-RID methods are proposed which can be roughly categorized into two branches. The set-centric re-ranking approaches [35, 9, 43, 3, 1] focus on optimizing the ranking list of queries based on the similarity relationships among
+
+testing samples. Their performances totally rely on the offline learned models from training data while treat different testing samples equally ignoring the individual characteristics, hence the improvement is neither significant nor stable. The other category is query-specific metric adaptation [17, 38, 45] which aims to enhance the discriminant of each query individually. The generic offline learned metric is adapted to an instance-specific local metric for each query. Compared with the set-centric ones, the individual discriminant of queries is enhanced while the visual similarity relationships among given testing samples are ignored. Moreover, existing query-specific models [17, 38, 45] completely ignore the counterpart gallery data during adaptation. Even a discriminative probe-specific metric can be learned, the "hard" gallery samples with large intra-class and small inter-class variances will tremendously degrade its performance since they are still indistinguishable under the learned query-specific metric (Fig. 1).
+
+In order to tackle the aforementioned issues, we propose a novel online joint multi-metric adaptation algorithm which not only takes individual characteristics of testing samples into consideration but also fully explore the visual similarity relationships among both query and gallery samples. As shown by Fig. 2, at the online P-RID testing stage, the redundant intrinsic visual similarity relationships among unlabeled query (gallery) set are utilized by our proposed frequent sharing-subsets mining model to automatically mine the concise and strong visual sharing associations of samples. Since a sharing-subset contains a group of queries (galleries) sharing strong visual similarity to each other, their local distributions will be jointly adjusted by efficiently learning a Mahalanobis metric for all of them. Once a series of such kind of sharing-subset based Mahalanobis metrics are learned, for each query (gallery), its instance-specific local metric is obtained via a multimetric late fusion of all the sharing-subset based Mahalanobis metrics. Therefore, our proposed online joint Multi-Metric adaptation model based on the frequent sharing-subsets Mining (denoted as $\mathbf{M}^3$ ) is able to refine the ranking performance online. The success of learning from sharing relies on discovering the latent sharing relationships among samples, which cannot be found by treating each instance independently [4]. Learning from sharing is good at handling such condition that only a limited number of learning data are available by taking the sharing relationships as data augmentation. Therefore the sharing strategy is particularly suitable for online P-RID learning in where each testing sample itself is the only positive sample available for learning.
+
+The main contributions of this paper are as follows: (1) To handle the severe shifted training-testing data distribution issue in P-RID, we leap from offline global learning to online instance-specific metric adaptation. We propose
+
+a general and flexible learning objective to simultaneously enhance the local discriminant of testing query and gallery data. (2) By mining various frequent sharing-subsets, the intrinsic visual similarity sharing relationships are fully explored. Therefore the online time cost of learning metrics from sharing is much more smaller than learning local metrics independently. (3) To fulfill the time-efficient requirement of online testing, a theoretical sound optimization solution is proposed for efficient learning which is also proven to guarantee the improvement of performance. (4) Our proposed model can be readily applied to any existing offline P-RID baselines for online performance improvement. The efficiency and effectiveness of our method are further verified by the extensive experiments on four challenging P-RID benchmarks (CUHK03, Market1501, DukeMTMCreID and MSMT17) based on various state-of-the-art P-RID models.
+
+# 2. Related Work
+
+Online Re-Ranking in P-RID: In recent years, increasing efforts have been paid to online P-RID re-ranking. Ye et al. [35] revised the ranking list by considering the nearest neighbors of both the global and local features. An unsupervised re-ranking model proposed by Garcia et al. [9] takes advantage of the content and context information in the ranking list. Zhong et al. [43] proposed a $k$ -reciprocal encoding approach for re-ranking, which relies on a hypothesis that if a gallery image is similar to the probe in the $k$ -reciprocal nearest neighbors, it is more likely to be a true-match. Zhou et al. [45] proposed to learn an instance-specific Mahalanobis metric for each query sample by using extra negative learning samples at online stage. Barman et al. [3] focused on how to make a consensus-based decision for retrieval by aggregating the ranking results from multiple algorithms, only the matching scores are needed. Bai et al. [1] concentrated on re-ranking with the capacity of metric fusion for P-RID by proposing an Unified Ensemble Diffusion (UED) framework. However, the aforementioned online re-ranking methods either simply treat different testing samples equally without considering the instance-specific characteristics or completely ignore the intrinsic visual similarity relationships among testing samples, so that the performance improvement is neither stable nor significant.
+
+CNN-based Feature Extraction in P-RID: CNN-based feature extraction has achieved the state-of-the-art performance in P-RID. A novel Harmonious Attention CNN (HA-CNN) proposed by Li et al. [18] tries to jointly learn attention selection and feature representation in a CNN by maximizing the complementary information of different levels of visual attention (soft attention and hard attention). Wang et al. [30] proposed a novel deeply supervised fully attentional block that can be plugged into any CNNs to solve
+
+
+Figure 2. The online testing query and gallery samples are fed into the offline learned baseline model to obtain the feature descriptors firstly. The proposed frequent sharing-subset (SSSet) mining model is performed to the extracted features to generate multiple sharing-subsets which are further utilized by the proposed joint multi-metric adaptation model (The same sample may be contained by multiple SSSets since it shares different visual similarity relationships with different samples.). By fusing the learned matching metrics for each query and gallery sample, our final ranking list is obtained by a bi-directional retrieval matching (Sec. 3.5).
+
+P-RID problem, and a novel deep network called Mancs is designed to learn stable features for P-RID. Hou et al. [12] proposed the Spatial Interaction-and-Aggregation (SIA) and Channel Interaction-and-Aggregation (CIA) modules to improve the representational capacity of deep convolutional networks. Chen et al. [6] proposed an Attentive but Diverse Network (ABD-Net) which integrates attention modules and diversity regularizations throughout the entire network to learn features that are representative, robust, and more discriminative for P-RID. Zheng et al. [40] aimed at improving the learned P-RID features by better leveraging the generated data by designing a joint learning framework that couples P-RID learning and data generation end-to-end. However, these well-trained networks are directly applied to the testing data for feature extraction and evaluation, the data distribution shifting between training and testing samples definitely limits the performance of these models. Therefore, our proposed method is suitable for any CNNs for sample-specific local metric adaptation at inference stage aiming to address the data shifting issue well and gain a further performance improvement.
+
+# 3. $\mathbf{M}^3$ : Online Joint Multi-Metric Adaptation from Frequent Sharing-Subset Mining
+
+# 3.1. Problem Settings and Notations
+
+At the online testing stage of P-RID, two disjoint datasets, a query set $\mathcal{Q}$ and a gallery set $\mathcal{G}$ are given as:
+
+$$
+\mathcal {Q} = \{(q _ {i}, l _ {i} ^ {q}) \} _ {i = 1} ^ {n _ {q}} \quad \mathcal {G} = \{(g _ {i}, l _ {i} ^ {g}) \} _ {i = 1} ^ {n _ {g}}
+$$
+
+that $q_{i}, g_{i} \in \mathbb{R}^{d}$ are the extracted feature representations from an offline baseline model, either handcraft features or learned deep features. $l_{i}^{q}, l_{i}^{g} \in \{1,2,\dots,c\}$ are the labels from $c$ classes which are totally different from the training
+
+
+Figure 3. A CFI-Tree is constructed based on $\mathcal{T}$ . The same identity may be contained by multiple $t_i$ so that there may be multiple nodes for the same identity.
+
+sample classes. P-RID aims to rank $\mathcal{G}$ for a query probe $q$ based on the pair-wise similarity distance to a gallery $g$ , $d(q, g) = \| q, g\|^2$ . Our goal is to re-rank $\mathcal{G}$ for $q$ by refining $d(q, g)$ to improve the rank of true-matches for $q$ .
+
+# 3.2. Unsupervised Frequent Sharing-Subset Mining
+
+Although the identity label $\{l_i^q\} (\{l_i^g\})$ is unknown during testing, the visual similarity relationships of $\mathcal{Q}$ $(\mathcal{G})$ are intrinsic and verified to be effective in investigating the underlying similarity structure of samples by previous online re-ranking methods [9, 43]. However, due to the large-scale sample size (especially for $\mathcal{G}$ ), the redundancy and repeatability of visual similarity relationships significantly limit the performance of previous online P-RID methods. Inspired by the well-established frequent itemset mining technique [8], we propose an unsupervised frequent sharing-subset (SSSet) mining algorithm to automatically mine frequent SSSets $\{\mathcal{S}_i\}_{i = 1}^{n_s}$ from $\mathcal{Q}$ , that all the samples in $\mathcal{S}_i$ share a Strong Association Rule on visual similarity [8].
+
+Therefore, the mined SSSets not only keep the strong and reliable visual similarity sharing information but also significantly alleviate the redundancy. Compared with the original combinatorial problem suffering from exponential computation complexity $O(2^n)$ , the time complexity of our proposed algorithm is $O(n^2)$ which is much more efficient when a large scale of testing samples are given.
+
+Considering $\mathcal{Q}$ as the given Item set, we firstly prepare a Transaction set $\mathcal{T} = \{t_i\}_{i=1}^{n_t}$ from $\mathcal{Q}$ where each $t_i$ is a subset of $\mathcal{Q}$ . The affinity matrix $\mathbf{A} \in \mathbb{R}^{n_q \times n_q}$ of $\mathcal{Q}$ is defined as:
+
+$$
+A _ {i, j} = \left\{ \begin{array}{l} \exp \left(\frac {- d \left(q _ {i} , q _ {j}\right)}{2 \sigma}\right) / \sum_ {j} \exp \left(\frac {- d \left(q _ {i} , q _ {j}\right)}{2 \sigma}\right), j \neq i \\ 0, j = i \end{array} \right. \tag {1}
+$$
+
+where $\sigma$ is the variance parameter of distance matrix from $\mathcal{Q}$ so that $A_{i,j}$ represents the soft-max normalized visual similarity between $q_{i}$ and $q_{j}$ . The $i$ -th row of $\mathbf{A}$ represents the similarity distribution between $q_{i}$ and the other samples in $\mathcal{Q}$ . To keep only the most reliable sharing relationships, a threshold $\Theta$ defined as the average affinity of $\mathcal{Q}$ is used for outlier filtering: $\Theta = \sum_{i=1}^{n_q} \sum_{j=1}^{n_q} A_{i,j} / n_q \cdot n_q$ . Therefore, a binary index map $\mathbf{B}$ is obtained by:
+
+$$
+B _ {i, j} = \left\{ \begin{array}{l l} 1, & A _ {i, j} \geq \Theta \\ 0, & A _ {i, j} < \Theta \end{array} \right. \tag {2}
+$$
+
+The non-zero $B_{i,j}$ implies the strong similarity sharing relationship between $q_i$ and $q_j$ . Therefor each non-zero row $\mathbf{B}_j$ of $\mathbf{B}$ can be considered as a Transaction $t_i$ .
+
+$$
+\mathcal {T} = \left\{t _ {i} \right\} = \left\{\mathbf {B} _ {j} \right\}, \forall \sum \mathbf {B} _ {j} \geq 1 \tag {3}
+$$
+
+Once the transaction set $\mathcal{T}$ is obtained, we propose to mine the frequent sharing-subsets from $\mathcal{T}$ that each sharing-subset is represented by a mined frequent pattern from a classical FP-Close mining algorithm [10]. To do so, a Closed Frequent Itemset Tree (CFI-Tree) is firstly constructed based on $\mathcal{T}$ under a minimum support 5 (Fig. 3), then the FP-Close mining algorithm in [10] is performed to the constructed CFI-Tree to obtain all the closed frequent patterns $\{S_i\}_{i=1}^{n_s}$ that each $S_i$ represents a sharing-subset.
+
+# 3.3. Joint Multi-Metric Adaptation From SSSets
+
+Once all the frequent SSSets $\{\mathcal{S}_i\}_{i=1}^{n_s}$ are obtained, our goal is to jointly learn $n_s$ SSSets-based local Mahalanobis metrics for $\{\mathcal{S}_i\}_{i=1}^{n_s}$ by optimizing Eqn. 4:
+
+$$
+\arg \min _ {\left\{\mathbf {M} _ {i} \right\}} \frac {1}{2} \sum_ {i = 1} ^ {n _ {s}} \left\| \mathbf {M} _ {i} \right\| ^ {2}
+$$
+
+$$
+w. r. t: \mathbf {M} _ {i} \succeq 0
+$$
+
+$$
+\left(s _ {u} ^ {i} - s _ {v} ^ {j}\right) ^ {T} \left(\mathbf {M} _ {i} + \mathbf {M} _ {j}\right) \left(s _ {u} ^ {i} - s _ {v} ^ {j}\right) \geq 2, \forall s _ {u} ^ {i} \in \mathcal {S} _ {i}, s _ {v} ^ {j} \in \mathcal {S} _ {j}
+$$
+
+$$
+\left(s _ {u} ^ {i} - s _ {v} ^ {i}\right) ^ {T} \mathbf {M} _ {i} \left(s _ {u} ^ {i} - s _ {v} ^ {i}\right) = 0, \forall s _ {u} ^ {i} \in \mathcal {S} _ {i}, s _ {v} ^ {i} \in \mathcal {S} _ {i} \tag {4}
+$$
+
+The learned metric $\mathbf{M}_i$ from Eqn. 4 is shared by all the samples in $S_{i}$ . Suppose we have $n_s$ SSSets and $O(n)$ samples in each $S_{i}$ , there are totally $O(n_s^2 n^2)$ inequality constraints and $O(n_{s}n^{2})$ equality constraints in Eqn. 4 which are too difficult to deal with, so that we aim to reduce the constraint size in Eqn. 4. We find out that Eqn. 4 has an exactly equivalent form by only keeping the constraints related to one anchor sample $s^i$ in $S_{i}$ , that $s^i$ can be any sample in $S_{i}$ . Therefore the equivalent form is shown by Eqn. 5:
+
+$$
+\arg \min _ {\left\{\mathbf {M} _ {i} \right\}} \frac {1}{2} \sum_ {i = 1} ^ {n _ {s}} \left\| \mathbf {M} _ {i} \right\| ^ {2}
+$$
+
+$$
+w. r. t: \mathbf {M} _ {i} \succeq 0
+$$
+
+$$
+\left(s ^ {i} - s _ {v} ^ {j}\right) ^ {T} \left(\mathbf {M} _ {i} + \mathbf {M} _ {j}\right) \left(s ^ {i} - s _ {v} ^ {j}\right) \geq 2, \forall s ^ {i} \in \mathcal {S} _ {i}, s _ {v} ^ {j} \in \mathcal {S} _ {j}
+$$
+
+$$
+\left(s ^ {i} - s _ {v} ^ {i}\right) ^ {T} \mathbf {M} _ {i} \left(s ^ {i} - s _ {v} ^ {i}\right) = 0, \forall s ^ {i} \in \mathcal {S} _ {i}, s _ {v} ^ {i} \in \mathcal {S} _ {i} \tag {5}
+$$
+
+Revisit Eqn. 4, its equality constraints propose to collapse all $s_u^i \in S_i$ together. Therefore keeping only the equality constraints related to the anchor sample $s^i$ achieves the same collapsing performance. So as to the inequality constraints in Eqn. 4. Finally, we can reduce the constraint size by only keeping the constraints related to $s^i$ as in Eqn. 5. The re-formed objective Eqn. 5 has only $O(n_s^2 n)$ and $O(n_s n)$ inequality and equality constraints respectively. An important merit of Eqn. 5 is that it can be efficiently optimized:
+
+Theorem 1 All the vectors $s^i - s_v^i$ in Eqn. 5 form a spanning space $H = \text{span}(\sum_v \lambda_v (s^i - s_v^i))$ . Eqn. 5 is equivalent to replace $s^i - s_v^j$ by $h_v^\perp$ , the projection of $s^i - s_v^j$ in $H^\perp$ , that $H^\perp$ is the orthogonal space of $H$ .
+
+Proof 1 Since $\mathbf{M}_i$ is positive semi-definite, we have $\left(s^i - s_v^i\right)^T \mathbf{M}_i \left(s^i - s_v^i\right) = 0 \Leftrightarrow \mathbf{M}_i \left(s^i - s_v^i\right) = 0 \Leftrightarrow \mathbf{M}_i h = 0$ , $\forall h \in H$ . Projecting $s^i - s_v^j$ to $H$ and $H^\perp$ generates two orthogonal bases $h_v$ and $h_v^\perp$ respectively, so $s^i - s_v^j = h_v + h_v^\perp$ . Replace the inequality constraints in Eqn. 5 by $h_v + h_v^\perp$ :
+
+$$
+\begin{array}{l} \left(s ^ {i} - s _ {v} ^ {j}\right) ^ {T} \left(\mathbf {M} _ {i} + \mathbf {M} _ {j}\right) \left(s ^ {i} - s _ {v} ^ {j}\right) \\ = \left(h _ {v} + h _ {v} ^ {\perp}\right) ^ {T} \left(\mathbf {M} _ {i} + \mathbf {M} _ {j}\right) \left(h _ {v} + h _ {v} ^ {\perp}\right) \tag {6} \\ = h _ {v} ^ {\perp} ^ {T} \left(\mathbf {M} _ {i} + \mathbf {M} _ {j}\right) h _ {v} ^ {\perp} \\ \end{array}
+$$
+
+Now Eqn. 5 has an equivalent form as:
+
+$$
+\begin{array}{l} \arg \min _ {\left\{\mathbf {M} _ {i} \right\}} \frac {1}{2} \sum_ {i = 1} ^ {n _ {s}} \left\| \mathbf {M} _ {i} \right\| ^ {2} \\ w. r. t: \quad M _ {i} \succeq 0 \tag {7} \\ h _ {v} ^ {\perp} ^ {T} \left(\mathbf {M} _ {i} + \mathbf {M} _ {j}\right) h _ {v} ^ {\perp} \geq 2, \forall s ^ {i} \in \mathcal {S} _ {i}, s _ {v} ^ {j} \in \mathcal {S} _ {j} \\ \boldsymbol {M} _ {i} h = 0, \forall h \in \boldsymbol {H} \\ \end{array}
+$$
+
+Finally, we prove that Eqn. 7 has the same solution to Eqn. 4 by eliminating its PSD and equality constraints.
+
+Theorem 2 The solution to Eqn. 4 is exactly the same as solving the Eqn. 7 by relaxing its equality and PSD constraints, since they are indeed off-the-shelf.
+
+Proof 2 If we get rid of the PSD and equality constraints in Eqn. 7, the new form is:
+
+$$
+\begin{array}{l} \arg \min _ {\left\{\mathbf {M} _ {i} \right\}} \frac {1}{2} \sum_ {i = 1} ^ {n _ {s}} \left\| \mathbf {M} _ {i} \right\| ^ {2} \\ w. r. t: h _ {v} ^ {\perp^ {T}} \left(\mathbf {M} _ {i} + \mathbf {M} _ {j}\right) h _ {v} ^ {\perp} \geq 2, \forall s ^ {i} \in \mathcal {S} _ {i}, s _ {v} ^ {j} \in \mathcal {S} _ {j} \tag {8} \\ \end{array}
+$$
+
+Eqn. 8 is exactly in the same form of a multi-kernel SVM problem so that it can be efficiently solved.
+
+Thus the positive semi-definiteness of $M_{i}$ is guaranteed since $M_{i} = \sum \alpha_{v}\varphi (h_{v}^{\perp}) = \sum \alpha_{v}h_{v}^{\perp}\cdot h_{v}^{\perp T}\succeq 0$ . For the equality constraints in Eqn. 7, given a member $s$ of $\mathbf{S}$ , we have:
+
+$$
+\boldsymbol {M} _ {i} h = \left(\sum \alpha_ {v} h _ {v} ^ {\perp} \cdot h _ {v} ^ {\perp^ {T}}\right) h = \sum \alpha_ {v} h _ {v} ^ {\perp} \cdot \left(h _ {v} ^ {\perp^ {T}} h\right) = 0 \tag {9}
+$$
+
+which proves that the solution to Eqn. 8 satisfies the equality constraints as well.
+
+# 3.4. Bi-Directional Discriminant Enhancement
+
+At online testing stage, the gallery set $\mathcal{G}$ , the counterpart of query set $\mathcal{Q}$ , also plays an important role. As shown by Fig. 1, the re-ranking performance by using only the query-centric metric adaptation may suffer from ambiguous gallery distractors. The similar gallery images from different identities will significantly degrade the discriminant of $\mathbf{M}_p$ since these gallery distractors are still indistinguishable under $\mathbf{M}_p$ . Therefore, we aim to handle these indistinguishable gallery samples by performing a gallery-centric local discriminant enhancement method as Eqn. 4. The SSSets of $\mathcal{G}$ and the corresponding joint metrics are obtained via Sec. 3.2 and Eqn. 4 respectively.
+
+# 3.5. Multi-Metric Late Fusion For Re-Ranking
+
+For one query probe $q$ , it may be contained by multiple SSSets so that there will be multiple learned metrics $\mathbf{M}_i$ associated to $q$ . The final metric $\mathbf{M}_q$ for $q$ is obtained via a boosting-form multi-metric late fusion [24, 23]:
+
+$$
+\mathbf {M} _ {q} = \left(\sum_ {i = 1} ^ {n _ {s}} \gamma_ {i} \mathbf {M} _ {i}\right) / \sum \gamma_ {i} \tag {10}
+$$
+
+where $\gamma_{i} = 1$ if $q\in S_{i}$ . For a gallery sample $g$ , a similar fused metric $\mathbf{M}_g$ can be obtained likewise. Therefor the refined distance between $q$ and $g$ is defined as Eqn. 11 based on which the re-ranking list of $q_{i}$ is obtained.
+
+$$
+d (q, g) = (q - g) ^ {T} \left(\mathbf {M} _ {q} + \lambda \mathbf {M} _ {g}\right) (q - g) \tag {11}
+$$
+
+# 4. Theoretical Analyses and Justifications
+
+As demonstrated by Theorem 2, the solution of our joint multi-metric adaptation objective can be readily transformed to the equivalent form as [45]. Therefore, the appealing theoretical properties in [45] can be inherited by our learned $\mathbf{M}_i$ as presented in Theorem 3. Moreover, our late multi-kernel fusion metric Eqn. 10 will guarantee a further reduction of generalization error bound as in Theorem 4.
+
+Theorem 3 (The reduction of both asymptotic and practical error bound by the learned $M_i$ ): As demonstrated by the Theorem.2 in [45], for an input $x$ , its asymptotic error $\mathbb{P}^a(e|x)$ by using extra negative data $\mathcal{D}^a$ is:
+
+$$
+\mathbb {P} ^ {a} (e | x) = \frac {(2 - q) \mathbb {P} (e | x)}{2 - 2 q \mathbb {P} (e | x)} \leq \mathbb {P} (e | x) \tag {12}
+$$
+
+where $q$ is a probability scalar that $0 \leq q \leq 1$ and $\mathbb{P}(e|x)$ is the Bayesian error. Moreover, the asymptotic error $\mathbb{P}^a(e|x)$ can be best approximated by the practical error rate $\mathbb{P}_n(e|x)$ ( $n$ is finite) by finding a local metric $\pmb{M}_x$ which turns out to be the one for our Eqn. 4.
+
+Theorem 4 (The reduction of generalization error bound by using $M_{q / g}$ in Eqn. 10): Our fused multi-kernel metric $\pmb{M}_{q} = (\sum_{i = 1}^{n_{s}}\gamma_{i}\pmb{M}_{i}) / \sum \gamma_{i}$ is a linear combinations of several base kernels $\pmb{M}_{i}$ from the family of finite Gaussian kernels: $\mathcal{K}_G^d \coloneqq \{K_M : (x_1, x_2) \mapsto e^{-(x_1 - x_2)^T M(x_1 - x_2)} \mid M \in \mathbb{R}^{d \times d}, M \succeq 0\}$ which is bounded by $B_k$ . Therefore, for a fixed $\delta \in (0, 1)$ , $n_s < n_k$ is the number of metrics (kernels) involved in our final joint multi-metric learning solution. With probability at least $1 - \delta$ over the choice of a random training set $\mathcal{X} = \{x_i\}_{i=1}^n$ of size $n$ we have:
+
+$$
+\mathcal {E} _ {e s t} \left(\boldsymbol {M} _ {i}\right) \simeq \mathcal {O} \left(\sqrt {\frac {n _ {k} + B _ {k}}{n}}\right) \tag {13}
+$$
+
+$$
+\mathcal {E} _ {e s t} \left(\boldsymbol {M} _ {q}\right) \simeq \mathcal {O} \left(\sqrt {\frac {\log n _ {k} + B _ {k} + 2 n _ {s}}{n}}\right) \tag {14}
+$$
+
+In our work, we have $n_s \ll n_k$ , that the selected number of kernels is much fewer than the total kernel number, so that $\mathcal{E}_{est}(\pmb{M}_q) \simeq \mathcal{O}\left(\sqrt{\frac{\log n_k + B_k}{n}}\right) \ll \mathcal{E}_{est}(\pmb{M}_i) \simeq \mathcal{O}\left(\sqrt{\frac{n_k + B_k}{n}}\right)$ . The generalization error by using $\pmb{M}_q$ is much smaller than using only any $\pmb{M}_i$ . The same conclusion can be obtained for $\pmb{M}_g$ likewise.
+
+Proof 3 The classification rule of our learned $M_{i}$ can be defined as $\zeta_{j} \left( \tilde{q}^{T} M_{i} \tilde{x}_{j} - 1 \right) \geq 1$ so that the margin is 1. Motivated by [25], the generalization error $\mathcal{E}_{\text{est}}(M_{i})$ of using kernel $M_{i}$ is bounded by $\mathcal{O}\left(\sqrt{\frac{n_{k} + B_{k}}{n}}\right)$ . While by
+
+
+Figure 4. The visualization of rank improvement on CUHK03 (1th, 2nd) and Market1501 (3rd, 4th) based on HA-CNN. For each case, its top-10 (left to right) matches are presented and the true-match is labeled by the red box. The 1st row is the baseline result, the 2nd row is the result only using $\mathbf{M}_q$ and the 3rd row is the result using both $\mathbf{M}_q$ and $\mathbf{M}_g$ .
+
+using $M_q$ , which is a linear combination of all $M_i$ from the family of finite Gaussian kernel $\mathcal{K}_G^d$ , its generalization error $\mathcal{E}_{est}(M_q)$ is bounded by $\mathcal{O}\left(\sqrt{\frac{\log n_k + B_k + 2n_s}{n}}\right)$ which is guaranteed by the Theorem.2 in [14]. For the kernel family $\mathcal{K}_G^d$ , $n_k \simeq \mathcal{O}(d^2)$ and in our work, $d \approx 10^3$ so that $n_k \approx 10^6$ . The selected kernels for combination is about 20 in average so that $n_s \ll n_k$ which means $\mathcal{E}_{est}(M_q) \ll \mathcal{E}_{est}(M_i)$ .
+
+# 5. Experiments
+
+# 5.1. Experimental Settings
+
+Datasets. We evaluate our proposed $\mathbf{M}^3$ model on CUHK03 [17], Market1501 [39], DukeMTMC-reID [41] and MSMT17 [33] benchmarks. The statistic details of the above datasets are summarized in Table. 1. For CUHK031, the new splitting protocol proposed by [43] is adopted in our experiment so that 767 identities are used for training as well as the left 700 identities are used for testing. As for the other three benchmarks, Market1501, DukeMTMC-reID and MSMT17, the pre-determined probe and gallery sets are directly utilized with no modification.
+
+
| Dataset | cuhk03 | market | duke | msmt17 |
| #T-IDs | 767 | 751 | 702 | 1040 |
| #Q-IDs | 700 | 750 | 702 | 3060 |
| #G-IDs | 700 | 751 | 1110 | 3060 |
| #cam | 2 | 6 | 8 | 15 |
| #images | 28192 | 32668 | 36411 | 126441 |
+
+Table 1. The statistics of P-RID benchmarks. #T/Q/G-IDs denote the number of training/query/gallery ids.
+
+Baselines. Our proposed $\mathbf{M}^3$ method is evaluated based on several state-of-the-art CNN-based P-RID models: ResNet50 [11], DenseNet121 [13], HA-CNN [18], MLFN [5] and ABDNet[6]. The general CNN models, ResNet50 and DenseNet121, are well trained on each benchmark for feature extraction. HA-CNN, MLFN and ABDNet are the P-RID specific CNNs so that the original works are directly utilized in our experiments. Besides, the
+
+other state-of-the-art P-RID methods [15, 21, 37, 27, 28, 5, 26, 40, 46, 6] are further compared. Moreover, related online P-RID methods including [45] (OL) and [43] (RR) are compared with our $\mathbf{M}^3$ method.
+
+Evaluation. We follow the same official evaluation protocols in [39, 41, 17, 33], the single-shot evaluation setting is adopted and all the results are shown in the form of Cumulated Matching Characteristic (CMC) at several selected ranks and mean Average Precision (mAP). Various ablation studies of our proposed model are explored in Sec. 5.5.
+
+# 5.2. Comparison with the State-of-the-arts
+
+Evaluation on CUHK03: The comparison results on CUHK03 (767/700 splitting protocol) are presented in Table. 2. Our $\mathbf{M}^3$ model significantly boosts the baseline Rank@1(mAP) performance of ResNet50, DenseNet12, HA-CNN and MLFN to $66.9\% (60.7\%)$ , $61.6\% (54.4\%)$ , $69.8\% (63.5\%)$ and $73.4\% (71.2\%)$ with a $40.0\% (29.7\%)$ , $50.2\% (35.7\%)$ , $45.4\% (33.4\%)$ and $34.2\% (44.7\%)$ relative improvement respectively. Even compared with the state-of-the-art method MGN [31], our results outperform it by $5\%$ at Rank@1. The reason for such a large improvement is that the "hard" gallery distractors which are still indistinguishable under $\mathbf{M}_q$ is well handled by our $\mathbf{M}^3$ method (Fig. 4), so the ranking of true-match gallery targets is significantly improved.
+
+Evaluation on Market1501: The superiority of our $\mathbf{M}^3$ method is further verified by the experiments on Market1501. Table. 2 demonstrates that although the state-of-the-art approach ABDNet [6] has achieved a pretty high performance ( $\geq 94\%$ ) on Market1501, the improvement of our $\mathbf{M}^3$ is still over $3.7\% (10\%)$ on Rank@1(mAP) based on ABDNet (visualization results in Fig. 4).
+
+Evaluation on DukeMTMC-reID: DukeMTMC-reID is a recent benchmark proposed for P-RID, but the latest methods have obtained promising performances. As shown in Table. 2, the recently published OSNet [46] has raised the state-of-the-art to $87.0\% (70.2\%)$ . Our ABDNet+M³ improves the Rank@1(mAP) result to $87.5\% (73.3\%)$ , which beats OSNet by a large margin on mAP.
+
+Evaluation on MSMT17: MSMT17 is the latest and largest benchmark so far which is pretty challenging due to the extreme large-scale identities and distractors. We eval
+
+| CUHK03(767/700) | Market1501 | DukeMTMC-reID |
| Method | R@1 | mAP | Method | R@1 | mAP | Method | R@1 | mAP |
| ResNet50[11] | 47.9 | 46.8 | ResNet50[11] | 88.5 | 71.3 | ResNet50[11] | 77.7 | 58.8 |
| DenseNet121[13] | 41.0 | 40.1 | DenseNet121[13] | 88.2 | 69.2 | DenseNet121[13] | 78.6 | 58.5 |
| HA-CNN[18] | 48.0 | 47.6 | HA-CNN[18] | 90.6 | 75.3 | HA-CNN[18] | 80.7 | 64.4 |
| MLFN[5] | 54.7 | 49.2 | MLFN[5] | 90.1 | 74.3 | MLFN[5] | 81.0 | 62.8 |
| ABDNet[6] | N/A | N/A | ABDNet[6] | 93.7 | 85.5 | ABDNet[6] | 84.1 | 67.7 |
| OSNet[46] | N/A | N/A | OSNet[46] | 94.2 | 82.6 | OSNet[46] | 87.0 | 70.2 |
| PCB[28] | 63.7 | 67.5 | PCB[28] | 83.3 | 69.2 | PCB[28] | 83.3 | 69.2 |
| SVDNet[27] | 41.5 | 37.3 | SVDNet[27] | 82.3 | 62.1 | SVDNet[27] | 76.7 | 56.8 |
| DPFL[7] | 40.7 | 37.0 | DNSL[36] | 61.0 | 35.6 | DuATM[22] | 81.8 | 64.6 |
| PAN[42] | 36.3 | 34.0 | Part-aligned[26] | 91.7 | 79.6 | Part-aligned[26] | 84.4 | 69.3 |
| ResNeXt[34] | 43.8 | 38.7 | PN-GAN[19] | 77.1 | 63.6 | PAN[42] | 71.6 | 51.5 |
| DaRe[32] | 55.1 | 51.3 | DeepCC[20] | 89.5 | 75.7 | GAN[41] | 67.7 | 47.1 |
| MGN[31] | 68.0 | 67.4 | Mancs[30] | 93.1 | 82.3 | SPreID[16] | 85.9 | 73.3 |
| M3+ResNet50 | 66.9 | 60.7 | M3+ResNet50 | 95.4 | 82.6 | M3+ResNet50 | 84.7 | 68.5 |
| M3+DenseNet121 | 61.6 | 54.4 | M3+DenseNet121 | 95.3 | 81.2 | M3+DenseNet121 | 84.9 | 68.0 |
| M3+HA-CNN | 69.8 | 63.5 | M3+HA-CNN | 96.5 | 85.2 | M3+HA-CNN | 87.1 | 72.2 |
| M3+MLFN | 73.4 | 71.2 | M3+MLFN | 96.4 | 85.0 | M3+MLFN | 86.5 | 71.5 |
| M3+ABDNet | N/A | N/A | M3+ABDNet | 97.9 | 92.6 | M3+ABDNet | 87.5 | 73.3 |
+
+
+Figure 5. The influence of $\lambda$ on (left) CUHK03, (mid) Market1501 and (right) DukeMTMC-reID based on HA-CNN.
+
+
+
+
+
+Table 2. Compared with the state-of-the-arts on CUHK03, Market1501, and DukeMTMC-reID.
+
+| MSMT17
+Method | Baseline | Baseline+M³ |
| R@1 | mAP | R@1 | mAP |
| ResNet50[11] | 63.4 | 34.2 | 72.8 | 55.0 |
| DenseNet121[13] | 66.0 | 34.6 | 75.5 | 43.1 |
| HA-CNN[18] | 64.7 | 37.2 | 74.3 | 43.8 |
| MLFN[5] | 66.4 | 37.2 | 72.8 | 43.4 |
| ABDNet[6] | 82.3 | 60.8 | 85.7 | 64.2 |
+
+uate the performance of selected baselines on the MSMT17 dataset with(w/) and without(w/o) our $\mathbf{M}^3$ model in Table. 3. For all the baselines, our $\mathbf{M}^3$ model significantly improves their Rank@1(mAP) performance. The performance of ABDNet is boosted from $82.3\% (60.8\%)$ to a state-of-the-art level of $85.7\% (64.2\%)$ . Table. 3 verifies the scalability of our proposed $\mathbf{M}^3$ model, even for the extremely large-scale query/gallery sets, our method is still able to consistently improve the baseline performance.
+
+Table 3. Compared with the state-of-the-arts on MSMT17.
+
+| Method | CUHK03 | Market | Duke |
| HA-CNN[18] | 48.0(47.6) | 90.6(75.3) | 80.7(64.4) |
| HA-CNN+RR [43] | 54.8(55.7) | 91.4(79.0) | 82.5(69.9) |
| HA-CNN+OL [45] | 62.3(56.5) | 92.7(78.9) | 83.7(67.8) |
| HA-CNN+M3 | 69.8(63.5) | 96.5(85.2) | 87.1(72.2) |
| Dense121[13] | 41.0(40.1) | 88.2(69.2) | 78.6(58.5) |
| Dense121+RR [43] | 48.1(51.5) | 90.2(85.0) | 83.7(76.9) |
| Dense121+OL [45] | 53.1(49.3) | 90.4(74.0) | 80.2(64.1) |
| Dense121+M3 | 61.6(54.4) | 95.3(81.2) | 84.9(68.0) |
+
+Table 4. Compared with online P-RID refinement methods.
+
+# 5.3. Comparison with Online P-RID Re-ranking
+
+Two state-of-the-art online P-RID re-ranking methods, OL [45] and RR [43], are compared with our $\mathbf{M}^3$ since all the three methods can be readily utilized at online testing stage for further performance improvement. The comparison results in Table. 4 show that the query-specific method OL [45] works better on improving Rank@1 per
+
+| Method | Market1501 → DukeMTMC | DukeMTMC → Market1501 |
| R@1 | R@5 | R@10 | R@20 | mAP | R@1 | R@5 | R@10 | R@20 | mAP |
| MLFN[5] | 45.8 | 63.9 | 71.6 | 78.1 | 20.3 | 30.4 | 47.5 | 53.9 | 59.5 | 17.1 |
| MLFN+M3 | 67.6 | 78.8 | 83.0 | 86.6 | 32.7 | 43.7 | 57.0 | 62.6 | 68.2 | 24.7 |
| DenseNet121[13] | 41.0 | 56.6 | 62.8 | 68.5 | 23.2 | 55.0 | 71.3 | 78.5 | 84.3 | 25.3 |
| DenseNet121+M3 | 53.1 | 67.1 | 72.1 | 75.7 | 32.7 | 76.9 | 85.6 | 89.1 | 91.9 | 40.4 |
| HA-CNN[18] | 43.3 | 59.7 | 66.7 | 74.6 | 18.9 | 24.0 | 39.0 | 45.1 | 51.6 | 13.5 |
| HA-CNN+M3 | 61.6 | 73.6 | 78.7 | 82.9 | 25.8 | 37.6 | 51.9 | 56.8 | 62.8 | 20.5 |
+
+Table 5. Cross-dataset validation results with $(+{\bf M}^{3})$ our $\mathbf{M}^3$ model on Market1501 and DukeMTMC-reID. Market1501 $\rightarrow$ DukeMTMC mean using the model trained on Market1501 to evaluate DukeMTMC-reID.
+
+| Method | CUHK03 | Market1501 | DukeMTMC-reID | MSMT17 |
| R@1 | R@20 | mAP | R@1 | R@20 | mAP | R@1 | R@20 | mAP | R@1 | R@20 | mAP |
| HA-CNN[18] | 48.0 | 85.4 | 47.6 | 90.6 | 98.3 | 75.3 | 80.7 | 94.3 | 64.4 | 64.7 | 87.1 | 37.2 |
| Our only w/ Mq | 63.4 | 87.6 | 63.5 | 93.8 | 98.8 | 81.2 | 83.9 | 95.3 | 69.0 | 68.7 | 88.7 | 40.6 |
| Our only w/ Mg | 65.4 | 86.2 | 57.3 | 94.2 | 98.4 | 79.1 | 83.6 | 94.4 | 65.7 | 66.3 | 86.4 | 37.5 |
| Our-Full | 69.8 | 88.8 | 63.5 | 96.5 | 98.9 | 85.2 | 87.1 | 95.8 | 72.2 | 74.3 | 90.0 | 43.8 |
+
+Table 6. The influence of each component in our ${\mathrm{M}}^{3}$ algorithm.
+
+formance but has little improvement on mAP due to the lack of gallery-specific local discriminant enhancement. In contrast, since RR [43] considers the k-reciprocal nearest neighbors of both query and gallery data, it achieves a large improvement on mAP but with limited improvement on Rank@1 owing to the lack of instance-specific local adaptation. Our $\mathbf{M}^3$ outperforms the other two approaches significantly at both Rank@1 and mAP due to the fully utilization of both the group-level visual similarity sharing information and instance-specific local discriminant enhancement.
+
+# 5.4. Cross-Set Generalization Ability Validation
+
+We explore the generalization ability of our proposed $\mathbf{M}^3$ . We claim the improvement by $\mathbf{M}^3$ is from the testing sample itself which is independent of how the baseline models are trained. Therefore we conduct a cross-set generalization ability validation experiment as shown in Table. 5. Following the setting in [44], the baseline model trained by Market1501 with our $\mathbf{M}^3$ is evaluated on DukeMTMC-reID and vice versa. The results show our $\mathbf{M}^3$ model is able to consistently and significantly improve the baseline performance regardless of whether the baseline is trained by the same-source data or not.
+
+# 5.5. Ablation Study
+
+The Influence of Model Components: The final retrieval performance of Eqn. 11 relies on a bi-directional retrieval matching, so the influence of each component is shown in Table. 6. As can be seen, by only keeping the query-specific metric adaptation $\mathbf{M}_q$ or the gallery-centric one $\mathbf{M}_g$ , we still can achieve a significant improvement. While by performing a full-model bi-directional matching, the performance is further boosted by a large margin which demonstrates the necessity of bi-directional local discriminant enhancement. More visualizations are shown in Fig. 4.
+
+The Influence of $\lambda$ in Eqn. 11: The weighting parameter $\lambda$ in Eqn. 11 aims to balance the importance of $\mathbf{M}_q$ and $\mathbf{M}_g$ . The full CMC curves w.r.t $\lambda$ of HA-CNN on CUHK03, Market1501 and DukeMTMC-reID are plotted in Fig. 5 respectively. As can be seen, setting $\lambda = 1$ gives the best performance since we perform a max-normalization to both $\mathbf{M}_q$ and $\mathbf{M}_g$ , over-weighting either side is prone to suppress the other side's impact.
+
+# 6. Conclusion
+
+Unlike previous online P-RID works, in this paper, we propose a novel online joint multi-metric adaptation algorithm which not only takes individual characteristics of testing samples into consideration but also fully utilizes the visual similarity relationships among both query and gallery samples. Our $\mathbf{M}^3$ method can be readily applied to any existing P-RID baselines with the guarantee of performance improvement, and a theoretical sound optimization solution to $\mathbf{M}^3$ keeps a low online computational burden. Compared with the other state-of-the-art online P-RID refinement approaches, our method achieves significant improvement on Rank@1(mAP) performance. Moreover, by implementing our method to the state-of-the-art baselines, their performance is further boosted by a large margin on four challenging large-scale P-RID benchmarks.
+
+# Acknowledgements
+
+This work was supported in part by National Science Foundation grant IIS-1619078, IIS-1815561, and the Army Research Office ARO W911NF-16-1-0138, in part by National Natural Science Foundation of China under Grant No. 61976206, No. 61603373, Youth Innovation Promotion Association CAS No. 2019110.
+
+# References
+
+[1] Song Bai, Peng Tang, Philip HS Torr, and Longin Jan Latecki. Re-ranking via metric fusion for object retrieval and person re-identification. In CVPR, 2019. 1, 2
+[2] Sławomir Bak and KP Carr. One-shot metric learning for person re-identification. In CVPR, 2017. 1
+[3] Arko Barman and Shishir K Shah. Shape: A novel graph theoretic algorithm for making consensus-based decisions in person re-identification systems. In ICCV, 2017. 1, 2
+[4] R Caruna. Multitask learning: A knowledge-based source of inductive bias. In ICML, 1993. 2
+[5] Xiaobin Chang, Timothy M Hospedales, and Tao Xiang. Multi-level factorisation net for person re-identification. In CVPR, 2018. 6, 7, 8
+[6] Tianlong Chen, Shaojin Ding, Jingyi Xie, Ye Yuan, Wuyang Chen, Yang Yang, Zhou Ren, and Zhangyang Wang. Abdnet: Attentive but diverse person re-identification. 2019. 1, 3, 6, 7
+[7] Yanbei Chen, Xiatian Zhu, and Shaogang Gong. Person re-identification by deep learning multi-scale representations. In ICCV, 2017. 7
+[8] Basura Fernando, Elisa Fromont, and Tinne Tuytelaars. Effective use of frequent itemset mining for image classification. In ECCV, 2012. 3
+[9] Jorge Garcia, Niki Martinel, Christian Micheloni, and Alfredo Gardel. Person re-identification ranking optimisation by discriminant context information analysis. In ICCV, 2015. 1, 2, 3
+[10] Gösta Grahne and Jianfei Zhu. Efficiently using prefix-trees in mining frequent itemsets. In FIMI, volume 90, 2003. 4
+[11] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 6, 7
+[12] Ruibing Hou, Bingpeng Ma, Hong Chang, Xinqian Gu, Shiguang Shan, and Xilin Chen. Interaction-and-aggregation network for person re-identification. In CVPR, 2019. 1, 3
+[13] Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In CVPR, 2017. 6, 7, 8
+[14] Zakria Hussain and John Shawe-Taylor. Improved loss bounds for multiple kernel learning. In AISTATS, 2011. 6
+[15] Forrest N Iandola, Song Han, Matthew W Moskewicz, Khalid Ashraf, William J Dally, and Kurt Keutzer. SqueezeNet: Alexnet-level accuracy with 50x fewer parameters and; 0.5 mb model size. arXiv, 2016. 6
+[16] Mahdi M Kalayeh, Emrah Basaran, Muhittin Gokmen, Mustafa E Kamasak, and Mubarak Shah. Human semantic parsing for person re-identification. In CVPR, 2018. 7
+[17] Wei Li, Rui Zhao, and Xiaogang Wang. Human reidentification with transferred metric learning. In ACCV, 2012. 2, 6
+[18] Wei Li, Xiatian Zhu, and Shaogang Gong. Harmonious attention network for person re-identification. In CVPR, 2018. 1, 2, 6, 7, 8
+[19] Xuelin Qian, Yanwei Fu, Tao Xiang, Wenxuan Wang, Jie Qiu, Yang Wu, Yu-Gang Jiang, and Xiangyang Xue. Pose-
+
+normalized image generation for person re-identification. In ECCV, 2018.7
+[20] Ergys Ristani and Carlo Tomasi. Features for multi-target multi-camera tracking and re-identification. In CVPR, 2018. 7
+[21] Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhoginov, and Liang-Chieh Chen. *Mobilenetv2: Inverted residuals and linear bottlenecks*. In *CVPR*, 2018. 6
+[22] Jianlou Si, Honggang Zhang, Chun-Guang Li, Jason Kuen, Xiangfei Kong, Alex C Kot, and Gang Wang. Dual attention matching network for context-aware feature sequence based person re-identification. 7
+[23] Soren Sonnenburg, Gunnar Ratsch, and Christin Schäfer. A general and efficient multiple kernel learning algorithm. In NIPS, 2006. 5
+[24] Soren Sonnenburg, Gunnar Ratsch, Christin Schäfer, and Bernhard Schölkopf. Large scale multiple kernel learning. JMLR, 2006. 5
+[25] Nathan Srebro and Shai Ben-David. Learning bounds for support vector machines with learned kernels. In COLT, 2006. 5
+[26] Yumin Suh, Jingdong Wang, Siyu Tang, Tao Mei, and Kyoung Mu Lee. Part-aligned bilinear representations for person re-identification. In ECCV, 2018. 6, 7
+[27] Yifan Sun, Liang Zheng, Weijian Deng, and Shengjin Wang. Svdnet for pedestrian retrieval. In ICCV, 2017. 6, 7
+[28] Yifan Sun, Liang Zheng, Yi Yang, Qi Tian, and Shengjin Wang. Beyond part models: Person retrieval with refined part pooling. 6, 7
+[29] M Feroz T Ali and Subbasis Chaudhuri. Maximum margin metric learning over discriminative nullspace for person re-identification. In ECCV, 2018. 1
+[30] Cheng Wang, Qian Zhang, Chang Huang, Wenyu Liu, and Xinggang Wang. Mancs: A multi-task attentional network with curriculum sampling for person re-identification. In ECCV, 2018. 1, 2, 7
+[31] Guanshuo Wang, Yufeng Yuan, Xiong Chen, Jiwei Li, and Xi Zhou. Learning discriminative features with multiple granularities for person re-identification. In ACM Multimedia Conference, 2018. 6, 7
+[32] 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 CVPR, 2018. 7
+[33] Longhui Wei, Shiliang Zhang, Wen Gao, and Qi Tian. Persontrasfer gan to bridge domain gap for person re-identification. In CVPR, 2018. 6
+[34] Saining Xie, Ross Girshick, Piotr Dolkar, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In CVPR, 2017. 7
+[35] Mang Ye, Jun Chen, Qingming Leng, Chao Liang, Zheng Wang, and Kaimin Sun. Coupled-view based ranking optimization for person re-identification. In ICMM, 2015. 1, 2
+[36] Li Zhang, Tao Xiang, and Shaogang Gong. Learning a discriminative null space for person re-identification. In CVPR, 2016. 7
+
+[37] Xiangyu Zhang, Xinyu Zhou, Mengxiao Lin, and Jian Sun. Shufflenet: An extremely efficient convolutional neural network for mobile devices. In CVPR, 2018. 6
+[38] Ying Zhang, Baohua Li, Huchuan Lu, Atshushi Irie, and Xiang Ruan. Sample-specificsvm learning for person re-identification. In CVPR, 2016. 2
+[39] Liang Zheng, Liyue Shen, Lu Tian, Shengjin Wang, Jingdong Wang, and Qi Tian. Scalable person re-identification: A benchmark. In ICCV, 2015. 6
+[40] Zhedong Zheng, Xiaodong Yang, Zhiding Yu, Liang Zheng, Yi Yang, and Jan Kautz. Joint discriminative and generative learning for person re-identification. In ICCV, 2019. 1, 3, 6
+[41] Zhedong Zheng, Liang Zheng, and Yi Yang. Unlabeled samples generated by gan improve the person re-identification baseline in vitro. In ICCV, 2017. 6, 7
+[42] Zhedong Zheng, Liang Zheng, and Yi Yang. Pedestrian alignment network for large-scale person re-identification. TCSVT, 2018. 7
+[43] Zhun Zhong, Liang Zheng, Donglin Cao, and Shaozi Li. Reranking person re-identification with k-reciprocal encoding. 2017. 1, 2, 3, 6, 7, 8
+[44] Zhun Zhong, Liang Zheng, Shaozi Li, and Yi Yang. Generalizing a person retrieval model hetero-and homogeneously. In ECCV, 2018. 8
+[45] Jiahuan Zhou, Pei Yu, Wei Tang, and Ying Wu. Efficient online local metric adaptation via negative samples for person re-identification. In ICCV, 2017. 1, 2, 5, 6, 7
+[46] Kaiyang Zhou, Yongxin Yang, Andrea Cavallaro, and Tao Xiang. Omni-scale feature learning for person re-identification. In ICCV, 2019. 6, 7
\ No newline at end of file
diff --git a/onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/images.zip b/onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..bc459c071661d8449a81d9c2b3b386271216b0a5
--- /dev/null
+++ b/onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0b56e543255c2d922c022c277bd0ffbdf8005ceb483328e250af6b26961a1398
+size 832076
diff --git a/onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/layout.json b/onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..77eab5dc9c1b784d037a42246c6afa772da1636c
--- /dev/null
+++ b/onlinejointmultimetricadaptationfromfrequentsharingsubsetminingforpersonreidentification/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c1adc9aadd605c51ea0a382189de09faa4c1e557e28f291b0aed6319be88b4ec
+size 482271
diff --git a/onlineknowledgedistillationviacollaborativelearning/f30af824-67bb-48eb-9ba6-bf2ac856b2aa_content_list.json b/onlineknowledgedistillationviacollaborativelearning/f30af824-67bb-48eb-9ba6-bf2ac856b2aa_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..d609e45b70125c6763d439f2f9b61e0fa4623f7a
--- /dev/null
+++ b/onlineknowledgedistillationviacollaborativelearning/f30af824-67bb-48eb-9ba6-bf2ac856b2aa_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e1f511a3a6d0d6d3883977e073294604e908bd5d855450b3fd2cbb2211d69a61
+size 75424
diff --git a/onlineknowledgedistillationviacollaborativelearning/f30af824-67bb-48eb-9ba6-bf2ac856b2aa_model.json b/onlineknowledgedistillationviacollaborativelearning/f30af824-67bb-48eb-9ba6-bf2ac856b2aa_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..9ea4f82a67698354052d23c3560cb78dc0fce2e8
--- /dev/null
+++ b/onlineknowledgedistillationviacollaborativelearning/f30af824-67bb-48eb-9ba6-bf2ac856b2aa_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:78d5f939ce8adb926aee9acac4f10ea53c285f936cf2967c445dd9e8e44ca2c9
+size 90544
diff --git a/onlineknowledgedistillationviacollaborativelearning/f30af824-67bb-48eb-9ba6-bf2ac856b2aa_origin.pdf b/onlineknowledgedistillationviacollaborativelearning/f30af824-67bb-48eb-9ba6-bf2ac856b2aa_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..ac71d7901a1981c17d186cb82f632a4792c8e04d
--- /dev/null
+++ b/onlineknowledgedistillationviacollaborativelearning/f30af824-67bb-48eb-9ba6-bf2ac856b2aa_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ef5f0c601fc8f11ece7e0d9d07368a57092ed976f7d93039cbc4790f3491271d
+size 990244
diff --git a/onlineknowledgedistillationviacollaborativelearning/full.md b/onlineknowledgedistillationviacollaborativelearning/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..0396e53261a9f3c3599a733295eb7257b1694338
--- /dev/null
+++ b/onlineknowledgedistillationviacollaborativelearning/full.md
@@ -0,0 +1,329 @@
+# Online Knowledge Distillation via Collaborative Learning
+
+Qiushan Guo $^{1}$ , Xinjiang Wang $^{2}$ , Yichao Wu $^{2}$ , Zhipeng Yu $^{2}$ , Ding Liang $^{2}$ , Xiaolin Hu $^{3}$ , Ping Luo $^{4}$ $^{1}$ Beijing University of Posts and Telecommunications $^{2}$ SenseTime Group Limited
+ $^{3}$ Tsinghua University $^{4}$ The University of Hong Kong
+
+qsguo@bupt.edu.cn xlhu@mail.tsinghua.edu.cn pluo@cs.hku.hk
+
+{wangxinjiang, wuyichao, yuzhipeng, liangding}@sensetime.com
+
+# Abstract
+
+This work presents an efficient yet effective online Knowledge Distillation method via Collaborative Learning, termed KDCL, which is able to consistently improve the generalization ability of deep neural networks (DNNs) that have different learning capacities. Unlike existing two-stage knowledge distillation approaches that pre-train a DNN with large capacity as the "teacher" and then transfer the teacher's knowledge to another "student" DNN unidirectionally (i.e. one-way), KDCL treats all DNNs as "students" and collaboratively trains them in a single stage (knowledge is transferred among arbitrary students during collaborative training), enabling parallel computing, fast computations, and appealing generalization ability. Specifically, we carefully design multiple methods to generate soft target as supervisions by effectively ensembling predictions of students and distorting the input images. Extensive experiments show that KDCL consistently improves all the "students" on different datasets, including CIFAR100 and ImageNet. For example, when trained together by using KDCL, ResNet-50 and MobileNetV2 achieve $78.2\%$ and $74.0\%$ top-1 accuracy on ImageNet, outperforming the original results by $1.4\%$ and $2.0\%$ respectively. We also verify that models pre-trained with KDCL transfer well to object detection and semantic segmentation on MS COCO dataset. For instance, the FPN detector is improved by $0.9\%$ mAP.
+
+# 1. Introduction
+
+Knowledge distillation [10] is typically formulated as "teacher-student" learning setting. It is able to improve performance of a compact 'student' deep neural network because the representation of a 'teacher' network can be used as structured knowledge to guide the training of student. The predictions (e.g. soft target) produced by the teacher can be easily learned by a student and encourage it to generalize better than that trained from scratch. However,
+
+
+(a) Baseline
+
+
+(b) DML
+
+
+(c) ONE
+
+
+(d) KDCL
+Figure 1: (a) [10] transfers knowledge from the static pre-trained teacher to student model. (b) Students can learn from each other in [32]. (c) [15] establishes teacher using multiple branch design. The gate is to ensemble all the branches. (d) KDCL consistently gains extra information from ensembling soft target produced by all students, outperforming existing approaches. The input of each model is randomly distorted separately to increase its generalization ability. When model pair is trained with KDCL on ImageNet, ResNet-18 is improved by $1.9\%$ and ResNet-50 gets $1.0\%$ improvement due to the knowledge from ResNet-18.
+
+in traditional offline knowledge distillation framework, the teacher is pre-trained first and then fixed, meaning that the knowledge can be only transferred from the teacher to the student (i.e. one-way) as shown in Fig. 1a.
+
+The online distillation methods [32, 15] are more attractive because the training process is simplified to a single stage, and all the networks are treated as students. These approaches merge the training processes of all student networks, enabling them to gain extra knowledge from each other. Students directly learn from the prediction of other students in Deep Mutual Learning (DML) [32], as illustrated in Fig. 1b. However, the output of students can be diverse, conflicting with each other and even the ground truth. When the performances are significantly different among models, this method does harm to the model of high perfor
+
+mance.
+
+An alternative method proposed by [15] (ONE) is to train a multi-branch network while establishing teacher on the fly, as shown in Fig. 1c. Nonetheless, this method is inflexible because the network is compelled to share lower layers and knowledge transfer occurs only at the upper layers within a single model rather than other models, limiting the extra knowledge and the performance. The gate module is not a guarantee of high quality soft target.
+
+Self-distillation [6] shows that distilling a converged teacher model into a student model of identical network architecture can further improve the generalization ability compared to the teacher. The efficacy of self-distillation and online distillation leads us to the following question: Could we use a small network to improve the model with larger capacity in a one-stage distillation framework?
+
+In this work, we propose a novel online knowledge distillation method via collaborative learning. In KDCL, student networks with different capacities learn collaboratively to generate high-quality soft target supervision, which distills the additional knowledge to each student as illustrated in Fig.1d. The high-quality soft target supervision aims at instructing students with significant performance gaps to consistently converge with higher generalization ability and less variance to the input perturbation in the data domain.
+
+The major challenge is to generate soft target supervision that can boost the performance of all students with high confidence, which have different learning capacities or significant performance gaps. Ensembling tends to yield better results when diversity presents among the outputs of models [14]. Therefore, we propose to generate high-quality soft target supervision by carefully ensembling the output of students with the information of ground truth in an online manner. Furthermore, we propose to estimate generalization error by measuring model on the validation set. The soft target is generated for stronger generalization ability on the validation set.
+
+For improving invariance against perturbations in the input data domain, the soft target should encourage the students to output similarly with similar distorted input images. Therefore, students are fed with the images, which are individually perturbed from identical inputs, and the soft target is generated by combining the outputs and fusing the information of data augmentation. In this case, the benefits of model ensembling are further exploited.
+
+To evaluate the effect of KDCL, we conduct extensive experiments on benchmarks for image classification, CIFAR-100 [13] and ImageNet-2012 [4]. We demonstrate that, with KDCL, ResNet-50 [8] and ResNet-18 trained in pair achieve $77.8\%$ and $73.1\%$ val accuracy. ResNet-18 outperforms the baseline by $1.9\%$ and ResNet-50 gains $1.0\%$ improvement as a benefit of the extra knowledge from ResNet-18. We also verify that models pre-trained with
+
+KDCL transfer well to object detection and semantic segmentation on the COCO dataset [17].
+
+Our contributions are listed as follows.
+
+- A new pipeline of knowledge distillation based on collaborative learning is designed. Models of various learning capacity can benefit from collaborative training.
+- A series of model ensembling methods are designed to dynamically generate high-quality soft targets in a one-stage online knowledge distillation framework.
+- Invariance against perturbations in the input domain is enhanced by transferring knowledge and fusing the output of images with different distortion.
+
+# 2. Related work
+
+Knowledge transfer for the neural network is advocated by [2, 10] to distill the knowledge from teacher to student. An obvious way is to let the student imitate the output of the teacher model. [2] proposes to improve shallow networks by penalizing the difference of logits between the student and the teacher. [10] realizes knowledge distillation by minimizing the Kullback-Leibler (KL) divergence loss of their output categorical probability.
+
+Structure knowledge Based on the pioneering work, many methods have been proposed to excavate more information from the teacher. [20] introduces more supervision by further exploiting the feature of intermediate hidden layers. [31] defines additional attention information combined with distillation. [18] mines mutual relations of data examples by distance-wise and angle-wise losses. [23] establishes an equivalence between Jacobian matching and distillation. [9] transfers more accurate information via the route to the decision boundary. A few recent papers about self-distillation [29, 3, 6, 28] have shown that a converged teacher model supervising a student model of identical architecture could improve the generalization ability over the teacher. In contrast to mimicking complex models, KDCL involves all networks in learning and provides hint via fusing the information of the students. Without any additional loss for intermediate layers, KDCL reduces the difficulty of optimizing model.
+
+Collaborative learning In online distillation framework, students imitate the teacher in the training process. DML [32] suggests peer students learn from each other through the cross-entropy loss between each pair of students. Co-distillation [1] is similar to DML, whereas it forces student networks to maintain their diversity longer by adding distillation loss after updating enough steps. Inspired by self-distillation, training a multiple branch variant of the target network is proposed to establish a strong teacher on-the-fly. ONE [15] constructs multiple branch classifiers and trains a gate controller to align the teacher's prediction. CLNN [22] promotes the diversity of each
+
+
+Figure 2: Overview of knowledge distillation via collaborative learning (KDCL). We input images distorted separately for each network to increase the invariance against perturbations in the data domain. KDCL dynamically ensembles soft target produced by all students to improve students consistently. $h(x, \epsilon)$ means random distortion and $\epsilon$ is the random seed.
+
+branch by a hierarchical multiple branch design and proposes to scale the gradient accordingly. Different from generating a soft target by averaging the logits, which the above methods adopt, KDCL is proposed to generate a soft target dynamically to improve all students, even with significant performance gaps. The soft target is also designed to improve invariance in the input data domain.
+
+**Ensemble method** Our work is also related to network ensemble approaches. Majority Voting, Stacked Generalization [27], GASEN [33], and Super Learner [12] explicitly select reliable prediction. Dropout [24], Drop-Connection [26] and Stochastic Depth [11] generally create exponent numbers of with shared weights during training and then average them at test time. Our method focuses on fusing information of students and guaranteeing the quality of soft target to improve the generalization ability of students.
+
+# 3. Collaborative Learning for Knowledge Distillation
+
+# 3.1. Background
+
+Knowledge distillation is to optimize the student network under the supervision of the teacher network. More precisely, the loss is the KL divergence of the soften output of teacher network and student network as [10] defines
+
+$$
+L _ {K D} = \frac {1}{n} \sum_ {i = 1} ^ {n} T ^ {2} K L \left(\mathbf {p} _ {i}, \mathbf {q} _ {i}\right), \tag {1}
+$$
+
+where $n$ is the batch size, $T$ is the temperature parameter, $\mathbf{p}$ and $\mathbf{q}$ represent the soften probability distribution produced by teacher network and student network. We note
+
+| Teacher Model | Teacher Top-1 | Student Top-1 |
| ResNet-34 | 73.5 | 70.8 |
| ResNet-50 | 76.5 | 71.2 |
| ResNet-101 | 77.9 | 71.4 |
+
+Table 1: Top-1 accuracy on ImageNet-2012 validation set. The second column is the pre-trained teacher model's performance, and the third one is student model accuracy trained with KD loss. The student gets $70.1\%$ accuracy supervised by the hard target.
+
+the logit of student and teacher as $\mathbf{z}_s$ and $\mathbf{z}_t$ . Then $\mathbf{q} = \text{softmax}(\mathbf{z}_s / T)$ and the soft target $\mathbf{p} = \text{softmax}(\mathbf{z}_t / T)$ .
+
+A high-quality teacher is important for optimizing a good student. If the teacher is not well optimized and provides noisy supervision, the risk that soft target and ground truth conflict with each other becomes high. We evaluate the impact of teacher quality using ResNet-18 [8] as the student model on ImageNet dataset. All the teacher models and student models are trained for 100 epochs. In Tab. 1, the performance of the same student network is compared under the supervision of different teacher models. When the teacher size is not too large for the student, teacher's performance increases, thus it provides better supervision for the student by being a better predictor.
+
+# 3.2. Our method
+
+Overview. We propose KDCL to automatically generate a soft target in an online manner, as illustrated in Fig. 2. The framework can be viewed as a super network composed of multiple individual sub-networks. The raw images are augmented separately with different random seeds, and the soft target is generated to supervise all networks. We propose
+
+a series of methods to generate a soft target, which ensures that students with different capacity benefit from collaborative learning and enhances the invariance of the network against input perturbations. Note that all the models can predict independently, so the improvement does not incur additional test computational cost.
+
+Loss function To improve the generalization performance, we distill the knowledge of soft target to each sub-network via the KD loss. All the sub-networks are trained from scratch. With the standard cross-entropy loss, all the networks are trained end-to-end with a multi-task loss function:
+
+$$
+L = \sum_ {i = 1} ^ {m} L _ {C E} ^ {i} + \lambda L _ {K D} ^ {i}, \tag {2}
+$$
+
+where $L_{KD}$ is the KL divergence between the output of students and the soft target and $\lambda$ is the trade-off weight.
+
+KDCL-Naive. In our framework, all the models are student models and the supervision is generated by combining the output of the models. Assuming that there are $m$ subnetworks, the logit of the $k$ -th sub-network is defined as $\mathbf{z}_k$ . The teacher logit $\mathbf{z}_t$ is expressed as
+
+$$
+\mathbf {z} _ {t} = h \left(\mathbf {z} _ {1}, \mathbf {z} _ {2}, \dots , \mathbf {z} _ {m}\right), \tag {3}
+$$
+
+where $h$ is a function to produce higher quality logit compared with the logits of students. Assuming that training samples and test samples follow the same distribution, a model predicting with less loss on training set encourages students to converge faster.
+
+A naive combination method is to choose the logit with the smallest cross-entropy loss among all students, which can be defined as
+
+$$
+\mathbf {z} _ {t} = \mathbf {z} _ {k}, k = \underset {i} {\arg \min } L _ {C E} (\mathbf {z} _ {i}, \mathbf {y}), \tag {4}
+$$
+
+where $\mathbf{y}$ is the one-hot label and $L_{CE}$ is the standard cross-entropy loss.
+
+KDCL-Linear. The naive combination is easy to implement, but the teacher logit is not quality enough. KDCL-Linear defines the teacher logit as the best linear combination of sub-network logits, which is a simple but useful information fusion. Finding out the best linear combination can be treated as an optimization problem. Let matrix $\mathbf{Z} = (\mathbf{z}_1^T;\mathbf{z}_2^T;\dots;\mathbf{z}_m^T)$ . Each column of the matrix $\mathbf{Z}$ represents the logit of a student. The problem can be illustrated as follow:
+
+$$
+\min _ {\alpha \in \mathbb {R} ^ {m}} L _ {C E} \left(\alpha^ {T} \mathbf {Z}, \mathbf {y}\right), \text {s u b j e c t} \sum_ {i = 1} ^ {m} \alpha_ {i} = 1, \alpha_ {i} \geq 0 \tag {5}
+$$
+
+Eq. 5 is a convex optimization problem and is easy to solve.
+
+KDCL-MinLogit. The KDCL-Linear incurs another optimization problem during training, whereas we hope network ensemble is efficient. As an alternative, we propose the KDCL-MinLogit method to generate the soft target. The difference between values in logit decides the probability distribution produced by the softmax function. Therefore the output probability is expressed as
+
+$$
+\mathbf {p} = \operatorname {s o f t m a x} (\mathbf {z}) = \operatorname {s o f t m a x} \left(\mathbf {z} - z ^ {c}\right), \tag {6}
+$$
+
+where $z^c$ is the element corresponding to target class $c$ in logit. Define $\mathbf{z}^c = \mathbf{z} - z^c$ , then the $c$ -th element of $\mathbf{z}^c$ is 0 for all sub-networks. When the other elements in logit become smaller, the cross-entropy loss with the one-hot label will decrease. Then a neat way to generate teacher logit is to select the minimum element of each row of matrix $\mathbf{Z}^c$ , which can be defined as $\mathbf{Z}^c = (\mathbf{z}_1^c, \mathbf{z}_2^c, \dots, \mathbf{z}_m^c)$ . More precisely, the teacher logit can be expressed as
+
+$$
+z _ {t, j} = \min \left\{Z _ {j, i} ^ {c} | i = 1, 2, \dots , m \right\}, \tag {7}
+$$
+
+where $z_{t,j}$ is the j-th element of soft target $\mathbf{z}_t$ and $Z_{j,i}^c$ is the element of the j-th row and i-th column in $\mathbf{Z}^c$ . This method is compatible with mainstream deep learning frameworks.
+
+KDCL-General. The teacher with more generalization ability usually instructs the students to converge better. Performance on the validation dataset can be viewed as a measure of generalization ability. Therefore, we propose to find an optimal ensemble of the $m$ component networks to approximate the general teacher. We randomly pick $N$ examples from the training set to construct the validation set $\mathcal{D}_v$ and the predictions of the component networks are combined through weighted average. The weight should satisfy $w_i\in [0,1]$ $(i = 1,2,\dots,m)$ and $\sum_{i = 1}^{m}w_{i} = 1$ . In this setup, we focus on measuring the generalization ability directly, so the probability is discussed rather than the logit. The generalization error on the input $\mathbf{x}$ is defined as
+
+$$
+E (\mathbf {x}) = (f (\mathbf {x}) - t) ^ {2}, \tag {8}
+$$
+
+where $f(\mathbf{x})$ is the prediction probability of target class and $t$ is the ground truth. The generalization error of the ensemble network can be expressed as
+
+$$
+\begin{array}{l} E = \int_ {\mathbb {m}} \left(\sum_ {i = 1} ^ {m} w _ {i} f _ {i} (\mathbf {x}) - t\right) ^ {2} p (\mathbf {x}) d \mathbf {x} \tag {9} \\ = \sum_ {i = 1} ^ {m} \sum_ {j = 1} ^ {m} w _ {i} w _ {j} C _ {i j}, \\ \end{array}
+$$
+
+where $p(\mathbf{x})$ is the data distribution and $C_{ij}$ is expressed as
+
+$$
+\begin{array}{l} C _ {i j} = \int \left(f _ {i} (\mathbf {x}) - t\right) \left(f _ {j} (\mathbf {x}) - t\right) p (\mathbf {x}) d \mathbf {x} \\ \approx \frac {1}{N} \sum_ {k = 1} ^ {N} \left(f _ {i} \left(\mathbf {x} _ {k}\right) - t\right) \left(f _ {j} \left(\mathbf {x} _ {k}\right) - t\right) \tag {10} \\ \end{array}
+$$
+
+In general, the distribution of data is unknown or intractable. Hence the empirical distribution is adapted as an approximation. According to Eq. 9 and the constraint on weight, the optimum weight $\mathbf{w}$ can be solved by the Lagrange multiplier as follow:
+
+$$
+w _ {k} = \frac {\sum_ {j = 1} ^ {m} C _ {k j} ^ {- 1}}{\sum_ {i = 1} ^ {m} \sum_ {j = 1} ^ {m} C _ {i j} ^ {- 1}}, \tag {11}
+$$
+
+where $w_{k}$ is the $k$ -th element of the optimum weight $\mathbf{w}$ and $C_{ij}^{-1}$ is the value of the $i$ -th row and the $j$ -th column of the inverse matrix of $\mathbf{C}$ .
+
+Measuring the generalization error incurs the little computational cost and updating the parameters of the neural network a few steps does not change the output drastically due to the small learning rate. Consequently, we update the optimal weight vector $\mathbf{w}$ after each training epoch. Moreover, without any prior knowledge, we assume all the component networks have equal weight $\frac{1}{m}$ in initialization and the soft target is the weighted average probability distribution.
+
+Invariant collaborative learning. In order to improve invariance against the perturbations in the data domain, we generate identical soft target for all students fed with similar distorted images. Therefore, we randomly sample images with the same data augmentation policy for each subnetwork and fuse the knowledge with the above ensemble methods. This method increases the amount and diversity of training data. With the knowledge of the additional training data, the soft target encourages the sub-networks to have a lower generalization error.
+
+# 4. Experiments
+
+In this section, we perform a series of experiments to evaluate our training mechanism on image classification benchmarks and conduct transfer experiments on COCO dataset [17], a widely used benchmark in the field of object detection and segmentation.
+
+# 4.1. Results on ImageNet
+
+In experiments on ImageNet, we analyze the effectiveness of our method of generating soft target based on the student pair, ResNet-50 and ResNet-18, and evaluate a series of network architectures on ImageNet.
+
+Dataset and training details. ImageNet dataset contains 1000 object classes with about 1.28 million images for training and 50,000 images for validation. We separate 20,000 images from the train set, 20 samples on each class, as the validation set to measure the generalization ability of sub-network for KDCL-General. So the original validation set is treated as the test set.
+
+We follow the ResNet training procedure. The learning rate starts at 0.1 and warms up to 0.8 linearly after 5
+
+| Method | ResNet-50 | ResNet-18 | Gain |
| Vanilla | 76.8 | 71.2 | 0 |
| KD[10] | 76.8 | 72.1 | 0.9 |
| DML[32] | 75.8 | 71.7 | -0.5 |
| ONE[15] | - | 72.2 | - |
| CLNN[22] | - | 72.4 | - |
| KDCL-Naive | 77.5 | 72.9 | 2.4 |
| KDCL-Linear | 77.8 | 73.1 | 2.9 |
| KDCL-MinLogit | 77.8 | 73.1 | 2.9 |
| KDCL-General | 77.1 | 72.0 | 1.1 |
+
+Table 2: Top-1 accuracy rate (\%) on ImageNet. All the models are reimplemented with our training procedure for a fair comparison. Gain indicates the sum of the component student network improvement. ONE and CLNN are incompatible with different network structures. Therefore, only the accuracy of ResNet-18 is compared.
+
+| Method | Top-1 | Top-5 | Params |
| Vanilla | 71.2 | 90.0 | 11.7M |
| ONE[15] | 72.2 | 90.6 | 29.5M |
| KDCL MobileNetV2x1.2 | 72.9 | 90.8 | 16.4M |
| CLNN[22] | 72.4 | 90.7 | 40.5M |
| KDCL ResNet-50 | 73.1 | 91.2 | 37.2M |
+
+Table 3: Top-1 and Top-5 accuracy rate $(\%)$ on ImageNet. The backbone is ResNet-18. ONE is trained with 3 branches (Res4 block) and CLNN has a hierarchical design with 4 heads. For KDCL, ResNet-18 is trained with a peer network.
+
+epochs. We set the weight decay to 0.0001, the batch size to 2048, and the momentum is 0.9. All the ResNet models are trained for 200 epochs and the learning rate drop by 0.1 at 60, 120, and 180 epoch. As a default, the MobileNetV2 [21] models are optimized for 300 epochs by stochastic gradient descent (SGD) with a warm-up learning rate to 0.8 and decay it by 0.1 at 90, 180 and 270 epoch. We apply the scale and aspect ration augmentation and the photometric distortions [25]. During test time, the images are scaled to $256 \times 256$ followed by a $224 \times 224$ center crop.
+
+Quantitative comparison. Tab. 2 shows top-1 accuracy rate on ImageNet. KD indicates Knowledge Distillation [10]. DML represents the Deep Mutual Learning [32]. ONE [15] and CLNN [22] are self-distillation methods, which are incompatible with different network structures. Therefore, only the accuracy of ResNet-18 is compared.
+
+From the results in Tab. 2, we can make the following key observations. DML can generate an appropriate soft target for the compact model but harm the complex model when there is a significant performance gap, as the prediction of compact model conflicts with the complex model and ground truth. KDCL-Linear outperforms KDCL-Naive as a result of the higher quality soft target.
+
+| Model 1 | Top-1 | Model 2 | Top-1 | Method |
| MBV2 | 72.0 | MBV2x0.5 | 64.8 | Vanilla |
| MBV2 | 73.1 | MBV2x0.5 | 66.2 | Linear |
| MBV2 | 73.1 | MBV2x0.5 | 66.3 | MinLogit |
| ResNet-18 | 71.2 | MBV2x0.5 | 64.8 | Vanilla |
| ResNet-18 | 71.8 | MBV2x0.5* | 65.6 | Linear |
| ResNet-18 | 71.9 | MBV2x0.5* | 65.6 | MinLogit |
| ResNet-18 | 71.2 | MBV2 | 72.0 | Vanilla |
| ResNet-18 | 72.1 | MBV2* | 72.8 | Linear |
| ResNet-18 | 72.2 | MBV2* | 72.8 | MinLogit |
| ResNet-50 | 76.8 | MBV2x0.5 | 64.8 | Vanilla |
| ResNet-50 | 77.5 | MBV2x0.5* | 67.1 | Linear |
| ResNet-50 | 77.7 | MBV2x0.5* | 66.8 | MinLogit |
| ResNet-50* | 76.5 | ResNet-18* | 71.2 | Vanilla |
| ResNet-50* | 76.8 | ResNet-18* | 72.0 | Linear |
| ResNet-50* | 77.0 | ResNet-18* | 72.1 | MinLogit |
+
+Table 4: The comparative result of different sub-network on ImageNet validation set. MBV2 is the abbreviation of MobileNetV2. MBV2x0.5 represents the width multiplier is 0.5. ResNet-50* and ResNet-18* are trained for 100 epochs. MBV2* and MBV2x0.5* are trained for 200 epochs.
+
+KDCL-MinLogit can be more efficient and the performance is equal to KDCL-Linear. The result of KDCL-General is not good enough because of the imprecise estimates. The weight for ensembling the prediction is updated each epoch rather than each iteration to save computational cost, so the generated soft target is not as good as KDCL-Linear and KDCL-MinLogit.
+
+Following the setting of ONE [15] and CLNN [22], the low-level layers are shared to save parameters. Multiple branches are ensembled, which are equal to several identical networks. For a fair comparison, we choose a single model as the peer network with fewer parameters than the multiple branch architecture. Our method surpasses the complex ONE with gate controller predicting learnable ensemble logits and carefully designed CLNN with hierarchical architecture as shown in Tab. 3. The result proves that ONE and CLNN are limited with extra knowledge due to the multi-branch design.
+
+Our proposed method applies to various architectures. Therefore, we conduct experiments on the complex-compact pair and compact-compact pair. Tab. 4 shows that the more compact model MobileNetV2×0.5 can provide hint for MobileNetV2, ResNet-18 and even ResNet-50 because the compact model can beat the complex model on some samples as illustrated in Fig. 3. MobileNetV2×0.5 with 1.9M parameters helps to improve ResNet-50 with 25.6M. The fact proves our approach is suitable for the situation that there is a significant performance gap between
+
+
+Figure 3: The comparison of ResNet-50 and ResNet-18 on the part categories of ImageNet validation set.
+
+| Network | 1 | 2 | 3 | 4 | 5 |
| Top-1 (%) | 70.1 | 71.3 | 71.61 | 71.75 | 71.87 |
+
+Table 5: KDCL benefits from ensembling more sub-networks. All the networks are ResNet-18 to prevent the impact of network performance differences.
+
+| Model | Res-50 | Res-18 | MBV2 | MBV2x0.5 | Gain |
| Vanilla | 76.8 | 71.2 | 72.0 | 64.8 | 0 |
| KDCL | 78.2 | 73.5 | 74.0 | 66.9 | 7.8 |
+
+Table 6: Top-1 accuracy rate (\%) on ImageNet. ResNet-50 is significantly improved with the knowledge from three compact models.
+
+models. Long training runs can improve accuracy by providing more various soft targets by randomly distorting the training images. Therefore, the top-1 accuracy of ResNet-50 and ResNet-18 is further increased by $0.8\%$ and $1.0\%$ for another 100 training epochs.
+
+Ensemble more models. The main experiments show good results using two sub-networks. We also prove that assembling more models generally give better accuracy. Tab. 5 shows that assembling two sub-networks can outperform the baseline model with a remarkable margin. KDCL scales well with more sub-networks but the gain decreases as the networks increase. We conjecture that the mutual information between the strong ensemble network and the additional network increases as the ensemble size raises. Experiments are further conducted when utilizing neural networks with different capacities on ImageNet. Tab. 6 shows that ResNet-50 achieves $78.2\%$ top-1 accuracy with knowledge from three compact models.
+
+# 4.2. Results on CIFAR
+
+Dataset and training details. CIFAR-100 consists of $32 \times 32$ color images containing 100 classes. The dataset
+
+| Method | ICL | ResNet-32 Acc % | WRN-16-2 Acc % | Gain |
| Vanilla | | 69.9 | 72.2 | 0 |
| 2 distill 1 [10] | | 73.3 | 72.2 | 3.4 |
| 1 distill 2 [10] | | 69.9 | 74.5 | 2.3 |
| DML [32] | | 73.3 | 74.8 | 6.0 |
| ONE [15] | | 73.6 | - | - |
| CLNN [22] | | 73.4 | - | - |
| KDCL-Naive | | 73.7 | 74.8 | 6.4 |
| KDCL-Naive | ✓ | 73.8 | 74.9 | 6.6 |
| KDCL-Linear | | 73.4 | 74.6 | 5.9 |
| KDCL-Linear | ✓ | 73.6 | 74.9 | 6.4 |
| KDCL-MinLogit | | 73.0 | 74.1 | 5.0 |
| KDCL-MinLogit | ✓ | 73.5 | 74.6 | 6.0 |
| KDCL-General | | 74.0 | 75.2 | 7.1 |
| KDCL-General | ✓ | 74.3 | 75.5 | 7.7 |
+
+Table 7: The comparative and ablative result of our generate distillation method on CIFAR-100 dataset. ICL is invariant collaborative learning. We only report the accuracy of ResNet-32 as ONE and CLNN are incompatible with WRN-16-2.
+
+is split into a training set with 50,000 images and a test set with 10,000 images. For KDCL-General, we separate 5,000 images from the training set, 50 samples on each class, as the validation set to measure the generalization ability of students. All the models are trained for 200 epochs with learning rate starting at 0.1 and the learning rate drops by 0.1 at 100 and 150 epoch. We set the weight decay to 0.0005, batch size to 128, and the momentum is 0.9. All the training images are padded with 4 pixels and a $32 \times 32$ crop is randomly sampled from the padded images or its horizontal flip. The temperature $T$ and $\lambda$ are 2 and 1 separately. Accuracy is computed as the median of 5 runs.
+
+Knowledge distillation relieves over-fitting. The second and third row of Tab. 7 show that the student model becomes more general for knowledge distillation, even surpasses the teacher model. For distillation (2nd row in Tab. 7) from Wide-ResNet-16 [30] with a widening factor 2 (WRN-16-2) to ResNet-32, we observe that the accuracy of the student network ResNet-32 is $93.37\%$ on the train set, behind the teacher network WRN-16-2 $99.39\%$ , while the test error is lower than WRN-16-2. This phenomenon demonstrates the knowledge distillation can relieve overfitting.
+
+Quantitative comparison. Most of our proposed methods outperform DML as a result of the effective learning mechanism and the end-to-end training manner compared with multi-stage parameters updating. An interesting phenomenon is observed that KDCL-MinLogit and KDCL-Linear do worse than KDCL-Naive, which conflicts with
+
+| Backbone | Type | box mAP | mask mAP |
| ResNet-18 (BaseLine) | Faster | 32.2 | - |
| ResNet-18 (Our) | Faster | 33.1 | - |
| ResNet-18 (BaseLine) | Mask | 33.4 | 30.7 |
| ResNet-18 (Our) | Mask | 34.0 | 31.3 |
+
+Table 8: Average precision (AP) on COCO 2017 validation set with pre-trained ResNet-18. All models are used as backbones for Faster-RCNN [19], Mask-RCNN [7] based on FPN [16].
+
+the results on ImageNet. We conjecture that the soft target with less cross-entropy loss on CIFAR-100 train set leads to over-fitting like the one-hot label. KDCL-General significantly improves the performance by the more general teacher model according to the optimal weighted average on the validation set. This result proves that our approaches can further improve the ability of knowledge distillation to alleviate over-fitting. It also shows that there is a trade-off between the fitting ability and generalization ability when the amount of data is limited.
+
+The ablation study in Tab. 7 shows that invariant collaborative learning is promising. The improvement comes from fusing information of different distorting images and the shared soft target also encourages the sub-network to output similarly with similar input.
+
+# 4.3. Transfer Learning
+
+Dataset and training details. We follow the commonly used practice [19, 7] to divide the $40\mathrm{k}$ validation set into a $35\mathrm{k}$ and $5\mathrm{k}$ subset. The training set containing $80\mathrm{k}$ images and the $35\mathrm{k}$ subset are used for training. The $5\mathrm{k}$ subset that denoted as minival set is used to validate our result. All the models are trained for 14 epochs on 8 GPUs with 4 images on each GPU. The learning rate starts at 0.04 and is decayed by 0.1 at 9 and 12 epoch. The weight decay is 0.0001 and momentum is 0.9. To fully utilize the capacity of the model, all the batch normalization layers are in sync mode and no weight is frozen. We replace ROI-Pooling with ROIAlign [7] for better results by default.
+
+Results. Tab. 8 reports that the validation set performance of object detection and instance segmentation on standard AP metric (corresponds to the average AP for IOU from 0.5 to 0.95 with a step size of 0.05.). Based on ResNet-18 trained with KDCL, the detection head outperforms baseline by $0.9\%$ . Our proposed learning mechanism also brings improvements on instance segmentation by $0.6\%$ . The improvements come from the more powerful generalization. In summary, this set of experiments demonstrates that the improvements induced by our learning mechanism can be realized across a broad range of tasks and datasets.
+
+# 5. Analysis
+
+Definition of generalisation error. The L2-norm for generalisation error (Eq.8) is for simplicity and results in a neat analytic solution, which is easy and efficient to implement. Actually Eq. 11 holds as long as the function $E(\mathbf{x}) = g(f_i(\mathbf{x}), t)$ is convex and nonnegative (e.g. cross entropy loss). We can derive this using Jensen's inequality as follow:
+
+$$
+\begin{array}{l} E (\mathbf {x}) = g \left(\sum_ {i} ^ {m} w _ {i} f _ {i} (\mathbf {x}), t\right) \leq \left(\sum_ {i} ^ {m} w _ {i} g \left(f _ {i} (\mathbf {x}), t\right)\right) = E ^ {\prime} (\mathbf {x}) \\ E ^ {\prime 2} = \int E ^ {\prime} (\mathbf {x}) p (\mathbf {x}) d \mathbf {x} = \sum_ {i} ^ {m} \sum_ {j} ^ {m} w _ {i} w _ {j} C _ {i j} \\ C _ {i j} = \int g \left(f _ {i} (\mathbf {x}), t\right) g \left(f _ {j} (\mathbf {x}), t\right) p (\mathbf {x}) d \mathbf {x}, \tag {12} \\ \end{array}
+$$
+
+Minimizing the upper boundary $E^{\prime}$ can reduce the generalization error.
+
+Sensitivity to loss hyper-parameter. In the main experiments, we simply set the hyper-parameter $\lambda$ to 1, aimed to highlight the effectiveness of KDCL. The results in Tab. 9 show that performance is insensitive to the choice of $\lambda$ over a large range from $\frac{1}{5}$ to 5, yet a carefully adjusted hyperparameter does bring some extra performance gain.
+
+| λ | 0.1 | 0.2 | 0.5 | 1 | 2 | 5 | 10 |
| R | 71.5 | 73.3 | 73.8 | 74.3 | 74.7 | 74.0 | 72.9 |
| W | 73.9 | 74.5 | 75.0 | 75.5 | 76.1 | 74.9 | 74.5 |
+
+Table 9: The model pair ResNet-32 and WRN-16-2 is trained with KDCL-General method on CIFAR-100.
+
+Sensitivity to data augmentation policies. We adopted Cutout[5], which yields state-of-the-art results, to evaluate our method on CIFAR-100. The results in Tab. 10 the following table proves that our method is insensitive to the choice of data augmentation.
+
+| Method | ICL | ResNet-32 | WRN-16-2 |
| Vanilla | | 72.3 | 74.3 |
| KDCL | | 74.3 | 75.5 |
| KDCL | √ | 74.6 | 75.8 |
+
+Table 10: The model pair is trained with Cutout policy.
+
+How does ICL contribute? Invariant collaborative learning (ICL) leads to similar class probability predictions, meaning small intra-class distance. We measure the similarity of predictions by calculating the standard deviation of probability predictions of each class. The comparison is based on ResNet-32 and WRN-16-2 trained on CIFAR-100.
+
+
+
+
+Figure 4: The curve of loss gap from KDCL-General to baseline and DML on CIFAR-100. The robustness test is based on ResNet-32 solutions found by KDCL, DML and Vanilla training.
+
+The averages of the standard deviation are 0.347 and 0.343. ICL reduces the averages to 0.337 and 0.336.
+
+Robustness to Noise. We bring the noise to the testing images and observe that our method is robust to random noise. The noise is sampled from independent Gaussian distribution $\mathcal{N}(0, \delta^2)$ and added to each pixel. The std $\delta$ is set ranging from 0.0 to 0.15 by step 0.01. At each magnitude scale, the loss is the average of 10 independent tests. Fig. 4 shows that the loss gap from KDCL to baseline and DML becomes more significant with the increasing of $\delta$ .
+
+# 6. Conclusion
+
+In this work, we introduce a novel online knowledge distillation framework based on collaborative learning strategy. With our ensemble method, models of various capacity can benefit from collaborative learning. Further, we improve the invariance by transferring knowledge via fusing information of image distorting. Experiments on ImageNet, CIFAR, and COCO show that KDCL significantly reduces the generalization error while keeping that students predict independently. The performance gain persists when the trained model is fine-tuned on other vision tasks. KDCL could be further extended to other recognition tasks and may help to optimize the collaborative learning of multiple relative tasks, like joint human parsing and pose estimation.
+
+Acknowledgments This work was partially supported by HKU Seed Fund for Basic Research, Start-up Fund, Research Donation from SenseTime, the National Natural Science Foundation of China under Grant Nos. U19B2034 and 61836014.
+
+# References
+
+[1] Rohan Anil, Gabriel Pereyra, Alexandre Passos, Robert Ormandi, George E Dahl, and Geoffrey E Hinton. Large scale distributed neural network training through online distillation. arXiv preprint arXiv:1804.03235, 2018. 2
+[2] Jimmy Ba and Rich Caruana. Do deep nets really need to be deep? In Advances in neural information processing systems, pages 2654-2662, 2014. 2
+[3] Hessam Bagherinezhad, Maxwell Horton, Mohammad Rastegari, and Ali Farhadi. Label refinery: Improving image-net classification through label progression. arXiv preprint arXiv:1805.02641, 2018. 2
+[4] J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. ImageNet: A Large-Scale Hierarchical Image Database. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2009. 2
+[5] Terrance DeVries and Graham W Taylor. Improved regularization of convolutional neural networks with cutout. arXiv preprint arXiv:1708.04552, 2017. 8
+[6] Tommaso Furlanello, Zachary C Lipton, Michael Tschannen, Laurent Itti, and Anima Anandkumar. Born again neural networks. arXiv preprint arXiv:1805.04770, 2018. 2
+[7] Kaiming He, Georgia Gkioxari, Piotr Dollar, and Ross Girshick. Mask r-cnn. In The IEEE International Conference on Computer Vision (ICCV), Oct 2017. 7
+[8] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 770-778, 2016. 2, 3
+[9] Byeongho Heo, Minsik Lee, Sangdoo Yun, and Jin Young Choi. Knowledge distillation with adversarial samples supporting decision boundary. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 3771-3778, 2019. 2
+[10] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. 1, 2, 3, 5, 7
+[11] 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. 3
+[12] Cheng Ju, Aurélien Bibaut, and Mark van der Laan. The relative performance of ensemble methods with deep convolutional neural networks for image classification. Journal of Applied Statistics, 45(15):2800-2818, 2018. 3
+[13] Alex Krizhevsky. Learning multiple layers of features from tiny images. 2009. 2
+[14] Ludmila I Kuncheva and Christopher J Whitaker. Measures of diversity in classifier ensembles and their relationship with the ensemble accuracy. Machine learning, 51(2):181-207, 2003. 2
+[15] Xu Lan, Xiatian Zhu, and Shaogang Gong. Knowledge distillation by on-the-fly native ensemble. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, pages 7528-7538. Curran Associates Inc., 2018. 1, 2, 5, 6, 7
+
+[16] Tsung-Yi Lin, Piotr Dollar, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. Feature pyramid networks for object detection. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017. 7
+[17] 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, 5
+[18] Wonpyo Park, Dongju Kim, Yan Lu, and Minsu Cho. Relational knowledge distillation. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2
+[19] 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. 7
+[20] Adriana Romero, Nicolas Ballas, Samira Ebrahimi Kahou, Antoine Chassang, Carlo Gatta, and Yoshua Bengio. Fitnets: Hints for thin deep nets. arXiv preprint arXiv:1412.6550, 2014. 2
+[21] Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zh-moginov, and Liang-Chieh Chen. Mobilenetv2: Inverted residuals and linear bottlenecks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4510-4520, 2018. 5
+[22] Guocong Song and Wei Chai. Collaborative learning for deep neural networks. In Advances in Neural Information Processing Systems, pages 1832-1841, 2018. 2, 5, 6, 7
+[23] Suraj Srinivas and Francois Fleuret. Knowledge transfer with Jacobian matching. In Jennifer Dy and Andreas Krause, editors, Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pages 4723-4731, Stockholm, Sweden, 10-15 Jul 2018. PMLR. 2
+[24] 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. 3
+[25] Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1-9, 2015. 5
+[26] Li Wan, Matthew Zeiler, Sixin Zhang, Yann Le Cun, and Rob Fergus. Regularization of neural networks using dropconnect. In International conference on machine learning, pages 1058-1066, 2013. 3
+[27] David H Wolpert. Stacked generalization. Neural networks, 5(2):241-259, 1992. 3
+[28] Chenglin Yang, Lingxi Xie, Chi Su, and Alan L. Yuille. Snapshot distillation: Teacher-student optimization in one generation. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2
+[29] Junho Yim, Donggyu Joo, Jihoon Bae, and Junmo Kim. A gift from knowledge distillation: Fast optimization, network
+
+minimization and transfer learning. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4133-4141, 2017. 2
+[30] Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016. 7
+[31] Sergey Zagoruyko and Nikos Komodakis. Paying more attention to attention: Improving the performance of convolutional neural networks via attention transfer. In ICLR, 2017. 2
+[32] Ying Zhang, Tao Xiang, Timothy M Hospedales, and Huchuan Lu. Deep mutual learning. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4320-4328, 2018. 1, 2, 5, 7
+[33] Zhi-Hua Zhou, Jianxin Wu, and Wei Tang. Ensembling neural networks: many could be better than all. Artificial intelligence, 137(1-2):239-263, 2002. 3
\ No newline at end of file
diff --git a/onlineknowledgedistillationviacollaborativelearning/images.zip b/onlineknowledgedistillationviacollaborativelearning/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..698345919eacb6d76dfcb8aea105e2fe902ca76f
--- /dev/null
+++ b/onlineknowledgedistillationviacollaborativelearning/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f27976b834b1317403dbebd2c3e0179cb3a9c31810a8597d598a852f1e126c75
+size 509636
diff --git a/onlineknowledgedistillationviacollaborativelearning/layout.json b/onlineknowledgedistillationviacollaborativelearning/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..8d6e7d99ae0fd70762cba0401af87d707c15645f
--- /dev/null
+++ b/onlineknowledgedistillationviacollaborativelearning/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e4e37be12f942cc85b90072fe3219e55a899bfeecf8730d77ae3aa578c1abe44
+size 378919
diff --git a/oopspredictingunintentionalactioninvideo/eba7a938-1cd3-42d1-8fe9-33544b7fd031_content_list.json b/oopspredictingunintentionalactioninvideo/eba7a938-1cd3-42d1-8fe9-33544b7fd031_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..1d85a2cb86a7b83232cd94eec899849e3cef38ab
--- /dev/null
+++ b/oopspredictingunintentionalactioninvideo/eba7a938-1cd3-42d1-8fe9-33544b7fd031_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:35f4ea4b766d443b4770d0af0ef30a76d7def5c991c62cf9b02f46b5520f9e84
+size 85532
diff --git a/oopspredictingunintentionalactioninvideo/eba7a938-1cd3-42d1-8fe9-33544b7fd031_model.json b/oopspredictingunintentionalactioninvideo/eba7a938-1cd3-42d1-8fe9-33544b7fd031_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..d5881cb29d00672d91fd9e45ea049548816ae5a5
--- /dev/null
+++ b/oopspredictingunintentionalactioninvideo/eba7a938-1cd3-42d1-8fe9-33544b7fd031_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a0e9ee83fd2fd30dc1711733b08133f791636620d64a017e8c5fdef35c24be4a
+size 111576
diff --git a/oopspredictingunintentionalactioninvideo/eba7a938-1cd3-42d1-8fe9-33544b7fd031_origin.pdf b/oopspredictingunintentionalactioninvideo/eba7a938-1cd3-42d1-8fe9-33544b7fd031_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..674fc8101b569b512d1499d61b3cc76873d53903
--- /dev/null
+++ b/oopspredictingunintentionalactioninvideo/eba7a938-1cd3-42d1-8fe9-33544b7fd031_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:65a549f7d01989533bba4481b0588689f0a155ac15276848fe90ebe97ab64bf9
+size 2048674
diff --git a/oopspredictingunintentionalactioninvideo/full.md b/oopspredictingunintentionalactioninvideo/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..e8814f5044cf5c3f2dbd23a18233ee3c39e4580d
--- /dev/null
+++ b/oopspredictingunintentionalactioninvideo/full.md
@@ -0,0 +1,373 @@
+# 00PS! Predicting Unintentional Action in Video
+
+Dave Epstein Boyuan Chen Carl Vondrick Columbia University oops.cs.columbia.edu
+
+# Abstract
+
+From just a short glance at a video, we can often tell whether a person's action is intentional or not. Can we train a model to recognize this? We introduce a dataset of in-the-wild videos of unintentional action, as well as a suite of tasks for recognizing, localizing, and anticipating its onset. We train a supervised neural network as a baseline and analyze its performance compared to human consistency on the tasks. We also investigate self-supervised representations that leverage natural signals in our dataset, and show the effectiveness of an approach that uses the intrinsic speed of video to perform competitively with highly-supervised pretraining. However, a significant gap between machine and human performance remains.
+
+# 1. Introduction
+
+From just a glance at a video, we can often tell whether a person's action is intentional or not. For example, Figure 1 shows a person attempting to jump off a raft, but unintentionally tripping into the sea. In a classic series of papers, developmental psychologist Amanda Woodward demonstrated that this ability to recognize the intentionality of action is
+
+learned by children during their first year [72, 73, 7]. However, predicting the intention behind action has remained elusive for machine vision. Recent advances in action recognition have largely focused on predicting the physical motions and atomic actions in video [30, 20, 42], which captures the means of action but not the intent of action.
+
+We believe a key limitation for perceiving visual intentionality has been the lack of realistic data with natural variation of intention. Although there are now extensive video datasets for action recognition [30, 20, 42], people are usually competent, which causes datasets to be biased towards successful outcomes. However, this bias for success makes discriminating and localizing visual intentionality difficult for both learning and quantitative evaluation.
+
+We introduce a new annotated video dataset that is abundant with unintentional action, which we have collected by crawling publicly available "fail" videos from the web. Figure 2 shows some examples, which cover in-the-wild situations for both intentional and unintentional action. Our video dataset, which we will publicly release, is both large (over 50 hours of video) and diverse (covering hundreds of scenes and activities). We annotate videos with the temporal location at which the video transitions from intentional to unintentional action. We define three tasks on this dataset:
+
+
+Figure 1: Intentional versus Unintentional: Did this person intend for this action to happen, or was it an accident? In this paper, we introduce a large in-the-wild video dataset of unintentional action. Our dataset, which we have collected by downloading "fail" videos from the web, contains over twenty thousand clips, and they span a diverse number of activities and scenes. Using this dataset, we study a variety of visual clues for learning to predict intentionality in video.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 2: The $00\%$ ! Dataset: Each pair of frames shows an example of intentional and unintentional action in our dataset. By crawling publicly available "fail" videos from the web, we can create a diverse and in-the-wild dataset of unintentional action. For example, the bottom-left corner shows a man failing to see a gate arm, and the top-right shows two children playing a competitive game where it is inevitable one person will fail to accomplish their goal.
+
+
+
+
+
+
+
+classifying the intentionality of action, localizing the transition from intentional to unintentional, and forecasting the onset of unintentional action shortly into the future.
+
+To tackle these problems, we investigate several visual clues for learning with minimal labels to recognize intentionality. First, we propose a novel self-supervised task to learn to predict the speed of video, which is incidental supervision available in all unlabeled video, for learning an action representation. Second, we explore the predictability of the temporal context as a clue to learn features, as unintentional action often deviates from expectation. Third, we study the order of events as a clue to recognize intentionality, since intentional action usually precedes unintentional action.
+
+Experiments and visualizations suggest that unlabeled video has intrinsic perceptual clues to recognize intentionality. Our results show that, while each self-supervised task is useful, learning to predict the speed of video helps the most. By ablating model and design choices, our analysis also suggests that models do not rely solely on low-level motion clues to solve unintentional action prediction. Moreover, although human consistency on our dataset is high, there is still a large gap in performance between our models and human agreement, underscoring that analyzing human goals from videos remains a fundamental challenge in computer vision. We hope this dataset of unintentional and unconstrained action can provide a pragmatic benchmark of progress.
+
+This paper makes two primary contributions. Firstly, we introduce a new dataset of unconstrained videos containing a substantial variation of intention and a set of tasks on this dataset. Secondly, we present models that leverage a variety of incidental clues in unlabeled video to recognize intentionality. The remainder of this paper will describe these
+
+contributions in detail. Section 2 first reviews related work in action recognition. Then, Section 3 introduces our dataset and summarizes its statistics. Section 4 presents several self-supervised learning approaches to learn visual representations of intentionality. In Section 5, we present quantitative and qualitative experiments to analyze our model. We release all data, software, and models on the website.
+
+# 2. Related Work
+
+Video datasets: Computer vision has made significant progress in recognizing human actions through video analysis. Critical to this success are datasets of diverse videos released to facilitate this research [52, 6, 34, 55, 66, 29, 8, 1, 43, 53, 30, 19, 18, 13, 20, 42]. Most modern datasets are intended for discriminating between human activities to perform action classification and localization [48, 71, 2, 11, 28, 28, 4, 78]. In our paper, we instead focus on analyzing goal-directed human action [61], and propose a dataset that allows for learning about failed goals and the transition from intentional to unintentional action. Our dataset includes both human errors caused by imperfect action execution (e.g. physical interference, limited visibility, or limited knowledge) and human errors due to mistakes in action planning (e.g. flawed goals or inadequate reasoning). Unintentional action is related to, but very different from, abnormal action. In two-player games, one player must lose, which is unintentional but not abnormal. Many unintentional actions are also relatively common (e.g. slipping on ice), so they too are not abnormal.
+
+Action recognition and prediction: Our work builds on a large body of literature in action classification and predic
+
+
+(a) Video lengths
+
+
+(b) Failure label times
+(d) Video action classes
+(e) Video scene classes
+
+
+(c) Failure label standard deviations
+
+
+Figure 3: Dataset Statistics: We summarize our dataset with the (a) distribution of clip lengths, (b) the distribution of temporal locations where failure starts, and (c) the standard deviation between human annotators. The median and mean clip lengths are 7.6 and 9.4 seconds respectively. Median standard deviation of the labels given across three workers is $6.6\%$ of the video duration, about half a second, suggesting high agreement. We also show the distribution of (d) action categories and (e) scene categories, which naturally has a long tail. For legibility, we only display the top and bottom 5 most common classes for each. Figure best viewed on a computer screen with zoom.
+
+
+
+tion. Earlier research in action classification [36, 32, 65, 51, 47] focuses on designing features or descriptors for given input video frames. Recent progress has focused on using deep convolutional networks to solve these tasks, and many methods have been proposed to learn useful feature representations, such as visual information fusion [67, 9], two-stream CNNs [54], 3D convolutional networks that take in a chunk of video [58], and temporal reasoning for feature extraction [80, 15]. In this paper, we base our methods on 3D CNNs.
+
+Previous work which studies future action prediction in video is also relevant to predicting unintentionality [50, 46, 74, 24, 13]. Many methods rely on action label supervision, along with other auxiliary information, to predict future actions [77, 79]. Other approaches [62, 59, 75, 84] focus on leveraging large unlabeled datasets to learn visual representations useful for action anticipation.
+
+Self-supervised learning: Our work uses unlabeled video to learn useful representations without manual supervision. In recent years, self-supervision, which predicts information naturally present in data by manipulating or withholding part of the input, has become a popular paradigm for unsupervised learning. Various types of self-supervised signals have been used to learn strong visual representations, such as spatial arrangement [44], contextual information [14, 68], color [37, 64], the arrow of time [70, 75, 23, 38, 41, 17], future prediction [40, 63, 76, 45], consistency in motion [3, 26], view synthesis [83, 82], spatiotemporal coherence [60, 69, 16, 39, 35], and predictive coding [45, 57]. Learned representations are then used for other
+
+downstream tasks such as image classification, object detection, video clip retrieval, and action recognition. We introduce a new self-supervised pretext task to estimate video speed, which is effective for learning video representations. Other concurrent and subsequent work further explores this signal [12, 5].
+
+# 3. The $001 \%$ ! Dataset
+
+We present the $00\%$ dataset for studying unintentional human action. The dataset consists of 20,338 videos from YouTube fail compilation videos, adding up to over 50 hours of data. These clips, filmed by amateur videographers in the real world, are diverse in action, environment, and intention. Our dataset includes many causes for failure and unintentional action, including physical and social errors, errors in planning and execution, limited agent skill, knowledge, or perceptual ability, and environmental factors. We plan to release the dataset, along with pre-computed optical flow, pose, and annotations, in the near future. We believe that this dataset will facilitate the development and evaluation of models that analyze human intentionality.
+
+# 3.1. Data Collection and Processing
+
+We build our dataset from online channels that collate "fail" videos uploaded by many different users, since the videos they share display unconstrained and diverse situations. We manually scrape selected channels with high diversity and quality of video. Figure 2 shows several example frames.
+
+We preprocess the videos to remove editorial visual artifacts. For example, after downloading the long compilation videos from these channels, we must delineate scene boundaries to separate between unrelated clips. We experiment with various such methods and found that scikit-video gives good results.1 We discard all scenes under 3 seconds long, since they are unlikely to contain a complete scene, as well as all scenes over 30 seconds, since they are likely to contain multiple scenes (due to false negatives in scene detection). Some videos were filmed in portrait orientation but collated in landscape, resulting in a "letterbox" effect. We run a Hough line transform to detect these borders, and crop out the border artifacts.
+
+# 3.2. Annotation
+
+We labeled the temporal locations of failure in the entire test set and some of the training set using Amazon Mechanical Turk [56]. We ask workers, whom we restrict to a $\geq 99\%$ approval rating with at least 10,000 approvals, to mark videos at the moment when failure starts to happen (i.e. when actions start to become unintentional).
+
+Quality Control: We also use a variety of techniques to ensure high-quality annotation. We repeat annotation three times to verify label quality. We also ask workers to annotate whether the video contained unintentional action or not. We remove all videos where most workers indicate there is no failure or where the failure occurs at the very beginning or end of a video clip (indicating an error in scene detection). The majority of videos we label pass these checks. To control quality, we also manually label ground truth on a small set of videos, which we use to detect and remove poor annotations.
+
+Human Agreement: We annotated the test set a fourth time, which we use to analyze human agreement on this task. We found that humans are very consistent across each other at labeling the time of failure. The median standard deviation across workers is about half a second, or $6.6\%$ of the video duration.
+
+# 3.3. Dataset Statistics
+
+Figure 3a shows the distribution of video clip lengths and Figure 3b shows the distribution of failure time labels in the dataset. Figure 3c plots standard deviation of the three labels from different workers, which is around half a second on average. Figure 3d and Figure 3e show the action and scene class distributions, as predicted by models pre-trained on the Kinetics and Places [81] datasets. The dataset covers intentions for a variety of scenes and activities.
+
+# 3.4. Benchmark
+
+We use our dataset as a benchmark for recognizing intentional action. We split the dataset into three sets: an
+
+1We use the scenedet function with method='edges' and parameter1=0.7 from https://github.com/scikit-video/scikit-video
+
+
+(a) Classification
+
+
+(b) Localization
+
+
+(c) Anticipation
+Figure 4: Tasks: Our dataset has three tasks: classification of action as intentional or not, temporal localization of unintentional action, and forecasting unintentional action.
+
+unlabeled set of videos for pre-training, a labeled training set, and a labeled test set. The entire dataset contains 20,338 videos, and the labeled training set contains 7,368 videos, which is kept relatively small because the goal of the benchmark is to evaluate self-supervised learning. The test set contains 6,739 videos, which are labeled only for quantitative evaluation. In our benchmark, models are allowed to train on any number of unlabeled videos and only a small number of labeled videos. Figure 4 shows the tasks for the benchmark.
+
+# 4. Intentionality from Perceptual Clues
+
+We investigate a variety of perceptual clues for learning to predict intentional action with minimal supervision. We can cast this as a self-supervised learning problem. Given incidental supervision from unlabeled video, we aim to learn a representation that can efficiently transfer to different intentionality recognition tasks.
+
+# 4.1. Predicting Video Speed
+
+The speed of video provides a natural visual clue to learn a video representation. We propose a self-supervised task where we synthetically alter the speed of a video, and train a convolutional neural network to predict the true frame-rate. Since speed is intrinsic to every unlabeled video, this is a self-supervised pretext task for video representation learning.
+
+Let $x_{i,r} \in \mathbb{R}^{T \times W \times H \times 3}$ be a video clip that consists of $T$ frames and has a frame rate of $r$ frames-per-second. We use a discrete set of frame rates $r \in \{4,8,16,30\}$ and $T = 16$ . Consequently, all videos have the same number of frames, but some videos will span longer time periods than others. We train a model on a large amount of unlabeled video:
+
+$$
+\min _ {f} \sum_ {i} \mathcal {L} (f (x _ {i, r}), r) \tag {1}
+$$
+
+where $\mathcal{L}$ is the cross-entropy loss function. Figure 5 illustrates this task.
+
+We hypothesize, supported by our experiments, that speed is a useful self-supervisory signal for representation learning. Firstly, estimating the speed requires the model to learn motion features because a single frame is insufficient
+
+
+Figure 5: Video Speed as Incidental Supervision: We propose a new self-supervised task to predict the speed of video, which is naturally available in all unlabeled video.
+
+to distinguish between frame rates. Secondly, this task will require the model to learn features that are correlated to the expected duration of events. For example, the model could detect that a video of a person walking is synthetically sped up or slowed down by comparing it to the average human walking speed. Finally, human judgement of intentionality is substantially affected by video speed [10]. For example, a person leisurely sitting down appears intentional, but a person suddenly falling into a seat appears accidental. Recently, fake news campaigns have manipulated the speed of videos to convincingly forge and alter perception of intent.[2]
+
+# 4.2. Predicting Video Context
+
+Since unintentional action is often a deviation from expectation, we explore the predictability of video as another visual clue for intentions. We train a predictive visual model on our unlabeled set of videos and use the representation as a feature space. Let $x_{t}$ be a video clip centered at time $t$ , and both $x_{t - k}$ and $x_{t + k}$ be contextual clips at times $t - k$ and $t + k$ respectively. We learn a predictive model that interpolates the middle representation $\phi_t = f_\theta (x_t)$ from the surrounding contextual frames $x_{t - 1}$ and $x_{t + 1}$ :
+
+$$
+\max _ {f, g} \sum_ {i} \log \left(\frac {e ^ {z _ {t}}}{e ^ {z _ {t}} + \sum_ {n \in N} e ^ {z _ {n}}}\right) \quad \text {f o r} \quad z _ {j} = \frac {\phi_ {j} ^ {T} \hat {\phi} _ {t}}{\sqrt {d}} \tag {2}
+$$
+
+where $\hat{\phi}_t = g_\theta (\{\phi_{t - k},\phi_{t + k}\})$ such that $f_{\theta}$ and $g_{\theta}$ are convolutional networks. $d$ is the dimension of the representation for normalization, and $N$ is the negative set.
+
+Maximizing this objective corresponds to pulling the features of the target frame, $\phi_t$ , closer to the contextual embedding, $\hat{\phi}_t$ , while pushing it further away from all other negatives in the mini-batch. This objective is an instance of noise-contrastive estimation [27] and contrastive predictive coding [45, 57, 21], which obtains strong results on other self-supervised learning tasks. We use this as a baseline.
+
+We compute the loss over mini-batches, so the negative set for a given middle clip includes all other clip represent-
+
+tations in the mini-batch except itself. We set $g_{\theta}$ as a two-layer fully-connected network, with hidden dimension 1024, ReLU as activation, and output dimension $d = 512$ (same dimension as output of the video encoder $f_{\theta}$ ).
+
+# 4.3. Predicting Event Order
+
+We also investigate the order of events as a perceptual clue for recognizing unintentional action. Since unintentional action often manifests as chaotic or irreversible motion, we implement a convolutional model that is tasked with predicting the permutation applied to shuffled input video clips as in [75, 70], which we use as a strong baseline.
+
+We sample 3 clips with a gap of 0.5sec between subsequent clips, so there are $3! = 6$ possible sort orders. We run all clips through a neural network $f_{\theta}$ , which yields a feature vector, then concatenate feature vectors for all pairs of videos and run them through another neural network $g_{\theta}$ , to represent pairwise clip relations. Finally, we concatenate these pairwise representations and input into a third network $h_{\theta}$ to predict the sort order. The networks $g_{\theta}$ and $f_{\theta}$ are both linear layers with a ReLU activation. The output dimensions of $f_{\theta}, g_{\theta}$ , and $h_{\theta}$ are 512, 256, and 6.
+
+# 4.4. Fitting the Classifier
+
+We use these self-supervised clues to fit a classifier to discriminate action as intentional, unintentional, or transitional. We train the self-supervised models with unlabeled video, and fit a linear classifier with minimal annotation, allowing us to directly compare the quality of the learned representations for recognizing intentionality.
+
+Network Architecture: We use the same convolutional network architecture throughout all approaches. Since this is a video task, we need to chose a network architecture that can robustly capture motion features. We use the ResNet3D-18 [22] as the video backbone for all networks, which obtains competitive performance on the Kinetics action recognition dataset [30]. We input 16 frames into the model. Except for the video speed model, we sample the videos at 16 fps, so that the model gets one second of temporal context. We train each network for 20 epochs.
+
+Classifier: After learning on our unlabeled set of videos, the self-supervised models will produce a representation that we will use for our intentionality prediction tasks. We input a video into the self-supervised model, extract features at the last convolutional layer, and fit a linear classifier. While there are a variety of ways to transfer self-supervised representations to subsequent tasks, we chose to use linear classifiers because our goal is to evaluate the self-supervised features, following recommended practice in self-supervised learning [33]. We train a regularized multi-class logistic regression using a small amount of labels on the labeled portion of our training set. We formulate the task as a three-way classification task, where the three categories are: a) intentional
+
+| Method | Linear Classifier | Fine-tune |
| All Labels | 10% Labels | All Labels |
| Kinetics Supervision | 53.6 | 52.0 | 64.0 |
| Video Speed (ours) | 53.4 | 49.9 | 61.6 |
| Video Context [45] | 50.0 | 47.2 | 60.3 |
| Video Sorting [75] | 49.8 | 46.5 | 60.2 |
| Scratch | 48.2 | 46.2 | 59.4 |
| Motion Magnitude | 44.0 | - | 44.0 |
| Chance | 33.3 | 33.3 | 33.3 |
+
+Table 1: Classification Accuracy: We evaluate performance of each self-supervised model versus baselines. We also compare against a model trained with Kinetics supervision to understand the gap between supervision and self-supervision. This results suggests learning to predict video speed is a promising form of video self-supervision.
+
+action, b) unintentional action, and c) transitioning from intentional to unintentional. We define an action as transitioning if the video clip overlaps with the point the worker labeled.
+
+# 5. Experiments
+
+The goal of our experiments is to analyze mid-level perceptual clues for recognizing intentionality in realistic video. To do this, we quantitatively evaluate the self-supervised methods on three tasks on our dataset (classification, localization, and anticipation). We also show quantitative ablations and qualitative visualizations to analyze limitations.
+
+# 5.1. Baselines
+
+Besides the self-supervised methods above, we additionally compare against several other baselines.
+
+Motion Magnitude: We use simple motion detection as a baseline. To form this baseline, we compute optical flow [25] over the videos, and quantify the motion magnitude into a histogram. We experimented with several different bin sizes, and found that 100 bins performed the best. We then fit a multi-layer perceptron on the histogram, which is trained on the labeled portion of our training set to predict the three categories.
+
+Kinetics Supervision: We compare against a model that
+
+
+Figure 6: Multi-modal Evaluation: Unintentional actions cascade. For example, in this video, the person "fails" twice. To handle this in evaluation, we consider a prediction correct if it is sufficiently near any ground-truth label.
+
+is trained on the full, annotated Kinetics action recognition dataset, which is either fine-tuned with our labeled training set, or used as a feature extractor. Since the model is trained on a large, labeled dataset of over 600,000 videos, we do not expect our self-supervised models to outperform it. Instead, we use this baseline to understand the gap between supervised and self-supervised methods.
+
+Linear versus Fine-tune: Unless otherwise noted, the classifier is a linear classifier on the features from the last convolutional layer of the network. However, we also evaluated some models by fine-tuning, which we do to understand the best performance that one could obtain at this task. To fine-tune, we simply use the method as the network initialization, change the last layer to be the three-way classification task, and train the network end-to-end with stochastic gradient descent on our labeled set of videos.
+
+Fixed Priors: We also compare against naive priors. We calculate the mode on the training set, and use this mode as the prediction. Additionally, we use chance.
+
+Human Agreement: To establish an upper expectation of performance on this dataset, we use a fourth, held-out worker's labels to measure human performance.
+
+# 5.2. Classification
+
+We first evaluate each model on a classification task. Given a short video clip, the task is to categorize it into one of the three categories (intentional, unintentional, or transitional). We extract one-second temporal windows in increments of 0.25 seconds from the testing set.
+
+Table 1 reports classification accuracy for each method. All of the self-supervised methods outperform baselines, suggesting there are perceptual clues in unlabeled video for intentionality. The model trained with full Kinetics supervision obtains the best performance overall, indicating there is still no substitute for labeled data. However, the gap between the self-supervised models and supervised models is relatively small. For example, the best performing perceptual clue (video speed) is tied with Kinetics when large amounts of labels are available for training a linear layer. We also experimented with the reducing the number of examples in our labeled training set. While accuracy is positively correlated with number of labels, reducing the number of labels by an order of magnitude only causes a minor drop in performance.
+
+# 5.3. Localization
+
+We next evaluate temporal localization, which is challenging because it requires the model to detect the temporal boundary between intentional and unintentional action. We use our classifier in a sliding window fashion over the temporal axis, and evaluate whether the model can detect the point in time that the action switches from intentional to unintentional. The predicted boundary is the one with the most confident score of transition across all sliding win
+
+
+Figure 7: Example Localizations: We show example predictions for localizing the transition to unintentional action. Green indicates a correct prediction (within 0.25 sec). Red indicates an incorrect, yet reasonable, prediction. Yellow indicates a missed detection.
+
+dows. Since videos can contain multiple transitional points, we consider the prediction correct if it sufficiently overlaps any of the ground truth positions in the dataset (Figure 6). We use two different thresholds of sufficient overlap: within one second, and within one quarter second.
+
+Table 2 reports accuracy at localizing the transition point. For both thresholds, the best performing self-supervised method is video speed, outperforming other self-supervised methods by over $10\%$ , which suggests that our video speed task learns more fine-grained video features. Human consistency at this task is high (88% agreement), however there is still a large gap to both supervised and self-supervised approaches, underscoring the challenge of learning human intent in video. Figure 7 shows a few qualitative results of localization as well as high-scoring false positives. The incorrect predictions our model makes (bottom two rows of Figure 7) are often reasonable, such as a car hitting a pedestrian on the sidewalk (ground truth: car first hits another car) and person falling when exiting fountain (ground truth: person first falling into fountain).
+
+# 5.4. Anticipation
+
+We also evaluate the representation at anticipating the onset of unintentional action. To do this, we train the models with self-supervision as before, but then fine-tune them for a three-way classification task to predict the labels 1.5 seconds into the future. Table 3 reports classification accuracy for the prediction. Features from the the video speed prediction model obtain the best self-supervised performance. However, the model with full Kinetics supervision obtains
+
+| Method | Accuracy within |
| 1 sec | 0.25 sec |
| Human Consistency | 88.0 | 62.1 |
| Kinetics Supervision (Fine-tune) | 75.9 | 46.7 |
| Kinetics Supervision (Linear) | 69.2 | 37.8 |
| Video Speed (ours) | 65.3 | 36.6 |
| Video Context [45] | 52.0 | 25.3 |
| Video Sorting [75] | 43.3 | 18.3 |
| Scratch | 47.8 | 21.6 |
| Motion Magnitude | 50.7 | 23.1 |
| Middle Prior | 53.1 | 21.0 |
| Chance | 25.9 | 6.8 |
+
+Table 2: Temporal Localization: We evaluate the model at localizing the onset of unintentional action for two different temporal thresholds of correctness. Although there is high human agreement on this task, there is still a large gap for both supervised and self-supervised models.
+
+| Method | Accuracy |
| Kinetics Supervision | 59.7 |
| Video Speed (ours) | 56.7 |
| Video Context [45] | 51.2 |
| Video Sorting [75] | 51.0 |
| Scratch | 50.8 |
| Chance | 50.0 |
+
+Table 3: Anticipation: We evaluate performance at predicting the onset of failure before it happens (1.5 seconds into future) by fine-tuning our models. The best performing self-supervised visual clue we considered is video speed.
+
+about $3\%$ higher performance, suggesting there is still room for self-supervised learning to improve on this task.
+
+# 5.5. Analysis
+
+Our results so far have suggested that there are perceptual clues in unlabeled video that we can leverage to learn to recognize intentionality. In this subsection, we break down performance to analyze strengths and limitations.
+
+Frequent Confusions: Figure 8 compares the confusion matrices for both the video speed representation and Kinetics supervised representation. In both cases, the most challenging point to predict is the boundary between intentional and unintentional action, which we label the "Failure" point. Moreover, a key difference between models is that the self-supervised model more often confuses intentional action with the start of failure. Since the supervised model performs better here, this suggests there is still substantial room to improve self-supervised models at fine-grained localization of intentionality.
+
+Visualization of Learned Features: To qualitatively an-
+
+
+(a) Kinetics + Fine-tune
+
+
+(b) Video Speed + Linear
+
+alyze the learned feature space, Figure 9 visualizes nearest neighbors between videos using the representation learned by predicting the video speed, which is the best performing self-supervised model. We use one video clip as a query, compute features from the last convolutional layer, and calculate the nearest neighbors using cosine similarity over a large set of videos not seen during training. Although this feature space is learned without ground-truth labels, the nearest neighbors are often similar activities and objects, suggesting that learning to predict the video speed is promising incidental supervision for learning features of activity.
+
+Performance Breakdown: We manually labeled a diagnostic set of 270 videos into nine types that characterize the cause of unintentional action. Figure 10 reports performance of models broken down by video type. The most challenging cases for our models are when the unintentional action is caused by environmental factors (such as slipping on ice) or unexpected interventions (such as a bird swooping in suddenly). Moreover, performance is comparatively low when the person in the video has limited visibility, such as due to occlusions, which motivates further work in gaze estimation [49, 31], especially in video. Another challenge is due to limited knowledge, such as understanding that fire is hot. In contrast, the model has better performance at recognizing unintentional action in multi-agent scenes, likely because multi-agent interaction is more visually apparent.
+
+# 6. Discussion
+
+This paper investigates mid-level perceptual clues to recognize unintentional action in video. We present an "in-the-wild" video dataset of intentional and unintentional action, and we also leverage the speed of video for representation learning with minimal annotation, which is a natural signal
+
+
+
+
+
+
+
+
+Figure 8: Classification Confusion Matrices: We compare the confusion matrices for (a) Kinetics supervision and (b) self-supervision. One key difference is the self-supervised model often confuses intentional action with the start of failure, suggesting there is substantial room for improving fine-grained localization of intentionality.
+Figure 9: Nearest Neighbors on Self-supervised Features: We visualize some of the nearest neighbors from the feature spaced learned by predicting video frame rate. The nearest neighbors tend to be similar activities despite significant variation in appearance.
+
+Figure 10: Performance Breakdown: We annotate a diagnostic set of videos into different categories of unintentional action in order to break down model performance and limitations. See text for discussion.
+
+Human Kinetics fine-tuning
+Video speed fine-tuning
+
+available in every unlabeled video. However, since a significant gain remains to match human agreement, learning human intentions in video remains a fundamental challenge.
+
+Acknowledgements: We thank Dídac Surís, Parita Pooj, Hod Lipson, and Andrew McCallum for helpful discussion. Funding was provided by DARPA MCS, NSF NRI 1925157, and an Amazon Research Gift. We thank NVidia for donating GPUs.
+
+# 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
+[2] Jake K Aggarwal and Michael S Ryoo. Human activity analysis: A review. ACM Computing Surveys (CSUR), 43(3):16, 2011. 2
+[3] Pulkit Agrawal, Joao Carreira, and Jitendra Malik. Learning to see by moving. In Proceedings of the IEEE International Conference on Computer Vision, pages 37-45, 2015. 3
+[4] Maryam Asadi-Aghbolaghi, Albert Clapes, Marco Bellantonio, Hugo Jair Escalante, Víctor Ponce-López, Xavier Baró, Isabelle Guyon, Shohreh Kasaei, and Sergio Escalera. A survey on deep learning based approaches for action and gesture recognition in image sequences. In 2017 12th IEEE international conference on automatic face & gesture recognition (FG 2017), pages 476-483. IEEE, 2017. 2
+[5] Anonymous Authors. Speednet: Learning the speediness in videos. CVPR 2020, 2020. 3
+[6] Moshe Blank, Lena Gorelick, Eli Shechtman, Michal Irani, and Ronen Basri. Actions as space-time shapes. In Tenth IEEE International Conference on Computer Vision (ICCV'05) Volume 1, volume 2, pages 1395-1402. IEEE, 2005. 2
+[7] Amanda C Brandone and Henry M Wellman. You can't always get what you want: Infants understand failed goal-directed actions. Psychological science, 20(1):85-91, 2009. 1
+[8] Fabian Caba Heilbron, Victor Escorcia, Bernard Ghanem, and Juan Carlos Niebles. Activitynet: A large-scale video benchmark for human activity understanding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 961-970, 2015. 2
+[9] 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
+[10] Eugene M Caruso, Zachary C Burns, and Benjamin A Converse. Slow motion increases perceived intent. Proceedings of the National Academy of Sciences, 113(33):9250-9255, 2016. 5
+[11] Guangchun Cheng, Yiwen Wan, Abdullah N Saudagar, Kamesh Namuduri, and Bill P Buckles. Advances in human action recognition: A survey. arXiv preprint arXiv:1501.05964, 2015. 2
+[12] Hyeon Cho, Taehoon Kim, Hyung Jin Chang, and Wonjun Hwang. Self-supervised spatio-temporal representation learning using variable playback speed prediction. arXiv preprint arXiv:2003.02692, 2020. 3
+[13] Dima Damen, Hazel Doughty, Giovanni Maria Farinella, Sanja Fidler, Antonino Furnari, Evangelos Kazakos, Davide Moltisanti, Jonathan Munro, Toby Perrett, Will Price, et al. Scaling egocentric vision: The epic-kitchens dataset. In Proceedings of the European Conference on Computer Vision (ECCV), pages 720-736, 2018. 2, 3
+
+[14] Carl Doersch, Abhinav Gupta, and Alexei A Efros. Unsupervised visual representation learning by context prediction. In Proceedings of the IEEE International Conference on Computer Vision, pages 1422-1430, 2015. 3
+[15] Jeffrey Donahue, Lisa Anne Hendricks, Sergio Guadarrama, Marcus Rohrbach, Subhashini Venugopalan, Kate Saenko, and Trevor Darrell. Long-term recurrent convolutional networks for visual recognition and description. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2625-2634, 2015. 3
+[16] Debidatta Dwibedi, Yusuf Aytar, Jonathan Tompson, Pierre Sermanet, and Andrew Zisserman. Temporal cycle-consistency learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1801-1810, 2019. 3
+[17] Basura Fernando, Hakan Bilen, Efstratios Gavves, and Stephen Gould. Self-supervised video representation learning with odd-one-out networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3636-3645, 2017. 3
+[18] David F Fouhey, Wei-cheng Kuo, Alexei A Efros, and Jitendra Malik. From lifestyle vlogs to everyday interactions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4991-5000, 2018. 2
+[19] 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, volume 1, page 3, 2017. 2
+[20] 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 Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6047-6056, 2018. 1, 2
+[21] Tengda Han, Weidi Xie, and Andrew Zisserman. Video representation learning by dense predictive coding. In Proceedings of the IEEE International Conference on Computer Vision Workshops, pages 0–0, 2019. 5
+[22] Kensho Hara, Hirokatsu Kataoka, and Yutaka Satoh. Can spatiotemporal 3d cnns retrace the history of 2d cnns and imageNet? In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pages 6546-6555, 2018. 5
+[23] R Devon Hjelm, Alex Fedorov, Samuel Lavoie-Marchildon, Karan Grewal, Phil Bachman, Adam Trischler, and Yoshua Bengio. Learning deep representations by mutual information estimation and maximization. arXiv preprint arXiv:1808.06670, 2018. 3
+[24] Minh Hoai and Fernando De la Torre. Max-margin early event detectors. International Journal of Computer Vision, 107(2):191-202, 2014. 3
+[25] 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 Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2462-2470, 2017. 6
+
+[26] Dinesh Jayaraman and Kristen Grauman. Learning image representations tied to ego-motion. In Proceedings of the IEEE International Conference on Computer Vision, pages 1413-1421, 2015. 3
+[27] Rafal Jozefowicz, Oriol Vinyals, Mike Schuster, Noam Shazeer, and Yonghui Wu. Exploring the limits of language modeling. arXiv preprint arXiv:1602.02410, 2016. 5
+[28] Soo Min Kang and Richard P Wildes. Review of action recognition and detection methods. arXiv preprint arXiv:1610.06906, 2016. 2
+[29] Andrej Karpathy, George Toderici, Sanketh Shetty, Thomas Leung, Rahul Sukthankar, and Li Fei-Fei. Large-scale video classification with convolutional neural networks. In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pages 1725–1732, 2014. 2
+[30] Will Kay, Joao Carreira, Karen Simonyan, Brian Zhang, Chloe Hillier, Sudheendra Vijayanarasimhan, Fabio Viola, Tim Green, Trevor Back, Paul Natsev, et al. The kinetics human action video dataset. arXiv preprint arXiv:1705.06950, 2017. 1, 2, 5
+[31] Petr Kellnhofer, Adria Recasens, Simon Stent, Wojciech Ma-tusik, and Antonio Torralba. Gaze360: Physically unconstrained gaze estimation in the wild. In Proceedings of the IEEE International Conference on Computer Vision, pages 6912-6921, 2019. 8
+[32] Alexander Klaser, Marcin Marszalek, and Cordelia Schmid. A spatio-temporal descriptor based on 3d-gradients. 2008. 3
+[33] Alexander Kolesnikov, Xiaohua Zhai, and Lucas Beyer. Revisiting self-supervised visual representation learning. arXiv preprint arXiv:1901.09005, 2019. 5
+[34] Hildegard Kuehne, Hueihan Jhuang, Estíbaliz Garrote, Tomaso Poggio, and Thomas Serre. Hmdb: a large video database for human motion recognition. In 2011 International Conference on Computer Vision, pages 2556-2563. IEEE, 2011. 2
+[35] Zihang Lai and Weidi Xie. Self-supervised learning for video correspondence flow. arXiv preprint arXiv:1905.00875, 2019.3
+[36] Ivan Laptev. On space-time interest points. International journal of computer vision, 64(2-3):107-123, 2005. 3
+[37] Gustav Larsson, Michael Maire, and Gregory Shakhnarovich. Colorization as a proxy task for visual understanding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6874-6883, 2017. 3
+[38] Hsin-Ying Lee, Jia-Bin Huang, Maneesh Singh, and Ming-Hsuan Yang. Unsupervised representation learning by sorting sequences. In Proceedings of the IEEE International Conference on Computer Vision, pages 667-676, 2017. 3
+[39] Xueting Li, Sifei Liu, Shalini De Mello, Xiaolong Wang, Jan Kautz, and Ming-Hsuan Yang. Joint-task self-supervised learning for temporal correspondence. arXiv preprint arXiv:1909.11895, 2019. 3
+[40] Michael Mathieu, Camille Couprie, and Yann LeCun. Deep multi-scale video prediction beyond mean square error. arXiv preprint arXiv:1511.05440, 2015. 3
+[41] Ishan Misra, C Lawrence Zitnick, and Martial Hebert. Shuffle and learn: unsupervised learning using temporal order veri
+
+fication. In European Conference on Computer Vision, pages 527-544. Springer, 2016. 3
+[42] Mathew Monfort, Alex Andonian, Bolei Zhou, Kandan Ramakrishnan, Sarah Adel Bargal, Yan Yan, Lisa Brown, Quanfu Fan, Dan Gutfreund, Carl Vondrick, et al. Moments in time dataset: one million videos for event understanding. IEEE transactions on pattern analysis and machine intelligence, 2019. 1, 2
+[43] Phuc Xuan Nguyen, Gregory Rogez, Charless Fowlkes, and Deva Ramanan. The open world of micro-videos. arXiv preprint arXiv:1603.09439, 2016. 2
+[44] Mehdi Noroozi and Paolo Favaro. Unsupervised learning of visual representations by solving jigsaw puzzles. In European Conference on Computer Vision, pages 69-84. Springer, 2016. 3
+[45] Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018. 3, 5, 6, 7
+[46] Mingtao Pei, Yunde Jia, and Song-Chun Zhu. Parsing video events with goal inference and intent prediction. In 2011 International Conference on Computer Vision, pages 487-494. IEEE, 2011. 3
+[47] Hamed Pirsiavash and Deva Ramanan. Parsing videos of actions with segmental grammars. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 612-619, 2014. 3
+[48] Ronald Poppe. A survey on vision-based human action recognition. Image and vision computing, 28(6):976-990, 2010. 2
+[49] Adria Recasens, Aditya Khosla, Carl Vondrick, and Antonio Torralba. Where are they looking? In Advances in Neural Information Processing Systems, pages 199–207, 2015. 8
+[50] Michael S Ryoo. Human activity prediction: Early recognition of ongoing activities from streaming videos. In 2011 International Conference on Computer Vision, pages 1036-1043. IEEE, 2011. 3
+[51] Sreemanananth Sadanand and Jason J Corso. Action bank: A high-level representation of activity in video. In 2012 IEEE Conference on Computer Vision and Pattern Recognition, pages 1234-1241. IEEE, 2012. 3
+[52] Christian Schuldt, Ivan Laptev, and Barbara Caputo. Recognizing human actions: a localsvm approach. In Proceedings of the 17th International Conference on Pattern Recognition, 2004.ICPR 2004., volume 3,pages 32-36.IEEE,2004.2
+[53] Gunnar A Sigurdsson, Gül Varol, Xiaolong Wang, Ali Farhadi, Ivan Laptev, and Abhinav Gupta. Hollywood in homes: Crowdsourcing data collection for activity understanding. In European Conference on Computer Vision, pages 510-526. Springer, 2016. 2
+[54] Karen Simonyan and Andrew Zisserman. Two-stream convolutional networks for action recognition in videos. In Advances in neural information processing systems, pages 568-576, 2014. 3
+[55] Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. Ucf101: A dataset of 101 human actions classes from videos in the wild. arXiv preprint arXiv:1212.0402, 2012. 2
+[56] Alexander Sorokin and David Forsyth. Utility data annotation with amazon mechanical turk. In 2008 IEEE Computer Soci
+
+ety Conference on Computer Vision and Pattern Recognition Workshops, pages 1-8. IEEE, 2008. 4
+[57] Chen Sun, Fabien Baradel, Kevin Murphy, and Cordelia Schmid. Contrastive bidirectional transformer for temporal representation learning. arXiv preprint arXiv:1906.05743, 2019. 3, 5
+[58] 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. 3
+[59] Vinh Tran, Yang Wang, and Minh Hoai. Back to the future: Knowledge distillation for human action anticipation. arXiv preprint arXiv:1904.04868, 2019. 3
+[60] Hsiao-Yu Tung, Hsiao-Wei Tung, Ersin Yumer, and Katerina Fragkiadaki. Self-supervised learning of motion capture. In Advances in Neural Information Processing Systems, pages 5236–5246, 2017. 3
+[61] J David Velleman. Intention, plans, and practical reason. The Philosophical Review, 100(2):277-284, 1991. 2
+[62] Carl Vondrick, Hamed Pirsiavash, and Antonio Torralba. Anticipating visual representations from unlabeled video. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 98-106, 2016. 3
+[63] Carl Vondrick, Hamed Piriavash, and Antonio Torralba. Generating videos with scene dynamics. In Advances In Neural Information Processing Systems, pages 613-621, 2016. 3
+[64] Carl Vondrick, Abhinav Shrivastava, Alireza Fathi, Sergio Guadarrama, and Kevin Murphy. Tracking emerges by colorizing videos. In Proceedings of the European Conference on Computer Vision (ECCV), pages 391-408, 2018. 3
+[65] Heng Wang, Alexander Kläser, Cordelia Schmid, and Liu Cheng-Lin. Action recognition by dense trajectories. 2011. 3
+[66] Limin Wang, Yu Qiao, and Xiaou Tang. Action recognition and detection by combining motion and appearance features. THUMOS14 Action Recognition Challenge, 1(2):2, 2014. 2
+[67] 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 European conference on computer vision, pages 20-36. Springer, 2016. 3
+[68] Xiaolong Wang and Abhinav Gupta. Unsupervised learning of visual representations using videos. In Proceedings of the IEEE International Conference on Computer Vision, pages 2794-2802, 2015. 3
+[69] Xiaolong Wang, Allan Jabri, and Alexei A Efros. Learning correspondence from the cycle-consistency of time. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2566-2576, 2019. 3
+[70] Donglai Wei, Joseph J Lim, Andrew Zisserman, and William T Freeman. Learning and using the arrow of time. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8052-8060, 2018. 3, 5
+[71] Daniel Weinland, Remi Ronfard, and Edmond Boyer. A survey of vision-based methods for action representation, segmentation and recognition. Computer vision and image understanding, 115(2):224-241, 2011. 2
+
+[72] Amanda L Woodward. Infants' ability to distinguish between purposeful and non-purposeful behaviors. Infant Behavior and Development, 22(2):145-160, 1999. 1
+[73] Amanda L Woodward. Infants' grasp of others' intentions. Current directions in psychological science, 18(1):53-57, 2009. 1
+[74] Dan Xie, Sinisa Todorovic, and Song-Chun Zhu. Inferring. In Proceedings of the IEEE International Conference on Computer Vision, pages 2224-2231, 2013. 3
+[75] Dejing Xu, Jun Xiao, Zhou Zhao, Jian Shao, Di Xie, and Yueting Zhuang. Self-supervised spatiotemporal learning via video clip order prediction. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 10334-10343, 2019. 3, 5, 6, 7
+[76] Tianfan Xue, Jiajun Wu, Katherine Bouman, and Bill Freeman. Visual dynamics: Probabilistic future frame synthesis via cross convolutional networks. In Advances in neural information processing systems, pages 91-99, 2016. 3
+[77] Gang Yu, Junsong Yuan, and Zicheng Liu. Predicting human activities using spatio-temporal structure of interest points. In Proceedings of the 20th ACM international conference on Multimedia, pages 1049-1052. ACM, 2012. 3
+[78] Hong-Bo Zhang, Yi-Xiang Zhang, Bineng Zhong, Qing Lei, Lijie Yang, Ji-Xiang Du, and Duan-Sheng Chen. A comprehensive survey of vision-based human action recognition methods. Sensors, 19(5):1005, 2019. 2
+[79] Xin Zhao, Xue Li, Chaoyi Pang, Xiaofeng Zhu, and Quan Z Sheng. Online human gesture recognition from motion data streams. In Proceedings of the 21st ACM international conference on Multimedia, pages 23-32. ACM, 2013. 3
+[80] Bolei Zhou, Alex Andonian, Aude Oliva, and Antonio Torralba. Temporal relational reasoning in videos. In Proceedings of the European Conference on Computer Vision (ECCV), pages 803-818, 2018. 3
+[81] 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. 4
+[82] Tinghui Zhou, Matthew Brown, Noah Snavely, and David G Lowe. Unsupervised learning of depth and ego-motion from video. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1851-1858, 2017. 3
+[83] Tinghui Zhou, Shubham Tulsiani, Weilun Sun, Jitendra Malik, and Alexei A Efros. View synthesis by appearance flow. In European conference on computer vision, pages 286-301. Springer, 2016. 3
+[84] Mohammadreza Zolfaghari, Özgün Çiçek, Syed Mohsin Ali, Farzaneh Mahdisoltani, Can Zhang, and Thomas Brox. Learning representations for predicting future activities. arXiv preprint arXiv:1905.03578, 2019. 3
\ No newline at end of file
diff --git a/oopspredictingunintentionalactioninvideo/images.zip b/oopspredictingunintentionalactioninvideo/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..b42eacce24e90ae41fe48be9c961c804ad0fdf57
--- /dev/null
+++ b/oopspredictingunintentionalactioninvideo/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8430db2b6632e7911845826e06712f695de5dd101a7349f37264aeb93654cbe0
+size 633199
diff --git a/oopspredictingunintentionalactioninvideo/layout.json b/oopspredictingunintentionalactioninvideo/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..6edf48c05b9fa7142897bd1389ee80bbddd1d5ce
--- /dev/null
+++ b/oopspredictingunintentionalactioninvideo/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bb6453fae73ed10b325038d7dd5b12b34bef09dddf72a4f97767dca7f0e307bf
+size 428324
diff --git a/opencompounddomainadaptation/67f275ce-4824-4582-812c-f77f429333a6_content_list.json b/opencompounddomainadaptation/67f275ce-4824-4582-812c-f77f429333a6_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..f65cd73c7c8000d87d22ba4a7103d15f93c56f48
--- /dev/null
+++ b/opencompounddomainadaptation/67f275ce-4824-4582-812c-f77f429333a6_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b29d5fb710053f2d79ba5bec2a84ec5bf2232c942ff6616a869d70881ba0850d
+size 69753
diff --git a/opencompounddomainadaptation/67f275ce-4824-4582-812c-f77f429333a6_model.json b/opencompounddomainadaptation/67f275ce-4824-4582-812c-f77f429333a6_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..a89ba4fa3e7c777321074352ff517409b10dbbd7
--- /dev/null
+++ b/opencompounddomainadaptation/67f275ce-4824-4582-812c-f77f429333a6_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:85dea1724912bd598f981af2e2986f5def7140fe3860e2a9757856ab583c0f98
+size 88940
diff --git a/opencompounddomainadaptation/67f275ce-4824-4582-812c-f77f429333a6_origin.pdf b/opencompounddomainadaptation/67f275ce-4824-4582-812c-f77f429333a6_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..b24019b4d81a905192d861f92ae7235402c9af9c
--- /dev/null
+++ b/opencompounddomainadaptation/67f275ce-4824-4582-812c-f77f429333a6_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3686d53254d55a07286f53002767c1b0d5694f1b45dd3ef9acf83e0ec925ff44
+size 1670690
diff --git a/opencompounddomainadaptation/full.md b/opencompounddomainadaptation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..8e57d82c8a204ca7dee3bbf09d64febcf827b980
--- /dev/null
+++ b/opencompounddomainadaptation/full.md
@@ -0,0 +1,318 @@
+# Open Compound Domain Adaptation
+
+Ziwei Liu $^{1*}$ Zhongqi Miao $^{2*}$ Xingang Pan $^{1}$ Xiaohang Zhan $^{1}$
+
+Dahua Lin1 Stella X. Yu2 Boqing Gong3
+
+1 The Chinese University of Hong Kong 2 UC Berkeley / ICSI 3 Google Inc.
+
+https://liuzwei7.github.io/projects/CompoundDomain.html
+
+# Abstract
+
+A typical domain adaptation approach is to adapt models trained on the annotated data in a source domain (e.g., sunny weather) for achieving high performance on the test data in a target domain (e.g., rainy weather). Whether the target contains a single homogeneous domain or multiple heterogeneous domains, existing works always assume that there exist clear distinctions between the domains, which is often not true in practice (e.g., changes in weather). We study an open compound domain adaptation (OCDA) problem, in which the target is a compound of multiple homogeneous domains without domain labels, reflecting realistic data collection from mixed and novel situations. We propose a new approach based on two technical insights into OCDA: 1) a curriculum domain adaptation strategy to bootstrap generalization across domains in a data-driven self-organizing fashion and 2) a memory module to increase the model's agility towards novel domains. Our experiments on digit classification, facial expression recognition, semantic segmentation, and reinforcement learning demonstrate the effectiveness of our approach.
+
+# 1. Introduction
+
+Supervised learning can achieve competitive performance for a visual task when the test data is drawn from the same underlying distribution as the training data. This assumption, unfortunately, often does not hold in reality, e.g., the test data may contain the same class of objects as the training data but different backgrounds, poses, and appearances [39, 44].
+
+The goal of domain adaptation is to adapt the model learned on the training data to the test data of a different distribution [39, 32, 11]. Such a distributional gap is often formulated as a shift between discrete concepts of well defined data domains, e.g., images collected in sunny weather versus those in rainy weather. Though domain generalization [22, 20] and latent domain adaptation [15,
+
+
+Figure 1: Open compound domain adaptation. Unlike existing domain adaptation which assumes clear distinctions between discrete domains (cf. the examples in gray frames), our compound target domain is a combination of multiple traditionally homogeneous domains without any domain labels. We also allow novel domains to show up at the inference time.
+
+10] have attempted to tackle complex target domains, most existing works usually assume that there is a known clear distinction between domains [11, 7, 46, 28, 40].
+
+Such a known and clear distinction between domains is hard to define in practice, e.g., test images could be collected in mixed, continually varying, and sometimes never seen weather conditions. With numerous factors jointly contributing to data variance, it becomes implausible to separate data into discrete domains.
+
+We propose to study open compound domain adaptation (OCDA), a continuous and more realistic setting for domain
+
+Table 1: Comparison of domain adaptation settings. Domain Labels tell to which domain each instance belongs. Open Classes refer to novel classes showing up during testing but not training. Open Domains are the domains of which no instances are seen during training.
+
+| Domain Adaptation Setting | # Target Domains | Domain Labels | Open Classes | Open Domains |
| Unsupervised Domain Adaptation | single | known | × | × |
| Multi-Target Domain Adaptation | multiple | known | × | × |
| Open/Partial Set Domain Adaptation | single | known | ✓ | × |
| Open Compound Domain Adaptation | multiple | unknown | × | ✓ |
+
+adaptation (cf. Figure 1 and Table 1). The task is to learn a model from labeled source domain data and adapt it to unlabeled compound target domain data which could differ from the source domain on various factors. Our target domain can be regarded as a combination of multiple traditionally homogeneous domains where each is distinctive on one or two major factors, and yet none of the domain labels are given. For example, the five well-known datasets on digits recognition (SVHN [31], MNIST [19], MNIST-M [6], USPS [18], and SynNum [6]) mainly differ from each other by the backgrounds and text fonts. It is not necessarily the best practice, and not feasible under some scenarios, to consider them as distinct domains. Instead, our compound target domain pools them together. Furthermore, at the inference stage, OCDA tests the model not only in the compound target domain but also in open domains that have previously unseen during training.
+
+In our OCDA setting, the target domain no longer has a predominantly uni-modal distribution, posing challenges to existing domain adaptation methods. We propose a novel approach based on two technical insights into OCDA: 1) a curriculum domain adaptation strategy to bootstrap generalization across domain distinction in a data-driven self-organizing fashion and 2) a memory module to increase the model's agility towards novel domains.
+
+Unlike existing curriculum adaptation methods [54, 5, 27, 23, 56, 55] that rely on some holistic measure of instance difficulty, we schedule the learning of unlabeled instances in the compound target domain according to their individual gaps to the labeled source domain, so that we solve an incrementally harder domain adaptation problem till we cover the entire target domain.
+
+Specifically, we first train a neural network to 1) discriminate between classes in the labeled source domain and to 2) capture domain invariance from the easy target instances which differ the least from labeled source domain data. Once the network can no longer differentiate between the source domain and the easy target domain data, we feed the network harder target instances, which are further away from the source domain. The network learns to remain discriminative to the classification task and yet grow more robust to the entire compound target domain.
+
+Technically, we must address the challenge of characterizing each instance's gap to the source domain. We
+
+first extract domain-specific feature representations from the data and then rank the target instances according to their distances to the source domain in that feature space, assuming that such features do not contribute to and even distract the network from learning discriminative features for classification. We use a class-confusion loss to distill the domain-specific factors and formulate it as a conventional cross-entropy loss with a randomized class label twist.
+
+Our second technical insight is to prepare our model for open domains during inference with a memory module that effectively augments the representations of an input for classification. Intuitively, if the input is close enough to the source domain, the feature extracted from itself can most likely already result in accurate classification. Otherwise, the input-activated memory features can step in and play a more important role. Consequently, this memory-augmented network is more agile at handling open domains than its vanilla counterpart.
+
+To summarize, we make the following contributions. 1) We extend the traditional discrete domain adaptation to OCDA, a more realistic continuous domain adaptation setting. 2) We develop an OCDA solution with two key technical insights: instance-specific curriculum domain adaptation for handling the target of mixed domains and memory augmented features for handling open domains. 3) We design several benchmarks on classification, recognition, segmentation, and reinforcement learning, and conduct comprehensive experiments to evaluate our approach under the OCDA setting.
+
+# 2. Related Works
+
+# We review literature according to Table 1.
+
+Unsupervised Domain Adaptation. The goal is to retain recognition accuracies in new domains without ground truth annotations [39, 44, 47, 36]. Representative techniques include latent distribution alignment [11], backpropagation [6], gradient reversal [7], adversarial discrimination [46], joint maximum mean discrepancy [28], cycle consistency [16] and maximum classifier discrepancy [40]. While their results are promising, this traditional domain adaptation setting focuses on "one source domain, one target domain", and cannot deal with more complicated scenarios where multiple target domains are present.
+
+
+Figure 2: Overview of disentangling domain characteristics and curriculum domain adaptation. We separate characteristics specific to domains from those discriminative between classes. It is achieved by a class-confusion algorithm in an unsupervised manner. The teased out domain feature is used to construct a curriculum for domain-robust learning.
+
+Latent & Multi-Target Domain Adaptation. The goal is to extend unsupervised domain adaptation to latent [15, 49, 30] or multiple [10, 8, 52] or continuous [2, 12, 29, 48] target domains, when only the source domain has class labels. These methods usually assume clear domain distinction or require domain labels (e.g. test instance $i$ belongs to the target domain $j$ ), but this assumption rarely holds in the real-world scenario. Here we take one step further towards compound domain adaptation, where both category labels and domain labels in the test set are unavailable.
+
+Open/Partial Set Domain Adaptation. Another route of research aims to tackle the category sharing/unsharing issues between source and target domain, namely open set [35, 41] and partial set [53, 3] domain adaptation. They assume that the target domain contains either 1) new categories that don't appear in source domain; or 2) only a subset of categories that appear in source domain. Both settings concern the "openness" of categories. Instead, here we investigate the "openness" of domains, i.e. there are novel domains existing that are absent in the training phase.
+
+Domain Generalized/Agnostic Learning. Domain generalization [50, 21, 20] and domain agnostic learning [37, 4] aim to learn universal representations that can be applied in a domain-invariant manner. Since these methods focus on learning semantic representations that are invariant to the domain shift, they largely neglect the latent structures inside the target domains. In this work, we explicitly model the latent structures inside the compound target domain by leveraging the learned domain-focused factors for curriculum scheduling and dynamic adaptation.
+
+# 3. Our Approach to OCDA
+
+Figures 2 and 3 present our overall workflows. There are three major components: 1) disentangling domain characteristics with only class labels in the source domain, 2) scheduling data for curriculum domain adaptation, and 3) a memory module for handling new domains.
+
+# 3.1. Disentangling Domain Characteristics
+
+We separate characteristics specific to domains from those discriminative between classes. They allow us to construct a curriculum for increment domain adaptation.
+
+We first train a neural network classifier using the labeled source domain data $\{x^i, y^i\}_i$ . Let $E_{class}(\cdot)$ denote the encoder up to the second-to-the-last layer and $\Phi(E_{class}(\cdot))$ the classifier. The encoder captures primarily the class-discriminative representation of the data.
+
+We assume that all the factors not covered by this class-discriminative encoder reflect domain characteristics. They can be extracted by another encoder $E_{domain}(\cdot)$ that satisfies two properties: 1) Completeness: $\text{Decoder}(E_{class}(x), E_{domain}(x)) \approx x$ , i.e., the outputs of the two encoders shall provide sufficient information for a decoder to reconstruct the input, and 2) Orthogonality: the domain encoder $E_{domain}(x)$ shall have little mutual information with the class encoder $E_{class}(x)$ . We leave the algorithmic details for meeting the first property to the appendices as they are not our novelty.
+
+For the orthogonality between $E_{domain}(x)$ and $E_{class}(x)$ , we propose a class-confusion algorithm, which
+
+
+Figure 3: Overview of the memory-enhanced deep neural network. We enhance our network with a memory module that facilitates knowledge transfer from the source domain to target domain instances, so that the network can dynamically balance the input information and the memory-transferred knowledge for more agility towards previously unseen domains.
+
+alternates between the two sub-problems below:
+
+$$
+\min _ {E _ {\text {d o m a i n}}} - \sum_ {i} z _ {\text {r a n d o m}} ^ {i} \log D (E _ {\text {d o m a i n}} (x ^ {i})), \quad (1)
+$$
+
+$$
+\min _ {D} \quad - \sum_ {i} y ^ {i} \log D \left(E _ {\text {d o m a i n}} \left(x ^ {i}\right)\right), \tag {2}
+$$
+
+where superscript $i$ is the instance index, and $D(\cdot)$ is a discriminator the domain-encoder $E_{domain}(\cdot)$ tries to confuse. We first train the discriminator $D(\cdot)$ with the labeled data in the source domain. For the data in the target domain, we assign them pseudo-labels by the classifier $\Phi(E_{class}(\cdot))$ we have trained earlier. The learned domain encoder $E_{domain}(\cdot)$ is class-confusing due to $z_{random}^{i}$ , a random label uniformly chosen in the label space. As the classifier $D(\cdot)$ is trained, the first sub-problem essentially learns the domain-encoder such that it classifies the input $x^{i}$ into a random class $z_{random}^{i}$ . Algorithm 1 details our domain disentanglement process.
+
+Figure 4 (a) and (b) visualize the examples embedded by the class encoder $E_{\text{class}}(\cdot)$ and domain encoder $E_{\text{domain}}(\cdot)$ , respectively. The class encoder places instances in the same class in a cluster, while the domain encoder places instances according to their common appearances, regardless of their classes.
+
+# 3.2. Curriculum Domain Adaptation
+
+We rank all the instances in the compound target domain according to their distances to the source domain, to be used for curriculum domain adaptation [54]. We compute the domain gap between a target instance $x_{t}$ and the source domain $\{x_s^m\}$ as their mean distance in the domain feature space: $\text{mean}_m(\| E_{domain}(x_t) - E_{domain}(x_s^m)\|_2)$ .
+
+We train the network in stages, a few epochs at a time, gradually recruiting more instances that are increasingly far from the source domain. At each stage of the curriculum
+
+Algorithm 1 Domain Disentanglement.
+
+Input: The class encoder $E_{class}(\cdot)$ and classifier $\Phi$ have been trained using source-domain data, $Decoder(\cdot)$ : the decoder, $C$ : the number of classes, $\gamma$ : a constant.
+
+for k iterations do
+
+Sample mini-batch $\{x^i\}$ .
+
+Compute pseudo labels $y_{pseudo}^{i} \gets \Phi \left(E_{class}\left(x^{i}\right)\right)$ .
+
+Update the discriminator $D$
+
+Prepare random labels $z_{random}^{i}$ \~ uniform{0,1,...,C-1}.
+
+Compute adversarial loss: $L_{adv}$
+
+$\sum_{i} - z_{random}^{i}\log \left(D\left(E_{domain}(x^{i})\right)\right)$
+
+Compute reconstruction loss: $L_{rec}$
+
+$\sum_{i}\| \text{Decoder}\left(E_{\text{class}}\left(x^{i}\right),E_{\text{domain}}\left(x^{i}\right)\right) - x^{i}\|_{2}.$
+
+Update the domain encoder $E_{domain}$ with: $E_{domain}(L_{adv} + \gamma L_{rec})$
+
+end for
+
+learning, we minimize two losses: One is the cross-entropy loss defined over the labeled source domain, and the other is the domain-confusion loss [46] computed between the source domain and the currently covered target instances. Figure 4 (c) illustrates a curriculum in our experiments.
+
+# 3.3. Memory Module for Open Domains
+
+Existing domain adaptation methods often use the features $v_{direct}$ extracted directly from the input for adaptation. When the input comes from a new domain that significantly differs from the seen domains during training, this representation becomes inadequate and could fool the classifier. We propose a memory module to enhance our model; It allows knowledge transfer from the source domain so that the network can dynamically balance the input-conveyed information and the memory-transferred knowledge for more classification agility towards previously unseen domains.
+
+
+Figure 4: t-SNE Visualization of our (a) class-discriminative features, (b) domain features, and (c) curriculum. Our framework disentangles the mixed-domain data into class-discriminative factors and domain-focused factors. We use the domain-focused factors to construct a learning curriculum for domain adaptation.
+
+Class Memory $M$ . We design a memory module $M$ to store the class information from the source domain. Inspired by [43, 34, 26] on prototype analysis, we also use class centroids $\{c_k\}_{k=1}^K$ to construct our memory $M$ , where $K$ is the number of object classes.
+
+Enhancer $v_{enhance}$ . For each input instance, we build an enhancer to augment its direct representation $v_{direct}$ with knowledge in the memory about the source domain: $v_{enhance} = (\Psi(v_{direct}))^T M = \sum_{k=1}^{K} \psi_k c_k$ , where $\Psi(\cdot)$ is a softmax function. We add this enhancer to the direct representation $v_{direct}$ , weighted by a domain indicator.
+
+Domain Indicator $e_{domain}$ . With open domains, the network must dynamically calibrate how much knowledge to transfer from the source domain and how much to rely on the direct representation $v_{direct}$ of the input. Intuitively, the larger domain gap between an input $x$ and the source domain, the more weight on the memory feature. We design a domain indicator for such domain awareness: $e_{domain} = T(E_{domain}(x))$ , where $T(\cdot)$ is a lightweight network with the tanh activation functions and $E_{domain}(\cdot)$ is the domain encoder we have learned earlier.
+
+Source-Enhanced Representation $v_{transfer}$ . Our final representation of the input is a dynamically balanced version between the direct image feature and the memory enhanced feature:
+
+$$
+v _ {\text {t r a n s f e r}} = v _ {\text {d i r e c t}} + e _ {\text {d o m a i n}} \otimes v _ {\text {e n h a n c e}}, \tag {3}
+$$
+
+which transfers class-discriminative knowledge from the labeled source domain to the input in a domain-aware manner. Operator $\otimes$ is element-wise multiplication. Adopting cosine classifiers [25, 9], we $\ell_2$ -normalize this representation before sending it to the softmax classification layer. All of these choices help cope with domain mismatch when the input is significantly different from the source domain.
+
+# 4. Experiments
+
+Datasets. To facilitate a comprehensive evaluation on various tasks (i.e., classification, segmentation, and navigation), we carefully design four open compound domain adaptation (OCDA) benchmarks: C-Digits, C-Faces, C-Driving, and C-Mazes, respectively.
+
+1. C-Digits: This benchmark aims to evaluate the classification adaptation ability under different appearances and backgrounds. It is built upon five classic digits datasets (SVHN [31], MNIST [19], MNIST-M [6], USPS [18] and SynNum [6]), where SVHN is used as the source domain, MNIST, MNIST-M, and USPS are mixed as the compound target domain, and SynNum is the open domain. We employ SWIT [1] as an additional open domain for further analysis.
+2. C-Faces: This benchmark aims to evaluate the classification adaptation ability under different camera poses. It is built upon the Multi-PIE dataset [13], where C05 (frontal view) is used as source domain, C08-C14 (left side view) are combined as the compound target domain, and C19 (right side view) is kept out as the open domain.
+3. C-Driving: This benchmark aims to evaluate the segmentation adaptation ability from simulation to different real driving scenarios. The GTA-5 [38] dataset is adopted as the source domain, while the BDD100K dataset [51] (with different scenarios including "rainy", "snowy", "cloudy", and "overcast") is taken for the compound and open domains.
+4. C-Mazes: This benchmark aims to evaluate the navigation adaptation ability under different environmental appearances. It is built upon the GridWorld environment [17], where mazes with different colors are used
+
+
+Figure 5: Results of ablation studies about (a) the memory-enhanced embeddings and curriculum domain adaptation, (b) the domain-focused factors disentanglement, and (c) the memory-induced domain indicator vs. gaps to the source.
+
+
+
+
+
+
+
+Table 2: Performance on the C-Digits benchmark. The methods in gray are especially designed for multi-target domain adaptation. ${}^{ \dagger }$ MTDA uses domain labels,while ${}^{ \ddagger }$ BTDA and DADA use the open domain images during training.
+
+| Src. Domain
+SVHN → | Compound Domains (C) | Open (O)
+SynNum | Avg. |
| MNIST | MNIST-M | USPS | C | C+O |
| ADDA [46] | 80.1±0.4 | 56.8±0.7 | 64.8±0.3 | 72.5±1.2 | 67.2±0.5 | 68.6±0.7 |
| JAN [28] | 65.1±0.1 | 43.0±0.1 | 63.5±0.2 | 85.6±0.0 | 57.2±0.1 | 64.3±0.1 |
| MCD [40] | 69.6±1.4 | 48.6±0.5 | 70.6±0.2 | 89.8±2.9 | 62.9±1.0 | 69.9±1.3 |
| MTDA† [8] | 84.6±0.3 | 65.3±0.2 | 70.0±0.2 | - | 73.3±0.2 | - |
| BTDA‡ [4] | 85.2±1.6 | 65.7±1.3 | 74.3±0.9 | 84.4±2.2 | 75.1±1.3 | 77.4±1.5 |
| DADA‡ [37] | - | - | - | - | - | 80.1±0.4 |
| Ours | 90.9±0.2 | 65.7±0.5 | 83.4±0.3 | 88.2±0.8 | 80.0±0.3 | 82.1±0.5 |
+
+as the source and open domains. Since reinforcement learning often assumes no prior access to the environments, there are no compound target domains here.
+
+Network Architectures. To make a fair comparison with previous works [46, 8, 37], the modified LeNet-5 [19] and ResNet-18 [14] are used as the backbone networks for C-Digits and C-Faces, respectively. Following [45, 56, 33], a pre-trained VGG-16 [42] is the backbone network for C-Driving. We additionally test our approach on reinforcement learning using ResNet-18 following [17].
+
+Evaluation Metrics. The C-digits performance is measured by the digit classification accuracy, and the C-Faces performance is measured by the facial expression classification accuracy. The C-Driving performance is measured by the standard mIOU, and the C-Mazes performance is measured by the average successful rate in 300 steps. We evaluate the performance of each method with five runs and report both the mean and standard deviation. Moreover, we report both results of individual domains and the averaged results for a comprehensive analysis.
+
+Comparison Methods. For classification tasks, we choose for comparison state-of-the-art methods in both conventional unsupervised domain adaptation (ADDA [46], JAN [28], MCD [40]) and the recent multi-target domain adaptation methods (MTDA [8], BTDA [4], DADA [37]). Since MTDA [8], BTDA [4] and DADA [37] are the most related to our work, we directly contrast our results to
+
+the numbers reported in their papers. For the segmentation task, we compare with three state-of-the-art methods, AdaptSeg [45], CBST [56], IBN-Net [33] and PyCDA [24]. For the reinforcement learning task, we benchmark with MTL, MLP [17] and SynPo [17], a representative work for adaptation across environments. We apply these methods to the same backbone networks as ours for a fair comparison.
+
+# 4.1. Ablation Study
+
+Effectiveness of the Domain-Focused Factors Disentanglement. Here we verify that the domain-focused factors disentanglement helps discover the latent structures in the compound target domain. It is probed by the domain identification rate within the $k$ -nearest neighbors found by different encodings. Figure 5 (b) shows that features produced by our disentanglement have a much higher identification rate ( $\sim 95\%$ ) than the counterparts without disentanglement ( $\sim 65\%$ ).
+
+Effectiveness of the Curriculum Domain Adaptation. Figure 5 (a) also reveals that, in the compound domain, the curriculum training contributes to the performance on USPS more than MNIST and MNITS-M. On the other hand, we can observe from Figure 4 and Table 2 that USPS is the furthest target domain from the source domain SVHN. It implies that curriculum domain adaptation makes it easy to adapt to the distant target domains through an easy-to-hard adaptation schedule.
+
+Table 3: Performance on the C-Faces benchmark. The methods in gray are especially designed for multi-target domain adaptation. ${}^{ \dagger }$ MTDA uses domain labels during training.
+
+| S
+C05 | O
+C19 | C19 |
| C
+C08 | C09 | C13 |
+
+| Src. Domain
+C05 → | Compound Domains (C) | Open (O)
+C19 | Avg. |
| C08 | C09 | C13 | C14 | C | C+O |
| ADDA [46] | 46.9±0.2 | 36.4±0.5 | 39.1±0.3 | 65.4±0.4 | 71.8±0.8 | 47.0±0.4 | 51.9±0.4 |
| JAN [28] | 63.5±0.3 | 40.6±1.0 | 83.5±0.4 | 92.0±0.8 | 52.5±1.5 | 69.7±0.6 | 66.2±0.8 |
| MCD [40] | 50.4±0.5 | 45.8±0.2 | 77.8±0.1 | 88.0±0.1 | 60.4±0.9 | 65.7±0.2 | 64.6±0.4 |
| MTDA† [8] | 49.0±0.2 | 48.2±0.1 | 53.1±0.2 | 84.3±0.1 | - | 58.7±0.2 | - |
| Ours | 73.3±0.2 | 55.1±0.4 | 84.1±0.1 | 88.9±0.3 | 72.7±0.6 | 75.4±0.3 | 74.8±0.3 |
+
+Table 4: Performance on the C-Driving (left) and C-Mazes benchmarks (right). "SynPo+Aug." indicates that we equip SynPo with proper color augmentation/randomization during training. Visual illustrations of both datasets are in Figure 6.
+
+| Source
+GTA-5 → | Compound (C) | Open (O)
+Overcast | Avg. |
| Rainy | Snowy | Cloudy | C | C+O |
| Source Only | 16.2 | 18.0 | 20.9 | 21.2 | 18.9 | 19.1 |
| AdaptSeg [45] | 20.2 | 21.2 | 23.8 | 25.1 | 22.1 | 22.5 |
| CBST [56] | 21.3 | 20.6 | 23.9 | 24.7 | 22.2 | 22.6 |
| IBN-Net [33] | 20.6 | 21.9 | 26.1 | 25.5 | 22.8 | 23.5 |
| PyCDA [24] | 21.7 | 22.3 | 25.9 | 25.4 | 23.3 | 23.8 |
| Ours | 22.0 | 22.9 | 27.0 | 27.9 | 24.5 | 25.0 |
+
+| Source
+M0 → | Open(O) | Avg.
+O |
| M1 | M2 | M3 | M4 |
| Source Only | 0±0 | 0±0 | 0±0 | 0±0 | 0±0 |
| MTL | 0±0 | 30±5 | 75±0 | 65±5 | 42.5±2.5 |
| MLP [17] | 5±5 | 45±10 | 75±5 | 80±10 | 51.2±7.5 |
| SynPo [17] | 5±5 | 30±20 | 80±5 | 30±5 | 36.3±8.8 |
| SynPo+Aug. | 0±5 | 40±10 | 95±5 | 45±5 | 45.0±6.3 |
| Ours | 80±2.5 | 75±10 | 85±5 | 90±5 | 82.5±5.6 |
+
+Effectiveness of Memory-Enhanced Representations. Recall that the memory-enhanced representations consist of two main components: the enhancer coming from the memory and the domain indicator. From Figure 5 (a), we observe that the class enhancer leads to large improvements on all target domains. It is because the enhancer from the memory transfers useful semantic concepts to the input of any domain. Another observation is that the domain indicator is the most effective on the open domain ("SynNum"), because it helps dynamically calibrate the representations by leveraging domain relations (Figure 5 (c)).
+
+# 4.2. Comparison Results
+
+C-Digits. Table 2 shows the comparison performances of different methods. We have the following observations. Firstly, ADDA [46] and JAN [28] boost the performance on the compound domain by enforcing global distribution alignment. However, they also sacrifice the performance on the open domain since there is no built-in mechanism for handling any new domains, "overfitting" the model to the seen domains. Secondly, MCD [40] improves the results on the open domain, but its accuracy degrades on the compound target domain. Maximizing the classifier discrepancy increases the robustness to the open domain; however, it also fails to capture the fine-grained latent structure in the compound target domain. Lastly, compared to other multi-target domain adaptation methods (MTDA [8] and DADA [37]), our approach discovers domain structures and performs domain-aware knowledge transfer, achieving substantial advantages on all the test domains.
+
+C-Faces. Similar observations can be made on the C-Faces benchmark as shown in Table 3. Since face representations are inherently hierarchical, JAN [28] demonstrates com
+
+petitive results on C14 due to its layer-wise transferring strategy. Under the domain shift with different camera poses, our approach still consistently outperforms other alternatives for both the compound and open domains.
+
+C-Driving. We compare with the state-of-the-art semantic segmentation adaptation methods such as AdaptSeg [45], CBST [56], and IBN-Net [33]. All methods are tested under real-world driving scenarios in the BDD100K dataset [51]. We can see that our approach has clear advantages on both the compound domain (1.1% gains) and the open domain (2.4% gains) as shown in Table 4 (left). We show detailed per-class accuracies in the appendices. The qualitative comparisons are shown in Figure 6 (a).
+
+C-Mazes. To directly compare with SynPo [17], we also evaluate on the GridWorld environments they provided. The task in this benchmark is to learn navigation policies that can successfully collect all the treasures in the given mazes. Existing reinforcement learning methods suffer from environmental changes, which we simulate as the appearances of the mazes here. The final results are listed in Table 4 (right). Our approach transfers visual knowledge among navigation experiences and achieves more than $30\%$ improvements over the prior arts.
+
+# 4.3. Further Analysis
+
+Robustness to the Complexity of the Compound Target Domain. We control the complexity of the compound target domain by varying the number of traditional target domains / datasets in it. Here we gradually increase constituting domains from a single target domain (i.e., MNIST) to two, and eventually three (i.e., MNIST + MNIST-M + USPS). From Figure 7 (a), we observe that as the number of datasets increase, our approach only undergoes a moderate
+
+
+(a) C-Driving Benchmark
+
+
+
+
+(b) C-Mazes Benchmark
+
+
+Figure 6: (a) Qualitative results comparison of semantic segmentation on the source domain (S), the compound target domain (C), and the open domain (O). (b) Illustrations of the 5 different domains in the C-Mazes benchmark. Our approach consistently outperforms existing domain adaptation methods across all compound and open target domains.
+
+
+Figure 7: Further analysis on the (a) robustness to the complexity of the compound target domain and (b) robustness to the number of open domains. “M”, “MM” and “U” stand for MNIST, MNIST-M, and USPS, respectively, while “SN”, “UM” and “SW” stand for SynNum, USPS-M, and SWIT, respectively.
+
+performance drop. The learned curriculum enables gradual knowledge transfer that is capable of coping with complex structures in the compound target domain.
+
+Robustness to the Number of Open Domains. The performance change w.r.t. the number of open domains is demonstrated in Figure 7 (b). Here we include two new digits datasets, USPS-M (crafted in a similar way as MNIST-M) and SWIT [1], as the additional open domains. Compared to JAN [28] and MCD [40], our approach is more resilient to the various numbers of open domains. The domain indicator module in our framework helps dynamically calibrate the embedding, thus enhancing the robustness to open domains. Figure 8 presents the t-SNE visualization comparison between the obtained embeddings of JAN [28], MCD [40], and our approach.
+
+
+Figure 8: t-SNE visualization of the obtained embeddings. Compared to other methods, our approach is capable of producing class-discriminative features on both compound and open target domains.
+
+# 5. Summary
+
+We formalize a more realistic topic called open compound domain adaptation for domain-robust learning. We propose a novel model which includes a self-organizing curriculum domain adaptation to bootstrap generalization and a memory enhanced feature representation to build agility towards open domains. We develop several benchmarks on classification, recognition, segmentation, and reinforcement learning and demonstrate the effectiveness of our model.
+
+Acknowledgements. This research was supported, in part, by the General Research Fund (GRF) of Hong Kong (No. 14236516 & No. 14203518), Berkeley Deep Drive, DARPA, NSF 1835539, and US Government fund through Etegent Technologies on Low-Shot Detection in Remote Sensing Imagery.
+
+# References
+
+[1] Switzerland handwritten digits dataset. https://github.com/kensanata/numbers. Accessed: 2019-03-15, 5, 8
+[2] Andreea Bobu, Eric Tzeng, Judy Hoffman, and Trevor Darrell. Adapting to continuously shifting domains. *ICLR Workshop*, 2018. 3
+[3] Zhangjie Cao, Lijia Ma, Mingsheng Long, and Jianmin Wang. Partial adversarial domain adaptation. In ECCV, 2018. 3
+[4] Ziliang Chen, Jingyu Zhuang, Xiaodan Liang, and Liang Lin. Blending-target domain adaptation by adversarial meta-adaptation networks. In CVPR, 2019. 3, 6
+[5] Dengxin Dai, Christos Sakaridis, Simon Hecker, and Luc Van Gool. Model adaptation with synthetic and real data for semantic dense foggy scene understanding. IJCV, 2019. 2
+[6] Yaroslav Ganin and Victor Lempitsky. Unsupervised domain adaptation by backpropagation. In ICML, 2015. 2, 5
+[7] Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, François Laviolette, Mario Marchand, and Victor Lempitsky. Domain-adversarial training of neural networks. JMLR, 2016. 1, 2
+[8] Behnam Gholami, Pritish Sahu, Ognjen Rudovic, Konstantinos Bousmalis, and Vladimir Pavlovic. Unsupervised multi-target domain adaptation: An information theoretic approach. arXiv preprint arXiv:1810.11547, 2018. 3, 6, 7
+[9] Spyros Gidaris and Nikos Komodakis. Dynamic few-shot visual learning without forgetting. In CVPR, 2018. 5
+[10] Boqing Gong, Kristen Grauman, and Fei Sha. Reshaping visual datasets for domain adaptation. In NIPS, 2013. 1, 3
+[11] Boqing Gong, Yuan Shi, Fei Sha, and Kristen Grauman. Geodesic flow kernel for unsupervised domain adaptation. In CVPR, 2012. 1, 2
+[12] Rui Gong, Wen Li, Yuhua Chen, and Luc Van Gool. Dlow: Domain flow for adaptation and generalization. In CVPR, 2019. 3
+[13] R. Gross, I. Matthews, J. Cohn, T. Kanade, and S. Baker. Multi-pie. In 2008 8th IEEE International Conference on Automatic Face Gesture Recognition, 2008. 5
+[14] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 6
+[15] Judy Hoffman, Brian Kulis, Trevor Darrell, and Kate Saenko. Discovering latent domains for multisource domain adaptation. In ECCV, 2012. 1, 3
+[16] 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, 2018. 2
+[17] Hexiang Hu, Liyu Chen, Boqing Gong, and Fei Sha. Synthesized policies for transfer and adaptation across tasks and environments. In NIPS, 2018. 5, 6, 7
+[18] J. J. Hull. A database for handwritten text recognition research. TPAMI, 1994. 2, 5
+
+[19] Yann LeCun, Léon Bottou, Yoshua Bengio, Patrick Haffner, et al. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 1998. 2, 5, 6
+[20] Da Li, Yongxin Yang, Yi-Zhe Song, and Timothy M Hesperides. Learning to generalize: Meta-learning for domain generalization. In AAAI, 2018. 1, 3
+[21] Haoliang Li, Sinno Jialin Pan, Shiqi Wang, and Alex C Kot. Domain generalization with adversarial feature learning. In CVPR, 2018. 3
+[22] Wen Li, Zheng Xu, Dong Xu, Dengxin Dai, and Luc Van Gool. Domain generalization and adaptation using low rank exemplar svms. TPAMI, 2017. 1
+[23] Xiaoxiao Li, Ziwei Liu, Ping Luo, Chen Change Loy, and Xiaou Tang. Not all pixels are equal: Difficulty-aware semantic segmentation via deep layer cascade. In CVPR, 2017. 2
+[24] Qing Lian, Fengmao Lv, Lixin Duan, and Boqing Gong. Constructing self-motivated pyramid curriculums for cross-domain semantic segmentation: A non-adversarial approach. In ICCV, 2019. 6, 7
+[25] Weiyang Liu, Yandong Wen, Zhiding Yu, Ming Li, Bhiksha Raj, and Le Song. Spherical face: Deep hypersphere embedding for face recognition. In CVPR, 2017. 5
+[26] Ziwei Liu, Zhongqi Miao, Xiaohang Zhan, Jiayun Wang, Boqing Gong, and Stella X Yu. Large-scale long-tailed recognition in an open world. In CVPR, 2019. 5
+[27] Ziwei Liu, Sijie Yan, Ping Luo, Xiaogang Wang, and Xiaou Tang. Fashion landmark detection in the wild. In ECCV, 2016. 2
+[28] Mingsheng Long, Han Zhu, Jianmin Wang, and Michael I Jordan. Deep transfer learning with joint adaptation networks. In ICML, 2017. 1, 2, 6, 7, 8
+[29] Massimiliano Mancini, Samuel Rota Bulo, Barbara Caputo, and Elisa Ricci. Adagraph: Unifying predictive and continuous domain adaptation through graphs. In CVPR, 2019. 3
+[30] Massimiliano Mancini, Lorenzo Porzi, Samuel Rota Bulo, Barbara Caputo, and Elisa Ricci. Inferring latent domains for unsupervised deep domain adaptation. TPAMI, 2019. 3
+[31] Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y Ng. Reading digits in natural images with unsupervised feature learning. NIPS, 2011. 2, 5
+[32] Sinno Jialin Pan, Ivor W Tsang, James T Kwok, and Qiang Yang. Domain adaptation via transfer component analysis. IEEE Transactions on Neural Networks, 2010. 1
+[33] Xingang Pan, Ping Luo, Jianping Shi, and Xiaou Tang. Two at once: Enhancing learning and generalization capacities via ibn-net. In ECCV, 2018. 6, 7
+[34] Yingwei Pan, Ting Yao, Yehao Li, Yu Wang, Chong-Wah Ngo, and Tao Mei. Transferrable prototypical networks for unsupervised domain adaptation. In CVPR, 2019. 5
+[35] Pau Panareda Busto and Juergen Gall. Open set domain adaptation. In ICCV, 2017. 3
+[36] Xingchao Peng, Qinxun Bai, Xide Xia, Zijun Huang, Kate Saenko, and Bo Wang. Moment matching for multi-source domain adaptation. In ICCV, 2019. 2
+[37] Xingchao Peng, Zijun Huang, Xineng Sun, and Kate Saenko. Domain agnostic learning with disentangled representations. In ICML, 2019. 3, 6, 7
+
+[38] Stephan R. Richter, Vibhav Vineet, Stefan Roth, and Vladlen Koltun. Playing for data: Ground truth from computer games. In ECCV, 2016. 5
+[39] Kate Saenko, Brian Kulis, Mario Fritz, and Trevor Darrell. Adapting visual category models to new domains. In ECCV, 2010. 1, 2
+[40] Kuniaki Saito, Kohei Watanabe, Yoshitaka Ushiku, and Tatsuya Harada. Maximum classifier discrepancy for unsupervised domain adaptation. In CVPR, 2018. 1, 2, 6, 7, 8
+[41] Kuniaki Saito, Shohei Yamamoto, Yoshitaka Ushiku, and Tatsuya Harada. Open set domain adaptation by backpropagation. In ECCV, 2018. 3
+[42] K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. 6
+[43] Jake Snell, Kevin Swersky, and Richard Zemel. Prototypical networks for few-shot learning. In NIPS, 2017. 5
+[44] Antonio Torralba and Alexei A Efros. Unbiased look at dataset bias. In CVPR, 2011. 1, 2
+[45] 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 CVPR, 2018. 6, 7
+[46] Eric Tzeng, Judy Hoffman, Kate Saenko, and Trevor Darrell. Adversarial discriminative domain adaptation. In CVPR, 2017. 1, 2, 4, 6, 7
+[47] Hemanth Venkateswara, Jose Eusebio, Shayok Chakraborty, and Sethuraman Panchanathan. Deep hashing network for unsupervised domain adaptation. In CVPR, 2017. 2
+[48] Zuxuan Wu, Xin Wang, Joseph E Gonzalez, Tom Goldstein, and Larry S Davis. Ace: Adapting to changing environments for semantic segmentation. In ICCV, 2019. 3
+[49] Caiming Xiong, Scott McCloskey, Shao-Hang Hsieh, and Jason J Corso. Latent domains modeling for visual domain adaptation. In AAAI, 2014. 3
+[50] Zheng Xu, Wen Li, Li Niu, and Dong Xu. Exploiting low-rank structure from latent domains for domain generalization. In ECCV, 2014. 3
+[51] 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 preprint arXiv:1805.04687, 2018. 5, 7
+[52] Huanhuan Yu, Mengei Hu, and Songcan Chen. Multi-target unsupervised domain adaptation without exactly shared categories. arXiv preprint arXiv:1809.00852, 2018. 3
+[53] Jing Zhang, Zewei Ding, Wanqing Li, and Philip Ogunbona. Importance weighted adversarial nets for partial domain adaptation. In CVPR, 2018. 3
+[54] Yang Zhang, Philip David, Hassan Foroosh, and Boqing Gong. A curriculum domain adaptation approach to the semantic segmentation of urban scenes. TPAMI, 2019. 2, 4
+[55] Yang Zou, Zhiding Yu, Xiaofeng Liu, BVK Kumar, and Jinsong Wang. Confidence regularized self-training. In ICCV, 2019. 2
+[56] Yang Zou, Zhiding Yu, BVK Vijaya Kumar, and Jinsong Wang. Unsupervised domain adaptation for semantic seg
+
+mentation via class-balanced self-training. In ECCV, 2018. 2,6,7
\ No newline at end of file
diff --git a/opencompounddomainadaptation/images.zip b/opencompounddomainadaptation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..9a0957d2ee8ddd010afa20247d5d73ebe638a6ec
--- /dev/null
+++ b/opencompounddomainadaptation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:68de989a75983234a9121efeae459ad4e8c8530727add32b41d3b261b06b5d49
+size 838512
diff --git a/opencompounddomainadaptation/layout.json b/opencompounddomainadaptation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..3cf97ce0e8efb47aede3579921445075d001c9b8
--- /dev/null
+++ b/opencompounddomainadaptation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ba535a62464b25bdf04c702ed08965fc48ec223f336a87201804aebc59f24c35
+size 362377
diff --git a/opticalflowindensefoggyscenesusingsemisupervisedlearning/97a94208-062b-4bdf-b14d-e136cac17465_content_list.json b/opticalflowindensefoggyscenesusingsemisupervisedlearning/97a94208-062b-4bdf-b14d-e136cac17465_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..84bb7b180fe9c4591e0eb8a211a37c1389008d8a
--- /dev/null
+++ b/opticalflowindensefoggyscenesusingsemisupervisedlearning/97a94208-062b-4bdf-b14d-e136cac17465_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9124901f702199836cb110b0cfabbd4daa9ba9244c0c6cdf5fc8bfb25c15bbee
+size 79536
diff --git a/opticalflowindensefoggyscenesusingsemisupervisedlearning/97a94208-062b-4bdf-b14d-e136cac17465_model.json b/opticalflowindensefoggyscenesusingsemisupervisedlearning/97a94208-062b-4bdf-b14d-e136cac17465_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..cdcfb5e90d0742e799e9f20dfd179470e588aec7
--- /dev/null
+++ b/opticalflowindensefoggyscenesusingsemisupervisedlearning/97a94208-062b-4bdf-b14d-e136cac17465_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bec5fb67222857abc708498caa95997d1098127305eebd8a499688dfc14ff3d3
+size 98287
diff --git a/opticalflowindensefoggyscenesusingsemisupervisedlearning/97a94208-062b-4bdf-b14d-e136cac17465_origin.pdf b/opticalflowindensefoggyscenesusingsemisupervisedlearning/97a94208-062b-4bdf-b14d-e136cac17465_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..2d96693972bc3cd33eb2c66d325af4b9099ef622
--- /dev/null
+++ b/opticalflowindensefoggyscenesusingsemisupervisedlearning/97a94208-062b-4bdf-b14d-e136cac17465_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:37d9fd428bbfe72ec70f7d626ed563a52fa7cb9c31b5cf028c189de73533c1ab
+size 1671424
diff --git a/opticalflowindensefoggyscenesusingsemisupervisedlearning/full.md b/opticalflowindensefoggyscenesusingsemisupervisedlearning/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..29b965c440cf9ed2b7a5e9653b7dd53b94f15c82
--- /dev/null
+++ b/opticalflowindensefoggyscenesusingsemisupervisedlearning/full.md
@@ -0,0 +1,383 @@
+# Optical Flow in Dense Foggy Scenes using Semi-Supervised Learning
+
+Wending Yan\*1, Aashish Sharma\*1, and Robby T. Tan\*1,2 1National University of Singapore, 2Yale-NUS College
+
+eleyanw@nus.edu.sg, aashish.sharma@u.nus.edu, robbed.tan@{nus,yale-nus}.edu.sg
+
+# Abstract
+
+In dense foggy scenes, existing optical flow methods are erroneous. This is due to the degradation caused by dense fog particles that break the optical flow basic assumptions such as brightness and gradient constancy. To address the problem, we introduce a semi-supervised deep learning technique that employs real fog images without optical flow ground-truths in the training process. Our network integrates the domain transformation and optical flow networks in one framework. Initially, given a pair of synthetic fog images, its corresponding clean images and optical flow ground-truths, in one training batch we train our network in a supervised manner. Subsequently, given a pair of real fog images and a pair of clean images that are not corresponding to each other (unpaired), in the next training batch, we train our network in an unsupervised manner. We then alternate the training of synthetic and real data iteratively. We use real data without ground-truths, since to have ground-truths in such conditions is intractable, and also to avoid the overfitting problem of synthetic data training, where the knowledge learned on synthetic data cannot be generalized to real data testing. Together with the network architecture design, we propose a new training strategy that combines supervised synthetic-data training and unsupervised real-data training. Experimental results show that our method is effective and outperforms the state-of-the-art methods in estimating optical flow in dense foggy scenes.
+
+# 1. Introduction
+
+Fog is a common and inevitable weather phenomenon. It degrades visibility by weakening the background scene information, and washing out the colors of the scene. This degradation breaks the Brightness Constancy Constraint (BCC) and Gradient Constancy Constraint (GCC) used in existing optical flow methods. To our knowledge, none of the existing methods can handle dense foggy scenes robustly. This is because most of them (e.g. [42, 6, 14, 38, 30,
+
+
+
+
+
+
+(a) Input Image
+(c) Our Result
+Figure 1: (a) Input dense foggy image (first frame). (b) Optical flow result from the existing baseline method PwCNet [38]. We can observe that the result is erroneous and the method cannot handle dense fog. As shown in (c), compared to it, our method performs more robustly.
+
+
+(b) PwCNet [38]
+(d) Ground-Truth
+
+43]) are designed under the assumption of clear visibility.
+
+One of the possible solutions is to render synthetic fog images based on the commonly used physics model (i.e., the Koschmieder model [18]), and then to train a network on the synthetic fog images and their corresponding optical flow ground-truths in a supervised manner. While in our investigation, it works to some extent, when applied to real dense fog images in the testing stage, it does not perform adequately. The main cause is the domain gap between the synthetic and real fog images. The synthetic images are too crude to represent the complexity of real fog images. This problem can be fixed by using real fog images, instead of synthetic fog images for training. However, to obtain the correct optical flow ground-truths for real fog images is extremely challenging [3].
+
+Another possible solution is to defog the real fog images using an existing defogging method (e.g., [39, 7, 12, 1, 45, 21]), and then to estimate the flow using an existing optical flow method. This two-stage solution, however, is not effective either. First, existing defogging methods are not designed for optical flow, hence their outputs might not be optimum for flow computation. Second, defogging, particularly for dense fog, is still an open problem. Hence, the
+
+outputs of existing defogging methods are still inadequate to make the estimation of optical flow accurate and robust.
+
+Our goal in this paper is to estimate the optical flow from dense fog images robustly. To achieve the goal, we introduce a novel deep learning method that integrates domain transformation (e.g. [15, 47]) and optical flow estimation in a single framework. Initially, given a pair of synthetic fog images, its corresponding clean images and optical flow ground-truths, in one training batch, we train our network in a supervised manner. Subsequently, given a pair of real fog images and a pair of clean images that are not corresponding to each other (unpaired data), in the next training batch, we train our network in an unsupervised manner. The training of synthetic and real data are carried out alternately. We use the synthetic data with ground-truths to guide the network to learn the transformation correctly, so that we can mitigate the fake-content generation problem that is commonly observed in unpaired training [47, 25, 36]. We use the real data without ground-truths to avoid the overfitting problem of the synthetic data training, where the knowledge learned from synthetic data in the training cannot be generalized to real data in the testing.
+
+In essence, our method is a semi-supervised method. Our domain transformation enables our network to learn directly from real data without ground-truths. When the training input is a pair of clean images, our domain transformation renders the corresponding foggy images, and our optical flow module estimates the flow map. Moreover, from the rendered foggy images, our optical flow module also estimates the flow map. Hence, these two different flow maps must be identical. If they are not, then we can backpropagate the error. The same mechanism applies when the training input is a pair of foggy images. Another advantage of our architecture is that the transformation and optical flow modules can benefit each other: Our domain transformation helps our optical flow module reconstruct the fog-invariant cost volume, and our optical flow module enables our domain transformation module to distinguish some objects from the background through the flow information. As a summary, here are our contributions:
+
+- We introduce an architecture that integrates domain transformation and optical flow modules in one framework. The two modules work in mutual cooperation benefiting each other at the feature pyramid levels.
+- We propose a training strategy combining synthetic data with ground-truths, clean and fog real data without ground-truths in one integrated learning process.
+- We provide a domain adaptive method, which can predict optical flow from both clean and fog images. We also show the effectiveness of using photometric and hazeline [2] constraints to make our network learn better about optical flow and fog.
+
+# 2. Related Work
+
+Many methods have been proposed to tackle optical flow estimation ([8] for a comprehensive survey). More recently, deep learning is widely used in optical flow methods. Dosovitskiy et. al. [6] design FlowNetS and FlowNetC based on the U-Net architecture [34]. Their method is a pioneer work in showing the possibility of using a deep-learning method to solve the optical flow problem. Ilg et al. [14] design FlowNet2 by stacking multiple FlowNetS and FlowNetC networks. FlowNet2 is trained in a stack-wise manner, and thus is not end-to-end. Sun et al. [38] propose PwCNet. Its performance is comparable to FlowNet2, yet it is significantly smaller in terms of network parameters. All these methods are fully supervised and trained using synthetic data. In contrast, our method uses semi-supervised learning, employing labeled synthetic and unlabeled real data.
+
+Jason et al. [16] propose an unsupervised learning method for flow estimation, for the first time. Ren et al. [33] publish a method with a more complex structure. These two methods simply use the brightness constancy and motion smoothness losses. Some other methods combined depth, ego-motion and optical flow together, such as Yin and Shi [44] and Ranjan et al. [31]. These methods, however, use three independent networks to estimate depth, ego-motion and optical flow, and require camera calibration. Generally, the performance of the current unsupervised methods cannot be as accurate and sharp as that of the fully supervised methods. To take the advantages of both fully supervised and unsupervised learning, Lai et al. [19] proposed a semi-supervised method, which uses the discriminative loss from the warping difference between two frames. Recently, there is progress in unsupervised optical flow (e.g. [46, 41, 31]), under the assumption that the input images are clean. Liu et al. [26] propose a self-supervised method for learning optical flow from unlabeled data. They use photometric loss to obtain reliable flow estimations, which are later used as ground-truths for training. To our knowledge, none of these methods are designed to handle dense foggy scenes. While some previous non-learning-based works (e.g. [28]) can handle illumination variations in the images, these methods also cannot handle dense foggy scenes. This is because fog is more than just intensity/illumination changes in the images, and robustness to illumination variations does not necessarily ensure robustness to fog.
+
+Some works address the problem of semantic segmentation under fog (e.g. [35, 5]). However, they employ a gradual learning scheme, where the network is first trained on labeled synthetic fog data. Then, the network is used to generate flow results on light real fog data. The network is then trained again on labeled synthetic fog data and light fog real data, for which the results predicted before are used as ground-truths. The entire process is repeated for dense
+
+fog real data. While this learning scheme is simple to implement, it has a few problems. First, it makes the entire learning scheme manual. In contrast, our method is completely end-to-end trainable and requires no manual intervention. Second, the results predicted for real data in the previous stage are used as ground-truths for training in the next stage, which could be erroneous. This can lead the network to learning inaccurate flow estimations. In contrast, our method uses accurate flow ground truths from synthetic data, to learn on rendered real fog data. This ensures that the flow network always learns from correct flow ground-truths.
+
+One possible solution of estimating optical flow in foggy scenes is a two-stage solution: defog first and optical flow estimation afterwards. Many methods in defogging/dehazing have been proposed. (see [23] for a comprehensive review). A few methods are based on deep learning, e.g. [4, 32, 20, 21]. All these methods are based on a single image, and thus can cause inconsistent defogging outputs, which in turn causes the violation of the BCC and GCC. Moreover, defogging, particularly for dense fog is still an open problem. Hence, the outputs of existing defogging methods can still be inadequate to generate robust optical flow estimation.
+
+# 3. Proposed Method
+
+# 3.1. Network Architecture
+
+Optical Flow Network Our optical flow module consists of two encoders $E_{f}$ , $E_{c}$ and a decoder $D_{of}$ , which are shown in Fig. 2, where subscripts $f$ , $c$ , and $of$ stand for fog, clean, and optical flow, respectively. The two encoders $(E_{f}$ and $E_{c}$ ) extract features from the fog and clean input images respectively. They have the same architecture, but independent weights. As recent works [30, 38] show that pyramid features improve the estimation of optical flow, we design our encoders in the same way. Our decoder correlates the pyramid features from two input images to form a cost volume, which is used to predict optical flow. Since our decoder receives features from the two encoders working on different domains (fog and clean), it encourages the two encoders to generate domain adaptive features. This domain adaptation ensures that robust optical flow is generated from the two domain inputs.
+
+Domain Transformation Network Our domain transformation module is formed by the encoders, $E_{f}$ and $E_{c}$ , and two decoders, $D_{f}$ and $D_{c}$ . The fog encoder, $E_{f}$ , takes the fog images as the input, and outputs feature pyramids. The clean decoder, $D_{c}$ , processes the features, and constructs the clean version of the input images. The other encoder, $E_{c}$ , does the same, however instead of fog images, it takes clean images as the input. The fog decoder, $D_{f}$ , processes
+
+the features produced by $E_{c}$ , and transforms them to fog images. To ensure the proper quality of our transformed clean and fog images, we employ the discriminative loss [11]. While domain transformation is not our main goal, the quality of the transformed images can affect the optical flow result. Note that, we employ feature pyramids in computing the features, so that the same features can also be used by our optical flow network.
+
+# 3.2. Semi-Supervised Training Strategy
+
+To train our network, ideally we should use real fog data with the corresponding optical flow ground-truths. Unfortunately, to obtain the ground-truths of real fog images is extremely intractable. The best possible technology we can employ currently is LIDAR sensors. However, LIDAR captures only sparse depths and stationary objects. Moreover, it has limited depth range and its accuracy is affected by fog dense particles [3]. An alternative solution is to use synthetic fog images, whose corresponding optical flow is easy to obtain. However, it is known that there are significant gaps between synthetic and real fog images. Synthetic fog images are too simplistic and cannot represent real fog and its complexity in many conditions. Because of these problems, we utilize real clean (no fog) images to help our network learn about fog, clean background scenes, and optical flow. While there are domain gaps between clean real images and fog real images, we bridge the gaps through our domain transformation network.
+
+Our training strategy includes datasets both with and without ground-truths, involving real fog images, synthetic fog images, and real clean images. The reason we use the synthetic fog images is because, they can help guide the network to transform the features from different image domains more correctly by mitigating the generation of fake contents during the transformation. The whole process of our training strategy can be separated into three stages: Synthetic-fog training stage, real-clean training stage, and real-fog training stage.
+
+# 3.3. Synthetic-Data Training Stage
+
+Given synthetic fog images, their corresponding synthetic clean background images, and their corresponding optical flow ground-truths, we can train our network in a fully supervised manner. First, to train the optical flow module: $\{E_f,E_c,D_{of}\}$ , we use EPE (End-Point Error) losses between the predicted optical flow and the corresponding ground-truths for both synthetic fog and clean input images:
+
+$$
+\mathcal {L} _ {\mathrm {E P E} _ {s} ^ {f}} \left(E _ {f}, D _ {o f}\right) = \mathbb {E} _ {\left(x _ {s 1} ^ {f}, x _ {s 2} ^ {f}\right)} \left[ \| \widehat {\boldsymbol {o f}} ^ {f} - o f _ {g t} ^ {f} \| _ {2} \right], \tag {1}
+$$
+
+$$
+\mathcal {L} _ {\mathrm {E P E} _ {s} ^ {c}} \left(E _ {c}, D _ {o f}\right) = \mathbb {E} _ {\left(x _ {s 1} ^ {c}, x _ {s 2} ^ {c}\right)} \left[ \| \widehat {o f} ^ {c} - o f _ {g t} ^ {c} \| _ {2} \right], \tag {2}
+$$
+
+
+Input: Foggy Image Pair
+
+
+Input: Clean Image Pair
+
+
+Figure 2: Overall architecture of our network.
+
+with:
+
+$$
+\widehat {o f} ^ {f} = D _ {o f} \left[ \left(E _ {f} \left[ x _ {s 1} ^ {f} \right], E _ {f} \left[ x _ {s 2} ^ {f} \right]\right) \right], \tag {3}
+$$
+
+$$
+\widehat {o f} ^ {c} = D _ {o f} \left[ \left(E _ {c} \left[ x _ {s 1} ^ {c} \right], E _ {c} \left[ x _ {s 2} ^ {c} \right]\right) \right], \tag {4}
+$$
+
+where $(x_{s1}^{f}, x_{s2}^{f})$ and $(x_{s1}^{c}, x_{s2}^{c})$ are the synthetic fog and synthetic clean image pairs. $of_{gt}^{f}$ and $of_{gt}^{c}$ are the optical flow ground-truths of the synthetic fog and synthetic clean images respectively.
+
+To train the domain transformation module: $\{E_f, D_c\}$ and $\{E_c, D_f\}$ , we define L1 losses:
+
+$$
+\mathcal {L} _ {L 1 _ {s} ^ {f}} \left(E _ {f}, D _ {c}\right) = \mathbb {E} _ {x _ {s} ^ {f}} \left[ \| \hat {x} _ {s} ^ {c} - x _ {g t} ^ {c} \| _ {1} \right], \tag {5}
+$$
+
+$$
+\mathcal {L} _ {L 1 _ {s} ^ {c}} \left(E _ {c}, D _ {f}\right) = \mathbb {E} _ {x _ {s} ^ {c}} \left[ \| \hat {x} _ {s} ^ {f} - x _ {g t} ^ {f} \| _ {1} \right], \tag {6}
+$$
+
+where, $\hat{x}_s^c = D_c[(E_f[x_s^f]]]$ , and $\hat{x}_s^f = D_f[(E_c[x_s^c]])$ are the rendered clean and fog images, respectively. $x_{gt}^{c}$ , $x_{gt}^{f}$ are the synthetic clean and synthetic fog ground-truth images, respectively. In addition, we also apply the discriminative loss [11] to ensure that the transformations from clean-to-fog images and from fog-to-clean images are consistent with the appearance of synthetic fog and synthetic clean images.
+
+# 3.4. Real Clean Data Training Stage
+
+In this stage, we use the real clean images without optical flow ground-truths and without real fog image ground-truths to train the network. As shown in the second row of Fig. 2, first, we compute the optical flow directly from the input real clean images, $x_{r1}^{c}, x_{r2}^{c}$ :
+
+$$
+\widehat {o f} ^ {c} = D _ {o f} \left[ \left(E _ {c} \left[ x _ {r 1} ^ {c} \right], E _ {c} \left[ x _ {r 2} ^ {c} \right]\right). \right. \tag {7}
+$$
+
+Concurrently, we transform the input clean images, $x_{r1}^{c}, x_{r2}^{c}$ to fog images, $\hat{x}_{r1}^{f}, \hat{x}_{r2}^{f}$ :
+
+$$
+\hat {x} _ {r 1} ^ {f} = D _ {f} \left[ E _ {c} \left[ x _ {r 1} ^ {c} \right] \right], \tag {8}
+$$
+
+$$
+\hat {x} _ {r 2} ^ {f} = D _ {f} \left[ E _ {c} \left[ x _ {r 2} ^ {c} \right] \right]. \tag {9}
+$$
+
+From the rendered fog images, $\hat{x}_{r1}^{f},\hat{x}_{r2}^{f}$ , subsequently we transform them further to obtain the rendered clean images, $\hat{\hat{x}}_{r1}^{c},\hat{\hat{x}}_{r2}^{c}$ ..
+
+$$
+\hat {\hat {x}} _ {r 1} ^ {c} = D _ {c} \left[ E _ {f} \left[ \hat {x} _ {r 1} ^ {f} \right] \right], \tag {10}
+$$
+
+$$
+\hat {\hat {x}} _ {r 2} ^ {c} = D _ {c} \left[ E _ {f} \left[ \hat {x} _ {r 2} ^ {f} \right] \right]. \tag {11}
+$$
+
+At the same time, we also compute the optical flow from the rendered fog images, $\hat{x}_{r1}^{f},\hat{x}_{r2}^{f}$
+
+$$
+\widehat {\text {o f} ^ {f}} = D _ {o f} \left[ \hat {x} _ {r 1} ^ {f}, \hat {x} _ {r 2} ^ {f} \right]. \tag {12}
+$$
+
+The whole process above, from the input real clean images, $x_{r1}^{c}, x_{r2}^{c}$ to the rendered clean, $\hat{\hat{x}}_{r1}^{c}, \hat{\hat{x}}_{r2}^{c}$ , and to the estimated optical flow, $\widehat{of}^{c}$ and $\widehat{\overline{off}}$ is a feedforward process. Initially, we rely on the network's weights learned from synthetic data for this feedforward process. To refine the weights, we train the network further using our current real data. The training is based on a few losses: Transformation consistency, EPE, discriminative, and hazeline losses.
+
+Transformation Consistency Loss To train the domain transformation modules: $E_{f}, E_{c}, D_{f}, D_{c}$ , we define our consistency loss between the clean input images, $x_{r1}^{c}, x_{r2}^{c}$
+
+and the rendered clean images, $\hat{\hat{x}}_{r1}^{c},\hat{\hat{x}}_{r2}^{c}$ , as:
+
+$$
+\begin{array}{l} \mathcal {L} _ {\mathrm {C O N} _ {r} ^ {c}} \left(E _ {f}, E _ {c}, D _ {f}, D _ {c}\right) \\ = \mathbb {E} _ {x _ {r} ^ {c}} \left[ \| x _ {r 1} ^ {c} - \hat {\hat {x}} _ {r 1} ^ {c} \| _ {1} + \| x _ {r 2} ^ {c} - \hat {\hat {x}} _ {r 2} ^ {c} \| _ {1} \right]. \tag {13} \\ \end{array}
+$$
+
+This loss is a pixel-wise computation, since the real clean and rendered clean images must share the same optical flow up to the pixel level. In this backpropagation process, we keep $D_{of}$ frozen.
+
+EPE Loss Since we do not have the optical flow ground-truths of the real clean input images, to train our modules $E_{f}$ and $D_{of}$ , we define the EPE loss by comparing the predicted optical flow from the real clean input images and the predicted optical flow from the rendered fog images:
+
+$$
+\mathcal {L} _ {\mathrm {E P E} _ {r} ^ {c}} \left(E _ {f}, D _ {o f}\right) = \mathbb {E} _ {\left(x _ {r 1} ^ {c}, x _ {r 2} ^ {c}\right)} \left[ \| \widehat {\widehat {o f}} ^ {c}, \widehat {\widehat {o f f}} \| _ {2} \right], \tag {14}
+$$
+
+where $\widehat{of}^c$ , $\widehat{off^f}$ are the predicted optical flow fields from the input clean images, and from the rendered fog images, respectively. During the backpropagation of this EPE loss, only $E_{f}$ and $D_{of}$ are updated, and the rest remain frozen.
+
+Discriminative Loss To train the transformation modules, $E_{c}, D_{f}$ , we use the discriminative loss [11] to ensure that the rendered fog images look as real as possible (since we do not have the corresponding real-fog ground-truths). For this purpose, we define our discriminative loss as:
+
+$$
+\mathcal {L} _ {\mathrm {G A N} _ {r} ^ {c}} \left(E _ {c}, D _ {f}\right) = \mathbb {E} _ {x _ {r} ^ {c}} \left[ \right.\left( \right.\log \left( \right.1 - \operatorname {D i s} _ {f} \left[ \right. D _ {f} \left[\left(E _ {c} \left[ x _ {r} ^ {c} \right]\right)\right]\left. \right)\left. \right)\left. \right], \tag {15}
+$$
+
+where $Dis[.]$ is our discriminative module, which assesses the outputs of $D_{f}$ . We keep other modules frozen, while updating the weights of $E_{c}, D_{f}$ .
+
+Hazeline Loss Since we do not have the ground-truths of the corresponding real fog images, applying the discriminative loss alone will be insufficient to train the modules $E_{c}, D_{f}$ properly. Improper training can cause the generation of fake contents [47, 25, 36]. The guidance of the synthetic training data (Sec. 3.3) can mitigate the problem; since synthetic fog images are rendered using a physics model, and thus $E_{c}, D_{f}$ learn the underlying physics model from the synthetic fog images. To strengthen the transformation even further, we add a loss based on the following physics model [12, 39, 1] (also used in the rendering of our synthetic fog images):
+
+$$
+x ^ {f} (\mathbf {x}) = x ^ {c} (\mathbf {x}) \alpha (\mathbf {x}) + (1 - \alpha (\mathbf {x})) \mathbf {A}, \tag {16}
+$$
+
+where $x^{f}$ is the fog image, $x^{c}$ is the clean (no fog) image ground-truth. $\mathbf{A}$ is the atmospheric light. $\alpha$ is the attenuation factor, and $\mathbf{x}$ is the pixel location.
+
+Berman et al. [1] observe that in the RGB space, $x^{f}, x^{c}$ , and A are colinear, due to the linear combination described in the model (Eq. (16)). Unlike Berman et al.'s method, instead of using the RGB space, we use the 2D chromaticity space [39]; since, there is no robust way to estimate the intensity of the atmospheric light [37]. The chromaticity of the clean input image is defined as:
+
+$$
+\gamma_ {r, c h} ^ {c} = \frac {x _ {r , c h} ^ {c}}{x _ {r , R} ^ {c} + x _ {r , G} ^ {c} + x _ {r , B} ^ {c}}, \tag {17}
+$$
+
+where the index $ch = \{R, G, B\}$ is the RGB color channel. Accordingly, the chromaticity of the rendered fog image by $E_{c}, D_{f}$ is defined as:
+
+$$
+\sigma_ {r, c h} ^ {c} = \frac {\hat {x} _ {r , c h} ^ {f}}{\hat {x} _ {r , R} ^ {f} + \hat {x} _ {r , G} ^ {f} + \hat {x} _ {r , B} ^ {f}}. \tag {18}
+$$
+
+Lastly, the atmospheric light chromaticity of the rendered fog image is defined as:
+
+$$
+\alpha_ {r, c h} ^ {c} = \frac {A \left[ \hat {x} _ {r , c h} ^ {f} \right]}{A \left[ \hat {x} _ {r , R} ^ {f} \right] + A \left[ \hat {x} _ {r , G} ^ {f} \right] + A \left[ \hat {x} _ {r , B} ^ {f} \right]}, \tag {19}
+$$
+
+where $A[.]$ is the function that obtains the chromaticity or color of the atmospheric light. This function is basically a color constancy function, hence any color constancy algorithm can be used [10]. In our implementation, to obtain the atmospheric light chromaticity from fog images, we simply use the brightest patch assumption [40].
+
+Therefore, we define our hazeline loss, which is based on the collinearity in the chromaticity space as:
+
+$$
+\mathcal {L} _ {\mathrm {H L} _ {r} ^ {c}} \left(E _ {c}, D _ {f}\right) = \mathbb {E} _ {x _ {r} ^ {c}} \left[ 1 - \frac {\left(\sigma_ {r} ^ {c} - \alpha_ {r} ^ {c}\right) \cdot \left(\gamma_ {r} ^ {c} - \alpha_ {r} ^ {c}\right)}{\| \left(\sigma_ {r} ^ {c} - \alpha_ {r} ^ {c}\right) \| \| \left(\gamma_ {r} ^ {c} - \alpha_ {r} ^ {c}\right) \|} \right]. \tag {20}
+$$
+
+Like the discriminative loss, while updating the weights of $E_{c},D_{f}$ , we keep other modules frozen.
+
+# 3.5. Real Fog Data Training Stage
+
+In this stage, we use the real fog images without optical flow ground-truths and without clean-image ground-truths to train the network. As shown in Fig. 2, module $E_{f}$ takes the fog images, $x_{r1}^{f}, x_{r2}^{f}$ , as the input and generate features, which are used by $D_{of}$ to predict the optical flow:
+
+$$
+\widehat {o f} ^ {f} = D _ {o f} \left[ \left(E _ {f} \left[ x _ {r 1} ^ {f} \right], E _ {f} \left[ x _ {r 2} ^ {f} \right]\right). \right. \tag {21}
+$$
+
+$D_{of}$ can handle fog images, since it was trained in the previous stage (Sec. 3.4) using the rendered fog images. At the same time, we transform the input fog images, $x_{r1}^{f}, x_{r2}^{f}$ to clean images, $\hat{x}_{r1}^{c}, \hat{x}_{r1}^{c}$ , respectively:
+
+$$
+\hat {x} _ {r 1} ^ {c} = D _ {c} \left[ E _ {f} \left[ x _ {r 1} ^ {f} \right] \right], \tag {22}
+$$
+
+$$
+\hat {x} _ {r 2} ^ {c} = D _ {c} \left[ E _ {f} \left[ x _ {r 2} ^ {f} \right] \right]. \tag {23}
+$$
+
+The transformation modules $D_{c},E_{f}$ had been initially trained in the previous stage as well. From the rendered clean images, $\hat{x}_{r1}^{c},\hat{x}_{r2}^{c}$ , we transform them further to obtain the rendered fog images, $\hat{\hat{x}}_{r1}^{f},\hat{\hat{x}}_{r2}^{f}$ , respectively:
+
+$$
+\hat {\hat {x}} _ {r 1} ^ {f} = D _ {f} \left[ E _ {c} \left[ \hat {x} _ {r 1} ^ {c} \right] \right], \tag {24}
+$$
+
+$$
+\hat {\hat {x}} _ {r 2} ^ {f} = D _ {f} \left[ E _ {c} \left[ \hat {x} _ {r 2} ^ {c} \right] \right]. \tag {25}
+$$
+
+We also compute the optical flow from the rendered clean images, $\hat{x}_{r1}^{c},\hat{x}_{r2}^{c}$ ..
+
+$$
+\widehat {\text {o f} ^ {c}} = D _ {o f} \left[ \hat {x} _ {r 1} ^ {c}, \hat {x} _ {r 2} ^ {c} \right]. \tag {26}
+$$
+
+Like in the previous stage, to train the network, we use all the losses we defined in Sec. 3.4, except for the EPE loss. In this training stage, we still compare the EPE loss between $\widehat{of}^f$ and $\widehat{\overline{of^c}}$ , which we call the optical flow consistency loss [36]. However, the goal is no longer for estimating flow accurately, but for the two encoders to extract proper domain adaptive features. Thus, during the backpropagation of this loss, only two encoders $E_{c}$ and $E_{f}$ are updated, and the rest are kept frozen.
+
+# 3.6. Photometric Consistency Map
+
+In the second training stage, we use the rendered clean images, rendered fog images, and estimated optical flow together to train our network. However, the estimated optical flow might still be inaccurate, which can affect the learning process of the whole network. To address this problem, we generate a binary mask based on the photometric consistency of the estimated optical flows. The consistency is computed from the two input clean images and their estimated optical flow. The consistency is then binarized into a mask, and then we apply the mask to the EPE loss. This enables us to filter out the inaccurate estimations of optical flow during the backpropagation.
+
+# 4. Implementation
+
+Our network in total has two encoders, three decoders and two discriminators. Each of the two encoders contains 6 convolution layers. From an input image, each encoder extracts pyramid features at 6 different levels. As a result, the optical flow decoder has a pyramid structure. Its inputs are the five pairs of pyramidal features from a pair of input images. These features are the five deep-layers features extracted by the encoder. The features of each layer are warped based on the previous level of optical flow, and then we compute the cost volume, which is used to estimate optical flow. As for the two decoder for the domain transformation, the input images, first layer features and second layer features are convoluted into the same shape as the third layer features by a convolution layer. Next, these four
+
+features with the same shape are concatenated together, and put into ResNet [13]. This ResNet contains six blocks, and its output has the same shape as input. Finally, the deconvolution layers process on the output from ResNet to generate the domain transformation result. The network architecture of each discriminator is similar to that of the PatchGAN discriminator [15], containing five convolution layers.
+
+For training images, we use randomly cropped images of $256 \times 512$ resolution. We set the batch size to 3. We use Adam [17] for the optimizers of all the modules, and its parameters, $\beta_{1}$ and $\beta_{2}$ , are set 0.5 and 0.999 respectively. The learning rate is set to 0.0002. All the modules are trained from scratch. We collected real clean and real fog images. All contain urban scenes. We use the VKITTI dataset [9] for rendering synthetic fog images for the fully supervised training, as it has both depth maps and optical flow groundtruths. We specifically select the overcast images (with no sunlight) so that the rendered fog images look more realistic. With the available depth maps, we can generate fog images from VKITTI, with random atmospheric light and attenuation coefficient. The fog in synthetic data is generated by following the physics model [18] for fog, expressed in Eq. (16).
+
+# 5. Experimental Result
+
+For evaluation, we compare our method with the following methods: original FlowNet2 [14], original PwC-Net [38], which are the two state-of-the-art fully supervised methods; and optical flow network in competitive collaboration (CC) [31] and SelfFlow [26], which are two state-of-the-art unsupervised methods; FlowNet2-fog and PwCNet-fog, where we retrain the original FlowNet2 and PwC-Net using our synthetic fog images and their optical flow ground-truths; FlowNet2-defog, PwCNet-defog and CC-defog which are two-stage solutions where we combine a defogging method with the original FlowNet2, PwCNet and CC. The defogging method is Berman et al.'s [2], which is one of the state-of-the-art defogging methods.
+
+We use 2,224 real clean and 2,346 real fog image pairs for training. For evaluation, following [22], we manually annotate 100 real fog image pairs. The annotated optical flow ground-truths are done for some rigid objects using the manual flow annotation method introduced in [24]. We further use 1,770 and 200 randomly sampled image pairs from the vKITTI dataset for training and validation, respectively. We use other 100 image pairs for testing. We render fog in all the images from the vKITTI dataset using the physics model [18], with random atmospheric light and attenuation coefficient (or fog density).
+
+Quantitative Evaluation Since we target real dense fog images in our method and design, we do the evaluation on real images. EPE and "bad pixel" are commonly used metrics
+
+
+Figure 3: Qualitative comparison of our methods with the state-of-the-art methods and their variants on real fog images.
+
+Table 1: Quantitative results on our real dense foggy dataset.
+
+| Method | EPE | Bad Pixel |
| δ = 3 | δ = 5 |
| CC [31] | 7.56 | 76.61% | 45.79% |
| CC-defog [31] | 11.67 | 72.22% | 42.31% |
| PWCNet [38] | 6.36 | 54.90% | 38.47% |
| PWCNet-defog [38] | 6.16 | 53.98% | 38.50% |
| PWCNet-fog [38] | 6.10 | 56.39% | 39.42% |
| FlowNet2 [14] | 4.74 | 42.06% | 26.75% |
| FlowNet2-defog [14] | 4.72 | 43.12% | 26.60% |
| FlowNet2-fog [14] | 5.19 | 49.66% | 31.89% |
| SelfFlow [26] | 6.53 | 70.92% | 56.01% |
| Ours | 4.32 | 41.26% | 25.24% |
| Ours (no hazeline) | 4.82 | 43.41% | 31.60% |
+
+to measure the quality of optical flow. The definition of "bad pixel" follows to that of the KITTI dataset [27]. Since the flow ground-truths in our evaluation are manually annotated, they might be inaccurate. To account for this, following the KITTI dataset [27], we compute "bad pixel" with its threshold parameter $\delta = \{3,5\}$ , to allow for an inaccuracy of 3-5 pixels. Table 1 shows the evaluation result on our manually annotated real fog images. Our method has the best performance in terms of both EPE value and "bad pixel" numbers. Table 2 shows the results on synthetic fog images from the vKITTI dataset. Since for synthetic fog images, we have accurate dense flow ground-truths, we
+
+Table 2: Quantitative results on synthetic foggy vKITTI dataset.
+
+| Method | EPE | Bad Pixel |
| δ = 1 | δ = 3 |
| CC [31] | 7.53 | 70.54% | 51.46% |
| CC-defog [31] | 7.91 | 65.51% | 38.90% |
| PWCNet | 3.23 | 52.84% | 19.01% |
| PWCNet-defog [38] | 3.11 | 43.93% | 18.28% |
| PWCNet-fog [38] | 1.67 | 34.08% | 9.04% |
| FlowNet2 [14] | 5.92 | 52.42% | 30.78% |
| FlowNet2-defog [14] | 5.43 | 50.05% | 28.80% |
| FlowNet2-fog [14] | 9.64 | 73.02% | 48.79% |
| Ours | 1.60 | 28.31% | 8.45% |
+
+compute "bad pixel" with $\delta = \{1,3\}$ . While this is not our target, the evaluation shows that our method has comparable performance as the naive solutions.
+
+Qualitative Evaluation Fig. 3 shows the qualitative results on real fog images. The first column shows the first image of the input image pair. All ground-truths in the second column are labeled manually by selecting rigid objects. The third column shows our results, and the other columns show the results of the baseline methods. As can be seen, our method in general performs better than the baseline methods, confirming our quantitative evaluation on the same data. Fig. 4 shows the qualitative defogging results on real foggy images. We compare our method with the state of the art of non-learning method Berman et al. [2] and learning-based method EPDN [29]. Although defogging is not our
+
+
+Figure 4: Qualitative defogging results on real foggy images. Although defogging is not our main target, we can observe that our method generates less artifacts than the state of the art methods do.
+
+
+Figure 5: Qualitative methods on real nighttime images. As the results show, our method is not limited to fog, but can also work robustly for a different domain, such as nighttime.
+
+
+
+
+
+
+Figure 6: In each row, images from left-to-right show the input clean image, and the corresponding rendered fog images with and without the hazeline loss. The hazeline loss constrains our rendered fog images to avoid having fake colors.
+
+
+
+
+
+
+Input Clean Image
+
+
+Estiamted Flow
+
+
+Consistency map
+Figure 7: The photometric consistency masks correctly indicate the wrong flow estimations.
+
+main target, we can observe that our method generates less artifacts.
+
+While our method is designed for flow estimation under dense fog, we show that our method can also be applied to other domains, such as nighttime. For this, we use our entire training procedure as is, except for the hazeline loss
+
+described in Eq. (20). The results are shown in Fig. 5.
+
+# 6. Ablation Study
+
+Fig. 6 shows the efficacy of our hazeline loss. It can constrain the color shifting between the clean images and the rendered fog images. We can observe that better fog images are generated by using the constraint. Table 1 shows the performance with and without the hazeline loss. Without the hazeline loss, our performance drops by 0.5 for EPE and $2 - 6\%$ on "bad pixel" rate.
+
+Fig. 7 shows the binary photometric consistency masks. In the first row, our estimated optical flow has error on the minibus back window, and the mask can clearly show that area is inconsistent (black indicates inconsistent predictions, and white indicates consistent predictions). In the second row, the scene is static and the camera is moving. The optical flow is only generated by ego-motion. The estimated optical flow observably has errors on the left top corner. Our consistency mask also indicates the same. The consistency mask and setting proper hyper-parameters (Sec. 4) are important for training stabilization. In our experiments, we find that the training loss can fail to converge if the consistency mask is not used. We also check the efficacy of the domain transformation module. We observe that without this module (i.e. using only $E_{f}$ and $D_{of}$ in our network in Fig. 2), the performance of our method drops by 1.99 for EPE on real fog images.
+
+# 7. Conclusion
+
+In this paper, we have proposed a semi-supervised learning method to estimate optical flow from dense fog images. We design a multi-task network that combines domain transformation and optical flow estimation. Our network learns from both synthetic and real data. The synthetic data is used to train our network in a supervised manner, and the real data is used in an unsupervised manner. Our experimental results show the effectiveness of our method, which outperforms the state-of-the-art methods.
+
+# References
+
+[1] Dana Berman, Shai Avidan, et al. Non-local image dehazing. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1674-1682, 2016. 1, 5
+[2] D. Berman, T. Treibitz, and S. Avidan. Single image dehazing using haze-lines. IEEE Transactions on Pattern Analysis and Machine Intelligence, pages 1-1, 2018. 2, 6, 7, 8
+[3] Mario Bijelic, Tobias Gruber, and Werner Ritter. A benchmark for lidar sensors in fog: Is detection breaking down? In 2018 IEEE Intelligent Vehicles Symposium (IV), pages 760-767. IEEE, 2018. 1, 3
+[4] Bolun Cai, Xiangmin Xu, Kui Jia, Chunmei Qing, and Dacheng Tao. Dehazenet: An end-to-end system for single image haze removal. IEEE Transactions on Image Processing, 25(11):5187-5198, 2016. 3
+[5] Dengxin Dai, Christos Sakaridis, Simon Hecker, and Luc Van Gool. Curriculum model adaptation with synthetic and real data for semantic foggy scene understanding. International Journal of Computer Vision, 2019. 2
+[6] A. Dosovitskiy, P. Fischer, E. Ilg, V. Golkov, P. Häusser, C. Hazirbaş, V. Golkov, P. Smagt, D. Cremers, and T. Brox. Flownet: Learning optical flow with convolutional networks. In IEEE International Conference on Computer Vision (ICCV), 2015. 1, 2
+[7] Raanan Fattal. Single image dehazing. ACM transactions on graphics (TOG), 27(3):72, 2008. 1
+[8] Denis Fortun, Patrick Bouthemy, and Charles Kervrann. Optical flow modeling and computation: a survey. Computer Vision and Image Understanding, 134:1-21, 2015. 2
+[9] A Gaidon, Q Wang, Y Cabon, and E Vig. Virtual worlds as proxy for multi-object tracking analysis. In CVPR, 2016. 6
+[10] Arjan Gijsenij, Theo Gevers, and Joost Van De Weijer. Computational color constancy: Survey and experiments. IEEE Transactions on Image Processing, 20(9):2475-2489, 2011. 5
+[11] 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. 3, 4, 5
+[12] Kaiming He, Jian Sun, and Xiaou Tang. Single image haze removal using dark channel prior. IEEE transactions on pattern analysis and machine intelligence, 33(12):2341-2353, 2011. 1, 5
+[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] Eddy Ilg, Nikolaus Mayer, Tonmoy Saikia, Margret Keuper, Alexey Dosovitskiy, and Thomas Brox. Flownet 2.0: Evolution of optical flow estimation with deep networks. CoRR, abs/1612.01925, 2016. 1, 2, 6, 7
+[15] 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. 2, 6
+
+[16] J Yu Jason, Adam W Harley, and Konstantinos G Derpanis. Back to basics: Unsupervised learning of optical flow via brightness constancy and motion smoothness. In European Conference on Computer Vision, pages 3-10. Springer, 2016. 2
+[17] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Yoshua Bengio and Yann LeCun, editors, 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015. 6
+[18] Harald Koschmieder. Theorie der horizontalen sightweite. Beitrage zur Physik der freien Atmosphere, pages 33-53, 1924. 1, 6
+[19] Wei-Sheng Lai, Jia-Bin Huang, and Ming-Hsuan Yang. Semi-supervised learning for optical flow with generative adversarial networks. In Advances in Neural Information Processing Systems, pages 354-364, 2017. 2
+[20] Boyi Li, Xiulian Peng, Zhangyang Wang, Jizheng Xu, and Dan Feng. Aod-net: All-in-one dehazing network. In Proceedings of the IEEE International Conference on Computer Vision, pages 4770-4778, 2017. 3
+[21] Runde Li, Jinshan Pan, Zechao Li, and Jinhui Tang. Single image dehazing via conditional generative adversarial network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8202-8211, 2018. 1, 3
+[22] Ruoteng Li, Robby T Tan, Loong-Fah Cheong, Angelica I Aviles-Rivero, Qingnan Fan, and Carola-Bibiane Schonlieb. Rainflow: Optical flow under rain streaks and rain veiling effect. In Proceedings of the IEEE International Conference on Computer Vision, pages 7304-7313, 2019. 6
+[23] Yu Li, Shaodi You, Michael S Brown, and Robby T Tan. Haze visibility enhancement: A survey and quantitative benchmarking. Computer Vision and Image Understanding, 165:1-16, 2017. 3
+[24] Ce Liu, William T Freeman, Edward H Adelson, and Yair Weiss. Human-assisted motion annotation. In 2008 IEEE Conference on Computer Vision and Pattern Recognition, pages 1-8. IEEE, 2008. 6
+[25] Ming-Yu Liu, Thomas Breuel, and Jan Kautz. Unsupervised image-to-image translation networks. In Advances in neural information processing systems, pages 700-708, 2017. 2, 5
+[26] Pengpeng Liu, Michael Lyu, Irwin King, and Jia Xu. Selfflow: Self-supervised learning of optical flow. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4571-4580, 2019. 2, 6, 7
+[27] Moritz Menze and Andreas Geiger. Object scene flow for autonomous vehicles. In Conference on Computer Vision and Pattern Recognition (CVPR), 2015. 7
+[28] József Molnár, Dmitry Chetverikov, and Sándor Fazekas. Illumination-robust variational optical flow using cross-correlation. Computer Vision and Image Understanding, 114(10):1104–1114, 2010. 2
+[29] Yanyun Qu, Yizi Chen, Jingying Huang, and Yuan Xie. Enhanced pix2pix dehazing network. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 7, 8
+
+[30] Anurag Ranjan and Michael J. Black. Optical flow estimation using a spatial pyramid network. CoRR, abs/1611.00850, 2016. 1, 3
+[31] Anurag Ranjan, Varun Jampani, Lukas Balles, Kihwan Kim, Deqing Sun, Jonas Wulff, and Michael J Black. Competitive collaboration: Joint unsupervised learning of depth, camera motion, optical flow and motion segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 12240–12249, 2019. 2, 6, 7
+[32] Wenqi Ren, Si Liu, Hua Zhang, Jinshan Pan, Xiaochun Cao, and Ming-Hsuan Yang. Single image dehazing via multiscale convolutional neural networks. In European conference on computer vision, pages 154-169. Springer, 2016. 3
+[33] Zhe Ren, Junchi Yan, Bingbing Ni, Bin Liu, Xiaokang Yang, and Hongyuan Zha. Unsupervised deep learning for optical flow estimation. In Thirty-First AAAI Conference on Artificial Intelligence, 2017. 2
+[34] 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. 2
+[35] Christos Sakaridis, Dengxin Dai, Simon Hecker, and Luc Van Gool. Model adaptation with synthetic and real data for semantic dense foggy scene understanding. In European Conference on Computer Vision (ECCV), pages 707-724, 2018. 2
+[36] Aashish Sharma, Robby T Tan, and Loong-Fah Cheong. Depth estimation in nighttime using stereo-consistent cyclic translations. arXiv preprint arXiv:1909.13701, 2019. 2, 5, 6
+[37] Matan Sulami, Itamar Glatzer, Raanan Fattal, and Mike Werman. Automatic recovery of the atmospheric light in hazy images. In 2014 IEEE International Conference on Computational Photography (ICCP), pages 1-11. IEEE, 2014. 5
+[38] Deqing Sun, Xiaodong Yang, Ming-Yu Liu, and Jan Kautz. PWC-Net: CNNs for optical flow using pyramid, warping, and cost volume. In CVPR, 2018. 1, 2, 3, 6, 7, 8
+[39] Robby T Tan. Visibility in bad weather from a single image. In 2008 IEEE Conference on Computer Vision and Pattern Recognition, pages 1-8. IEEE, 2008. 1, 5
+[40] Shoji Tominaga, Satoru Ebisui, and Brian A Wandell. Scene illuminant classification: brighter is better. JOSA a, 18(1):55-64, 2001. 5
+[41] Yang Wang, Peng Wang, Zhenheng Yang, Chenxu Luo, Yi Yang, and Wei Xu. Unos: Unified unsupervised optical-flow and stereo-depth estimation by watching videos. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8071-8081, 2019. 2
+[42] Philippe Weinzaepfel, Jerome Revaud, Zaid Harchaoui, and Cordelia Schmid. DeepFlow: Large displacement optical flow with deep matching. In IEEE International Conference on Computer Vision (ICCV), Sydney, Australia, Dec. 2013. 1
+[43] Jia Xu, René Ranftl, and Vladlen Koltun. Accurate Optical Flow via Direct Cost Volume Processing. In CVPR, 2017. 1
+[44] Zhichao Yin and Jianping Shi. Geonet: Unsupervised learning of dense depth, optical flow and camera pose. In Pro
+
+ceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1983-1992, 2018. 2
+[45] He Zhang and Vishal M Patel. Densely connected pyramid dehazing network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3194-3203, 2018. 1
+[46] Alex Zihao Zhu, Liangzhe Yuan, Kenneth Chaney, and Kostas Daniilidis. Unsupervised event-based learning of optical flow, depth, and egomotion. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 989-997, 2019. 2
+[47] 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. 2, 5
\ No newline at end of file
diff --git a/opticalflowindensefoggyscenesusingsemisupervisedlearning/images.zip b/opticalflowindensefoggyscenesusingsemisupervisedlearning/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..4ec4631197cc35b604ea95c7fd384171051a64b1
--- /dev/null
+++ b/opticalflowindensefoggyscenesusingsemisupervisedlearning/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2c3f9e7ac22b34d3dbf0d14d09cb03dc346d906d67784b798601fb62524ac838
+size 505636
diff --git a/opticalflowindensefoggyscenesusingsemisupervisedlearning/layout.json b/opticalflowindensefoggyscenesusingsemisupervisedlearning/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..ea13c73e7035f35e7d5f9f79d76b30b5080fc3ac
--- /dev/null
+++ b/opticalflowindensefoggyscenesusingsemisupervisedlearning/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:63b6f4f82f9497008991c427eea22e135ff10c4a5a79b42b5f6000ee68d7696e
+size 400151
diff --git a/opticalflowinthedark/e1b7cbd9-3691-4e6e-a230-51e64a662390_content_list.json b/opticalflowinthedark/e1b7cbd9-3691-4e6e-a230-51e64a662390_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..43c829f6732ff1b328ffde0109b61231aee40bad
--- /dev/null
+++ b/opticalflowinthedark/e1b7cbd9-3691-4e6e-a230-51e64a662390_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b42739b3ab01e6b8d8d34a7ef76a7e432450a237ba41da760c1312b3690975f9
+size 63584
diff --git a/opticalflowinthedark/e1b7cbd9-3691-4e6e-a230-51e64a662390_model.json b/opticalflowinthedark/e1b7cbd9-3691-4e6e-a230-51e64a662390_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..6726cb4dff2db13f220337f73faff6a4e18f4c29
--- /dev/null
+++ b/opticalflowinthedark/e1b7cbd9-3691-4e6e-a230-51e64a662390_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b93335c38b44f316dbc55a69b838f203a4d14937323ae8f106117001eb053cd4
+size 75352
diff --git a/opticalflowinthedark/e1b7cbd9-3691-4e6e-a230-51e64a662390_origin.pdf b/opticalflowinthedark/e1b7cbd9-3691-4e6e-a230-51e64a662390_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..ce12b9ff8b690ce0af67b4c60edf59449ae72f3c
--- /dev/null
+++ b/opticalflowinthedark/e1b7cbd9-3691-4e6e-a230-51e64a662390_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b29342f5884f3ffb60e3570536e8caafe61fd43d3ae2383cbc040ed9e07dfc95
+size 3112111
diff --git a/opticalflowinthedark/full.md b/opticalflowinthedark/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..1698bab65ffc6f7dbb1dd18e1d06e24c3ca73b54
--- /dev/null
+++ b/opticalflowinthedark/full.md
@@ -0,0 +1,250 @@
+# Optical Flow in the Dark
+
+Yinqiang Zheng $^{1,\ast}$ , Mingfang Zhang $^{2,3,\ast}$ , Feng Lu $^{2,4,\dagger}$ $^{1}$ National Institute of Informatics, $^{2}$ Pengcheng Laboratory, $^{3}$ Nanjing University, $^{4}$ State Key Lab. of VR Technology and Systems, School of CSE, Beihang University yqzheng@nii.ac.jp, 161220169@smail.nju.edu.cn, lufeng@buaa.edu.cn
+
+# Abstract
+
+Many successful optical flow estimation methods have been proposed, but they become invalid when tested in dark scenes because low-light scenarios are not considered when they are designed and current optical flow benchmark datasets lack low-light samples. Even if we preprocess to enhance the dark images, which achieves great visual perception, it still leads to poor optical flow results or even worse ones, because information like motion consistency may be broken while enhancing. We propose an end-to-end data-driven method that avoids error accumulation and learns optical flow directly from low-light noisy images. Specifically, we develop a method to synthesize large-scale low-light optical flow datasets by simulating the noise model on dark raw images. We also collect a new optical flow dataset in raw format with a large range of exposure to be used as a benchmark. The models trained on our synthetic dataset can relatively maintain optical flow accuracy as the image brightness descends and they outperform the existing methods greatly on low-light images.
+
+# 1. Introduction
+
+Optical flow estimation can be used for motion detection, object segmentation, and so on. In real life, many of the applications need to deal with low-light data. For example, there are certain circumstances for a drone to fly at night but it's difficult to achieve the goal because optical flow is hard to obtain in dark environments, which is useful to avoid obstacles and control the speed through dense surroundings. Current optical flow methods show poor performance with low-light data. To address this problem, a straightforward solution is to use auxiliary lighting systems
+
+
+Figure 1. A comparison between our method (e) and existing methods (d,f,g), conducted on the well-exposed input (a), underexposed input (b) and the enhanced input (c) using SID [6] method. Specifically, (a) and (b) are images of the same scene. (e,f,g) are produced by PWC-Net [28] and (d) is produced by FlowNet2 [14] which is 17 times larger than PWC-Net.
+
+for drones, which would inevitably shorten the battery life. As a result, an efficient optical flow method to process low-light data is greatly demanded, which is the main goal of our work.
+
+Horn and Schunck [13] introduce an energy minimization approach to compute optical flow and many excellent methods adapt it and achieve better and better results. However, the optimizing problem of a complex energy function is usually computationally expensive for real-time applications. In order to create a fast and accurate method, end-to-end convolutional neural network frameworks are pro
+
+posed, such as FlowNetS, FlowNetC [10], FlowNet2 [14], and PWC-Net [28]. The best of them can achieve state-of-the-art performance with both better quality and faster speed than traditional methods. As a result, we choose to develop our approach based on deep-learning methods. However, they still show poor capabilities of dealing with low-light data because low-light is a complex scenario due to the low signal-to-noise ratio, and current optical flow datasets, eg. KITTI [12], Sintel [4], FlyingChairs [10] and Flyingthings3D [22], mainly consist of bright images. Low-light is not taken into consideration when current optical flow methods are designed.
+
+A direct solution to get optical flow from dark images is to enhance them before computing optical flow. Researchers have proposed many techniques for denoising and enhancing low-light images [9, 3, 6, 20]. However, the purpose of these techniques is to get better visual quality of the enhanced images, and we get limited improvement on optical flow results or even worse ones. The main reason is that many of the methods lose information while enhancing, such as brightness constancy which is fundamental for optical flow estimation. As a result, we choose to make the network learn optical flow directly from low-light images in an end-to-end way that avoids information loss.
+
+It is known that optical flow ground truth is hard to obtain and neural network training needs a large scale of data, so we decide to synthesize low-light effects on bright images and create low-light optical flow datasets. A variety of learning-based denoising and low-light enhancing methods synthesize their own dataset. Some of them [18, 19] use the additive white noise (AWGN) model, which is always criticized that they are not capable of simulating real noise and recent denoising works [15, 2, 23] propose to simulate camera processing features which leads to better noise models. We focus on simulating the noise on raw images, which avoids complex characteristics due to the image processing pipeline. Most existing noise analysis [2] is conducted on bright noisy images [24] in which the noise is caused by high ISO. Beside that, we mainly focus on the noise caused by the low intensity of light, since the photons arriving at the sensor are governed by Poisson distribution. And finally, we apply our noise model to create new optical flow datasets for training. In order to test a model's ability to deal with various exposure inputs, we collect a new optical flow dataset in low-light environments.
+
+# Contribution
+
+1. We collect a new optical flow dataset — Various Brightness Optical Flow (VBOF) dataset, consisting of 598 raw images of various brightness and 100 optical flow references to evaluate the ability of an optical flow model to deal with various exposure inputs.
+
+2. We provide an analysis of the noise on raw images of various brightness and reveal how the noise distribution changes as the exposure descends.
+3. We apply our noise model to synthesize a low-light optical flow dataset — FlyingChairs-DarkNoise (FCDN), and the optical flow models trained on our dataset can relatively maintain optical flow accuracy as the exposure descends and they outperform the existing methods greatly on low-light images.
+
+# 2. Related Work
+
+Learning-based Optical Flow Estimation. Dosovitskiy et al. [10] propose two CNN models for optical flow, FlowNetS and FlowNetC, which shows the feasibility of directly learning optical flow from images but their performances are below the state of the art therein. Ilg et al. [14] stack several FlowNetC and FlowNetS networks into a large model, FlowNet2, which achieves state-of-the-art results and runs faster than traditional methods. However, because of the large size of its model, it always takes dozens of days to train the whole model and it's not feasible to be implemented on mobile and embedded devices. Sun et al. [28] design a compact but effective CNN model, PWC-Net, according to well-established principles: pyramidal processing, warping, and the use of a cost volume, which reduces the size of CNN model and achieves better results on existing benchmarks. There are also works focusing on the robustness of optical flow, such as Robust Flow [16] and RainFlow [17]. They try to keep optical flow accuracy in rainy scenes by introducing residue channels and veiling-invariant features. However, none of these methods pays attention to the performance of optical flow in the dark and current optical flow datasets lack real low-light data.
+
+Synthetic Low-light Dataset. FlyingChairs [10] is a synthetic optical flow dataset containing about 22k image pairs of chairs superimposed on random background images from Flickr. [22] proposes the FlyingThings3D dataset which can be seen as a three-dimensional version of the FlyingChairs. We decide to adopt the FlyingChairs dataset and synthesize low-light effect on it. Many approaches have been proposed to synthesize low-light and noisy image datasets. [19, 18] uses additive Gaussian noise and Gamma correction to simulate low-light effects. [15] simulates the degradation and noise transformation performed by camera pipelines. Very related to our work is [2, 23] in which they add read and shot noise on the raw sensor data, because 8-bitJPEG images are easy to lose information when turned dark, and we aim to derive optical flow directly from dark raw images. In addition, we conduct our noise analysis on real raw images of various brightness, while existing noise analysis is mostly on bright noisy images caused by various ISO.
+
+Low-light Imaging. A variety of techniques have been developed for low-light imaging. Infrared information is commonly used in low-light detection [21, 20], but infrared sensors are not widely equipped, so our experiments focus on RGB image enhancing. Non-local means (NLM) [3] and BM3D [9] are denoising methods based on finding similar patches around every pixel, then average all the patches and replace the pixel with the result. Recently, Chen et al. [6, 5] propose a learning-based method to enhance dark images. They take raw data as input to a modified U-Net [25]. However, even if some of the methods could achieve good perception, it's unavoidable to lose information while post-processing and information like brightness consistency is critical to optical flow estimation.
+
+# 3. Various Brightness Optical Flow Dataset
+
+There are many benchmarking datasets about low-light and optical flow, such as SID [6] and SIDD [1] that provide low-light or noisy images with their corresponding bright clean images, and KITTI [12] and Sintel [4] that provide image pairs with their corresponding optical flow. However, to our knowledge, no existing dataset is able to benchmark the low-light performance of an optical flow model, so we combine the two concepts above and collect a Various Brightness Optical Flow (VBOF) dataset, which contains 598 raw images of various brightness with 100 corresponding optical flow reference.
+
+The images are taken by 3 cameras: Sony A6000 (102 images), Canon EOS M6 (297 images), Fujilm XT2 (199 images), in which Canon and Sony have Bayer-pattern sensors while Fujilm has X-Trans sensor. We mount the camera on a tripod, control it remotely to avoid vibration and set various exposure time to get various exposure photos of the same movement.
+
+Various exposure image pairs share the same optical flow. We took the raw images in about 10 different exposures before and after we move the objects, then we use the bright sharp image pair to calculate the optical flow with [14] to serve as a reference for the dark noisy pairs. Some samples are shown in Figure 2.
+
+Besides the capability to evaluate the brightness robustness of an optical flow model, VBOF also has other advantages. First, we choose to present our data in 14-bit raw format so that we can use various methods to demosaic and enhance images with less information loss. Second, since the VBOF dataset is collected using 3 cameras from different manufacturers and raw format is unique to every camera model, our dataset is able to evaluate the generalization ability for different cameras. Third, the VBOF dataset consists of scenes both indoor and outdoor, with various lighting effects, so it comprehensively reflects scenes in real life.
+
+
+Figure 2. Three samples in our Various Brightness Optical Flow (VBOF) dataset: raw images of moving objects with a large range of brightness with reference optical flow.
+
+# 4. Method
+
+# 4.1. End-to-end Optical Flow
+
+We design an end-to-end pipeline to deal with low-light optical flow (showed in Figure 3). The core of our solution is to synthesize low-light raw effects on bright RGB images in the original dataset for training optical flow models and directly use raw as input when testing, instead of enhancing the low-light input before estimation using models trained on the original dataset. We get the inspiration from [27, 26], in which they achieve great image segmentation results on foggy input.
+
+
+Figure 3. Above: two-step pipeline using existing methods for optical flow in the dark. Below: our pipeline for optical flow in the dark.
+
+
+Figure 4. Distribution of Gauss-related parameter $a$ and Poisson-related parameter $b$ analyzed on Canon, Sony and Fujim camera of various brightness in (a), (b) and (c) respectively, and on the See in the Dark dataset [6] and the bright Darmstadt Noise Dataset [24] in (d).
+
+# 4.2. Noise Analysis
+
+Unlike the noise in a processed image which may have complex characteristics because of compression and other nonlinear operations, the noise in raw sensor data is better understood. It generally comes from two sources: photon shot noise and thermal read noise. The number of photons arriving the sensor varies from exposure to exposure and from pixel to pixel, which is governed by the Poisson distribution:
+
+$$
+P \left(k _ {p h}, \lambda_ {b r}\right) = \frac {\lambda_ {b r} ^ {k _ {p h}} * e ^ {- \lambda_ {b r}}}{k _ {p h} !} \tag {1}
+$$
+
+where $\lambda_{br}$ is the expected number of occurrences which rises as the image gets brighter, and $k_{ph}$ is the number of photons arriving. Various $k_{ph}$ of different pixels on the sensor would lead to unavoidable photon shot noise. And the other main noise source is thermal noise in readout circuitry, which doesn't have a fixed pattern and the only solution to this is cooling, so we simulate the thermal read noise using Gaussian distribution.
+
+Considering the two types of noise and that we want to simulate the image noise of low-light data, we carefully collect a Various Brightness Raw (VBR) dataset, setting the brightness as the only variable. In order to reveal the changing noise pattern as the brightness descends, we fix the exposure time and ISO to get invariant thermal read noise and only change the size of the aperture to get images of different brightness. We also repeat the process on different cameras to get general results. Finally, we get 1200 raw images of a large range of brightness both indoor and outdoor, in the day and the night environments.
+
+To analyze the noise model, we employ the noise estimation method in [11] to estimate the Poisson-related parameter $a$ and the Gaussian-related parameter $b$ . Specifically, we assume that the noisy image $z$ can be decomposed by the following formula:
+
+$$
+z (x) = y (x) + \eta_ {p} (y (x)) + \eta_ {g} (x) \tag {2}
+$$
+
+where $x\in X\subset N^2$ is the pixel position, $y$ is the original
+
+noise-free image, and
+
+$$
+\left. \right.\left(y (x) + \eta_ {p} (y (x))) / a \sim \mathcal {P} (y (x) / a), \eta_ {g} (x) \sim \mathcal {N} (0, b) \right. \tag {3}
+$$
+
+in which $\mathcal{P}$ and $\mathcal{N}$ denote Poisson and Gaussian distribution respectively. We approximate these together as a single heteroscedastic Gaussian:
+
+$$
+z (x) \sim \mathcal {N} (\mu = x, \sigma^ {2} = a x + b) \tag {4}
+$$
+
+The analysis result is showed in Figure 4, where we can see that generally the noise level rises as the brightness descends and that in low-intensity dark images, $a$ and $b$ are more tightly coupled and Poisson-related parameter becomes relatively larger than Gaussian-related parameter, which means the noise is more signal-dependent. It's also obvious that the noise parameters analyzed on the bright Darmstadt dataset [24] which is used in [2] are quite different from the ones we analyze on our low-light dataset and the See in the Dark dataset [6].
+
+# 4.3. Synthesize New Optical Flow Dataset
+
+In order to generate synthetic noisy raw images from clean images, we first randomly invert the gamma correction of RGB channels respectively to simulate the uncorrected light effects and white balance on raw images, then we randomly sample shot and read parameter $a$ and $b$ from ranges that match what we observe in real data and add noise by sampling from the distribution of Eq. 4. We choose to perform our operations based on the FlyingChairs [10] dataset after normalizing the 8-bit images in it to [0-1]. Note that we don't reduce the brightness in the 8-bit training data to preserve information. To match the training input, when testing we scaled the low-light 14-bit raw input to a normal brightness since raw format can keep the weak signals.
+
+Specifically, we sample the noise parameters from our VBR dataset, VBOF dataset, and SID [6] dataset, so that the parameters we sample from would cover various brightness and ISO. Also, we deliberately arrange our synthetic dataset to have an average distribution of noise levels. The final training set is called FlyingChairs-DarkNoise (FCDN).
+
+Finally, we analyze the general variance of the real raw data and our synthetic data using the method in [7] showed in the table 1, in which the noise level is defined by variance * 255 of Normal distribution.
+
+| Datasets | Noise Level (variance * 255) |
| 0 - 10 | 10 - 20 | 20 - 30 | >30 |
| VBR-bright | 266 | 34 | 0 | 0 |
| VBR-dark | 42 | 248 | 10 | 0 |
| VBR-darker | 0 | 46 | 242 | 12 |
| VBR-darkest | 0 | 32 | 202 | 66 |
| FlyingChairs | 45744 | 0 | 0 | 0 |
| FCDN | 17021 | 14214 | 14166 | 343 |
+
+Table 1. Statistics of images numbers of various levels of noise on different datasets analyzed by the method in [7]. VBR is the dataset we collect of Various Brightness Raw images. FlyingChairs is from [10] and FlyingChairs-DarkNoise (FCDN) is the one we synthesize.
+
+# 5. Experiments
+
+# 5.1. Setup
+
+To evaluate our method we use our Various Brightness Optical Flow dataset since it's the only dataset that is able to benchmark brightness robustness for optical flow models so far. The performance is evaluated by End-Point Error (EPE), which is the Euclidean norm of the difference between the estimated optical flow vector $(V_{est})$ and a reference optical flow vector $(V_{rf})$ . $V_{est}$ and $V_{rf}$ have the shape of $(H, W, 2)$ where $H$ and $W$ represent the size of the input image, and 2 represents a 2-dimension vector for each pixel, with its direction and length indicating the direction and speed of the movement in that pixel.
+
+Network Choice. We choose to use FlowNetC, FlowNetS [10] and PWC-Net [28] to evaluate our method. The reason is that they can represent the mainstream two kinds of architectures of optical flow networks (U-Net and spatial pyramid) and many other networks are based on them, such as FlowNet2 [14] which stacks several FlowNetC and FlowNetS networks together. And PWC-Net [28] is one of the state-of-the-art optical flow networks. The three networks are all compact but effective, and they can all be trained in a reasonable amount of time.
+
+Training Set Synthesis. We want to use raw images as input to avoid information loss when testing, so we need to generate raw features on RGB images in the original training dataset, which is the core of our solution. Brooks et al. [2] propose a method to "unprocess" RGB images to RAW for denoising purpose, which includes adding noise,
+
+
+
+
+(a) Frame 1
+
+
+
+
+(b) Frame 2
+
+
+
+
+Figure 5. A comparison of final results using different training set synthesizing method: "unprocess" [2] and ours. (a,b) are inputs scaled from dark raw images. In our result, the object is painted red and purple meaning moving to the right and upper right, which is the correct output.
+
+
+
+
+(c) Unprocess
+(d) Ours
+
+inverting tone mapping, gamma decompression, inverting white balance and digital gain, etc. We try to synthesize a "raw" FlyingChairs dataset using their method but after training and evaluating, we find the final optical flow result turns out to be inaccurate compared to our solution (See Figure 5). We think the main reason is that we analyze the noise and synthesize it based on multiple datasets covering a large range of exposure and ISO, while their analysis is on the DND dataset [24] which is relatively limited (See (d) in Figure 4) and other operations like compression tend to destroy signal in 8-bit images.
+
+
+Figure 6. Different inputs of the same movement and optical flow. Our result produced directly from dark input is better than the one produced from the SID enhanced image [6], and even better than the one produced from the original bright image using PWC-Net author-trained model [28].
+
+
+
+
+
+| Evaluating Dataset | Model | Training Set | End-Point Error of Various Exposure Input (0: brightest, 6: darkest) |
| Exp-0 | Exp-1 | Exp-2 | Exp-3 | Exp-4 | Exp-5 | Exp-6 |
| VBOF | FlowNetC | FlyingChairs | 5.78 | 6.21 | 6.98 | 7.98 | 9.48 | 12.21 | 14.73 |
| FCDN | 5.76 | 5.78 | 5.78 | 5.86 | 5.98 | 6.11 | 6.55 |
| FlowNetS | FlyingChairs | 11.15 | 11.34 | 11.60 | 11.57 | 10.77 | 10.09 | 9.76 |
| FCDN | 5.46 | 5.53 | 5.51 | 5.53 | 5.61 | 5.67 | 6.26 |
| PWC-Net | FlyingChairs | 7.13 | 7.04 | 7.08 | 7.52 | 7.58 | 9.21 | 10.88 |
| FCDN | 5.31 | 5.32 | 5.29 | 5.34 | 5.37 | 5.63 | 6.09 |
| VBOF + NLM | FlowNetC | FlyingChairs | 5.34 | 5.39 | 5.78 | 7.02 | 8.96 | 11.36 | 13.69 |
| FCDN | 5.89 | 5.95 | 5.92 | 5.92 | 6.04 | 6.12 | 6.55 |
| FlowNetS | FlyingChairs | 11.38 | 11.81 | 12.69 | 11.64 | 10.44 | 9.73 | 9.55 |
| FCDN | 5.80 | 5.93 | 5.98 | 5.83 | 5.72 | 5.64 | 6.25 |
| PWC-Net | FlyingChairs | 6.14 | 6.15 | 7.12 | 7.12 | 7.31 | 8.59 | 10.19 |
| FCDN | 5.50 | 5.57 | 5.51 | 5.50 | 5.48 | 5.57 | 6.04 |
| VBOF (only Sony part) + SID (Sony model) | FlowNetC | FlyingChairs | 5.61 | 5.75 | 5.75 | 5.97 | 6.40 | 6.40 | 6.81 |
| FCDN | 4.74 | 4.77 | 4.84 | 4.87 | 4.93 | 5.28 | 5.13 |
| FlowNetS | FlyingChairs | 9.28 | 10.05 | 10.31 | 10.65 | 11.27 | 12.43 | 11.83 |
| FCDN | 4.47 | 4.59 | 4.76 | 4.78 | 5.24 | 6.13 | 6.22 |
| PWC-Net | FlyingChairs | 4.27 | 4.41 | 4.58 | 4.99 | 5.35 | 5.58 | 5.48 |
| FCDN | 4.31 | 4.27 | 4.25 | 4.37 | 4.30 | 4.41 | 4.60 |
+
+Table 2. Performance of our solution compared to existing solutions. The evaluation is done on our Various Brightness Optical Flow (VBOF) dataset and the processed VBOF dataset using Non-local Means [3] and Learning to See in the Dark (SID) [6]. Because the SID method is camera-sensitive, relevant experiments are only done on the Sony part of our VBOF dataset. We choose FlowNetC and FlowNetS [10] and PWC-Net [28] as our optical flow model and they are trained on the FlyingChairs dataset [10] and our FlyingChairs-DarkNoise (FCDN) dataset. The VBOF dataset is separated by multiple brightness levels, we select 7 of them listed as 'Exp-0' to 'Exp-6'. From the table we can see that models trained on our dataset always get a performance improvement almost on every brightness level and the accuracy is much more stable while the brightness is changing.
+
+# 5.2. "Bad" Enhancement
+
+The direct solution to get optical flow from dark images is to apply an image-enhancing method before optical flow estimation. Scaling is the simplest way to enhance a dark image and it is a reversible process with little information loss. However, because the scaled raw images suffer from serious noise and color aberration, it unsurprisingly leads to poor optical flow results using existing methods. We then try advanced methods — a traditional enhancing method and a learning-based enhancing method.
+
+We present the result of Non-local Means (NLM) [3] as a representative of traditional enhancing methods. It searches similar patches and averages them together to remove the noise. From Figure 7 input block, we can see NLM doesn't correct the color aberration but it produces a relatively stable denoising result. From table 2, we can see that followed by an optical flow model trained on existing FlyingChairs dataset [10], NLM doesn't solve the problem that optical flow models' performance gets worse on low-light images,
+
+which is much worse than our result produced from VBOF dataset without NLM processing.
+
+We present the result of Learning to See in the Dark (SID) [6] as a representative of learning-based enhancing methods. Chen et al. [6] propose to use U-Net [25] to enhance dark raw images, and they provide their model trained on Sony raw images, so we also use the Sony part of our VBOF dataset to test the method, and we get visually great images using the provided model. (See Figure 6,7) SID does a good job on white balance and the result images are noiseless, but if zooming in to take a closer look, one will find the signal in the image is unstable especially for the extremely dark images. Followed by an optical flow model trained on the existing FlyingChairs dataset [10], SID also doesn't solve the problem of optical flow in the dark. Sometimes SID may lead to worse optical flow results showed in Figure 7.
+
+ | Reference | Input (for every block below) |
| First Frame | Second Frame | Dark | Very Dark |
| Optical Flow | | NLM / SID (Dark) | NLM / SID (Very Dark) |
+
+ | Existing Method (FlyingChairs) | Our Method (FCDN) |
| FlowNetS | Dark | Very Dark | Dark | Very Dark |
| NLM / SID | NLM / SID | NLM / SID | NLM / SID |
| | | | | |
| FlowNetC | Dark | Very Dark | Dark | Very Dark |
| NLM / SID | NLM / SID | NLM / SID | NLM / SID |
| | | | | |
| PWC-Net | Dark | Very Dark | Dark | Very Dark |
| NLM / SID | NLM / SID | NLM / SID | NLM / SID |
| | | | | |
+
+Figure 7. A detailed evaluation of existing methods and our method. The upper right block serves as the input for all the blocks below, where we evaluate the performance of deriving optical flow from dark images and the enhanced images [3, 6] with various optical flow models [10, 28]. The upper left block serves as a good reference with bright input images and optical flow.
+
+
+
+
+
+we can see that for everyon our FCDN datasetbrightness descendsg with extreme low
+
+
+From Table 2 and Figure 7,
+light image inputs.
+
+
+(a) Sony outdoor ISO 1000
+
+
+
+
+
+
+(b) Canon indoor ISO 3200
+
+
+
+
+
+
+(c) Fujifilm outdoor ISO 2500
+Figure 8. Generalization performance of our solution (right) compared to existing methods (middle) evaluated with PWC-Net[28] on images in our VBOF dataset (left) of various cameras, ISO, indoor and outdoor.
+
+
+
+
+
+There are some other advantages of our solution that are worth pointing out. First, given the same optical flow network and the same light condition, our method's performance on the underexposed input is even better than the existing method's performance on well-exposed input (See Figure 6, Table 2). The reason is that a well-exposed image captured with long exposure or high ISO has different noise distribution from that of a bright one captured in a well-illuminated condition, and the network trained on the latter might not generalize well to the former bright image. Through realistic noise simulation, the network trained on our synthesized data is able to deal with various noise at different brightness levels. Second, from Figure 7,8, we can see that our method can generalize on different camera models in various environments and it's effective for multiple optical flow models.
+
+# 6. Discussion
+
+Although PWC-Net [28] achieves a higher accuracy on many of optical flow benchmark datasets using a 17 times smaller model than the FlowNet2 model [14], large models like FlowNet2 still performs better on complex real data like the well-exposed images in our VBOF dataset. From this point of view and our statistics, besides achieving a
+
+higher performance on low-light images, training a compact model like PWC-Net on our FCDN dataset can also help such small optical flow models learn to deal with complex situations in real images of any exposure more accurately.
+
+There are also works published achieving relevant goals in the semantic image segmentation area by adapting models from daytime to nighttime [8] and from clear weather conditions to foggy conditions [26], which bears resemblance to works from the broad field of transfer learning. They mix synthetic data and real data, then gradually adapt a model from clean easy training data to corrupted hard training data, such as from clear weather to light synthetic fog, and finally to dense real fog in multiple steps. We have already proved that directly training optical flow models on our synthetic low-light data is effective, and we believe that training models with our data in a manner of gradually model adaption may also lead to promising results, which can be tried in future work.
+
+# 7. Conclusion
+
+In this paper, we have presented a data-driven solution to improve optical flow accuracy especially in low-light environments. By synthesizing training data based on the noise model we analyzed on raw images collected in various brightness conditions, we succeed in training optical flow models that outperform the state-of-the-art on the real low-light optical flow dataset — Various Brightness Optical Flow (VBOF) dataset that we collect. VBOF consists of 598 raw images of various brightness with corresponding reference optical flow, aiming to benchmark the brightness robustness of optical flow models. We believe the proposed method, the noise analysis, and the VBOF dataset will be very useful for optical flow tasks in real scenes.
+
+# References
+
+[1] Abdelrahman Abdelhamed, Stephen Lin, and Michael S. Brown. A high-quality denoising dataset for smartphone cameras. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018. 3
+[2] Tim Brooks, Ben Mildenhall, Tianfan Xue, Jiawen Chen, Dillon Sharlet, and Jonathan T Barron. Unprocessing images for learned raw denoising. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 11036-11045, 2019. 2, 4, 5
+[3] Antoni Buades, Bartomeu Coll, and Jean-Michel Morel. Non-local means denoising. Image Processing On Line, 1:208-212, 2011. 2, 3, 6, 7
+[4] Daniel J Butler, Jonas Wulff, Garrett B Stanley, and Michael J Black. A naturalistic open source movie for optical flow evaluation. In European conference on computer vision, pages 611-625. Springer, 2012. 2, 3
+[5] Chen Chen, Qifeng Chen, Minh Do, and Vladlen Koltun. Seeing motion in the dark. 2019. 3
+[6] Chen Chen, Qifeng Chen, Jia Xu, and Vladlen Koltun.
+
+Learning to see in the dark. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3291-3300, 2018. 1, 2, 3, 4, 5, 6, 7
+[7] Guangyong Chen, Fengyuan Zhu, and Pheng Ann Heng. An efficient statistical method for image noise level estimation. In Proceedings of the IEEE International Conference on Computer Vision, pages 477-485, 2015. 5
+[8] Dengxin Dai and Luc Van Gool. Dark model adaptation: Semantic image segmentation from daytime to nighttime. In 2018 21st International Conference on Intelligent Transportation Systems (ITSC), pages 3819-3824. IEEE, 2018. 8
+[9] Aram Danielyan, Vladimir Katkovnik, and Karen Egiazarian. Bm3d frames and variational image deblurring. IEEE Transactions on Image Processing, 21(4):1715-1728, 2011. 2, 3
+[10] Alexey Dosovitskiy, Philipp Fischer, Eddy Ilg, Philip Hausser, Caner Hazirbas, Vladimir Golkov, Patrick Van Der Smagt, Daniel Cremers, and Thomas Brox. Flownet: Learning optical flow with convolutional networks. In Proceedings of the IEEE international conference on computer vision, pages 2758-2766, 2015. 2, 4, 5, 6, 7
+[11] Alessandro Foi, Mejdi Trimeche, Vladimir Katkovnik, and Karen Egiazarian. Practicaloissonian-gaussian noise modeling and fitting for single-image raw-data. IEEE Transactions on Image Processing, 17(10):1737-1754, 2008. 4
+[12] Andreas Geiger, Philip Lenz, Christoph Stiller, and Raquel Urtasun. Vision meets robotics: The kitti dataset. The International Journal of Robotics Research, 32(11):1231-1237, 2013. 2, 3
+[13] Berthold KP Horn and Brian G Schunck. Determining optical flow. Artificial intelligence, 17(1-3):185–203, 1981. 1
+[14] 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 Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2462-2470, 2017. 1, 2, 3, 5, 8
+[15] Ronnachai Jaroensri, Camille Biscarrat, Miika Aittala, and Frédo Durand. Generating training data for denoising real rgb images via camera pipeline simulation. arXiv preprint arXiv:1904.08825, 2019. 2
+[16] Ruoteng Li, Robby T Tan, and Loong-Fah Cheong. Robust optical flow in rainy scenes. In Proceedings of the European Conference on Computer Vision (ECCV), pages 288-304, 2018. 2
+[17] Ruoteng Li, Robby T Tan, Loong-Fah Cheong, Angelica I Aviles-Rivero, Qingnan Fan, and Carola-Bibiane Schonlieb. Rainflow: Optical flow under rain streaks and rain veiling effect. In Proceedings of the IEEE International Conference on Computer Vision, pages 7304-7313, 2019. 2
+[18] Kin Gwn Lore, Adedotun Akintayo, and Soumik Sarkar. Linet: A deep autoencoder approach to natural low-light image enhancement. Pattern Recognition, 61:650-662, 2017. 2
+[19] Feifan Lv, Feng Lu, Jianhua Wu, and Chongsoon Lim. Mblen: Low-light image/video enhancement using cnns. In BMVC, page 220, 2018. 2
+[20] Feifan Lv, Yinqiang Zheng, Yicheng Li, and Feng Lu. An integrated enhancement solution for 24-hour colorful imaging. In Proceedings of the AAAI conference on artificial intelligence, 2020. 2, 3
+
+[21] Feifan Lv, Yinqiang Zheng, Bohan Zhang, and Feng Lu. Turn a silicon camera into an ingaas camera. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5987-5995, 2019. 3
+[22] 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 Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4040-4048, 2016. 2
+[23] 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. 2
+[24] Tobias Plotz and Stefan Roth. Benchmarking denoising algorithms with real photographs. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1586-1595, 2017. 2, 4, 5
+[25] 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. 3, 6
+[26] Christos Sakaridis, Dengxin Dai, Simon Hecker, and Luc Van Gool. Model adaptation with synthetic and real data for semantic dense foggy scene understanding. In Proceedings of the European Conference on Computer Vision (ECCV), pages 687-704, 2018. 3, 8
+[27] Christos Sakaridis, Dengxin Dai, and Luc Van Gool. Semantic foggy scene understanding with synthetic data. International Journal of Computer Vision, 126(9):973-992, 2018. 3
+[28] Deqing Sun, Xiaodong Yang, Ming-Yu Liu, and Jan Kautz. Pwc-net: Cnns for optical flow using pyramid, warping, and cost volume. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8934-8943, 2018. 1, 2, 5, 6, 7, 8
\ No newline at end of file
diff --git a/opticalflowinthedark/images.zip b/opticalflowinthedark/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..0f2669fcbf476850c70fd772a9485b4485717ffb
--- /dev/null
+++ b/opticalflowinthedark/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1149c2bc158c5c0013f8674a1a59fb6caf57adc4597c8151c3fa8609f4a3d8fd
+size 681778
diff --git a/opticalflowinthedark/layout.json b/opticalflowinthedark/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..a24b1a400e11ab9c4b5d82323e6997538abd1955
--- /dev/null
+++ b/opticalflowinthedark/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:10f7408e40213b4c1e16b40733685ac6b10b794f54951c84619c2f53690283ab
+size 280544
diff --git a/opticalnonlineofsightphysicsbased3dhumanposeestimation/9f35efd5-056d-4d83-906c-422f0ee2a157_content_list.json b/opticalnonlineofsightphysicsbased3dhumanposeestimation/9f35efd5-056d-4d83-906c-422f0ee2a157_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..0f01e573083610e0ad435d610a70e3ded5e5ba75
--- /dev/null
+++ b/opticalnonlineofsightphysicsbased3dhumanposeestimation/9f35efd5-056d-4d83-906c-422f0ee2a157_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:906d3d601faa94071875bd1d799a9e3f79f48207ad2cb30a8407814d67f6d2fe
+size 70154
diff --git a/opticalnonlineofsightphysicsbased3dhumanposeestimation/9f35efd5-056d-4d83-906c-422f0ee2a157_model.json b/opticalnonlineofsightphysicsbased3dhumanposeestimation/9f35efd5-056d-4d83-906c-422f0ee2a157_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..25f263273b7919185a4832003a278fba74fe4e0d
--- /dev/null
+++ b/opticalnonlineofsightphysicsbased3dhumanposeestimation/9f35efd5-056d-4d83-906c-422f0ee2a157_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7491468d32bce364cb06cb28250563fd423f5a95bc701579ccd393d8d72e8afb
+size 86199
diff --git a/opticalnonlineofsightphysicsbased3dhumanposeestimation/9f35efd5-056d-4d83-906c-422f0ee2a157_origin.pdf b/opticalnonlineofsightphysicsbased3dhumanposeestimation/9f35efd5-056d-4d83-906c-422f0ee2a157_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..c08449c9709b0ff0fa6d84b30fdd537adbed804d
--- /dev/null
+++ b/opticalnonlineofsightphysicsbased3dhumanposeestimation/9f35efd5-056d-4d83-906c-422f0ee2a157_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9c36952b0af403c663e7059b1f2fb945250b284359bd44770de8a2a429e8db0e
+size 4577071
diff --git a/opticalnonlineofsightphysicsbased3dhumanposeestimation/full.md b/opticalnonlineofsightphysicsbased3dhumanposeestimation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..3522d604188d924ffb103f1f2a3e6ecd320a5143
--- /dev/null
+++ b/opticalnonlineofsightphysicsbased3dhumanposeestimation/full.md
@@ -0,0 +1,265 @@
+# Optical Non-Line-of-Sight Physics-based 3D Human Pose Estimation
+
+Mariko Isogawa, Ye Yuan, Matthew O'Toole, Kris Kitani Carnegie Mellon University
+
+
+Figure 1. Non-Line-of-Sight (NLOS) Physics-Based 3D Human Pose Estimation. A pulsed laser and a transient sensor record the time light takes to travel from a point on a wall to the person hidden from sight (left). Given a sequence of 3D transient measurements from an optical NLOS system (top right), our method estimates a 3D pose sequence using a physics-based policy (bottom right).
+
+
+
+# Abstract
+
+We describe a method for 3D human pose estimation from transient images (i.e., a 3D spatio-temporal histogram of photons) acquired by an optical non-line-of-sight (NLOS) imaging system. Our method can perceive 3D human pose by 'looking around corners' through the use of light indirectly reflected by the environment. We bring together a diverse set of technologies from NLOS imaging, human pose estimation and deep reinforcement learning to construct an end-to-end data processing pipeline that converts a raw stream of photon measurements into a full 3D human pose sequence estimate. Our contributions are the design of data representation process which includes (1) a learnable inverse point spread function (PSF) to convert raw transient images into a deep feature vector; (2) a neural humanoid control policy conditioned on the transient image feature and learned from interactions with a physics simulator; and (3) a data synthesis and augmentation strategy based on depth data that can be transferred to a real-world NLOS imaging system. Our preliminary experiments suggest that our method is able to generalize to real-world NLOS measurement to estimate physically-valid 3D human poses. $^{1}$
+
+# 1. Introduction
+
+Our goal is to develop a vision-based human pose estimation technique capable of inferring the 3D pose sequence
+
+of a person without direct line of sight from the sensing device (see Fig. 1). To this end, this work brings together, for the first time, state-of-the-art techniques in computational imaging, human pose estimation, humanoid control, and deep reinforcement learning – all under one system architecture. From computational imaging, we use volumetric reconstruction algorithms that efficiently process transient measurements (a 3D spatio-temporal histogram of photons) captured from a non-line-of-sight (NLOS) imaging system. From vision-based pose estimation and humanoid control, we make use of deep reinforcement learning in a physics simulator to learn an image feature-conditioned 3D human pose policy that abides by the laws of physics. All components are integrated into a single end-to-end learnable architecture which takes the raw transient images, converts them to a deep feature representation using a learnable inverted point spread function (PSF), and uses a neural humanoid control policy conditioned on the deep feature to estimate physically valid 3D human poses. In short, our proposed end-to-end system models the complete flow of information from the photon-level all the way to the high-level cognitive task of 3D human pose estimation.
+
+In order to capture the actions of a person around a corner, we employ a NLOS imaging technique using a pulsed laser and a time-of-flight sensor [30]. The imaging process involves sending light pulses towards a visible surface, and measuring the travel time of light reflected back in response; this represents a "transient image" [31, 4, 16]. The transient image used here is a 3D volume that encodes the ar
+
+rival of individual photons over a spatial region (first two dimensions) and over time (third dimension); see Fig. 1 for a sequence of transient images. Optical NLOS imaging at visible or near-IR wavelengths offers several advantages, such as the ability to image at long-ranges [3], reconstruct surfaces at micron-scales [32], and robustly perform imaging for multiple objects with different BRDFs [13].
+
+While NLOS imaging gives us the ability to look around corners, the raw transient measurements acquired by a NLOS system have several unique properties that make 3D human pose estimation difficult. In order to attain fast image acquisition necessary for 3D human pose understanding, existing NLOS solutions limit the resolution of the transient image in both space and time [13]. This makes it difficult to capture small shape details and fast motion, both of which are important for estimating a human pose sequence. Furthermore, due to the light lost after multiple scattering events, very few photons reach the sensor and the acquired transient image can therefore be very noisy. All of these characteristics make it very challenging to estimate 3D human pose directly from the transient image.
+
+Due to the noisy nature of transient images, it is important to make use of prior information about the body and its dynamics to help solve the 3D human pose estimation problem. In particular, we have prior knowledge about the structure of the human body (e.g., arms, head, and legs are connected to the torso) and we also know that human pose must abide by the laws of physics. Based on this prior knowledge, we make use of a parametrized humanoid model and a physics-based deep reinforcement learning approach to estimate 3D human pose from a sequence of transient images. Inspired by [35], we first define a Markov Decision process (MDP) where the state is defined as the current pose of a humanoid model and a sequence of transient images, the action is defined as the target joint angles of a humanoid, the environment is a physics simulator (i.e., MuJoCo [28]) and the reward function is an imitation-based objective function [18]. By solving the MDP via reinforcement learning, we are able to learn an optimal policy that maps states to actions. In our scenario, the policy function encodes how the humanoid should move such that it best explains the 3D pose information captured in the transient image sequence.
+
+The deep neural network design used to implement the policy of the MDP is a critical representational element of the system, as it must have the computational components necessary to map a 3D transient image to a vector of humanoid joint angles. Inspired by recent NLOS imaging techniques, we model our network based on existing reconstruction algorithms used to process transient images, and introduce P2PSF Net: a neural network that learns "corrections" that improve the NLOS image reconstruction process. A deep feature computed by the P2PSF Net is then passed to a bi-directional recurrent neural architecture to
+
+ensure that the output of the policy (the next joint position) follows the laws of motion and matches demonstrated human pose dynamics. The ambitious goals of the policy is to estimate fine-scale 3D human pose from transient images and overcome the resolution limits and noisy characteristics of NLOS imaging.
+
+As mentioned above, the MDP formulation for human pose estimation makes use of an imitation-based reward function which requires a large amount of annotated data in the form of transient images and a corresponding 3D human pose sequence. As a practical matter, current NLOS imaging systems are quite costly to build and non-trivial to calibrate. As such, the need for a large amount of annotated data and the cost of collecting such data are at odds with each other. While we do believe that these practical hurdles will be resolved through new innovations over time, for this work, we address them by synthesizing pseudo-transient images using the 3D body volume recovered with a depth camera. To learn our MDP policy, we rely solely on this synthetic data synchronized with ground truth 3D human pose acquired by a motion capture system.
+
+Synthesizing transient images from depth maps for training can create a large domain gap between the training and test data distributions. To ensure that we minimize the size of this domain gap, it is critical to implement principled data augmentation techniques based on the physics of the imaging process, e.g., reproducing the noise characteristics associated with real transient images. We introduce several augmentation techniques to make the 3D human pose estimation policy able to handle real-world NLOS data.
+
+To summarize, our contributions are as follows:
+
+(1) We are the first to propose an end-to-end data processing pipeline that models information flow from optical NLOS transient measurements to 3D human pose estimation.
+(2) We present a novel policy network architecture that integrates a inverse point spread function (PSF), transient images, and human pose as one deep neural network.
+(3) We describe a method for generating pseudo (i.e., synthetic) transient images from depth images. We propose several critical processes for augmenting pseudo-transient images to help the learned 3D human pose policy to generalize better to real-world data.
+(4) We provide extensive experimentation with both synthetic and real transient images and show that our model outperforms other baseline methods.
+
+# 2. Related Work
+
+NLOS Imaging and Its Applications. NLOS imaging has received significant attention recently [1, 2, 3, 6, 8, 9, 10, 12, 13, 17, 30, 14, 21, 27, 29, 32, 36]. This includes a wide variety of solutions, in terms of hardware systems and reconstruction algorithms, that operate in different parts of the electromagnetic spectrum. Most NLOS solutions
+
+work with visible (380-740 nm) or near-IR (740-1500 nm) light [3, 13, 32]; we refer to these as optical NLOS systems. Others choose to operate at longer wavelengths, including long-wave IR (8-15 um) [14], terahertz (millimeter scale) [21], WiFi and radio frequency (RF) (centimeter scale) [10], or even sound waves [12].
+
+Operating in a specific part of the spectrum affects the nature of the NLOS signal that can be used for pose estimation. For example, RF or WiFi signals enable through-the-wall pose estimation [1, 10, 36], since longer electromagnetic waves tend to pass through objects; however, as highlighted in Fig. 2, this also comes at a number of fundamental limitations when estimating pose dynamics: the spatial and angular resolution must be limited, making it hard to distinguish small objects or motions; objects tend to behave specularly at long wavelengths, presenting a challenge when attempting to form images; RF signals can be highly attenuated when passing through thick objects; and RF signals are blocked entirely when passing through other surfaces, like metal or water. As a result, they cannot always be applied to scenes shown in Fig. 2 (a), (c) and (d).
+
+Rather than using RF signals to attempt imaging through walls, most NLOS works choose to operate in the optical domain and image around corners. This is done by reflecting light off of walls to indirectly illuminate a hidden scene, and measuring the time light takes to return to the wall with transient sensors, e.g., single photon avalanche diodes (SPADs). Amongst these works, many attempt to reconstruct 3D volumes [6, 13, 17, 30] where each voxel represents the scene's reflectivity at a 3D location; or compute a surface representation [29, 32], offering the potential for more accurate reconstructions. Even regular cameras can be used to track a person walking around in a room under either passive [2] or active [8, 9, 27] illumination.
+
+Data-driven methods for optical NLOS imaging have also received some attention, e.g., to discretely classify the pose of a human from raw transient measurements [24] or form NLOS images with a regular camera [27]. Network architectures have also been proposed for denoising transient measurements from SPADs, in the context of line-of-sight imaging [11]. However, there has been no prior work addressing the task of learning full physics-based 3D human pose estimation in a NLOS context.
+
+Physics Based 3D Human Pose Estimation. Enforcing physics-based on constraints on human pose dynamics is used commonly for simulated humanoid control [18, 19, 20, 34, 35]. These methods use deep reinforcement learning (DeepRL) to learn control policies that can reproduce humanoid motion inside a physics simulator. Among these methods, [34, 35] use the optical flow of egocentric videos as additional inputs to the motion policy to estimate physically-valid human poses. We use a similar RL-based pose estimation framework proposed in [35] for its ability to
+
+
+Figure 2. Overview of WiFi/RF (i.e., through-the-wall) and visible/near-IR (i.e., around-the-corner) NLOS human pose estimation. (a) The person is hidden from view in a nearby corridor, but seen indirectly by reflecting light off of a visible surface. (b) The person is hidden in an enclosed room, which can only be accessed with WiFi/RF that pass through walls. (c) The person is within a partially-enclosed space that can be accessed through either method. (d) The walls are either too thick or made from a material that prevents WiFi and RF signals from passing through.
+
+estimate physically-accurate human poses with only limited amounts of visually information. However, the transient images that we use as input present many new challenges when learning the policy, which we address in this paper.
+
+# 3. Methodology
+
+There are three key ideas behind our method. First, to model physically-valid human pose, we use a humanoid model inside a physics simulator and model hidden 3D human pose as the result of a humanoid control policy conditioned on the input transient images (Sec. 3.1). Second, to make our model applicable to real captured data, we synthesize "pseudo-transient" images as training data which replicates the visual characteristics of real transient measurements (Sec. 3.2). Third, to enhance our pose estimation, we further introduce P2PSF Net that improves the NLOS imaging process (Sec. 3.3).
+
+# 3.1. Physics-based 3D Pose Estimation Framework
+
+Given a sequence of transient images $\tau_{1:T}$ , the goal of our physics-based pose estimation pipeline is to predict a physically-valid pose sequence $p_{1:T}$ . As shown in Fig. 3, the pipeline contains two main parts: (1) We use a feature extractor consisting of the NLOS imaging pipeline and P2PSF Net to extract transient features $\psi_{1:T}$ from the transient images $\tau_{1:T}$ ; (2) We use a humanoid policy conditioned on the transient features $\psi_{1:T}$ to control the humanoid inside a physics simulator and generate the pose sequence $p_{1:T}$ underlying the transient images. In this section, we will focus on part 2, i.e., humanoid control, and leave details on how to extract transient features (part 1) to Sec. 3.2 and 3.3.
+
+Following [35], we formalize the task of estimating a
+
+
+Figure 3. Our DeepRL based photons to 3D human pose estimation framework under the laws of physics.
+
+
+
+pose sequence $p_{1:T}$ from a transient image sequence $\tau_{1:T}$ with a Markov Decision process (MDP). The MDP is defined by a tuple $\mathcal{M} = (S, A, P, R, \gamma)$ of states, actions, transition dynamics, a reward function, and a discount factor. As Fig. 3 shows, at each time step, the humanoid agent samples an action $a_t$ from a policy $\pi(a_t|s_t)$ whose input state $s_t$ contains both the visual context $\phi_t$ (defined later) and the humanoid state $z_t$ (i.e., position and velocity of the human model joints). Next, the environment generates the next state $s_{t+1}$ through physics simulation and gives the agent a reward $r_t$ based on how well the humanoid's 3D pose aligns with the ground-truth. To solve this MDP, we apply the PPO policy gradient method [25] to obtain the optimal policy $\pi^*$ that maximizes the expected discounted return $\mathbb{E}[\sum_{t=1}^{T} \gamma^{t-1} r_t]$ . At test time, starting from some initial state $s_1$ , we roll out the policy $\pi^*$ to generate state sequence $s_{1:T}$ , from which we extract the output pose sequence $p_{1:T}$ . In the following, we will discuss the details of each component.
+
+State $s_t$ consists of the state of the humanoid $z_t$ and the visual context $\phi_t$ . $z_t$ consists of the pose $p_t$ (root position/orientation and joint angles) and velocity $v_t$ (root linear/angular velocities and joint velocities). The visual context $\phi_t$ is extracted from the transient feature $\psi_{1:T}$ with a bi-directional LSTM (BiLSTM) as shown in Fig. 3. During training, we set the starting state $z_1$ to the ground-truth $\hat{z}_1$ . Since we have no access to the ground truth at test time, we learn a regressor $\mathcal{F}$ that maps the visual context $\phi_t$ to its corresponding state $z_t$ .
+
+Action $a_{t}$ specifies the target joint angles of the Proportional-Derivative (PD) controller for each degree of freedom (DoF) of the humanoid joints except for the root. The joint torques are computed based on the stable PD controllers in [26] using the specified target joint angles $a_{t}$ .
+
+Policy $\pi_{\theta}(a_t|s_t)$ is represented by a Gaussian distribution $\mathcal{N}(\mu; \Sigma)$ with a fixed diagonal covariance matrix treated as hyperparameters. We use a $\theta$ -parametrized multilayer perceptron (MLP) with two hidden layers (300, 200) and ReLU
+
+activations to model the mapping from $s_t$ to the mean $\mu_t$ . Reward function. To encourage the policy to output a pose sequence $p_{1:T}$ that matches the ground-truth $\hat{p}_{1:T}$ , we use the reward function proposed in [35]. The specific design of the reward function is given in the supplementary materials.
+
+# 3.2. Pseudo-Transient Image
+
+Before introducing our transient data synthesis from depth maps (Sec. 3.2.2), we provide background on the NLOS imaging procedure used in this work in Sec. 3.2.1.
+
+# 3.2.1 Background: Confocal NLOS Imaging
+
+Confocal NLOS imaging refers to a specialized raster-scanning procedure for capturing transient measurements [17]. Measurements are the result of illuminating and imaging a common point $(x', y')$ on a visible surface. After illuminating this point with a pulse laser, light scatters to hidden regions of an environment and returns back to the wall at a later instant of time. A SPAD measures the transient response at this same point, represented as a histogram of photon arrival times [16]. This procedure is repeated for a uniform and planar 2D grid of points across the surface; the collection of transients is stored as a 3D transient image $\tau(x, y, t)$ .
+
+The objective of NLOS imaging is to convert this 3D transient $\tau(x', y', t)$ into a discretized reconstruction volume $\rho(x, y, z)$ , which represents the reflectivity at every point $(x, y, z)$ in space. The presence of an object in voxel $(x, y, z)$ produces a non-zero reflectance value $\rho(x, y, z)$ where the wall is located at $z = 0$ .
+
+After resampling the transient measurements $\tau$ along the time dimension $(\tilde{\tau} = R_{t}\{\tau\})$ and resampling the reconstruction volume $\rho$ along the depth dimension $(\tilde{\rho} = R_{z}\{\rho\})$ , the forward image formation model for confocal NLOS images becomes a simple 3D convolution operation [17]:
+
+$$
+\tilde {\tau} = h * \tilde {\rho}, \tag {1}
+$$
+
+where the hidden volume $\tilde{\rho}$ is convolved with a known 3D point spread function (PSF) represented by $h$ . This PSF $h$ describes the transient response of a single scatterer.
+
+Equivalently, we can rewrite this convolution in matrix-vector form as follows:
+
+$$
+\tau = R _ {t} ^ {- 1} F ^ {- 1} \hat {H} F R _ {z} \rho , \tag {2}
+$$
+
+where we vectorize volumes $\tau$ and $\rho$ . The matrix $F$ represents a 3D discrete Fourier transform and $\hat{H}$ is a diagonal matrix representing the Fourier transform of the PSF $h$ .
+
+The NLOS imaging process reconstructs a 3D volume $\rho_{*}$ from a transient image $\tau$ by inverting Eq. 2 and solving a 3D deconvolution procedure (e.g., using the Wiener filter):
+
+$$
+\rho_ {*} = R _ {z} ^ {- 1} F ^ {- 1} \underbrace {\left[ \frac {\hat {H} ^ {*}}{| \hat {H} | ^ {2} + \frac {1}{\alpha}} \right]} _ {\text {t h e i n v e r s e P S F}} F R _ {t} \tau , \tag {3}
+$$
+
+where a user-defined parameter $\alpha$ controls how sensitive the inverse PSF is to noise.
+
+# 3.2.2 Pseudo-Transient Image Synthesis
+
+We propose a procedure for synthesizing pseudo-transient images to generate annotated training data for our pose estimator. This involves using a motion capture (MoCap) system to obtain 3D ground truth human pose, which is synchronized with a depth camera to capture depth images used for synthesizing pseudo-transient images.
+
+Given a depth map $d(x,y)$ , we compute a corresponding synthesized reflectance volume for our scene: $\rho_s(x,y,z) = a$ when $z = d(x,y)$ , and zero otherwise. The scalar $a = 100$ is a constant value representing the amount of light reflected by voxels in the volume. We then convert the synthesized volume $\rho_s$ into transient measurements $\tau$ by using the image formation model described in Eq. 2.
+
+Note, however, that the image formation model is currently incomplete, since it does not model all characteristics of real-world transient measurements. For dynamic scenes (e.g., a person walking around in a room), acquisition times must be short. Raster scanning transient measurements, therefore, is affected by motion, and the number of sampled points on the wall may be limited. The sensors used for NLOS imaging (e.g., SPADs) are also affected by different types of sensor noise.
+
+To close the domain gap that exists between the synthesized data and the real transient measurements, we introduce Poisson noise, temporal blur, temporal shifts, and temporal re-sampling into the image formation model.
+
+Poisson noise. At low light levels, the number of photons detected by a SPAD approximately follow Poisson noise
+
+characteristics [16]. We therefore apply Poisson noise to our synthetic transient measurements, as a post-process operation on Eq. 2.
+
+Temporal blur. The temporal profile of a transient measurement is affected by jitter and the shape of the laser pulse. The result is that the transient measurements become blurred in the time domain. Before the Poisson noise step, we introduce temporal blur by convolving the transients measurements with a Gaussian [16]. The standard deviation of the Gaussian is characterized by its full width at half maximum (FWHM), which is reported to be 70 picoseconds for the real-world NLOS data used in this work [13].
+
+Temporal shift. The arrival times of photons are correlated with the distance of the hidden person from the wall. We augment our data by biasing the depth values by a constant amount $d$ prior to synthesizing pseudo-transient images, which temporally shifts the transient images. In our experiments, we make use of five levels of shifts, augmenting the training data up to a factor of five.
+
+Temporal re-sampling. Confocal NLOS imaging requires raster scanning a visible surface point by point. The mechanics of current systems impose limits on the speed of this raster scanning procedure. For example, we make use of NLOS data sampled at $32 \times 32$ locations at a frame rate of only $4\mathrm{Hz}$ [13]. Since points and corresponding transients are scanned sequentially, performance of pose estimation can be affected by fast moving body parts.
+
+We propose a procedure to temporally re-sample transient data. First, to simulate the raster scanning procedure, we capture depth maps at $30\mathrm{Hz}$ , convert them to pseudotransient measurements, and simulate raster-scanned measurements by down-sampling the result to $4\mathrm{Hz}$ . Second, we up-sample the pseudo-transient data from $4\mathrm{Hz}$ back to $30\mathrm{Hz}$ . Each transient image is a collection of transients scanned from time $t_k$ to $t_k + \frac{1}{4}$ , where $t_k = \frac{k}{4}$ represents the start time of the $k^{\mathrm{th}}$ frame (in seconds). To generate a 30 Hz transient sequence, we simply assemble transients captured within the same time range, but set the start time of the $k^{\mathrm{th}}$ frame to $t_k = \frac{k}{30}$ . For real transient images used at test time, we also perform above procedure to up-sample them to $30\mathrm{Hz}$ to be compatible with the humanoid policy.
+
+# 3.3. P2PSF Net: Photon to Inverse PSF Network
+
+To predict 3D human pose from transient images, as discussed in Sec. 3.1, Our DeepRL based framework needs a feature extractor to obtain transient feature $\psi_t$ from transient image $\tau_t$ . We model the feature extractor by incorporating aspects of the confocal NLOS imaging process (described in Sec. 3.2.1) into our feature extractor network. Note that learning to estimate 3D human pose from transient images is challenging for two key reasons: (1) the transient images are noisy, have low spatial resolution, and are recorded at slow frame rates; (2) the inverse PSF, labeled
+
+in Eq. 3, makes several simplifying assumptions about the NLOS imaging process.
+
+To overcome these challenges, we propose P2PSF Net: the photon-to-inverse-PSF network. Its objective is to adjust the inverse PSF volume used in the confocal NLOS reconstruction process (e.g., to help handle realistic sensor noise, calibration errors, motion during the acquisition period). P2PSF Net is a 3D volume-to-volume network with nine 3D convolution layers (see Fig. 3). It also has two residual connections, which are inspired by past works [5, 22]. Given a transient image of resolution $(x,y,t) = 32\times 32\times 64$ , the network outputs a volume $(x,y,d) = 128\times 64\times 64$ matching the size of the inverse PSF volume used in confocal NLOS imaging.
+
+To extract transient features $\psi_t$ , we first reconstruct the reflectance volume $\rho_*$ following the procedure used in confocal NLOS imaging (Eq. 3) with the modification that we add the output of P2PSF Net as a corrective volume to the inverted PSF volume. Given the reconstructed reflectance volume $\rho_*$ , we then generate a 2D heat map by applying a single max pooling layer across the depth axis of the volume. The 2D heat map is then passed to a ResNet-18 [5] pretrained on ImageNet [23] to extract $\psi_t$ .
+
+# 4. Experimental Settings
+
+# 4.1. Datasets
+
+Pseudo-Transient Image Dataset. We generated a large set of synthetic pseudo-transient images from MoCap data. The dataset is 1 hour long and has 103200 frames with 30 FPS. It consists of five subjects performing various complex motions: walking, jumping, turning, bending backward/forward, rotating, and transitioning between all of these motions. Our method does not require segmenting the pose sequences or labeling the actions.
+
+Real Captured Transient Image Dataset. To further showcase our methods applicability, we also test our method on actual transient images [13]. This is a challenging dataset since it contains a different subject and the data acquisition conditions are different compared to the training data. This test data also contains significant noise, samples a sparse grid $(32 \times 32)$ , and records measurements at a low frame-rate (i.e., $4\mathrm{Hz}$ ). The person is wearing a retroreflective tracksuit to increase the light signal used in NLOS imaging. Through our temporal re-sampling procedure (Sec. 3.2.2), we up-sampled this data to 30 FPS and 1000 frames. Since this dataset has no pose ground truth, we extract 2D keypoint ground truth with AlphaPose [33] using a third-person RGB camera.
+
+# 4.2. Baseline Methods
+
+1. V2V-PoseNet [15]: Since there is no existing work on optical NLOS human pose estimation from tran
+
+sient images, we compare against the state-of-the-art method, V2V-PoseNet, for depth volume-based pose estimation [15]. We train V2V-PoseNet using the reconstructed depth volume $\rho_{*}$ computed from our synthetic pseudo-transient images using the regular NLOS imaging process (without P2PSF Net) defined in Eq. 3.
+
+2. **PoseReg:** To investigate the effect of physics inside our physics-based pose estimation framework, we compare our method a regression-based method, which directly maps the visual context $\phi_t$ to the humanoid state $z_t$ without using any physics. We integrate root linear/angular velocities to generate global positions and orientations of the pose sequence.
+3. PoseReg w/o P2PSF: a variant of PoseReg that does not use proposed P2PSF Net in the NLOS imaging process.
+4. Ours w/o P2PSF: a variant of our method that does not use proposed P2PSF Net.
+
+# 4.3. Evaluation Metrics
+
+We use the following metrics to evaluate both the accuracy and physical correctness of each method:
+
+1. Mean Per-Joint Position Error (MPJPE): a pose-based metric that measures the Euclidean distance (measured in millimeters) between the ground truth and prediction for a joint defined as $\frac{1}{T} \Sigma_{t=1}^{T} \Sigma_{j=1}^{J} \left\| \left(x_{t}^{j} - x_{t}^{root}\right) - \left(\hat{x}_{t}^{j} - \hat{x}_{t}^{root}\right) \right\|_{2}$ , where $x_{t}^{j}$ is the $j^{\text{th}}$ joint position of estimated pose and $\hat{x}_{t}^{j}$ is the ground truth. $x_{t}^{root}$ and $\hat{x}_{t}^{root}$ represent root joint positions of the estimate and the ground truth.
+2. 2D Keypoint Error $(\mathbf{E}_{\mathrm{key}})$ : A pose-based metric used for real captured dataset, calculated as $\frac{1}{TJ}\Sigma_{t=1}^{T}\Sigma_{j=1}^{J}||y_t^j - \hat{y}_t^j||_2$ . Here, $y_t^j$ is the $j^{\mathrm{th}}$ 2D keypoint of estimated pose and $\hat{y}_t^j$ is the ground truth. For both estimated and ground-truth, we set the hip keypoint as the origin and scale the coordinates to make the height between shoulder and hip equal to 0.5.
+3. Velocity Error $(\mathbf{E}_{\mathrm{vel}})$ : A physics-based metric that measures the Euclidean distance between the generated velocity sequence $v_{1:T}$ and the ground-truth $\hat{v}_{1:T}$ , calculated as $\frac{1}{T}\Sigma_{t=1}^{T}||v_t - \hat{v}_t||_2$ .
+4. Average Acceleration $(\mathbf{A}_{\mathrm{accl}})$ : A physics-based metric that uses the average magnitude of joint accelerations to measure the smoothness of the pose sequence, calculated as $\frac{1}{TN}\sum_{t=1}^{T}||\dot{v}^t||_1$ where $\dot{v}_t$ denotes joint accelerations and $N$ is the number of actuated DoFs.
+
+# 4.4. Implementation Details
+
+Simulation Environment. We use MuJoCo [28] as the physics simulator for a humanoid that consists of 58 DoFs and 21 rigid bodies. We use stable PD controllers [26] to compute joint torques. The gains $k_{p}$ ranges from 50 to 500,
+
+
+Figure 4. Qualitative results for (a) single-subject and (b) cross-subject pose estimation.
+
+where joints such as legs and spine have larger gains while arms and head have smaller gains; $k_{d}$ is set to $0.1k_{p}$ .
+
+Networks and Training. We set the reward weights $(w_{q}, w_{e}, w_{p}, w_{v})$ to (0.5, 0.3, 0.1, 0.1). We use PPO [25] with a clipping epsilon of 0.2 for policy optimization. The discount factor $\gamma$ is 0.95. We use Adam [7] to optimize the policy and value function with learning rate 5e-5. The policy typically converges after 3k iterations, which takes about a day on a GeForce RTX 2080 Ti.
+
+# 5. Experiments and Results
+
+We evaluate our method against the baselines in three different experiment settings and one ablation study: (1) single subject with pseudo-transient data, using the same subject in both training and testing; (2) cross-subject with pseudo-transient data, using different subjects for training and testing; (3) cross-subject with real captured data, where we use real transient images even though our model is trained solely on synthetic data. We further conduct an ablation study to show the importance of each augmentation in our proposed pseudo-transient image synthesis procedure.
+
+Single-Subject Evaluation. We train our model for each subject. We use a 80-20 train-test data split. As shown in the quantitative results (Table 1 (left)), we can see our approach outperforms other baselines in terms of both pose-based
+
+metric (MPJPE) and physics-based metrics $(\mathbf{E}_{\mathrm{vel}}, \mathbf{A}_{\mathrm{accel}})$ . We also present qualitative results in Fig. 4 (a). As the white dotted rectangles show, V2V-PoseNet and our method without P2PSF Net are not able to reproduce finer motion like walking. Also, non-physics-based methods (i.e., all baselines except Ours w/o P2PSF) often cause the humanoid's foot to sink into the ground (highlighted by the yellow circles). In contrast, our method produces 3D human pose closer to the ground-truth than any other baseline.
+
+Cross-Subject Evaluation. To further evaluate the robustness and generalization of our method, we perform cross-subject experiments where we train our models on four subjects and test on the other subject. This is challenging since different people have unique action characteristics. As shown in Table 1(middle), our method once again outperforms other baselines in terms of MPJPE and $\mathbf{E}_{\mathrm{vel}}$ . For the smoothness metric $\mathbf{A}_{\mathrm{accel}}$ , V2V-PoseNet is quantitatively the best but this is because it mainly outputs a single pose only (indicated by the high MPJPE) and cannot estimate finer movement such as walking or raising hands, as shown in Fig. 4(b). As the qualitative results in Fig. 4(b) shows, our method with P2PSF Net produces poses closest to the ground truth, although it still fails during difficult sequences. Green arrows in Fig. 4(b) highlight large differences in the estimated pose compared to the ground truth.
+
+Table 1. Results on single (left), cross-subject (middle), and real captured data (right).
+
+| Method | Single Subject | Cross Subject | Real Data |
| MPJPE ↓ | Evel ↓ | Aaccl ↓ | MPJPE ↓ | Evel ↓ | Aaccl ↓ | Ekey ↓ |
| V2V-PoseNet [15] | 123.9 | 5.12 | 4.61 | 137.7 | 4.85 | 3.67 | 0.185 |
| PoseReg w/o P2PSF | 109.0 | 5.96 | 9.92 | 114.8 | 5.53 | 8.93 | 0.178 |
| PoseReg w/ P2PSF | 100.8 | 5.99 | 9.98 | 108.7 | 5.54 | 8.74 | 0.175 |
| Ours w/o P2PSF | 98.0 | 4.96 | 4.61 | 110.8 | 4.83 | 4.39 | 0.176 |
| Ours | 96.1 | 4.92 | 4.33 | 108.6 | 4.77 | 4.16 | 0.173 |
+
+Table 2. Ablation study results.
+
+| Method | Ekey ↓ |
| (a) w/o Poisson | 0.174 |
| (b) w/o temp. blur | 0.179 |
| (c) w/o temp. shift | 0.197 |
| (d) w/o temp. resampling | 0.185 |
| (e) All noise types | 0.173 |
+
+
+Figure 5. Qualitative results for real captured transient.
+
+Real Captured Cross-Subject Evaluation. To show our approach's ability to work with real-world data, we further test our method on the real captured transient image dataset described in Sec. 4.1, with our model trained with the same dataset with single subject experiment. As shown in Table 1 (Right), our approach produces more accurate poses than the baselines. We also present qualitative results in Fig. 5. As the figure shows, our method with P2PSF Net is better than the baselines in estimating human poses, including jumping (second from the left) and hand raising (sixth from the left, first from the right). Again, non-physics-based methods cause the humanoid's foot to sink into the ground (highlighted by the yellow circle). The green arrows once again identify large discrepancies with the ground truth.
+
+Ablative Analysis. As described in Sec. 3.2, our pseudotangent images model the characteristics of real captured transient measurements. This ablation test investigates the effect of the four operations used to minimize the domain
+
+gap between the pseudo and real transient images: (a) Poisson noise, (b) temporal blur, (c) temporal shift, and (d) temporal re-sampling. To investigate the importance of each of them, we train our model four times under the real captured cross-subject setting, and each time exclude one of the four operations. As indicated in Table 2, the temporal shifts are of critical importance for performance. Temporal re-sampling also improves accuracy. Removing Poisson noise and temporal blur independently does not severely affect performance. The combination of all four operations result in the best pose accuracy.
+
+# 6. Conclusion
+
+This work brings together a diverse set of sub-areas of computer vision, including state-of-the-art in computational imaging, physics-based vision, human pose estimation and physics-based deep reinforcement learning. As a result of this integration, we have shown for the first time that it is possible to take noisy real-world photon-level measurements of human motion and transform that information into a high-level understanding of human body dynamics aided by the power of data-driven machine learning.
+
+While the primary technical focus of this work is to better understand how visual information should be represented and processed to enable 3D pose estimation from NLOS imaging, the technology described in this work also has some practical applications for next generation autonomous systems. In the context of autonomous driving, the ability to detect and track people outside of the line of sight of its sensors can be instrumental in informing planning algorithms and preventing accidents. In the context of domestic robots, the ability to see around walls could help robots make more informed decisions when entering a room or avoiding collisions. Though more research is necessary to lower the financial cost and computational complexity of the NLOS imaging system described in this work, we believe that this preliminary work shows the remarkable potential for higher-level reasoning using NLOS imaging in the real-world.
+
+Acknowledgements. We thank Ioannis Gkioulekas for many helpful suggestions. M. Isogawa is supported by NTT Corporation. M. O'Toole is supported by the DARPA RE-VEAL program.
+
+# References
+
+[1] Fadel Adib, Chen-Yu Hsu, Hongzi Mao, Dina Katabi, and Frédo Durand. Capturing the human figure through a wall. ACM Transactions on Graphics (TOG), 34(6):1-13, 2015. 2, 3
+[2] Katherine L. Bouman, Vickie Ye, Adam B. Yedidia, Frédo Durand, Gregory W. Wornell, Antonio Torralba, and William T. Freeman. Turning corners into cameras: Principles and methods. In IEEE International Conference on Computer Vision (ICCV), pages 2289-2297, Oct 2017. 2, 3
+[3] Susan Chan, Ryan E. Warburton, Genevieve Gariepy, Jonathan Leach, and Daniele Faccio. Non-line-of-sight tracking of people at long range. Optics Express, 25(9):10109-10117, 2017. 2, 3
+[4] Ioannis Gkioulekas, Anat Levin, Frédo Durand, and Todd Zickler. Micron-scale Light Transport Decomposition Using Interferometry. ACM Transactions on Graphics (TOG), 34(4):37:1-37:14, 2015. 1
+[5] 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. 6
+[6] Felix Heide, Wolfgang Heidrich, and Matthias B Hullin. Diffuse mirrors: 3d reconstruction from diffuse indirect illumination using inexpensive time-of-flight sens. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3222-3229, 2014. 2, 3
+[7] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations (ICLR), 2015. 7
+[8] Jonathan Klein, Christoph Peters, Martin Laurenzis, and Matthias Hullin. Tracking objects outside the line of sight using 2d intensity images. Scientific Reports, 6(32491):32491:1-32491:9, 2016. 2, 3
+[9] Jonathan Klein, Christoph Peters, Martin Laurenzis, and Matthias Hullin. Non-line-of-sight mocap. In ACM SIGGRAPH 2017 Emerging Technologies, SIGGRAPH '17, pages 18:1-18:2. ACM, 2017. 2, 3
+[10] Tianhong Li, Lijie Fan, Mingmin Zhao, Yingcheng Liu, and Dina Katabi. Making the invisible visible: Action recognition through walls and occlusions. In arXiv preprint, 2019. 2, 3
+[11] David B. Lindell, Matthew O'Toole, and Gordon Wetzstein. Single-Photon 3D Imaging with Deep Sensor Fusion. ACM Transactions on Graphics (TOG, SIGGRAPH), (4), 2018. 3
+[12] David B. Lindell, Gordon Wetzstein, and Vladlen Koltun. Acoustic non-line-of-sight imaging. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 6780-6789, 2019. 2, 3
+[13] David B. Lindell, Gordon Wetzstein, and Matthew O'Toole. Wave-Based Non-Line-of-Sight Imaging using Fast f k Migration. ACM Transactions on Graphics (TOG), 38(4):116, 2019. 2, 3, 5, 6
+[14] Tomohiro Maeda, Yiqin Wang, Ramesh Raskar, and Achuta Kadambi. Thermal non-line-of-sight imaging. In IEEE International Conference on Computational Photography (ICCP), pages 1-11, 2019. 2, 3
+
+[15] Gyeongsik Moon, Juyong Chang, and Kyoung Mu Lee. V2v-posenet: Voxel-to-voxel prediction network for accurate 3d hand and human pose estimation from a single depth map. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 6, 8
+[16] Matthew O'Toole, Felix Heide, David B. Lindell, Kai Zang, Steven Diamond, and Gordon Wetzstein. Reconstructing Transient Images from Single-Photon Sensors. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2289–2297, 2017. 1, 4, 5
+[17] Matthew O'Toole, David B. Lindell, and Gordon Wetzstein. Confocal non-line-of-sight imaging based on the light-cone transform. Nature, 555(7696):338, 2018. 2, 3, 4
+[18] Xue Bin Peng, Pieter Abbeel, Sergey Levine, and Michiel van de Panne. Deepmimic: Example-guided deep reinforcement learning of physics-based character skills. ACM Transactions on Graphics (TOG), 37(4):143:1-143:14, July 2018, 2, 3
+[19] Xue Bin Peng, Glen Berseth, KangKang Yin, and Michiel van de Panne. Deeploco: Dynamic locomotion skills using hierarchical deep reinforcement learning. ACM Transactions on Graphics (TOG, SIGGRAPH 2017), 36(4), 2017. 3
+[20] Xue Bin Peng, Angjoo Kanazawa, Jitendra Malik, Pieter Abbeel, and Sergey Levine. Sfv: Reinforcement learning of physical skills from videos. ACM Transactions on Graphics (TOG), 37(6), Nov. 2018. 3
+[21] Albert Redo-Sanchez, Barmak Heshmat, Alireza Aghasi, Salman Naqvi, Mingjie Zhang, Justin Romberg, and Ramesh Raskar. Terahertz time-gated spectral imaging for content extraction through layered structures. Nature Communications, 7:12665, 2016. 2, 3
+[22] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In Medical Image Computing and Computer-Assisted Intervention (MICCAI), pages 234-241, 2015. 6
+[23] 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: A Large-Scale Hierarchical Image Database. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2009. 6
+[24] Guy Satat, Matthew Tancik, Otkrist Gupta, Barmak Heshmat, and Ramesh Raskar. Object classification through scattering media with deep learning on time resolved measurement. Optics Express, 25(15):17466-17479, Jul 2017. 3
+[25] John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. In arXiv preprint, volume abs/1707.06347, 2017. 4, 7
+[26] Jie Tan, Karen Liu, and Greg Turk. Stable proportional-derivative controllers. IEEE Computer Graphics and Applications, 31(4):34-44, 2011. 4, 6
+[27] Matthew Tancik, Guy Satat, and Ramesh Raskar. Flash photography for data-driven hidden scene recovery. In arXiv preprint, 2018. 2, 3
+[28] Emanuel Todorov, Tom Erez, and Yuval Tassa. Mujoco: A physics engine for model-based control. In Intelligent Robots and Systems (IROS), pages 5026-5033. IEEE, 2012. 2, 6
+
+[29] Chia-Yin Tsai, Aswin C. Sankaranarayanan, and Ioannis Gkioulekas. Beyond volumetric albedo - a surface optimization framework for non-line-of-sight imaging. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2, 3
+[30] Andreas Velten, Thomas Willwacher, Otkrist Gupta, Ashok Veeraraghavan, Moungi G Bawendi, and Ramesh Raskar. Recovering three-dimensional shape around a corner using ultrafast time-of-flight imaging. Nature Communications, 3:745, 2012. 1, 2, 3
+[31] Andreas Velten, Di Wu, Adrian Jarabo, Belen Masia, Christopher Barsi, Chinmaya Joshi, Everett Lawson, Moungi G Bawendi, Diego Gutierrez, and Ramesh Raskar. Femto-Photography: Capturing and Visualizing the Propagation of Light. ACM Transactions on Graphics (Proceedings of SIGGRAPH), 32(4), 2013. 1
+[32] Shumian Xin, Sotiris Nousias, Kiriakos N Kutulakos, Aswin C Sankaranarayanan, Srinivasa G Narasimhan, and Ioannis Gkioulekas. A Theory of Fermat Paths for Non-Line-of-Sight Shape Reconstruction. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 2, 3
+[33] Yuliang Xiu, Jiefeng Li, Haoyu Wang, Yinghong Fang, and Cewu Lu. Pose Flow: Efficient online pose tracking. In British Machine Vision Conference (BMVC), 2018. 6
+[34] Ye Yuan and Kris Kitani. 3D Ego-Pose Estimation via Imitation Learning. In European Conference on Computer Vision (ECCV), pages 763-778, 2018. 3
+[35] Ye Yuan and Kris Kitani. Ego-pose estimation and forecasting as real-time pd control. In IEEE International Conference on Computer Vision (ICCV), 2019. 2, 3, 4
+[36] 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 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 7356-7365, 2018. 2, 3
\ No newline at end of file
diff --git a/opticalnonlineofsightphysicsbased3dhumanposeestimation/images.zip b/opticalnonlineofsightphysicsbased3dhumanposeestimation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..33b332114e1e367e58a85a480107408fef5d48b0
--- /dev/null
+++ b/opticalnonlineofsightphysicsbased3dhumanposeestimation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0747399f05a6be8a71d42e567ee957e4194d485c8df3a1acdd79fee861d63860
+size 506398
diff --git a/opticalnonlineofsightphysicsbased3dhumanposeestimation/layout.json b/opticalnonlineofsightphysicsbased3dhumanposeestimation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..282088518c22bf7c7aa806607a9fb2f8e86a313b
--- /dev/null
+++ b/opticalnonlineofsightphysicsbased3dhumanposeestimation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1c0e653a266d97f49ee648217f5347f8777bc110cecee3194930b071a133ef56
+size 375388
diff --git a/optimalleastsquaressolutiontothehandeyecalibrationproblem/f21caca9-245d-421f-b636-efb5b6e081ef_content_list.json b/optimalleastsquaressolutiontothehandeyecalibrationproblem/f21caca9-245d-421f-b636-efb5b6e081ef_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..40abb6a27ab842ede96b61854ecded7e5ef00b98
--- /dev/null
+++ b/optimalleastsquaressolutiontothehandeyecalibrationproblem/f21caca9-245d-421f-b636-efb5b6e081ef_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c5e95eb0b33512901a810a3fc107533e6f51e48e627bfaf128278600048e27fc
+size 88694
diff --git a/optimalleastsquaressolutiontothehandeyecalibrationproblem/f21caca9-245d-421f-b636-efb5b6e081ef_model.json b/optimalleastsquaressolutiontothehandeyecalibrationproblem/f21caca9-245d-421f-b636-efb5b6e081ef_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..4edecbcbfd0bdbe866d1c4e12d2c8c38864ca422
--- /dev/null
+++ b/optimalleastsquaressolutiontothehandeyecalibrationproblem/f21caca9-245d-421f-b636-efb5b6e081ef_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:77b0bd493dd37bcce4e4cdfecb14da1d9980a978c7cc25c33ef7cbaad9fa3c88
+size 101076
diff --git a/optimalleastsquaressolutiontothehandeyecalibrationproblem/f21caca9-245d-421f-b636-efb5b6e081ef_origin.pdf b/optimalleastsquaressolutiontothehandeyecalibrationproblem/f21caca9-245d-421f-b636-efb5b6e081ef_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..9d23e250ca4eb9d065a20cceb734ed13cf242a53
--- /dev/null
+++ b/optimalleastsquaressolutiontothehandeyecalibrationproblem/f21caca9-245d-421f-b636-efb5b6e081ef_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:da11fdf9721f6700ad34e98878cc7fa6af9d56d5a5e17583ce3a1f2a6e04aade
+size 483088
diff --git a/optimalleastsquaressolutiontothehandeyecalibrationproblem/full.md b/optimalleastsquaressolutiontothehandeyecalibrationproblem/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..fb69a41f4505da6715ecdf3a0e6af089e17bae4a
--- /dev/null
+++ b/optimalleastsquaressolutiontothehandeyecalibrationproblem/full.md
@@ -0,0 +1,429 @@
+# Optimal least-squares solution to the hand-eye calibration problem
+
+Amit Dekel Linus Harenstam-Nielsen Sergio Caccamo Univrses
+
+{amit.dekel, linus.arenstam, sergio.caccamo}@univrses.com
+
+# Abstract
+
+We propose a least-squares formulation to the noisy hand-eye calibration problem using dual-quaternions, and introduce efficient algorithms to find the exact optimal solution, based on analytic properties of the problem, avoiding nonlinear optimization. We further present simple analytic approximate solutions which provide remarkably good estimations compared to the exact solution. In addition, we show how to generalize our solution to account for a given extrinsic prior in the cost function. To the best of our knowledge our algorithm is the most efficient approach to optimally solve the hand-eye calibration problem.
+
+# 1. Introduction
+
+Hand-eye calibration is a common problem in computer vision where one wishes to find the transformation between two rigidly attached frames. One popular formulation of the problem is in terms of the following equation
+
+$$
+\Delta C \circ X = X \circ \Delta H, \tag {1}
+$$
+
+where $\Delta C, \Delta H, X$ are $SE(3)$ elements and $\circ$ is the group multiplication operation [1]. $\Delta C$ and $\Delta H$ represent the sources relative poses (e.g. camera and robot hand) and $X$ is the rigid transformation between the two frames.
+
+In the literature one can find plenty of strategies to solve the problem for a given set of poses, as well as different representations and metrics being used, see [2, 3] for a recent review. Since the $SE(3)$ group is a semi-direct product of the special orthogonal group and the translational group $(SO(3) \ltimes T(3))$ , starting with (1), one usually ends up with two equations which we will refer to as the rotational equation (the quotient by the normal subgroup) and the translational equation (the normal subgroup). In practice, due to noisy data these equations cannot be satisfied exactly, and a numerical minimization approach or an approximating procedures are often used.
+
+Some authors approach the problem by solving the two equations separately by first minimizing a term related to the rotational equation and then substituting the solution in
+
+
+Figure 1: The hand-eye calibration problem for two rigidly attached cameras.
+
+the translational equation and minimizing this term in turn, where a closed form solution can be found [4, 5, 6]. Others try to minimize both terms simultaneously.
+
+In the later case, one approach is to perform a (constrained) nonlinear optimization procedure to minimize a cost function which takes into account the two terms (the rotational and translational parts) in some representation and specified metrics. This procedure is more costly in terms of computations, and requires a proper initial estimation in order to avoid local minima [6, 7, 8]. A linear simultaneous solution was presented in terms of dual-quaternions (or equivalently geometric algebra) [9], [10], which aims to solve (1) rather than a minimization problem, being valid for the noise free case, or requires filtering of the data.
+
+As mentioned above, one can use different metrics for the minimization problem, usually related to the chosen representations or noise model assumptions. For the rotational part, the common (non-equivalent [11]) choices are the chordal, quaternionic or the geodesic metrics. Similarly, one can use different minimization terms for the translational part. Furthermore, rotation and translation terms have different units, and a proper relative weighting should be used. A natural choice would be the covariance of the measurements, which is not always available.
+
+In this paper we address the problem of simultaneous minimization using the dual-quaternions (DQs) representation. The difficulties in solving the minimization problems analytically are due to nonlinear constraints. Using DQs,
+
+one can construct a quadratic cost function in terms of the DQ d.o.f. which are subject to nonlinear constraints, which inevitably make the problem highly nonlinear.
+
+Our approach is to add the constraints as two Lagrange multiplier terms and to study their analytic properties. The two Lagrange multipliers are related by a polynomial $p(\lambda, \mu)$ of 8th-order in $\mu$ and 4th-order in $\lambda$ , with some special properties. Over the reals, the polynomial defines four curves $\lambda_i(\mu)$ , and the optimal solution corresponds to the saddle point $d\lambda / d\mu = 0$ of the smallest $\lambda$ curve. Thus, our strategy is to efficiently find this special point in the Lagrange multipliers space. We propose several nonequivalent ways to find the optimal solutions as well as a hierarchy of analytic approximations which perform remarkably well.
+
+We show explicitly how to extend our algorithms when adding a prior to the problem, allowing for a maximum a posteriori (MAP) analysis, or regularization in degenerate cases (e.g. planar motion).
+
+We perform several experiments using synthetic and real data, and compare our algorithms to other available methods and to nonlinear optimization, showing that our algorithm indeed finds the optimal solution.
+
+The paper is organized as follows: we initially establish the connection between the $SE(3)$ group and unit DQ. Then we formulate the hand-eye calibration problem using DQs, and introduce the minimization problem. Afterwards we discuss the properties of the cost function and present algorithms for solving the problem. Next, we extend the formulation to include a prior term. In the final sections, we present our experiments and comparisons to other existing methods in the literature, along with discussion and conclusions. Some technical details and more detailed experiment results are relegated to appendices.
+
+# 2. SE(3) dual-quaternions representation
+
+In this paper we use the dual-quaternion representation of the $SE(3)$ group. The group elements are constructed using dual-quaternions which are a sum of an ordinary quaternion and a dual part which is an ordinary quaternion multiplied by the dual-number $\epsilon$ , where $\epsilon^2 = 0$ , see for example [12, 9].
+
+$SE(3)$ can be represented by unit DQ, $Q = q + \epsilon q'$ with $Q \otimes Q^* = 1$ , where $q, q' \in \mathbb{H}$ , $\otimes$ is the quaternionic product, and $*$ is the usual quaternion conjugation. As with ordinary quaternion double cover representation of representing $SO(3)$ , we identify $Q \sim -Q$ . The unit DQ constraint can be equivalently written as $|q| = 1$ and $q \cdot q' = 0$ where $q$ and $q'$ are treated as real four-dimensional vectors, and $\cdot$ is the dot product.
+
+The explicit, a rotation element is given by $R_{(\hat{k},\theta)} = (\hat{k}\sin \frac{\theta}{2},\cos \frac{\theta}{2})$ with $\hat{k}$ the rotation axis and $\theta$ the rotation angle, while a translation element by a vector $\vec{a}$ is given by $T_{\vec{a}} = (\vec{0},1) + \epsilon \frac{1}{2} (\vec{a},0)$ . Our notation $(\vec{q},q_0)$ refers to the
+
+imaginary and real parts of a quaternion respectively. Thus, a general $[R|T]$ transformation can be represented by
+
+$$
+Q = T \otimes R = R + \epsilon \frac {1}{2} (\vec {a}, 0) \otimes R \equiv q + \epsilon q ^ {\prime}. \tag {2}
+$$
+
+An equation concerning DQ can always be split in two equations, one for the "primal" part which is a pure quaternion, and one for the "dual" part which is the quaternion coefficient of $\epsilon$ .
+
+# 3. Hand-eye calibration problem in terms of dual-quaternions
+
+The hand-eye calibration problem can be formulated using the following set of equations
+
+$$
+\Delta C _ {i} \circ X = X \circ \Delta H _ {i}, \quad i = 1, \dots , N, \tag {3}
+$$
+
+where $\Delta C_i$ and $\Delta H_{i}$ are corresponding relative poses of two rigidly attached sources (see fig. 1), which from now on we shorten as $C_i$ and $H_{i}$ . Using the DQ representation the equation can be written as [9]
+
+$$
+Q _ {C _ {i}} \otimes Q _ {X} = Q _ {X} \otimes Q _ {H _ {i}}, \quad i = 1, \dots , N, \tag {4}
+$$
+
+and more explicitly as
+
+$$
+q _ {C _ {i}} \otimes q _ {X} = q _ {X} \otimes q _ {H _ {i}}, \quad i = 1, \dots , N,
+$$
+
+$$
+q _ {C _ {i}} \otimes q _ {X} ^ {\prime} + q _ {C _ {i}} ^ {\prime} \otimes q _ {X} = q _ {X} \otimes q _ {H _ {i}} ^ {\prime} + q _ {X} ^ {\prime} \otimes q _ {H _ {i}}, \tag {5}
+$$
+
+where we separated the primal and dual parts to two equations. Next we translate the quaternionic multiplications to matrix multiplications using $q \otimes p \equiv \mathbf{L}(q)p \equiv \mathbf{R}(p)q$ , where $q$ and $p$ are treated as real four-dimensional vectors on the RHS and $\mathbf{L}, \mathbf{R}$ are $4 \times 4$ matrices, and we get
+
+$$
+\left(\mathbf {L} \left(q _ {C _ {i}}\right) - \mathbf {R} \left(q _ {H _ {i}}\right)\right) q _ {X} = 0, \quad i = 1, \dots , N, \tag {6}
+$$
+
+$$
+\left(\mathbf {L} \left(q _ {C _ {i}} ^ {\prime}\right) - \mathbf {R} \left(q _ {H _ {i}} ^ {\prime}\right)\right) q _ {X} + \left(\mathbf {L} \left(q _ {C _ {i}}\right) - \mathbf {R} \left(q _ {H _ {i}}\right)\right) q _ {X} ^ {\prime} = 0.
+$$
+
+For simplicity of notation we define $A_{i}\equiv \mathbf{L}(q_{C_{i}}) - \mathbf{R}(q_{H_{i}})$ $B_{i}\equiv \mathbf{L}(q_{C_{i}}^{\prime}) - \mathbf{R}(q_{H_{i}}^{\prime})$ and $q\equiv q_X,q'\equiv q_X^{\prime}$ , so we have
+
+$$
+A _ {i} q = 0, \quad B _ {i} q + A _ {i} q ^ {\prime} = 0, \quad i = 1, \dots , N. \tag {7}
+$$
+
+As described in [9], in the noise free case where the equations can be solved exactly, the concatenated 8-dimensional vector $(q,q^{\prime})$ is in the null space of $\left( \begin{array}{cc}A & 0\\ B & A \end{array} \right)$ , where $A$ and $B$ are a stacks of $A_{i}$ and $B_{i}$ respectively. Moreover, the relative transformation can only change the screw axis from one frame to another so the angle and screw pitch d.o.f. are omitted in the treatment of [9], which also allows to reduce $A_{i}$ and $B_{i}$ to $3\times 4$ matrices instead of $4\times 4$ matrices.
+
+In our analysis we prefer not to cancel the invariant screw parameters since we generally expect noisy data, and these parameters act as sort of relevant weights for our data, thus, we work with the full $4 \times 4$ matrices.
+
+# 3.1. The minimization problem
+
+Our next step is to define the minimization problem. Generally, in the presence of noise, the RHS of (7) will differ from zero. We define our minimization problem as the simultaneous minimization of the squared $L_{2}$ norm of residuals of the two equations in (7), namely
+
+$$
+\arg \min _ {q, q ^ {\prime}} \sum_ {i = 1} ^ {N} \left(| A _ {i} q | ^ {2} + \alpha^ {2} | B _ {i} q + A _ {i} q ^ {\prime} | ^ {2}\right),
+$$
+
+subject to: $|q| = 1$ , $q\cdot q^{\prime} = 0$ (8)
+
+where we introduced a fixed dimensionful parameter $\alpha \in \mathbb{R}$ with $1/\text{length}$ units, which may account for the different units of the two terms. For simplicity we will treat $\alpha$ as a fixed tunable parameter. More generally one could use a covariance matrix inside the norm based on specific measurements without changing our analysis.
+
+Our choice for the cost function is natural given the dual-quaternion formulation, however one can find plenty of other non-equivalent choices in the literature using different metrics on $SE(3)$ , see [2] for detailed discussion.
+
+# 3.1.1 Minimization equations
+
+In this section we present the minimization problem in more details, and set up the notation for the rest of the paper. First, we express the cost function (8) using two Lagrange multipliers corresponding to the two constraints,
+
+$$
+\begin{array}{l} L = \sum_ {i} \left(| A _ {i} q | ^ {2} + \alpha^ {2} | B _ {i} q + A _ {i} q ^ {\prime} | ^ {2}\right) + \lambda (1 - q ^ {2}) - 2 \mu q \cdot q ^ {\prime} \\ = q ^ {T} S q + q ^ {\prime T} M q ^ {\prime} + 2 q ^ {T} W q ^ {\prime} + \lambda \left(1 - q ^ {2}\right) - 2 \mu q \cdot q ^ {\prime}, \tag {9} \\ \end{array}
+$$
+
+where $\lambda$ and $\mu$ are Lagrange multipliers, and $S\equiv A^T A+$ $\alpha^2 B^T B,M = \alpha^2 A^T A$ and $W\equiv \alpha^{2}B^{T}A$ . The minimiza-. tion equations yield
+
+$$
+\begin{array}{l} \frac {1}{2} \frac {\partial L}{\partial q} = S q + W q ^ {\prime} - \lambda q - \mu q ^ {\prime} = 0, \\ \frac {1}{2} \frac {\partial L}{\partial q ^ {\prime}} = M q ^ {\prime} + W ^ {T} q - \mu q = 0, \tag {10} \\ \end{array}
+$$
+
+along with the two constraint equations. These equations imply that $L = \lambda$ on the solution.
+
+Throughout the paper we assume that the matrix $M$ is full rank, which is the case of interest where the input data is noisy, otherwise one can solve analytically along the lines of [9]. Thus, we have
+
+$$
+q ^ {\prime} = M ^ {- 1} (\mu - W ^ {T}) q. \tag {11}
+$$
+
+Plugging $q^{\prime}$ in the first equation yields
+
+$$
+Z (\mu) q = \left(Z _ {0} + \mu Z _ {1} - \mu^ {2} Z _ {2}\right) q = \lambda q, \tag {12}
+$$
+
+where we introduce the notation
+
+$$
+\begin{array}{l} Z _ {0} \equiv S - W M ^ {- 1} W ^ {T}, \quad Z _ {1} \equiv W M ^ {- 1} + M ^ {- 1} W ^ {T}, \\ Z _ {2} \equiv M ^ {- 1}. \tag {13} \\ \end{array}
+$$
+
+The first constraint equations $|q|^2 = 1$ can be trivially satisfied by normalizing the solution, while the second constraint $q \cdot q' = 0$ implies that
+
+$$
+\mu = \frac {1}{2} \frac {q ^ {T} Z _ {1} q}{q ^ {T} Z _ {2} q}. \tag {14}
+$$
+
+While we can easily solve (12) as an eigenvalue problem for a given $\mu$ , (14) will generally not be satisfied. Unfortunately plugging (14) in (12) results in a highly non-linear problem.
+
+# 3.1.2 Properties of the minimization equations
+
+In order to solve the problem it is useful to notice some properties of (12) and (14). By construction, the matrix $Z(\mu)$ is real and symmetric for any real $\mu$ , so its eigenvalues are real. We further notice that $Z_{2}$ is positive semi-definite (since it is the inverse of $A^T A$ ) and so is $Z_0^1$ .
+
+Considering these properties, the eigenvalue curves $\lambda_{i}(\mu)$ (each of the four roots ordered by their value) in (12) generally should not intersect as we change $\mu$ , as a consequence of the von Neumann-Wigner theorem [13], [14].
+
+A useful way to think of the problem is in terms of the Lagrange multipliers parameter space, given by a real algebraic curve defined by (12),
+
+$$
+p (\lambda , \mu) = \det (Z (\mu) - \lambda) = \sum_ {m = 0} ^ {4} \lambda^ {m} c _ {8 - 2 m} (\mu) = 0, \tag {15}
+$$
+
+which is a 4-th degree polynomial in $\lambda$ and 8-th degree in $\mu$ , and $c_{n}(\mu)$ is an n-th degree real polynomial in $\mu$ (see figure 2). The functions $\lambda_{i}(\mu)$ can be found analytically, but their explicit expressions are not very illuminating.
+
+The constraint $q(\mu)\cdot q'(\mu) = 0$ dictates which points on the curves $\lambda_{i}(\mu)$ correspond to the solution. A key observation is that these are the extrema points of $\lambda_{i}(\mu)$ . To show this we use the fact that $\lambda = q^{T}Z(\mu)q$ , so
+
+$$
+\begin{array}{l} \left. \frac {\partial \lambda}{\partial \mu} \right| _ {\text {s o l}} = 2 \dot {q} ^ {T} Z (\mu) q + q ^ {T} \dot {Z} (\mu) q \tag {16} \\ = 2 \lambda \dot {q} ^ {T} q - 2 q ^ {T} M ^ {- 1} (\mu - W ^ {T}) q = - 2 q ^ {T} q ^ {\prime}, \\ \end{array}
+$$
+
+where we used (12) so we are on the solution, and $q^2 = 1$ which implies $\dot{q}^T q = 0$ , and a dot denotes a $\mu$ derivative.
+
+Thus, one can solve the problem by finding the extrema points of $\lambda (\mu)$ , which is equivalent to finding the real intersection points of the polynomials $p(\lambda ,\mu)$ and $\partial_{\mu}p(\lambda ,\mu)$ , which in turn is equivalent to finding the multiplicities of the 8-th degree polynomial in $\mu$ , as a function of its $\lambda$ dependent coefficients. In either case, this is equivalent to the vanishing of the determinant of the Sylvester matrix (the resultant) of the two polynomials $p(\lambda ,\mu)$ and $\partial_{\mu}p(\lambda ,\mu)$ w.r.t. $\lambda$ or $\mu$ . In both cases the result is a 28-th degree polynomial in one variable. Thus, the hand-eye calibration problem can be optimally solved by finding the smallest real positive $\lambda$ root of this polynomial.
+
+However, considering further properties of the problem allows to find the solution in more efficient ways. We notice that for large $|\mu|$ (12) and (11) become
+
+$$
+- \mu^ {2} Z _ {2} q \simeq \lambda q, \quad q ^ {\prime} \simeq \mu Z _ {2} q, \tag {17}
+$$
+
+so $\lambda_i(|\mu|) \simeq -\mu^2\xi_i$ where $\xi_i \geq 0$ are eigenvalues of $Z_2$ . Similarly, $Z(\mu = 0) = Z_0$ which is PSD, so $\lambda_i(\mu = 0) \geq 0$ .
+
+Combining these two observations together with the von Neumann-Wigner non-crossing theorem, each of the four eigenvalues $\lambda_{i}(\mu)$ must cross the $\mu$ axis at least twice. However, the number of solutions to $Z(\mu)q = 0$ in terms of $\mu$ is at most eight, so we conclude that every eigenvalue $\lambda_{i}(\mu)$ crosses the $\mu$ axis exactly twice, say at $\mu_{1} < 0 < \mu_{2}$ , and then goes asymptotically quadratically to $-\infty$ for $\mu \gg \mu_{2}$ and $\mu \ll \mu_{1}$ (there could be cases where the two points unite and we get one solution at $\mu = 0$ , which corresponds to the noise free case).
+
+Next, we change our point of view and consider $\mu (\lambda)$ . We already established that the number of real solutions to $\mu (\lambda = 0)$ must be eight, which is the maximum number of solutions. As we increase $\lambda$ , the number of real solutions can either stay constant or drop by an even integer number3. The first jump from eight to six solutions corresponds to the first maximum of $\lambda (\mu)$ , which is the minimal cost solution to our problem. Furthermore, this must correspond to the maximum of $\lambda_{i=0}(\mu)$ , since otherwise the number of real solutions to the $\mu$ polynomial will exceed the maximum number (eight). Multiple extrema are allowed only for higher $\lambda_{i > 0}$ functions, see 2b. Similarly we can look for root multiplicities in terms of the discriminant, since the extrema of $\lambda (\mu)$ correspond to such points.
+
+To summarize, we showed that the function $\lambda_0(\mu)$ , the smallest eigenvalue of (12), has one positive maximum, and asymptotically decays quadratically in $\mu$ . Finding the optimal solution is equivalent to finding the maximum of this function which is a convex problem.
+
+
+(a) Typical $\lambda (\mu)$
+
+
+(b) Less typical $\lambda (\mu)$
+
+
+(c) Less typical $\lambda (\mu)$ (zoomed)
+Figure 2: Lagrange multipliers space. Subscripts in $\lambda_{i}(\mu)$ and $f_{i}(\mu)$ indicate the $i$ -th EV for a given $\mu$ in ascending order. The optimal $\mu$ is denoted by $\mu^{*}$ and the dashed black line. In (a) and (b) the optimal solution corresponds to the maximum of the blue line. In (b) the number of real roots starts at 8, reduce to 6, 4 and then grows to 6 and reduces to 4, 2 and finally to 0. We also see the level repulsion effect where the eigenvalues almost intersect but eventually repel each other, see (c). In (d) solution $\mu^{*}$ corresponds to the intersection of $f_{0}$ with the $\mu$ -axis (same data as in (a)).
+
+
+(d) Typical $f(\mu)$
+
+# 3.2. Solving the minimization problem
+
+Based on the discussion above, we introduce various strategies to solve the minimization equations, presenting both exact and approximate solution.
+
+# 3.2.1 Optimal 1D line search (DQOpt)
+
+This is the simplest algorithm we present which yields the optimal solution. We first define the function
+
+$$
+f _ {0} (\mu) \equiv q _ {0} (\mu) \cdot q _ {0} ^ {\prime} (\mu) = - \frac {1}{2} \frac {d \lambda_ {0} (\mu)}{d \mu}, \tag {18}
+$$
+
+where $q_{0}$ is the smallest eigenvalue of $Z(\mu)$ , and $q_{0}'$ is computed using (11). As explained above, this is a monotonic function with a unique root, see figure 2d. To find the optimal solution we first find the root of this function, $f_{0}(\mu_{*}) = 0$ , and solve for $q$ as the eigenvector corresponding to the smallest eigenvalue of $Z(\mu_{*})$ and for $q'$ using (11). Alternatively, one can look for the maximum of $\lambda_{0}(\mu)$ directly which correspond to the same solutions, see 2a.
+
+We further derived alternative algorithms to arrive at the
+
+optimal solution, again, using only a 1D line search based on resultants and roots counting. These algorithms yield the same optimal solution, but are slower to evaluate. Since they are conceptually very different and provide a different view on the problem we believe it is interesting to include them in this work. However, since we shall only use the above optimal solution throughout the paper we relegate their description to appendix B.
+
+# 3.2.2 Two steps (DQ2steps)
+
+The two steps approximation, solving first the rotation equation, takes a very simple form in our formulation. One first solves for $q$ for finding the eigenvector corresponding to the smallest eigenvalue in
+
+$$
+M q = \lambda_ {0} q, \tag {19}
+$$
+
+and the corresponding $q^{\prime}$ is given by
+
+$$
+q ^ {\prime} = M ^ {- 1} \left(\frac {1}{2} \frac {q ^ {T} Z _ {1} q}{q ^ {T} Z _ {2} q} - W ^ {T}\right) q. \tag {20}
+$$
+
+# 3.2.3 Convex relaxation (DQCovRlx)
+
+Here we approximate the solution while relaxing the $q \cdot q' = 0$ constraint, and then project the solution to the non-convex constraint space using (14), thus we solve
+
+$$
+Z _ {0} q = \lambda_ {0} q, \tag {21}
+$$
+
+and the corresponding $q^{\prime}$ is given by (20) again. We can also get a nice expression bounding the gap,
+
+$$
+\Delta \lambda = \lambda^ {c} - \lambda_ {0} = \frac {1}{4} \frac {\left(q ^ {T} Z _ {1} q\right) ^ {2}}{q ^ {T} Z _ {2} q}, \tag {22}
+$$
+
+where $\lambda^c$ is the constrained solution. Namely, the true cost for the non-convex problem, $\lambda^{*}$ , satisfies $\lambda_0\leq \lambda^*\leq \lambda^c$
+
+# 3.2.4 Second order approximation (DQ2ndOrd)
+
+Starting with the relaxed solution (21), corresponding to $\mu = 0$ (which is true in the noise free case), we can have an analytic expansion in small $\mu$ . A detailed derivation of a recursive formula for the dual-quaternion solution to any order in $\mu$ is given in appendix A. The resulting second order approximation for yields
+
+$$
+\mu_ {(2)} ^ {*} = \frac {1}{2} \frac {Z _ {1} ^ {0 0}}{Z _ {2} ^ {0 0} - \sum_ {a} \frac {(Z _ {1} ^ {a 0}) ^ {2}}{\lambda_ {0 a}}},
+$$
+
+$$
+\begin{array}{l} q _ {(2)} = q _ {0} + \mu_ {(2)} ^ {*} \sum_ {a} \frac {Z _ {1} ^ {a 0}}{\lambda_ {0 a}} q _ {a} + \mu_ {(2)} ^ {* 2} \left(- \frac {1}{2} q _ {0} \sum_ {a} \left(\frac {Z _ {1} ^ {a 0}}{\lambda_ {0 a}}\right) ^ {2} \right. \\ \left. + \sum_ {a} \frac {\sum_ {b} \frac {Z _ {1} ^ {b 0} Z _ {1} ^ {a b}}{\lambda_ {0 b}} - Z _ {2} ^ {a 0} - \frac {Z _ {1} ^ {0 0} Z _ {1} ^ {a 0}}{\lambda_ {0 a}}}{\lambda_ {0 a}} q _ {a}\right), \tag {23} \\ \end{array}
+$$
+
+where the $q$ 's and $\lambda$ 's are defined by $Z_{0}q_{a} = \lambda_{a}q_{a}$ . We also introduced the short-hand notation $Z_{i}^{ab} \equiv q_{a}^{T}Z_{i}q_{b}$ and $\lambda_{0a} \equiv \lambda_{0} - \lambda_{a}$ and all the sums are running over $a = 1,2,3$ . After normalizing $q_{(2)}$ we solve for $q'$ using (20).
+
+Since $\mu$ is not a dimensionless parameter, one might prefer to expand in $\lambda$ which is dimensionless. We can start with $\lambda_0 = 0$ which is the solution in the noise free case. However, this leads to an 8-th degree polynomial in $\mu$ when coming to solve (12) which complicates a bit the procedure. Instead, we can expand in $\lambda$ around the relaxed $(\mu = 0)$ solution, so $\lambda = \lambda_0 + \Delta \lambda$ and the expansion is in $\Delta \lambda$ , and $\lambda_0$ corresponds to the smallest eigenvalue of $Z_{0}$ . The second order expansions allowing to find $q$ is slightly more elaborated compared to the previous one and can be found in appendix A. Then as in the previous approximation we solve for $q^{\prime}$ using (20).
+
+The results of this expansion are comparable to the previous one in our experiments, though they are not equivalent (both giving very accurate results).
+
+# 3.2.5 Iterative solution (DQIter)
+
+Defining the function
+
+$$
+\tilde {\mu} (\mu) = \frac {1}{2} \frac {q (\mu) ^ {T} Z _ {1} q (\mu)}{q (\mu) ^ {T} Z _ {2} q (\mu)}, \tag {24}
+$$
+
+where $q(\mu)$ is the eigenvector corresponding to the smallest eigenvalue of (12), the solution to the problem is the fixed point, namely $\tilde{\mu} (\mu) = \mu$ . Since $\tilde{\mu} (\mu)$ is bounded as explained in the previous section, iteratively estimating $\tilde{\mu}$ and plugging the value back convergence to the solution. In practice this procedure converges very quickly, though it is unstable in the noise free case.
+
+# 3.3.Adding a prior
+
+The hand-eye calibration problem is not always well posed, for example in the case of planar motion some d.o.f. are not fixed, and might require a regularization term for a unique solution. Furthermore, constructing the problem from a statistical model perspective, as a MAP probability estimation requires a prior. Thus, it is useful to incorporate a prior term in our formulation.
+
+Let us assume we have some prior knowledge regarding the hand-eye calibration, namely that the unit dual-quaternion representing the calibration is close to some given $\hat{Q}$ . We define $Q = \hat{Q} \otimes \delta Q$ , such that $\delta Q = \delta q + \epsilon \delta q'$ is the deviation from the prior, which is expected to be small, namely $\delta Q \simeq 1$ , or equivalently $\delta q \simeq 1$ and $\delta q' \simeq 0$ . Thus, we introduce the prior by penalizing large $\delta Q$
+
+$$
+L _ {\text {p r i o r}} \left(q, q ^ {\prime}\right) = L \left(q, q ^ {\prime}\right) + a \left(1 - \delta q\right) ^ {2} + b \delta q ^ {\prime 2}, \tag {25}
+$$
+
+where $a, b > 0$ are constant weight parameters (notice that $q$ and $\delta q$ are not independent). The rotation term has a linear dependence on $\delta q$ . This term complicates our analysis,
+
+where the eigenvalue problem needs to be promoted to an $8 \times 8$ instead of the $4 \times 4$ problem we had before, and our matrices lose some of their nice properties. Nonetheless, this approach is valid and yields good results.
+
+However, we can avoid these issues by noting that $|\delta q| = 1$ , $\delta q \simeq 1$ is equivalent to the imaginary part being small. So we instead modify (25) to
+
+$$
+L _ {\text {p r i o r}} = L + a \delta q ^ {T} G \delta q + b \delta q ^ {\prime 2}, \quad G = \operatorname {d i a g} (1, 1, 1, 0). \tag {26}
+$$
+
+We can minimize this cost in the same way we minimize (9) by noting that
+
+$$
+\delta Q = \hat {Q} ^ {*} \otimes Q = \mathbf {L} (\hat {q} ^ {*}) q + \epsilon \left(\mathbf {L} \left(\hat {q} ^ {\prime *}\right) q + \mathbf {L} \left(\hat {q} ^ {*}\right) q ^ {\prime}\right). \tag {27}
+$$
+
+Thus, the two new terms are given by
+
+$$
+\begin{array}{l} \delta q ^ {T} G \delta q = q ^ {T} \mathbf {L} ^ {* T} G \mathbf {L} ^ {*} q, \\ \delta q ^ {\prime 2} = q ^ {T} \mathbf {L} ^ {\prime * T} \mathbf {L} ^ {\prime *} q + 2 q ^ {T} \mathbf {L} ^ {\prime * T} \mathbf {L} ^ {*} q ^ {\prime} + q ^ {\prime T} q ^ {\prime} \\ = \left| \hat {q} ^ {\prime} \right| ^ {2} q ^ {T} q + 2 q ^ {T} \tilde {W} q ^ {\prime} + q ^ {\prime T} q ^ {\prime}, \tag {28} \\ \end{array}
+$$
+
+where $\tilde{W} = -\tilde{W}^T = \mathbf{L}'^{*T}\mathbf{L}^* = \mathbf{L}(\hat{t})$ . Because of our constraints, the term $|\hat{q} '|^2 q^T q$ is a constant which does not change the cost function, so we can ignore it (notice that by doing that the cost function is not guaranteed to be positive anymore, but is bounded from below by $-b|\hat{q} '|^2$ ). Thus, we can solve (26) in the same way as (9) by identifying
+
+$$
+S \rightarrow S + a \mathbf {L} ^ {* T} G \mathbf {L} ^ {*},
+$$
+
+$$
+W \rightarrow W + b \tilde {W},
+$$
+
+$$
+M \rightarrow M + b \mathbf {1} _ {4 \times 4}. \tag {29}
+$$
+
+Notice that these modifications to (9) do not change the matrix properties discussed above regarding semi-positive definiteness and symmetries.
+
+# 4. Experiments
+
+In this work we perform two kinds of experiments. First we compare our optimal algorithm results with a nonlinear optimization implementation to show that our algorithm results in the optimal solution. Afterwards we compare the performance of our algorithms with other algorithms, on real and synthetic datasets.
+
+Throughout this section we use the algorithms abbreviations introduced in sec. 3, with the addition of Dan [9], as well as ChVecOpt and QuatVecOpt which minimize
+
+$$
+\begin{array}{l} \sum_ {i} \left(\left| R _ {C} ^ {i} R - R R _ {H} ^ {i} \right| ^ {2} + \alpha^ {2} \right\rvert \left(R _ {C} ^ {i} - 1\right) T - R T _ {H} ^ {i} + T _ {C} ^ {i} \left| ^ {2}\right), \\ \sum_ {i} \left(| q _ {C} ^ {i} q - q q _ {H} ^ {i} | ^ {2} + \alpha^ {2} | \left(R _ {C} ^ {i} - 1\right) T - R T _ {H} ^ {i} + T _ {C} ^ {i} | ^ {2}\right) \tag {30} \\ \end{array}
+$$
+
+w.r.t. $R, T$ and $q, T$ using nonlinear optimization respectively. Finally, DQNLOpt and DQNLOptRnd represent nonlinear optimization of our cost function (9) initialized with DQOpt and randomly respectively.
+
+All the algorithms are implemented using python with numpy and scipy optimize packages for 1D root finding.
+
+# 4.1. Synthetic experiments
+
+Our synthetic dataset consists of three scenarios:
+
+- Random - uniformly sampled from $SO(3) \times E(3)$ .
+- Line - straight motion + small 3d perturbations.
+- Circle - 2d circular motion + small 3d perturbations.
+
+The relative poses are related by the extrinsic transformation with addition of noise. For the translations we use multivariate Gaussian noise, while for the rotations we use a uniform distribution on $S^2$ for the axis and a Gaussian distribution for the angle (more details can be found in appendix D).
+
+# 4.2. Real data experiments
+
+We recorded poses from two rigidly attached ZED cameras running the built-in visual odometry. The cameras were moved by hand, creating a general 3d motion scenario and three approximately planar scenarios: general, straight, and circular. The collected data is significantly noisy due to the inaccuracy of the tracking algorithm and time synchronization issues. More details on the data acquisition process and pre-filtering can be found in appendix D.
+
+# 4.3. Weighting factor
+
+The proper choice of the weighting factor $\alpha$ , which was introduced in sec. 3.1, depends on the noise model. In order to have a fair comparison we add the $\alpha$ parameter to all the algorithm implementations, see (30), and by scaling the translation part by $\alpha$ for Dan. We introduce $\alpha_{\mathrm{best}}$ for rotation and translation, which are the values that give the best results in terms of the rotation and translation mean error respectively w.r.t. the ground-truth. Note that these values are not necessarily the same for all algorithms and even for the same dataset. In this way we treat all the algorithms in a fair way in contrast to setting one value which might benefit certain algorithms more than others.
+
+| Relative cost difference alg=DQOpt
+alg+DQOpt |
| alg | mean | std | min | max |
| DQNLOpt | 6.3 × 10-18 | 5.8 × 10-16 | -3.0 × 10-15 | 2.8 × 10-15 |
| DQNLOptRnd | 6.8 × 10-2 | 1 × 2.1-1 | 4.3 × 10-12 | 8.9 × 10-1 |
| DQ2ndOrd | 6.6 × 10-10 | 5.4 × 10-9 | -2.3 × 10-15 | 1.3 × 10-7 |
| DQConvRlx | 2.7 × 10-5 | 7.0 × 10-5 | 2.15 × 10-12 | 5.3 × 10-4 |
| DQ2Steps | 8.4 × 10-3 | 1.6 × 10-2 | 2.4 × 10-5 | 9.7 × 10-2 |
+
+| Timing in μsec |
| alg | mean | std | min | max |
| DQOpt | 299 | 92 | 158 | 1199 |
| DQ2ndOrd | 155 | 53 | 98 | 818 |
| Dan | 92 | 33 | 61 | 1200 |
| DQConvRlx | 77 | 36 | 43 | 896 |
| DQ2Steps | 63 | 23 | 42 | 1242 |
+
+Table 1: Upper table: Results for the (signed) relative difference (averaged over 2450 real data runs) between DQOpt and our other algorithms. Positive values imply that the competing algorithm has a higher cost function. Lower table: Algorithm's timing averaged over 24500 real data runs.
+
+
+Figure 3: Synthetic experiments. We compare between Dan and DQOpt on the three different motions by showing the error response of the solvers when the relative poses are subject to increasing rotational and translational noise (sec. 4.1). The heat maps show the mean ratio (60 iterations) of the error responses (first row - rotation, second row - translation). A blue (red) color indicates that DQOpt has $e^{value}$ times lower (higher) error compared to Dan. It is possible to notice how DQOpt dramatically outperform Dan on degenerate motions (linear and circular). For the 3D case (column 3) both DQOpt and Dan show high accuracy (see table 2) and the error ratio loses its significance (i.e. they both perform well). In the last column, we compare the two solvers for a $\alpha = 1$ .
+
+# 4.4. Verifying optimality
+
+In order to verify that our algorithm finds the optimal solution we compare its cost with the cost of a nonlinear optimization implementation (using scipy's least_squares), designed to minimize the same cost function. When running the nonlinear optimizer we initialized it both with our solution and randomly to allow a search for a different minimum in case our algorithm ended up in a local minimum. In order for our algorithm to be optimal, the nonlinear optimizer should not change the solution when initialized with our solution, and might find higher cost solutions when initialized randomly. The results are summarized in table 1, where our algorithm always returns a lower cost up to numerical precision. We further compare with our approximate methods to show how close they get to the global minimum.
+
+# 4.5. Timing
+
+We compare the run time of our optimal solution implementation with the approximate solutions and Dan [9], which serves as a benchmark, as it is well known to be very efficient. The results are shown in lower table 1, ordered by the mean run time. Our optimal algorithm is found to be $\times 3$ slower than Dan. Two of the approximate algorithms are a bit faster, while approximating very well the optimal solution, see upper table 1. The nonlinear optimization algorithms are much slower, but we do not report their performance since we did not optimize their implementation.
+
+# 5. Conclusions
+
+In this paper we introduced a novel approach to find an optimal solution to the hand-eye calibration problem, based on a dual-quaternions formulation. We showed that our algorithm is guaranteed to find the global minimum by only using a 1D line search of a convex function. This provides a big advantage over nonlinear optimization methods which are less efficient and are sensitive to local minima.
+
+We further introduced a hierarchy of efficient analytic approximate solutions which provide remarkably close approximations to the optimal solution. We showed that our optimal solution is very efficient being only 3 times slower than the analytic solution by Daniilidis [9], and that some of our approximation are faster while providing dramatically better estimations for ill-posed cases (comparable with the optimal solution).
+
+We compared the performance of our algorithms with the well known analytic solution by Daniilidis and nonlinear optimization of other common formulations of the problem with different cost functions, using real and synthetic noisy datasets. We find that all the methods which provide an optimal solution are comparable in terms of accuracy, see table 2. However, for the real data we find that our methods consistently obtain slightly lower median errors in terms of both rotations and translations. The two-steps method degrades in accuracy for almost planar motions due to the ill-posedness of the rotation equation. Daniilidis's algorithm which does
+
+| α | Algorithm | 3d motion | Rotation | Planar | Linear |
| εr(deg) | εt(cm) | α | εr(deg) | εt(cm) | α | εr(deg) | εt(cm) | α | εr(deg) | εt(cm) | α |
| best rotation α | DQOpt | 2.03±0.73 | 5.32±1.95 | 1.47 | 6.91±5.45 | 5.05±3.08 | 0.20 | 2.55±0.44 | 17.7±31.4 | 0.37 | 2.89±0.22 | 26.3±10.5 | 1.14 |
| 0.60 | 1.39 | | | | | 0.41 | 9.61 | | 0.17 | 9.03 | |
| DQ2ndOrd | 2.03±0.73 | 5.32±1.95 | 1.47 | 6.91±5.45 | 5.05±3.08 | 0.20 | 2.55±0.44 | 17.7±31.4 | 0.37 | 2.89±0.22 | 26.3±10.5 | 1.1 |
| 0.60 | 1.39 | | | | | 0.41 | 9.61 | | 0.17 | 9.03 | |
| DQConvRlx | 2.00±0.76 | 5.32±1.95 | 1.47 | 6.95±5.39 | 5.05±3.10 | 0.20 | 2.53±0.77 | 17.2±27.3 | 0.17 | 2.89±0.23 | 25.9±10.8 | 1.04 |
| 0.58 | 1.40 | | | | | 0.51 | 9.64 | | 0.17 | 9.01 | |
| DQ2Steps | 3.26±1.24 | 5.27±2.05 | - | 17.0±13.2 | 7.59±4.12 | - | 7.17±6.77 | 19.5±23.1 | - | 9.46±8.92 | 43.9±45.8 | - |
| 0.99 | 1.52 | | | | | 3.75 | 10.1 | | 3.20 | 17.4 | |
| Dan [9] | 2.00±0.75 | 5.45±2.14 | 1.47 | 11.4±9.91 | 27.4±73.5 | 17.8 | 4.01±4.20 | 565.±1132 | 1.90 | 18.3±26.5 | 5801±4347 | 2.26 |
| 0.60 | 1.54 | | | | | 1.20 | 336. | | 10.7 | 2592 | 2.26 |
| ChVecOpt | 2.08±0.74 | 5.96±1.79 | 2.47 | 7.22±5.00 | 28.0±18.0 | 0.31 | 2.75±0.44 | 45.3±22.4 | 4.13 | 2.95±0.25 | 39.6±23.6 | 1.47 |
| 0.63 | 1.55 | | | | | 0.44 | 22.1 | | 0.19 | 15.9 | 1.47 |
| QuatVecOpt | 2.04±0.81 | 5.71±2.06 | 0.81 | 7.37±5.05 | 16.9±11.0 | 0.12 | 2.69±0.37 | 45.8±23.0 | 1.00 | 2.95±0.27 | 38.8±25.8 | 0.48 |
| best translation α | DQOpt | 3.21±1.16 | 5.26±1.99 | 0.03 | 7.75±5.27 | 5.31±2.77 | 0.22 | 3.84±2.92 | 18.5±21.1 | 0.05 | 3.37±0.35 | 23.4±10.4 | 17.8 |
| 0.99 | 1.46 | | | | | 1.80 | 10.3 | | 0.29 | 7.77 | |
| DQ2ndOrd | 3.21±1.16 | 5.26±1.99 | 0.03 | 7.75±5.27 | 5.31±2.77 | 0.22 | 3.84±2.92 | 18.5±21.1 | 0.05 | 3.37±0.35 | 23.4±10.4 | 17. |
| 0.99 | 1.46 | | | | | 1.80 | 10.3 | | 0.29 | 7.77 | |
| DQConvRlx | 3.21±1.16 | 5.26±1.99 | 0.03 | 7.72±5.38 | 5.34±2.74 | 0.22 | 3.83±2.89 | 18.4±21.1 | 0.05 | 3.35±0.36 | 23.3±10.3 | 17.8 |
| 0.99 | 1.46 | | | | | 1.82 | 10.3 | | 0.28 | 7.75 | |
| DQ2Steps | 3.26±1.24 | 5.27±2.05 | - | 17.0±13.2 | 7.59±4.12 | - | 7.17±6.77 | 19.5±23.1 | - | 9.46±8.92 | 43.9±45.8 | - |
| best translation α | Dan [9] | 2.36±0.94 | 5.14±2.07 | 3.19 | 10.7±11.2 | 20.2±55.2 | 32.5 | 4.19±5.62 | 270.±445 | 42.1 | 19.3±27.8 | 5208±3804 | 25.1 |
| 0.72 | 1.43 | | | | | 1.18 | 141. | | 11.5 | 2110 | 25.1 |
| ChVecOpt | 3.20±1.14 | 5.88±1.84 | 0.03 | 15.0±12.9 | 15.9±8.88 | 0.03 | 7.21±6.77 | 18.5±15.2 | 0.01 | 5.74±1.49 | 24.6±9.79 | 0.07 |
| 0.98 | 1.67 | | | | | 3.71 | 8.90 | | 1.59 | 7.43 | |
| QuatVecOpt | 3.17±1.14 | 5.69±1.93 | 0.13 | 9.82±8.03 | 14.8±9.11 | 0.06 | 6.45±5.12 | 19.9±13.5 | 0.01 | 4.94±1.47 | 24.2±8.55 | 0.07 |
| 1.09 | 1.65 | | | | | 3.29 | 8.62 | | 1.27 | 7.08 | |
+
+| α | Algorithm | Random | Circular | Linear |
| εr(deg) | εt(cm) | α | εr(deg) | εt(cm) | α | εr(deg) | εt(cm) | α |
| best rotation α | DQOpt | 0.0523±0.0162 | 0.1857±0.0487 | 0.26 | 6.29±2.17 | 42.5±8.92 | 0.57 | 8.31±2.63 | 45.3±8.94 | 0.62 |
| 0.0156 | 0.0563 | | 2.02 | 9.09 | | 2.42 | | |
| DQ2ndOrd | 0.0523±0.0162 | 0.1857±0.0487 | 0.26 | 6.29±2.17 | 42.5±8.92 | 0.57 | 8.31±2.63 | 45.3±8.94 | 0.62 |
| 0.0156 | 0.0553 | | 2.02 | 9.09 | | 2.42 | | |
| DQConvRlx | 0.0523±0.0162 | 0.1858±0.0487 | 0.26 | 6.25±2.22 | 42.5±8.91 | 0.57 | 8.25±2.66 | 45.3±8.98 | 0.62 |
| 0.0156 | 0.0564 | | 1.98 | 9.03 | | 2.34 | | |
| DQ2Steps | 0.0532±0.0171 | 0.1846±0.0591 | - | 9.02±3.24 | 42.9±8.91 | - | 12.9±4.30 | 46.2±8.47 | - |
| 0.0152 | 0.0526 | | 2.86 | 8.90 | | 3.72 | | |
| Dan [9] | 0.0524±0.0161 | 0.1889±0.0516 | 0.26 | 17.0±7.93 | 347.±139. | 42.1 | 242. | 29.9 | |
| 0.0157 | 0.0548 | | 5.73 | 98.8 | | 7.22 | | |
| ChVecOpt | 0.0491±0.0170 | 0.1783±0.0521 | 1.04 | 6.43±2.53 | 45.6±9.01 | 0.57 | 8.65±2.54 | 51.3±8.93 | 1.00 |
| 0.0140 | 0.0504 | | 1.93 | 9.04 | | 2.38 | | |
| QuatVecOpt | 0.0500±0.0148 | 0.1753±0.0503 | 0.26 | 6.60±2.16 | 45.7±9.52 | 0.26 | 8.31±2.85 | 50.5±9.07 | 0.34 |
| 0.0151 | 0.0508 | | 2.07 | 8.19 | | 2.47 | | |
| best translation α | DQOpt | 0.0527±0.0171 | 0.1786±0.0555 | 0.24 | 6.56±2.13 | 40.9±10.1 | 0.62 | 9.56±3.03 | 45.0±8.34 | 1.14 |
| 0.0148 | 0.0526 | | 2.32 | 8.18 | | 2.90 | | |
| DQ2ndOrd | 0.0527±0.0171 | 0.1786±0.0555 | 0.24 | 6.56±2.13 | 40.9±10.1 | 0.62 | 9.56±3.03 | 45.0±8.35 | 1.14 |
| 0.0148 | 0.0526 | | 2.32 | 8.18 | | 2.90 | | |
| DQConvRlx | 0.0527±0.0171 | 0.1786±0.0554 | 0.24 | 6.55±2.12 | 40.9±10.0 | 0.62 | 9.56±3.03 | 45.0±8.50 | 1.14 |
| 0.0148 | 0.0525 | | 2.40 | 8.21 | | 2.85 | | |
| DQ2Steps | 0.0532±0.0171 | 0.1846±0.0591 | - | 9.02±3.24 | 42.9±8.91 | - | 12.9±4.30 | 46.2±8.47 | - |
| 0.0152 | 0.0626 | | 2.86 | 8.90 | | 3.72 | | |
| Dan [9] | 0.0599±0.0213 | 0.1809±0.0555 | 0.96 | 17.0±7.93 | 347.±139. | 42.1 | 22.9±12.9 | 497.±263. | 21.2 |
| 0.0172 | 0.0532 | | 5.73 | 98.8 | | 7.52 | | |
| ChVecOpt | 0.0506±0.0154 | 0.1689±0.0558 | 0.96 | 8.77±3.47 | 30.9±11.4 | 0.02 | 4.53 | 34.0±10.5 | 0.01 |
| 0.0140 | 0.0480 | | 2.58 | 10.0 | | 3.76 | | |
| QuatVecOpt | 0.0514±0.0155 | 0.1719±0.0516 | 0.24 | 9.15±2.95 | 30.4±10.3 | 0.01 | 4.09 | 34.3±10.2 | 0.02 |
| 0.0146 | 0.0495 | | 2.99 | 8.93 | | 3.48 | | |
+
+Table 2: Real and synthetic data experiments. We show the median and distance to the $25\%$ and $75\%$ percentiles of the error distribution of the absolute rotation (geodesic) and translation (Euclidean) errors $(\varepsilon_r$ and $\varepsilon_t$ ). We separate the results according to different types of motions. The $\alpha$ values are picked to give either the minimal rotation or translation mean error. We highlight the best median results for each motion type and best rotation/translation $\alpha$ . Notice that it does not necessarily indicate significance, where often the different results are very close. DQ2Steps does not depend on $\alpha$ so its estimates are the same for best rotation/translation $\alpha$ .
+
+not solve an optimization problem shows a degradation in accuracy in the same scenarios.
+
+We also introduced a prior to our formulation which does not change the efficiency nor the optimality of our solution. The prior term can help for having maximum a posterior probability (MAP) analysis, or to regularize the estimation for ill-posed scenarios. Other generalizations, such as adding weights or a covariance, can be trivially incorporated to our formulation.
+
+Generally we find that optimal methods are more robust to almost planar motions, however the best performing method will depend on the trajectory and noise in the given problem which dictates the residuals distribution. Our method has the
+
+advantage of providing good results comparable with other optimal methods, while being very efficient.
+
+# Acknowledgments
+
+This research was done as part of a computer vision research project at Zenuity. The authors gratefully acknowledge funding and support from Zenuity. We would also like to thank Ernesto Nunes for useful discussions.
+
+# References
+
+[1] Yiu Cheung Shiu and Shaheen Ahmad. Calibration of wrist-mounted robotic sensors by solving homogeneous transform equations of the form $\mathrm{ax} = \mathrm{xb}$ . Robotics and Automation, IEEE Transactions on, 5(1):16-29, 1989.
+[2] Sandro Esquivel. Eye-to-eye calibration: extrinsic calibration of multi-camera systems using hand-eye calibration methods. 2015.
+[3] Mili Shah, Roger D. Eastman, and Tsai Hong. An overview of robot-sensor calibration methods for evaluation of perception systems. In Proceedings of the Workshop on Performance Metrics for Intelligent Systems, PerMIS '12, pages 15-20, New York, NY, USA, 2012. ACM.
+[4] Roger Y. Tsai and Reimer K. Lenz. A new technique for fully autonomous and efficient 3d robotics hand-eye calibration. In Proceedings of the 4th International Symposium on Robotics Research, pages 287-297, Cambridge, MA, USA, 1988. MIT Press.
+[5] Frank Chongwoo Park and Bryan J. Martin. Robot sensor calibration: solving $\text{ax} = \text{xb}$ on the euclidean group. IEEE Trans. Robotics and Automation, 10:717-721, 1994.
+[6] Radu Horaud and Fadi Dornaika. Hand-eye calibration. The international journal of robotics research, 14(3):195-210, 1995.
+[7] Jack C. K. Chou and M. Kamel. Finding the position and orientation of a sensor on a robot manipulator using quaternions. The International Journal of Robotics Research, 10(3):240-254, 1991.
+[8] Klaus H. Strobl and Gerd Hirzinger. Optimal hand-eye calibration. 2006 IEEE/RSJ International Conference on Intelligent Robots and Systems, pages 4647-4653, 2006.
+[9] Kostas Daniilidis. Hand-eye calibration using dual quaternions. I. J. Robotics Res., 18:286-298, 1999.
+[10] Eduardo Bayro-Corrochano, Kostas Daniilidis, and Gerald Sommer. Motor algebra for 3d kinematics: The case of the hand-eye calibration. Journal of Mathematical Imaging and Vision, 13(2):79-100, Oct 2000.
+[11] Richard Hartley, Jochen Trumpf, Yuchao Dai, and Hongdong Li. Rotation averaging. International Journal of Computer Vision, 103(3):267-305, Jul 2013.
+[12] Y. B. Jia. Dual quaternion. Com S 477/577, Fall 2015, Course handouts, 2013. URL http://web.cs.iastate.edu/cs577/. Date accessed: January 30, 2017., 2017.
+[13] J. von Neuman and E. Wigner. Über merkwürdige diskrete Eigenwerte. Über das Verhalten von Eigenwerten bei adiabatischen Prozessen. Physikalische Zeitschrift, 30:467-470, 1929.
+[14] Peter D. Lax. Linear Algebra and Its Applications. Wiley-Interscience, Hoboken, NJ, second edition, 2007.
+[15] James Arvo. Graphics gems iii. chapter Fast Random Rotation Matrices, pages 117-120. Academic Press Professional, Inc., San Diego, CA, USA, 1992.
\ No newline at end of file
diff --git a/optimalleastsquaressolutiontothehandeyecalibrationproblem/images.zip b/optimalleastsquaressolutiontothehandeyecalibrationproblem/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..23e1cbe2d2c5833272761a0677d1118758fb65a2
--- /dev/null
+++ b/optimalleastsquaressolutiontothehandeyecalibrationproblem/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bb51c57fd10f1961754a284cc1082034eec51ff0d71c99420d86b94da91e8451
+size 705622
diff --git a/optimalleastsquaressolutiontothehandeyecalibrationproblem/layout.json b/optimalleastsquaressolutiontothehandeyecalibrationproblem/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..85896f84989a001cbb020b82aa208b5104da1542
--- /dev/null
+++ b/optimalleastsquaressolutiontothehandeyecalibrationproblem/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:54e93882c66dba48af7473b5833844441861d051478664e74852b3112d804d71
+size 517570
diff --git a/optimizingrankbasedmetricswithblackboxdifferentiation/856d8bc6-03a7-4bba-9119-22f2c252dbc1_content_list.json b/optimizingrankbasedmetricswithblackboxdifferentiation/856d8bc6-03a7-4bba-9119-22f2c252dbc1_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..3a731fa19931492c26e94e8aa4aecb606a0b8574
--- /dev/null
+++ b/optimizingrankbasedmetricswithblackboxdifferentiation/856d8bc6-03a7-4bba-9119-22f2c252dbc1_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bb951a33ccf4524ccf294819d0d2cceb88e95f652fd0057d0258de96000d4116
+size 93893
diff --git a/optimizingrankbasedmetricswithblackboxdifferentiation/856d8bc6-03a7-4bba-9119-22f2c252dbc1_model.json b/optimizingrankbasedmetricswithblackboxdifferentiation/856d8bc6-03a7-4bba-9119-22f2c252dbc1_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..d6f29dab309684734d02d3db5fb3647b7b8f8fe3
--- /dev/null
+++ b/optimizingrankbasedmetricswithblackboxdifferentiation/856d8bc6-03a7-4bba-9119-22f2c252dbc1_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f7f7ccea3b5dcee2b05ab896964dea6f0a90819d39d2576268284b4b12530ec8
+size 117819
diff --git a/optimizingrankbasedmetricswithblackboxdifferentiation/856d8bc6-03a7-4bba-9119-22f2c252dbc1_origin.pdf b/optimizingrankbasedmetricswithblackboxdifferentiation/856d8bc6-03a7-4bba-9119-22f2c252dbc1_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..9beb552b5489f031b62290473939dffcd890d431
--- /dev/null
+++ b/optimizingrankbasedmetricswithblackboxdifferentiation/856d8bc6-03a7-4bba-9119-22f2c252dbc1_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3c49b40c725165f76317dba09b8932a78ae4ee56941a35796aadbc59d9a8d8c0
+size 438516
diff --git a/optimizingrankbasedmetricswithblackboxdifferentiation/full.md b/optimizingrankbasedmetricswithblackboxdifferentiation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..e9d8fc80e1d25a401874894f0d1d9edccd791018
--- /dev/null
+++ b/optimizingrankbasedmetricswithblackboxdifferentiation/full.md
@@ -0,0 +1,475 @@
+# Optimizing Rank-based Metrics with Blackbox Differentiation
+
+Michal Rolínek1*, Vít Musil2*, Anselm Paulus1, Marin Vlastelica1, Claudio Michaelis3, Georg Martius1
+
+$^{1}$ Max-Planck-Institute for Intelligent Systems, Tübingen, Germany
+
+2 Università degli Studi di Firenze, Italy
+
+3 University of Tübingen, Germany
+
+michal.rolinek@tuebingen.mpg.de
+
+# Abstract
+
+Rank-based metrics are some of the most widely used criteria for performance evaluation of computer vision models. Despite years of effort, direct optimization for these metrics remains a challenge due to their non-differentiable and nondecomposable nature. We present an efficient, theoretically sound, and general method for differentiating rank-based metrics with mini-batch gradient descent. In addition, we address optimization instability and sparsity of the supervision signal that both arise from using rank-based metrics as optimization targets. Resulting losses based on recall and Average Precision are applied to image retrieval and object detection tasks. We obtain performance that is competitive with state-of-the-art on standard image retrieval datasets and consistently improve performance of near state-of-the-art object detectors.
+
+# 1. Introduction
+
+Rank-based metrics are frequently used to evaluate performance on a wide variety of computer vision tasks. For example, in the case of image retrieval, these metrics are
+
+required since, at test-time, the models produce a ranking of images based on their relevance to a query. Rank-based metrics are also popular in classification tasks with unbalanced class distributions or multiple classes per image. One prominent example is object detection, where an average over multiple rank-based metrics is used for final evaluation. The most common metrics are recall [12], Average Precision $(AP)$ [68], Normalized Discounted Cumulative Gain (NDCG) [6], and the Spearman Coefficient [9].
+
+Directly optimizing for the rank-based metrics is inviting but also notoriously difficult due to the non-differentiable (piecewise constant) and non-decomposable nature of such metrics. A trivial solution is to use one of several popular surrogate functions such as 0-1 loss [33], the area under the ROC curve [1] or cross entropy. Many studies from the last two decades have addressed direct optimization with approaches ranging from histogram binning approximations [4, 20, 49], finite difference estimation [23], loss-augmented inference [40, 68], gradient approximation [56] all the way to using a large LSTM to fit the ranking operation [10].
+
+Despite the clear progress in direct optimization [4, 7, 40], these methods are notably omitted in the most publicly used implementation hubs for object detection [8, 25, 37, 64], and image retrieval [51]. The reasons include poor
+
+
+Figure 1: Differentiation of a piecewise constant rank-based loss. A two-dimensional section of the loss landscape is shown (left) along with two efficiently differentiable interpolations of increasing strengths (middle and right).
+
+
+
+
+
+scaling with sequence lengths, lack of publicly available implementations that are efficient on modern hardware, and fragility of the optimization itself.
+
+In a clean formulation, backpropagation through rank-based losses reduces to providing a meaningful gradient of the piecewise constant ranking function. This is an interpolation problem, rather than a gradient estimation problem (the true gradient is simply zero almost everywhere). Accordingly, the properties of the resulting interpolation (whose gradients are returned) should be of central focus, rather than the gradient itself.
+
+In this work, we interpolate the ranking function via blackbox backpropagation [60], a framework recently proposed in the context of combinatorial solvers. This framework is the first one to give mathematical guarantees on an interpolation scheme. It applies to piecewise constant functions that originate from minimizing a discrete objective function. To use this framework, we reduce the ranking function to a combinatorial optimization problem. In effect, we inherit two important features of [60]: mathematical guarantees and the ability to compute the gradient only with the use of a non-differentiable blackbox implementation of the ranking function. This allows using implementations of ranking functions that are already present in popular machine learning frameworks which results in straightforward implementation and significant practical speed-up. Finally, differentiating directly the ranking function gives additional flexibility for designing loss functions.
+
+Having a conceptually pure solution for the differentiation, we can then focus on another key aspect: sound loss design. To avoid ad-hoc modifications, we take a deeper look at the caveats of direct optimization for rank-based metrics. We offer multiple approaches for addressing these caveats, most notably we introduce margin-based versions of rank-based losses and mathematically derive a recall-based loss function that provides dense supervision.
+
+Experimental evaluation is carried out on image retrieval tasks where we optimize the recall-based loss and on object detection where we directly optimize mean Average Precision. On the retrieval experiments, we achieve performance that is on-par with state-of-the-art while using a simpler setup. On the detection tasks, we show consistent improvement over highly-optimized implementations that use the cross-entropy loss, while our loss is used in an out-of-the-box fashion. We release the code used for our experiments1.
+
+# 2. Related work
+
+Optimizing for rank-based metrics As rank-based evaluation metrics are now central to multiple research areas, their direct optimization has become of great interest to the community. Traditional approaches typically rely on
+
+different flavors of loss-augmented inference [38-40, 68], or gradient approximation [23, 56]. These approaches often require solving a combinatorial problem as a subroutine where the nature of the problem is dependent on the particular rank-based metric. Consequently, efficient algorithms for these subproblems were proposed [40, 56, 68].
+
+More recently, differentiable histogram-binning approximations [4, 20, 21, 49] have gained popularity as they offer a more flexible framework. Completely different techniques including learning a distribution over rankings [58], using a policy-gradient update rule [45], learning the sorting operation entirely with a deep LSTM [10] or perceptron-like error-driven updates have also been applied [7].
+
+Metric learning There is a great body of work on metric learning for retrieval tasks, where defining a suitable loss function plays an essential role. Bellet et al. [2] and Kulis et al. [30] provide a broader survey of metric learning techniques and applications. Approaches with local losses range from employing pair losses [3, 29], triplet losses [24, 52, 56] to quadruplet losses [31]. While the majority of these works focus on local, decomposable losses as above, multiple lines of work exist for directly optimizing global rank-based losses [10, 49, 58]. The importance of good batch sampling strategies is also well-known, and is the subject of multiple studies [12, 42, 52, 63], while others focus on generating novel training examples [41, 56, 70].
+
+Object detection Modern object detectors use a combination of different losses during training [14, 19, 32, 34, 47, 48]. While the biggest performance gains have originated from improved architectures [13, 19, 46, 48] and feature extractors [18, 71], some works focused on formulating better loss functions [15, 32, 50]. Since its introduction in the Pascal VOC object detection challenge [11] mean Average Precision (mAP) has become the main evaluation metric for detection benchmarks. Using the metric as a replacement for other less suitable objective functions has thus been studied in several works [7, 23, 45, 56].
+
+# 3. Background
+
+# 3.1. Rank-based metrics
+
+For a positive integer $n$ , we denote by $\Pi_n$ the set of all permutations of $\{1, \ldots, n\}$ . The rank of vector $\mathbf{y} = [y_1, \ldots, y_n] \in \mathbb{R}^n$ , denoted by $\mathbf{rk}(\mathbf{y})$ , is a permutation $\pi \in \Pi_n$ satisfying
+
+$$
+y _ {\pi^ {- 1} (1)} \geq y _ {\pi^ {- 1} (2)} \geq \dots \geq y _ {\pi^ {- 1} (n)}, \tag {1}
+$$
+
+i.e. sorting $\mathbf{y}$ . Note, that rank is not defined uniquely for those vectors for which any two components coincide. In the formal presentation, we reduce our attention to proper rankings in which ties do not occur.
+
+The rank $\mathbf{rk}$ of the $i$ -th element is one plus the number of members in the sequence exceeding its value, i.e.
+
+$$
+\mathbf {r} \mathbf {k} (\mathbf {y}) _ {i} = 1 + | \{j: y _ {j} > y _ {i} \} |. \tag {2}
+$$
+
+# 3.1.1 Average Precision
+
+For a fixed query, let $\mathbf{y} \in \mathbb{R}^n$ be a vector of relevance scores of $n$ examples. We denote by $\mathbf{y}^* \in \{0,1\}^n$ the vector of their ground truth labels (relevant/irrelevant) and by
+
+$$
+\operatorname {r e l} \left(\mathbf {y} ^ {*}\right) = \left\{i: y _ {i} ^ {*} = 1 \right\} \tag {3}
+$$
+
+the set of indices of the relevant examples. Then Average Precision is given by
+
+$$
+A P (\mathbf {y}, \mathbf {y} ^ {*}) = \frac {1}{| \operatorname {r e l} (\mathbf {y} ^ {*}) |} \sum_ {i \in \operatorname {r e l} (\mathbf {y} ^ {*})} \operatorname {P r e c} (i), \tag {4}
+$$
+
+where precision at $i$ is defined as
+
+$$
+\operatorname {P r e c} (i) = \frac {\left| \left\{j \in \operatorname {r e l} \left(\mathbf {y} ^ {*}\right): y _ {j} \geq y _ {i} \right\} \right|}{\mathbf {r k} (\mathbf {y}) _ {i}} \tag {5}
+$$
+
+and describes the ratio of relevant examples among the $i$ highest-scoring examples.
+
+In classification tasks, the dataset typically consists of annotated images. This we formalize as pairs $(x_{i},\mathbf{y}_{i}^{*})$ where $x_{i}$ is an input image and $\mathbf{y}_i^*$ is a binary class vector, where, for every $i$ , each $(\mathbf{y}_i^*)_c\in \{0,1\}$ denotes whether an image $x_{i}$ belongs to the class $c\in \mathcal{C}$ . Then, for each example $x_{i}$ the model provides a vector of suggested class-relevance scores $\mathbf{y}_i = \phi (x_i,\theta)$ , where $\theta$ are the parameters of the model.
+
+To evaluate mean Average Precision (mAP), we consider for each class $c \in \mathcal{C}$ the vector of scores $\mathbf{y}(c) = [(\mathbf{y}_i)_c]_i$ and labels $\mathbf{y}^{*}(c) = [(\mathbf{y}_{i}^{*})_{c}]_{i}$ . We then take the mean of Average Precisions over all the classes
+
+$$
+m A P = \frac {1}{| \mathcal {C} |} \sum_ {c \in \mathcal {C}} A P \left(\mathbf {y} (c), \mathbf {y} ^ {*} (c)\right). \tag {6}
+$$
+
+Note that $mAP \in [0,1]$ and that the highest score 1 corresponds to perfect score prediction in which all relevant examples precede all irrelevant examples.
+
+# 3.1.2 Recall
+
+Recall is a metric that is often used for information retrieval. Let again $\mathbf{y} \in \mathbb{R}^n$ and $\mathbf{y}^* \in \{0,1\}^n$ be the scores and the ground-truth labels for a given query over a dataset. For a positive integer $K$ , we set
+
+$$
+r @ K (\mathbf {y}, \mathbf {y} ^ {*}) = \left\{ \begin{array}{l l} 1 & \text {i f} \exists i \in \operatorname {r e l} \left(\mathbf {y} ^ {*}\right) \text {w i t h} \mathbf {r k} (\mathbf {y}) _ {i} \leq K \\ 0 & \text {o t h e r w i s e ,} \end{array} \right. \tag {7}
+$$
+
+where $\operatorname{rel}(\mathbf{y}^*)$ is given in Eq. 3.
+
+In a setup where each element $x_{i}$ of the dataset $\mathcal{D}$ is a possible query, we define the ground truth matrix as follows. We set $\mathbf{y}_i^* (j) = 1$ if $x_{j}$ belongs to the same class as the query $x_{i}$ , and zero otherwise. The scores suggested by the model are again denoted by $\mathbf{y}_i = [\phi (x_i,x_j,\theta)\colon j\in \mathcal{D}]$ .
+
+In order to evaluate the model over the whole dataset $\mathcal{D}$ we average $r@K$ over all the queries $x_{i}$ , namely
+
+$$
+R @ K = \frac {1}{| \mathcal {D} |} \sum_ {i \in \mathcal {D}} r @ K \left(\mathbf {y} _ {i}, \mathbf {y} _ {i} ^ {*}\right). \tag {8}
+$$
+
+Again, $R@K \in [0,1]$ for every $K$ . The highest score 1 means that a relevant example is always found among the top $K$ predictions.
+
+# 3.2. Blackbox differentiation of combinatorial solvers
+
+In order to differentiate the ranking function, we employ a method for efficient backpropagation through combinatorial solvers – recently proposed in [60]. It turns algorithms or solvers for problems like SHORTEST-PATH, TRAVELING-SALESMAN-PROBLEM, and various graph cuts into differentiable building blocks of neural network architectures.
+
+With minor simplifications, such solvers (e.g. for the MULTICUT problem) can be formalized as maps that take continuous input $\mathbf{y} \in \mathbb{R}^n$ (e.g. edge weights of a fixed graph) and return discrete output $\mathbf{s} \in S \subset \mathbb{R}^n$ (e.g. indicator vector of a subset of edges forming a cut) such that it minimizes a combinatorial objective expressed as an inner product $\mathbf{y} \cdot \mathbf{s}$ (e.g. the cost of the cut). Note that the notation differs from [60] ( $\mathbf{y}$ was $w$ and $\mathbf{s}$ was $y$ ). In short, a blackbox solver is
+
+$$
+\mathbf {y} \mapsto \mathbf {s} (\mathbf {y}) \quad \text {s u c h t h a t} \quad \mathbf {s} (\mathbf {y}) = \underset {\mathbf {s} \in S} {\arg \min } \mathbf {y} \cdot \mathbf {s}, \tag {9}
+$$
+
+where $S$ is the discrete set of admissible assignments (e.g. subsets of edges forming cuts).
+
+The key technical challenge when computing the backward pass is meaningful differentiation of the piecewise constant function $\mathbf{y} \to L(\mathbf{s}(\mathbf{y}))$ where $L$ is the final loss of the network. To that end, [60] constructs a family of continuous and (almost everywhere) differentiable functions parametrized by a single hyperparameter $\lambda > 0$ that controls the trade-off between "faithfulness to original function" and "informativeness of the gradient", see Fig. 1. For a fixed $\lambda$ the gradient of such an interpolation at point $\mathbf{s}$ is computed and passed further down the network (instead of the true zero gradient) as
+
+$$
+\frac {\partial L (\mathbf {s} (\mathbf {y}))}{\partial \mathbf {y}} := - \frac {1}{\lambda} (\mathbf {s} - \mathbf {s} _ {\lambda}) \tag {10}
+$$
+
+where $\mathbf{s}_{\lambda}$ is the output of the solver for a certain precisely constructed modification of the input. The modification is
+
+where the incoming gradient information $\partial L(\mathbf{s}(\mathbf{y})) / \partial \mathbf{s}(\mathbf{y})$ is used. For full details including the mathematical guarantees on the tightness of the interpolation, see [60].
+
+The main advantage of this method is that only a black-box implementation of the solver (i.e. of the forward pass) is required to compute the backward pass. This implies that powerful optimized solvers can be used instead of relying on suboptimal differentiable relaxations.
+
+# 4. Method
+
+# 4.1. Blackbox differentiation for ranking
+
+In order to apply blackbox differentiation method for ranking, we need to find a suitable combinatorial objective. Let $\mathbf{y} \in \mathbb{R}^n$ be a vector of $n$ real numbers (the scores) and let $\mathbf{rk} \in \Pi_n$ be their ranks. The connection between blackbox solver and ranking is captured in the following proposition.
+
+Proposition 1. In the notation set by Eqs. (1) and (2), we have
+
+$$
+\mathbf {r k} (\mathbf {y}) = \underset {\pi \in \Pi_ {n}} {\arg \min } \mathbf {y} \cdot \pi . \tag {11}
+$$
+
+In other words, the mapping $\mathbf{y} \rightarrow \mathbf{rk}(\mathbf{y})$ is a minimizer of a linear combinatorial objective just as Eq. 9 requires.
+
+The proof of Proposition 1 rests upon a classical rearrangement inequality [16, Theorem 368]. The following theorem is its weaker formulation that is sufficient for our purpose.
+
+Theorem 1 (Rearrangement inequality). For every positive integer $n$ , every choice of real numbers $y_1 \geq \dots \geq y_n$ and every permutation $\pi \in \Pi_n$ it is true that
+
+$$
+y _ {1} \cdot 1 + \dots + y _ {n} \cdot n \leq y _ {1} \pi (1) + \dots + y _ {n} \pi (n).
+$$
+
+Moreover, if $y_{1}, \ldots, y_{n}$ are distinct, equality occurs precisely for the identity permutation $\pi$ .
+
+Proof of Proposition 1. Let $\pi$ be the permutation that minimizes (11). This means that the value of the sum
+
+$$
+y _ {1} \pi (1) + \dots + y _ {n} \pi (n) \tag {12}
+$$
+
+is the lowest possible. Using the inverse permutation $\pi^{-1}$ (12) rewrites as
+
+$$
+y _ {\pi^ {- 1} (1)} \cdot 1 + \dots + y _ {\pi^ {- 1} (n)} \cdot n \tag {13}
+$$
+
+and therefore, being minimal in (13) makes (1) hold due to Theorem 1. This shows that $\pi = \mathbf{r}\mathbf{k}(y)$ .
+
+The resulting gradient computation is provided in Algorithm 1 and only takes a few lines of code. We call the method Ranking Metric Blackbox Optimization (RaMBO).
+
+Note again the presence of a blackbox ranking operation. In practical implementation, we can delegate
+
+| Method | forward + backward | general ranking |
| RaMBO | O(n log n) | ✓ |
| Mohapatra et al. [40] | O(n log p) | x |
| Chen et al. [7] | O(np) | ✓ |
| Yue et al. [68] | O(n2) | x |
| FastAP [4] | O((n+p)L) | ✓ |
| SoDeep [10] | O((n+p)h2) | ✓ |
+
+Table 1: Computational complexity of different approaches for differentiable ranking. The numbers of the negative and of the positive examples are denoted by $n$ and $p$ , respectively. For SoDeep, $h$ denotes the LSTM's hidden state size ( $h \approx n$ ) and for FastAP $L$ denotes the number of bins. RaMBO is the first method to directly differentiate general ranking with a truly sub-quadratic complexity.
+
+this to a built-in function of the employed framework (e.g. TORCH.ARGSORT). Consequently, we inherit the $O(n \log n)$ computational complexity as well as a fast vectorized implementation on a GPU. To our knowledge, the resulting algorithm is the first to have both truly subquadratic complexity (for both forward and backward pass) and to operate with a general ranking function as can be seen in Tab. 1 (not however that [40] have a lower complexity as they specialize on AP and not general ranking).
+
+Algorithm 1 RaMBO: Blackbox differentiation for ranking
+define Ranker as blackbox operation computing ranks
+function FORWARDPASS(y)
+ $\mathbf{rk}(\mathbf{y}) \coloneqq \mathbf{Ranker}(\mathbf{y})$
+save y and rk(y) for backward pass
+return rk(y)
+function BACKWARDPASS(dL/drk)
+load y and rk(y) from forward pass
+load hyperparameter λ
+ $\mathbf{y}_{\lambda} \coloneqq \mathbf{y} + \lambda \cdot \frac{\mathrm{d}L}{\mathrm{d}\mathbf{rk}}$ $\mathbf{rk}(\mathbf{y}_{\lambda}) \coloneqq \mathbf{Ranker}(\mathbf{y}_{\lambda})$
+return -1/λ [rk(y) - rk(yλ)]
+
+# 4.2. Caveats for sound loss design
+
+Is resolving the non-differentiability all that is needed for direct optimization? Unfortunately not. To obtain well-behaved loss functions, some delicate considerations need to be made. Below we list a few problems (P1)-(P3) that arise from direct optimization without further adjustments.
+
+(P1) Evaluation of rank-based metrics is typically carried out over the whole test set while direct optimization methods rely on mini-batch approximations. This, however, does not yield an unbiased gradient estimate. Particularly small mini-batch sizes result in optimizing a very poor
+
+
+Figure 2: Mini-batch estimation of mean Average Precision. The expected $mAP$ (i.e. the optimized loss) is an overly optimistic estimator of the true $mAP$ over the dataset; particularly for small batch sizes. The mean and standard deviations over sampled mini-batch estimates are displayed.
+Fig. 3. This also implicitly removes the destabilizing scale-invariance. Using notation as before, we modify the scores as
+
+approximation of $mAP$ , see Fig. 2.
+
+(P2) Rank-based metrics are brittle when many ties happen in the ranking. As an example, note that any rank-based metric attains all its values in the neighborhood of a dataset-wide tie. Additionally, once a positive example is rated higher than all negative examples even by the slightest difference, the metric gives no incentive for increasing the difference. This induces a high sensitivity to potential shifts in the statistics when switching to the test set. The need to pay special attention to ties was also noted in [4, 20].
+
+(P3) Some metrics give only sparse supervision. For example, the value of $r@K$ only improves if the highest-ranked positive example moves up the ranking, while the other positives have no incentive to do so. Similarly, Average Precision does not give the incentive to decrease the possibly high scores of negative examples, unless also some positive examples are present in the mini-batch. Since positive examples are typically rare, this can be problematic.
+
+# 4.3. Score memory
+
+In order to mitigate the negative impact of small batch sizes on approximating the dataset-wide loss (P1) we introduce a simple running memory. It stores the scores for elements of the last $\tau$ previous batches, thereby reducing the bias of the estimate. All entries are concatenated for loss evaluation, but the gradients only flow through the current batch. This is a simpler variant of "batch-extension" mechanisms introduced in [4, 49]. Since only the scores are stored, and not network parameters or the computational graph, this procedure has a minimal GPU memory footprint.
+
+# 4.4. Score margin
+
+Our remedy for brittleness around ties (P2) is inspired by the triplet loss [52]; we introduce a shift in the scores during training in order to induce a margin. In particular, we add a negative shift to the positively labeled scores and positive shift the negatively labeled scores as illustrated in
+
+
+Figure 3: Naive rank-based losses can collapse during optimization. Shifting the scores during training induces a margin and a suitable scale for the scores. Red lines indicate negative scores and green positive scores.
+
+$$
+\overleftrightarrow {\mathbf {y}} _ {i} = \left\{ \begin{array}{l l} y _ {i} + \frac {\alpha}{2} & \text {i f} y _ {i} ^ {*} = 0 \\ y _ {i} - \frac {\alpha}{2} & \text {i f} y _ {i} ^ {*} = 1 \end{array} \right. \tag {14}
+$$
+
+where $\alpha$ is the prescribed margin. In the implementation, we replace the ranking operation with $\mathbf{r}\mathbf{k}_{\alpha}$ given by
+
+$$
+\mathbf {r} \mathbf {k} _ {\alpha} (\mathbf {y}) = \mathbf {r} \mathbf {k} \left(\stackrel {\leftrightarrow} {\mathbf {y}}\right). \tag {15}
+$$
+
+# 4.5. Recall loss design
+
+Let $\mathbf{y}$ be scores and $\mathbf{y}^*$ the truth labels, as usual. As noted in (P3) the value of $r@K$ only depends on the highest scoring relevant element. We overcome the sparsity of the supervision by introducing a refined metric
+
+$$
+\widetilde {r} @ K (\mathbf {y}, \mathbf {y} ^ {*}) = \frac {\left| \left\{i \in \operatorname {r e l} \left(\mathbf {y} ^ {*}\right) : r _ {i} < K \right\} \right|}{\left| \operatorname {r e l} \left(\mathbf {y} ^ {*}\right) \right|}, \tag {16}
+$$
+
+where $\mathrm{rel}(\mathbf{y}^*)$ denotes the set of relevant elements (3) and $r_i$ stands for the number of irrelevant elements outrunning the $i$ -th element. Formally,
+
+$$
+r _ {i} = \mathbf {r} \mathbf {k} _ {\alpha} (\mathbf {y}) _ {i} - \mathbf {r} \mathbf {k} _ {\alpha} \left(\mathbf {y} ^ {+}\right) _ {i} \quad \text {f o r} i \in \operatorname {r e l} \left(\mathbf {y} ^ {*}\right), \tag {17}
+$$
+
+in which $\mathbf{rk}_{\alpha}(\mathbf{y}^{+})_{i}$ denotes the rank of the $i$ -th element only within the relevant ones. Note that $\widetilde{r}@\mathcal{K}$ depends on all the relevant elements as intended. We then define the loss at $K$ as
+
+$$
+L @ K \left(\mathbf {y}, \mathbf {y} ^ {*}\right) = 1 - \widetilde {r} @ K \left(\mathbf {y}, \mathbf {y} ^ {*}\right). \tag {18}
+$$
+
+Next, we choose a weighting $w_{K} \geq 0$ of these losses
+
+$$
+L _ {\text {r e c}} (\mathbf {y}, \mathbf {y} ^ {*}) = \sum_ {K = 1} ^ {\infty} w _ {K} L @ K (\mathbf {y}, \mathbf {y} ^ {*}), \tag {19}
+$$
+
+over values of $K$ .
+
+Proposition 2 (see the Supplementary material) computes a closed form of (19) for a given sequence of weights $w_{K}$ . Here, we exhibit closed-form solutions for two natural decreasing sequences of weights:
+
+$$
+L _ {\operatorname {r e c}} (\mathbf {y}, \mathbf {y} ^ {*}) = \left\{ \begin{array}{l l} \underset {i \in \operatorname {r e l} (\mathbf {y} ^ {*})} {\mathbb {E}} \ell \left(r _ {i}\right) & \text {i f} w _ {K} \approx \frac {1}{K} \\ \underset {i \in \operatorname {r e l} (\mathbf {y} ^ {*})} {\mathbb {E}} \ell \left(\ell \left(r _ {i}\right)\right) & \text {i f} w _ {K} \approx \frac {1}{K \log K}, \end{array} \right. \tag {20}
+$$
+
+where $\ell (k) = \log (1 + k)$
+
+This also gives a theoretical explanation why some previous works [7, 23] found it "beneficial" to optimize the logarithm of a ranking metric, rather than the metric itself. In our case, the log arises from the most natural weight decay $1 / K$ .
+
+# 4.6. Average Precision loss design
+
+Having differentiable ranking, the generic $AP$ does not require any further modifications. Indeed, for any relevant element index $i \in \mathrm{rel}(\mathbf{y}^*)$ , its precision obeys
+
+$$
+\operatorname {P r e c} (i) = \frac {\mathbf {r k} _ {\alpha} \left(\mathbf {y} ^ {+}\right) _ {i}}{\mathbf {r k} _ {\alpha} (\mathbf {y}) _ {i}} \tag {21}
+$$
+
+where $\mathbf{rk}(\mathbf{y}^{+})_{i}$ is the rank of the $i$ -th element within all the relevant ones. The $AP$ loss then reads
+
+$$
+L _ {A P} \left(\mathbf {y}, \mathbf {y} ^ {*}\right) = 1 - \underset {i \in \operatorname {r e l} \left(\mathbf {y} ^ {*}\right)} {\mathbb {E}} \operatorname {P r e c} (i). \tag {22}
+$$
+
+For calculating the mean Average Precision loss $L_{mAP}$ , we simply take the mean over the classes $\mathcal{C}$ .
+
+To alleviate the sparsity of supervision caused by rare positive examples (P3), we also consider the $AP$ loss across all the classes. More specifically, we treat the matrices $\mathbf{y}(c)$ and $\mathbf{y}^{*}(c)$ as concatenated vectors $\overline{\mathbf{y}}$ and $\overline{\mathbf{y}}^{*}$ , respectively, and set
+
+$$
+L _ {A P C} = L _ {A P} \left(\bar {\mathbf {y}}, \bar {\mathbf {y}} ^ {*}\right). \tag {23}
+$$
+
+This practice is consistent with [7].
+
+# 5. Experiments
+
+We evaluate the performance of RaMBO on object detection and several image retrieval benchmarks. The experiments demonstrate that our method for differentiating through $mAP$ and recall is generally on-par with the state-of-the-art results and yields in some cases better performance. We will release code upon publication. Throughout the experimental section, the numbers we report for RaMBO are averaged over three restarts.
+
+# 5.1. Image retrieval
+
+To evaluate the proposed Recall Loss (Eq. 20) derived from RaMBO we run experiments for image retrieval on the CUB-200-2011 [62], Stanford Online Products [55], and In-shop Clothes [35] benchmarks. We compare against a variety of methods from recent years, multiple of which achieve state-of-the-art performance. The best-performing methods are ABE-8 [27], FastAP [4], and Proxy NCA [41].
+
+Architecture For all experiments, we follow the most standard setup. We use a pretrained ResNet50 [18] in which we replace the final softmax layer with a fully connected embedding layer which produces a 512-dimensional vector
+
+
+Figure 4: Stanford Online Products image retrieval examples.
+
+for each batch element. We normalize each vector so that it represents a point on the unit sphere. The cosine similarities of all the distinct pairs of elements in the batch are then computed and the ground truth similarities are set to 1 for those elements belonging to the same class and 0 otherwise. The obvious similarity of each element with itself is disregarded. We compute the $L_{\mathrm{rec}}$ loss for each batch element with respect to all other batch elements using the similarities and average it to compute the final loss. Note that our method does not employ any sampling strategy for mining suitable pairs/tripllets from those present in a batch. It does, however, share a batch preparation strategy with [4] on two of the datasets.
+
+Parameters We use Adam optimizer [28] with an amplified learning rate for the embedding layer. We consistently set the batch size to 128 so that each experiment runs on a GPU with 16GB memory. Full details regarding training schedules and exact values of hyperparameters for the different datasets are in the Supplementary material.
+
+Datasets For data preparation, we resize images to $256 \times 256$ and randomly crop and flip them to $224 \times 224$ during training, using a single center crop on evaluation.
+
+We use the Stanford Online Products dataset consisting of 120,053 images with 22,634 classes crawled from药店. The classes are grouped into 12 superclasses (e.g. cup, bicycle) which are used for mini-batch preparation following the procedure proposed in [4]. We follow the evaluation protocol proposed in [55], using 59,551 images corresponding to 11,318 classes for training and 60,502 images corresponding to 11,316 classes for testing.
+
+The In-shop Clothes dataset consists of 54,642 images with 11,735 classes. The classes are grouped into 23 superclasses (e.g. MEN/Denim, WOMEN/Dresses), which we use for mini-batch preparation as before. We follow previous work by using 25,882 images corresponding to 3,997 classes for training and $14,218 + 12,612$ images corre
+
+| R@K | 1 | 10 | 100 | 1000 |
| Contrastive512G[42] | 42.0 | 58.2 | 73.8 | 89.1 |
| Triplet512G[42] | 42.1 | 63.5 | 82.5 | 94.8 |
| LiftedStruct512G[42] | 62.1 | 79.8 | 91.3 | 97.4 |
| Binomial Deviance512G[59] | 65.5 | 82.3 | 92.3 | 97.6 |
| Histogram Loss512G[59] | 63.9 | 81.7 | 92.2 | 97.7 |
| N-Pair-Loss512G[54] | 67.7 | 83.8 | 93.0 | 97.8 |
| Clustering64G[43] | 67.0 | 83.7 | 93.2 | - |
| HDC384G[67] | 69.5 | 84.4 | 92.8 | 97.7 |
| Angular Loss512G[61] | 70.9 | 85.0 | 93.5 | 98.0 |
| Margin128R50[63] | 72.7 | 86.2 | 93.8 | 98.0 |
| Proxy NCA64G[41] | 73.7 | - | - | - |
| A-BIER512G[44] | 74.2 | 86.9 | 94.0 | 97.8 |
| HTLG128[12] | 74.8 | 88.3 | 94.8 | 98.4 |
| ABE-8512G[27] | 76.3 | 88.4 | 94.8 | 98.2 |
| FastAP512R50[4] | 76.4 | 89.1 | 95.4 | 98.5 |
| RaMBO512R50log | 77.8 | 90.1 | 95.9 | 98.7 |
| RaMBO512R50log log | 78.6 | 90.5 | 96.0 | 98.7 |
+
+sponding to 3, 985 classes each for testing (split into a query + gallery set respectively). Given an image from the query set, we retrieve corresponding images from the gallery set.
+
+The CUB-200-2011 dataset consists of 11,788 images of 200 bird categories. Again we follow the evaluation protocol proposed in [55], using the first 100 classes consisting of 5,864 images for training and the remaining 100 classes with 5,924 images for testing.
+
+Results For all retrieval results in the tables we add the embedding dimension as a superscript and the backbone architecture as a subscript. The letters R, G, V represent ResNet [22], GoogLeNet [57], and VGG-16 [53], respectively. We report results for both RaMBO $\frac{512}{R50} \log$ and RaMBO $\frac{512}{R50} \log \log$ , the main difference being if the logarithm is applied once or twice to the rank in Eq. (20).
+
+On Stanford Online Products we report $R@K$ for $K \in \{1, 10, 100, 1000\}$ in Tab. 2. The fact that the dataset contains the highest number of classes seems to favor RaMBO, as it outperforms all other methods. Some example retrievals are presented in Fig. 4.
+
+On CUB-200-2011 we report $R@K$ for $K \in \{1, 2, 4, 8\}$ in Tab. 3. For fairness, we include the performance of Proxy NCA with a ResNet50 [18] backbone even though the results are only reported in an online implementation [51]. With this implementation Proxy NCA and RaMBO are the best-performing methods.
+
+Table 2: Comparison with the state-of-the-art on the Stanford Online Products [42]. On this dataset, with the highest number of classes in the test set, RaMBO gives better performance than other state-of-the-art methods.
+
+| R@K | 1 | 2 | 4 | 8 |
| Contrastive512G[42] | 26.4 | 37.7 | 49.8 | 62.3 |
| Triplet512G[42] | 36.1 | 48.6 | 59.3 | 70.0 |
| LiftedStruct512G[42] | 47.2 | 58.9 | 70.2 | 80.2 |
| Binomial Deviance512G[59] | 52.8 | 64.4 | 74.7 | 83.9 |
| Histogram Loss512G[59] | 50.3 | 61.9 | 72.6 | 82.4 |
| N-Pair-Loss64G[54] | 51.0 | 63.3 | 74.3 | 83.2 |
| Clustering64G[43] | 48.2 | 61.4 | 71.8 | 81.9 |
| Proxy NCA512G[41] | 49.2 | 61.9 | 67.9 | 72.4 |
| Smart Mining64G[17] | 49.8 | 62.3 | 74.1 | 83.3 |
| Margin128G[63] | 63.8 | 74.4 | 83.1 | 90.0 |
| HDC384G[67] | 53.6 | 65.7 | 77.0 | 85.6 |
| Angular Loss512G[61] | 54.7 | 66.3 | 76.0 | 83.9 |
| HTLG128[12] | 57.1 | 68.8 | 78.7 | 86.5 |
| A-BIER512G[44] | 57.5 | 68.7 | 78.3 | 86.2 |
| ABE-8512G[27] | 60.6 | 71.5 | 80.5 | 87.7 |
| Proxy NCA512R50[51] | 64.0 | 75.4 | 84.2 | 90.5 |
| RaMBO512R50log | 63.5 | 74.8 | 84.1 | 90.4 |
| RaMBO512R50log log | 64.0 | 75.3 | 84.1 | 90.6 |
+
+Table 3: Comparison with the state-of-the-art on the CUB200-2011 [62] dataset. Our method RaMBO is on-par with an (unofficial) ResNet50 implementation of Proxy NCA.
+
+| R@K | 1 | 10 | 20 | 30 | 50 |
| FashionNetV [36] | 53.0 | 73.0 | 76.0 | 77.0 | 80.0 |
| HDC384G [67] | 62.1 | 84.9 | 89.0 | 91.2 | 93.1 |
| DREML48R18 [66] | 78.4 | 93.7 | 95.8 | 96.7 | - |
| HTLG128G [12] | 80.9 | 94.3 | 95.8 | 97.2 | 97.8 |
| A-BIER512G [44] | 83.1 | 95.1 | 96.9 | 97.5 | 98.0 |
| ABE-8512G [27] | 87.3 | 96.7 | 97.9 | 98.2 | 98.7 |
| FastAP-Matlab512R50 [4] | 90.9 | 97.7 | 98.5 | 98.8 | 99.1 |
| FastAP-Python512R50 [5]2 | 83.8? | 95.5? | 96.9? | 97.5? | 98.2? |
| RaMBO512R50 log | 88.1 | 97.0 | 97.9 | 98.4 | 98.8 |
| RaMBO512R50 log log | 86.3 | 96.2 | 97.4 | 97.9 | 98.5 |
+
+Table 4: Comparison with the state-of-the-art methods on the In-shop Clothes [35] dataset. RaMBO is on par with an ensemble-method ABE-8. Leading performance is achieved with a Matlab implementation of FastAP.
+
+On In-shop Clothes we report $R@K$ for value of $K \in \{1, 10, 20, 30, 50\}$ in Tab. 4. The best-performing method is probably FastAP, even though the situation regarding reproducibility is puzzling2. RaMBO matches the performance of ABE-8 [27], a complex ensemble method.
+
+We followed the reporting strategy of [27] by evaluating on the test set in regular training intervals and reporting
+
+| Method | Backbone | Training | CE | RaMBO |
| Faster R-CNN | ResNet50 | 07 | 74.2 | 75.7 |
| Faster R-CNN | ResNet50 | 07+12 | 80.4 | 81.4 |
| Faster R-CNN | ResNet101 | 07+12 | 82.4 | 82.9 |
| Faster R-CNN | X101 32×4d | 07+12 | 83.2 | 83.6 |
+
+performance at a time-point that maximizes $R@1$ .
+
+# 5.2. Object detection
+
+We follow a common protocol for testing new components by using Faster R-CNN [48], the most commonly used model in object detection, with standard hyperparameters for all our experiment. We compare against baselines from the highly optimized mmdetection toolbox [8] and only exchange the cross-entropy loss of the classifier with a weighted combination of $L_{mAP}$ and $L_{APC}$ .
+
+Datasets and evaluation All experiments are performed on the widely used Pascal VOC dataset [11]. We train our models on the Pascal VOC 07 and VOC 12 trainval sets and test them on the VOC 07 test set. Performance is measured in $AP^{50}$ which is $AP$ computed for bounding boxes with at least $50\%$ intersection-over-union overlap with any of the ground truth bounding boxes.
+
+Parameters The model was trained for 12 epochs on a single GPU with a batch-size of 8. The initial learning rate 0.1 is reduced by a factor of 10 after 9 epochs. For the $L_{AP}$ loss, we use $\tau = 7$ , $\alpha = 0.15$ , and $\lambda = 0.5$ . The losses $L_{mAP}$ and $L_{APC}$ are weighted in the $2:1$ ratio.
+
+Results We evaluate Faster R-CNN trained on VOC 07 and VOC 07+12 with three different backbones (ResNet50, ResNet101, and ResNeXt101 32x4d [18, 65]). Training with our $AP$ loss gives a consistent improvement (see Tab. 5) and pushes the standard Faster R-CNN very close to state-of-the-art values $(\approx 84.1)$ achieved by significantly more complex architectures [26, 69].
+
+# 5.3. Speed
+
+Since RaMBO can be implemented using sorting functions it is very fast to compute (see Tab. 6) and can be used on very long sequences. Computing $AP$ loss for sequences with 320k elements as in the object detection experiments takes less than 5 ms for the forward/backward pass. This is $< 0.5\%$ of the overall computation time on a batch.
+
+Table 5: Object detection performance on the Pascal VOC 07 test set measured in $AP^{50}$ . Backbone X stands for ResNeXt and CE for cross entropy loss.
+
+| Length | 100k | 1M | 10M | 100M |
| CPU | 33 ms | 331 ms | 3.86 s | 36.4 s |
| GPU | 1.3 ms | 7 ms | 61 ms | 0.62 s |
+
+Table 6: Processing time of Average Precision (using plain PYTORCH implementation) depending on sequence length for forward/backward computation on a single Tesla V100 GPU and 1 Xeon Gold CPU core at $2.2\mathrm{GHz}$ .
+
+| R@1 | CUB200 | In-shop | Online Prod. |
| Full RaMBO | 64.0 | 88.1 | 78.6 |
| No batch memory | 62.5 | 87.0 | 72.4 |
| No margin | 63.2 | x | x |
+
+Table 7: Ablation experiments for margin(Sec. 4.4) and batch memory (Sec. 4.3) in retrieval on the CUB200, In-shop and Stanford Online Products datasets.
+
+| Method | RaMBO | λ | margin | AP50 |
| Faster R-CNN | | | | 74.2 |
| Faster R-CNN | ✓ | 0.5 | | 74.6 |
| Faster R-CNN | ✓ | 0.1 | ✓ | 75.2 |
| Faster R-CNN | ✓ | 0.5 | ✓ | 75.7 |
| Faster R-CNN | ✓ | 2.5 | ✓ | 74.3 |
+
+Table 8: Ablation for RaMBO on the object detection task.
+
+# 5.4. Ablation studies
+
+We verify the validity of our loss design in multiple ablation studies. Table 7 shows the relevance of margin and batch memory for the retrieval task. In fact, some of the runs without a margin diverged. The importance of margin is also shown for the $mAP$ loss in Tab. 8. Moreover, we can see that the hyperparameter $\lambda$ of the scheme [60] does not need precise tuning. Values of $\lambda$ that are within a factor 5 of the selected $\lambda = 0.5$ still outperform the baseline.
+
+# 6. Discussion
+
+The proposed method RaMBO is singled out by its conceptual purity in directly optimizing for the desired metric while being simple, flexible, and computationally efficient. Driven only by basic loss-design principles and without serious engineering efforts, it can compete with state-of-the-art methods on image retrieval and consistently improve near-state-of-the-art object detectors. Exciting opportunities for future work lie in utilizing the ability to efficiently optimize ranking-metrics of sequences with millions of elements.
+
+# References
+
+[1] B. T. Bartell, G. W. Cottrell, and R. K. Belew. Automatic combination of multiple ranked retrieval systems. In ACM Conference on Research and Development in Information Retrieval, SIGIR'94, pages 173-181. Springer, 1994. 1
+[2] A. Bellet, A. Habrard, and M. Sebban. A survey on metric learning for feature vectors and structured data. arXiv preprint arXiv:1306.6709, 2013. 2
+[3] J. Bromley, I. Guyon, Y. LeCun, E. Säckinger, and R. Shah. Signature verification using a "siamese" time delay neural network. In Advances in Neural Information Processing Systems, NIPS'94, pages 737-744, 1994. 2
+[4] F. Cakir, K. He, X. Xia, B. Kulis, and S. Sclaroff. Deep metric learning to rank. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR'19, pages 1861-1870, 2019. 1, 2, 4, 5, 6, 7
+[5] F. Cakir, K. He, X. Xia, B. Kulis, and S. Sclaroff. Deep Metric Learning to Rank. https://github.com/kunhe/ FastAP-metric-learning, 2019. Commit: 7ca48aa. 7, 8
+[6] S. Chakrabarti, R. Khanna, U. Sawant, and C. Bhattacharyya. Structured learning for non-smooth ranking losses. In KDD, 2008. 1
+[7] K. Chen, J. Li, W. Lin, J. See, J. Wang, L. Duan, Z. Chen, C. He, and J. Zou. Towards accurate one-stage object detection with ap-loss. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR'19, pages 5119-5127, 2019. 1, 2, 4, 6
+[8] K. Chen, J. Wang, J. Pang, Y. Cao, Y. Xiong, X. Li, S. Sun, W. Feng, Z. Liu, J. Xu, Z. Zhang, D. Cheng, C. Zhu, T. Cheng, Q. Zhao, B. Li, X. Lu, R. Zhu, Y. Wu, J. Dai, J. Wang, J. Shi, W. Ouyang, C. C. Loy, and D. Lin. MMDetection: Open MMLab detection toolbox and benchmark. arXiv preprint arXiv:1906.07155, 2019. Commit: 9d767a03c0ee60081fd8a2d2a200e530bebef8eb. 1, 8
+[9] R. Cohendet, C.-H. Demarty, N. Duong, M. Sjoberg, B. Ionescu, and T.-T. Do. MediaEval 2018: Predicting media memorability. arXiv:1807.01052, 2018. 1
+[10] M. Engilberge, L. Chevallier, P. Pérez, and M. Cord. Sodeep: a sorting deep net to learn ranking loss surrogates. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR'19, pages 10792-10801, 2019. 1, 2, 4
+[11] M. Everingham, L. Van Gool, C. Williams, J. Winn, and A. Zisserman. The Pascal visual object classes (voc) challenge. International Journal of Computer Vision, 2010. 2, 8
+[12] W. Ge. Deep metric learning with hierarchical triplet loss. In European Conference on Computer Vision, ECCV'18, pages 269-285, 2018. 1, 2, 7
+
+[13] G. Ghiasi, T.-Y. Lin, and Q. V. Le. Nas-fpn: Learning scalable feature pyramid architecture for object detection. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR'19, 2019. 2
+[14] R. Girshick, J. Donahue, T. Darrell, and J. Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR'14, pages 580-587, 2014. 2
+[15] E. Goldman, R. Herzig, A. Eisenschat, J. Goldberger, and T. Hassner. Precise detection in densely packed scenes. In The IEEE Conference on Computer Vision and Pattern Recognition, CVPR'19, 2019. 2
+[16] G. H. Hardy, J. E. Littlewood, and G. Pólya. Inequalities. Cambridge University Press, Cambridge, England, 1952. 4
+[17] B. Harwood, B. Kumar, G. Carneiro, I. Reid, T. Drummond, et al. Smart mining for deep metric learning. In IEEE International Conference on Computer Vision, ICCV'17, pages 2821-2829, 2017. 7
+[18] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR'18, pages 770-778, 2016. 2, 6, 7, 8
+[19] K. He, G. Gkioxari, P. Dollar, and R. Girshick. Mask R-CNN. In IEEE International Conference on Computer Vision, ICCV'17, pages 2980-2988, 2017. 2
+[20] K. He, F. Cakir, S. Adel Bargal, and S. Sclaroff. Hashing as tie-aware learning to rank. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR'18, pages 4023-4032, 2018. 1, 2, 5
+[21] K. He, Y. Lu, and S. Sclaroff. Local descriptors optimized for average precision. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR'18, pages 596-605, 2018. 2
+[22] W. He, X.-Y. Zhang, F. Yin, and C.-L. Liu. Deep direct regression for multi-oriented scene text detection. In IEEE International Conference on Computer Vision, ICCV'17, 2017. 7
+[23] P. Henderson and V. Ferrari. End-to-end training of object class detectors for mean average precision. In *Asian Conference on Computer Vision*, pages 198-213. Springer, 2016. 1, 2, 6
+[24] E. Hoffer and N. Ailon. Deep metric learning using triplet network. In International Workshop on Similarity-Based Pattern Recognition, pages 84-92. Springer, 2015. 2
+[25] J. Huang, V. Rathod, C. Sun, M. Zhu, A. Korattikara, A. Fathi, I. Fischer, Z. Wojna, Y. Song, S. Guadarrama, and K. Murphy. Tensorflow Object Detection API. https://github.com/tensorflow/models/tree/master/research/objectDetection, 2017. Commit: 0ba83cf. 1
+
+[26] S.-W. Kim, H.-K. Kook, J.-Y. Sun, M.-C. Kang, and S.-J. Ko. Parallel feature pyramid network for object detection. In European Conference on Computer Vision, ECCV'18, pages 230-256, 2018. 8
+[27] W. Kim, B. Goyal, K. Chawla, J. Lee, and K. Kwon. Attention-based ensemble for deep metric learning. In European Conference on Computer Vision, ECCV'18, pages 736-751, 2018. 6, 7
+[28] D. P. Kingma and J. Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, ICLR'14, 2014. 6
+[29] G. Koch, R. Zemel, and R. Salakhutdinov. Siamese neural networks for one-shot image recognition. In ICML deep learning workshop, volume 2, 2015. 2
+[30] B. Kulis et al. Metric learning: A survey. Foundations and Trends in Machine Learning, 5(4):287-364, 2013. 2
+[31] M. T. Law, N. Thome, and M. Cord. Quadruplet-wise image similarity learning. In IEEE International Conference on Computer Vision, ICCV'13, pages 249-256, 2013. 2
+[32] T.-Y. Lin, P. Goyal, R. Girshick, K. He, and P. Dollar. Focal loss for dense object detection. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2018. 2
+[33] Y. Lin, Y. Lee, and G. Wahba. Support vector machines for classification in nonstandard situations. Machine Learning, 46(1):191-202, 2002. doi: 10.1023/A:1012406528296. 1
+[34] W. Liu, D. Anguelov, D. Erhan, C. Szegedy, S. Reed, C.-Y. Fu, and A. C. Berg. Ssd: Single shot multibox detector. In ECCV, pages 21-37. Springer, 2016. 2
+[35] Z. Liu, P. Luo, S. Qiu, X. Wang, and X. Tang. Deepfashion: Powering robust clothes recognition and retrieval with rich annotations. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR'16, 2016. 6, 7
+[36] Z. Liu, P. Luo, S. Qiu, X. Wang, and X. Tang. Deepfashion: Powering robust clothes recognition and retrieval with rich annotations. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR'16, pages 1096-1104, 2016. 7
+[37] F. Massa and R. Girshick. maskrcnn-benchmark: Fast, modular reference implementation of Instance Segmentation and Object Detection algorithms in PyTorch. https://github.com/facebookresearch/maskrcnn-benchmark, 2018. Commit: f027259.1
+[38] B. McFee and G. R. Lanckriet. Metric learning to rank. In International Conference on Machine Learning, ICML'10, pages 775-782, 2010. 2
+[39] P. Mohapatra, C. Jawahar, and M. P. Kumar. Efficient optimization for average precision svm. In Advances in Neural Information Processing Systems, pages 2312-2320, 2014.
+
+[40] P. Mohapatra, M. Rolinek, C. Jawahar, V. Kolmogorov, and M. Pawan Kumar. Efficient optimization for rank-based loss functions. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR'18, pages 3693-3701, 2018. 1, 2, 4
+[41] Y. Movshovitz-Attias, A. Toshev, T. K. Leung, S. Ioffe, and S. Singh. No fuss distance metric learning using proxies. In IEEE International Conference on Computer Vision, ICCV'17, pages 360–368, 2017. 2, 6, 7
+[42] H. Oh Song, Y. Xiang, S. Jegelka, and S. Savarese. Deep metric learning via lifted structured feature embedding. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR'16, pages 4004-4012, 2016. 2, 7
+[43] H. Oh Song, S. Jegelka, V. Rathod, and K. Murphy. Deep metric learning via facility location. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR'17, pages 5382-5390, 2017. 7
+[44] M. Opitz, G. Waltner, H. Possegger, and H. Bischof. Deep metric learning with BIER: Boosting independent embeddings robustly. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2018. 7
+[45] Y. Rao, D. Lin, J. Lu, and J. Zhou. Learning globally optimized object detector via policy gradient. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR'18, pages 6190-6198, 2018. 2
+[46] J. Redmon and A. Farhadi. Yolov3: An incremental improvement. arXiv preprint arXiv:1804.02767, 2018. 2
+[47] J. Redmon, S. Divvala, R. Girshick, and A. Farhadi. You only look once: Unified, real-time object detection. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR'16, 2016. 2
+[48] S. Ren, K. He, R. Girshick, and J. Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In Advances in Neural Information Processing Systems, NIPS'15, pages 91-99, 2015. 2, 8
+[49] J. Revaud, J. Almazan, R. S. de Rezende, and C. R. de Souza. Learning with Average Precision: Training image retrieval with a listwise loss. In IEEE International Conference on Computer Vision, ICCV'19, 2019. 1, 2, 5
+[50] H. Rezatofighi, N. Tsoi, J. Gwak, A. Sadeghian, I. Reid, and S. Savarese. Generalized intersection over union: A metric and a loss for bounding box regression. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR'19, 2019. 2
+[51] K. Roth and B. Brattoli. Easily extendable basic deep metric learning pipeline. https://github.com/Confusezius/Deep-Metric-Learning-Baselines, 2019. Commit: 59d48f9.1,7
+
+[52] F. Schroff, D. Kalenichenko, and J. Philbin. Facenet: A unified embedding for face recognition and clustering. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR'15, pages 815-823, 2015. 2, 5
+[53] K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. In International Conference on Learning Representations, ICLR'15, 2015. 7
+[54] K. Sohn. Improved deep metric learning with multi-class n-pair loss objective. In Advances in Neural Information Processing Systems, NIPS'16, pages 1857-1865, 2016. 7
+[55] H. O. Song, Y. Xiang, S. Jegelka, and S. Savarese. Deep metric learning via lifted structured feature embedding. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR'16, 2016. 6, 7
+[56] Y. Song, A. Schwing, R. Urtasun, et al. Training deep neural networks via direct loss minimization. In International Conference on Machine Learning, ICML'16, pages 2169-2177, 2016. 1, 2
+[57] C. Szegedy, W. Liu, Y. Jia, P. Sermanet, S. Reed, D. Anguelov, D. Erhan, V. Vanhoucke, and A. Rabinovich. Going deeper with convolutions. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR'15, 2015. 7
+[58] M. Taylor, J. Guiver, S. Robertson, and T. Minka. Softrank: optimizing non-smooth rank metrics. In 2008 International Conference on Web Search and Data Mining, pages 77-86. ACM, 2008. 2
+[59] E. Ustinova and V. Lempitsky. Learning deep embeddings with histogram loss. In Advances in Neural Information Processing Systems, NIPS'16, pages 4170-4178, 2016. 7
+[60] M. Vlastelica, A. Paulus, V. Musil, G. Martius, and M. Rolínek. Differentiation of blackbox combinatorial solvers. In International Conference on Learning Representations, ICLR'20, 2020. 2, 3, 4, 8
+[61] J. Wang, F. Zhou, S. Wen, X. Liu, and Y. Lin. Deep metric learning with angular loss. In IEEE International Conference on Computer Vision, ICCV'17, pages 2593-2601, 2017. 7
+
+[62] 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. 6, 7
+[63] C.-Y. Wu, R. Manmatha, A. J. Smola, and P. Krahenbuhl. Sampling matters in deep embedding learning. In IEEE International Conference on Computer Vision, ICCV'17, pages 2840-2848, 2017. 2, 7
+[64] Y. Wu, A. Kirillov, F. Massa, W.-Y. Lo, and R. Girshick. Detector2. https://github.com/facebookresearch/detectron2, 2019. Commit: dd5926a. 1
+[65] S. Xie, R. Girshick, P. Dollar, Z. Tu, and K. He. Aggregated residual transformations for deep neural networks. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR'17, pages 5987-5995, 2017. 8
+[66] H. Xuan, R. Souvenir, and R. Pless. Deep randomized ensembles for metric learning. In European Conference on Computer Vision, ECCV'18, pages 723-734, 2018. 7
+[67] Y. Yuan, K. Yang, and C. Zhang. Hard-aware deeply cascaded embedding. In IEEE International Conference on Computer Vision, ICCV'17, pages 814-823, 2017. 7
+[68] Y. Yue, T. Finley, F. Radlinski, and T. Joachims. A support vector method for optimizing average precision. In ACM SIGIR Conference on Research and Development in Information Retrieval, pages 271-278. ACM, 2007. 1, 2, 4
+[69] S. Zhang, L. Wen, X. Bian, Z. Lei, and S. Z. Li. Single-shot refinement neural network for object detection. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR'18, pages 4203-4212, 2018. 8
+[70] Y. Zhao, Z. Jin, G.-j. Qi, H. Lu, and X.-s. Hua. An adversarial approach to hard triplet generation. In European Conference on Computer Vision, ECCV'18, pages 501-517, 2018. 2
+[71] B. Zoph, V. Vasudevan, J. Shlens, and Q. V. Le. Learning transferable architectures for scalable image recognition. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR'18, 2018. 2
\ No newline at end of file
diff --git a/optimizingrankbasedmetricswithblackboxdifferentiation/images.zip b/optimizingrankbasedmetricswithblackboxdifferentiation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..5a38519ab46d8a7ea0223f837263874126ddedb8
--- /dev/null
+++ b/optimizingrankbasedmetricswithblackboxdifferentiation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d2e6770a539e1677cb44f5e6f061701b6905de21c18e48e38d46e785ce9cf7dc
+size 562837
diff --git a/optimizingrankbasedmetricswithblackboxdifferentiation/layout.json b/optimizingrankbasedmetricswithblackboxdifferentiation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..9e6a8ac3beaf357650e7a0a2f4b22a8631bbf4ba
--- /dev/null
+++ b/optimizingrankbasedmetricswithblackboxdifferentiation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2b6a8780a065d362333fd3b520a41a3a71c43df2e630176c2f30c0b57c1fbbc2
+size 524661
diff --git a/orderlessrecurrentmodelsformultilabelclassification/df4d3e80-fff5-4fa6-afe9-3334a9b3e865_content_list.json b/orderlessrecurrentmodelsformultilabelclassification/df4d3e80-fff5-4fa6-afe9-3334a9b3e865_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..5ce369dbfc660cb51ad9d2632a4cb75c4fbb834a
--- /dev/null
+++ b/orderlessrecurrentmodelsformultilabelclassification/df4d3e80-fff5-4fa6-afe9-3334a9b3e865_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:858d5b0f4dc64c41b1a01df879f6a6bc98c3c7cc25c34fdcacce2cfcac6c19bb
+size 80147
diff --git a/orderlessrecurrentmodelsformultilabelclassification/df4d3e80-fff5-4fa6-afe9-3334a9b3e865_model.json b/orderlessrecurrentmodelsformultilabelclassification/df4d3e80-fff5-4fa6-afe9-3334a9b3e865_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..5e9250f2248e3f74a4ccc7dba8d0e9667ff466df
--- /dev/null
+++ b/orderlessrecurrentmodelsformultilabelclassification/df4d3e80-fff5-4fa6-afe9-3334a9b3e865_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ca6fac0226446581bb22fc45114b214b22c5299a8abdf17ca83a0eb3f24ade9a
+size 99206
diff --git a/orderlessrecurrentmodelsformultilabelclassification/df4d3e80-fff5-4fa6-afe9-3334a9b3e865_origin.pdf b/orderlessrecurrentmodelsformultilabelclassification/df4d3e80-fff5-4fa6-afe9-3334a9b3e865_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..ab0a2fe8ac3817bd377f86eeb14d9fdc5e5cce45
--- /dev/null
+++ b/orderlessrecurrentmodelsformultilabelclassification/df4d3e80-fff5-4fa6-afe9-3334a9b3e865_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9ec7ab1c5edce6e619431272702771963fe7f4461421093f8e20141e72759b0a
+size 993661
diff --git a/orderlessrecurrentmodelsformultilabelclassification/full.md b/orderlessrecurrentmodelsformultilabelclassification/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..25e25dc36d6c47fd7bc3cb4479680ea49bdee578
--- /dev/null
+++ b/orderlessrecurrentmodelsformultilabelclassification/full.md
@@ -0,0 +1,319 @@
+# Orderless Recurrent Models for Multi-label Classification
+
+Vacit Oguz Yazici $^{1,2}$ , Abel Gonzalez-Garcia $^{1}$ , Arnau Ramisa $^{2,3}$ , Bartlomiej Twardowski $^{1}$ , Joost van de Weijer $^{1}$
+
+1 Computer Vision Center, Universitat Autonoma de Barcelona, Barcelona, Spain
+$^{2}$ Wide-Eyes Technologies, Barcelona, Spain $^{3}$ Universitat de Vic, Barcelona, Spain {voyazici, agonzalez, bartlomiej.twardowski, joost}@cvc.uab.es, arnau.ramisa@uvic.cat
+
+# Abstract
+
+Recurrent neural networks (RNN) are popular for many computer vision tasks, including multi-label classification. Since RNNs produce sequential outputs, labels need to be ordered for the multi-label classification task. Current approaches sort labels according to their frequency, typically ordering them in either rare-first or frequent-first. These imposed orderings do not take into account that the natural order to generate the labels can change for each image, e.g. first the dominant object before summing up the smaller objects in the image. Therefore, we propose ways to dynamically order the ground truth labels with the predicted label sequence. This allows for faster training of more optimal LSTM models. Analysis evidences that our method does not suffer from duplicate generation, something which is common for other models. Furthermore, it outperforms other CNN-RNN models, and we show that a standard architecture of an image encoder and language decoder trained with our proposed loss obtains the state-of-the-art results on the challenging MS-COCO, WIDER Attribute and PA-100K and competitive results on NUS-WIDE.
+
+# 1. Introduction
+
+RNNs have demonstrated good performance in many tasks that require processing variable length sequential data. One of the most popular types of RNN is the Long-Short Term Memory networks (LSTM) [17]. LSTMs improve over earlier RNNs, especially addressing the vanishing gradient problem, and have advanced the state of the art in machine translation [44] and speech recognition [13], among other tasks. They have also been combined with deep Convolutional Neural Networks (CNN) and used for computer vision tasks, such as image captioning [46], and video representations [43]. Furthermore, LSTMs have been shown to be useful for traditionally non-sequential tasks, like multi-label classification [3, 21, 32, 48].
+
+Multi-label classification is the task of assigning a wide
+
+
+Rare: dog
+Freq: dog, frisbee
+PLA: dog, frisbee
+Figure 1: Estimated labels for various approaches. In the Rare (rare-first) approach bigger and more frequent classes might cause other classes to be ignored (frisbee in the left figure), meanwhile in the Freq (frequent-first) approach smaller frequent classes are ignored (person in the right figure). Our approach PLA circumvents these problems and correctly assigns the labels to both images.
+
+
+Rare: bus, car, person
+Freq: car, bus
+PLA: bus, car, person
+
+range of visual concepts to images. These concepts could include object classes or actions, but also attributes such as colors, textures, materials, or even more abstract notions like mood. The large variety of concepts makes this a very challenging task and, to successfully address it, methods should learn the dependencies between the many concepts: boats are not common in office spaces, and penguins are seldom seen in deserts. Another problem of multi-label classification is the fact that similarities between classes may make the model uncertain about a particular object (e.g. it could be either a bicycle or a motorcycle) while being sure that both are not simultaneously present in the image. Consequently, it should choose one of the labels and not both, but traditional approaches like Binary Cross-Entropy (BCE) do not discount evidence already used in support of another label, and would predict both. In practice, these dependencies between the labels turn the task of multi-label classification into a structured labelling problem [32].
+
+Image captioning, where the task is to generate a natural
+
+language sentence describing the image, is highly related to multi-label classification. The main difference is that in image captioning the ordering constraint imposed by the recurrent neural network comes naturally, as sentences have a sequential nature, and RNNs are considered the appropriate model to generate an ordered list of words [46, 50]. Recently, it was found that recurrent networks also obtain good results in (orderless) structured labelling tasks like multi-label classification, and that they were good at modelling the dependencies in label space. Typically this is implemented by replacing the BCE "multi-head" of the network with an LSTM module, using it to generate a variable length sequence of labels, plus a termination token. However, this approach has a caveat: the LSTM loss will penalize otherwise correct predictions if they are not generated in the same ordering as in the ground truth label sequence. This seriously hinders convergence, complicates the training process, and generally results in inferior models.
+
+Several recent works have tried to address this issue by imposing an arbitrary, but consistent, ordering to the ground truth label sequences [48, 21]. The rationale is that if the labels are presented always in the same order, the network will, in turn, predict them in the same order as well. Despite alleviating the problem, these approaches are short of solving it, and many of the original issues are still present. For example, in an image that features a clearly visible and prominent $dog$ , the LSTM may chose to predict that label first, as the evidence for it is very large. However, if $dog$ is not the label that happened to be first in the chosen ordering, the network will be penalized for that output, and then penalized again for not predicting $dog$ in the "correct" step according to the ground truth sequence. In this paper we observe that this leads to more difficult convergence, as well as sub-optimal results, like a label being predicted several times for the same image by the trained model.
+
+In contrast with related works, we do not impose a predefined order to the output sequence, since this does not respond to any real constraint that the model should fulfill. Instead, we dynamically chose the ordering that minimizes the loss during training by re-arranging the ground truth sequence to match as closely as possible the sequence of predicted labels. We propose two ways of doing that: predicted label alignment (PLA) and minimal loss alignment (MLA). We empirically show that these approaches lead to faster training (see Figure 5), and also eliminate other nuisances like repeated labels in the predicted sequence. Furthermore, we obtain state-of-the-art results on the MS-COCO, WIDER Attribute and PA-100K datasets.
+
+# 2. Related Work
+
+Deep Recurrent Networks Recurrent neural networks [40], are neural networks that include loops, and
+
+can process the same input (plus an internal state used for passing messages between iterations) several times with the same weights. The original formulation of RNNs is notoriously difficult to train because of the exploding/vanishing gradient problems, which are exacerbated with long input sequences. Later research found solutions to these problems, including the particularly successful models Gated Recurrent Unit [6] and Long-Short Term Memory [17].
+
+Despite originally being designed for sequential data, LSTM networks have also been used for orderless data, or sets [45, 3]. Vinyals et al. [45] explores the different types of orderless data that can be processed by an LSTM network, and proposes different architectures and training procedures to deal with them. Chen et al. [3] proposes a method for order-free usage of recurrent networks for multi-label image annotation. Both these methods are discussed in more detail after we have introduced our approach to the training of orderless recurrent networks (see Section 3.3).
+
+Multi-label classification Unlike in traditional (single-label) classification, in multi-label classification each image can be associated with more than one concept. Yet, initial approaches for multi-label classification in the literature treat each occurrence of a label independently from the others [49, 12], thus not taking advantage of label correlations.
+
+Earlier works that tried to leverage label correlations exploited graphical models such as Conditional Random Fields (CRFs) [11] or Dependency Networks [15]. Chen et al. [2] combine CRFs with deep learning algorithms to explore dependencies between the output variables. Read et al. [39] propose using a chain of binary classifiers to do multi-label classification. Most of the approaches mentioned come with relatively high computation costs since they need to model explicitly the pairwise label correlations.
+
+On the other hand, RNN-based multi-label classification does not incur these high computation costs, since the low dimensional RNN layers work well to model the label correlations [48, 21]. The idea to exploit RNN models to capture label correlations was originally proposed in [21] and [48]. Wang et al. [48] combine CNN and RNN architectures, and learn a joint image-label embedding space to characterize the label semantic dependencies. Since LSTMs produce sequential outputs, they use a frequent-first ordering approach. Jin et al. [21] use a CNN to encode images and input them to an RNN that generates the predictions. They use frequent-first, dictionary-order, rare-first and random order in their experiments and compare the results of different methods. Liu et al. [32] use a similar architecture, but they make the CNN and RNN models explicitly address the label prediction and label correlation tasks respectively. Instead of using a fully connected layer between the CNN and RNN models, they input class probabilities predicted by the CNN model to the RNN. In that way, they supervise both models during the training. They use rare-first ordering
+
+
+Figure 2: CNN-RNN architecture used in this paper, containing of an image CNN encoder, an LSTM text decoder and an attention mechanism. We show that this simple architecture can obtain state-of-the-art results by substituting the loss function by an orderless loss function.
+
+in their model to assign more importance to the less common labels. Chen et al. [3] use a BCE loss to compute predictions in each time step to remove the order of the labels. However, none of these approaches adapt the order dynamically according to the predictions, and they only achieve marginal improvements over CNN models. Concurrent to our work, Pineda et al. [38] present a comprehensive comparison between CNN and CNN-RNN methods on various datasets with different characteristics.
+
+Image captioning Earlier works on image captioning with deep learning have adapted the encoder-decoder framework in which an RNN (usually an LSTM) is used to "translate" image features into a sentence, one word at a time [5, 8, 9, 23, 24, 25, 35, 47, 51]. These image features are usually generated using a CNN that encodes (or translates) the image into a higher-level representation, and next an RNN decodes this representation back into natural language. An important part of the success of this type of models is that the whole system is trained end-to-end, and so both components can co-adapt to yield the best results. See [1, 18] for recent surveys on image caption generation.
+
+# 3. Method
+
+# 3.1. Image-to-sequence model
+
+For the task of multi-label classification we consider a CNN-RNN architecture, first proposed in [48]. This type of model consists of a CNN (encoder) part that extracts a compact visual representation from the image, and of an RNN (decoder) part that uses the encoding to generate a sequence of labels, modeling the label dependencies. Different au-
+
+thors experimented with different choices of visual representation to feed to the RNN: in [48], images and labels are projected to the same low-dimensional space to model the image-text relationship, while [32] uses the predicted class probabilities, and [21] experiments with different internal layers of the CNN. In our approach, we use the final fully connected layer to initialize the hidden state of the RNN. Once initialized, the RNN model predicts a new label every time step until an end signal is generated.
+
+The choice of RNN typically used in CNN-RNN models is the Long-Short Term Memory. Unlike prior RNN models, LSTM mitigates the vanishing gradient problem by introducing a forget gate $f$ , an input gate $i$ and an output gate $o$ to an RNN layer. With these gates, it can learn long term dependencies in a sequential input. The equations that govern the forward propagation through the LSTM at time step $t$ and with an input vector $x_{t}$ are the following:
+
+$$
+f _ {t} = \sigma \left(W _ {f} x _ {t} + U _ {f} h _ {t - 1} + b _ {f}\right)
+$$
+
+$$
+i _ {t} = \sigma \left(W _ {i} x _ {t} + U _ {i} h _ {t - 1} + b _ {i}\right)
+$$
+
+$$
+o _ {t} = \sigma \left(W _ {0} x _ {t} + U _ {0} h _ {t - 1} + b _ {0}\right) \tag {1}
+$$
+
+$$
+c _ {t} = f _ {t} \odot c _ {t - 1} + i _ {t} \odot \tanh \left(W _ {c} x _ {t} + U _ {c} h _ {t - 1} + b c\right)
+$$
+
+$$
+h t = o _ {t} \odot \tanh (c _ {t})
+$$
+
+where $c_{t}$ and $h_{t}$ are the model cell and hidden states, while $i_{t}, f_{t}, o_{t}$ are the input, forget and output gates' activations respectively. $W, U$ and $b$ are the weights and biases to be learned, and the $\sigma$ and $\tanh$ are the sigmoid and hyperbolic tangent functions respectively. At time step $t$ , the model uses as input the predicted output embedding from the previous time step. The predictions for the current time step $t$ are computed in the following way:
+
+$$
+x _ {t} = E \cdot \hat {l} _ {t - 1}
+$$
+
+$$
+h _ {t} = \operatorname {L S T M} \left(x _ {t}, h _ {t - 1}, c _ {t - 1}\right) \tag {2}
+$$
+
+$$
+p _ {t} = W \cdot h _ {t} + b
+$$
+
+where $E$ is a word embedding matrix and $\hat{l}_{t - 1}$ is the predicted label index in the previous time step. The prediction vector is denoted by $p_t$ , and $W$ and $b$ are the weights and the bias of the fully connected layer.
+
+We also include the attention module that was proposed in [50]. Linearized activations from the fourth convolutional layer are used as input for the attention module, along with the hidden state of the LSTM at each time step, thus the attention module focuses on different parts of the image every time. These attention weighted features are then concatenated with the word embedding of the class predicted in the previous time step, and given to the LSTM as input for the current time step. As pointed out in [48], it is hard to represent small objects with global features, so an attention module alleviates the problem of ignoring smaller objects during the prediction step. A diagram of our model architecture is provided in Figure 2.
+
+# 3.2. Training recurrent models
+
+To train the model a dataset with pairs of images and sets of labels is used. Let $(I,L)$ be one of the pairs containing an image $I$ and its $n$ labels $L = \{l_1,l_2,\dots ,l_n\}$ , $l_{i}\in \mathbb{L}$ , with $\mathbb{L}$ the set of all labels with cardinality $m = |\mathbb{L}|$ , including the start and end tokens.
+
+The predictions $p_t$ of the LSTM are collected in the matrix $P = [p_1 p_2 \dots p_n]$ , with $P \in \mathbb{R}^{m \times n}$ . When the number of predicted labels $k$ is larger than $n$ , we only select the first $n$ prediction vectors. In case $k$ is smaller than $n$ we pad the matrix with empty vectors to obtain the desired dimensionality. We can now define the standard cross-entropy loss for recurrent models as:
+
+$$
+\mathcal {L} = t r (T \log (P))
+$$
+
+with $T_{tj} = 1$ if $l_{t} = j$ (3)
+
+$$
+T _ {t j} = 0 \text {o t h e r w i s e}
+$$
+
+where $T \in \mathbb{R}^{n \times m}$ contains the ground truth label for each time step1. The loss is computed by comparing the prediction of the model at step $t$ with the corresponding label at the same step of the ground truth sequence.
+
+As can be seen in Equation 3, the order of the ground truth labels is critical to determine the loss a given prediction will receive (see Figure 3). For inherently orderless tasks like multi-label classification, where labels often come in random order, it becomes essential to minimize unnecessary penalization, and several approaches have been proposed in the literature. The most popular solution to improve the alignment between ground truth and predicted labels consists on defining an arbitrary criteria by which the labels will be sorted. Wang et al. [48] count occurrences of labels in the dataset and sort the labels according to their occurrence in descending order, and is consequently called the frequent-first approach. Jin et al. [21] use a rare-first approach and dictionary-order in addition to the frequent-first approach. Unlike the frequent-first approach, the rare-first promotes the rare classes in the dataset, while dictionary-order sorts the labels in alphabetical order. The rare-first approach was also adopted by Liu et al. [32].
+
+Sorting the ground truth labels with a fixed, arbitrary, criteria is shown to improve results with respect to using a random ordering, since the network can learn to predict in the defined order, and avoid part of the loss. However, this will delay convergence, as the network will have to learn the arbitrary ordering in addition to predicting the correct labels given the image. Furthermore, any misalignment between the predictions and the labels will still result in higher loss and misleading updates to the network. Additionally, the frequency of a label in a dataset is independent of the size of the object in a given image. Less frequent but bigger objects can cause the LSTM prediction to stop earlier because
+
+
+Predicted labels: person, tie
+Default order labels: tie, person
+Loss with default order: 7.59
+PLA order labels: person, tie
+Loss with PLA: 0.04
+
+
+Predicted labels:umbrella, person, surfboard Default order labels: person, surfboard,umbrella Loss with default order: 6.27 PLA order labels:umbrella, person, surfboard Loss with PLA:0.87
+Figure 3: Comparison of an ordered loss to our orderless PLA loss. Imposing any order (default order in this example) leads to high losses even though the labels are correct. PLA solves this problem by dynamically adapting the order.
+
+of their dominance in the image and their ranking in the prediction step. This issue can be observed in Figure 1, both for the frequent-first and rare-first approaches.
+
+# 3.3. Orderless recurrent models
+
+To alleviate the problems caused by imposing a fixed order to the labels, we propose to align them to the predictions of the network before computing the loss. We consider two different strategies to achieve this.
+
+The first strategy, called minimal loss alignment (MLA) is computed with:
+
+$\mathcal{L} = \min_{T} tr(T \log(P))$
+
+subject to $T_{tj}\in \{0,1\} ,\sum_{j}T_{tj} = 1,$ $\begin{array}{l}\sum_{t}T_{tj} = 1\quad \forall j\in L,\\ \sum_{t}T_{tj} = 0\quad \forall j\notin L \end{array}$ (4)
+
+where $T \in \mathbb{R}^{n \times m}$ is a permutation matrix, which is constrained to have a ground truth label for each time step: $\sum_{j} T_{tj} = 1$ , and that each label in the ground truth $L$ should be assigned to a time step. The matrix $T$ is chosen in such a way as to minimize the summed cross entropy loss. This minimization problem is an assignment problem and can be solved with the Hungarian [26] algorithm.
+
+We also consider the predicted label alignment (PLA) solution. If we predict a label which is in the set of ground truth labels for the image, then we do not wish to change it. That leads to the following optimization problem:
+
+$\mathcal{L} = \min_{T} tr(T \log(P))$
+
+subject to $T_{tj}\in \{0,1\} ,\sum_{j}T_{tj} = 1,$ $T_{tj} = 1$ if $\hat{l}_t\in L$ and $j = \hat{l}_t$ (5) $\begin{array}{l}\sum_{t}T_{tj} = 1\forall j\in L,\\ \sum_{t}T_{tj} = 0\forall j\notin L \end{array}$
+
+
+Figure 4: The cost matrix, image and different label orders decided by PLA and MLA (best viewed in color). Predicted classes are bolded. See text for explanation.
+
+where $\hat{l}_t$ is the label predicted by the model at step $t$ . Here we first fix those elements in the matrix $T$ for which we know that the prediction is in the ground truth set $L$ , and apply the Hungarian algorithm to assign the remaining labels (with same constraints as Eq. 4). This second approach results in higher losses than the first one (Eq. 4), since there are more restrictions on matrix $T$ . Nevertheless, this method is more consistent with the labels which were actually predicted by the LSTM.
+
+To further illustrate our proposed approach to train orderless recurrent models we consider an example image and its cost matrix (see Figure 4). The cost matrix shows the cost of assigning each label to the different time steps. The cost is computed as the negative logarithm of the probability at the corresponding time step. Although the MLA approach achieves the order that yields the lowest loss, in some cases this can cause misguided gradients as it does in the example in the figure. The MLA approach puts the label chair in the time step $t_3$ , although the network already predicts it in the time step $t_4$ . Therefore, the gradients force the network to output chair instead of sports ball although sports ball is also one of the labels.
+
+Orderless training of recurrent models has been previously addressed in [45, 3]. Vinyals et al. [45] study the usage of recurrent models to represent sets for which no apparent order of the elements exists. Their method considers two phases: first a uniform prior over all orders is assumed for an initial number of iterations of training, after which in the second phase ancestral sampling is used to sample an ordering. Unlike our method, which proposes to adapt the label order according to the predicted order, their method aims to find the optimal order of the labels (without considering the predicted order). Their method has only been evaluated on a toy problem. More related to our work is the research of Chen et al. [3], which applies a recurrent model without imposing any ordering. This is done by estimating all the labels in the image at every step of the recurrent model. They replace the standard cross entropy loss of the LSTM by a binary cross entropy (BCE). A draw-
+
+back of this approach is that the LSTM will repeat labels already predicted before. Therefore an additional module needs to be introduced which prevents the method from repeating already predicted labels. An additional drawback of this method is that there is no end-token, so a threshold should be learned to stop the sequence.
+
+# 4. Experiments
+
+# 4.1. Datasets and setting
+
+We evaluate our models on four datasets: MS-COCO [31], NUS-WIDE [7], WIDER Attribute [29] and PA-100K [33]. MS-COCO is used for image segmentation, image captioning, and object detection. It can be also used for multi-label classification since it has labels for 80 objects. It consists of 82,081 training and 40,137 test images. NUS-WIDE consists of 269,648 images with a total number of 5,018 unique labels. However, annotations for 81 labels are more trustworthy and used for evaluation. After removing the images that do not belong to any of the 81 labels, 209,347 images remain. Following [22, 32], we use 150,000 of these images for training, and rest for testing. For a fair comparison, we create 3 different splits and we pick the best scores on each split and average them to get the final scores. WIDER Attribute is a dataset which has 14 human attributes in 13,789 images with 57,524 annotated bounding boxes (28,345 for training and 29,179 for test). PA-100K is built for evaluating a pedestrian attribute recognition task. It consists of 100,000 pedestrian images with 26 attributes. The size of the training, validation and test sets are 80,000, 10,000 and 10,000 respectively.
+
+Evaluation metrics: We use per-class and overall precision, recall and F1 scores. The per-class metric averages precision and recall scores for each class, and the geometric mean of these averaged values gives the per-class F1 score. In the overall metric, precision and recall scores are computed for all images, and the geometric mean of precision and recall gives the overall F1 score. Only for PA-100K dataset, instead of evaluating accuracy of each label independently, we evaluate accuracy of image-wise class predictions to be able to compare the results with other models. Next, we are interested to see if our method actually adapts dynamically the order to the image, or just learns another (more optimal) fixed order of the classes. To this end, we use an order-rigidity measure on the test set. For each pair of classes, two possible orderings exist (e.g. for classes A and B that would be A-B or B-A); to compute the order-rigidity, we add the number of occurrences of the most frequent order for each pair of classes in the same image, and divide it by the total number of co-occurrences of any pair. We remove all but one of every duplicate prediction without penalization. We show order-rigidity and the percentage of images with duplicate predictions in Table 1.
+
+
+Figure 5: Loss curves for different training strategies of CNN-RNN models on the MS-COCO. The graph clearly shows that our strategies, MLA and PLA, obtain significantly lower losses. PLA obtains a slightly better loss from 140,000 iterations onward. This is also reflected in the better performance of PLA for multi-label classification.
+
+Network training: We implemented the architecture (see Figure 2) using the PyTorch framework [37]. For the encoder part and BCE models we use the VGG16 [42], ResNet-50 (for PA-100K) and ResNet-101 [16] architectures, and the decoder part is an LSTM with a 512 dimensional internal layer. The word embeddings learned during the training have dimension 256, and the attention module, 512. To train the BCE models, the SGD optimizer is used with learning rate 0.01 and momentum 0.9. For the LSTM models the encoder and the decoder are trained with the ADAM optimizer and Stochastic Weight Averaging [20] with a cyclical learning rate scheduler, decreasing from $10^{-3}$ to $10^{-6}$ in 3 iterations. The BCE models are trained for 40 epochs, and if no improvement is observed after 3 epochs, then we multiply the current learning rate by 0.1. For the LSTM models, we fine-tune from the best BCE model and train for 30 epochs more. All the BCE models are pretrained on ImageNet [41]. Finally, we do not use the beam search algorithm; we just greedily take the maximum predicted output. Random affine transformations and contrast changes are applied as data augmentation $^2$ .
+
+# 4.2. Comparison ordering approaches and analysis
+
+We first compare our method to other CNN-RNN optimization strategies such as frequent-first and rare-first, and evaluate several properties of the different methods. Next we compare it against the state-of-the-art on the MS-COCO, NUS-WIDE, WIDER Attribute and PA-100K datasets.
+
+Evaluating training strategies First, we compare the different strategies to train CNN-RNN architectures presented in literature: frequent-first [48], rare-first [21] and dictionary-order [21].
+
+As can be seen in Figure 5, our proposed strategies MLA
+
+Table 1: Ratio of duplicates and order-rigidity of different ordering methods on the MS-COCO validation dataset. Results show that our methods do not produce any duplicates and manage to produce label predictions with varying orders (as measured by the order-rigidity).
+
+| Algorithms | Ratio of duplicates | Order-rigidity |
| Random order | 57.86% | 67.00% |
| Freq. first | 23.84% | 100.00% |
| Rare-first | 29.61% | 100.00% |
| Dict. order | 32.90% | 100.00% |
| MLA | 0.10% | 82.87% |
| PLA | 0.04% | 80.25% |
+
+and PLA, which dynamically align the ground truth labels with the predicted labels, train faster and obtain a lower overall loss. The rare and frequent-first approaches obtain substantially higher losses. A significant part of the difference between our approaches and these baselines is that they could potentially obtain a non-zero loss on images in which the model perfectly predicts the correct classes but in the wrong order, as can be seen in Figure 3. For these images, the backpropagated gradient will try to force the prediction to be in the predefined order (a wasted effort in terms of improving the accuracy) despite the sub-optimality of such order for the particular image in some cases, like when the object that should be predicted first is much smaller than the other objects (see Figure 1).
+
+Next, we analyze the number of duplicate labels generated by the various learning strategies (see Table 1). To provide a baseline reference, we also include random order in the table, which refers to a setting where during training the order of the ground truth labels is randomly selected for each mini-batch. The results show that our method manages to learn not to repeat labels that have already been predicted for an image. In principle, one might think, this should be easy for an LSTM to learn. However, because of the imposed order for the frequent and rare-first approaches, and the resulting confusing backpropagated gradients, the LSTM does not learn this and produces many duplicates. Note that duplicates are not penalizing the overall accuracy of the system, since we remove them in a post-processing step. We would also like to point out here that Chen et al. [3] require an explicit module for the removal of duplicates generated by their approach, while we train a model that does not generate duplicates in the first place.
+
+In Table 1, we show the results for order-rigidity. They show that the methods which impose a fixed order are actually always predicting labels in that order, as indicated by a $100.00\%$ score. Our methods obtain a $80.25\%$ and a $82.87\%$ score, showing that we have no fixed order for the labels and that it is dynamically adjusted to the image.
+
+In Table 3, we show the efficiency of the proposed meth-
+
+Table 2: Results of different ordering methods on MS-COCO.
+
+| Algorithms | C-P | C-R | C-F1 | O-P | O-R | O-F1 |
| BCE [48] | 59.30 | 58.60 | 58.90 | 61.70 | 65.00 | 63.30 |
| BCE | 68.05 | 59.15 | 63.29 | 72.20 | 65.77 | 68.84 |
| Freq. first | 70.27 | 56.49 | 62.63 | 72.15 | 64.53 | 68.13 |
| Rare-first | 65.68 | 61.32 | 63.43 | 70.82 | 64.73 | 67.64 |
| Dict. order | 70.98 | 55.86 | 62.52 | 74.14 | 62.35 | 67.74 |
| MLA | 68.37 | 60.39 | 64.13 | 72.16 | 66.71 | 69.33 |
| PLA | 68.66 | 60.54 | 64.34 | 72.67 | 66.89 | 69.66 |
| PLA (atten.) | 70.18 | 61.96 | 65.81 | 73.75 | 67.74 | 70.62 |
+
+Table 3: Comparison of different ordering methods with average computation times per-image on MS-COCO for ResNet-101.
+
+ | Training | Test |
| Forward | Alignment | Backward | |
| Fixed Order | 6.50 ms | 0 ms | 14.80 ms | 5.90 ms |
| PLA | 0.80 ms (Eq. 4) |
| MLA | 0.25 ms (Eq. 5) |
+
+ods. They require one forward pass and then we apply the Hungarian algorithm to align LSTM predictions and labels (see Eqs. 4 and 5). PLA alignment is faster because it applies the algorithm only to the wrongly predicted labels.
+
+# 4.3. Experimental results
+
+Comparison of different ordering methods The results of different ordering algorithms can be seen in Table 2. All of the models (except BCE), have the attention module described in the previous section, unless stated otherwise. We observed that the BCE models that we train yield much higher results than the ones cited in previous works, which were originally reported by [48] and [19] for the MS-COCO and NUS-WIDE respectively. Although it is not very clear from [48], we think that the difference between our model and theirs is that, during the training, they freeze all the layers except the last one, since when we impose the same restriction to our model, we obtain similar results. Instead, when we allow for full training of the image encoder the results improve significantly, as reported in Tables 2. Interestingly, the fully trained BCE models obtain results similar to those of the CNN-RNN models with the same CNN module when they are trained using the rare-first or frequent-first strategies. We would like to indicate that the results reported in Table 2 are lower than the results that are in the other tables, since we do not exploit augmentations, train fewer epochs and use a part of training set as validation to tune the hyperparameters in these experiments.
+
+When we compare the various strategies of alignment, we see that both our methods, MLA and PLA, clearly outperform the other strategies. Among the other approaches frequent-first yields the best result, although rare-first gives better results with the per-class metric since it assigns more weight to the less common classes. The superior perfor
+
+
+Figure 6: Difference of BCE (left) and PLA model (right) co-occurrence matrices with ground truth co-occurrence matrix on the sports super-category of MS-COCO.
+
+mance of PLA with respect to MLA is interesting: we have empirically found that it is better to align with the actual predictions of the network than to align to obtain the minimal loss, as done in MLA. This phenomenon can be observed in Figure 5. Although MLA yields lower losses than PLA in the beginning, PLA's alignment with actual predictions of the network leads to a final lower loss and better accuracies. We think that so many penalizations of correctly predicted labels (see Figure 4) takes the optimization further away from the global minimum. In fact, the penalization rate during training is as high as $8\%$ for some classes (e.g. baseball bat). For this reason, we select PLA as our default method instead of MLA when we compare our results with the SOTA. Finally, the attention model improves results with a significant gain.
+
+To further investigate the advantages of the LSTM method over BCE, we compare the co-occurrence matrices of the PLA and BCE method with the co-occurrence matrix of the ground truth for the test set. The co-occurrence matrix is computed with $\sum_{i}l_{i}^{T}l_{i}$ , where $l_{i}$ are the ground truth labels for image $i$ , and respectively replacing the ground truth labels by the predicted labels $\hat{l}_i$ . Next, the co-occurrence matrix of the ground truth is subtracted to that of the predicted labels (the diagonals are ignored, since the co-occurrences of elements with themselves are irrelevant for our analysis). Figure 6 presents the co-occurrence matrices of the BCE and LSTM (PLA) models on the sports supercategory of the MS-COCO dataset. We can observe that BCE has higher co-occurrence values, and larger differences with the ground truth. Given that BCE predicts all labels independently from each other, it cannot prevent re-using evidence already used by another prediction. This can be seen, for example, in the many extra co-occurrences of predictions for skis and snowboards, as well as for sports ball and frisbee. Similar cases can be observed on the co-occurrence matrices of other supercategories which are available in the supplementary material. Recurrent models, instead, naturally factor in previous predictions at every time step, which
+
+Table 4: Comparison with state-of-the-art on MS-COCO.
+
+| Algorithms | Architectures | C-P | C-R | C-F1 | O-P | O-R | O-F1 |
| CNN-RNN [48] | VGG16 | 66.00 | 55.60 | 60.40 | 69.20 | 66.40 | 67.80 |
| Chen et al. [3] | ResNet152 | 71.60 | 54.80 | 62.10 | 74.20 | 62.20 | 67.70 |
| SR CNN-RNN [32] | VGG16 | 67.40 | 59.83 | 63.39 | 76.63 | 68.73 | 72.47 |
| Chen et al. [4] | VGG16 | 78.80 | 57.20 | 66.20 | 84.00 | 61.60 | 71.10 |
| Li et al. [28] | VGG16 | 71.90 | 59.60 | 65.20 | 74.30 | 69.70 | 71.80 |
| MS-CNN+LQP [36] | ResNet101 | 67.48 | 60.93 | 64.04 | 70.22 | 67.93 | 69.06 |
| LSEP [30] | VGG16 | 73.50 | 56.40 | 63.82 | 76.30 | 61.80 | 68.29 |
| MLIC-KD-WSD [34] | VGG16 | - | - | 69.20 | - | - | 74.00 |
| SRN [52] | ResNet101 | 81.60 | 65.40 | 71.20 | 82.70 | 69.90 | 75.80 |
| ACFs [14] | ResNet101 | 77.40 | 68.30 | 72.20 | 79.80 | 73.10 | 76.30 |
| PLA | VGG 16 | 73.72 | 63.18 | 68.05 | 78.25 | 68.76 | 73.20 |
| PLA | ResNet101 | 80.38 | 68.85 | 74.17 | 81.46 | 73.26 | 77.14 |
| PLA | ResNet1523 | 75.32 | 69.62 | 72.36 | 76.85 | 73.97 | 75.38 |
+
+Table 5: Comparison with state-of-the-art on NUS-WIDE.
+
+| Algorithms | C-P | C-R | C-F1 | O-P | O-R | O-F1 |
| CNN-RNN [48] | 40.50 | 30.40 | 34.70 | 49.90 | 61.70 | 55.20 |
| Chen et al. [3] | 59.40 | 50.70 | 54.70 | 69.00 | 71.40 | 70.20 |
| SR CNN-RNN [32] | 55.65 | 50.17 | 52.77 | 70.57 | 71.35 | 70.96 |
| Li et al. [28] | 44.20 | 49.30 | 46.60 | 53.90 | 68.70 | 60.40 |
| LSEP [30] | 66.70 | 45.90 | 54.38 | 76.80 | 65.70 | 70.82 |
| MLIC-KD-WSD [34] | - | - | 58.70 | - | - | 73.70 |
| PLA | 60.67 | 52.40 | 56.23 | 71.96 | 72.79 | 72.37 |
+
+leads to a more realistic co-occurrence in the predictions.
+
+Comparison to state-of-the-art We compare our results with several models, grouped into two categories: models that use a CNN-RNN jointly and models that use alternative approaches. CNN-RNN [48], SR CNN-RNN [32] and Chen et al. [3] are directly related to our model (see sec. 2 for details). Also in this category, Chen et al. [4] use an LSTM to predict the next region to attend according to the hidden state and the current region, after which they fuse the predictions of each time step. Similarly, Li et al. [28] use a recurrent network to highlight image regions to attend, but then employ reinforcement learning to select which regions should be used for the actual prediction. Among the alternative approaches, MS-CNN+LQP [36] tries to explicitly predict the number of tags in images, LSEP [30] uses a pairwise ranking approach for training a CNN, and MLICKD-WSD [34] use knowledge distillation from a teacher network which is trained on a weakly supervised detection task. ACfs [14], proposes a two-branch network with an original image and its transformed image as inputs and imposes an additional loss to ensure the consistency between attention heatmaps of both versions. SRN [52] proposes a Spatial Regularization Network that generates attention maps for all labels and models the label correlations via learnable convolutions. HP-Net [33] proposes a novel attention module to train multi-level and multi-scale attention-strengthened features for pedestrian analysis. The results on the mentioned datasets can be seen in Tables 4, 5, 6 and 7.
+
+On the MS-COCO dataset, we get higher F1 scores than
+
+Table 6: Comparison with state-of-the-art on WIDER Attribute.
+
+| Algorithms | C-P | C-R | C-F1 | O-P | O-R | O-F1 |
| SRN [52] | - | - | 75.90 | - | - | 81.30 |
| ACfs [14] | 81.30 | 74.80 | 77.60 | 84.10 | 80.70 | 82.40 |
| PLA | 81.69 | 75.87 | 78.67 | 84.99 | 81.36 | 83.13 |
+
+Table 7: Comparison with state-of-the-art on PA-100K.
+
+| Algorithms | Precision | Recall | F1 | Accuracy |
| DM [27] | 82.24 | 80.42 | 81.32 | 70.39 |
| HP-Net [33] | 82.97 | 82.09 | 82.53 | 72.19 |
| ACfs [14] | 88.97 | 86.26 | 87.59 | 79.44 |
| PLA | 88.50 | 86.67 | 87.58 | 79.83 |
+
+all other CNN-RNN models. MLIC-KD-WSD [34] also achieves notable results by exploiting knowledge distillation from a teacher network. Only for MS-COCO, we resize input images to $288 \times 288$ to be able to compare PLA ResNet-101 model with the ACfs [14]. We also show the results for the ResNet-152 architecture to compare with [3].
+
+On the NUS-WIDE dataset, we surpass all other CNN-RNN models by a significant margin. Our results are especially remarkable for per-class F1 score, a more relevant metric for unbalanced datasets such as this. The globally best results are achieved in terms of overall and per-class F1 score by MLIC-KD-WSD [34]. All the models that are compared on NUS-WIDE dataset use the VGG16 as the backbone network. We do not display the results of [36] since they use a different split of the dataset.
+
+To be comparable with other models, we use ResNet-101 and ResNet-50 architectures for WIDER Attribute and PA-100K respectively. These two datasets have human attributes that are related to gender, appearance, clothing, etc. as labels. Therefore, label correlations are not common among these two datasets, which is a drawback for CNN-RNN models. In spite of that, our CNN-RNN model manages to surpass the other models.
+
+# 5. Conclusions
+
+We proposed an approach for training orderless LSTM models applied to multi-label classification task. Previous methods imposed an ordering on the labels to train the LSTM model, Typically frequent-first or rare-first orderings were used. Instead, we proposed two alternative losses which dynamically order the labels based on the prediction of the LSTM model. Our approach is unique in that seldomly generates any duplicate prediction, and that it minimizes the loss faster than the other methods. Results show that a standard CNN-RNN architecture, when combined with our proposed orderless loss, obtains the state-of-the-art results for multi-label classification on several datasets.
+
+Acknowledgements. We thank the Spanish project TIN2016- 79717-R, the Industrial Doctorate Grant 2016 DI 039 of the Ministry of Economy and Knowledge of the Generalitat de Catalunya, and also its CERCA Program.
+
+# References
+
+[1] S. Bai. A survey on automatic image caption generation. Neurocomputing, 311:291 - 304, 2018. 3
+[2] Liang-Chieh Chen, Alexander Schwing, Alan Yuille, and Raquel Urtasun. Learning deep structured models. In ICML, pages 1785-1794, 2015. 2
+[3] Shang-Fu Chen, Yi-Chen Chen, Chih-Kuan Yeh, and Yu-Chiang Frank Wang. Order-free rnns with visual attention for multi-label classification. In AAAI Conference on Artificial Intelligence, 2018. 1, 2, 3, 5, 6, 8
+[4] Tianshui Chen, Zhouxia Wang, Guanbin Li, and Liang Lin. Recurrent attentional reinforcement learning for multi-label image recognition. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018. 8
+[5] X. Chen and C. Zitnick. Mind's eye: A recurrent visual representation for image caption generation. In CVPR, 2015. 3
+[6] Kyunghyun Cho, Bart van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. In Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translation, 2014. 2
+[7] Tat-Seng Chua, Jinhui Tang, Richang Hong, Haojie Li, Zhiping Luo, and Yan-Tao Zheng. Nus-wide: A real-world web image database from national university of singapore. In Proc. of ACM Conf. on Image and Video Retrieval (CIVR'09), Santorini, Greece., July 8-10, 2009. 5
+[8] J. Donahue, L. Hendricks, S. Guadarrama, M. Rohrbach, S. Venugopalan, . Saenko, and T.Darrell. Long-term recurrent convolutional networks for visual recognition and description. In CVPR, 2015. 3
+[9] H. Fang, S. Gupta, F. Iandola, R. Srivastava, L. Deng, and P. Dollár others. From captions to visual concepts and back. In CVPR, pages 1473-1482, 2015. 3
+[10] Weifeng Ge, Sibei Yang, and Yizhou Yu. Multi-evidence filtering and fusion for multi-label classification, object detection and semantic segmentation based on weakly supervised learning. In CVPR, pages 1277-1286, 2018. 8
+[11] Nadia Ghamrawi and Andrew McCallum. Collective multi-label classification. In Proceedings of the 14th ACM international conference on Information and knowledge management, pages 195-200. ACM, 2005. 2
+[12] Yunchao Gong, Yangqing Jia, Thomas Leung, Alexander Toshev, and Sergey Ioffe. Deep convolutional ranking for multilabel image annotation. arXiv preprint arXiv:1312.4894, 2013. 2
+[13] Alex Graves, Navdeep Jaitly, and Abdel-rahman Mohamed. Hybrid speech recognition with deep bidirectional LSTM. In IEEE workshop on automatic speech recognition and understanding, pages 273–278, 2013. 1
+[14] Hao Guo, Kang Zheng, Xiaochuan Fan, Hongkai Yu, and Song Wang. Visual attention consistency under image transforms for multi-label image classification. In CVPR, pages 729-739, 2019. 8
+[15] Yuhong Guo and Suicheng Gu. Multi-label classification using conditional dependency networks. In Twenty-Second In
+
+ternational Joint Conference on Artificial Intelligence, 2011. 2
+[16] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770-778, 2016. 6
+[17] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735-1780, 1997. 1, 2
+[18] Md. Zakir Hossain, Ferdous Sohel, Mohd Fairuz Shiratuddin, and Hamid Laga. A Comprehensive Survey of Deep Learning for Image Captioning. ACM Computing Surveys, 51(6):1-36, feb 2019. 3
+[19] Hexiang Hu, Guang-Tong Zhou, Zhiwei Deng, Zicheng Liao, and Greg Mori. Learning structured inference neural networks with label relations. In CVPR, June 2016. 7
+[20] Pavel Izmailov, Dmitrii Podoprikhin, Timur Garipov, Dmitry Vetrov, and Andrew Gordon Wilson. Averaging weights leads to wider optima and better generalization. arXiv preprint arXiv:1803.05407, 2018.6
+[21] Jiren Jin and Hideki Nakayama. Annotation order matters: Recurrent image annotator for arbitrary length image tagging. In Proc. ICPR, pages 2452-2457. IEEE, 2016. 1, 2, 3, 4, 6
+[22] Justin Johnson, Lamberto Ballan, and Li Fei-Fei. Love thy neighbors: Image annotation by exploiting image metadata. In ICCV, pages 4624–4632, 2015. 5
+[23] J. Johnson, A. Karpathy, and L. Fei-Fei. Densecap: Fully convolutional localization networks for dense captioning. ICCV, 2015. 3
+[24] A. Karpathy and L. Fei-Fei. Deep visual-semantic alignments for generating image descriptions. In CVPR, 2015. 3
+[25] R. Kiros, R. Salakhutdinov, and R. Zemel. Unifying visual-semantic embeddings with multimodal neural language models. TACL, 2015. 3
+[26] Harold W Kuhn. The hungarian method for the assignment problem. Naval research logistics quarterly, 2(1-2):83-97, 1955. 4
+[27] Dangwei Li, Xiaotang Chen, and Kaiqi Huang. Multi-attribute learning for pedestrian attribute recognition in surveillance scenarios. In 2015 3rd IAPR Asian Conference on Pattern Recognition (ACPR), pages 111–115. IEEE, 2015. 8
+[28] Liang Li, Shuhui Wang, Shuqiang Jiang, and Qingming Huang. Attentive recurrent neural network for weak-supervised multi-label image classification. In 2018 ACM Multimedia Conference on Multimedia Conference, pages 1092-1100. ACM, 2018. 8
+[29] Yining Li, Chen Huang, Chen Change Loy, and Xiaou Tang. Human attribute recognition by deep hierarchical contexts. In ECCV, pages 684-700. Springer, 2016. 5
+[30] Yuncheng Li, Yale Song, and Jiebo Luo. Improving pairwise ranking for multi-label image classification. In CVPR, pages 3617-3625, 2017. 8
+[31] 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 ECCV, pages 740-755. Springer, 2014. 5
+
+[32] Feng Liu, Tao Xiang, Timothy M Hospedales, Wankou Yang, and Changyin Sun. Semantic regularisation for recurrent image annotation. In CVPR, pages 2872-2880, 2017. 1, 2, 3, 4, 5, 8
+[33] Xihui Liu, Haiyu Zhao, Maoqing Tian, Lu Sheng, Jing Shao, Shuai Yi, Junjie Yan, and Xiaogang Wang. Hydraplus-net: Attentive deep features for pedestrian analysis. In ICCV, pages 350-359, 2017. 5, 8
+[34] Yongcheng Liu, Lu Sheng, Jing Shao, Junjie Yan, Shiming Xiang, and Chunhong Pan. Multi-label image classification via knowledge distillation from weakly-supervised detection. In ACM International Conference on Multimedia, pages 700-708, 2018. 8
+[35] J. Mao, W. Xu, Y. Yang, J. Wang, Z. Huang, and A. Yuille. Deep captioning with multimodal recurrent neural networks (m-rnn). *ICLR*, 2015. 3
+[36] Yulei Niu, Zhiwu Lu, Ji-Rong Wen, Tao Xiang, and Shih-Fu Chang. Multi-modal multi-scale deep learning for large-scale image annotation. IEEE Transactions on Image Processing, 28(4):1720-1731, 2019. 8
+[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-W, 2017. 6
+[38] Luis Pineda, Amaia Salvador, Michal Drozdal, and Adriana Romero. Elucidating image-to-set prediction: An analysis of models, losses and datasets. arXiv preprint arXiv:1904.05709, 2019. 3
+[39] Jesse Read, Bernhard Pfahringer, Geoff Holmes, and Eibe Frank. Classifier chains for multi-label classification. Machine learning, 85(3):333, 2011. 2
+[40] D.E. Rumelhart, G.E. Hintont, and R.J. Williams. Learning representations by back-propagating errors. Nature, 323(6088):533-536, 1986. 2
+[41] 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. International journal of computer vision, 115(3):211-252, 2015. 6
+[42] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. 6
+[43] Nitish Srivastava, Elman Mansimov, and Ruslan Salakhudinov. Unsupervised learning of video representations using lstms. In ICML, pages 843-852, 2015. 1
+[44] Ilya Sutskever, Oriol Vinyals, and Quoc V Le. Sequence to sequence learning with neural networks. In NIPS, pages 3104-3112, 2014. 1
+[45] Oriol Vinyals, Samy Bengio, and Manjunath Kudlur. Order matters: Sequence to sequence for sets. In ICLR, 2016. 2, 5
+[46] Oriol Vinyals, Alexander Toshev, Samy Bengio, and Dumitru Erhan. Show and tell: A neural image caption generator. In CVPR, pages 3156-3164, 2015. 1, 2
+[47] O. Vinyals, A. Toshev, S. Bengio, and D. Erhan. Show and tell: A neural image caption generator. In CVPR, pages 3156-3164, 2015. 3
+
+[48] Jiang Wang, Yi Yang, Junhua Mao, Zhiheng Huang, Chang Huang, and Wei Xu. Cnn-rnn: A unified framework for multi-label image classification. In CVPR, pages 2285-2294, 2016. 1, 2, 3, 4, 6, 7, 8
+[49] Yunchao Wei, Wei Xia, Junshi Huang, Bingbing Ni, Jian Dong, Yao Zhao, and Shuicheng Yan. Cnn: Single-label to multi-label. arXiv preprint arXiv:1406.5726, 2014. 2
+[50] Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In International conference on machine learning, pages 2048-2057, 2015. 2, 3
+[51] K. Xu, J. Ba, R. Kiros, K. Cho, A. Courville, R. Salakhudinov, R. Zemel, and Y. Bengio. Show, attend and tell: Neural image caption generation with visual attention. In ICML, 2015. 3
+[52] Feng Zhu, Hongsheng Li, Wanli Ouyang, Nenghai Yu, and Xiaogang Wang. Learning spatial regularization with image-level supervisions for multi-label image classification. In CVPR, pages 5513-5522, 2017. 8
\ No newline at end of file
diff --git a/orderlessrecurrentmodelsformultilabelclassification/images.zip b/orderlessrecurrentmodelsformultilabelclassification/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..99a7feef0f14eedc7b40da237e1e3a3829693e8d
--- /dev/null
+++ b/orderlessrecurrentmodelsformultilabelclassification/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fab04e52959c6c2ed9d2d688b5c93a1192219dbd041ae7f53bc7d943d1e5d388
+size 427435
diff --git a/orderlessrecurrentmodelsformultilabelclassification/layout.json b/orderlessrecurrentmodelsformultilabelclassification/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..507dd40014051bfd713f50d8536a0feff46914a2
--- /dev/null
+++ b/orderlessrecurrentmodelsformultilabelclassification/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:df9ac4b07905b2448bf576a4513f00b4f80819b1fbe8a52115e9a43a0b93b40d
+size 373042
diff --git a/organatrisksegmentationforheadandneckcancerusingstratifiedlearningandneuralarchitecturesearch/c0e96116-65fc-4f7e-86f0-8ba7b23c0610_content_list.json b/organatrisksegmentationforheadandneckcancerusingstratifiedlearningandneuralarchitecturesearch/c0e96116-65fc-4f7e-86f0-8ba7b23c0610_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..37b9599999ee7ec5be7a89c653452520b6c587b2
--- /dev/null
+++ b/organatrisksegmentationforheadandneckcancerusingstratifiedlearningandneuralarchitecturesearch/c0e96116-65fc-4f7e-86f0-8ba7b23c0610_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:88b549a6f267cfba758404022a0ba7618b6ea224c79fb081401de26dd8f7a295
+size 78084
diff --git a/organatrisksegmentationforheadandneckcancerusingstratifiedlearningandneuralarchitecturesearch/c0e96116-65fc-4f7e-86f0-8ba7b23c0610_model.json b/organatrisksegmentationforheadandneckcancerusingstratifiedlearningandneuralarchitecturesearch/c0e96116-65fc-4f7e-86f0-8ba7b23c0610_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..70b0dece428bf6ca71a10a018185df0babfbe218
--- /dev/null
+++ b/organatrisksegmentationforheadandneckcancerusingstratifiedlearningandneuralarchitecturesearch/c0e96116-65fc-4f7e-86f0-8ba7b23c0610_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:16a147898d93e83a4bf2434121ffbfbb48414a65e0c6c482b5d82aea5afa2fbe
+size 95978
diff --git a/organatrisksegmentationforheadandneckcancerusingstratifiedlearningandneuralarchitecturesearch/c0e96116-65fc-4f7e-86f0-8ba7b23c0610_origin.pdf b/organatrisksegmentationforheadandneckcancerusingstratifiedlearningandneuralarchitecturesearch/c0e96116-65fc-4f7e-86f0-8ba7b23c0610_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..ca432225fb02cb0f6f59108588f5e3db0b28b733
--- /dev/null
+++ b/organatrisksegmentationforheadandneckcancerusingstratifiedlearningandneuralarchitecturesearch/c0e96116-65fc-4f7e-86f0-8ba7b23c0610_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c2c15f938ac0b9a415481f0090e674aff858b1ce6efd2d47eb893ea80b0cdb2c
+size 1518505
diff --git a/organatrisksegmentationforheadandneckcancerusingstratifiedlearningandneuralarchitecturesearch/full.md b/organatrisksegmentationforheadandneckcancerusingstratifiedlearningandneuralarchitecturesearch/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..41b9b8c28ddc3cbfd8a18115b9b11e7a3ab76e1f
--- /dev/null
+++ b/organatrisksegmentationforheadandneckcancerusingstratifiedlearningandneuralarchitecturesearch/full.md
@@ -0,0 +1,314 @@
+# Organ at Risk Segmentation for Head and Neck Cancer using Stratified Learning and Neural Architecture Search
+
+Dazhou Guo $^{1}$ Dakai Jin $^{1}$ Zhuotun Zhu $^{3}$ Tsung-Ying Ho $^{2}$ Adam P. Harrison $^{1}$ Chun-Hung Chao $^{4}$ Jing Xiao $^{5}$ Le Lu $^{1}$
+
+$^{1}$ PAII Inc. $^{2}$ Chang Gung Memorial Hospital $^{3}$ The Johns Hopkins University $^{4}$ National Tsing Hua University $^{5}$ Ping An Technology
+
+# Abstract
+
+Organ at risk (OAR) segmentation is a critical step in radiotherapy of head and neck (H&N) cancer, where inconsistencies across radiation oncologists and prohibitive labor costs motivate automated approaches. However, leading methods using standard fully convolutional network workflows that are challenged when the number of OARs becomes large, e.g. $>40$ . For such scenarios, insights can be gained from the stratification approaches seen in manual clinical OAR delineation. This is the goal of our work, where we introduce stratified organ at risk segmentation (SOARS), an approach that stratifies OARs into anchor, mid-level, and small & hard (S&H) categories. SOARS stratifies across two dimensions. The first dimension is that distinct processing frameworks are used for each OAR category. In particular, inspired by clinical practices, anchor OARs are used to guide the mid-level and S&H categories. The second dimension is that distinct network architectures are used to manage the significant contrast, size, and anatomy variations between different OARs. We use differentiable neural architecture search (NAS), allowing the network to choose among 2D, 3D or Pseudo-3D convolutions. Extensive 4-fold cross-validation on 142 H&N cancer patients with 42 manually labeled OARs, the most comprehensive OAR dataset to date, demonstrates that both framework- and NAS-stratification significantly improves quantitative performance over the state-of-the-art (from $70.44\%$ to $75.14\%$ in absolute Dice scores). Thus, SOARS provides a powerful and principled means to manage the highly complex segmentation space of OARs.
+
+# 1. Introduction
+
+Head and neck (H&N) cancer is one of the most common cancers worldwide [17]. High-precision radiation therapy, e.g. intensity-modulated radiotherapy, has been widely used
+
+
+anchor
+
+
+anchor + mid-level
+
+
+all 42 OARs
+small & hard
+
+
+Figure 1. Illustration of 42 OARs in 3D demonstrating their various contrasts, sizes, and shapes in RTCT.
+
+for H&N cancer treatment because of its ability for highly conformal dose delivery. In this process, the radiation dose to normal anatomical structures, i.e. organs at risk (OARs), should be controlled to minimize post-treatment complications [11]. This requires accurate delineation of tumors and OARs in radiotherapy computed tomography (RTCT) images [2, 18, 19, 22, 27, 37]. Clinically, OAR segmentation is predominantly carried out manually by radiation oncologists. Manual delineation is not only time consuming, e.g. $>2$ hrs for 9 OARs, but also suffers from large interpractitioner variability [11]. Unsurprisingly, with more OARs included, time requirements increase significantly, limiting the number of patients who may receive timely radiotherapy [26]. These issues have spurred efforts toward automatic OAR segmentation in H&N cancer [29]. Despite this progress, performance gaps remain, calling for approaches better tailored to this distinct and challenging problem. This is the goal of our work.
+
+By their nature, H&N OARs are 1) complex in anatomical shapes, 2) dense in spatial distributions, 3) large in size variations, and 4) low in RTCT image contrast. Currently, deep convolutional neural networks (CNNs) are a dominant approach[1, 9, 15, 27, 37-39, 41, 46]. How
+
+ever, existing methods either perform whole volume segmentation [27, 46] or segmentation-by-detection [9, 37]. Yet, model optimization becomes increasingly difficult as greater numbers of OARs need to be segmented. Leveraging insights from clinical practices can help ease the corresponding difficulties.
+
+Within the clinic, radiation oncologists typically refer to easy OARs when delineating harder ones, e.g. the eyes, brain stem, and mandible, to serve as anchors to segment hard OARs, such as different types of soft-tissue H&N glands [36]. Figure 1 visually illustrates this stratification. As such, this process suggests that automated solutions could benefit from also stratifying OARs, both to create anchors and to create tailor-made analysis workflows for each stratification. Indeed, Gao et al. [9] showed that exploiting two branches for OAR segmentation boosts overall performance. However, large OARs did not serve as support to small OARs in that work. Moreover, the network architecture was manually crafted and fixed across OAR stratifications. Yet, given their highly distinct natures, different OARs likely require different network architectures for optimal performance. It is difficult to see how regular CNNs can meet these needs.
+
+Our work fills this gap by introducing stratified organ at risk segmentation (SOARS), a novel stratified learning framework to segment OARs. SOARS divides OARs into three levels, i.e. anchor, mid-level, and small & hard (S&H). Emulating clinical practice, each is processed using tailored workflows. Anchor OARs are high in intensity contrast and low in inter- and intra-reader variability. Thus these can be segmented first to provide informative location references to the harder categories. Mid-level OARs are low in contrast, but not inordinately small. We provide anchor-level predictions as additional input for mid-level segmentation as guidance and reference-based grounding. S&H OARs are very poor in contrast and very small. Similar to mid-level OARs, we use anchor OARs to guide S&H segmentation. However, we use a detection followed by segmentation strategy [9], to better manage the extremely unbalanced class distributions across the entire volume. While this workflow provides specialized frameworks for each OAR category, data processing could be even better tailored, as it is unlikely the same network architecture suits each stratification equally. Thus, we deploy an additional dimension of stratification, using neural architecture search (NAS) to automatically search the optimal architecture for each category. Concretely, we formulate the structure learning as a differentiable NAS [23, 24, 47], allowing for an automatic selection across 2D, 3D or Pseudo-3D (P3D) convolutions with kernel sizes of 3 or 5 at each convolutional block.
+
+Using four-fold cross-validation, we evaluate SOARS on 142 RTCT images with 42 annotated OARs, the most comprehensive H&N OAR dataset to date. We demonstrate
+
+that both dimensions of our stratification, i.e. category-specific processing and NAS, significantly impact performance. We achieve an average Dice score (DSC) and Hausdorff distance (HD) of $75.14\%$ and $6.98\mathrm{mm}$ , respectively, which corresponds to improvements of $7.51\%$ and $2.41\mathrm{mm}$ , respectively over a non-stratified baseline. Compared to the state-of-the-art, a 3D Mask R-CNN based UaNet method [37], we produce improvements of $4.70\%$ and $2.22\mathrm{mm}$ , in DSC and HD, respectively. Validation on a public dataset (the MICCAI 2015 OAR Challenge [29]), further confirms these compelling performance improvements. In summary, the contributions and novelty of this paper are three folds:
+
+- Segmenting a comprehensive set of OARs is essential and critical for radiotherapy treatment planing in head and neck cancer. We work on the most clinically complete and desirable set of 42 OARs as compared to previous state-of-the-art work.
+- Our main methodological contribution is the proposed whole framework on stratifying different organs into different categories of OARs which to be dealt respectively with tailored segmentors (achieved by NAS). Our method is a well-calibrated framework of integrating organ stratification, multi-stage segmentation and NAS in a synergy.
+- Our idea of stratifying the 42 OARs into three levels comes from the combination of emulation of oncologists manual OAR contouring knowledge and the OAR's size distributions. To our best knowledge, this simple yet effective organ stratification scheme has not been studied for such a complex segmentation and parsing task like ours, by previous work.
+
+# 2. Related Works
+
+OAR Segmentation There is a large body of work on OARs segmentation. Atlas-based approaches [10, 16, 33-35, 40] enjoy a prominent history [20, 29]. Their main disadvantage is a reliance on accurate and efficient image registration [46], which is challenged by shape variations, normal tissue removal, abnormal tissue growth, and image acquisition differences [44]. Registration often also take many minutes or even hours to complete. Another common approach is statistical shape or appearance models [5, 6, 32]. These have shown promise, but a prominent issue is that they can be limited to specific shapes described by the statistical model, which makes them less flexible when the number of OARs is large [8]. Of note is Tong et al. [39], who applied intensity and texture-based fuzzy models using a hierarchical stratification.
+
+Recently, deep CNN based approaches have proven capable of delivering substantially better performance.
+
+
+
+
+Figure 2. (a) SOARS stratifies OAR segmentation across two dimensions: distinct processing frameworks and distinct architectures. We execute the latter using differentiable NAS. (b) depicts illustrates the backbone network (P-HNN) with NAS, which allows for an automatic selection across 2D, 3D, P3D convolutions. (c) demonstrates the NAS search space setting.
+
+Apart from early efforts [15], fully convolutional networks (FCNs) have quickly become the mainstream method [18, 27, 38, 46]. To address data imbalance issues when faced with S&H OARs, FocusNet [9] and UaNet [37] adopt a segmentation-by-detection strategy to achieve better segmentation accuracy. However, both approaches do not stratify OARs, and hence, cannot use easier OARs as support to more difficult ones. Moreover, when the number of OARs is large, e.g. $>40$ , optimization becomes more difficult. Finally, their network architecture remains manually fixed, which is less optimized for the distinct OARs categories.
+
+Stratified Learning Stratification is an effective strategy to decouple a complicated task into easier sub-tasks. Computer vision has a long history using this strategy. Several contextual learning models have been used to assist general object detection [14, 28] within the conditional random field framework [21]. Instance learning, i.e. instance localization, segmentation and categorization, often stratifies the problem into multiple sub-tasks [3, 7, 13]. Within medical imaging, stratified statistical learning has also been used to recognize whether a candidate nodule connects to any other major lung anatomies [43]. Yet, the use of stratified learning for semantic segmentation, particularly in the deep-learning era, is still relatively understudied in medical imaging. Within OAR segmentation, Tong et al. [39] have applied a hierarchical stratification, but this used a non-deep fuzzy-connectedness model. We are the first to execute stratified learning for deep OAR segmentation.
+
+Neural Architecture Search This is the process of automatically discovering better network architectures. Many NAS methods exploit reinforcement learning [48] or evolutionary algorithms [30]. However, both strategies are extremely computationally demanding. Differentiable NAS [23, 24, 47] realize all candidate architectures simultaneously during optimization, limiting the allowable or feasi-
+
+ble search spaces. Nonetheless, these approaches are highly practical means to tailor architectures. In this work, we follow the differentiable NAS formulation [24, 47] to search the architectures for each of the three OAR stratifications. We explore the optimal kernel size and combination of 2D, 3D, and P3D configurations. As such, we are the first to apply NAS to OAR segmentation.
+
+# 3. Methods
+
+Figure 2 depicts the SOARS framework, which uses three processing branches to stratify anchor, mid-level and S&H OARs segmentation. A first stratification dimension is distinct processing frameworks. SOARS first segments the anchor OARs. Then, with the help of predicted anchors, mid-level and S&H OARs are segmented. For the most difficult category of S&H, we first detect center locations and then zoom-in to segment the small OARs. The deeply-supervised 3D P-HNN [12] is adopted as the backbone for all three branches, which uses deep supervision to progressively propagate lower-level features to higher-level ones using a parameter-less pathway. We opt for this backbone due to its good reported performance in other RTCT works [18, 19]. A second dimension of stratification uses differentiable NAS to search distinct P-HNN convolutional blocks for each OAR category.
+
+# 3.1. Processing Stratification
+
+As mentioned, SOARS segments OARs using three distinct frameworks, where OARs are divided according to clinician recommendations (the details for our 42 OAR dataset is reported in Sec. 4.1). We denote the training data of $N$ data instances as $\mathbb{S} = \left\{X_{n},Y_{n}^{\mathrm{A}},Y_{n}^{\mathrm{M}},Y_{n}^{\mathrm{S}}\right\}_{n = 1}^{N}$ where $X_{n},Y_{n}^{\mathrm{A}},Y_{n}^{\mathrm{M}}$ , and $Y_{n}^{\mathrm{S}}$ denote the input RTCT and ground-truth masks for anchor, mid-level, and S&H OARs,
+
+respectively. Here, we drop $n$ , when appropriate, for clarity. Throughout, we will abuse matrix/vector notation, using boldface to denote vector-valued volumes and use vector concatenation as an operation across all voxel locations. Anchor branch: Assuming we have $C$ classes, SOARS first uses the anchor branch to generate OAR prediction maps for every voxel location, $j$ , and every output class, $c$ :
+
+$$
+\hat {Y} _ {c} ^ {\mathrm {A}} (j) = p ^ {\mathrm {A}} \left(Y ^ {\mathrm {A}} (j) = c \mid X; \mathbf {W} ^ {\mathrm {A}}\right), \tag {1}
+$$
+
+$$
+\hat {\mathbf {Y}} ^ {\mathrm {A}} = \left[ \hat {Y} _ {1} ^ {\mathrm {A}} \dots \hat {Y} _ {C} ^ {\mathrm {A}} \right], \tag {2}
+$$
+
+where $p^{\mathrm{A}}(\cdot)$ and $\hat{\mathbf{Y}}_c^{\mathrm{A}}$ denote the CNN functions and output segmentation maps, respectively. Here, predictions are vector valued 3D masks as they provide a pseudo-probability for every class. $\mathbf{W}^{(\cdot)}$ represents the corresponding CNN parameters.
+
+Anchor OARs have high contrast compared to surrounding tissue or are in easy-to-locate regions; hence, it is relatively easy to segment them directly and robustly based on pure appearance and context features. Consequently, they are ideal candidates to support the segmentation of other OARs.
+
+Mid-level branch: Most mid-level OARs are primarily soft tissue, which have low contrast and can be easily confused with other structures with similar intensities and shapes. Direct segmentation can lead to false-positives or over/undersegmentations. This can be addressed by using processing stratification to directly incorporate anchor predictions into mid-level learning, since the anchor predictions are robust and provide highly informative location and semantically-based cues. As demonstrated in Figure 2, we combine the anchor predictions with the RTCT to create a multi-channel input: $\left[X,\hat{\mathbf{Y}}^A\right]$ :
+
+$$
+\hat {Y} _ {c} ^ {\mathrm {M}} (j) = p ^ {\mathrm {M}} \left(Y ^ {\mathrm {M}} (j) = c | X, \hat {\mathbf {Y}} ^ {\mathrm {A}}; \mathbf {W} ^ {\mathrm {M}}\right). \tag {3}
+$$
+
+In this way, the mid-level branch leverages both the computed tomography (CT) intensities as well as the anchor OAR guidance, which can be particularly helpful in managing regions with otherwise similar CT appearance. Like (2), we can collect mid-level predictions into a vector-valued entity $\hat{\mathbf{Y}}^M$ .
+
+Small & hard branch: In this branch, we further decouple segmentation into a detection followed by segmentation process. Directly segmenting the fine boundaries of S&HOARs from CT is very challenging due to the poor contrast and the extremely imbalanced foreground and background distributions when considering the entire volume. In contrast, the detection of center regions of S&HOARs is a much easier problem, since the H&N region has relatively stable anatomical spatial distribution. This means
+
+that the rough locations of S&H OARs can be inferred from the CT context with confidence. Once the center location is detected, a localized region can be cropped out to focus on segmenting the fine boundaries in a zoom-in fashion. This has similarities to Gao et al.'s [9] approach to segment small organs.
+
+For detecting S&H OAR centers, we adopt a simple yet effective heat map regression method [42, 45], where the heat map labels are created at each organ center using a 3D Gaussian kernel. Similar to the mid-level branch, to increase detection robustness and accuracy we also combine the anchor branch predictions with the RTCT as the detection input channels:
+
+$$
+\hat {\mathbf {H}} = f (X, \hat {\mathbf {Y}} ^ {A}; \mathbf {W} ^ {D}) \tag {4}
+$$
+
+where $\hat{\mathbf{H}}$ denotes the predicted heat maps for every S&HOAR. Like the segmentation networks, we use the same P-HNN backbone for $f(\cdot)$ . Given the resulting regressed heat map, we choose the pixel location corresponding to the highest value, and crop a volume of interest (VOI) using three-times the extent of the maximum size of the OAR of interest. With the VOI cropped, SOARS can then segment fine boundaries of the S&HOARs. As illustrated in Figure 2, we concatenate the output from Eq. (4) together with the cropped RTCT image as the input to the S&HOAR segmentation network:
+
+$$
+\hat {Y} _ {c} ^ {\mathrm {S}} (j) = p ^ {\mathrm {S}} \left(Y ^ {\mathrm {S}} (j) = c | X, \hat {\mathbf {H}} ^ {\prime}; \mathbf {W} ^ {\mathrm {S}}\right), \tag {5}
+$$
+
+where here it's understood that (5) is only operating on the cropped region.
+
+# 3.2. Architectural Stratification
+
+While stratifying OARs into different processing frameworks with distinct inputs and philosophies is key to pushing performance, more can be done. Namely, considering the significant variations in OAR appearance, shape, and size, it is likely that each OAR type would benefit from segmentation branch architectures tailored to their needs. To do this, SOARS automatically searches network architectures for each branch, adding an additional dimension to the stratification. Throughout, we use P-HNN [12] as the base backbone. The whole network structure is illustrated in Figure 2, in which the architecture is learned in a differentiable way [24].
+
+Let $\phi (\cdot ;\omega_{x\times y\times z})$ denote a composite function of the following consecutive operations: batch normalization, a rectified linear unit and a convolution with an $x\times y\times z$ dimension kernel. If one of the dimensions of the kernel is set to 1, it reduces to a 2D kernel. As shown in Eq. (6), we search a set of possible architectures that include: 2D convolutions, 3D convolutions, or pseudo-3D convolution with
+
+either kernel sizes of 3 or 5:
+
+$$
+\phi_ {2 \mathrm {D} _ {3}} = \phi (\cdot ; \omega_ {3 \times 3 \times 1}),
+$$
+
+$$
+\phi_ {2 \mathrm {D} _ {5}} = \phi (\cdot ; \omega_ {5 \times 5 \times 1}),
+$$
+
+$$
+\phi_ {3 \mathrm {D} _ {3}} = \phi (\cdot ; \omega_ {3 \times 3 \times 3}),
+$$
+
+$$
+\phi_ {\mathrm {3 D} _ {5}} = \phi (\cdot ; \omega_ {5 \times 5 \times 5}), \tag {6}
+$$
+
+$$
+\phi_ {\mathrm {P 3 D} _ {3}} = \phi (\phi (\cdot ; \omega_ {3 \times 3 \times 1}); \omega_ {1 \times 1 \times 3}),
+$$
+
+$$
+\phi_ {\mathrm {P 3 D} _ {5}} = \phi (\phi (\cdot ; \omega_ {5 \times 5 \times 1}); \omega_ {1 \times 1 \times 5}),
+$$
+
+$$
+\boldsymbol {\Phi} = \left\{\phi_ {2 \mathrm {D} _ {3}}, \phi_ {2 \mathrm {D} _ {5}}, \phi_ {3 \mathrm {D} _ {3}}, \phi_ {3 \mathrm {D} _ {5}}, \phi_ {\mathrm {P} 3 \mathrm {D} _ {3}}, \phi_ {\mathrm {P} 3 \mathrm {D} _ {5}} \right\},
+$$
+
+where $\Phi$ denotes the search space of possible architectures. For simplicity, instead of a layer-by-layer architecture search, we use only one type of convolutional kernel to build each P-HNN convolutional block.
+
+Similar to [24, 47], we make the search space continuous by relaxing the categorical choice of a particular operation to a softmax over all 6 possible operations. More formally, if we index each possibility in (6) by $k$ , then we can define a set of 6 learnable logits for each, denoted $a_{k}$ . A softmax can then be used to aggregate all possible architectures into one combined output, $\phi'$ :
+
+$$
+\gamma_ {k} = \frac {\exp (\alpha_ {k})}{\sum_ {m} \exp (\alpha_ {m})} \tag {7}
+$$
+
+$$
+\phi^ {\prime} = \sum_ {k} \gamma_ {k} \phi_ {k}, \tag {8}
+$$
+
+where we have dropped dependence on the input images for convenience. As Zhu et al. demonstrated [47], this type of NAS scheme can produce significant gains within medical image segmentation. This creates a sort of super network that comprises all possible manifestations of (6). This super network can be optimized in the same manner as standard networks. At the end of the NAS, the chosen network architecture of each block, $\tilde{\phi}$ , can be determined by selecting the $\phi$ corresponding to the largest $\alpha_{k}$ value. If the index to this maximum is denoted $\tilde{k}$ , then $\tilde{\phi} = \phi_{\tilde{k}}$ . If we have $b$ blocks, then based on (8), the searched network can be represented as $\tilde{p}\left(\cdot ;\tilde{\mathbf{W}}\right) = \tilde{\phi}^{b}\left(\tilde{\phi}^{b - 1}\left(\dots \tilde{\phi}^{1}\left(\cdot ;\tilde{\omega}^{1}\right);\tilde{\omega}^{b - 1}\right);\tilde{\omega}^{b}\right)$ , where $(\cdot)$ denotes the searched network architecture. For consistency, we use the same strategy to search the network architecture for each branch of SOARS.
+
+# 4. Experiments
+
+# 4.1. Datasets and Preprocessing
+
+To evaluate performance, we collected 142 anonymized non-contrast RTCT images in H&N cancer patients, where 42 OARs are delineated during the target contouring process for radiotherapy (hereafter denoted as H&N 42 dataset). Extensive 4-fold cross validation, split at the patient level, was conducted on the H&N 42 dataset to report
+
+results. We compare against other state-of-the-art methods including P-HNN [12], UNet [4], and UaNet [37]. To evaluate the effectiveness of SOARS, we conducted two ablation studies using 1 fold of the dataset. Furthermore, we examined our performance using the public MICCAI 2015 head and neck auto-segmentation challenge data1 (referred hereafter as MICCAI2015). This external testing set contains 9 OARs with 15 test cases. Evaluation metrics: We report the segmentation performance using DSC in percentage, HD and ASD in mm. Note that we use HD metric instead of HD95 as reported in some previous works.
+
+H&N 42 OARs dataset: Each CT scan is accompanied by 42 OAR 3D masks annotated by an experienced oncologist. The average CT size is $512 \times 512 \times 360$ voxels with an average resolution of $0.95 \times 0.95 \times 1.9 \mathrm{~mm}$ . The specific OARs stratification is as follows. Anchor OARs: brain stem, cerebellum, eye (left and right), mandible (left and right), spinal cord and temporomandibular joint (left and right). Mid-level OARs: brachial plexus (left and right), basal ganglia (left and right), constrictor muscle (inferior, middle and superior), epiglottis, esophagus, hippocampus (left and right), larynx core, oralcavity, parotid (left and right), submandibular gland (left and right), temporal lobe (left and right), thyroid (left and right). S&H OARs: cochlea (left and right), hypothalamus, inner ear (left and right), lacrimal gland (left and right), optic nerve (left and right), optic chiasm, pineal gland, and pituitary.
+
+MICCAI2015 dataset: This dataset has been extensively used by researchers to evaluate atlas and deep learning based H&N OAR segmentation. It contains 33 training cases and 15 test cases with 9 OARs annotated. The 9 OARs include brain stem, mandible, optic chiasm, optic nerve (left and right), parotid (left and right) and submandibular gland (left and right).
+
+Image preprocessing: We apply a windowing of $[-500, 1000]$ HU to every CT scan covering the intensity range of our target OARs, from which we extract $128 \times 128 \times 64$ VOIs as training samples for the anchor and mid-level branches as well as the detection module in the S&H branch. The heat map labels in the detection module is a 3D Gaussian distribution with a standard deviation of $8\mathrm{mm}$ . The training VOIs are sampled in two manners: (1) we randomly extract VOIs centered within each of the OARs to ensure sufficient positive samples. (2) we randomly sample additional 15 VOIs from the whole volume to obtain sufficient negative examples. This results in on average 70 VOIs per CT scan. We further augment the training data by applying random scaling between $0.8 - 1.2$ . In testing, 3D sliding windows with sub-volumes of $128 \times 128 \times 64$ and strides of $96 \times 96 \times 32$ voxels are used. The probability maps of sub-volumes are aggregated to obtain the whole volume
+
+Anchor OARs
+
+ | DSC | HD | ASD |
| Baseline | 84.02 | 5.98 | 0.82 |
| CT Only | 84.14 | 5.25 | 0.79 |
| CT+NAS | 85.73 | 4.77 | 0.77 |
+
+Mid-level OARs
+
+ | DSC | HD | ASD |
| Baseline | 63.68 | 12.97 | 3.48 |
| CT Only | 67.31 | 12.03 | 3.97 |
| CT+Anchor | 70.73 | 10.34 | 1.67 |
| CT+Anchor+NAS | 72.55 | 9.05 | 1.31 |
+
+S&HOARs
+
+ | DSC | HD | ASD |
| Baseline | 60.97 | 4.86 | 0.98 |
| CT Only | 62.09 | 4.19 | 1.06 |
| CT+Heat map | 71.75 | 2.93 | 0.52 |
| CT+Heat map +NAS | 72.57 | 2.94 | 0.49 |
+
+
+Figure 3. Qualitative mid-level OAR segmentation using different setups. The seven columns are seven representative axial slices in the RTCT image. For better comparison, we use red arrows to indicate the improvements. The $1^{st}$ row is the RTCT image with OAR delineations of a radiation oncologist. The $3^{rd}$ row shows the impact of using anchor OARs, which can help the segmentation of soft-tissue mid-level OARs. The $4^{th}$ demonstrates the impact of NAS, indicating the necessity of adapting network architectures for different OARs.
+
+Table 1. Quantitative results of the ablation studies of the proposed method using 1 fold of the dataset. The baseline network is a 3D P-HNN. For S&H OARs, all methods, except the baseline, segment on predicted VOIs. The performance is measured by DSC (unit: %), HD (unit: mm), and ASD (unit: mm).
+
+ | Dist (mm) |
| CT Only | 3.25±2.34 |
| CT+Anchor | 2.91±1.74 |
+
+Table 2. S&H OAR detection results measuring the average distance between regressed and true center points.
+
+prediction, taking on average 20s to process one input volume using a single GPU.
+
+# 4.2. Implementation Details
+
+We implemented SOARS in PyTorch $^2$ , and trained it on an NVIDIA Quadro RTX 8000. The RAdam solver [25] is used to optimize all models with a momentum of 0.9 and a weight decay of 0.005. The DSC loss is used for the
+
+segmentation task training. The S&H detection branch is trained using L2 loss with a 0.01 learning rate.
+
+We exploit NAS to search the optimal network architecture for each branch. For the NAS parameter $\alpha_{k}$ , we first fix $\alpha_{k}$ for 20 epochs. Then we update $\alpha_{k}$ and the network weights for an additional 30 epochs. The batch size for NAS training is set to 2. Note that we use only the validation set for $\alpha$ updating. The ratio between the training set and the validation set is 2:1. The initial learning rate is set to 0.005 for the anchor and mid-level branches, and 0.001 for the S&H branch.
+
+After NAS is completed, we retrain the searched network from scratch with a batch size of 12. The batch size is set to be 12. The initial learning rate is set to 0.01 for the anchor and mid-level branches, and 0.005 for the S&H
+
+branch. The detailed training strategy is described as follows: 1) We train the anchor branch for 50 epochs; 2) We fix the parameters of the anchor branch and concatenate its output to the original RTCT, followed by further training the mid-level and S&H branches for 50 epochs; 3) Finally we fine-tune the whole framework in an end-to-end manner for 10 epochs.
+
+# 4.3. Processing Stratification
+
+We first evaluate the effectiveness of the processing stratification of SOARS. The ablation results for segmenting the anchor, mid-level and S&H OARs are shown in Table 1. The baseline comparison is the 3D P-HNN model trained on all 42 OARs together. When anchor OARs are stratified to train only on themselves, there is a slight improvement as compared to the baseline model, consistent with the observation that anchor OARs generally have good contrast and are easy to optimize. However, when focusing on mid-level OARs, there is a marked DSC score improvement (3.63%) when only training on mid-level OARs instead of training on all. This demonstrates the difficulty in segmenting a large number of organs together without considering their differences. When further adding anchor OAR predictions as support, both DSC scores and the ASD experience large improvements, i.e. from 67.31% to 70.73% in DSC and 3.97 to 1.67mm in ASD. These significant error reductions indicate that anchor OARs serve as effective references to better delineate the hard-to-discern boundaries of mid-level organs (most are soft-tissue). Figure 3 depicts qualitative examples of segmenting mid-level OARs. As can be seen, our method achieves much better visual results.
+
+For the S&H branch, we first report the accuracy of the regressed center-point using the detection-by-segmentation network. As Table 2 demonstrates, the center points of S&H OARs can be detected with high robustness. Moreover, when using the anchor OARs as support, the distance errors between regressed and true center points are further reduced. In our experiments, no S&H OAR was missed by our detection-by-segmentation strategy, demonstrating the robustness of our approach. Now focusing on the segmentation results of Table 1, by cropping the VOI using the detection module, there is remarkable improvement in segmenting the S&H OARs, moving DSC from $62.09\%$ to $71.75\%$ , as compared against directly segmenting from the CT. This further demonstrates the value of our processing-based stratification method, which provides for optimal treatment of OAR categories with different characteristics. As the examples of Figure 4 demonstrate, the benefits of processing stratification for S&H OARs is clearly shown in the optic chiasm, hypothalamus, and pineal gland, which are insufficiently segmented/missed when using only RTCT for prediction.
+
+
+CT Only
+
+
+CT+HeatMap+NAS
+
+
+Figure 4. Examples of S&H OAR segmentation using different setups. For visualization purpose, the dashed rectangles are enlarged for highlighting improvements. As indicated using the red arrows, the proposed method achieves visually better optic chiasm, hypothalamus, and pineal gland segmentation.
+
+
+
+# 4.4. Architectural Stratification
+
+Table 1 also outlines the performance improvements provided by NAS. As can be seen, all three branches trained with NAS consistently produce more accurate segmentation results than those trained with the baseline 3D P-HNN network. This validates the effectiveness of NAS on complicated segmentation tasks. For the three branches, the anchor and mid-level branches have considerable performance improvement, from $84.14\%$ to $85.73\%$ and $70.73\%$ to $72.55\%$ in DSC scores respectively, while the S&H branch provides a marginal improvement (0.82% in DSC score). For segmenting the S&H OARs, the strong priors of detected heat maps may have already made the segmentation task much easier. Nonetheless, considering the dramatic improvements already provided by the stratified approach in Sec. 4.3, the fact that NAS is able to boost performance even further attests to its benefits. Some qualitative examples demonstrating the effectiveness of NAS are shown in Figure 3 and Figure 4.
+
+The searched network architectures for the anchor branch are 2D-kernel3, 2D-kernel5, 2D-kernel3 and 3D-kernel5 for the four convolution blocks, while for the mid-level branch they are 2D-kernel3, 2.5D-kernel5, 2D-kernel3 and 2.5D-kernel5. This is an interesting result, as it indicates that 3D kernels may not always be the best choice for segmenting objects with reasonable size, as mixed 2D or P3D kernels dominate both branches. Consequently, it is
+
+ | Anchor OARs | Mid-level OARs | S & H OARs | All OARs |
| DSC | HD | ASD | DSC | HD | ASD | DSC | HD | ASD | DSC | HD | ASD |
| UNet [4] | 82.97 | 8.90 | 1.06 | 63.61 | 11.06 | 1.92 | 59.64 | 6.38 | 1.31 | 66.62 | 9.26 | 1.86 |
| P-HNN [12] | 84.26 | 6.12 | 1.18 | 65.19 | 13.15 | 2.97 | 59.42 | 5.23 | 0.82 | 67.62 | 9.39 | 2.23 |
| UaNet [37] | 84.30 | 8.89 | 1.72 | 69.40 | 11.57 | 2.06 | 61.85 | 5.28 | 1.53 | 70.44 | 9.20 | 1.83 |
| SOARS | 85.04 | 5.08 | 0.98 | 72.75 | 10.10 | 1.66 | 71.90 | 2.93 | 0.53 | 75.14 | 6.98 | 1.12 |
+
+Table 3. Quantitative results of different approaches on segmenting the 42 H&N OARs using the 4-fold cross validation. Our proposed SOARS achieves the best performance in all metrics (indicated in bold).
+
+ | Brain Stem | Mandible | Optic Chiasm | Optic Nerve | Parotid | SMG | All OARs |
| Lt | Rt | Lt | Rt | Lt | Rt |
| Ren et al. [31] | - | - | 58.0±17.0 | 72.0±8.0 | 70.0±9.0 | - | - | - | - | - |
| Wang et al. [41] | 90.0±4.0 | 94.0±1.0 | - | - | - | 83.0±6.0 | 83.0±6.0 | - | - | - |
| AnatomyNet [46] | 86.7±2.0 | 92.5±2.0 | 53.2±15.0 | 72.1±6.0 | 70.6±10.0 | 88.1±2.0 | 87.3±4.0 | 81.4±4.0 | 81.3±4.0 | 79.2 |
| FocusNet [9] | 87.5±2.6 | 93.5±1.9 | 59.6±18.1 | 73.5±9.6 | 74.4±7.2 | 86.3±3.6 | 87.9±3.1 | 79.8±8.1 | 80.1±6.1 | 80.3 |
| UaNet [37] | 87.5±2.5 | 95.0±0.8 | 61.5±10.2 | 74.8±7.1 | 72.3±5.9 | 88.7±1.9 | 87.5±5.0 | 82.3±5.2 | 81.5±4.5 | 81.2 |
| SOARS | 87.6±2.8 | 95.1±1.1 | 64.9±8.8 | 75.3±7.1 | 74.6±5.2 | 88.2±3.2 | 88.2±5.2 | 84.2±7.3 | 83.8±6.9 | 82.4 |
+
+Table 4. For MICCAI 2015 9 OARs segmentation challenge, the proposed method achieves 7 (in bold) best performance and 2 (in grey box) second best performance.
+
+possible that much computation and memory used for 3D networks could be avoided by using an appropriately designed 2D or P3D architecture. For the S&H branch, the search architecture is 2D-kernel3, 3D-kernel5, 2D-kernel3 and 3D-kernel5 for the four convolution blocks. As can be seen, more 3D kernels are used, consistent with the intuition that small objects with low contrast rely more on the 3D spatial information for better segmentation.
+
+Intuitively, it would be interesting to let the network search the OAR levels. However, NAS becomes computationally unaffordable since automatically stratifying anchor OARs alone is at the complexity of $\mathcal{C}_{42}^{9} \times$ more expensive.
+
+# 4.5. Comparison to State-of-the-art
+
+Table 3 compares SOARS against 3 state-of-the-art (SOTA) OAR segmentation methods, i.e. UNet [4], P-HNN [12], and UaNet [37], using the 4-fold cross-validation on the H&N 42 OARs dataset. We also tested anatomyNet [46], but it consistently missed very small organs, so we do not report its results. Although P-HNN [12] achieves comparable performance on the anchor and S&H OARs segmentation with UaNet [37], it has decreased performance for mid-level OARs. UaNet is a modified version of 3D Mask R-CNN [13], which conducts object segmentation within the detected boxes. Hence, it decouples the whole complicated task into detection followed by segmentation, possibly accounting for the better segmentation accuracy for the mid-level OARs as compared to P-HNN [12]. Nonetheless, despite being much simpler, P-HNN is still able to match or beat UaNet on the S&H OARs, demonstrating its effectiveness as a baseline and backbone method for SOARS. When considering SOARS, consistent improvements can be observed in all metrics as compared to all competitors, with $4.70\%$ absolute DSC increases and $2.22mm$ HD error reduction as compared to UaNet [37].
+
+# 4.6. MICCAI2015 Challenge
+
+We use the MICCAI2015 dataset as an external dataset to further demonstrate the generalizability of SOARS. Similar to other comparison methods, we trained our framework from scratch using the MICCAI2015 training set. We get an average DSC of $82.4\%$ , which has $1.2\%$ improvement as compared to [37], or $2.1\%$ over [9]. Compared to competitor methods, we achieve 7 best performance and 2 second best performance on all 9 OARs, especially the most difficult optic chiasm, where we have a $3.4\%$ improvement on DSC as compared to the best previous result achieved by UaNet [37]. These results on the MICCAI2015 dataset further validate the effectiveness and consistency of our method, reinforcing its value.
+
+# 5. Conclusion
+
+This work presented SOARS, a novel framework that stratifies H&N OARs segmentation into two dimensions. Inspired by clinical practices, we stratify OARs into three categories of anchor, mid-level and S&H, providing customized processing frameworks for each. Importantly, the mid-level and S&H branches build off of the anchor branch's more reliable predictions. Additionally, we stratify network architectures, executing an effective NAS for each. We test on the most comprehensive H&N dataset to date that comprises 42 different OARs. Comparing to SOTA methods, the improvements are most significant for the mid-level and S&H OARs. With this, we demonstrate that our proposed SOARS can outperform all state-of-the-art baseline networks, including the most recent representative work UaNet [37], by margins as high as $4.70\%$ in DSC. Thus, our work represents an important step forward toward reliable and automated H&N OAR segmentation.
+
+# References
+
+[1] M Agn, P M af Rosenschöld, O Puonti, M J Lundemann, L Mancini, A Papadaki, S Thust, J Ashburner, I Law, and K Van Leemput. A modality-adaptive method for segmenting brain tumors and organs-at-risk in radiation therapy planning. Medical Image Analysis, 54:220-237, 2019. 1
+[2] C E Cardenas, B M Anderson, M Aristophanous, J Yang, D J Rhee, R E McCarroll, A SR Mohamed, M Kamal, B A Elghohari, H M Elhalawani, et al. Auto-delineation of oropharyngeal clinical target volumes using 3d convolutional neural networks. Physics in Medicine & Biology, 63(21):215026, 2018. 1
+[3] K Chen, J Pang, J Wang, Y Xiong, X Li, S Sun, W Feng, Z Liu, J Shi, W Ouyang, et al. Hybrid task cascade for instance segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4974-4983, 2019. 3
+[4] Özgün Çiçek, Ahmed Abdulkadir, Soeren S Lienkamp, Thomas Brox, and Olaf Ronneberger. 3d u-net: learning dense volumetric segmentation from sparse annotation. In International conference on medical image computing and computer-assisted intervention, pages 424-432. Springer, 2016. 5, 8
+[5] T F Cootes, G J Edwards, and Christopher J T. Active appearance models. IEEE Transactions on Pattern Analysis & Machine Intelligence, (6):681-685, 2001. 2
+[6] T F Cootes, C J Taylor, D H Cooper, and J Graham. Active shape models-their training and application. Computer vision and image understanding, 61(1):38-59, 1995. 2
+[7] J Dai, K He, and J Sun. Instance-aware semantic segmentation via multi-task network cascades. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3150-3158, 2016. 3
+[8] K D Fritscher, M Peroni, P Zaffino, M F Spadea, R Schubert, and G Sharp. Automatic segmentation of head and neck ct images for radiotherapy treatment planning using multiple atlases, statistical appearance models, and geodesic active contours. Medical physics, 41(5):051910, 2014. 2
+[9] Y Gao, R Huang, M Chen, Z Wang, J Deng, Y Chen, Y Yang, J Zhang, C Tao, and H Li. Focusnet: Imbalanced large and small organ segmentation with an end-to-end deep neural network for head and neck ct images. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 829-838. Springer, 2019. 1, 2, 3, 4, 8
+[10] X Han, M S Hoogeman, P C Levendag, L S Hibbard, D N Teguh, P Voet, A C Cowen, and T K Wolf. Atlas-based autosegmentation of head and neck ct images. In International Conference on Medical Image Computing and Computer-assisted Intervention, pages 434-441. Springer, 2008. 2
+[11] P M Harari, S Song, and W A Tome. Emphasizing conformal avoidance versus target definition for imrt planning in head-and-neck cancer. International Journal of Radiation Oncology* Biology* Physics, 77(3):950-958, 2010. 1
+[12] A P Harrison, Z Xu, K George, and et al. Progressive and multi-path holistically nested neural networks for pathological lung segmentation from ct images. In International Conference on Medical Image Computing and Computer-
+
+Assisted Intervention, pages 621-629. Springer, 2017. 3, 4, 5, 8
+[13] K He, G Gkioxari, P Dollar, and R Girshick. Mask r-cnn. In Proceedings of the IEEE international conference on computer vision, pages 2961-2969, 2017. 3, 8
+[14] G Heitz and D Koller. Learning spatial context: Using stuff to find things. In European conference on computer vision, pages 30-43. Springer, 2008. 3
+[15] B Ibragimov and L Xing. Segmentation of organs-at-risks in head and neck ct images using convolutional neural networks. Medical physics, 44(2):547-557, 2017. 1, 3
+[16] A Isambert, F Dhermain, F Bidault, O Commowick, P Bondiau, G Malandain, and D Lefkopoulos. Evaluation of an atlas-based automatic segmentation software for the delineation of brain organs at risk in a radiation therapy clinical context. Radiotherapy and oncology, 87(1):93-99, 2008. 2
+[17] A Jemal, F Bray, M M Center, J Ferlay, E Ward, and D Forman. Global cancer statistics. CA: a cancer journal for clinicians, 61(2):69-90, 2011. 1
+[18] D Jin, D Guo, T Ho, A P Harrison, J Xiao, C Tseng, and L Lu. Accurate esophageal gross tumor volume segmentation in pet/ct using two-stream chained 3d deep network fusion. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 182-191. Springer, 2019. 1, 3
+[19] D Jin, D Guo, T Ho, Adam P Harrison, J Xiao, C Tseng, and L Lu. Deep esophageal clinical target volume delineation using encoded 3d spatial context of tumors, lymph nodes, and organs at risk. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 603-612. Springer, 2019. 1, 3
+[20] M Kosmin, J Ledsam, B Romera-Paredes, R Mendes, S Moinuddin, D de Souza, L Gunn, C Kelly, CO Hughes, A Karthikesalingam, et al. Rapid advances in autosegmentation of organs at risk and target volumes in head and neck cancer. Radiotherapy and Oncology, 135:130-140, 2019. 2
+[21] J Lafferty, A McCallum, and F CN Pereira. Conditional random fields: Probabilistic models for segmenting and labeling sequence data. 2001. 3
+[22] L Lin, Q Dou, Y Jin, G Zhou, Y Tang, W Chen, B Su, F Liu, C Tao, N Jiang, et al. Deep learning for automated contouring of primary tumor volumes by mri for nasopharyngeal carcinoma. Radiology, 291(3):677-686, 2019. 1
+[23] C Liu, L Chen, F Schroff, H Adam, W Hua, A L Yuille, and F Li. Auto-deeplab: Hierarchical neural architecture search for semantic image segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 82-92, 2019. 2, 3
+[24] H Liu, K Simonyan, and Y Yang. Darts: Differentiable architecture search. arXiv preprint arXiv:1806.09055, 2018. 2,3,4,5
+[25] L Liu, H Jiang, P He, W Chen, X Liu, J Gao, and J Han. On the variance of the adaptive learning rate and beyond. arXiv preprint arXiv:1908.03265, 2019. 6
+[26] J S Mikeljevic, R Haward, C Johnston, A Crellin, D Dodwell, A Jones, P Pisani, and D Forman. Trends in postoperative radiotherapy delay and the effect on survival in breast cancer patients treated with conservation surgery. British
+
+journal of cancer, 90(7):1343, 2004. 1
+[27] S Nikolov, S Blackwell, R Mendes, J De Fauw, C Meyer, C Hughes, H Askham, B Romera-Paredes, A Karthikesalingam, C Chu, et al. Deep learning to achieve clinically applicable segmentation of head and neck anatomy for radiotherapy. arXiv preprint arXiv:1809.04430, 2018. 1, 2, 3
+[28] A Rabinovich, A Vedaldi, C Galleguillos, E Wiewiora, and S J Belongie. Objects in context. In ICCV, volume 1, page 5. CiteSeer, 2007. 3
+[29] P F Raudaschl, P Zaffino, G C Sharp, M F Spadea, A Chen, B M Dawant, T Albrecht, T Gass, C Langguth, M Lüthi, et al. Evaluation of segmentation methods on head and neck ct: auto-segmentation challenge 2015. Medical physics, 44(5):2020-2036, 2017. 1, 2
+[30] E Real, A Aggarwal, Y Huang, and Q V Le. Regularized evolution for image classifier architecture search. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 4780-4789, 2019. 3
+[31] X Ren, L Xiang, D Nie, Y Shao, H Zhang, D Shen, and Q Wang. Interleaved 3d-cnn s for joint segmentation of small-volume structures in head and neck ct images. Medical physics, 45(5):2063-2075, 2018. 8
+[32] D Rueckert, A F Frangi, and J A Schnabel. Automatic construction of 3-d statistical deformation models of the brain using nonrigid registration. IEEE transactions on medical imaging, 22(8):1014-1025, 2003. 2
+[33] A Saito, S Nawano, and A Shimizu. Joint optimization of segmentation and shape prior from level-set-based statistical shape model, and its application to the automated segmentation of abdominal organs. Medical image analysis, 28:46-65, 2016. 2
+[34] E Schreibmann, D M Marcus, and T Fox. Multiatlas segmentation of thoracic and abdominal anatomy with level set-based local search. Journal of applied clinical medical physics, 15(4):22-38, 2014.
+[35] R Sims, A Isambert, V Grégoire, F Bidault, L Fresco, J Sage, J Mills, J Bourhis, D Lefkopoulos, O Commowick, et al. A pre-clinical assessment of an atlas-based automatic segmentation tool for the head and neck. *Radiotherapy and Oncology*, 93(3):474–478, 2009. 2
+[36] D A Tamboli, M A Harris, J P Hogg, T Realini, and J A Sivak-Callcott. Computed tomography dimensions of the lacrimal gland in normal caucasian orbits. Ophthalmic Plastic & Reconstructive Surgery, 27(6):453-456, 2011. 2
+[37] H Tang, X Chen, Y Liu, Z Lu, J You, M Yang, S Yao, G Zhao, Y Xu, T Chen, et al. Clinically applicable deep learning framework for organs at risk delineation in ct images. Nature Machine Intelligence, pages 1-12, 2019. 1, 2, 3, 5, 8
+[38] N Tong, S Gou, S Yang, D Ruan, and K Sheng. Fully automatic multi-organ segmentation for head and neck cancer radiotherapy using shape representation model constrained fully convolutional neural networks. Medical physics, 45(10):4558-4567, 2018. 3
+[39] Y Tong, J K Udupa, X Wu, D Odhner, G Pednekar, C B Simone, D Laughlin, C Apinorasethkul, G Shammo, P James, et al. Hierarchical model-based object localization for auto-contouring in head and neck radiation therapy planning. In Medical Imaging 2018: Biomedical Applications
+
+in Molecular, Structural, and Functional Imaging, volume 10578, page 1057822. International Society for Optics and Photonics, 2018. 1, 2, 3
+[40] P WJ Voet, M LP Dirkx, D N Teguh, M S Hoogeman, P C Levendag, and B JM Heijmen. Does atlas-based autosegmentation of neck levels require subsequent manual contour editing to avoid risk of severe target underdosage? a dosimetric analysis. Radiotherapy and Oncology, 98(3):373-377, 2011. 2
+[41] Z Wang, L Wei, L Wang, Y Gao, W Chen, and D Shen. Hierarchical vertex regression-based segmentation of head and neck ct images for radiotherapy planning. IEEE Transactions on Image Processing, 27(2):923-937, 2017. 1, 8
+[42] S Wei, V Ramakrishna, T Kanade, and Y Sheikh. Convolutional pose machines. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4724-4732, 2016. 4
+[43] D Wu, L Lu, J Bi, Y Shinagawa, K Boyer, A Krishnan, and M Salganicoff. Stratified learning of local anatomical context for lung nodules in ct images. In 2010 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pages 2791-2798. IEEE, 2010. 3
+[44] X Wu, J K Udupa, Y Tong, D Odhner, G V Pednekar, C B Simone II, D McLaughlin, C Apinorasethkul, O Apinorasethkul, J Lukens, et al. Aar-rt-a system for autocontouring organs at risk on ct images for radiation therapy planning: Principles, design, and large-scale evaluation on head-and-neck and thoracic cancer cases. Medical image analysis, 54:45-62, 2019. 2
+[45] Z Xu, Y Huo, J Park, B Landman, A Milkowski, S Grbic, and S Zhou. Less is more: Simultaneous view classification and landmark detection for abdominal ultrasound images. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 711-719. Springer, 2018. 4
+[46] W Zhu, Y Huang, L Zeng, X Chen, Y Liu, Z Qian, N Du, W Fan, and X Xie. Anatomynet: Deep learning for fast and fully automated whole-volume segmentation of head and neck anatomy. Medical physics, 46(2):576-589, 2019. 1, 2, 3, 8
+[47] Z Zhu, C Liu, D Yang, A Yuille, and D Xu. V-nas: Neural architecture search for volumetric medical image segmentation. arXiv preprint arXiv:1906.02817, 2019. 2, 3, 5
+[48] B Zoph, V Vasudevan, J Shlens, and Q V Le. Learning transferable architectures for scalable image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 8697-8710, 2018. 3
\ No newline at end of file
diff --git a/organatrisksegmentationforheadandneckcancerusingstratifiedlearningandneuralarchitecturesearch/images.zip b/organatrisksegmentationforheadandneckcancerusingstratifiedlearningandneuralarchitecturesearch/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..b6955fdfd00438b9d7a0276dffe25e100a8eb22e
--- /dev/null
+++ b/organatrisksegmentationforheadandneckcancerusingstratifiedlearningandneuralarchitecturesearch/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3357feb6a1629deeb8766c9c29b86e69bb5bb23f7d1b48693de44ea93053a015
+size 530724
diff --git a/organatrisksegmentationforheadandneckcancerusingstratifiedlearningandneuralarchitecturesearch/layout.json b/organatrisksegmentationforheadandneckcancerusingstratifiedlearningandneuralarchitecturesearch/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..ab52463d33aea9c0a0379ed9bbcf43281232f63c
--- /dev/null
+++ b/organatrisksegmentationforheadandneckcancerusingstratifiedlearningandneuralarchitecturesearch/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:aa0455a6e3b50b479ea669007497e3ccb1aaa7757eb121dfc71dc3aff5d84891
+size 371838
diff --git a/origaminetweaklysupervisedsegmentationfreeonestepfullpagetextrecognitionbylearningtounfold/be152473-1b8e-421e-98ad-bbfd2eac05f1_content_list.json b/origaminetweaklysupervisedsegmentationfreeonestepfullpagetextrecognitionbylearningtounfold/be152473-1b8e-421e-98ad-bbfd2eac05f1_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..0bae2e2315f27c846f185e8bbcd93f54f83a317a
--- /dev/null
+++ b/origaminetweaklysupervisedsegmentationfreeonestepfullpagetextrecognitionbylearningtounfold/be152473-1b8e-421e-98ad-bbfd2eac05f1_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7e14f36f9bbc6526fef248ba5d54597b06cdfd2a66ecf9165e04d419ade7bb46
+size 64057
diff --git a/origaminetweaklysupervisedsegmentationfreeonestepfullpagetextrecognitionbylearningtounfold/be152473-1b8e-421e-98ad-bbfd2eac05f1_model.json b/origaminetweaklysupervisedsegmentationfreeonestepfullpagetextrecognitionbylearningtounfold/be152473-1b8e-421e-98ad-bbfd2eac05f1_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..cd65f15886ef0adced97095374abb3903f638cc2
--- /dev/null
+++ b/origaminetweaklysupervisedsegmentationfreeonestepfullpagetextrecognitionbylearningtounfold/be152473-1b8e-421e-98ad-bbfd2eac05f1_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6c99bb9d466503450cc21ec01e132093cccdf4d1919af792c8f793febb3e97bf
+size 78129
diff --git a/origaminetweaklysupervisedsegmentationfreeonestepfullpagetextrecognitionbylearningtounfold/be152473-1b8e-421e-98ad-bbfd2eac05f1_origin.pdf b/origaminetweaklysupervisedsegmentationfreeonestepfullpagetextrecognitionbylearningtounfold/be152473-1b8e-421e-98ad-bbfd2eac05f1_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..c58ecdd6b7e805bc72edffa2383cbe6d2c6ee5c8
--- /dev/null
+++ b/origaminetweaklysupervisedsegmentationfreeonestepfullpagetextrecognitionbylearningtounfold/be152473-1b8e-421e-98ad-bbfd2eac05f1_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fe445623ab9c3d7642e3b64597d41c9f90ab1b282593221d40291c66dd4fc7fb
+size 1227607
diff --git a/origaminetweaklysupervisedsegmentationfreeonestepfullpagetextrecognitionbylearningtounfold/full.md b/origaminetweaklysupervisedsegmentationfreeonestepfullpagetextrecognitionbylearningtounfold/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..cf036a0fa8d5295cabb4feb73a840eb216de9c38
--- /dev/null
+++ b/origaminetweaklysupervisedsegmentationfreeonestepfullpagetextrecognitionbylearningtounfold/full.md
@@ -0,0 +1,243 @@
+# OrigamiNet: Weakly-Supervised, Segmentation-Free, One-Step, Full Page Text Recognition by learning to unfold
+
+Mohamed Yousef Intuition Machines, Inc. myb@imachines.com
+
+Tom E. Bishop Intuition Machines, Inc. tom@imachines.com
+
+# Abstract
+
+Text recognition is a major computer vision task with a big set of associated challenges. One of those traditional challenges is the coupled nature of text recognition and segmentation. This problem has been progressively solved over the past decades, going from segmentation based recognition to segmentation free approaches, which proved more accurate and much cheaper to annotate data for. We take a step from segmentation-free single line recognition towards segmentation-free multi-line/full page recognition. We propose a novel and simple neural network module, termed OrigamiNet, that can augment any CTC-trained, fully convolutional single line text recognizer, to convert it into a multi-line version by providing the model with enough spatial capacity to be able to properly collapse a 2D input signal into 1D without losing information. Such modified networks can be trained using exactly their same simple original procedure, and using only unsegmented image and text pairs. We carry out a set of interpretability experiments that show that our trained models learn an accurate implicit line segmentation. We achieve state-of-the-art character error rate on both IAM & ICDAR 2017 HTR benchmarks for handwriting recognition, surpassing all other methods in the literature. On IAM we even surpass single line methods that use accurate localization information during training. Our code is available online at https://github.com/IntuitionMachines/OrigamiNet.
+
+# 1. Introduction
+
+The ubiquity of text has made the automation of the processing of its various visual forms, an ever-increasing necessity. Over the years, one of the main driving themes for error rate reduction in text recognition systems has been reducing explicit segmentation proposals in favor of increasing full sequence recognition. In full sequence models, the recognition system learns to both simultaneously segment / align and recognize / classify an image representing a se
+
+| Requirement | [4] | [3] | [30] | [7, 33, 19] | Ours |
| Full-page image | ✓ | ✓ | ✓ | ✓ | ✓ |
| Full-page text GT | ✓ | ✓ | ✓ | ✓ | ✓ |
| Seg. line images | ✗ | ✗ | ✗ | ✓ | ✗ |
| Seg. transcription | ✗ | ✗ | ✗ | ✓ | ✗ |
| Pre-train on seg. data | ✓ | ✓ | ✓ | ✗ | ✗ |
| Special curriculum | ✓ | ✓ | ✗ | ✗ | ✗ |
| # Iterations / image | 500 | 10 | 10 | 10 | 1 |
+
+Table 1: Comparison of what data is required to train a full page recognizer between various prior works and our proposed method. We can see that our method is the only that truly works at page level without requiring any segmented data at any stage. #Iterations/image is the average number of iterations required to transcribe a full paragraph image from the IAM dataset; we can note that while all other methods require multiple iterations per image (to recognize each segmented character or line), our method performs only one pass over the input full paragraph image.
+
+quence of observations (i.e. characters). This trend progressed from the first systems that tried to segment each character alone then classify the character's image [6], to segmentation free approaches that tried to recognize all the characters in a word, without requiring / performing any explicit segmentation [21]. Today, state-of-the-art text recognition systems work on a whole input line image without requiring any prior explicit character / word segmentation [35, 18]. This removes the requirement for providing character localization annotations as part of ground-truth transcription. Also the recognition accuracy relies only on automatic line segmentation, a much easier process than automatic character segmentation.
+
+However, line segmentation is still an error-prone process and can cause great deterioration in the performance of today's text recognition systems. This is especially true for documents with hard to segment text-lines such as handwritten documents [10, 24], with warped lines, uneven interline spacing, touching lines, and torn pages.
+
+The main previous works that tried to address the problem of weakly supervised multi-line recognition were [3, 4, 30]. Besides these methods, other methods that work on full page recognition require the localization ground-truth of text lines during training. A detailed comparison between the training data required by our proposed method vs. other methods in literature is presented in Table 1.
+
+In this work, we present a simple and novel neural network sub-module, termed OrigamiNet, that can be added to any existing convolutional neural network (CNN) text-line recognizer to convert it to a full page recognizer. It can transcribe full text pages in a weakly supervised manner without being given any localization ground-truth (either visual in the images or textual in the transcriptions) during training, and without performing any explicit segmentation. In contrast to previous work, this is done very efficiently using feed-forward connections only (no recurrent connections), essentially, in a single network forward pass.
+
+Our main intuition in this work is, instead of the traditional two-step framework that first segments then recognizes extracted segments, to propose a novel integrated approach for learning to simultaneously implicitly segment and recognize. This works by learning a representation transformation that transforms the input into a representation where both segmentation and recognition is trivial.
+
+We implicitly unfold an input multi-line image into a single line image (i.e. from a 2D arrangement of characters to 1D), where all lines in the original image are stitched together into one long line, so no text-line segmentation is actually needed. Both segmentation and recognition are done in the same single step (single network forward pass) instead of being carried out iteratively (on each line), and thus all computations are shared between recognition and implicit segmentation, and the whole process is a lot faster.
+
+The main ingredients to achieving this are: Using the idea of a spatial bottleneck followed by up-sampling, used widely in pixel-wise prediction tasks (e.g. [16, 23]); and using the CTC loss function [11] which strongly induces / encourages a linear 1D target. We construct a simple neural network sub-module that applies these novel ideas, and demonstrate both its effectiveness and generality by attaching it to a number of state-of-the-art text recognition neural network architectures. We show that it can successfully convert them from single line into multi-line text recognizers with exactly the same training procedure (i.e. without resorting to complex and fragile training recipes, like a special training curriculum or special pre-training strategies).
+
+On the challenging ICDAR 2017 HTR [24] full page benchmark we achieve state-of-the-art Character Error Rate (CER) without any localization data. On full paragraphs of the IAM [17] dataset, we were able to achieve state-ofthe-art CER surpassing models that work on carefully presegmented text-lines, without using any localization infor
+
+mation during training or testing.
+
+To summarize, we address the problem of weakly supervised full-page text recognition. In particular, we make the following contributions:
+
+- We conceptually propose a new approach for weakly-supervised simultaneous object segmentation and recognition, and apply it to text.
+- We propose a simple and generic neural network submodule that can be added to any CNN-based text line recognizer to convert it into a multi-line recognizer that utilizes the same simple training procedure.
+- We carry an extensive set of experiments on a number of state-of-the-art text recognizers that demonstrate our claims. The resultant architectures demonstrate state-of-the-art performance on ICDAR2017 HTR and the full paragraph IAM datasets.
+
+# 2. Related Work
+
+There is not much prior work in the literature regarding full page recognition. Segmentation-free multi-line recognition has been mainly considered in [3, 4]. The idea of both is using selective attention to focus only on a specific part of the input image, either characters in [4] or lines in [3]. These works have two major drawbacks. First, both are difficult to train, and need to pre-train their encoder subnetwork on single-line images before training on multi-line versions, which defeats the objective of the task. Second, though [3] is much faster than [4], both are very slow compared to current methods that work on segmented text lines.
+
+Besides these two segmentation-free methods, other methods that work on full page recognition either require the localization ground-truth of text lines for all [5, 7, 19] or part [33] of the training data to train either a separate network or a sub-module (of a large, multi-task network) for text-line localization. Also, all these methods require line breaks to be annotated on all the provided textual ground-truth transcriptions (i.e. text lines must be segmented both visually in the image and textually in the transcription). [30] presented the idea of adapting [33] in a weakly supervised manner without requiring line breaks in the transcription by setting the alignment between the predicted line transcriptions and the ground truth as a combinatorial optimization problem, and greedily solving it. However [30] still requires the same pre-training as [33] and performs worse.
+
+# 3. Methodology
+
+Figure 1 presents the core idea of our proposed OrigamiNet module, and how it can be attached to any fully convolutional text recognizer. Both before and after versions are shown for easy comparison.
+
+The Connectionist Temporal Classification (CTC) loss function allows the training of neural text recognizers on
+
+unsegmented inputs by considering all possible alignments between two 1D sequences. The sequence of predictions produced by the network is denoted $P$ , and the sequence of labels associated with the input image $L$ , where $|L| < |P|$ . The strict requirement of having $P$ as a 1D sequence, introduces a problem, given that the original input signal (the image $I$ ) is a 2D signal. This problem has typically been dealt with by unfolding the 2D signal into 1D, using a simple reduction operation (e.g. summation) along one of the dimensions (usually the vertical one), giving:
+
+$$
+P _ {i} = \sum_ {j = 1} ^ {H} F \left(I _ {i, j}\right) \tag {1}
+$$
+
+Where $F$ is a learned 2D representation transformation. This is the paradigm shown in Fig. 1a. As noted in [3, 4] this simple, blind collapse from 2D to 1D gives equal importance / contribution (and therefore gradients) to all the rows of the 2D input feature-map $F(I)$ , and thus prevents the recognition of any 2D arrangement of characters in the input image. If two characters cover the same columns, only one can be possibly recognized after the collapse operation.
+
+To tackle this problem, i.e. satisfy the 1D input requirement of CTC without sacrificing the ability of recognizing 2D arrangements of characters, we propose the idea of learning the proper $2\mathrm{D}\rightarrow 1\mathrm{D}$ unfolding through a CNN, motivated by the success of CNNs in pixel-wise prediction and image-to-image translation tasks.
+
+The main idea of our work (presented in Fig. 1b) is augmenting the traditional paradigm with a series of up-scaling operations that transforms the input feature-map into the shape of a single line, that is long enough to hold all the lines (2D character arrangements) from the input image. Up-scaling operations are followed by convolutional computational blocks as our learned resize operations (as done by many researchers, e.g. [8]). The changed direction of up-scaling encourages each line of the input image to be mapped into a distinct part of the output vertical dimension.
+
+After such changes, we proceed with the traditional paradigm as-is, perform the simple sum reduction (Eq. 1) along the vertical dimension $w$ of the resulting line (which is perpendicular to the original input multi-line image's vertical dimension). The model is trained with CTC.
+
+Moreover, we argue that the main bottleneck preventing all previous works from learning proper $2\mathrm{D} \rightarrow 1\mathrm{D}$ mappings directly as we do, is spatial constraints (i.e. not overall capacity or architectural constraints). Providing enough spatial capacity to the model allows it to easily learn such transformations (even for simple limited capacity models, as we will show in the experiments section). Given the spatial capacity and the strong linear prior induced by CTC, the model is able to learn strong $2\mathrm{D} \rightarrow 1\mathrm{D}$ unfolding function with the same simple training procedure used for training
+
+single line recognizers, and without any special pre-training or curriculum applied to any sub-module of the network (both of which are used exclusively in the literature).
+
+One natural question here is how to choose the final line length $L_{2}$ (see definition in Fig. 1b)? To gather space for the whole paragraph / page, $L_{2}$ must be at least as long as the largest number of characters in any transcription in the training set. Longer still is better, given that (i) CTC needs to insert blanks to separate repeated labels; (ii) characters vary greatly in spatial extent, and mapping each to multiple target frames in the final vector is an easier task than transforming to exactly one frame.
+
+# 4. Experiments
+
+We carry out an extensive set of experiments to answer the following set of questions:
+
+- Does the module actually work as expected?
+- Is it tied to a specific CNN architecture?
+- Is it tied to a specific model capacity?
+- How does final spatial size affect model performance?
+
+# 4.1. Implementation Details
+
+All experiments use an initial learning rate of 0.01, exponentially decayed to 0.001 over $9 \times 10^{4}$ batches. We implement in PyTorch [20], with the Adam [15] optimizer.
+
+# 4.2. Datasets
+
+IAM [17] (modern English) is a famous offline handwriting benchmark dataset. It is composed of 1539 scanned text pages handwritten by 657 different writers, corresponding to English texts extracted from the LOB corpus [14]. IAM has 747 documents (6,482 lines) in the training set, 116 documents (976 lines) in the validation set and 336 documents (2,915 lines) in the test set.
+
+The ICDAR2017 full page HTR competition [24] consists of two training sets. The first contains 50 fully annotated images with line-level localization and transcription ground-truth. The second set contains 10,000 images with only transcriptions (with annotated line breaks). Most of the dataset was taken from the Alfred Escher Letter Collection (AEC) which is written in German but it also has pages in French and Italian. In all our experiments on this dataset, we don't make any use of either the 50-page training set or the annotated line-breaks on the 10,000-page training set
+
+# 4.3. CNN Backbones
+
+To emphasize the generality of our proposed module, we evaluate it on a number of popular CNN architectures that achieved strong performance in the text recognition literature. Inspired by the benchmark work [2], we evaluate VGG and ResNet-26 (the specific variants explored in [2]), as well as deeper and much more expressive variants (ResNet-66 and ResNet-74). We also evaluate a newly proposed
+
+
+
+
+(a) A generic four stage fully convolutional single line recognizer, input is a single line image, training is done using the CTC loss function. Backbone CNN can be any of the ones presented in Table 2. Input gets progressively down-sampled, then converted into 1D by average pooling along the vertical dimension right before the loss calculation. (Figures created via PlotNeuralNet [13])
+(b) Here we convert the fully convolutional single-line recognizer into an OrigamiNet multi-line recognizer; comparing the two figures shows that the main change introduced is up-scaling vertically in two stages, and at the same time, down-scaling horizontally. We obtain a feature-map that is tall and narrow (the shape of one very long vertical line, length $L_{2}$ ). After that we proceed exactly as above, average pooling over the short dimension, $w$ (of the new line not the original image) then using the CTC loss function to drive the training process.
+Figure 1: Converting a fully-convolutional single line recognizer into a multi-line recognizer using our OrigamiNet module.
+
+gated, fully convolutional architecture for text recognition [35], named Gated Text Recognizer (GTR). The detailed structure of the CNN backbones we evaluate our proposed model on is presented in Table 2. More details on the basic building blocks of these architectures can be found in their respective papers, VGG [25], ResNet [12], and GTR [35].
+
+# 4.4. Final Length, $L_{2}$
+
+For IAM, the final length should be at least 625, since the longest paragraph in the training set contains 624 characters. We have two questions here: what value can balance running time and recognition accuracy? And how does the
+
+relation between $L_{1}$ and $L_{2}$ affect the final CER?
+
+Table 3 presents some experiments on this. First, we can see that generally, even a very simple model like VGG can successfully learn to recognise multiple lines (at a relatively bad $\mathrm{CER} = 30\%$ ) at various configurations, yet, the deeper ResNet-26 achieves a much better performance on the task reaching $7.2\%$ . Second, it is evident that wider generally gives better performance (but at diminishing returns), which is evident for VGG more than ResNet-26. We see that for reasonable values ( $>800$ ) the network is fairly robust to the choice of $L_{2}$ . We can also note that both $L_{1}$ and $L_{2}$ should be relatively close to each other.
+
+| part | layer name | output size | ResNet-26 | ResNet-66 | ResNet-74 | VGG | GTR-8 | GTR-12 |
| Encoder | Input | H × W | |
| ln1 | H × W | static layer normalization |
| conv1 | H × W | 7×7, 64 | | 13×13, 16 |
| conv2_x | H/2 × W/2 | [3×3, 64/3×3, 64]×1 | [3×3, 64/3×3, 64]×1 | [3×3, 64/3×3, 64]×1 | [3×3, 64]×1 | [GateBlock(512)]×1 | [GateBlock(512)]×1 |
| 2×2 max pool, stride 2 |
| conv3_x | H/4 × W/4 | [3×3, 128/3×3, 128]×2 | [3×3, 128/3×3, 128]×2 | [3×3, 128/3×3, 128]×6 | [3×3, 128]×1 | [GateBlock(512)]×1 | [GateBlock(512)]×1 |
| 2×2 max pool, stride 2 |
| conv4_x | H/8 × W/8 | [3×3, 256/3×3, 256]×5 | [3×3, 256/3×3, 256]×25 | [3×3, 256/3×3, 256]×25 | [3×3, 256/3×3, 256]×1 | [GateBlock(512)]×1 | [GateBlock(512)]×2 |
| 2×2 max pool, stride 2 |
| conv5_x | H/8 × W/16 | [3×3, 512/3×3, 512]×3 | [3×3, 512/3×3, 512]×3 | [3×3, 512/3×3, 512]×3 | [3×3, 512/3×3, 512]×1 | [GateBlock(1024)]×1 | [GateBlock(1024)]×3 |
| 2×2 max pool, stride 1×2 |
| conv6_x | H/8 × W/16 | [3×3, 512/3×3, 512]×1 | [3×3, 512/3×3, 512]×1 | [3×3, 512/3×3, 512]×1 | [3×3, 512/3×3, 512]×1 | [GateBlock(1024)]×3 | [GateBlock(1024)]×4 |
|
| Decoder | conv7_x | L1 × W/32 | interpolate bilinearly to L1 × W/32 |
| [3×3, 512/3×3, 512]×3 | [3×3, 512/3×3, 512]×3 | [3×3, 512/3×3, 512]×3 | [3×3, 512/3×3, 512]×1 | [GateBlock(512)]×1 | [GateBlock(512)]×1 |
| conv8 | L2 × W/64 | interpolate bilinearly to L2 × W/64 |
| 1×1, C |
| L2 | average pool over short dimension w |
| ln2 | L2 | static layer normalization |
| 1 | CTC |
| # Parameters ×10^6 | 38.2 | 61.9 | 63.05 | 10.6 | 9.9 | 16.4 |
+
+Table 2: Architectural details of our evaluated CNN backbones (Encoder part), and how our module (Decoder part) is attached to them. The table tries to abstract the architectures to their most common details. Although there is subtle difference in the components of the basic building block (in brackets [ ]) of every architecture, the overall organization of the network, and how our module fits, is the same.
+
+# 4.5. Final Width
+
+Does the final shape need to have the largest possible aspect ratio? How would the final width, $w$ (shorter output dimension) affect the learning system? Table 4 presents experiments using VGG and ResNet-26 on this regard. It is clear that a large value like 62 deteriorates training significantly for ResNet-26, but small and medium values (<31) are comparable in performance. On the other hand, a model with limited receptive field and complexity like VGG can generally make a lot of use from the added width.
+
+# 4.6. End-to-end Layer Normalization
+
+The idea of using parameter-less layer normalization as the first and last layer of a model was proposed in [35], and shown to increase performance and facilitate optimization. The same idea was very effective for our module, as initially some deep models that converged for single line recognition completely diverged here. This is most probably due to the large number of time-steps CTC works on for our case.
+
+As can be seen in Table 5, end-to-end layer normalization can bring significant increases in accuracy for models that already worked well; more importantly, it makes it possible to train very deep models that were constantly diverging before, leading to state-of-art performance on the task.
+
+# 4.7. Hard-to-segment text-lines
+
+Due to the way IAM was collected [17], its lines are generally easy to segment. To study how our model would handle harder cases, we carried out two separate experiments, artificially modifying IAM to produce new variants with hard-to-segment lines. Firstly, interline spacing is massively reduced via seam carving [1], resizing to $50\%$ height, creating heavily touching text lines, Fig. 4(b). GTR-12 achieved $6.5\%$ CER on this dataset. Secondly, each paragraph has random projective (rotating/resizing lines), and random elastic transforms (like [32] but at the page level) applied, creating wave-like non-straight lines, Fig. 4(c). GTR-12 achieved $6.2\%$ CER on this dataset.
+
+# 4.8. Comparison to state-of-the-art
+
+For all the previous experiments, IAM paragraph images were scaled down to $500 \times 500$ pixels before training, and although we were already achieving state-of-the-art results, we wanted to explore whether we can break even with single line recognizers. As shown in Table 6, by increasing image / model sizes, we were for the first time able to exceed the performance of state-of-the-art single line recognizers using a segmentation free full page recognizer that trains without any visual or textual localization groundtruth. Note that we don't include in the comparison methods that use additional data, either in the form of training images as in [34, 9] or language modeling as in [31].
+
+For the ICDAR2017 HTR dataset we follow [30] and report CER on the validation set proposed in [33] (the last 1000 pages of the 10,000 image training set), as the evaluation server doesn't provide CER or other character based metrics. Results are in Table 7. Note that both [33, 30] report results using CER normalized by GT length ( $nCER$ in the table). We used author released pre-trained models from [33] to compute their results without a language model. It is very evident our method can get far superior performance using weaker training signals.
+
+# 4.9. Model Interpretability
+
+Here we consider an important question: what does the model actually learn? We can see that the model works well in practice and we have a hypothesis of what it might be doing, but it would very interesting if we can have a peek at how our model is able to make its predictions.
+
+To gain an understanding of what parts of the input biases the model towards a specific prediction, we utilize the framework of Path-Integrated Gradients [29] ensembled using SmoothGrad [26]. Note that unlike typical classification tasks, we predict $L_{2}$ labels per image. Of those we discard blanks and repeated consecutive labels (in CTC, representing continuation of the same state; we found their attribution maps to be global and uninformative for these purposes).
+
+For integrated gradients (IG), we change the baseline to use an empty white image to designate no-signal, rather than an empty black one (which would be an all-signal image in our case) - as our data is black text over a white background. Using white baselines produced much sharper attribution maps than black ones, showing how sensitive IG is to the choice of the baseline (studied more in [28]). We used 50 steps to approximate the integral in our tests.
+
+Standard SmoothGrad produces attribution maps that are very noisy (see [27]), but the SmoothGrad-Squared variant often suppresses most of the signal (a direct consequence of squaring fractions). After analysing the results of both, we suggest the root cause of SmoothGrad problems is averaging positive and negative signals together. The squaring in SmoothGrad-Squared solves this problem, but at the cost
+
+| Final length (L2) | 700 | 800 | 950 | 1100 | 1500 |
| First stage length L1 = 450 |
| VGG | 43.14 | 34.32 | 34.55 | 34.55 | 30.34 |
| ResNet-26 | 8.121 | 7.675 | 7.602 | 7.238 | 7.449 |
| First stage length L1 = 225 |
| VGG | 37.5 | 39.6 | 37.5 | 36.46 | 34.75 |
+
+Table 3: The IAM test set CER of VGG and ResNet-26 for various values of $L_{1}$ and $L_{2}$ .
+
+| Final width | 62 | 31 | 15 | 8 | 3 |
| VGG | 25.98 | 17.41 | 37.4 | 34.55 | 24.21 |
| ResNet-26 | 19.9 | 9.128 | 8.64 | 7.238 | 8.34 |
+
+Table 4: The IAM test set CER of VGG and ResNet-26 for various final widths. Here $L_{1} = 450$ and $L_{2} = 1100$
+
+| LN | VGG | ResNet-26 | ResNet-66 | ResNet-74 | GTR-8 |
| w/o | 51.37 | 10.03 | 8.925 | 76.9 | 72.4 |
| w | 34.55 | 7.238 | 6.373 | 6.128 | 5.639 |
+
+Table 5: The IAM test set CER for various models, with and without layer-normalization
+
+of suppressing some important parts of the signal. So we propose SmoothGrad-Abs, which simply averages the absolute value of the attribution maps. SmoothGrad-Abs strikes a good balance between SmoothGrad and SmoothGrad-Squared. For our experiments, we used 5 noisy images.
+
+Fig. 2 shows the attribution maps of a single random character from each line of the input image (computed from the attribution of the corresponding output neuron in the 1D prediction map fed to CTC). We see that the model does indeed implicitly learn good character-level localization from the input 2D image to the output 1D prediction map.
+
+Fig. 3 provides a holistic view that gathers all the maps into one image. We took the one-character attribution map from the previous step, apply Otsu thresholding to it (to keep only the most important parts) then add a marker at the position of the center of mass of the resulting binary image. The marker is colored according to the transcription text line it belongs to. As can be seen, the result represents a very good implicit line segmentation of the original input.
+
+# 4.10. Limitations
+
+We also trained our network on a variant of IAM with horizontally flipped images and line-level flipped groundtruth transcription, where it managed to achieve
+
+| Method | Input Scale | Test CER(%) | Remarks |
| Single-line methods |
| [22] | 128 × W | 5.8 | CNN+BLSTM+CTC |
| [18] | 64 × W | 5.24 | Seq2Seq (CNN+BLSTM encoder) |
| [35] | 32 × W | 4.9 | CNN+CTC |
| Multi-line methods |
| [4] | 150 dpi | 16.2 | Requires pre-training the encoder (MDLSTM) on segmented text lines |
| [3] | 150 dpi | 10.1 |
| [3] | 300 dpi | 7.9 |
| [5] | 150 dpi | 15.6 | Requires fully segmented training data |
| [7] | | 8.5 |
| [33] | | 6.4 | Requires full line-break annotation and partial visual localization |
| ResNet-74 OrigamiNet | 500 × 500 | 6.1 | |
| GTR-8 OrigamiNet | 500 × 500 | 5.6 | |
| GTR-8 OrigamiNet | 750 × 750 | 5.5 | |
| GTR-12 OrigamiNet | 750 × 750 | 4.7 | |
+
+Table 6: Comparison with the state-of-the-art on the IAM paragraph images, best result is highlighted.
+
+| THE Fourth Gospel was almost certainly | written in Greek. A modern text of the | Gospel represents the work of generations of scholars who have compared the many manu-scripts of John and worked out the version which is most likely to have been the original wording. It is not possible to establish any one with absolute precision. | with absolute precision. |
| The fourth Gospel was almost certainly | written in Greek. A modern text of the |
+
+Figure 2: Results of the interpretability experiment. For each of these 8 images (from left-right, top-down) we show the attribution heat-map for a single character output (for each line in the image) overlaid over a faint version of the original input image. The randomly chosen character is highlighted in green in the transcription below the image.
+
+nearly the same CER. This verifies that the proposed method is robust and can learn the reading order from data.
+
+While the proposed method works well on paragraphs or
+
+full pages of text, learning the flow of multiple columns is not addressed directly. However, given that region / paragraph segmentation is trivial compared to text line segmen
+
+
+Figure 3: The first and third columns represent two input images. The second and fourth columns are the corresponding color coded scatter plot, where, for each character, the position of the center of mass for the attribution map associated with that character is marked. Character markers belonging to the same line are given the same color. We can see that the model learns a very good implicit segmentation of the input image into lines without any localization signal.
+
+
+Figure 4: Synthetic distortions applied to the IAM dataset to study the how our model handles hard to segment text-lines. (a) original paragraph image. (b) touching text-lines. (c) rotated and wavy text-lines
+
+| Method | CER | nCER | linebreaks | Pre-train |
| SFR [30] | 8.18 | 8.68 | ✓ | 50 fully annotated pgs |
| SFR-align [33] | - | 11.05 | X |
| GTR-12 OrigamiNet | 6.80 | 5.87 | X | - |
+
+Table 7: Comparison on ICDAR2017 HTR, best result is highlighted. nCER is CER normalized by GT length. line-breaks indicates their presence or removal from the GT.
+
+tation we think this is not a serious practical limitation.
+
+# 5. Conclusion
+
+In this paper we tackled the problem of multi-line / full page text recognition without any visual or textual localize-
+
+tion ground-truth provided to the model during training. We proposed a simple neural network sub-module, OrigamiNet, that can be added to any existing fully convolutional single-line recognizer and convert it into a multi-line recognizer by providing the model with enough spatial capacity to be able to properly unfold 2D input signals into 1D without losing information.
+
+We conducted an extensive set of experiments on the IAM handwriting dataset to show the applicability and generality of our proposed module. We achieve state-of-the-art CER on the ICDAR2017 HTR and IAM datasets surpassing models that explicitly made use of line segmentation information during training. We then concluded with a set of interpretability experiments to investigate what the model actually learns and demonstrated its implicit ability to localize characters on each line.
+
+# References
+
+[1] S. Avidan and A. Shamir. Seam carving for content-aware image resizing. In ACM SIGGRAPH 2007 papers, pages 10- es. 2007. 5
+[2] J. Baek, G. Kim, J. Lee, S. Park, D. Han, S. Yun, S. J. Oh, and H. Lee. What is wrong with scene text recognition model comparisons? dataset and model analysis. arXiv preprint arXiv:1904.01906, 2019. 3
+[3] T. Bluche. Joint line segmentation and transcription for end-to-end handwritten paragraph recognition. In Advances in Neural Information Processing Systems, pages 838-846, 2016. 1, 2, 3, 7
+[4] T. Bluche, J. Louradour, and R. Messina. Scan, attend and read: End-to-end handwritten paragraph recognition with mdlstm attention. In 2017 14th IAPR International Conference on Document Analysis and Recognition (ICDAR), volume 1, pages 1050-1055. IEEE, 2017. 1, 2, 3, 7
+[5] M. Carbonell, J. mas romeu, M. Villegas, A. Fornés, and J. Lladós. End-to-end handwritten text detection and transcription in full pages. In 2019 International Conference on Document Analysis and Recognition Workshops (ICDARW), 07 2019. 2, 7
+[6] R. G. Casey and E. Lecolinet. A survey of methods and strategies in character segmentation. IEEE transactions on pattern analysis and machine intelligence, 18(7):690-706, 1996. 1
+[7] J. Chung and T. Delteil. A computationally efficient pipeline approach to full page offline handwritten text recognition. arXiv preprint arXiv:1910.00663, 2019. 1, 2, 7
+[8] C. Dong, C. C. Loy, K. He, and X. Tang. Image super-resolution using deep convolutional networks. IEEE transactions on pattern analysis and machine intelligence, 38(2):295-307, 2015. 3
+[9] K. Dutta, P. Krishnan, M. Mathew, and C. Jawahar. Improving cnn-rnn hybrid networks for handwriting recognition. In 2018 16th International Conference on Frontiers in Handwriting Recognition (ICFHR), pages 80-85. IEEE, 2018. 6
+[10] B. Gatos, G. Louloudis, T. Causer, K. Grint, V. Romero, J. A. Sánchez, A. H. Toselli, and E. Vidal. Ground-truth production in the transcriptorium project. In 2014 11th IAPR International Workshop on Document Analysis Systems, pages 237-241. IEEE, 2014. 1
+[11] A. Graves, S. Fernández, F. Gomez, and J. Schmidhuber. Connectionist temporal classification: labelling unsegmented sequence data with recurrent neural networks. In Proceedings of the 23rd international conference on Machine learning, pages 369-376. ACM, 2006. 2
+[12] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016. 4
+[13] H. Iqbal. Harisiqbal88/plotneuralnet v1.0.0, Dec. 2018. 4
+[14] S. Johansson. The lob corpus of British english texts: Presentation and comments. 1980. 3
+[15] D. P. Kingma and J. Ba. Adam: A Method for Stochastic Optimization. Dec. 2014. 3
+
+[16] J. Long, E. Shelhamer, and T. Darrell. Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3431-3440, 2015. 2
+[17] U.-V. Marti and H. Bunke. Theiam-database:an english sentence database for offline handwriting recognition. International Journal on Document Analysis and Recognition, 5(1):39-46,2002.2,3,5
+[18] J. Michael, R. Labahn, T. Grüning, and J. Zöllner. Evaluating sequence-to-sequence models for handwritten text recognition. arXiv preprint arXiv:1903.07377, 2019. 1, 7
+[19] B. Moysset, C. Kermorvant, and C. Wolf. Learning to detect, localize and recognize many text objects in document images from few examples. International Journal on Document Analysis and Recognition (IJDAR), 21(3):161-175, 2018. 1, 2
+[20] A. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, Z. Lin, N. Gimelshein, L. Antiga, A. Desmaison, A. Kopf, E. Yang, Z. DeVito, M. Raison, A. Tejani, S. Chilamkurthy, B. Steiner, L. Fang, J. Bai, and S. Chintala. Pytorch: An imperative style, high-performance deep learning library. In H. Wallach, H. Larochelle, A. Beygelzimer, F. dAlché-Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems 32, pages 8024-8035. Curran Associates, Inc., 2019. 3
+[21] T. Plötz and G. A. Fink. Markov models for offline handwriting recognition: a survey. International Journal on Document Analysis and Recognition (IJDAR), 12(4):269, 2009. 1
+[22] J. Puigcerver. Are multidimensional recurrent layers really necessary for handwritten text recognition? In 2017 14th IAPR International Conference on Document Analysis and Recognition (ICDAR), volume 1, pages 67-72. IEEE, 2017. 7
+[23] O. Ronneberger, P. Fischer, and T. 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. 2
+[24] J. A. Sanchez, V. Romero, A. H. Toselli, M. Villegas, and E. Vidal. Icdar2017 competition on handwritten text recognition on the read dataset. In 2017 14th IAPR International Conference on Document Analysis and Recognition (ICDAR), volume 1, pages 1383-1388. IEEE, 2017. 1, 2, 3
+[25] K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. 4
+[26] D. Smilkov, N. Thorat, B. Kim, F. Viégas, and M. Wattenberg. Smoothgrad: removing noise by adding noise. arXiv preprint arXiv:1706.03825, 2017. 6
+[27] I. Sturm, S. Lapuschkin, W. Samek, and K.-R. Müller. Interpretable deep neural networks for single-trial EEG classification. Journal of neuroscience methods, 274:141-145, 2016. 6
+[28] P. Sturmfels, S. Lundberg, and S.-I. Lee. Visualizing the impact of feature attribution baselines. Distill, 2020. https://distill.pub/2020/attribute-baselines.6
+
+[29] M. Sundararajan, A. Taly, and Q. Yan. Axiomatic attribution for deep networks. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 3319-3328. JMLR.org, 2017. 6
+[30] C. Tensmeyer and C. Wigington. Training full-page handwritten text recognition models without annotated line breaks. In 2019 International Conference on Document Analysis and Recognition (ICDAR), pages 1-8. IEEE, 2019. 1, 2, 6, 8
+[31] P. Voigtlaender, P. Doetsch, and H. Ney. Handwriting recognition with large multidimensional long short-term memory recurrent neural networks. In 2016 15th International Conference on Frontiers in Handwriting Recognition (ICFHR), pages 228-233. IEEE, 2016. 6
+[32] C. Wigington, S. Stewart, B. Davis, B. Barrett, B. Price, and S. Cohen. Data augmentation for recognition of handwritten words and lines using a cnn-lstm network. In 2017 14th IAPR International Conference on Document Analysis and Recognition (ICDAR), volume 1, pages 639-645. IEEE, 2017. 5
+[33] C. Wigington, C. Tensmeyer, B. Davis, W. Barrett, B. Price, and S. Cohen. Start, follow, read: End-to-end full-page handwriting recognition. In Proceedings of the European Conference on Computer Vision (ECCV), pages 367-383, 2018. 1, 2, 6, 7, 8
+[34] S. Xiao, L. Peng, R. Yan, and S. Wang. Deep network with pixel-level rectification and robust training for handwriting recognition. In 2019 International Conference on Document Analysis and Recognition (ICDAR), pages 9-16. IEEE, 2019. 6
+[35] M. Yousef, K. F. Hussain, and U. S. Mohammed. Accurate, data-efficient, unconstrained text recognition with convolutional neural networks. arXiv preprint arXiv:1812.11894, 2018. 1, 4, 5, 7
\ No newline at end of file
diff --git a/origaminetweaklysupervisedsegmentationfreeonestepfullpagetextrecognitionbylearningtounfold/images.zip b/origaminetweaklysupervisedsegmentationfreeonestepfullpagetextrecognitionbylearningtounfold/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..820b9f467a3a76ff1d8efd11d48620c9afd89984
--- /dev/null
+++ b/origaminetweaklysupervisedsegmentationfreeonestepfullpagetextrecognitionbylearningtounfold/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ffee744dcc09aa24d8d49865de899cb70b5138afe2ab0806e8dcc2901990369b
+size 631940
diff --git a/origaminetweaklysupervisedsegmentationfreeonestepfullpagetextrecognitionbylearningtounfold/layout.json b/origaminetweaklysupervisedsegmentationfreeonestepfullpagetextrecognitionbylearningtounfold/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..556ac6248008d2bca0a1c596853b3e4f1269c495
--- /dev/null
+++ b/origaminetweaklysupervisedsegmentationfreeonestepfullpagetextrecognitionbylearningtounfold/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4d1afc72adf025a882b7ef24af2f3d9b44f27670f3e401f63cb43cde6328d889
+size 273104
diff --git a/orthogonalconvolutionalneuralnetworks/86e88526-f1cd-410f-8353-658d144f44eb_content_list.json b/orthogonalconvolutionalneuralnetworks/86e88526-f1cd-410f-8353-658d144f44eb_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..b7f571e8a7e42f3d731bfb61f599bea99175cdb5
--- /dev/null
+++ b/orthogonalconvolutionalneuralnetworks/86e88526-f1cd-410f-8353-658d144f44eb_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:99ac78b282036ab353f687f710fcbeb2fc6085d19bee9f430c2f042103a606b6
+size 91534
diff --git a/orthogonalconvolutionalneuralnetworks/86e88526-f1cd-410f-8353-658d144f44eb_model.json b/orthogonalconvolutionalneuralnetworks/86e88526-f1cd-410f-8353-658d144f44eb_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..277e3d81996eddf814d5aff88295cade83fb3e95
--- /dev/null
+++ b/orthogonalconvolutionalneuralnetworks/86e88526-f1cd-410f-8353-658d144f44eb_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:eea5994c496caa7e86704fb0336bc15f644a062d5b401ce3f80117b7aa016812
+size 115654
diff --git a/orthogonalconvolutionalneuralnetworks/86e88526-f1cd-410f-8353-658d144f44eb_origin.pdf b/orthogonalconvolutionalneuralnetworks/86e88526-f1cd-410f-8353-658d144f44eb_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..b2b0c66e19104c28db9e468d398769f8a9218202
--- /dev/null
+++ b/orthogonalconvolutionalneuralnetworks/86e88526-f1cd-410f-8353-658d144f44eb_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8e1ec9e56c1666951d572ccd85cd3a04c3bbd473af13b20ca9c03bd4081693ce
+size 2616395
diff --git a/orthogonalconvolutionalneuralnetworks/full.md b/orthogonalconvolutionalneuralnetworks/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..3044985f6fe0f447de211a6d78412441b2908e0f
--- /dev/null
+++ b/orthogonalconvolutionalneuralnetworks/full.md
@@ -0,0 +1,432 @@
+# Orthogonal Convolutional Neural Networks
+
+Jiayun Wang Yubei Chen Rudrasis Chakraborty Stella X. Yu
+
+UC Berkeley / ICSI
+
+# Abstract
+
+Deep convolutional neural networks are hindered by training instability and feature redundancy towards further performance improvement. A promising solution is to impose orthogonality on convolutional filters.
+
+We develop an efficient approach to impose filter orthogonality on a convolutional layer based on the doubly block-Toeplitz matrix representation of the convolutional kernel, instead of the common kernel orthogonality approach, which we show is only necessary but not sufficient for ensuring orthogonal convolutions.
+
+Our proposed orthogonal convolution requires no additional parameters and little computational overhead. It consistently outperforms the kernel orthogonality alternative on a wide range of tasks such as image classification and inpainting under supervised, semi-supervised and unsupervised settings. It learns more diverse and expressive features with better training stability, robustness, and generalization. Our code is publicly available.
+
+# 1. Introduction
+
+While convolutional neural networks (CNN) are widely successful [36, 14, 50], several caveats exist with deep nets: over parameterization or under utilization of model capacity [21, 12], exploding or vanishing gradients [7, 17], growth in saddle points [13], and shifts in feature statistics [31].
+
+We observe that convolutional filters learned in deeper layers are not only highly correlated and thus redundant (Fig.1a), but each layer also has a long-tailed spectrum as a linear operator (Fig.1b), contributing to unstable training performance from exploding or vanishing gradients.
+
+We propose orthogonal CNN (OCNN), where a convolutional layer is regularized with orthogonality constraints during training. When filters are learned to be as orthogonal as possible, they become de-correlated and their filter responses are no longer redundant, thereby fully utilizing the model capacity, improving the feature expressiveness and consequently the task performance.
+
+Indeed, just by regularizing convolutions with our orthogonality loss during training, our OCNN can produce a more uniform spectrum (Fig.1c) and more diverse features
+
+
+a) histogram of filter similarities
+
+
+b) convolution kernel spectrum
+
+
+c) histogram of filter similarities
+
+
+d) classification accuracy
+Figure 1. Our OCNN can remove correlations among filters and result in consistent performance gain over standard convolution baseline and alternative kernel orthogonality baseline (kernel orth) during testing. a) Normalized histograms of pairwise filter similarities of ResNet34 for ImageNet classification show increasing correlation among standard convolutional filters with depth. b) A standard convolutional layer has a long-tailed spectrum. While kernel orthogonality widens the spectrum, our OCNN can produce a more ideal uniform spectrum. c) Filter similarity (for layer 27 in a) is reduced most with our OCNN. d) Classification accuracy on CIFAR100 always increases the most with our OCNN.
+
+Table 1. Summary of experiments and OCNN gains.
+
+| Task | Metric | Gain |
| Image Classification | CIFAR100 | classification accuracy | 3% |
| ImageNet | classification accuracy | 1% |
| semi-supervised learning | classification accuracy | 3% |
| Feature Quality | fine-grained image retrieval | kNN classification accuracy | 3% |
| unsupervised image inpainting | PSNR | 4.3 |
| image generation | FID | 1.3 |
| Cars196 | NMI | 1.2 |
| Robustness | black box attack | attack time | 7x less |
+
+(Fig.1d), delivering a consistent performance gain with various network architectures (Fig.1d) and on a variety of tasks such as image classification, image retrieval, image inpainting, image generation, and adversarial attacks (Table 1).
+
+Many works have proposed the orthogonality of linear operations as a type of regularization in training deep neural networks. Such a regularization improves the stability and performance of CNNs [5, 57, 3, 4], since it can preserve energy, make spectrum uniform [61], stabilize the activation distribution in different network layers [46] and remedy the
+
+
+Figure 2. Basic idea of our OCNN. A convolution layer $Y = \mathrm{Conv}(K, X)$ can be formulated as matrix multiplications in two ways: a) im2col methods [58, 26] retain kernel $K$ and convert input $X$ to patch-matrix $\widetilde{X}$ . b) We retain input $X$ and convert $K$ to a doubly block-Toeplitz matrix $\mathcal{K}$ . With $X$ and $Y$ intact, we can directly analyze the transformation from the input to the output. We further propose an efficient algorithm for regularizing $\mathcal{K}$ towards orthogonal convolutions and observe improved feature expressiveness, task performance and uniformity in $\mathcal{K}$ 's spectrum (Fig.1b).
+
+exploding or vanishing gradient issues [1].
+
+Existing works impose orthogonality constraints as kernel orthogonality, whereas ours directly implements orthogonal convolutions, based on an entirely different formulation of a convolution layer as a linear operator.
+
+Orthogonality for a convolution layer $Y = \operatorname{Conv}(K, X)$ can be introduced in two different forms (Fig.2).
+
+1. Kernel orthogonality methods [57, 3, 4] view convolution as multiplication between the kernel matrix $K$ and the im2col [58, 26] matrix $\widetilde{X}$ , i.e. $Y = K\widetilde{X}$ . The orthogonality is enforced by penalizing the disparity between the Gram matrix of kernel $K$ and the identity matrix, i.e. $\| KK^T - I \|$ . However, the construction of $\widetilde{X}$ from input $X$ is also a linear operation $\widetilde{X} = QX$ , and $Q$ has a highly nonuniform spectrum.
+2. Orthogonal convolution keeps the input $X$ and the output $Y$ intact by connecting them with a doubly block-Toeplitz (DBT) matrix $\mathcal{K}$ of filter $K$ , i.e. $Y = \mathcal{K}X$ and enforces the orthogonality of $\mathcal{K}$ directly. We can thus directly analyze the linear transformation properties between the input $X$ and the output $Y$ .
+
+Existing works on CNNs adopt kernel orthogonality, due to its direct filter representation.
+
+We will prove that kernel orthogonality is in fact only necessary but not sufficient for orthogonal convolutions. Consequently, the spectrum of a convolutional layer is still
+
+non-uniform and exhibits a wide variation even when the kernel matrix $K$ itself is orthogonal (Fig.1b).
+
+More recent works propose to improve the kernel orthogonality by normalizing spectral norms [40], regularizing mutual coherence [5], and penalizing off-diagonal elements [8]. Despite the improved stability and performance, the orthogonality of $K$ is insufficient to make a linear convolutional layer orthogonal among its filters.
+
+In contrast, we adopt the DBT matrix form, and regularize $\| \mathrm{Conv}(K,K) - I_r\|$ instead. While the kernel $K$ is indirectly represented in the DBT matrix $\mathcal{K}$ , the representation of input $X$ and output $Y$ is intact and thus the orthogonality property of their transformation can be directly enforced.
+
+We will show that our regularization enforces orthogonal convolutions more effectively than kernel orthogonality methods, and we further develop a very efficient approach for our OCNN regularization.
+
+To summarize, we make the following contributions.
+
+1. We provide an equivalence condition for orthogonal convolutions and develop efficient algorithms to implement orthogonal convolutions for CNNs.
+2. With no additional parameters and little computational overhead, our OCNN consistently outperforms other orthogonal regularizers on image classification, generation, retrieval, to inpainting under supervised, semi-supervised, and unsupervised settings.
+
+Better feature expressiveness, reduced feature correlation, more uniform spectrum, and enhanced adversarial robustness may underlie our performance gain.
+
+# 2. Related Works
+
+Im2col-based Convolutions. The im2col method [58, 26] has been widely used in deep learning as it enables efficient GPU computation. It transforms the convolution into a General Matrix to Matrix Multiplication (GEMM) problem.
+
+Fig.2a illustrates the procedure. a) Given an input $X$ , we first construct a new input-patch-matrix $\widetilde{X} \in \mathbf{R}^{Ck^2 \times H'W'}$ by copying patches from the input and unrolling them into columns of this intermediate matrix. b) The kernel-patch-matrix $K \in \mathbf{R}^{M \times Ck^2}$ can then be constructed by reshaping the original kernel tensor. Here we use the same notation for simplicity. c) We can calculate the output $Y = K\widetilde{X}$ where we reshape $Y$ back to the tensor of size $M \times H \times W$ - the desired output of the convolution.
+
+The orthogonal kernel regularization enforces the kernel $K \in \mathbf{R}^{M \times Ck^2}$ to be orthogonal. Specifically, if $M \leq Ck^2$ , row orthogonal regularizer is $L_{\mathrm{korth - row}} = \| KK^T - I \|_F$ where $I$ is the identity matrix. Otherwise, column orthogonal may be achieved by $L_{\mathrm{korth - col}} = \| K^T K - I \|_F$ .
+
+Kernel Orthogonality in Neural Networks. Orthogonal kernels help alleviate gradient vanishing or exploding prob
+
+lems in recurrent neural networks (RNNs) [15, 56, 10, 1, 54, 45]. The effect of soft versus hard orthogonal constraints on the performance of RNNs is discussed in [54]. A cheap orthogonal constraint based on a parameterization from exponential maps is proposed in [10].
+
+Orthogonal kernels are also shown to stabilize the training of CNNs [46] and make more efficient optimization [5]. Orthogonal weight initialization is proposed in [48, 39]; Utilizing the norm-preserving property of orthogonal matrices, it is similar to the effect of batch normalization [31]. However, the orthogonality may not sustain as the training proceeds [48]. To ensure the orthogonal weights through the whole training, Stiefel manifold-based optimization methods are used in [22, 43, 30], and further extended to convolutional layers in [43].
+
+Recent works relax and extend the exact orthogonal weights in CNNs. Xie et al. enforce the Gram matrix of the weight matrix to be close to identity under Frobenius norm [57]. Bansal et al. further utilize mutual coherence and restricted isometry property [5]. It has been observed that orthogonal regularization helps improve the performance of image generation in generative adversarial networks (GANs) [8, 9, 40].
+
+All these mentioned works adopt kernel orthogonality for convolutions. Sedghi et al. utilize the DBT matrix to analyze singular values of convolutional layers but do not consider orthogonality [49].
+
+Feature Redundancy. Optimized CNNs are known to have significant redundancy between different filters and feature channels [32, 29]. Many works use the redundancy to compress or speed up networks [20, 25, 29]. The highly nonuniform spectrum may contribute to the redundancy in CNNs.
+
+To overcome the redundancy by improving feature diversity, multi-attention [60], diversity loss [38], and orthogonality regularization [11] have been proposed.
+
+Other Ways to Stabilize CNN Training. To address unstable gradient and co-variate shift problems, various methods have been proposed: Initialize each layer with near-constant variances [17, 23]; Use batch normalization to reduce internal covariate shifts [31]; Reparametrize the weight vectors and decouple their lengths from their directions [47]; Use layer normalization with the mean and variance computed from all of the summed inputs to the neurons [2]; Use a gradient norm clipping strategy to deal with exploding gradients and a soft constraint for vanishing gradients [45].
+
+# 3. Orthogonal Convolution
+
+As we mentioned earlier, convolution can be viewed as efficient matrix-vector multiplications, where matrix $\mathcal{K}$ is generated by a kernel $K$ . In order to stabilize the spectrum of $\mathcal{K}$ , we add orthogonal convolutional regularization to CNNs, which is a stronger condition than kernel orthogo
+
+
+Figure 3. Convolutions based on the doubly block Toeplitz matrix. We first flatten $X$ to a vector $\mathbf{x}$ , and then convert weight tensor $K \in \mathbf{R}^{M \times C \times k \times k}$ as Toeplitz matrix $\mathcal{K} \in \mathbf{R}^{(MH'W') \times (CHW)}$ . The output $\mathbf{y} = \mathcal{K}\mathbf{x}$ . We can obtain the desired output $Y \in \mathbf{R}^{M \times H' \times W'}$ by reshaping $\mathbf{y}$ . The example has input size $C \times 4 \times 4$ , kernel size $M \times C \times 2 \times 2$ and stride 1.
+
+nality. First, we discuss the view of convolution as a matrix-vector multiplication in detail. Then fast algorithms for constraining row and column orthogonality in convolutions are proposed. In this work, we focus on the 2D convolution case, but concepts and conditions generalize to other cases.
+
+# 3.1. Convolution as a Matrix-Vector Multiplication
+
+For a convolution layer with input tensor $X \in \mathbf{R}^{C \times H \times W}$ and kernel $K \in \mathbf{R}^{M \times C \times k \times k}$ , we denote the convolution's output tensor $Y = \mathrm{Conv}(K, X)$ , where $Y \in \mathbf{R}^{M \times H' \times W'}$ . We can further view $K$ as $M$ different filters, $\{K_i \in \mathbf{R}^{C \times k \times k}\}$ . Since convolution is linear, we can rewrite $\mathrm{Conv}(K, X)$ in a matrix-vector form:
+
+$$
+Y = \operatorname {C o n v} (K, X) \Leftrightarrow \mathbf {y} = \mathcal {K} \mathbf {x} \tag {1}
+$$
+
+where $\mathbf{x}$ is $X$ flattened to a vector. Note that we adopt rigorous notations here while $\mathbf{x}$ and $X$ are not distinguished previously. Each row of $\kappa$ has non-zero entries corresponding to a particular filter $K_{i}$ at a particular spatial location. As a result, $\kappa$ can be constructed as a doubly block-Toeplitz (DBT) matrix $\kappa \in \mathbf{R}^{(MH'W')\times (CHW)}$ from kernel tensor $K\in \mathbf{R}^{M\times C\times k\times k}$ .
+
+We can obtain the output tensor $Y$ by reshaping vector $\mathbf{y}$ back to the tensor form. Fig.3 depicts an example of a convolution based on DBT matrix, where we have input size of $C \times 4 \times 4$ , kernel size of $M \times C \times 2 \times 2$ and stride 1.
+
+# 3.2. Convolutional Orthogonality
+
+Depending on the configuration of each layer, the corresponding matrix $\mathcal{K} \in \mathbf{R}^{(MH'W') \times (CHW)}$ may be a fat
+
+matrix $(MH^{\prime}W^{\prime}\leq CHW)$ or a tall matrix $(MH^{\prime}W^{\prime}>$ $CHW$ ). In either case, we want to regularize the spectrum of $\kappa$ to be uniform. In the fat matrix case, the uniform spectrum requires a row orthogonal convolution and the tall matrix case requires a column orthogonal convolution where $\kappa$ is a normalized frame [33] and preserves the norm.
+
+In theory, we can implement the doubly block-Toeplitz matrix $\mathcal{K}$ and enforce the orthogonality condition in a brute force fashion. However, since $\mathcal{K}$ is highly structured and sparse, a much more efficient algorithm exists. In the following, we show the equivalent conditions to the row and column orthogonality, which can be easily computed.
+
+Row Orthogonality. As we mentioned earlier, each row of $\mathcal{K}$ corresponds to a filter $K_{i}$ at a particular spatial location $(h^{\prime},w^{\prime})$ flattened to a vector, denoted as $\kappa_{ih'w',\cdot}\in \mathbf{R}^{CHW}$ . The row orthogonality condition is:
+
+$$
+\langle \mathcal {K} _ {i h _ {1} ^ {\prime} w _ {1} ^ {\prime}, \bullet}, \mathcal {K} _ {j h _ {2} ^ {\prime} w _ {2} ^ {\prime}, \bullet} \rangle = \left\{ \begin{array}{l} 1, (i, h _ {1} ^ {\prime}, w _ {1} ^ {\prime}) = (j, h _ {2} ^ {\prime}, w _ {2} ^ {\prime}) \\ 0, \text {o t h e r w i s e} \end{array} \right. \tag {2}
+$$
+
+In practice, we do not need to check pairs when the corresponding filter patches do not overlap. It is clear that $\langle \mathcal{K}_{ih_1'w_1'},\cdot ,\mathcal{K}_{jh_2'w_2'},\rangle = 0$ if either $|h_{1} - h_{2}|\geq k$ or $|w_{1} - w_{2}|\geq k$ since the two flattened vectors have no support overlap and thus have a zero inner product. So we only need to check Condition 2 where $|h_1 - h_2|,|w_1 - w_2| < k.$ Due to the spatial symmetry, we can choose fixed $h_1,w_1$ and only vary $i,j,h_2,w_2$ ,where $|h_1 - h_2|,|w_1 - w_2| < k.$
+
+Fig.4 shows examples of the region of overlapping filter patches. For a convolution, a reader can verify that if the kernel size is $k$ and the stride is $S$ , the region to check orthogonality can be realized by the original convolution with padding: $P = \left\lfloor \frac{k - 1}{S} \right\rfloor \cdot S$ . Now we have an equivalent condition to Condition 2 as the following self-convolution:
+
+$$
+\operatorname {C o n v} (K, K, \text {p a d d i n g} = P, \text {s t r i d e} = S) = I _ {r 0} \tag {3}
+$$
+
+where $I_{r0} \in \mathbf{R}^{M \times M \times (2P / S + 1) \times (2P / S + 1)}$ is a tensor, which has zeros entries except for center $M \times M$ entries as an identity matrix. Minimizing the difference between $Z = \mathrm{Conv}(K, K, \text{padding} = P, \text{stride} = S)$ and $I_{r0}$ gives us a near row-orthogonal convolution in terms of DBT matrix $\mathcal{K}$ .
+
+Column Orthogonality. We use tensor $E_{i,h,w} \in \mathbf{R}^{C \times H \times W}$ to denote an input tensor, which has all zero except an 1 entry at the $i^{\text{th}}$ input channel, spatial location $(h,w)$ . Let's denote $\mathbf{e}_{\text{ihw}} \in \mathbf{R}^{CHW}$ as the flattened vector of $E_{i,h,w}$ . We can obtain a column $\mathcal{K}_{.,ihw}$ of $\mathcal{K}$ by multiply $\mathcal{K}$ and vector $\mathbf{e}_{\text{ihw}}$ :
+
+$$
+\mathcal {K} _ {\cdot , i h w} = \mathcal {K} \mathbf {e} _ {\mathrm {i h w}} = \operatorname {C o n v} (K, E _ {i, h, w}) \tag {4}
+$$
+
+here we slightly abuse the equality notation as the reshaping
+
+
+(a) kernel size $= 3$ ,stride $= 1$
+
+
+(b) kernel size $= 4$ ,stride $= 2$
+Figure 4. The spatial region to check for row orthogonality. It is only necessary to check overlapping filter patches for the row orthogonality condition. We show two example cases: stride $S = 1$ with kernel size $k = 3$ and stride $S = 2$ with kernel size $k = 4$ . In both examples, the orange patch is the center patch, and the red border is the region of overlapping patches. For example, pink and purple patches fall into the red region and overlap with the center region; blue patches are not fully inside the red region and they do not overlap with the orange ones. We can use padding to obtain the overlapping regions.
+
+is easily understood. Column orthogonality condition is:
+
+$$
+\left\langle \mathcal {K} _ {\bullet , i h _ {1} w _ {1}}, \mathcal {K} _ {\bullet , j h _ {2} w _ {2}} \right\rangle = \left\{ \begin{array}{l} 1, (i, h _ {1}, w _ {1}) = (j, h _ {2}, w _ {2}) \\ 0, \text {o t h e r w i s e} \end{array} \right. \tag {5}
+$$
+
+Similar to the row orthogonality, since the spatial size of $K$ is only $k$ , Condition 5 only needs to be checked in a local region where there is spatial overlap between $\mathcal{K}_{\cdot ,ih_1w_1}$ and $\mathcal{K}_{\cdot ,jh_2w_2}$ . For the stride 1 convolution case, there exists a much simpler condition equivalent to Condition 5:
+
+$$
+\operatorname {C o n v} \left(K ^ {T}, K ^ {T}, \text {p a d d i n g} = k - 1, \text {s t r i d e} = 1\right) = I _ {c 0} \tag {6}
+$$
+
+where $K^T$ is the input-output transposed $K$ , i.e. $K^T \in \mathbf{R}^{C \times M \times k \times k}$ . $I_{c0} \in \mathbf{R}^{C \times C \times (2k - 1) \times (2k - 1)}$ has all zeros except for the center $C \times C$ entries as an identity matrix.
+
+Comparison to Kernel Orthogonality. The kernel row- and column-orthogonality condition can be written in the following convolution form respectively:
+
+$$
+\left\{ \begin{array}{l} \operatorname {C o n v} (K, K, \text {p a d d i n g} = 0) = I _ {r 0} \\ \operatorname {C o n v} \left(K ^ {T}, K ^ {T}, \text {p a d d i n g} = 0\right) = I _ {c 0} \end{array} \right. \tag {7}
+$$
+
+where tensor $I_{r0} \in \mathbf{R}^{M \times M \times 1 \times 1}$ , $I_{c0} \in \mathbf{R}^{C \times C \times 1 \times 1}$ are both equivalent to identity matrices1.
+
+It's obvious that the kernel orthogonality conditions 7 are necessary but not sufficient conditions for the orthogonal convolution conditions 3,6 in general. For the special case when convolution stride is $k$ , they are equivalent.
+
+Row-Column Orthogonality Equivalence. The lemma below unifies the row orthogonality condition 2 and column
+
+orthogonality condition 5. This lemma [37] gives a uniform convolution orthogonality independent of the actual shape of $\kappa$ and provides a unique regularization: $\min_K L_{\mathrm{orth}} = \| Z - I_{r0}\| _F^2$ , which only depends on Condition 3.
+
+Lemma 1. The row orthogonality and column orthogonality are equivalent in the MSE sense, i.e. $\| \mathcal{K}\mathcal{K}^T -I\| _F^2 =$ $\| \mathcal{K}^T\mathcal{K} - I'\| _F^2 +U$ , where $U$ is a constant.
+
+we leave the proof to Section D of supplementary materials.
+
+Orthogonal Regularization in CNNs. We will add additional soft orthogonal convolution regularization loss to the final loss of CNNs, so that the task objective and orthogonality regularization can be simultaneously achieved. Denoting $\lambda > 0$ as the weight of the orthogonal regularization loss, the final loss is:
+
+$$
+L = L _ {\text {t a s k}} + \lambda L _ {\text {o r t h}} \tag {8}
+$$
+
+where $L_{\mathrm{task}}$ is the task loss, e.g. softmax loss in image classification task, $L_{\mathrm{orth}}$ is the orthogonal regularization loss.
+
+# 4. Experiments
+
+We conduct 3 sets of experiments to evaluate OCNNs. The first set benchmarks our approach on image classification datasets CIFAR100 and ImageNet. The second set benchmarks the performance under semi-supervised settings and focuses on qualities of learned features. In terms of high-level visual features, we experiment on the fine-grained bird image retrieval. For low-level visual features, we experiment on unsupervised image inpainting. Additionally, we compare visual feature qualities in image generation tasks. The third set of experiments focuses on the robustness of OCNN under adversarial attacks. We analyze OCNNs in terms of DBT matrix $\kappa$ 's spectrum, feature similarity, hyperparameter tuning and space/time complexity.
+
+# 4.1. Image Classification on CIFAR100
+
+The key novelty of our approach is the orthogonal regularization term on convolution layers. We compare both conv-orthogonal and kernel-orthogonal regularizers on CIFAR-100 [35] and evaluate the image classification performance using ResNet [24] and WideResNet [59] as backbone network. The kernel-orthogonality and our conv-orthogonality are added as additional regularization terms, without modifying the network architecture. The number of parameters of the network hence does not change.
+
+ResNet and Row Orthogonality. Though we have derived a unified orthogonal convolution regularizer, we would like to benchmark its effectiveness in two different settings. Convolutional layers in Resnet [24] usually preserve or reduce the dimension from input to output, i.e. a DBT matrix $\mathcal{K}$ would be a square or fat matrix. In this case, our regularizer leads to row orthogonality condition. Table 2 shows
+
+top-1 classification accuracies on CIFAR100. Our approach achieves $78.1\%$ , $78.7\%$ , and $79.5\%$ image classification accuracies with ResNet18, ResNet34 and ResNet50, respectively. OCNN outperforms the baseline by $3\%$ , $2\%$ , and $1\%$ over baseline, as well as $2\%$ , $1\%$ , and $1\%$ over the kernel orthogonal regularization.
+
+WideResNet and Column Orthogonality. Unlike ResNet, WideResNet [59] has more channels and some tall DBT matrices $\kappa$ . When the corresponding DBT matrix $\kappa$ of a convolutional layer increases dimensionality from the input to the output, OCNN leads to the column orthogonality condition. Table 3 reports the performance of column orthogonal regularizers with backbone model of WideResNet28 on CIFAR100. Our OCNNs achieve $3\%$ and $1\%$ gain over baseline and kernel orthogonal regularizers.
+
+Table 2. Top-1 accuracies on CIFAR100. Our OCNN outperforms baselines and the SOTA orthogonal regularizations.
+
+ | ResNet18 | ResNet34 | ResNet50 |
| baseline [24] | 75.3 | 76.7 | 78.5 |
| kernel orthogonality [57] | 76.5 | 77.5 | 78.8 |
| OCNN (ours) | 78.1 | 78.7 | 79.5 |
+
+Table 3. WideResNet [59] performance. We observe improved performance of OCNNs.
+
+ | WideResNet [59] | Kernel orth [57] | OCNN |
| Acc. | 77.0 | 79.3 | 80.1 |
+
+# 4.2. Image Classification on ImageNet
+
+We add conv-orthogonal regularizers to the backbone model ResNet34 on ImageNet [14], and compare our method with state-of-the-art orthogonal regularizations.
+
+Experimental Settings. We follow the standard training and evaluation protocols of ResNet34. In particular, the total epoch of the training is 90. We start the learning rate with 0.1, with decreasing by 0.1 every 30 epochs and weight decay 1e-4. The weight $\lambda$ of the regularization loss is 0.01, the model is trained using SGD with momentum 0.9, and the batch size is 256.
+
+Comparisons. Our method is compared with hard orthogonality OMDSM [30], kernel orthogonality [57] and spectral restricted isometry property regularization [5]. Table 4 shows the Top-1 and Top-5 accuracies on ImageNet. Without additional modification to the backbone model, OCNN achieves $25.87\%$ top-5 and $7.89\%$ top-1 error. The proposed method outperforms the plain baseline, as well as other orthogonal regularizations by $1\%$ .
+
+# 4.3. Semi-supervised Learning
+
+A general regularizer should provide benefit to a variety of tasks. A common scenario that benefits from regularization is the semi-supervised learning: a large amount
+
+Table 4. Top-1 and Top-5 errors on ImageNet [14] with ResNet34 [24]. Our conv-orthogonal regularization outperforms baselines and SOTA orthogonal regularizations.
+
+ | Top-1 error | Top-5 error |
| ResNet34 (baseline) [24] | 26.70 | 8.58 |
| OMDSM [30] | 26.88 | 8.89 |
| kernel orthogonality [57] | 26.68 | 8.43 |
| SRIP [5] | 26.10 | 8.32 |
| OCNN (ours) | 25.87 | 7.89 |
+
+
+Figure 5. Image retrieval results on CUB-200 Birds Dataset. The model (ResNet34) is trained on ImageNet only. First row shows our OCNN results, while the second row shows the baseline model results. Ours achieves $2\%$ and $3\%$ top-1 and top-5 $k$ -nearest neighbor classification gain.
+
+of data with limited labels. We randomly choose a subset of CIFAR100 as labeled and treat the rest as unlabeled. The orthogonal regularization is added the baseline model ResNet18 without any additional modifications. The classification performance is evaluated on the entire validation set for all different labeled subsets.
+
+Varying the proportion of labeled subset from $10\%$ to $80\%$ of the entire dataset, OCNN is compared with the kernel-orthogonal regularization and the results are shown in Table 5. OCNN constantly outperforms the baseline by $2\% - 3\%$ under different fractions of labeled data.
+
+Table 5. Top-1 accuracies on CIFAR100 with different fractions of labeled data. OCNNs are consistently better.
+
+| % of training data | 10% | 20% | 40% | 60% | 80% | 100% |
| ResNet18 [24] | 31.2 | 47.9 | 60.9 | 66.6 | 69.1 | 75.3 |
| kernel orthogonality [57] | 33.7 | 50.5 | 63.0 | 68.8 | 70.9 | 76.5 |
| Conv-orthogonality | 34.5 | 51.0 | 63.5 | 69.2 | 71.5 | 78.1 |
| Our gain | 3.3 | 3.1 | 2.6 | 2.6 | 2.4 | 2.8 |
+
+# 4.4. Fine-grained Image Retrieval
+
+We conduct fine-grained image retrieval experiments on CUB-200 bird dataset [55] to understand high-level visual feature qualities of OCNNs. Specifically, we directly use the ResNet34 model trained on ImageNet (from Section 4.2) to obtain features of images in CUB-200, without further training on the dataset. We observed improved results with OCNNs (Fig.5). With conv-orthogonal regulariz
+
+
+Figure 6. Image inpainting results compared with deep image prior [52]. Top - comparison on text inpainting example. Bottom - comparison on inpainting $50\%$ of missing pixels. In both cases, our approach outperforms previous methods.
+
+ers, the top-1 $k$ -nearest-neighbor classification accuracy improves from $25.1\%$ to $27.0\%$ , and top-5 $k$ -nearest-neighbor classification accuracy improves from $39.4\%$ to $42.3\%$ .
+
+# 4.5. Unsupervised Image Inpainting
+
+To further assess the generalization capacity of OCNNs, we add the regularization term to the new task of unsupervised inpainting. In image inpainting, one is given an image $X_0$ with missing pixels in correspondence of a binary mask $M \in \{0,1\}^{C \times H \times W}$ of the same size of the image. The goal is to reconstruct the original image $X$ by recovering missing pixels:
+
+$$
+\min E (X; X _ {0}) = \min \| (X - X _ {0}) \odot M \| _ {F} ^ {2} \tag {9}
+$$
+
+Deep image prior (DIP) [52] proposed to use the prior implicitly captured by the choice of a particular generator network $f_{\theta}$ with parameter $\theta$ . Specifically, given a code vector/ tensor $\mathbf{z}$ , they used CNNs as a parameterization $X = f_{\theta}(\mathbf{z})$ . The reconstruction goal in Eqn.9 can be written as:
+
+$$
+\min _ {\theta} \left\| \left(f _ {\theta} (\mathbf {z}) - X _ {0}\right) \odot M \right\| _ {F} ^ {2} \tag {10}
+$$
+
+The network can be optimized without training data to recover $X$ . We further add our conv-orthogonal regularization as an additional prior to the reconstruction goal, to validate if the proposed regularization helps the inpainting:
+
+$$
+\min _ {\theta} \left\| \left(f _ {\theta} (\mathbf {z}) - X _ {0}\right) \odot M \right\| _ {F} ^ {2} + \lambda L _ {\text {o r t h}} (\theta) \tag {11}
+$$
+
+In the first example (Fig.6, top), the inpainting is used to remove text overlaid on an image. Compared with DIP [52], our orthogonal regularization leads to improved reconstruction result of details, especially for the smoothed face outline and finer teeth reconstruction.
+
+The second example (Fig.6, bottom) considers inpainting with masks randomly sampled according to a binary
+
+Table 6. Quantitative comparisons on the standard inpainting dataset [27]. Our conv-orthogonality outperforms the SOTA methods.
+
+ | Barbara | Boat | House | Lena | Peppers | C.man | Couple | Finger | Hill | Man | Montage |
| Convolutional dictionary learning [44] | 28.14 | 31.44 | 34.58 | 35.04 | 31.11 | 27.90 | 31.18 | 31.34 | 32.35 | 31.92 | 28.05 |
| Deep image prior (DIP) [52] | 32.22 | 33.06 | 39.16 | 36.16 | 33.05 | 29.8 | 32.52 | 32.84 | 32.77 | 32.20 | 34.54 |
| DIP + kernel orthogonality [57] | 34.88 | 34.93 | 38.53 | 37.66 | 34.58 | 33.18 | 33.71 | 34.40 | 35.98 | 32.93 | 36.99 |
| DIP + conv-orthogonality (ours) | 38.12 | 35.15 | 41.73 | 39.76 | 37.75 | 38.21 | 35.88 | 36.87 | 39.89 | 33.57 | 38.48 |
+
+
+Figure 7. OCNNs have faster convergence for GANs. For IS (left) and FID (right), OCNNs consistently outperforms CNNs [18] at every epoch.
+
+
+
+Bernoulli distribution. Following the procedure in [44, 52], we sample a mask to randomly drop $50\%$ of pixels. For a fair comparison, all the methods adopt the same mask. We observe improved background quality, as well as finer reconstruction of the texture of butterfly wings.
+
+We report quantitative PSNR comparisons on the standard data set [26] in Table 6. OCNN outperforms previous state-of-the-art DIP [52] and convolutional sparse coding [44]. We also observe performance gain compared to kernel orthogonal regularizations.
+
+# 4.6. Image Generation
+
+Orthogonal regularizers have shown great success in improving the stability and performance of GANs [9, 40, 8]. We analyze the influence of our convolutional orthogonal regularizer on GANs with the best architecture reported in [18]. Training takes 320 epochs with OCNN regularizer applied to both the generator and discriminator. The regularizer loss $\lambda$ is set to 0.01 and all of other settings retain as standard default.
+
+Table 7. Inception Score and Fréchet Inception Distance comparison on CIFAR10. Our OCNN outperforms the baseline [18] by 0.3 IS and 1.3 FID.
+
+ | IS | FID |
| PixelCNN [53] | 4.60 | 65.93 |
| PixelIQN [42] | 5.29 | 49.46 |
| EBM [16] | 6.78 | 38.20 |
| SNGAN [40] | 8.22 | 21.70 |
| BigGAN [8] | 9.22 | 14.73 |
| AutoGAN [18] | 8.32 | 13.01 |
| OCNN (ours) | 8.63 | 11.75 |
+
+The reported model is evaluated 5 times with $50\mathrm{k}$ images each. We achieve $8.63 \pm 0.007$ inception score (IS) and $11.75 \pm 0.04$ Fréchet inception distance (FID) (Table 7), outperforming the baseline and achieving the state-of-the-art performance. Additionally, we observe faster con
+
+
+Figure 8. Model accuracy v.s. attack time and necessary attack queries. With our conv-orthogonal regularizer, it takes $7\mathrm{x}$ time and $1.7\mathrm{x}$ necessary attack queries to achieve $90\%$ successful attack rate. Note that baseline ends at accuracy $3.5\%$ while ours ends at $5.5\%$ with the same iteration.
+
+
+
+vergence of GANs with our regularizer (Fig.7).
+
+# 4.7. Robustness under Attack
+
+The uniform spectrum of $\kappa$ makes each convolution layer approximately an 1-Lipschitz function. Given a small perturbation to input, $\Delta x$ , the change of output $\Delta y$ is bounded to be low. Therefore, the model enjoys robustness under attack. The experiments show that it is much harder to search for adversarial examples.
+
+Table 8. Attack time and number of necessary attack queries needed for $90\%$ successful attack rate.
+
+ | Attack time/s | # necessary attack queries |
| ResNet18 [24] | 19.3 | 27k |
| OCNN (ours) | 136.7 | 46k |
+
+We adopt the simple black box attack [19] to evaluate the robustness of baseline and our OCNN with ResNet18 [24] backbone architecture trained on CIFAR100. The attack basically samples around the input image and finds a "direction" to rapidly decrease the classification confidence of the network by manipulating the input. We only evaluate on the correctly classified test images. The maximum iteration is 10,000 with pixel attack. All other settings are retained. We report the attack time and number of necessary attack queries for a specific attack successful rate.
+
+It takes about 7x time and 1.7x attack queries to attack our OCNN, compared with the baseline (Fig.8 and Table 8). Additionally, after the same iterations of the attack, our model outperforms the baseline by $2\%$ .
+
+To achieve the same attack rate, baseline models need more necessary attack queries, and searching for such queries is nontrivial and time consuming. This may account for the longer attack time of the OCNN.
+
+# 4.8. Analysis
+
+To understand how the conv-orthogonal regularization help improve the performance of CNNs, we analyze several aspects of OCNNs. First, we analyze the spectrum of the DBT matrix $\mathcal{K}$ to understand how it helps relieve gradient vanishing/exploding. We then analyze the feature similarity of OCNNs, followed by the influence of the weight $\lambda$ of the regularization term. Finally, the time and space complexity of OCNNs is analyzed.
+
+Spectrum of the DBT Kernel Matrix $\kappa$ . For a convolution $Y = \kappa X$ , we analyze the spectrum of $\kappa$ to understand the properties of the convolution. We analyze the spectrum of $K \in \mathbf{R}^{64 \times 128 \times 3 \times 3}$ of the first convolutional layer of the third convolutional block of ResNet18 network trained on CIFAR100. For fast computation, we use input of size $64 \times 16 \times 16$ , and solve all the singular values of $\kappa$ .
+
+As in Fig.1(b), the spectrum of plain models vanishes rapidly, and may cause gradient vanishing problems. Kernel orthogonality helps the spectrum decrease slower. With our conv-orthogonal regularization, the spectrum almost always stays at 1. The uniform spectrum preserves norm and information between convolution layers.
+
+Filter Similarity. Orthogonality makes off-diagonal elements to be 0. This means that for any two channels of a convolution layer, correlations should be relatively small. This can reduce the filter similarity and redundancy across different channels.
+
+We use guided back-propagation patterns [51] on images from the validation set of ImageNet [14] dataset to investigate filter similarities. Guided back-propagation patterns visualize the gradient of a particular neuron with respect to the input image $X \in \mathbf{R}^{C \times H \times W}$ . Specifically for a layer of $M$ channels, the combination of flattened guided backpropagation patterns were denoted as $G \in \mathbf{R}^{M \times CWH}$ . The correlation matrix $\mathrm{corr}(G)$ over different channels of this layer is $(\mathrm{diag}(K_{GG}))^{-\frac{1}{2}} K_{GG}(\mathrm{diag}(K_{GG}))^{-\frac{1}{2}}$ , where $K_{GG} = \frac{1}{M} [(G - \mathbb{E}[G])(G - \mathbb{E}[G])^T]$ is the covariance matrix. We plot the histogram of off-diagonal elements of $\mathrm{corr}(G)$ of all validation images.
+
+Fig.1(a) depicts the normalized histogram of pairwise filter similarities of plain ResNet34. As number of channels increases with depth from 128 to 512, the curve shifts right and becomes far narrower, i.e., more filters become similar. Fig.1(c) depicts the histogram of filter similarities at layer 27 of ResNet34 with different regularizers. OCNNs make the curve shifts left and becomes wider, indicating its ability to enhance filter diversity and decrease feature redundancy.
+
+Hyper-parameter Analysis. We analyze the Influence of the weight $\lambda$ of the orthogonality loss. As discussed earlier, we achieve the "soft orthogonality" by add additional loss with weight $\lambda$ to the network. Fig.9 plots the image classification performance of CIFAR100 with backbone model
+
+
+Figure 9. CIFAR100 classification accuracy (\%) with different weight $\lambda$ of the regularization loss. With backbone model ResNet18, we achieve the highest performance at $\lambda = 0.1$ .
+
+ResNet18 under $\lambda$ ranging from 0.05 to 1.0. Our approach achieves the best classification accuracy when $\lambda = 0.1$ .
+
+Space and Time Complexity. We analyze the space and time complexity in Table 9. We test the ResNet34 [24] backbone model on ImageNet [14] with a single NVIDIA GeForce GTX 1080 Ti GPU and batch size 256.
+
+The number of parameters and the test time of the CNN do not change since the regularizer is an additional loss term only used during training. With kernel orthogonal regularizers, the training time increase $3\%$ ; with conv-orthogonal regularizers, the training time increase $9\%$ .
+
+Table 9. Model size and training/ test time on ImageNet [14].
+
+ | ResNet34 [24] | kernel-orth [57] | OCNN |
| # Params. | 21.8M | same | same |
| Training time (min/epoch) | 49.5 | 51.0 | 54.1 |
| Test time (min/epoch) | 1.5 | same | same |
+
+# 5. Summary
+
+We develop an efficient OCNN approach to impose a filter orthogonality condition on a convolution layer based on the doubly block-Toeplitz matrix representation of the convolutional kernel, as opposed to the commonly adopted kernel orthogonality approaches. We show that kernel orthogonality [5, 30] is necessary but not sufficient for ensuring orthogonal convolutions.
+
+Our OCNN requires no additional parameters and little computational overhead, consistently outperforming the state-of-the-art alternatives on a wide range of tasks such as image classification and inpainting under supervised, semi-supervised and unsupervised settings. It learns more diverse and expressive features with better training stability, robustness, and generalization.
+
+# Acknowledgements.
+
+This research was supported, in part, by Berkeley Deep Drive, DARPA, and NSF-IIS-1718991. The authors thank Xudong Wang for discussions on filter similarity, Jesse Livezey for the pointer to a previous proof for row-column orthogonality equivalence, and anonymous reviewers for their insightful comments.
+
+# References
+
+[1] M. Arjovsky, A. Shah, and Y. Bengio. Unitary evolution recurrent neural networks. In Proceedings of the International Conference on Machine Learning (ICML), pages 1120-1128, 2016. 2, 3
+[2] J. L. Ba, J. R. Kiros, and G. E. Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016. 3
+[3] R. Balestriero and R. Baraniuk. Mad max: Affine spline insights into deep learning. arXiv preprint arXiv:1805.06576, 2018. 1, 2
+[4] R. Balestriero et al. A spline theory of deep networks. In Proceedings of the International Conference on Machine Learning (ICML), pages 383-392, 2018. 1, 2
+[5] N. Bansal, X. Chen, and Z. Wang. Can we gain more from orthogonality regularizations in training deep cnns? In Advances in Neural Information Processing Systems (NeurIPS), pages 4266-4276, 2018. 1, 2, 3, 5, 6, 8
+[6] D. Bau, B. Zhou, A. Khosla, A. Oliva, and A. Torralba. Network dissection: Quantifying interpretability of deep visual representations. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 6541-6549, 2017. 12
+[7] Y. Bengio, P. Simard, P. Frasconi, et al. Learning long-term dependencies with gradient descent is difficult. IEEE Transactions on Neural Networks, 5(2):157-166, 1994. 1
+[8] A. Brock, J. Donahue, and K. Simonyan. Large scale GAN training for high fidelity natural image synthesis. In Proceedings of the International Conference on Learning Representations (ICLR), 2019. 2, 3, 7
+[9] A. Brock, T. Lim, J. M. Ritchie, and N. Weston. Neural photo editing with introspective adversarial networks. In Proceedings of the International Conference on Learning Representations (ICLR), 2017. 3, 7
+[10] M. L. Casado and D. Martínez-Rubio. Cheap orthogonal constraints in neural networks: A simple parametrization of the orthogonal and unitary group. In Proceedings of the International Conference on Machine Learning (ICML), pages 3794-3803, 2019. 3
+[11] Y. Chen, X. Jin, J. Feng, and S. Yan. Training group orthogonal neural networks with privileged information. In Proceedings of the International Joint Conference on Artificial Intelligence (IJCAI), pages 1532-1538, 2017. 3
+[12] B. Cheung, A. Terekhov, Y. Chen, P. Agrawal, and B. A. Olshausen. Superposition of many models into one. In Advances in Neural Information Processing Systems (NeurIPS), pages 10867-10876, 2019. 1
+[13] Y. N. Dauphin, R. Pascanu, C. Gulcehre, K. Cho, S. Ganguli, and Y. Bengio. Identifying and attacking the saddle point problem in high-dimensional non-convex optimization. In Advances in Neural Information Processing Systems (NIPS), pages 2933–2941, 2014. 1
+[14] J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. Imagenet: A large-scale hierarchical image database. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 248–255, 2009. 1, 5, 6, 8, 12
+
+[15] V. Dorobantu, P. A. Stromhaug, and J. Renteria. Dizziness: Reparameterizing recurrent neural networks for norm-preserving backpropagation. arXiv preprint arXiv:1612.04035, 2016. 3
+[16] Y. Du and I. Mordatch. Implicit generation and generalization in energy-based models. Advances in Neural Information Processing Systems (NeurIPS), 2019. 7
+[17] X. Glorot and Y. Bengio. Understanding the difficulty of training deep feedforward neural networks. In Proceedings of the International Conference on Artificial Intelligence and Statistics (AISTATS), pages 249-256, 2010. 1, 3
+[18] X. Gong, S. Chang, Y. Jiang, and Z. Wang. Autogan: Neural architecture search for generative adversarial networks. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 3224-3234, 2019. 7
+[19] C. Guo, J. R. Gardner, Y. You, A. G. Wilson, and K. Q. Weinberger. Simple black-box adversarial attacks. In Proceedings of the International Conference on Machine Learning (ICML), pages 2484–2493, 2019. 7
+[20] S. Han, X. Liu, H. Mao, J. Pu, A. Pedram, M. A. Horowitz, and W. J. Dally. EIE: efficient inference engine on compressed deep neural network. In IEEE Annual International Symposium on Computer Architecture (ISCA), pages 243-254, 2016. 3
+[21] S. Han, H. Mao, and W. J. Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. Proceedings of the International Conference on Learning Representations (ICLR), 2016. 1
+[22] M. Harandi and B. Fernando. Generalized backpropagation, étude de cas: Orthogonality. arXiv preprint arXiv:1611.05927, 2016. 3
+[23] K. He, X. Zhang, S. Ren, and J. Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the IEEE International Conference on Computer Vision (CVPR), pages 1026-1034, 2015. 3
+[24] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 770-778, 2016. 5, 6, 7, 8, 12, 13
+[25] Y. He, X. Zhang, and J. Sun. Channel pruning for accelerating very deep neural networks. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 1389-1397, 2017. 3
+[26] F. Heide, W. Heidrich, and G. Wetzstein. Fast and flexible convolutional sparse coding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5135-5143, 2015. 2, 7
+[27] F. Heide, W. Heidrich, and G. Wetzstein. Fast and flexible convolutional sparse coding. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2015. 7
+[28] E. Hoffer and N. Ailon. Deep metric learning using triplet network. In International Workshop on Similarity-Based Pattern Recognition, pages 84-92. Springer, 2015. 13
+[29] A. G. Howard, M. Zhu, B. Chen, D. Kalenichenko, W. Wang, T. Weyand, M. Andreetto, and H. Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. arXiv preprint arXiv:1704.04861, 2017. 3
+
+[30] L. Huang, X. Liu, B. Lang, A. W. Yu, Y. Wang, and B. Li. Orthogonal weight normalization: Solution to optimization over multiple dependent stiefel manifolds in deep neural networks. In AAAI Conference on Artificial Intelligence (AAAI), 2018. 3, 5, 6, 8
+[31] S. Ioffe and C. Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Proceedings of the International Conference on Machine Learning (ICML), pages 448-456, 2015. 1, 3
+[32] M. Jaderberg, A. Vedaldi, and A. Zisserman. Speeding up convolutional neural networks with low rank expansions. In Proceedings of the British Machine Vision Conference (BMVC), 2014. 3
+[33] J. Kovačević, A. Chebira, et al. An introduction to frames. Foundations and Trends in Signal Processing, 2(1):1-94, 2008. 4
+[34] J. Krause, M. Stark, J. Deng, and L. Fei-Fei. 3d object representations for fine-grained categorization. In 4th International IEEE Workshop on 3D Representation and Recognition (3dRR-13), Sydney, Australia, 2013. 12
+[35] A. Krizhevsky, G. Hinton, et al. Learning multiple layers of features from tiny images. Technical report, University of Toronto, Canada, 2009. 5
+[36] A. Krizhevsky, I. Sutskever, and G. E. Hinton. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems (NIPS), pages 1097-1105, 2012. 1
+[37] Q. V. Le, A. Karpenko, J. Ngiam, and A. Y. Ng. Ica with reconstruction cost for efficient overcomplete feature learning. In Advances in Neural Information Processing Systems (NIPS), pages 1017-1025, 2011. 5, 13
+[38] S. Li, S. Bak, P. Carr, and X. Wang. Diversity regularized spatiotemporal attention for video-based person re-identification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 369–378, 2018. 3
+[39] D. Mishkin and J. Matas. All you need is a good init. In Proceedings of the International Conference on Learning Representations (ICLR), 2016. 3
+[40] T. Miyato, T. Kataoka, M. Koyama, and Y. Yoshida. Spectral normalization for generative adversarial networks. In Proceedings of the International Conference on Learning Representations (ICLR), 2018. 2, 3, 7
+[41] Y. Movshovitz-Attias, A. Toshev, T. K. Leung, S. Ioffe, and S. Singh. No fuss distance metric learning using proxies. In Proceedings of the IEEE International Conference on Computer Vision, pages 360–368, 2017. 12, 13
+[42] G. Ostrovski, W. Dabney, and R. Munos. Autoregressive quantile networks for generative modeling. In Proceedings of the International Conference on Machine Learning (ICML), pages 3936-3945, 2018. 7
+[43] M. Ozay and T. Okatani. Optimization on submanifolds of convolution kernels in cnns. arXiv preprint arXiv:1610.07008, 2016. 3
+[44] V. Papyan, Y. Romano, J. Sulam, and M. Elad. Convolutional dictionary learning via local processing. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2017. 7
+
+[45] R. Pascanu, T. Mikolov, and Y. Bengio. On the difficulty of training recurrent neural networks. In Proceedings of the International Conference on Machine Learning (ICML), pages 1310-1318, 2013. 3
+[46] P. Rodríguez, J. González, G. Cucurull, J. M. Gonfaus, and F. X. Roca. Regularizing cnns with locally constrained decorrelations. In Proceedings of the International Conference on Learning Representations (ICLR), 2017. 1, 3
+[47] T. Salimans and D. P. Kingma. Weight normalization: A simple reparameterization to accelerate training of deep neural networks. In Advances in Neural Information Processing Systems (NIPS), pages 901-909, 2016. 3
+[48] A. M. Saxe, J. L. McClelland, and S. Ganguli. Exact solutions to the nonlinear dynamics of learning in deep linear neural networks. In Proceedings of the International Conference on Learning Representations (ICLR), 2014. 3
+[49] H. Sedghi, V. Gupta, and P. M. Long. The singular values of convolutional layers. In Proceedings of the International Conference on Learning Representations (ICLR), 2019. 3
+[50] K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. In Proceedings of the International Conference on Learning Representations (ICLR), 2015. 1
+[51] J. Springenberg, A. Dosovitskiy, T. Brox, and M. Riedmiller. Striving for simplicity: The all convolutional net. In ICLR (workshop track), 2015. 8
+[52] D. Ulyanov, A. Vedaldi, and V. Lempitsky. Deep image prior. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 6, 7
+[53] A. Van den Oord, N. Kalchbrenner, L. Espeholt, O. Vinyals, A. Graves, et al. Conditional image generation with pixel-cnn decoders. In Advances in Neural Information Processing Systems (NIPS), pages 4790-4798, 2016. 7
+[54] E. Vorontsov, C. Trabelsi, S. Kadoury, and C. Pal. On orthogonality and learning recurrent networks with long term dependencies. In Proceedings of the International Conference on Machine Learning (ICML), pages 3570-3578, 2017. 3
+[55] 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. 6
+[56] S. Wisdom, T. Powers, J. Hershey, J. Le Roux, and L. Atlas. Full-capacity unitary recurrent neural networks. In Advances in Neural Information Processing Systems (NIPS), pages 4880-4888, 2016. 3
+[57] D. Xie, J. Xiong, and S. Pu. All you need is beyond a good init: Exploring better solution for training extremely deep convolutional neural networks with orthonormality and modulation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 6176-6185, 2017. 1, 2, 3, 5, 6, 7, 8
+[58] K. Yanai, R. Tanno, and K. Okamoto. Efficient mobile implementation of a cnn-based object recognition system. In Proceedings of the International Conference on Multimedia (ICM), pages 362-366, 2016. 2
+
+[59] S. Zagoruyko and N. Komodakis. Wide residual networks. In Proceedings of the British Machine Vision Conference (BMVC), 2016. 5
+[60] H. Zheng, J. Fu, T. Mei, and J. Luo. Learning multi-attention convolutional neural network for fine-grained image recognition. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 5209–5217, 2017. 3
+[61] J. Zhou, M. N. Do, and J. Kovacevic. Special paraunitary matrices, Cayley transform, and multidimensional orthogonal filter banks. IEEE Transactions on Image Processing, 15(2):511-519, 2006. 1
\ No newline at end of file
diff --git a/orthogonalconvolutionalneuralnetworks/images.zip b/orthogonalconvolutionalneuralnetworks/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..1028672581f24efd724e6cb50268b5a9568d51ba
--- /dev/null
+++ b/orthogonalconvolutionalneuralnetworks/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9dceeafaa2fd95cd2f4f3939a18437816c1d78768eb8c6c5cccf23cb2710953e
+size 628099
diff --git a/orthogonalconvolutionalneuralnetworks/layout.json b/orthogonalconvolutionalneuralnetworks/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..9900c26e453b90799177e9a0f47f9f91a73a4f9c
--- /dev/null
+++ b/orthogonalconvolutionalneuralnetworks/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c5ca5c6719992a63cbf8eb38cf82158ed72c7196447ad1895b8bdb4e0fba14d5
+size 592171
diff --git a/overcomingclassifierimbalanceforlongtailobjectdetectionwithbalancedgroupsoftmax/ff9db22e-f0a8-4f30-a237-f8a854e42121_content_list.json b/overcomingclassifierimbalanceforlongtailobjectdetectionwithbalancedgroupsoftmax/ff9db22e-f0a8-4f30-a237-f8a854e42121_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..e31ee015c93c7a01d7052912b8d314e3fcd13e9c
--- /dev/null
+++ b/overcomingclassifierimbalanceforlongtailobjectdetectionwithbalancedgroupsoftmax/ff9db22e-f0a8-4f30-a237-f8a854e42121_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7565ac68635c8d970213c607992a44b548cfb495e1ba803fe6d6b8879405b2f5
+size 80128
diff --git a/overcomingclassifierimbalanceforlongtailobjectdetectionwithbalancedgroupsoftmax/ff9db22e-f0a8-4f30-a237-f8a854e42121_model.json b/overcomingclassifierimbalanceforlongtailobjectdetectionwithbalancedgroupsoftmax/ff9db22e-f0a8-4f30-a237-f8a854e42121_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..9e894492ebdc7026a58d4e81df9ca4714c8c5f38
--- /dev/null
+++ b/overcomingclassifierimbalanceforlongtailobjectdetectionwithbalancedgroupsoftmax/ff9db22e-f0a8-4f30-a237-f8a854e42121_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:24feee87ccfff8b934f53c63e6cf03988975387f5f2ae42ba3bdf87f9f3ce80e
+size 95243
diff --git a/overcomingclassifierimbalanceforlongtailobjectdetectionwithbalancedgroupsoftmax/ff9db22e-f0a8-4f30-a237-f8a854e42121_origin.pdf b/overcomingclassifierimbalanceforlongtailobjectdetectionwithbalancedgroupsoftmax/ff9db22e-f0a8-4f30-a237-f8a854e42121_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..df7b70dd422af7b874324f3abb6f704d1f0230da
--- /dev/null
+++ b/overcomingclassifierimbalanceforlongtailobjectdetectionwithbalancedgroupsoftmax/ff9db22e-f0a8-4f30-a237-f8a854e42121_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:141ba55828edb830d8a515b8b5b7acf0d1ac368eba0cfa3645d84912cdf1f28a
+size 639148
diff --git a/overcomingclassifierimbalanceforlongtailobjectdetectionwithbalancedgroupsoftmax/full.md b/overcomingclassifierimbalanceforlongtailobjectdetectionwithbalancedgroupsoftmax/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..d47c255445434ef0df3051668477fc5560b87cc4
--- /dev/null
+++ b/overcomingclassifierimbalanceforlongtailobjectdetectionwithbalancedgroupsoftmax/full.md
@@ -0,0 +1,265 @@
+# Overcoming Classifier Imbalance for Long-tail Object Detection with Balanced Group Softmax
+
+Yu Li $^{1,2,3*}$ , Tao Wang $^{3,4}$ , Bingyi Kang $^{3}$ ,†Sheng Tang $^{1,2}$ , Chunfeng Wang $^{2}$ , Jintao Li $^{1,2}$ , Jiashi Feng $^{3}$ $^{1}$ Key Laboratory of Intelligent Information Processing, Institute of Computing Technology, Chinese Academy of Sciences, Beijing, China
+ $^{2}$ University of Chinese Academy of Sciences, Beijing, China
+
+$^{3}$ Department of Electrical and Computer Engineering, National University of Singapore, Singapore
+
+$^{4}$ Institute of Data Science, National University of Singapore, Singapore
+
+{liyu, ts, jtli}@ict.ac.cn, twangnh@gmail.com, kang@u.nus.edu, wangchunfeng14@mails.ucas.ac.cn, elefjia@nus.edu.sg
+
+# Abstract
+
+Solving long-tail large vocabulary object detection with deep learning based models is a challenging and demanding task, which is however under-explored. In this work, we provide the first systematic analysis on the underperformance of state-of-the-art models in front of long-tail distribution. We find existing detection methods are unable to model few-shot classes when the dataset is extremely skewed, which can result in classifier imbalance in terms of parameter magnitude. Directly adapting long-tail classification models to detection frameworks can not solve this problem due to the intrinsic difference between detection and classification. In this work, we propose a novel balanced group softmax (BAGS) module for balancing the classifiers within the detection frameworks through group-wise training. It implicitly modulates the training process for the head and tail classes and ensures they are both sufficiently trained, without requiring any extra sampling for the instances from the tail classes. Extensive experiments on the very recent long-tail large vocabulary object recognition benchmark LVIS show that our proposed BAGS significantly improves the performance of detectors with various backbones and frameworks on both object detection and instance segmentation. It beats all state-of-the-art methods transferred from long-tail image classification and establishes new state-of-the-art. Code is available at https://github.com/FishYuLi/BalancedGroupSoftmax.
+
+
+Figure 1. Sorted number of training instances (#ins) for categories in COCO and LVIS training set, and the corresponding classifier weight norm $\| w\|$ from Faster R-CNN model trained on COCO and LVIS. The x-axis represents the sorted category index of COCO and LVIS. We align 80 classes of COCO with 1230 classes of LVIS for better visualization. Category 0 indicates background.
+
+# 1. Introduction
+
+Object detection [31, 29, 25, 23, 21, 1] is one of the most fundamental and challenging tasks in computer vision. Recent advances are mainly driven by large-scale datasets that are manually balanced, such as PASCAL VOC [9] and COCO [24]. However in reality, the distribution of object categories is typically long-tailed [30]. Effective solutions that adapt state-of-the-art detection models to such class-imbalanced distribution are highly desired yet still absent. Recently, a long-tail large vocabulary object recognition dataset LVIS [14] is released, which greatly facilitates object detection research in much more realistic scenarios.
+
+A straightforward solution to long-tail object detection is to train a well-established detection model (e.g., Faster R-CNN [31]) on the long-tail training data directly. However, big performance drop would be observed when adapting detectors designed for fairly balanced datasets (e.g., COCO) to a long-tail one (e.g., LVIS), for which the rea
+
+sons still remain unclear due to multiple entangled factors. Inspired by [20], we decouple the representation and classification modules within the detection framework, and find the weight norms of the proposal classifier corresponding to different categories are severely imbalanced, since low-shot categories get few chances to be activated. Through our analysis, this is one direct cause of the poor long-tail detection performance, which is intrinsically induced by data imbalance. As shown in Figure 1, we sort the category-wise classifier weight norms of models trained on COCO and LVIS respectively by the number of instances in the training set. For COCO, the relatively balanced data distribution leads to relatively balanced weight norms for all categories, except for background class (CID=0, CID for Category ID). For LVIS, it is obvious that the category weight norms are imbalanced and positively correlated with the number of training instances. Such imbalanced classifiers (w.r.t. their parameter norm) would make the classification scores for low-shot categories (tail classes) much smaller than those of many-shot categories (head classes). After standard softmax, such imbalance would be further magnified thus the classifier wrongly suppresses the proposals predicted as low-shot categories.
+
+The classifier imbalance roots in data distribution imbalance—classifiers for the many-shot categories would see more and diverse training instances, leading to dominating magnitude. One may consider using solutions to long-tail classification to overcome such an issue, including re-sampling training instances to balance the distribution [15, 7, 32, 26] and re-weighting classification loss at category level [5, 2, 18] or instance level [23, 33]. The resampling based solutions are applicable to detection frameworks, but may lead to increased training time and overfitting risk to the tail classes. Re-weighting based methods are unfortunately very sensitive to hyper-parameter choices and not well applicable to detection frameworks due to difficulty in dealing with the special background class, an extremely many-shot category. We empirically find none of these methods works well on long-tail detection problem.
+
+In this work, to address the classifier imbalance, we introduce a simple yet effective balanced group softmax (BAGS) module into the classification head of a detection framework. We propose to put object categories with similar numbers of training instances into the same group and compute group-wise softmax cross-entropy loss separately. Treating categories with different instance numbers separately can effectively alleviate the domination of the head classes over tail classes. However, due to the lack of diverse negative examples for each group training, the resultant model suffers too many false positives. Thus, BAGS further adds a category others into each group and introduces the background category as an individual group, which can alleviate the suppression from head classes over tail classes
+
+by keeping their classifiers balanced while preventing false positives by categories background and others.
+
+We experimentally find BAGS works very well. It improves by $9\% - 19\%$ the performance on tail classes of various frameworks including Faster R-CNN [31], Cascade R-CNN [1], Mask R-CNN [16] and HTC [4] with ResNet-50-FPN [17, 22] and ResNeXt-101-x64x4d-FPN [37] backbones consistently on the long-tail object recognition benchmark LVIS [14], with the overall mAP lifted by around $3\% - 6\%$ .
+
+To sum up, this work makes following contributions:
+
+- Through comprehensive analysis, we reveal the reason why existing models perform not well for long-tail detection, i.e. their classifiers are imbalanced and not trained equally well, reflected by the observed imbalanced classifier weight norms.
+- We propose a simple yet effective balanced group softmax module to address the problem. It can be easily combined with object detection and instance segmentation frameworks to improve their long-tail recognition performance.
+- We conduct extensive evaluations with state-of-the-art long-tail classification methods for object detection. Such benchmarking not only deepens our understandings of these methods as well as the unique challenges of long-tail detection, but also provides reliable and strong baselines for future research in this direction.
+
+# 2. Related Works
+
+Compared with balanced distribution targeted object detection [11, 31, 1], and few-shot object detection [19, 3, 38, 10], the challenging and practical long-tail object detection problem is still underexplored. Though Ouyang et al. [28] proposes the concept of long-tail object detection, their work focuses on the imbalanced training data distribution on ILSVRC DET dataset [6] without few-shot setting for tail classes like LVIS [14]. [14] proposes repeat factor sampling (RFS) serving as a baseline. Classification calibration [36] enhances RFS by calibrating classification scores of tail classes with another head trained with ROI level class-balanced sampling strategy. Below we first review general object detection methods, and then long-tail classification methods.
+
+General object detection Deep learning based object detection frameworks are divided into anchor-based and anchor-free ones. Anchor-based approaches [12, 11, 31, 29, 23] explicitly or implicitly extract features for individual regions thus convert object detection into proposal-level classification which have been largely explored. In contrast, anchor-free approaches focus on detecting key points of objects and construct final detection boxes by properly combining detected key points [21, 8, 40] or expanding the rep
+
+presentation of key points [39, 35]. For such detectors, proposal classification is achieved by classifying the key points.
+
+These popular object detection frameworks all employ a softmax classifier for either proposal classification or keypoint classification. Our proposed balanced group softmax module can be easily plugged into such mainstream detectors by simply replacing the original softmax classifier. For simplicity, we mainly experiment with anchor-based detectors Faster R-CNN [31] and Cascade R-CNN [1] as well as their corresponding instance segmentation approaches Mask R-CNN [16] and HTC [4].
+
+Long-tail classification Long-tail classification is attracting increasing attention due to its realistic applications. Current works leverage data re-sampling, cost-sensitive learning, or other techniques. For data re-sampling methods, training samples are either over-sampled (adding copies of training samples for tail classes) [15], undersampled (deleting training samples for head classes) [7], or class-balanced sampled [32, 26], which motivates RFS [14]. For cost-sensitive learning, the network losses are re-weighted at category level by multiplying different weights on different categories to enlarge the influence of tail-class training samples [5, 2, 18] or at instance level by multiplying different weights on different training samples for more fine-grained control [23, 33]. Some other approaches optimize the classifier trained with long-tail data such as Nearest Class Mean classifier (NCM) [27, 13], and $\tau$ -normalized classifier [20]. These methods are usually sensitive to hyper-parameters and do not perform well when transferred to detection frameworks due to the inherent difference between classification and detection as stated in Sec. 1.
+
+Therefore, an approach specifically designed for long-tail object detection is desirable, and our work is the first successful attempt to overcome classifier imbalance through group-wise training without extra sampling from tail classes.
+
+# 3. Preliminary and Analysis
+
+# 3.1. Preliminary
+
+We first revisit the popular two-stage object detection framework, by taking Faster R-CNN [31] as an example. We adopt such a two-stage framework to develop and implement our idea.
+
+The backbone network $f_{\mathrm{back}}$ takes an image $I$ as input, and generates a feature map $F = f_{\mathrm{back}}(I)$ . The feature map is then passed to ROI-align [16] or ROI-pooling [11] to produce $K$ proposals with their own feature $F_{k} = \mathrm{ROIAlign}(F,b_{k})$ . Here $b_{k}$ denotes proposal $k$ . The classification head $f_{\mathrm{head}}$ then extracts a $d$ -dimensional feature $h = f_{\mathrm{head}}(F_k)$ for each of the proposals. Finally, one FC (fully connected) layer is used to transfer $h$ to the $(C + 1)$ -category prediction ( $C$ object classes plus background) by
+
+$z = Wh + b$ , where $W \in \mathbb{R}^{d \times (C + 1)}$ is the classifier weights with each column $w_{j} \in \mathbb{R}^{d}$ related to one specific category $j$ , and $b$ is the bias term.
+
+During training, with ground truth label $y \in \{0,1\}^{C + 1}$ , softmax cross entropy is applied to compute loss for a specific proposal:
+
+$$
+\mathcal {L} _ {k} (p, y) = - \sum_ {j = 0} ^ {C} y _ {j} \log \left(p _ {j}\right), \tag {1}
+$$
+
+$$
+p _ {j} = \operatorname {s o f t m a x} \left(z _ {j}\right) = \frac {e ^ {z _ {j}}}{\sum_ {i = 0} ^ {C} e ^ {z _ {i}}}. \tag {2}
+$$
+
+Here $z_{j}$ denotes the $i$ -th element of $z$ and $p_{j}$ is the predicted probability of the proposal being an instance of category $j$ .
+
+# 3.2. Analysis
+
+Current well-performing detection models often fail to recognize tail classes when the training set follows a long-tailed distribution. In this section, we try to investigate the underlying mechanism behind such performance drop from balanced dataset to long-tailed dataset, by conducting contrast experiments on their representative examples, i.e., COCO and LVIS.
+
+We adopt a Faster R-CNN [11] model with R50-FPN backbone. By directly comparing the mAP on the two datasets, the performance drops notably from $36.4\%$ (COCO) to $20.9\%$ (LVIS). Despite the unfairness as LVIS contains much more classes than COCO (1230 v.s. 80), we can still draw some interesting observations. On head classes, the LVIS model achieves comparable results with COCO. However, when it comes to tail classes, the performance decreases to 0 rapidly. Such a phenomenon implies current detection models are indeed challenged by data imbalance. To further investigate how the performance degradation is induced by data imbalance, we decouple the detection framework into proposal feature extraction stage and proposal classification stage, following [20].
+
+Specifically, following the notations in Sec. 3.1, we deem the operations used to generate $h$ as proposal feature extraction, and the last FC layer and softmax in Eqn. (2) as a softmax classifier. Then, we investigate the correlation between the number of training instances and the weight norm $\| w_{j} \|$ in the classifier for each category. The results are visualized in Figure 1. We can see for COCO dataset, most categories contain $10^{3} - 10^{4}$ training instances (at least $10^{2}$ ); and classifier weight norms are also relatively balanced (0.75-1.25) for all foreground categories1. In contrast, for the LVIS dataset, a weight norm $\| w_{j} \|$ is highly related to the number of training instances in the corresponding category $j$ ; the more training examples there are, the larger weight magnitude it will be. For the extreme few-shot categories (tail classes), their corresponding weight norms are extremely
+
+
+Figure 2. Framework of our balanced group softmax module. (a) Training: Classes containing similar training instances are grouped together. Class others is added to each group. $\mathcal{G}_0$ denotes background group. Softmax cross entropy (CE) loss is applied to each group individually. (b) Testing: With new prediction $z$ , softmax is applied in each group, and probabilities are ordered by their original category id (CID) and re-scaled with foreground probability, generating new probability vectors for following post process.
+
+small, even close to zero. Based on such observations, one can foresee that prediction scores for tail classes will be congenitally lower than head classes, and proposals of tail classes will be less likely to be selected after competing with those of head categories within the softmax computation. This explains why current detection models often fail on tail classes.
+
+Why would the classifier weights be correlated to the number of training instances per-class? To answer this question, let us further inspect the training procedure of Faster R-CNN. When proposals from a head class $j$ are selected as training samples, $z_{j}$ should be activated, while the predictions for other categories should be suppressed. As the training instances for head classes are much more than those of tail classes (e.g., 10,000 vs. 1 in some extreme cases), classifier weights of tail classes are much more likely (frequent) to be suppressed by head class ones, resulting in imbalanced weight norms after training.
+
+Therefore, one may see why re-sampling method [14, 36] is able to benefit tail classes on long-tail instance classification and segmentation. It simply increases the sampling frequency of tail class proposals during training so that the weights of different classes can be equally activated or suppressed, thus balance the tail and head classes to some degree. Also, loss re-weighting methods [5, 2, 18, 23, 33] can take effect in a similar way. Though the resampling strategy is able to alleviate data imbalance, it actually introduces new risks like overfitting to tail classes and extra computation overhead. Meanwhile, loss re-weighting is sensitive to per-class loss weight design, which usually varies across different frameworks, backbones and datasets, making it hardly deployable in real-world applications. Moreover, re-weighting based methods cannot handle the background class well in detection problems. Therefore, we propose a simple yet effective solution to balance the classifier weight norms without heavy hyper-parameter engineering.
+
+# 4. Balanced Group Softmax
+
+Our novel balanced group softmax module is illustrated in Figure 2. We first elaborate on its formulation and then explain the design details.
+
+# 4.1. Group softmax
+
+As aforementioned, detector performance is harmed by the positive correlation between weight norms and number of training examples. To solve this problem, we propose to divide classes into several disjoint groups and perform the softmax operation separately, such that only classes with similar numbers of training instances are competing with each other within each group. In this way, classes containing significantly different numbers of instances can be isolated from each other during training. The classifier weights of tail classes would not be substantially suppressed by head classes.
+
+Concretely, we divide all the $C$ categories into $N$ groups according to their training instance numbers. We assign category $j$ to group $\mathcal{G}_n$ if
+
+$$
+s _ {n} ^ {l} \leq \mathcal {N} (j) < s _ {n} ^ {h}, \quad n > 0 \tag {3}
+$$
+
+where $\mathcal{N}(j)$ is the number of ground-truth bounding boxes for category $j$ in the training set, and $s_n^l$ and $s_n^h$ are hyperparameters that determine minimal and maximal instance numbers for group $n$ . In this work, we set $s_{n + 1}^{l} = s_{n}^{h}$ to ensure there is no overlap between groups, and each category can only be assigned to one group. $N$ and $s_n^l$ are set empirically to make sure that categories in each group contain similar total numbers of training instances. Throughout this paper, we set $N = 4$ , $s_1^l = 0$ , $s_2^l = 10$ , $s_3^l = 10^2$ , $s_4^l = 10^3$ , $s_4^h = +\infty$ .
+
+Besides, we manually set the $\mathcal{G}_0$ to contain only the background category, because it owns the most training instances (typically 10-100 times more than object categories). We adopt sigmoid cross entropy loss for $\mathcal{G}_0$ here because it only contains one prediction, while for the other
+
+groups we use softmax cross entropy loss. The reason for choosing softmax is that the softmax function inherently owns the ability to suppress each class from another, and less likely produce large numbers of false positives. During training, for a proposal $b_{k}$ with ground-truth label $c$ , two groups will be activated, which are background group $\mathcal{G}_0$ and foreground group $\mathcal{G}_n$ where $c \in \mathcal{G}_n$ .
+
+# 4.2. Calibration via category "others"
+
+However, we find the above group softmax design suffers from the following issue. During testing, for a proposal, all groups will be used to predict since its category is unknown. Thus, at least one category per group will receive a high prediction score, and it will be hard to decide which group-wise prediction we should take, leading to a large number of false positives. To address this issue, we add a category others into every group to calibrate predictions among groups and suppress false positives. This category others contains categories not included in the current group, which can be either background or foreground categories in other groups. For $\mathcal{G}_0$ , category others also represents foreground classes. To be specific, for a proposal $b_{k}$ with ground-truth label $c$ , the new prediction $z$ should be $z \in \mathbb{R}^{(C + 1) + (N + 1)}$ . The probability of class $j$ is calculated by
+
+$$
+p _ {j} = \frac {e ^ {z _ {j}}}{\sum_ {i \in \mathcal {G} _ {n}} e ^ {z _ {i}}}, \{n \mid j \in \mathcal {G} _ {n} \}. \tag {4}
+$$
+
+The ground-truth labels should be re-mapped in each group. In groups where $c$ is not included, class others will be defined as the ground-truth class. Then the final loss function is
+
+$$
+\mathcal {L} _ {k} = - \sum_ {n = 0} ^ {N} \sum_ {i \in \mathcal {G} _ {n}} y _ {i} ^ {n} \log \left(p _ {i} ^ {n}\right), \tag {5}
+$$
+
+where $y^n$ and $p^n$ represent the label and probability in $\mathcal{G}_n$ .
+
+# 4.3. Balancing training samples in groups
+
+In the above treatment, the newly added category others will again become a dominating outlier with overwhelming many instances. To balance training sample number per group, we only sample a certain number of others proposals for training, which is controlled by a sampling ratio $\beta$ . For $\mathcal{G}_0$ , all training samples of others will be used since the number of background proposals is very large. For $\{\mathcal{G}_n \mid n \in \mathbb{R}, 1 \leq n \leq N\}$ , $m_n$ others instances will be randomly sampled from all others instances, where $m_n = \beta \sum_{i \in \mathcal{G}_n} \mathcal{N}_{batch}(i)$ . $\beta \in [0, +\infty)$ is a hyperparameter and we conduct an ablation study in Sec. 5.4 to show the impact of $\beta$ . Normally, we set $\beta = 8$ . $\mathcal{N}_{batch}(i)$ indicates the instances for category $i$ in current batch.
+
+Namely, within the groups that contain the ground-truth categories, others instances will be sampled proportionally based on a mini-batch of $K$ proposals. If there is no normal
+
+categories activated in one group, all the others instances will not be activated. This group is ignored. In this way, each group can keep balanced with a low ratio of false positives. Adding category others brings $2.7\%$ improvement over the baseline.
+
+# 4.4. Inference
+
+During inference, we first generate $z$ with the trained model, and apply softmax in each group using Eqn. (4). Except for $\mathcal{G}_0$ , all nodes of others are ignored, and probabilities of all categories are ordered by the original category IDs. $p_0^0$ in $\mathcal{G}_0$ can be regarded as the probability of foreground proposals. Finally, we rescale all probabilities of normal categories with $\widetilde{p_j} = p_0^0 \times p_j$ . This new probability vector is fed to the following post-processing steps like NMS to produce final detection results. It should be noticed that the $\widetilde{p}$ is not a real probability vector technically since the summation of it does not equal to 1. It plays the role of the original probability vector which guides the model through selecting final boxes.
+
+# 5. Experiments
+
+# 5.1. Dataset and setup
+
+We conduct experiments on the recent Large Vocabulary Instance Segmentation (LVIS) dataset [14], which contains 1,230 categories with both bounding box and instance mask annotations. For object detection experiments, we use only bounding box annotation for training and evaluation. When exploring BAGS's generalization to instance segmentation, we use mask annotations. Please refer to our supplementary materials for implementation details.
+
+Following [36], we split the categories in the validation set of LVIS into 4 bins according to their training instance numbers to evaluate the model performance on the head and tail classes more clearly. $\mathrm{Bin}_i$ contains categories that have $10^{i-1}$ to $10^i$ instances. We refer categories in the first two bins as "tail classes", and categories in the other two bins as "head classes". Besides the official metrics mAP, $\mathrm{AP}_r$ (AP for rare classes), $\mathrm{AP}_c$ (AP for common classes), and $\mathrm{AP}_f$ (AP for frequent classes) that are provided by LVIS-api $^2$ , we also report AP on different bins. $\mathrm{AP}_i$ denotes the mean AP over the categories from $\mathrm{Bin}_i$ .
+
+# 5.2. Main results on LVIS
+
+We transfer multiple state-of-the-art methods for long-tail classification to the Faster R-CNN framework, including fine-tuning on tail classes, repeat factor sampling (RFS) [26], category loss re-weighting, Focal Loss [23], NCM [20, 34], and $\tau$ -normalization [20]. We carefully adjust the hyperparameter settings to make them suitable for
+
+| ID | Models | \(mAP\) | \(AP_1\) | \(AP_2\) | \(AP_3\) | \(AP_4\) | \(AP_r\) | \(AP_c\) | \(AP_f\) | ACC | \(ACC_1\) | \(ACC_2\) | \(ACC_3\) | \(ACC_4\) | \(ACC_{bg}\) |
| (1) | R50-FPN | 20.98 | 0.00 | 17.34 | 24.00 | 29.99 | 4.13 | 19.70 | 29.30 | 92.78 | 0.00 | 2.47 | 25.30 | 45.87 | 95.91 |
| (2) | x2 | 21.93 | 0.64 | 20.94 | 23.54 | 28.92 | 5.79 | 22.02 | 28.26 | 92.62 | 0.00 | 5.60 | 26.51 | 45.71 | 95.69 |
| (3) | Finetune tail | 22.28 | 0.27 | 22.58 | 23.89 | 27.43 | 5.67 | 23.54 | 27.34 | 94.81 | 0.00 | 5.04 | 5.58 | 5.86 | 99.85 |
| (4) | RFS [14] | 23.41 | 7.80 | 24.18 | 23.14 | 28.33 | 14.59 | 22.74 | 27.77 | 92.71 | 0.60 | 7.50 | 25.62 | 44.39 | 95.84 |
| (5) | RFS-finetune | 22.66 | 8.06 | 23.07 | 22.43 | 27.73 | 13.44 | 22.06 | 27.09 | 92.77 | 0.60 | 7.14 | 25.08 | 43.79 | 95.91 |
| (6) | Re-weight | 23.48 | 6.34 | 22.91 | 23.88 | 30.12 | 11.47 | 22.41 | 29.61 | 94.84 | 0.00 | 0.82 | 9.57 | 17.40 | 99.53 |
| (7) | Re-weight-cls | 24.66 | 10.04 | 24.12 | 24.57 | 31.07 | 14.16 | 23.51 | 30.28 | 94.76 | 0.00 | 0.34 | 7.72 | 16.02 | 99.64 |
| (8) | Focal loss [23] | 11.12 | 0.00 | 10.24 | 13.36 | 13.17 | 2.74 | 11.13 | 14.46 | 3.87 | 0.00 | 17.45 | 40.11 | 49.31 | 1.35 |
| (9) | Focal loss-cls | 19.29 | 1.64 | 19.30 | 20.64 | 23.70 | 6.60 | 19.81 | 23.71 | 2.90 | 0.00 | 27.67 | 48.53 | 48.89 | 0.16 |
| (10) | NCM-fc [20] | 16.02 | 5.87 | 14.13 | 16.97 | 21.40 | 10.31 | 13.92 | 20.92 | 94.29 | 0.00 | 0.02 | 0.23 | 0.15 | 100.00 |
| (11) | NCM-conv [20] | 12.56 | 4.20 | 9.71 | 13.75 | 18.46 | 6.11 | 10.39 | 17.85 | 94.29 | 0.00 | 0.00 | 0.20 | 0.10 | 100.00 |
| (12) | τ-norm [20] | 11.01 | 0.00 | 11.71 | 12.01 | 12.36 | 2.07 | 12.30 | 12.97 | 5.91 | 0.00 | 30.32 | 39.49 | 49.14 | 3.42 |
| (13) | τ-norm-select | 21.61 | 0.35 | 20.07 | 23.43 | 29.16 | 6.18 | 20.99 | 28.54 | 92.43 | 0.00 | 13.19 | 20.62 | 38.98 | 95.91 |
| (14) | Ours | 25.96 | 11.33 | 27.64 | 25.14 | 29.90 | 17.65 | 25.75 | 29.54 | 93.71 | 2.06 | 7.50 | 22.07 | 35.88 | 97.41 |
+
+Table 1. Comparison with state-of-the-art methods transferred from long-tail image classification on LVIS val set. Bold numbers denote the best results among all models. Model (1) and (4) are initialized with model pre-trained on COCO dataset. All the others are initialized with model (1). "cls" denotes only train the classification FC layer $W$ and $b$ , and the other parameters are frozen. Model (10) and (11) represent NCM model using classification FC features and ROI-pooled Conv feature to calculate category centers respectively. Model (13) means using $\tau$ -norm results only on foreground proposals. Refer to our supplementary materials for more implementation details.
+
+object detection. Implementation details are provided in our supplementary material. We report their detection performance and proposal classification accuracy in Table 1.
+
+How well does naive baseline perform? We take Faster R-CNN with ResNet-50-FPN backbone as the baseline (model (1) in the table) that achieves $20.98\%$ mAP but $0\mathrm{AP}_1$ . The baseline model misses most tail categories due to domination of other classes. Consider other models are initialized by model (1) and further fine-tuned by another 12 epochs. To make sure the improvement is not from longer training schedule, we train model (1) with another 12 epochs for fair comparison. This gives model (2). Comparing model (2) with model (1), we find longer training mainly improves on $\mathrm{AP}_2$ , but $\mathrm{AP}_1$ remains around 0. Namely, longer training hardly helps improve the performance for low-shot categories with instances less than 10. Fine-tuning model (1) on tail-class training samples (model (3)) only increases $\mathrm{AP}_2$ notably while decreases $\mathrm{AP}_4$ by $2.5\%$ , and $\mathrm{AP}_1$ remains 0. This indicates the original softmax classifier cannot perform well when the number of training instances is too small.
+
+Do long-tail classification methods help? We observe sampling-based method RFS (model (4)) improves the overall mAP by $2.5\%$ . The AP for tail classes is improved while maintaining AP for head classes. However, RFS increases the training time cost by $1.7 \times$ . We also try to initialize the model with model (1), obtaining model (5). But mAP drops by $0.8\%$ due to over-fitting.
+
+For cost sensitive learning methods, both model (6) and (7) improve the performance, while model (7) works bet
+
+ter. This confirms the observation in [20] that decoupling feature learning and classifier benefits long-tail recognition still applies for object detection. For focal loss, we directly apply sigmoid focal loss at proposal level. It is worth noting that in terms of proposal classification, the accuracy over all the object classes $(\mathrm{ACC}_{1,2,3,4})$ increases notably. However, for background proposals, $\mathrm{ACC}_{bg}$ drops from $95.8\%$ to $0.16\%$ , leading to a large number of false positives and low AP. This phenomenon again highlights the difference between long-tail detection and classification—the very special background class should be carefully treated.
+
+For NCM, we try to use both FC feature just before classifier (model (10)), and Conv feature extracted by ROI-align (model (11)). However, our observation is NCM works well for extremely low-shot classes, but is not good for head classes. Moreover, NCM can provide a good 1-nearest-neighbour classification label. But for detection, we also need the whole probability vector to be meaningful so that scores of different proposals on the same categories can be used to evaluate the quality of proposals.
+
+The $\tau$ -normalization model (12) suffers similar challenge as Focal Loss model (8). The many-shot background class is extremely dominating. Though foreground proposal accuracy is greatly increased, $\mathrm{ACC}_{bg}$ drops hugely. Consequently, for model (13), the proposals categorized to background inherit prediction of the original model while the others take $\tau$ -norm results. However, the improvement is limited. We should notice that $\mathrm{AP}_1$ and $\mathrm{ACC}_1$ are still 0 after $\tau$ -norm, but $\mathrm{AP}_2$ and $\mathrm{ACC}_2$ are improved.
+
+How well does our method perform? For our model, ex
+
+| Models | \(mAP\) | \(AP_1\) | \(AP_2\) | \(AP_3\) | \(AP_4\) | \(AP_r\) | \(AP_c\) | \(AP_f\) |
| Faster R50 | 20.98 | 0.00 | 17.34 | 24.00 | 29.99 | 4.13 | 19.70 | 29.30 |
| Ours | 25.96 | 11.33 | 27.64 | 25.14 | 29.90 | 17.65 | 25.75 | 29.54 |
| Faster X101 | 24.63 | 0.79 | 22.37 | 27.45 | 32.73 | 5.80 | 24.54 | 32.25 |
| Ours | 27.83 | 14.99 | 28.07 | 27.93 | 32.02 | 18.78 | 27.32 | 32.07 |
| Cascade X101 | 27.16 | 0.00 | 24.06 | 31.09 | 36.17 | 4.84 | 27.22 | 36.00 |
| Ours | 32.77 | 19.03 | 36.10 | 31.13 | 34.96 | 28.24 | 32.11 | 35.41 |
+
+Table 2. Results with stronger backbone ResNeXt-101-64x4d and stronger framework Cascade R-CNN. All Ours models are initialized with their plain counterparts.
+
+cept for $\mathcal{G}_0$ , we split the normal categories into 4 groups for group softmax computation, with $s^l$ and $s^h$ to be $(0,10)$ , $(10,10^{2})$ , $(10^{2},10^{3})$ , $(10^{3},+\infty)$ respectively, and $\beta = 8$ . Our model is initialized with model (1), and the classification FC layer is randomly initialized since the output shape changed. Only this FC layer is trained for another 12 epochs, and all other parameters are frozen. Our results surpass all the other methods by a large margin. $\mathrm{AP}_1$ increases $11.3\%$ , $\mathrm{AP}_2$ increases $10.3\%$ , with $\mathrm{AP}_3$ and $\mathrm{AP}_4$ almost unchanged. This result verifies the effectiveness of our designed balanced group softmax module.
+
+Extension of our method to stronger models. To further verify the generalization of our method, we change Faster R-CNN backbone to ResNeXt-101-64x4d [37]. Results are shown in Table 2. On this much stronger backbone, our method still gains $3.2\%$ improvement. Then, we apply our method to state-of-the-art Cascade R-CNN [1] framework with changing all 3 softmax classifiers in 3 stages to our BAGS module. Overall mAP is increased significantly by $5.6\%$ . Our method brings persistent gain with 3 heads.
+
+# 5.3. Results for instance segmentation
+
+We further evaluate our method benefits for instance segmentation models including Mask R-CNN [16] and state-of-the-art HTC [4] on LVIS. Here HTC models are trained with COCO stuff annotations for a segmentation branch. Results are shown in Table 3. First, comparing our models (8)(10)(12) with their corresponding baseline models (7)(9)(11), mAPs of both bounding box and mask increase largely. Our models fit the tail classes much better while APs on head classes drop slightly. Second, we compare our results with state-of-the-art results [36, 14] on LVIS instance segmentation task. With both Mask R-CNN framework and ResNet-50-FPN backbone, our model (8) surpass RFS (1) and Calib (4) by at least $1.8\%$ . With both HTC framework and ResNeXt-101-FPN backbone, our model (10) is $1.4\%$ better than Calib (5). With ResNeXt-101-FPNDCN backbone and multiscale training, our model (12) is $2.3\%$ better than Calib (6). Our method establishes new state-of-the-arts in terms of both bounding box and mask criterion.
+
+
+Figure 3. Comparison of weight norms from model (1)(4)(7)(14) in Table 1. The vertical dashed lines split all categories into $\mathrm{Bin}_{1,2,3,4}$ .
+
+# 5.4. Model analysis
+
+Does our method balance classifiers well? We visualize the classifier weight norm $W$ of model (1)(4)(7) and our model (14) of Table 1 in Figure 3. Weights of RFS on tail classes are obviously enlarged. Re-weighting method suppresses the weights of head classes and lifts weights of the tail classes. For ours, since we decouple the relationships of different group of categories, weights of $\mathcal{G}_1, \mathcal{G}_2$ and $\mathcal{G}_3$ are almost at the same level. Though weights of $\mathcal{G}_4$ are still smaller, they have been better balanced than the original model. Noting that the weights norm of our model are less related to the training instance numbers in each group, implying such decoupling benefits network training.
+
+How much background and others contribute? See Table 4. With baseline model (0), directly grouping normal categories to 4 sets without adding background $\mathcal{G}_0$ and others in each group, we get results of (1). For model (1), during inference, scores of each group are fed to softmax respectively, and concatenated directly for NMS. Though $\mathrm{AP}_1$ improves $5.7\%$ , performance on all the other Bins drops significantly. This is because we do not have any constraints for FPs. For a single proposal, at least one category will be activated in each group, leading to many FPs. When we add $\mathcal{G}_0$ (model (2)), and use $p_0^0$ to rescale scores of normal categories, we get $1.9\%$ improvement over model (1), but still worse than model (0). For model (3), we add category others into each groups, and not using $\mathcal{G}_0$ , we obtain $2.7\%$ performance gain.
+
+How many groups to use in BAGS? With rescaling with $\mathcal{G}_0$ , another $2.2\%$ improvement is obtained (model (5)). If we reduce the group number from 4 to 2, as shown in model (4), the overall mAP drops 0.6. However, specifically, it should be noticed that $\mathrm{AP}_1$ becomes much worse, while $\mathrm{AP}_4$ increases a little. Using more groups does not help as well (model(6)). Since #ins for $\mathrm{Bin}_1$ is too small for $N = 4$ , dividing $\mathrm{Bin}_1$ into 2 bins further decreases #ins of per group, leading to highly insufficient training for tails.
+
+| ID | Models | Backbone | \( mAP \) | \( AP_1 \) | \( AP_2 \) | \( AP_3 \) | \( AP_4 \) | \( AP_r \) | \( AP_c \) | \( AP_f \) | \( mAP^m \) | \( AP_1^m \) | \( AP_2^m \) | \( AP_3^m \) | \( AP_4^m \) | \( AP_r^m \) | \( AP_c^m \) | \( AP_f^m \) |
| (1) | Mask-RFS* [14] | R50 | - | - | - | - | - | - | - | - | 24.40 | - | - | - | - | 14.50 | 24.30 | 28.40 |
| (2) | Mask-RFS* [14] | R101 | - | - | - | - | - | - | - | - | 26.00 | - | - | - | - | 15.80 | 26.10 | 29.80 |
| (3) | Mask-RFS* [14] | X101-32x8d | - | - | - | - | - | - | - | - | 27.10 | - | - | - | - | 15.60 | 27.50 | 31.40 |
| (4) | Mask-Calib* [36] | R50 | - | - | - | - | - | - | - | - | 21.10 | 8.60 | 22.00 | 19.60 | 26.60 | - | - | - |
| (5) | HTC-Calib* [36] | X101 | - | - | - | - | - | - | - | - | 29.85 | 16.05 | 30.60 | 29.80 | 33.50 | - | - | - |
| (6) | HTC-Calib* [36] | X101-MS-DCN | - | - | - | - | - | - | - | - | 32.10 | 12.70 | 32.10 | 33.60 | 37.00 | - | - | - |
| (7) | Mask R-CNN | R50 | 20.78 | 0.00 | 15.88 | 24.61 | 30.51 | 3.28 | 18.99 | 30.00 | 20.68 | 0.00 | 17.06 | 23.66 | 29.62 | 3.73 | 19.95 | 28.37 |
| (8) | Ours | R50 | 25.76 | 9.65 | 26.20 | 26.09 | 30.45 | 15.03 | 25.45 | 30.42 | 26.25 | 12.81 | 28.28 | 25.15 | 29.61 | 17.97 | 26.91 | 28.74 |
| (9) | HTC | X101 | 31.28 | 5.02 | 31.71 | 33.24 | 37.21 | 12.39 | 32.58 | 37.18 | 29.28 | 5.11 | 30.34 | 30.62 | 34.37 | 12.11 | 31.32 | 33.58 |
| (10) | Ours | X101 | 33.68 | 19.95 | 36.14 | 32.82 | 36.06 | 25.43 | 34.12 | 36.42 | 31.20 | 17.33 | 33.87 | 30.34 | 33.29 | 23.40 | 32.34 | 32.89 |
| (11) | HTC | X101-MS-DCN | 34.61 | 5.80 | 35.36 | 36.87 | 40.50 | 14.24 | 35.98 | 41.03 | 31.94 | 5.56 | 33.07 | 33.75 | 37.02 | 13.67 | 34.04 | 36.62 |
| (12) | Ours | X101-MS-DCN | 37.71 | 24.40 | 40.30 | 36.67 | 40.00 | 29.43 | 37.78 | 40.92 | 34.39 | 21.07 | 36.69 | 33.71 | 36.61 | 26.79 | 35.04 | 36.61 |
+
+Table 3. Results of bounding box and mask AP when extending our method to instance segmentation on LVIS val set. $\mathrm{AP}^m$ denotes AP of instance segmentation mask. All backbones are with FPN. X101 denotes X101-64x4d. * results are from the corresponding cited paper. Bold numbers indicate the best results among all models. Model (8)(10)(12) are initialized with model (7)(9)(11).
+
+| ID b o N | \( mAP \) | \( AP_1 \) | \( AP_2 \) | \( AP_3 \) | \( AP_4 \) | \( AP_r \) | \( AP_c \) | \( AP_f \) | |
| (0) | 20.98 | 0.00 | 17.34 | 24.00 | 29.99 | 4.13 | 19.70 | 29.30 | |
| (1) | 4 | 17.82 | 5.71 | 17.07 | 18.09 | 23.13 | 8.52 | 17.44 | 22.01 |
| (2) | 4 | 19.73 | 7.18 | 19.66 | 18.80 | 25.95 | 9.89 | 19.32 | 24.19 |
| (3) | 4 | 23.74 | 9.90 | 24.06 | 23.38 | 28.88 | 15.46 | 22.58 | 28.49 |
| (4) | 2 | 25.31 | 6.53 | 27.55 | 24.19 | 30.35 | 15.30 | 25.14 | 29.53 |
| (5) | 4 | 25.96 | 11.33 | 27.64 | 25.14 | 29.90 | 17.65 | 25.75 | 29.54 |
| (6) | 8 | 24.85 | 7.79 | 26.05 | 24.59 | 29.58 | 14.11 | 24.79 | 29.21 |
+
+Table 4. Effect of adding different components to our module. $b$ for background group ${\mathcal{G}}_{0}$ . $o$ for adding category others to all bins. $N$ is number of normal category groups.
+
+To sum up, adding category others into each group matters a lot, and using specially trained $p_0^0$ to suppress background proposals works better than just others. Finally, grouping categories into bins and decoupling the relationship between tail and head classes benefits a lot for learning of tail classes.
+
+Impact of $\beta$ in BAGS. After adding category others to all groups, we need to sample training instances for others. Using all others proposals will lead to imbalance problem in each group. Thus, our strategy is to sample others with ratio $\beta$ , so that #ins others:#ins normal = $\beta$ . As shown in Fig.4, mAP continuously increases when we increase $\beta$ until $\beta = 8$ . If we use all others proposal in activated group (indicated as $n$ in x-axis), the performance for head classes keep increasing, but that for tail classes drops a lot. If we train all others proposals no matter whether there are normal categories being activated (indicated as all in x-axis), mAP gets worse. This verifies our opinion that another imbalance problem could worsen the results.
+
+# 5.5. Results on COCO-LT
+
+To further verify the generalization ability of our method, we construct a long-tail distribution COCO-LT dataset by
+
+
+Figure 4. Influence of sample ratio $\beta$ . $n$ indicates all others in the activated groups, and all indicates all others in all the groups.
+
+sampling images and annotations from COCO [24]. We get similar results on COCO-LT as on LVIS. Our model still introduces over $2\%$ improvement on mAP $(+2.2\%)$ for Faster R-CNN, $+2.4\%$ for Mask R-CNN bounding box, $+2.3\%$ for Mask R-CNN mask), especially gaining large improvement on tail classes (from $0.1\%$ to $13.0\%$ for bounding box) with both Faster R-CNN and Mask R-CNN frameworks. Please refer to our supplementary materials for dataset construction, data details, and full results.
+
+# 6. Conclusion
+
+In this work, we first reveal a reason for poor detection performance on long-tail data is that the classifier becomes imbalanced due to insufficiently training on low-shot classes, by analyzing their classifier weight norms. Then, we investigate multiple solid baseline methods transferred from long-tail classification, but we found they are limited in addressing challenges for the detection task. We thus propose a balanced group softmax module to undertake the imbalance problem of classifiers, which achieves notably better results on different strong backbones for long-tail detection as well as instance segmentation.
+
+# References
+
+[1] 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. 1, 2, 3, 7
+[2] Kaidi Cao, Colin Wei, Adrien Gaidon, Nikos Arechiga, and Tengyu Ma. Learning imbalanced datasets with label-distribution-aware margin loss. arXiv preprint arXiv:1906.07413, 2019. 2, 3, 4
+[3] Hao Chen, Yali Wang, Guoyou Wang, and Yu Qiao. Lstd: A low-shot transfer detector for object detection. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018. 2
+[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 Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4974-4983, 2019. 2, 3, 7
+[5] 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. 2, 3, 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
+[7] Chris Drummond, Robert C Holte, et al. C4. 5, class imbalance, and cost sensitivity: why under-sampling beats over-sampling. In Workshop on learning from imbalanced datasets II, volume 11, pages 1-8. CiteSeer, 2003. 2, 3
+[8] Kaiwen Duan, Song Bai, Lingxi Xie, Honggang Qi, Qingming Huang, and Qi Tian. Centernet: Keypoint triplets for object detection. In Proceedings of the IEEE International Conference on Computer Vision, pages 6569-6578, 2019. 2
+[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] Qi Fan, Wei Zhuo, and Yu-Wing Tai. Few-shot object detection with attention-rpn and multi-relation detector. arXiv preprint arXiv:1908.01998, 2019. 2
+[11] Ross Girshick. Fast r-cnn. In Proceedings of the IEEE international conference on computer vision, pages 1440-1448, 2015. 2, 3
+[12] Ross Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Region-based convolutional networks for accurate object detection and segmentation. IEEE transactions on pattern analysis and machine intelligence, 38(1):142-158, 2015. 2
+[13] Samantha Guerriero, Barbara Caputo, and Thomas Mensink. Deepncm: Deep nearest class mean classifiers. 2018. 3
+[14] Agrim Gupta, Piotr Dollar, and Ross Girshick. Lvis: A dataset for large vocabulary instance segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5356-5364, 2019. 1, 2, 3, 4, 5, 6, 7, 8
+
+[15] Hui Han, Wen-Yuan Wang, and Bing-Huan Mao. Borderline-smote: a new over-sampling method in imbalanced data sets learning. In International conference on intelligent computing, pages 878-887. Springer, 2005. 2, 3
+[16] 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. 2, 3, 7
+[17] 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
+[18] Chen Huang, Yining Li, Change Loy Chen, and Xiaou Tang. Deep imbalanced learning for face recognition and attribute prediction. IEEE transactions on pattern analysis and machine intelligence, 2019. 2, 3, 4
+[19] Bingyi Kang, Zhuang Liu, Xin Wang, Fisher Yu, Jiashi Feng, and Trevor Darrell. Few-shot object detection via feature reweighting. In Proceedings of the IEEE International Conference on Computer Vision, pages 8420-8429, 2019. 2
+[20] Bingyi Kang, Saining Xie, Marcus Rohrbach, Zhicheng Yan, Albert Gordo, Jiashi Feng, and Yannis Kalantidis. Decoupling representation and classifier for long-tailed recognition. arXiv preprint arXiv:1910.09217, 2019. 2, 3, 5, 6
+[21] Hei Law and Jia Deng. Cornernet: Detecting objects as paired keypoints. In Proceedings of the European Conference on Computer Vision (ECCV), pages 734-750, 2018. 1, 2
+[22] Tsung-Yi Lin, Piotr Dollar, 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, pages 2117-2125, 2017. 2
+[23] 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, pages 2980-2988, 2017. 1, 2, 3, 4, 5, 6
+[24] 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. 1, 8
+[25] Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, and Alexander C Berg. Ssd: Single shot multibox detector. In European conference on computer vision, pages 21-37. Springer, 2016. 1
+[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. 2, 3, 5
+[27] Thomas Mensink, Jakob Verbeek, Florent Perronnin, and Gabriela Csurka. Distance-based image classification: Generalizing to new classes at near-zero cost. IEEE transactions on pattern analysis and machine intelligence, 35(11):2624-2637, 2013. 3
+
+[28] 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. 2
+[29] Joseph Redmon and Ali Farhadi. Yolov3: An incremental improvement. arXiv preprint arXiv:1804.02767, 2018. 1, 2
+[30] William J Reed. The pareto, zipf and other power laws. Economics letters, 74(1):15-19, 2001. 1
+[31] 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. 1, 2, 3
+[32] 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. 2, 3
+[33] Jun Shu, Qi Xie, Lixuan Yi, Qian Zhao, Sanping Zhou, Zongben Xu, and Deyu Meng. Meta-weight-net: Learning an explicit mapping for sample weighting. arXiv preprint arXiv:1902.07379, 2019. 2, 3, 4
+[34] Jake Snell, Kevin Swersky, and Richard Zemel. Prototypical networks for few-shot learning. In Advances in Neural Information Processing Systems, pages 4077-4087, 2017. 5
+[35] Zhi Tian, Chunhua Shen, Hao Chen, and Tong He. Fcos: Fully convolutional one-stage object detection. arXiv preprint arXiv:1904.01355, 2019. 3
+[36] Tao Wang, Yu Li, Bingyi Kang, Junnan Li, Jun Hao Liew, Sheng Tang, Steven Hoi, and Jiashi Feng. Classification calibration for long-tail instance segmentation. arXiv preprint arXiv:1910.13081, 2019. 2, 4, 5, 7, 8
+[37] Saining Xie, Ross Girshick, Piotr Dolkar, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1492-1500, 2017. 2, 7
+[38] Chi Zhang, Guosheng Lin, Fayao Liu, Rui Yao, and Chunhua Shen. Canet: Class-agnostic segmentation networks with iterative refinement and attentive few-shot learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5217–5226, 2019. 2
+[39] Xingyi Zhou, Dequan Wang, and Philipp Krahenbuhl. Objects as points. arXiv preprint arXiv:1904.07850, 2019. 3
+[40] Xingyi Zhou, Jiacheng Zhuo, and Philipp Krahenbuhl. Bottom-up object detection by grouping extreme and center points. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 850-859, 2019. 2
\ No newline at end of file
diff --git a/overcomingclassifierimbalanceforlongtailobjectdetectionwithbalancedgroupsoftmax/images.zip b/overcomingclassifierimbalanceforlongtailobjectdetectionwithbalancedgroupsoftmax/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..2907ec60f31500a9aaf37c098983a75b6df40ec7
--- /dev/null
+++ b/overcomingclassifierimbalanceforlongtailobjectdetectionwithbalancedgroupsoftmax/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b2223c70c74f0cf20ae132e390b2b2cc74a52ca7fd205e583a86bb25af4efed3
+size 539818
diff --git a/overcomingclassifierimbalanceforlongtailobjectdetectionwithbalancedgroupsoftmax/layout.json b/overcomingclassifierimbalanceforlongtailobjectdetectionwithbalancedgroupsoftmax/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..e9e0ecde967d3456505752ff2600c0b6ba96795a
--- /dev/null
+++ b/overcomingclassifierimbalanceforlongtailobjectdetectionwithbalancedgroupsoftmax/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cd71d2b2923381ff7fe5d9c0b79c793199ae73efdacb20eed0ed23e24a1f2b28
+size 438392
diff --git a/overcomingmultimodelforgettinginoneshotnaswithdiversitymaximization/2268b33e-b130-4e5e-a240-ae46a2ad1c84_content_list.json b/overcomingmultimodelforgettinginoneshotnaswithdiversitymaximization/2268b33e-b130-4e5e-a240-ae46a2ad1c84_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..bec868cb9e9d6d55c0f64e4bf96359c0fe4c9674
--- /dev/null
+++ b/overcomingmultimodelforgettinginoneshotnaswithdiversitymaximization/2268b33e-b130-4e5e-a240-ae46a2ad1c84_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:52748f1b7a25313c285a52fc155472e8663c81e018b746cb7bca2d71b5253b48
+size 79143
diff --git a/overcomingmultimodelforgettinginoneshotnaswithdiversitymaximization/2268b33e-b130-4e5e-a240-ae46a2ad1c84_model.json b/overcomingmultimodelforgettinginoneshotnaswithdiversitymaximization/2268b33e-b130-4e5e-a240-ae46a2ad1c84_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..4148ab5f8f523c27b4caff988dd08855075aae53
--- /dev/null
+++ b/overcomingmultimodelforgettinginoneshotnaswithdiversitymaximization/2268b33e-b130-4e5e-a240-ae46a2ad1c84_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ac389e019b0e92930e374c87eb894b2e4a3c05f45c3e5006fb82cd9577ae831f
+size 96448
diff --git a/overcomingmultimodelforgettinginoneshotnaswithdiversitymaximization/2268b33e-b130-4e5e-a240-ae46a2ad1c84_origin.pdf b/overcomingmultimodelforgettinginoneshotnaswithdiversitymaximization/2268b33e-b130-4e5e-a240-ae46a2ad1c84_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..548897999e0668189a7e8ae050c3d17be0030e38
--- /dev/null
+++ b/overcomingmultimodelforgettinginoneshotnaswithdiversitymaximization/2268b33e-b130-4e5e-a240-ae46a2ad1c84_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c108241bb2cfd52d6e7fd79f0506db965c8c0db9d18658a5b9c9fb10183c190b
+size 579451
diff --git a/overcomingmultimodelforgettinginoneshotnaswithdiversitymaximization/full.md b/overcomingmultimodelforgettinginoneshotnaswithdiversitymaximization/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..33d6d7f49f6c1caa5afe6ff591b3caf6c4055d9e
--- /dev/null
+++ b/overcomingmultimodelforgettinginoneshotnaswithdiversitymaximization/full.md
@@ -0,0 +1,311 @@
+# Overcoming Multi-Model Forgetting in One-Shot NAS with Diversity Maximization
+
+Miao Zhang $^{1,2}$ Huiqi Li $^{1*}$ Shirui Pan $^{3}$ Xiaojun Chang $^{3}$ Steven Su $^{2}$ $^{1}$ Beijing Institute of Technology $^{2}$ University of Technology Sydney $^{3}$ Monash University
+
+Miao.Zhang-2@student.uts.edu.au, huiqili@bit.edu.cn, steven.su@uts.edu.au
+
+{Shirui.Pan, Xiaojun.Chang}@monash.edu
+
+# Abstract
+
+One-Shot Neural Architecture Search (NAS) significantly improves the computational efficiency through weight sharing. However, this approach also introduces multi-model forgetting during the supernet training (architecture search phase), where the performance of previous architectures degrades when sequentially training new architectures with partially-shared weights. To overcome such catastrophic forgetting, the state-of-the-art method assumes that the shared weights are optimal when jointly optimizing a posterior probability. However, this strict assumption is not necessarily held for One-Shot NAS in practice. In this paper, we formulate the supernet training in the One-Shot NAS as a constrained optimization problem of continual learning that the learning of current architecture should not degrade the performance of previous architectures. We propose a Novelty Search based Architecture Selection (NSAS) loss function and demonstrate that the posterior probability could be calculated without the strict assumption when maximizing the diversity of the selected constraints. A greedy novelty search method is devised to find the most representative subset to regularize the supernet training. We apply our proposed approach to two One-Shot NAS baselines, random sampling NAS (RandomNAS) and gradient-based sampling NAS (GDAS). Extensive experiments demonstrate that our method enhances the predictive ability of the supernet in One-Shot NAS and achieves remarkable performance on CIFAR-10, CIFAR-100, and PTB with efficiency.
+
+# 1. Introduction
+
+One-Shot Neural Architecture Search (NAS) recently attracts massive interests in automating neural network architecture design, since it can not only find state-of-the-art architectures but also significantly reduce the search hours through weight sharing. Early NAS methods adopt
+
+a nested approach to train numerous separate architectures from scratch and utilize an Evolutionary Algorithm (EA) or Reinforcement Learning (RL) to find the most promising architectures based on validation accuracy [12, 38, 29], which are highly computational-expensive and impossible for most machine learning practitioners. Several approaches were proposed to address this efficiency concern [3, 6, 34]. In particular, weight sharing, also called One-Shot NAS [4, 28], is a promising direction. One-Shot NAS defines the search space as a supernet which subsuming all candidate architectures, and the candidate architectures are evaluated through inheriting weights from the supernet. Rather than training numerous separate architectures from scratch, One-Shot NAS trains the supernet just once, thus it significantly cuts down the search cost.
+
+One-Shot NAS relies on a critical assumption that the validation accuracy of architecture with inherited weights should approximate to the test accuracy after retraining or be highly predictive. Although Bender et al. [4] observed a strong correlation between the validation accuracy and the test accuracy when the supernet was trained through random path dropout, Sciuto et al. [30] obtained contradict results when the weights of a single path (one architecture) in the supernet were trained in each step in ENAS. This single-path training method is also the most common strategy adopted by state-of-the-art One-Shot NAS approaches [10, 19, 13, 7] and also the scenario considered in this paper. Adam et al. [1] showed that the RNN controller in One-Shot NAS does not depend on past sampled architectures, which makes its performance the same as random search. Similarly, Singh et al. [31] found that there is no visible progress in terms of the retrained performance for architectures generated by the controller during the architecture search phase in ENAS, and architectures with more shared weights usually perform worse based on the trained supernet in ENAS.
+
+Benyahia et al. [5] defined this phenomenon as multi-model forgetting, which occurs when training multiple models with partially-shared weights for a single task. Suppose we are given a large supernet containing multiple models
+
+
+Figure 1: Validation accuracy for 4 different architectures during the supernet training for RandomNAS [19] and GDAS [11]. The solid lines ("Arch") are validation accuracy by inheriting weights from the supernet, and the dash lines ("Arch-R") are validation accuracy after retraining.
+
+(architectures) with shared weights across them, and these models are sequentially trained on a single task, then the model with more shared weights dropped more accuracy when training another model [5, 30]. The multi-model forgetting problem is also illustrated in Fig.1, where the validation accuracy of four different architectures through inheriting weights during the supernet training is shown. It could be observed that weight sharing presents massive fluctuation in validation accuracy. Worse still, the performance of architectures by inheriting weights gets worse during the supernet training, which makes the architecture ranking based on the supernet unreliable. Apparently, although weight sharing reduces the computational hours greatly, it also introduces the multi-model forgetting in the supernet training, which will deteriorate the predictive ability of the supernet.
+
+To overcome the multi-model forgetting in One-Shot NAS and enhance the predictive ability of the supernet, we formulate the supernet training as a constrained optimization problem of continual learning, which avoids the performance degradation of previous architectures when training a new architecture. Different from available works that only consider the performance degradation of one last architecture [5], or keep the shared parameters fixed [21], this paper tries to find the most representative subset of previous architectures to regularize the learning of current architecture during the supernet training. We develop an efficient greedy novelty search method for the constraints selection with diversity maximization, and implement our approach within two baselines, RandomNAS [19] and GDAS [11]. Experimental results demonstrate that our algorithm reduces the multi-model forgetting in their supernet training significantly. Our contributions are summarized as follows.
+
+- Firstly, we formulate the supernet training in the One-Shot NAS as a constrained optimization problem of continual learning, where the learning of current architecture should not degrade the performance of previous architectures with partially-shared weights.
+
+- Secondly, we devise an efficient greedy novelty search method to select the most representative constraints subset to approximate the feasible region formed by all previous architectures.
+- Thirdly, the proposed approach is applied to two One-Shot NAS baselines, RandomNAS [19] and GDAS [11], to reduce the multi-model forgetting in their supernet training. Extensive experimental results illustrate the effectiveness of our method, which could reduce the multi-model forgetting and enhance the predictive ability of the supernet.
+
+# 2. Background
+
+# 2.1. Weight sharing Neural Architecture Search
+
+One-Shot NAS is proposed by [28], which reduces the search time greatly through weight sharing. Different from training numerous separate architectures, One-shot NAS encodes the search space $\mathcal{A}$ as a supernet $\mathcal{W}_{\mathcal{A}}$ , and the candidate neural architectures $\alpha$ directly inherit weights from the supernet as $\mathcal{W}_{\mathcal{A}}(\alpha)$ . Since the One-Shot NAS only the supernet once in the architecture search phase, so it could greatly reduce the search time. One-Shot NAS searches for the most promising architecture $\alpha^{*}$ based the validation performance with inheriting weights from the supernet:
+
+$$
+\begin{array}{l} \min _ {\alpha \in A} \mathcal {L} _ {\text {v a l}} \left(\mathcal {W} _ {A} ^ {*} (\alpha)\right) \\ \begin{array}{l} \alpha \in A \\ \text {s . t .} \quad \mathcal {W} _ {\mathcal {A}} ^ {*} (\alpha) = \operatorname {a r g m i n} \mathcal {L} _ {\text {t r a i n}} \left(\mathcal {W} _ {\mathcal {A}} (\alpha)\right) \end{array} \tag {1} \\ \end{array}
+$$
+
+Eq. (1) is more than a challenging bilevel optimization problem, and the discrete characteristic of architecture space also makes it impossible to utilize a gradient-based method to solve it directly, where ENAS [28] uses an LSTM controller to sample architectures. Differently, [13] and [19] train the supernet based on the uniform sampling strategy to sample architectures, and a random search or an evolutionary method is adopted to find the best-performed architecture from the trained supernet.
+
+Several state-of-the-art One-Shot methods utilize continuous relaxation to transform the discrete architecture into continuous space $\mathcal{A}_{\theta}$ with parameters $\theta$ to further improve the efficiency [23, 11, 33, 26]. The supernet weights and architecture parameters could be jointly optimized through:
+
+$$
+\left(\alpha_ {\theta} ^ {*}, \mathcal {W} _ {\mathcal {A} _ {\theta}} \left(\alpha_ {\theta} ^ {*}\right)\right) = \underset {\alpha_ {\theta}, \mathcal {W}} {\operatorname {a r g m i n}} \mathcal {L} _ {\text {t r a i n}} \left(\mathcal {W} _ {\mathcal {A} _ {\theta}} \left(\alpha_ {\theta} ^ {*}\right)\right) \tag {2}
+$$
+
+which makes it possible to apply continuous optimizing approaches on architecture search, and the best architecture $\alpha^{*}$ could be sampled from continuous architecture representation $\alpha_{\theta}^{*}$ .
+
+Since Eq.(2) is supposed to train the whole supernet in each step, which has a much higher memory requirement
+
+than ENAS, GDAS [11] further introduces a gradient-based sampler to sample single path (an architecture) in each step during the supernet training. The distribution of architectures and the supernet weight can be jointly optimized while the memory requirement equals to training a single architecture. Different from continuous relaxation, NAO [24] utilizes the LSTM based autoencoder to transform the discrete neural architectures to a continuous representations, and then perform a gradient-based method in the continuous space.
+
+# 2.2. Multi-model Forgetting in One-Shot NAS
+
+Catastrophic Forgetting is a common phenomenon in artificial general intelligence and multi-task learning, which describes that the mode usually loses the information about previous tasks after being trained on a new task [14, 18, 27]. Given a model with optimal parameters $\theta_A^*$ on dataset $\mathcal{D}_A$ , its performance on $\mathcal{D}_A$ declines dramatically after this model being trained on another dataset $\mathcal{D}_B$ . Methods to resolve such issues are defined as continual learning. Learning without forgetting (LwF) [22] adds the response of the old task as a regularization term to prevent catastrophic forgetting. Elastic weight consolidation (EWC) [17] proposes to maximize the likelihood of conditional probability $p(\theta \mid \mathcal{D})$ , where $\mathcal{D}$ containing two independent data sets $\mathcal{D}_A$ and $\mathcal{D}_B$ , and $\mathcal{D}_A$ is not available when trained on $\mathcal{D}_B$ .
+
+Multi-model Forgetting presents when we train multiple models in a single dataset. Different from sequentially training a model on several tasks, One-Shot NAS is supposed to apply different models, e.g., $\theta_{a} = (\theta_{a}^{p},\theta^{s})$ and $\theta_{b} = (\theta_{b}^{p},\theta^{s})$ , to a single dataset $\mathcal{D}$ , where $\theta^s$ is the shared weight and $\theta_{a}^{p}$ and $\theta_{b}^{p}$ are private weights. Wang et al. [32] showed that the single-modal network always outperformed the multi-modal network when training them in a single task, and the interactions between networks degraded the performance of the whole network. It is also observed in [30] and [20] that the catastrophic forgetting in the One-Shot NAS would deteriorate the performance of previous architectures after training a new architecture in the supernet. Benyahia et al. [5] defined it as the problem of multi-model forgetting and proposed a Weight Plasticity Loss (WPL) to reduce this forgetting in One-Shot NAS, which tries to maximize the posterior probability $p(\theta_a^p,\theta_b^p,\theta^s\mid \mathcal{D})$ as:
+
+$$
+\begin{array}{l} p (\theta \mid \mathcal {D}) = \frac {p \left(\theta_ {a} ^ {p} , \theta_ {b} ^ {p} , \theta^ {s} , \mathcal {D}\right)}{p (\mathcal {D})} = \frac {p \left(\theta_ {a} ^ {p} \mid \theta_ {b} ^ {p} , \theta^ {s} , \mathcal {D}\right) p \left(\theta_ {b} ^ {p} , \theta^ {s} , \mathcal {D}\right)}{p (\mathcal {D})} \\ = \frac {p \left(\theta_ {a} ^ {p} , \theta^ {s} \mid \mathcal {D}\right) p \left(\mathcal {D} \mid \theta_ {b} ^ {p} , \theta^ {s}\right) p \left(\theta_ {b} ^ {p} , \theta^ {s}\right)}{p \left(\theta^ {s} , \mathcal {D}\right)} (3) \\ = \frac {p \left(\theta_ {a} ^ {p} , \theta^ {s} \mid \mathcal {D}\right) p \left(\mathcal {D} \mid \theta_ {b} ^ {p} , \theta^ {s}\right) p \left(\theta_ {b} ^ {p} , \theta^ {s}\right)}{\int p \left(\mathcal {D} \mid \theta_ {a} ^ {p} , \theta^ {s}\right) p \left(\theta_ {a} ^ {p} , \theta^ {s}\right) d \theta_ {a} ^ {p}} (3) \\ = \frac {p \left(\theta_ {a} \mid \mathcal {D}\right) p \left(\mathcal {D} \mid \theta_ {b}\right) p \left(\theta_ {b}\right)}{\int p \left(\mathcal {D} \mid \theta_ {a} ^ {p} , \theta^ {s}\right) p \left(\theta_ {a} ^ {p} , \theta^ {s}\right) d \theta_ {a} ^ {p}} \\ \end{array}
+$$
+
+The loss function to maximize the likelihood of
+
+$p(\theta_a^p,\theta_b^p,\theta_s^s\mid \mathcal{D})$ is calculated as:
+
+$$
+\mathcal {L} _ {W P L} \left(\theta_ {b}\right) = \mathcal {L} _ {c} \left(\theta_ {b}\right) + \frac {\eta}{2} \left(\| \theta_ {b} ^ {p} \| ^ {2} + \| \theta^ {*} \| ^ {2}\right) + \sum_ {\theta_ {s _ {i}} \in \theta_ {s}} \frac {\varepsilon}{2} F _ {\theta_ {s _ {i}}} \left(\theta_ {s _ {i}} - \theta_ {s _ {i}} ^ {*}\right) \tag {4}
+$$
+
+where $\mathcal{L}_c$ is the cross-entropy loss function, $F_{\theta_{s_i}}$ is the diagonal element of the Fisher information matrix corresponding to parameter $\theta_{s_i}$ , and is estimated by presupposing parameters $(\theta_a^p,\theta_b^p)$ are independent, and $\theta_s^*$ are the shared parameters $\theta^s$ after the previous model being trained which are assumed as in the optimal points. Detailed deviation of Eq.(4) could be found in [5].
+
+Limitations Weight Plasticity Loss (WPL) considers only one previous architecture in each step of supernet training, and it assumes the shared weights are optimal. However, the two assumptions are hard to hold in the supernet training of One-Shot NAS, since there are numerous architectures containing shared weights with current architecture and the shared weights are usually far away from optimal points. To handle these concerns, we formulate the supernet training in One-Shot NAS as a constrained optimization problem, where the learning of current architecture should not degrade the performance of previously visited architectures. We consider a subset of previous architectures as constraints to regularize the learning of current architecture, and demonstrate that the loss function of the posterior probability $p(\theta_a^p,\theta_b^p,\theta^s\mid \mathcal{D})$ could be calculated without the assumption that the shared weights are optimal when maximizing the diversity of the selected architectures.
+
+# 3. Methodology
+
+# 3.1. Problem Formulation
+
+One-Shot NAS sequentially trains numerous architectures and each of them is trained with few epochs. It indicates that the model weights $\theta_{a}$ for previous architectures are far away from optimal points, and the model weights of the current architecture are usually shared by previous architectures. Different from jointly optimizing the posterior probability as WPL [5] under the assumption that $\theta_{a}$ is near-optimal or keeping the shared weights fixed as Learn to Grow [21], we formulate the supernet training in the One-Shot NAS as a constrained optimization problem. In particular, we enforce the architectures inheriting weights from the supernet in current step perform better than last step with smaller training loss. Without loss of generality, we consider the typical scenario that only one architecture in the supernet is trained in each step, and the constrained optimization problem is defined as:
+
+$$
+\begin{array}{l} \mathcal {W} _ {\mathcal {A}} ^ {t} = \underset {\theta \in \mathcal {W} _ {\mathcal {A}} (\alpha^ {t})} {\operatorname {a r g m i n}} \quad \mathcal {L} _ {\text {t r a i n}} \left(\mathcal {W} _ {\mathcal {A}} \left(\alpha^ {t}\right)\right) \tag {5} \\ s. t. \quad \mathcal {L} _ {\text {t r a i n}} \left(\mathcal {W} _ {\mathcal {A}} ^ {t} \left(\alpha^ {i}\right)\right) \leq \mathcal {L} _ {\text {t r a i n}} \left(\mathcal {W} _ {\mathcal {A}} ^ {t - 1} \left(\alpha^ {i}\right)\right); \forall i \in \{0.. t - 1 \} \\ \end{array}
+$$
+
+where $\alpha^t$ is the current architecture in step $t$ , $\mathcal{W}_A^t$ represents the whole weights of the supernet in step $t$ , and $\mathcal{W}_A(\alpha^t)$
+
+# Algorithm 1 Greedy Novelty Search
+
+Input: constraints archive $\mathcal{M}$ , recent architectures archive $\mathcal{C}$ , selected architecture $\alpha^m$ , $n$ .
+
+1: $N(\alpha^m,\mathcal{M})\gets$ calculate the novelty score of $\alpha^m$ in $\mathcal{M}$ based on Eq.(7);
+2: for $i = 1, 2, \dots, n$ do
+3: randomly sample an architecture $\alpha^r$ from $\mathcal{C}$ ;
+4: if $N(\alpha^r, \mathcal{M}) > N(\alpha^m, \mathcal{M})$ then
+5: replace $\alpha^m$ with $\alpha^r$ ;
+6: end if
+7: end for
+
+is the weights of architecture $\alpha^t$ inherited from the supernet, and only $\mathcal{W}_{\mathcal{A}}(\alpha^t)$ is optimized in each step $t$ .
+
+# 3.2. Constraints Selection based on Novelty Search
+
+The constraints in Eq.(5) prevent the learning of current architecture degrading the performance of previous architectures to overcome the multi-model forgetting in One-Shot NAS. However, the number of constraints in Eq.(5) increases linearly with the step, which makes it intractable to consider all constraints in the optimization. In practice, we try to select a subset with $M$ constraints from previous architectures that the feasible region formed by the subset is as close to the original feasible region as possible. Intuitively, maximizing the diversity of the subset is an efficient way to find the most representative samples from the previous architectures. Based on this observation and motivated by [2], we propose a surrogate for constraint selection:
+
+$$
+\operatorname {m a x i m i z e} _ {\mathcal {M}} \quad \sum_ {\alpha^ {i}, \alpha^ {j} \in \mathcal {M}} d i s \left(\alpha^ {i}, \alpha^ {j}\right) \tag {6}
+$$
+
+$$
+\begin{array}{c} \text {s . t .} \quad \mathcal {M} \subset \left\{\alpha^ {1} \dots \alpha^ {t - 1} \right\}; | \mathcal {M} | = M \end{array}
+$$
+
+where $dis(\alpha^i, \alpha^j)$ is to calculate the distance between architectures. Solving Eq.(6) is an NP problem, while we could use an alternative heuristic method to achieve the same goal [2]. In this paper, we proposed a greedy novelty search method to maximize the diversity of the subset. Before the archive is full, we add all newcomer architectures into the subset. Once it is full, we choose the one that is most similar to the current architecture to be replaced with the one that maximizes the novelty score of the archive. We adopt a simple and standard method to measure the novelty of architectures, defined as $N(\alpha, \mathcal{M})$ , which calculates the mean distance of its $k$ -nearest neighbors in $\mathcal{M}$ from it:
+
+$$
+N (\alpha , \mathcal {M}) = \frac {1}{| S |} \sum_ {\alpha^ {j} \in S} d i s \left(\alpha , \alpha^ {j}\right) \tag {7}
+$$
+
+$$
+S = k N N (\alpha , \mathcal {M}) = \{\alpha^ {1}, \alpha^ {2}, \dots , \alpha^ {k} \}
+$$
+
+In this paper, we only measure the difference of input edges for each node in an architecture, since the order of nodes is
+
+
+Figure 2: NSAS loss function ensures that the learning of current architecture will not deteriorate the performance of previous architectures in the constraint subset.
+
+fixed. We consider the input edges of the same node for two architectures are the same only when the two edges have same input node and same operations.
+
+Practically, we select $M$ constraint architectures from $|\mathcal{C}|$ recent architectures rather than all previous architectures. After obtaining $M$ most representative constraints, we need to force the learning of the current architecture to be optimized in the feasible region formed by these constraints, and a common approach is to convert the constraints to a soft regularization loss or apply a replay buffer [2]. Algorithm 1 describes a simple implementation of our greedy novelty search method.
+
+# 3.3. Novelty Search based Architecture Selection Loss Function
+
+It is intractable to consider all previously visited architectures in each step of supernet training, and we select a subset of constraints $\{\alpha_{1},\dots,\alpha_{M}\}$ with diversity maximization to regularize the supernet training. The weights of these architectures in the subset are described as $\{\theta_1,\dots,\theta_M\}$ . The loss function for the constrained optimization problem in Eq. (5) could be described as Eq.(8) when the selected constraints are converted to a soft regularization loss:
+
+$$
+\begin{array}{l} \mathcal {L} _ {N} \left(\mathcal {W} _ {\mathcal {A}} \left(\alpha^ {t}\right)\right) = \mathcal {L} _ {c} \left(\mathcal {W} _ {\mathcal {A}} \left(\alpha^ {t}\right)\right) + \lambda \mathcal {R} \left(\mathcal {W} _ {\mathcal {A}} \left(\alpha^ {t}\right)\right) \\ + \beta \sum_ {i = 1: M} \mathcal {L} _ {c} \left(\mathcal {W} _ {\mathcal {A}} \left(\alpha^ {i}\right)\right) + \lambda \mathcal {R} \left(\mathcal {W} _ {\mathcal {A}} \left(\alpha^ {i}\right)\right) \tag {8} \\ \end{array}
+$$
+
+where $\mathcal{L}_{\mathrm{train}}(\mathcal{W}_A(\alpha)) = \mathcal{L}_c(\mathcal{W}_A(\alpha)) + \lambda \mathcal{R}(\mathcal{W}_A(\alpha)), \mathcal{L}_c$ is the cross-entropy loss function, $\mathcal{R}$ is the $\ell_2$ regularization term, $\beta$ and $\lambda$ are trade-offs. Here we term $\mathcal{L}_N(\mathcal{W}_A(\alpha^t))$ as Novelty Search based Architecture Selection (NSAS) loss function. While learning current architecture $\alpha_t$ , NSAS protects the performance of those architectures in the constraint subset by keeping these shared parameters staying in a region of low error for these constraints, as shown schematically in Fig. 2.
+
+From Weight Plasticity Loss (WPL) to NSAS. WPL [5] regularizes the learning of current architecture by maximizing the posterior probability $p(\theta_a^p, \theta_b^p, \theta^s \mid \mathcal{D})$ , where $\theta_a = \{\theta_a^p, \theta^s\}$ is the weights of the last architecture, $\theta_b = \{\theta_b^p, \theta^s\}$ is the weights of current architecture, and $\theta^s$ is their shared weights. Different from WPL which only considers one previous architecture, we consider a subset of previously visited architectures that $\theta_a = \{\theta_1, \dots, \theta_M\} = \{(\theta_1^p, \theta_1^s), \dots, (\theta_M^p, \theta_M^s)\}$ , where $\theta_i^p$ is the private weights, and $\theta_i^s$ is the shared weights with the current architecture. When we maximize the diversity of the subset, the following two assumptions should hold true: (1) The architectures in this subset should cover all operations in the search space; (2) There are no shared weights between these architectures. Therefore, $\theta_b^p = \emptyset$ as all weights in the current architecture are shared by previous architectures, and $\theta_i$ and $\theta_j$ should be independent as we train different architecture independently. Now the posterior probability is written as:
+
+$$
+\begin{array}{l} p (\theta \mid \mathcal {D}) = \frac {p \left(\theta_ {1} ^ {p} \dots \theta_ {M} ^ {p} , \theta_ {1} ^ {s} \dots \theta_ {M} ^ {s} , \mathcal {D}\right)}{p (\mathcal {D})} = \frac {p \left(\theta_ {1} \dots \theta_ {M} , \mathcal {D}\right)}{p (\mathcal {D})} \\ = \frac {p (\theta_ {1} \mid \theta_ {2} \dots \theta_ {M} , \mathcal {D}) p (\theta_ {2} \dots \theta_ {M} , \mathcal {D})}{p (\mathcal {D})} \\ = \prod_ {i = 1: M} p \left(\theta_ {i} \mid \mathcal {D}\right) \propto \prod_ {i = 1: M} p (\mathcal {D} \mid \theta_ {i}) p \left(\theta_ {i}\right) \\ = p (\theta) \prod_ {i = 1: M} p (\mathcal {D} \mid \theta_ {i}) = p (\theta^ {t}) \prod_ {i = 1: M} p (\mathcal {D} \mid \theta_ {i}) \\ \end{array}
+$$
+
+where $\theta_{i}$ is the weights of architecture $\alpha^i$ in constraints. As only architecture $\alpha^{t}$ is trained, $p(\theta) = p(\theta^t)$ , where $\theta^t$ is the weights of the current architecture $\alpha^t$ and $\theta$ is the all considered weights. Eq.(9) obtains the posterior probability without the assumption that $\theta^s$ in the previous step is optimal. Now the Weight Plasticity Loss could be calculated without the assumption that the shared weights are optimal when considering a subset of previously visited architectures with diversity maximization as:
+
+$$
+\mathcal {L} _ {W P L} \left(\mathcal {W} _ {\mathcal {A}} \left(\alpha^ {t}\right)\right) = \epsilon \mathcal {R} \left(\mathcal {W} _ {\mathcal {A}} \left(\alpha^ {t}\right)\right) + \sum_ {i = 1: M} \mathcal {L} _ {c} \left(\mathcal {W} _ {\mathcal {A}} \left(\alpha_ {i}\right)\right) \tag {10}
+$$
+
+where $\epsilon$ is also the trade-off. And the proposed NSAS loss function could be also described with the Weight Plasticity Loss in Eq.(10) as:
+
+$$
+\begin{array}{l} \mathcal {L} _ {N} \left(\mathcal {W} _ {\mathcal {A}} \left(\alpha^ {t}\right)\right) = \mathcal {L} _ {c} \left(\mathcal {W} _ {\mathcal {A}} \left(\alpha^ {t}\right)\right) + \lambda \mathcal {R} \left(\mathcal {W} _ {\mathcal {A}} \left(\alpha^ {t}\right)\right) \\ + \beta \sum_ {i = 1: M} \mathcal {L} _ {c} \left(\mathcal {W} _ {\mathcal {A}} \left(\alpha^ {i}\right)\right) + \lambda \mathcal {R} \left(\mathcal {W} _ {\mathcal {A}} \left(\alpha^ {i}\right)\right) \tag {11} \\ = \mathcal {L} _ {c} \left(\mathcal {W} _ {\mathcal {A}} \left(\alpha^ {t}\right)\right) + \beta \mathcal {L} _ {W P L} \left(\mathcal {W} _ {\mathcal {A}} \left(\alpha^ {t}\right)\right) \\ \end{array}
+$$
+
+From Eq.(11), we can find that our proposed loss function is attempted to not only optimize the WPL but also optimize the learning of current architecture (also the shared weights). That is because the shared weights are usually far from the optimal point in One-Shot NAS, and we should not only overcome the forgetting, but also optimize the shared weights towards the optimal point.
+
+# Algorithm 2 One-Shot NAS-NSAS
+
+Input: $\mathcal{D}_{train},\mathcal{D}_{val},\mathcal{W}$ constraints archive $\mathcal{M} = \emptyset ,M$ batch size $b$ , supernet training iteration $T$
+
+$$
+\mathbf {f o r} t = 1, 2, \dots , (T * \text {s i z e} (\mathcal {D} _ {\text {t r a i n}}) / b) \mathbf {d o}
+$$
+
+2: if $\mathrm{size}(\mathcal{M}) < M$ then
+
+sample $\alpha^t$ based on gradient search or random search, and update the weights $\mathcal{W}_A(\alpha)$ by normal loss function, and add architecture $\alpha$ into $\mathcal{M}$ ;
+
+4: else
+
+sample $\alpha^t$ based on gradient search or random search, select the architecture $\alpha^m$ that is most similar to $\alpha^t$ from $\mathcal{M}$ , and replace $\alpha^m$ with $\alpha^r$ to maximize the diversity of $\mathcal{M}$ based on Algorithm 1. Update the weights $\mathcal{W}_A(\alpha)$ by our proposed loss function in Eq.(8) or a replay buffer;
+
+6: end if end for
+8: Obtain $\alpha^{*}$ based on Eq.(1) (RandomNAS-NASA) or Eq.(2) (GDAS-NASA).
+
+# 3.4. One-Shot NAS with Novelty Search based Architecture Selection
+
+Our loss function is applied to two popular One-Shot NAS: RandomNAS [19] and GDAS [11]. Same as the most common weight sharing NAS, we only train a single path in each step in the architecture search phase. It is easy to incorporate our proposed loss function to random sampling based NAS (RandomNAS) as it also trains a single path in each step. However, most gradient-based NAS methods, like DARTS [23] and SNAS [33], train the whole supernet in each step during the supernet training, which violates the assumption in this paper. In this paper, we adopt GDAS [11] as the gradient-based sampling NAS baseline, which utilizes the Gumbel-Max trick [15, 25, 33] to relax the discrete architecture distribution to be continuous and differentiable. The argmax function is applied to the re-parameterized architecture distribution, to sample an architecture in each step of the supernet training during the forward pass. The softmax function is adopted during the backward pass for architecture learning. Algorithm 2 presents the One-Shot NAS with our proposed NSAS loss function, termed as One-Shot NAS-NSAS.
+
+# 4. Experiments and Results
+
+To evaluate the effectiveness of our proposed algorithm, we apply our method to both RandomNAS [19] and GDAS [11] on datasets CIFAR-10, CIFAR-100, and Penn Treebank (PTB). All experimental designs are following the settings in [19, 23] for a fair comparison. Our new methods are denoted as RandomNAS-NSAS and GDAS-NSAS. We compare our methods with the state-of-the-art One-Shot
+
+| Method | Test Error (%) | Parameters (M) | Search Cost (GPU Days) | Memory Consumption | Supernet Optimization |
| CIFAR-10 | CIFAR-100 |
| NAO-WS [24] | 3.53 | - | 2.5 | - | Single path | Gradient |
| ENAS [28] | 2.89 | 18.91†[11] | 4.6 | 0.5 | Single path | RL |
| SNAS [33] | 2.85±0.02 | 20.09* | 2.8 | 1.5 | Whole Supernet | Gradient |
| PARSEC [8] | 2.86±0.06 | - | 3.6 | 0.6 | Single path | Gradient |
| BayesNAS [37] | 2.81±0.04 | - | 3.40 | 0.2 | Whole Supernet | Gradient |
| RENAS [9] | 2.88±0.02 | - | 3.5 | 6 | - | RL&EA |
| MdeNAS [36] | 2.40 | - | 4.06 | 0.16 | Single path | MDL |
| MdeNAS* [36] | 2.87* | 17.61* | 3.78* | 0.16 | Single path | MDL |
| DSO-NAS [35] | 2.84±0.07 | - | 3.0 | 1 | Whole Superne | Gradient |
| WPL [5] | 3.81 | - | - | - | Single path | RL |
| Random baseline [23] | 3.29±0.15 | - | 3.2 | 4 | - | Random |
| DARTS (1st) [23] | 2.94 | - | 2.9 | 1.5 | Whole Supernet | Gradient |
| DARTS (2nd) [23] | 2.76±0.09 | 17.54 †[11] | 3.4 | 4 | Whole Supernet | Gradient |
| RandomNAS [19] | 2.85±0.08 | 17.63* | 4.3* | 2.7 | Single path | Random |
| RandomNAS-NSAS | 2.64(2.50) | 17.56(16.85) | 3.08 | 0.7 | Single path | Random |
| GDAS [11] | 2.93 | 18.38 | 3.4 | 0.21 | Single path | Gradient |
| GDAS-NSAS | 2.73 | 18.02 | 3.54 | 0.4 | Single path | Gradient |
+
+Table 1: Test errors on CIFAR-10, compared with state-of-the-art NAS approaches. “*” indicates the results reproduced based on the best reported cell structures with the same experimental setting as ours. “†” indicates the results are reported in the [11]. We do not reproduce those methods with “-” in CIFAR-100 experiment since they are with different search spaces or do not report their best structures. All models are trained with 600 epochs, and we also train our best found model (RandomNAS-NSAS) with more epochs (1000 training epochs) to get the state-of-the-art results. The best models obtained by all One-Shot NAS methods are trained with cutout.
+
+NAS methods and evaluate the supernet predictive ability of our approach compared with baselines.
+
+# 4.1. Architecture Search for Convolutional Cells
+
+We conduct comparative experiments for convolutional neural architecture search on CIFAR-10. The search space and hyperparameters setting are following the settings in [23, 19] for a fair comparison. This search space searches for micro-cell structures, which are stacked in series to form the final structure. In the supernet training (architecture search) stage, we only stack 8 cells to build the supernet with 16 initial channels and 64 batch size. After supernet training and obtaining the promising cells, we stack 20 cells to form the final architecture, and train it with 96 batch size. The comparison results are demonstrated in Table 1, which can be summarized as follows:
+
+- Compared with RandomNAS and GDAS which both employ normal cross-entropy loss function, our proposed NSAS loss function could greatly enhance the search results, where RandomNAS obtains $5.6\%$ improvement and $4.8\%$ improvement for GDAS. These results also demonstrate that the effectiveness of the proposed loss function, which could relieve the rank
+
+disorder incurred by weight sharing and improve the supernet predictive ability.
+
+- Compared with other NAS methods, our RandomNAS-NSAS achieves a competitive result with a $2.64\%$ test error on CIFAR-10, and a $2.50\%$ test error with 1000 training epochs. This is an inspiring result to validate our design to overcoming multi-model forgetting.
+- Since the proposed method needs to evaluate more architectures during the supernet training, it has a little bit higher search cost than the baselines. However, the proposed method is still very efficient that the supernet training only costs 0.7 GPU day for RandomNAS-NSAS and 0.4 GPU day for GDAS-NSAS. We further transfer the found architecture on CIFAR-10 to CIFAR-100 to evaluate its transferability.
+
+The architecture evaluation setting on CIFAR-100 is the same as CIFAR-10, and all results are reported in Table 1. We also increase the number of initial filters to 50 (and the parameters increase to $5.8\mathrm{M}$ ) before transfer our best found structure to CIFAR-100 to enhance its performance, and we could observe that our network achieves state-of-the-art results (a test error of $16.85\%$ ) among all compared methods.
+
+| Method | Perplexity | Paras (M) | Search Cost |
| Valid | Test |
| ENAS* [19] | 60.8 | 58.6 | 24 | 0.5 |
| NAO-WS [24] | - | 56.6 | 27 | 0.4 |
| WPL [5] | - | 61.9 | - | - |
| Random baseline [23] | 61.8 | 59.4 | 23 | 2 |
| DARTS (1st) [23] | 60.2 | 57.6 | 23 | 0.5 |
| DARTS (2nd) [23] | 58.8 | 56.6 | 23 | 1 |
| DARTS (2nd)* [23] | 59.21* | 56.71* | 23 | 1 |
| RandomNAS [19] | 57.8 | 55.5 | 23 | 0.25 |
| RandomNAS* [19] | 59.7* | 57.16* | 23 | 0.25 |
| RandomNAS-NSAS | 59.22 | 56.84 | 23 | 0.62 |
| GDAS [11] | 59.8 | 57.5 | 23 | 0.4 |
| GDAS* [11] | 60.23* | 57.69* | 23 | 0.4 |
| GDAS-NSAS | 59.74 | 57.24 | 23 | 0.50 |
+
+Table 2: Comparison results with One-Shot NAS methods on PTB. “*” indicates the results reproduced with the same experimental setting as ours.
+
+# 4.2. Architecture Search for Recurrent Cells
+
+We also conduct experiments for the RNN cell structure search on the PTB dataset, and the search space and hyperparameters setting are following settings in [19, 23] for fair comparison. In the RNN supernet training, the hidden and the embedding sizes are set as 300, and the supernet is trained for 300 epochs with batch size 128. After supernet training and obtaining the promising cells, we change the hidden and the embedding sizes to 850, and train the network for 3600 epochs with 64 batch size. The comparison results on PTB with other baselines are presented in Table 2. The model discovered by our Random-NSAS achieves a validation perplexity of 59.22 and a test perplexity of 56.84, which is on par with the state-of-the-art approaches. A further observation on our proposed loss function shows the effectiveness of our NSAS loss function when it is applied to two baselines. RandomNAS-NSAS and GDAS-NSAS both surpass the original baselines with normal loss function. These results again show that the NSAS loss function could enhance the supernet predictive ability, as evidenced by the fact that our RandomNAS-NSA and GDAS-NSAS both beat the two baselines with the normal loss function.
+
+# 4.3. Supernet Predictive Ability Comparison
+
+Multi-model Forgetting in One-Shot NAS To demonstrate catastrophic forgetting in neural architecture search, we conduct experiments on convolutional cell search to present the differences between weight sharing and retraining based architecture ranking for two baselines, RandomNAS and GDAS. We tracked the validation accuracy of
+
+
+Figure 3: Kendall Tau metric $(\tau)$ of architecture ranking based on weight sharing and retraining.
+
+
+
+inheriting weights for several fixed sampled architectures with 8 stacked cells, and also plot the validation accuracy for 100 epochs when retraining these separate architectures from scratch in Figure 1. We could observe that architectures directly inherit weights from the supernet present massive fluctuation in their validation accuracy, which makes it hard to identify the quality of architecture according to this accuracy. What is worse, the architecture ranking results completely violate the primary hypothesis in weight sharing NAS that architectures with higher validation performance based on weight sharing should achieve better retraining performance. It should be noticed from Fig. 1 (b) that, the performance of architectures by inheriting weights even gets worse during the supernet training in GDAS.
+
+Supernet Predictive Ability Comparison To verify the effectiveness of our approach in relieving the rank disorder in weight sharing neural architecture search, we incorporate our proposed loss function into the RandomNAS and GDAS frameworks, and conduct more experiments on the architecture ranking prediction. The validation accuracy through inheriting supernet weights is usually different from retraining, while it should at least be highly predictive, especially for those architectures with excellent performance. We sample 4 excellent architectures in 4 rounds based on RandomNAS and RandomNAS-NSAS, respectively. We individually train these 12 architectures from scratch (4 from RandomNAS, 4 from RandomNAS-NSAS, and 4 randomly sampled in the previous experiment), and calculate the correlation of architecture ranking between the validation accuracy through weight sharing and retraining. Figure 3 presents the Kendall Tau $(\tau)$ metric [16, 36] of architecture ranking based on weight sharing and retraining during the supernet training, which depicts the rank difference of normal cross-entropy loss function and our proposed loss function. Figure 4 (a) gives the final Kendall Tau $(\tau)$ metric values for RandomNAS and GDAS with different loss functions after supernet training. It could be observed that the normal loss function presents poor supernet predictive ability, which obtains $\tau = 0.0909$ and $\tau = -0.1818$ for
+
+
+(a) Architectures ranking difference after supernet training
+
+
+(b) Retraining validation accuracy
+
+RandomNAS and GDAS, respectively. Although the supernet trained by NSAS is not able to obtain the precisely identical architecture rank, our proposed loss function achieves a positive correlation with much better Kendall Tau metric $(\tau = 0.4242$ and $\tau = 0.3030$ for RandomNAS-NSAS and GDAS-NSAS, respectively). A supernet with better predictive ability tends to obtain architectures with better retraining performance, and Fig.4 (b) plots the mean retraining validation accuracy of sampled architectures through different methods. We could find that RandomNAS-NSAS achieves better results than normal RandomNAS, which further verifies the effectiveness of our proposed method.
+
+# 4.4. Discussion
+
+We conduct a series of architecture search experiments with two One-Shot baselines, and RandomNAS tends to achieve better performance than GDAS (in both the normal and the proposed loss function). One underlying reason may be the gradient-based methods usually obtain the local optimal solution once the supernet is trained, while RandomNAS further conducts the model selection (using random search or EA) to find the global optimal solution from the trained supernet. Since RandomNAS needs to evaluate numerous architectures base on the trained supernet, it usually has a higher search cost than GDAS.
+
+Fig. 5 visualizes the best-found cells by the proposed approach for CNN and RNN models, and the codes and trained models could be found here1. After revisiting the experimental results in previous subsections, it is clear that the proposed loss function could greatly enhance the predictive ability of the supernet, which greatly improves the performance of the found architectures for two NAS baselines, RandomNAS and GDAS. The supernet training in
+
+
+(a) Normal cell learned on CIFAR
+
+
+(b) Reduction cell learned on CIFAR
+
+
+Figure 4: (a) Architectures ranking difference between the retraining and inheriting weights from trained supernet for RandomNAS, RandomNAS-NSAS, GDAS, and GDAS-NSAS, respectively. (b) The mean retraining validation accuracy for architectures obtained through different methods.
+(c) Recurrent cell learned on PTB
+Figure 5: The best cells discovered on CIFAR-10 and PTB.
+
+One-Shot NAS is definitely a multi-task problem, and devising a more appropriate loss function rather than using the normal one is a promising direction to improve the performance of One-Shot NAS methods.
+
+# 5. Conclusion and Future Works
+
+This paper originally formulates the supernet training as a constrained optimization problem to relieve the multimodel forgetting in One-Shot neural architecture search. A greedy novelty search method is adopted to select a representative subset of constraints to regularize the supernet training in the feasible region, and a Novelty Search based Architecture Selection (NSAS) loss function is accordingly devised to overcome the multi-model forgetting. We incorporate the proposed loss function into two One-Shot NAS baselines. Experimental results on the neural architecture search show the effectiveness of the proposed method. In particular, our method improves supernet predictive ability and achieves excellent results in both convolutional cell search and recurrent cell search. In the future work, we will focus on searching on a latent space through transforming the discrete architectures into continuous representations, and also leveraging human knowledge on DNN design to search for architectures with better transferable ability.
+
+# 6. Acknowledgment
+
+This work is supported in part by NSFC grant 61702415, Australian Research Council (ARC) Discovery Early Career Researcher Award (DECRA) under grant no. DE190100626, Air Force Research Laboratory and DARPA under agreement number FA8750-19-2-0501.
+
+# References
+
+[1] George Adam and Jonathan Lorraine. Understanding neural architecture search techniques. arXiv preprint arXiv:1904.00438, 2019.
+[2] Rahaf Aljundi, Min Lin, Baptiste Goujaud, and Yoshua Bengio. Gradient based sample selection for online continual learning. In Advances in Neural Information Processing Systems (NeurIPS), 2019.
+[3] Bowen Baker, Otkrist Gupta, Ramesh Raskar, and Nikhil Naik. Accelerating neural architecture search using performance prediction. 2018.
+[4] Gabriel Bender, Pieter-Jan Kindermans, Barret Zoph, Vijay Vasudevan, and Quoc Le. Understanding and simplifying one-shot architecture search. In International Conference on Machine Learning (ICML), pages 549-558, 2018.
+[5] Yassine Benyahia, Kaicheng Yu, Kamil Bennani Smires, Martin Jaggi, Anthony C Davison, Mathieu Salzmann, and Claudi Musat. Overcoming multi-model forgetting. In International Conference on Machine Learning (ICML), pages 594-603, 2019.
+[6] Andrew Brock, Theodore Lim, James Millar Ritchie, and Nicholas J Weston. Smash: One-shot model architecture search through hypernetworks. In International Conference on Learning Representations (ICLR), 2018.
+[7] Han Cai, Ligeng Zhu, and Song Han. Proxylessnas: Direct neural architecture search on target task and hardware. In International Conference on Learning Representations (ICLR), 2019.
+[8] Francesco Paolo Casale, Jonathan Gordon, and Nicolo Fusi. Probabilistic neural architecture search. arXiv preprint arXiv:1902.05116, 2019.
+[9] Yukang Chen, Gaofeng Meng, Qian Zhang, Shiming Xiang, Chang Huang, Lisen Mu, and Xinggang Wang. Renas: Reinforced evolutionary neural architecture search. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019.
+[10] Xiangxiang Chu, Bo Zhang, Ruijun Xu, and Jixiang Li. Fairnas: Rethinking evaluation fairness of weight sharing neural architecture search. arXiv preprint arXiv:1907.01845, 2019.
+[11] Xanyi Dong and Yi Yang. Searching for a robust neural architecture in fourgpu hours. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019.
+[12] Minghao Guo, Zhao Zhong, Wei Wu, Dahua Lin, and Junjie Yan. Irlas: Inverse reinforcement learning for architecture search. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019.
+[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 preprint arXiv:1906.07590, 2019.
+[14] Geoffrey Hinton, Oriol Vinyals, and Jeffrey Dean. Distilling the knowledge in a neural network. In NIPS Deep Learning and Representation Learning Workshop, 2015.
+[15] Eric Jang, Shixiang Gu, and Ben Poole. Categorical reparameterization with gumbel-softmax. In International Conference on Learning Representations (ICLR), 2017.
+
+[16] Maurice G Kendall. The treatment of ties in ranking problems. Biometrika, 33(3):239-251, 1945.
+[17] James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, et al. Overcoming catastrophic forgetting in neural networks. Proceedings of the National Academy of Sciences, 114(13):3521-3526, 2017.
+[18] Sang-Woo Lee, Jin-Hwa Kim, Jaehyun Jun, Jung-Woo Ha, and Byoung-Tak Zhang. Overcoming catastrophic forgetting by incremental moment matching. In Advances in Neural Information Processing Systems (NeurIPS), pages 4652-4662, 2017.
+[19] Liam Li and Ameet Talwalkar. Random search and reproducibility for neural architecture search. In The Conference on Uncertainty in Artificial Intelligence (UAI), 2019.
+[20] Xiang Li, Chen Lin, Chuming Li, Ming Sun, Wei Wu, Junjie Yan, and Wanli Ouyang. Improving one-shot nas by suppressing the posterior fading. arXiv preprint arXiv:1910.02543, 2019.
+[21] Xilai Li, Yingbo Zhou, Tianfu Wu, Richard Socher, and Caiming Xiong. Learn to grow: A continual structure learning framework for overcoming catastrophic forgetting. In International Conference on Machine Learning (ICML), pages 3925-3934, 2019.
+[22] Zhizhong Li and Derek Hoiem. Learning without forgetting. IEEE Transactions on Pattern Analysis and Machine Intelligence, 40(12):2935-2947, 2017.
+[23] Hanxiao Liu, Karen Simonyan, and Yiming Yang. Darts: Differentiable architecture search. In International Conference on Learning Representations (ICLR), 2019.
+[24] Renqian Luo, Fei Tian, Tao Qin, Enhong Chen, and Tie-Yan Liu. Neural architecture optimization. In Advances in Neural Information Processing Systems (NeurIPS), pages 7816-7827, 2018.
+[25] Chris J Maddison, Andriy Mnih, and Yee Whye Teh. The concrete distribution: A continuous relaxation of discrete random variables. In International Conference on Learning RepresentationsV (ICLR), 2017.
+[26] Niv Nayman, Asaf Noy, Tal Ridnik, Itamar Friedman, Rong Jin, and Lihi Zelnik-Manor. Xnas: Neural architecture search with expert advice. In Advances in Neural Information Processing Systems (NeurIPS), 2019.
+[27] German I Parisi, Ronald Kemker, Jose L Part, Christopher Kanan, and Stefan Wermter. Continual lifelong learning with neural networks: A review. Neural Networks, 2019.
+[28] Hieu Pham, Melody Guan, Barret Zoph, Quoc Le, and Jeff Dean. Efficient neural architecture search via parameter sharing. In International Conference on Machine Learning (ICML), pages 4092-4101, 2018.
+[29] Esteban Real, Alok Aggarwal, Yanping Huang, and Quoc V Le. Regularized evolution for image classifier architecture search. In AAAI Conference on Artificial Intelligence (AAAI), 2019.
+[30] Christian Sciuto, Kaicheng Yu, Martin Jaggi, Claudiu Musat, and Mathieu Salzmann. Evaluating the search phase of neural architecture search. arXiv preprint arXiv:1902.08142, 2019.
+
+[31] Prabhant Singh, Tobias Jacobs, Sebastien Nicolas, and Miska Schmidt. A study of the learning progress in neural architecture search techniques. arXiv preprint arXiv:1906.07590, 2019.
+[32] Weiyao Wang, Du Tran, and Matt Feiszli. What makes training multi-modal networks hard? arXiv preprint arXiv:1905.12681, 2019.
+[33] Sirui Xie, Hehui Zheng, Chunxiao Liu, and Liang Lin. Snas: stochastic neural architecture search. In International Conference on Learning Representations (ICLR), 2019.
+[34] Chris Zhang, Mengye Ren, and Raquel Urtasun. Graph hypernetworks for neural architecture search. In International Conference on Learning Representations (ICLR), 2019.
+[35] Xinbang Zhang, Zehao Huang, and Naiyan Wang. You only search once: Single shot neural architecture search via direct sparse optimization. arXiv preprint arXiv:1811.01567, 2019.
+[36] Xiawu Zheng, Rongrong Ji, Lang Tang, Baochang Zhang, Jianzhuang Liu, and Qi Tian. Multinomial distribution learning for effective neural architecture search. In International Conference on Computer Vision (ICCV), 2019.
+[37] Hongpeng Zhou, Minghao Yang, Jun Wang, and Wei Pan. Bayesnas: A bayesian approach for neural architecture search. In International Conference on Machine Learning (ICML), 2019.
+[38] Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V Le. Learning transferable architectures for scalable image recognition. In IEEE conference on Computer Vision and Pattern Recognition (CVPR), pages 8697-8710, 2018.
\ No newline at end of file
diff --git a/overcomingmultimodelforgettinginoneshotnaswithdiversitymaximization/images.zip b/overcomingmultimodelforgettinginoneshotnaswithdiversitymaximization/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..540346035199addc9d544a32f2a0ad03b788a3f9
--- /dev/null
+++ b/overcomingmultimodelforgettinginoneshotnaswithdiversitymaximization/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2049b556e85a800d2649fde717895a99a55ea85a778e6d1e2245389aa3ff6ded
+size 457483
diff --git a/overcomingmultimodelforgettinginoneshotnaswithdiversitymaximization/layout.json b/overcomingmultimodelforgettinginoneshotnaswithdiversitymaximization/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..10eb439837bd091ff2c700fb567bfb42e067ca48
--- /dev/null
+++ b/overcomingmultimodelforgettinginoneshotnaswithdiversitymaximization/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5e9b4101e621378032d7abef7a68e1356549247856f46d756a6edcab9bb995fc
+size 405899
diff --git a/p2bpointtoboxnetworkfor3dobjecttrackinginpointclouds/d6040379-f266-49be-bc33-6a730999fca8_content_list.json b/p2bpointtoboxnetworkfor3dobjecttrackinginpointclouds/d6040379-f266-49be-bc33-6a730999fca8_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..8bc8897836e2b943d0bf728f0af662bce72a7ee3
--- /dev/null
+++ b/p2bpointtoboxnetworkfor3dobjecttrackinginpointclouds/d6040379-f266-49be-bc33-6a730999fca8_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d3153f12d92aa52c41694e30bcbd2270b06f8cabf30d948387f12eac50500ad3
+size 77668
diff --git a/p2bpointtoboxnetworkfor3dobjecttrackinginpointclouds/d6040379-f266-49be-bc33-6a730999fca8_model.json b/p2bpointtoboxnetworkfor3dobjecttrackinginpointclouds/d6040379-f266-49be-bc33-6a730999fca8_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..39f34e11208a12193c261c4486f5453230b2bc8f
--- /dev/null
+++ b/p2bpointtoboxnetworkfor3dobjecttrackinginpointclouds/d6040379-f266-49be-bc33-6a730999fca8_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8c8aa5f33870b2a1a7c1431c04685abd0f5470e3187310c15ad4dea7f17cde38
+size 97295
diff --git a/p2bpointtoboxnetworkfor3dobjecttrackinginpointclouds/d6040379-f266-49be-bc33-6a730999fca8_origin.pdf b/p2bpointtoboxnetworkfor3dobjecttrackinginpointclouds/d6040379-f266-49be-bc33-6a730999fca8_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..389a6ba2803b164ddad8633bc5b8549b1b8b6911
--- /dev/null
+++ b/p2bpointtoboxnetworkfor3dobjecttrackinginpointclouds/d6040379-f266-49be-bc33-6a730999fca8_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0211362d7ed4ba9faa1ced4afccbad1b4ae3e0adace40636e173d98bd4b6c975
+size 4051162
diff --git a/p2bpointtoboxnetworkfor3dobjecttrackinginpointclouds/full.md b/p2bpointtoboxnetworkfor3dobjecttrackinginpointclouds/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..516b1191c129dfa0be9c0fd6b49f4776e4e5a679
--- /dev/null
+++ b/p2bpointtoboxnetworkfor3dobjecttrackinginpointclouds/full.md
@@ -0,0 +1,339 @@
+# P2B: Point-to-Box Network for 3D Object Tracking in Point Clouds
+
+Haozhe Qi, Chen Feng, Zhiguo Cao*, Feng Zhao, and Yang Xiao
+
+National Key Laboratory of Science and Technology on Multi-Spectral Information Processing, School of Artificial Intelligence and Automation, Huazhong University of Science and Technology, Wuhan 430074, China qihaozhe, chen.feng, zgcao@hust.edu.cn, fzhao@alumni.hust.edu.cn, Yang_Xiao@hust.edu.cn
+
+# Abstract
+
+Towards 3D object tracking in point clouds, a novel point-to-box network termed P2B is proposed in an end-to-end learning manner. Our main idea is to first localize potential target centers in 3D search area embedded with target information. Then point-driven 3D target proposal and verification are executed jointly. In this way, the time-consuming 3D exhaustive search can be avoided. Specifically, we first sample seeds from the point clouds in template and search area respectively. Then, we execute permutation-invariant feature augmentation to embed target clues from template into search area seeds and represent them with target-specific features. Consequently, the augmented search area seeds regress the potential target centers via Hough voting. The centers are further strengthened with seed-wise targetness scores. Finally, each center clusters its neighbors to leverage the ensemble power for joint 3D target proposal and verification. We apply PointNet++ as our backbone and experiments on KITTI tracking dataset demonstrate P2B's superiority ( $\sim 10\%$ 's improvement over state-of-the-art). Note that P2B can run with 40FPS on a single NVIDIA 1080Ti GPU. Our code and model are available at https://github.com/HaozheQi/P2B.
+
+# 1. Introduction
+
+3D object tracking in point clouds is essential for applications in autonomous driving and robotics vision [25, 26, 7]. However, point clouds' sparsity and disorder imposes great challenges on this task, and leads to the fact that, well-established 2D object tracking approaches (e.g., Siamese network [3]) cannot be directly applied. Most existing 3D object tracking methods [1, 4, 24, 16, 15] inherit 2D's experience and rely heavily on RGB-D information. But they may fail when RGB visual information is degraded with il
+
+
+Figure 1. Exemplified illustration to show how P2B works, from seeds sampling to 3D target proposal and verification.
+
+luminational change or even inaccessible. We hence focus on 3D object tracking using only point clouds. The first pioneer effort on this topic appears in [11]. It mainly executes 3D template matching using Kalman filtering [12] to generate bunches of 3D target proposals. Meanwhile, it uses shape completion to regularize feature learning on point set. Nevertheless, it tends to suffer from four main defects: 1) its tracking network cannot be end-to-end trained; 2) 3D search with Kalman filtering consumes much time; 3) each target proposal is represented with only one-dimensional global feature, which may lose fine local geometric information; 4) shape completion network brings strong class prior which weakens generality.
+
+Towards the above concerns, we propose a novel point-to-box network termed P2B for 3D object tracking which can be end-to-end trained. Differing from the intuitive 3D search with box in [11], we turn to addressing 3D object tracking by first localizing potential target centers and then executing point-driven target proposal and verification jointly. Our intuition lies in two folders. First, the pointwise tracking paradigm may help better exploit 3D local geometric information to characterize target in point clouds.
+
+
+Figure 2. The main pipeline of P2B. P2B has two parts: 1) target-specific feature augmentation, 2) 3D target proposal and verification. The backbone applies modified PointNet++. 1) enriches search area seeds with target clue from template. With the augmented seeds, 2) regresses potential target centers and evaluates seed-wise targetness for joint target proposal and verification.
+
+
+
+Secondly, formulating 3D object tracking task in an end-to-end manner is of stronger ability to fit target's 3D appearance variation during tracking.
+
+We exemplify how P2B works in Fig. 1. We first feed template and search area into backbone respectively and obtain their seeds. The search area seeds will consequently predict potential target centers for joint target proposal and verification. Then the search area seeds are augmented with target-specific features, yielding three main components: 1) their 3D position coordinates to retain spatial geometric information, 2) their point-wise similarity with template seeds to mine resembling patterns and reveal the local tracking clue, and 3) encoded global feature of target from template. This augmentation is invariant to seeds' permutation and yields consistent target-specific features. After that, the augmented seeds are projected to the potential target centers via Hough voting [28]. Meanwhile, each seed is assessed with its targetness to regularize earlier feature learning; the result targetness score further strengthens its predicted target center's representation. Finally, each potential target center clusters the neighbors to leverage the ensemble power for joint target proposal and verification.
+
+Experiments on KITTI tracking dataset [10] demonstrate that, P2B significantly outperforms the state-of-the-art method [11] by large a margin ( $\sim 10\%$ on both Success and Precision). Note that P2B can run with about 40FPS on a single NVIDIA 1080Ti GPU.
+
+Overall, the main contributions of this paper include
+
+- P2B: a novel point-to-box network for 3D object tracking in point clouds, which can be end-to-end trained;
+- Target-specific feature augmentation to include global and local 3D visual clues for 3D object tracking;
+- Integration of 3D target proposal and verification.
+
+# 2. Related Works
+
+We briefly introduce the works most related to our P2B: 3D object tracking, 2D Siamese tracking, deep learning on
+
+point set, target proposal and Hough voting.
+
+3D object tracking. To the best of our knowledge, 3D object tracking using only point clouds has seldom been studied before the recent pioneer attempt [11]. Earlier related tracking methods [24, 16, 15, 27, 1, 4] generally resort to RGB-D information. Though with the paid efforts from different theoretical aspects, they may suffer from two main defects: 1) they rely on RGB visual clue and may fail if it is degraded or even inaccessible. This limits some real applications; 2) they have no networks designed for 3D tracking, which may limit the representative power. Besides, some of them [24, 16, 15] focus on generating 2D boxes. The above concerns are addressed in [11]. Leveraging deep learning on point set and 3D target proposal, it achieves the state-of-the-art result on 3D object tracking using only point clouds. However, it still suffers from some drawbacks as in Sec. 1, which motivates our research.
+
+2D Siamese tracking. Numerous state-of-the-art 2D tracking methods [33, 3, 34, 13, 42, 35, 20, 8, 40, 36, 21] are built upon Siamese network. Generally, Siamese network has two branches for template and search area with shared weights to measure their similarity in an implicitly embedded space. Recently, [21] unites region proposal network and Siamese network to boost performance. Hence, time-consuming multi-scale search and online fine-tuning are both avoided. Afterwards, many efforts [42, 20, 40, 36, 8] follow this paradigm. However, the above methods are all driven by 2D CNN which is inapplicable to point clouds. We hence aim to extend the Siamese tracking paradigm to 3D object tracking with effective 3D target proposal.
+
+Deep learning on point set. Recently, deep learning on point set draws increasing research interests [5, 30]. To address point clouds' disorder, sparsity and rotation variance, the paid efforts have facilitated the research in 3D object recognition [18, 23], 3D object detection [28, 29, 32, 39], 3D pose estimation [22, 9, 6], and 3D object tracking [11]. However, the 3D tracking network in [11] cannot exe
+
+| Symbol | Definition |
| Ptmp, Psea | Point sets for template and search area. |
| qi, Q | Template seed and seeds set. |
| rj, R | Search area seed and seeds set |
| cj, C | Potential target center and centers set. |
| ft, Ft | Target-specific feature and features set |
| sS | Seed-wise targetness score. |
| sp | Proposal-wise targetness score. |
| pt | 3D target proposal. |
| MLP | Multi-layer perceptron with fully-connected layer, batch normalization andReLU. |
| Maxpool | The pooling layer using MAX operation. |
+
+Table 1. Symbols within P2B.
+
+
+Figure 3. The idea of permutation-invariance. To represent $r_j$ , we first compute point-wise similarity $Sim_{j,:}$ between $r_j$ and all template seeds $Q = \{q_i\}_{i=1}^3$ . However, $Sim_{j,:}$ keeps changing due to $Q$ 's disorder ( $Q$ 's order can change irregularly). This motivates our feature augmentation for consistent (i.e., permutation-invariant) $f_{r_j}^{\mathrm{t}}$ . "1, 2, 3" denote dimensions in $Sim_{j,:}$ and $f_{r_j}^{\mathrm{t}}$ .
+
+cute end-to-end 3D target proposal and verification jointly, which constitutes P2B's focus.
+
+Target proposal. In 2D tracking tasks, many tracking-by-detection methods [41, 37, 14] exploit the target clue contained in template to obtain high-quality target-specific proposals. They operate on (2D) area-based pixels with either edge features [41], region-proposal network [37] or attention map [14] in a target-aware manner. Comparatively, P2B regards each point as a regressor towards potential target center which directly relates to 3D target proposal.
+
+Hough voting. The seminal work of Hough voting [19] proposes a highly flexible learned representation for object shape, which can combine the information observed on different training examples in a probabilistic extension of the Generalized Hough Transform [2]. Recently, [28] embeds Hough voting into an end-to-end trainable deep network for 3D object detection in point cloud, which further aggregates local context and yields promising results. But how to effectively apply it to 3D object tracking remains unexplored.
+
+# 3. P2B: A Novel Network on Point Set for 3D Object Tracking
+
+# 3.1. Overview
+
+In 3D object tracking, we focus on localizing the target (defined by template) in search area frame by frame. We aim to embed template's target clue into search area to pre
+
+# Algorithm 1 The work flow of P2B.
+
+$\Phi$ and $\Theta$ denotes MLP-Maxpool-MLP network operating on feature channel.
+
+Input: Points in template $(P_{\mathrm{tmp}}$ of size $N_{1}$ ) and search area $(P_{\mathrm{sea}}$ of size $N_{2}$
+
+Output: The proposal with the highest $s^{\mathrm{P}}$ .
+
+1: Feature extraction. Feed $P_{\mathrm{tmp}}$ and $P_{\mathrm{sea}}$ into a backbone and respectively get seeds $Q = \{q_i\}_{i=1}^{M_1}$ and $R = \{r_j\}_{j=1}^{M_2}$ , with features $f \in \mathbb{R}^{d_1}$ . Each seed is represented with its 3D position and $f$ to yield dimension of $3 + d_1$ .
+2: Point-wise similarity. Compute point-wise similarity $Sim_{j}$ : between each seed $r_j$ and $Q$ . For all search seeds, we obtain $Sim \in \mathbb{R}^{M_2 \times M_1}$ .
+3: Feature augmentation. Augment each $Sim_{j}$ , with $Q$ to be of size $M_1 \times (1 + 3 + d_1)$ . Feed the result into $\Phi$ to get $r_j$ 's target-specific feature $f_{r_j}^{\mathbf{t}} \in \mathbb{R}^{d_2}$ . $r_j$ is represented with its 3D position and $f_{r_j}^{\mathbf{t}}$ to yield dimension of $3 + d_2$ .
+4: Generating potential target centers. Each seed $r_j$ 1) predicts a potential target center $c_j$ with feature $f_{c_j} \in \mathbb{R}^{d_2}$ via Hough voting, and 2) is evaluated with seed-wise targetness score $s_j^{\mathrm{s}} \in \mathbb{R}$ . $c_j$ is represented by concatenating $s_j^{\mathrm{s}}$ , its 3D position and $f_{c_j}$ to yield dimension of $1 + 3 + d_2$ .
+5: Clustering. Sample a subset in $C$ to be of size $K$ . Generate cluster $T_{j}$ with ball query for each sampled $c_{j}$ , where $T_{j}$ contains $n_{j}$ potential target centers.
+6: 3D target proposal. Feed each $T_{j}$ into $\Theta$ to generate one 3D target proposal $p_{j}^{\mathrm{t}}$ with proposal-wise targetness score $s_{j}^{\mathrm{P}}$ . Totally $K$ proposals are predicted.
+
+dict potential target centers, and execute joint target proposal and verification in an end-to-end manner. P2B has two main parts (Fig. 2): 1) target-specific feature augmentation, and 2) 3D target proposal and verification. We first feed template and search area respectively into backbone and obtain their seeds. Then the template seeds help augment the search area seeds with target-specific features. After that, these augmented search area seeds are projected to potential target centers via Hough voting. Seed-wise targetness scores are also calculated to regularize feature learning and strengthen the discriminative power of these potential target centers. Then each potential target center clusters its neighbors for 3D target proposal. Proposal with the maximal proposal-wise targetness score is verified as the final result. We will detail them as follows. Main symbols within P2B are defined in Table 1. For easy comprehension, we also sketch the detailed technical flow in Algorithm 1.
+
+# 3.2. Target-specific feature augmentation
+
+Here we aim to merge template's target information into search area seed to include both global target clue and local tracking clue. We first feed template and search area respectively into feature backbone and obtain their seeds. With the embedded target information in template, we then augment the search area seeds with target-specific features in spirit of pattern matching, which also satisfies permutation-invariance to address point cloud's disorder.
+
+Feature encoding on point cloud. We feed the points in template $P_{\mathrm{tmp}}$ (of size $N_1$ ) and search area $P_{\mathrm{sea}}$ (of size $N_2$ ) to a feature backbone and obtain $M_1$ template seeds $Q = \{q_i\}_{i=1}^{M_1}$ and $M_2$ search area seeds $R = \{r_j\}_{j=1}^{M_2}$ with features $f \in \mathbb{R}^{d_1}$ . We applied hierarchical feature learning architecture of PointNet++ [30] as backbone (but not restricted to it), so that $Q$ and $R$ could preserve local context within $P_{\mathrm{tmp}}$ and $P_{\mathrm{sea}}$ . Each seed is finally represented with $[x; f] \in \mathbb{R}^{3 + d_1}$ ( $x$ denotes the seed's 3D position).
+
+
+Figure 4. Illustration of target-specific feature augmentation. Our method embeds template's target information into search area seeds while satisfying permutation-invariance.
+
+Permutation-invariant target-specific feature augmentation. To embed $Q$ 's target information into $R$ , a natural idea is to compute point-wise similarity $Sim$ (of size $M_2 \times M_1$ ) between $Q$ and $R$ , e.g., using cosine distance:
+
+$$
+\operatorname {S i m} _ {j, i} = \frac {f _ {q _ {i}} ^ {\mathrm {T}} \cdot f _ {r _ {j}}}{\left\| f _ {q _ {i}} \right\| _ {2} \cdot \left\| f _ {r _ {j}} \right\| _ {2}}, \forall q _ {i} \in Q, r _ {j} \in R. \tag {1}
+$$
+
+Note that $Sim_{j,:}$ (row $j$ in $Sim$ ) denotes similarity between $r_j$ and all seeds in $Q$ . We may first consider $Sim_{j,:}$ as $r_j$ 's target-specific feature. However, as in Fig. 3, $Sim_{j,:}$ keeps unstable due to $Q$ 's disorder. This contradicts our need for a consistent feature, i.e., a feature invariant to $Q$ 's inside permutation. We accordingly apply symmetric functions (specifically, Maxpool) to ensure permutation-invariance. As in Fig. 4, we first augment each $Sim_{j,:}$ (local tracking clue) with $Q$ ' spatial coordinates and features (global target clue), yielding a tensor of size $M_1 \times (1 + 3 + d_1)$ . Then we feed the tensor into network $\Phi$ (MLP-Maxpool-MLP) and obtain $r_j$ 's target-specific feature, $f_{r_j}^{\mathrm{t}} \in \mathbb{R}^{d_2}$ . $r_j$ is finally represented with $[x_{r_j}; f_{r_j}^{\mathrm{t}}] \in \mathbb{R}^{3 + d_2}$ ( $x_{r_j}$ denotes $r_j$ 's 3D position).
+
+There are other selections to extract $f^{\mathrm{t}}$ : leaving out $Q$ 's feature, leaving out Sim or adding $R$ 's feature. All of them turns inferior in Sec. 4.3.1.
+
+# 3.3. Target proposal based on potential target centers
+
+Embedded with target clue, each $r_j$ can directly predict one target proposal. But our intuition is that, individual seed can only capture limited local clue, which may not suffice the final prediction. We follow the idea within VoteNet [28] to 1) regress the search area seeds into potential target centers via Hough voting, and 2) cluster neighboring centers to leverage the ensemble power and obtain target proposals.
+
+Potential target center generation. Each seed $r_j$ with feature $f_{r_j}^{\mathrm{t}}$ can roughly predict a potential target center $c_j$ via Hough voting. Following VoteNet [28], the voting module applies MLP to predict the coordinate offset $\Delta x_j$ between $r_j$ and ground-truth target center and the residual $\Delta f_{r_j}^{\mathrm{t}}$ for $f_{r_j}^{\mathrm{t}}$ . Hence, $c_j$ is represented with $[x_{c_j};f_{c_j}] \in$
+
+$\mathbb{R}^{3 + d_2}$ where $x_{c_j} = x_{r_j} + \Delta x_{r_j}$ and $f_{c_j} = f_{r_j}^{\mathrm{t}} + \Delta f_{r_j}^{\mathrm{t}}$ The loss for $\Delta x_{j}$ is termed as
+
+$$
+L _ {\mathrm {r e g}} = \frac {1}{M _ {\mathrm {t s}}} \sum_ {j} \| \Delta x _ {j} - \Delta g t _ {j} \| \cdot \mathbb {I} [ r _ {j} \text {o n} \text {t a r g e t} ]. \tag {2}
+$$
+
+Here, $\Delta gt_{j}$ denotes the ground-truth offset from $r_j$ to the target center; $\mathbb{I}(\cdot)$ indicates that we only train those seeds located on the surface of ground-truth target; $M_{\mathrm{ts}}$ denotes the number of trained seeds.
+
+Clustering and Target proposal. For each $c_{j}$ , we use ball query [30] to generate cluster $T_{j}^{\mathrm{t}}$ with radius $R$ : $T_{j}^{\mathrm{t}} = \{c_{k} \mid \| c_{k} - c_{j} \|_{2} < R\}$ . Since neighboring clusters may capture similar region-level context, we sample a subset of size $K$ in all potential target centers as cluster centroids for efficiency. In Sec. 4.3.3, P2B turns robust to a wide range of $K$ s. Finally, we feed each $T_{j}^{\mathrm{t}}$ into $\Theta$ (MLP-Maxpool-MLP) and obtain target proposal $p_{j}^{\mathrm{t}}$ with proposal-wise targetness score $s_{j}^{\mathrm{p}}$ (totally $K$ proposals are generated):
+
+$$
+\left\{p _ {j} ^ {\mathrm {t}}, s _ {j} ^ {\mathrm {P}} \right\} = \Theta \left(T _ {j} ^ {\mathrm {t}}\right). \tag {3}
+$$
+
+$p_j^{\mathrm{t}}$ has 4 parameters: offsets for 3D position and rotation in $\tilde{\mathbf{X}}$ - $\mathbf{Y}$ plane. We will detail how to learn $\Theta$ in Sec. 3.5.
+
+# 3.4. Improved target proposal with seed-wise targetness score
+
+We consider each seed with target-specific feature can be directly assessed with its targetness to 1) regularize earlier feature learning and 2) strengthen the representation of its predicting potential target center. Therefore, we can obtain target proposals with higher quality.
+
+Seed-wise targetness score $s^{\mathrm{s}}$ . We learn a MLP to generate $s_j^{\mathrm{s}}$ for each $r_j$ . Those search area seeds located on the surface of ground-truth target are regarded as positives, and the extra as negatives. We use a standard binary cross entropy loss $L_{\mathrm{cla}}$ for $s^{\mathrm{s}}$ . Since $s_j^{\mathrm{s}}$ tightly relates to $f_{r_j}^{\mathrm{t}}$ , $L_{\mathrm{cla}}$ can explicitly constrain the point feature learning and consequent target-specific feature augmentation.
+
+Improved target proposal. Inheriting more discriminative power from $s_j^s$ , we update $c_{j}$ 's representation with
+
+$[s_j^{\mathrm{s}}; x_{c_j}; f_{c_j}] \in \mathbb{R}^{1 + 3 + d_2}$ . Sequentially, we update clusters with ball query and target proposals with Equation (3). We consider that, $s^{\mathrm{s}}$ can implicitly help pick out representative potential target centers to benefit final target proposal.
+
+# 3.5. Final target verification
+
+With $K$ proposals generated from above (refer to $\Theta$ in Equation (3)), proposal with the highest proposal-wise targetness score is verified as the final tracking result.
+
+We follow VoteNet [28] to learn $\Theta$ . Specifically, we consider proposals whose centers near the target center (within 0.3 meters) as positives and those far away (by more than 0.6 meters) as negatives. Other proposals are left unpenalized. We use a standard binary cross entropy loss $L_{\mathrm{prop}}$ for $s_j^{\mathrm{p}}$ . As for $p_j^{\mathrm{t}}$ , only the positives' box parameters are supervised via Huber (smooth-L1 [31]) loss $L_{\mathrm{box}}$ . We aggregate all the mentioned losses as our final loss $L$ :
+
+$$
+L = L _ {\text {r e g}} + \gamma_ {1} L _ {\text {c l a}} + \gamma_ {2} L _ {\text {p r o p}} + \gamma_ {3} L _ {\text {b o x}}. \tag {4}
+$$
+
+Here $\gamma_1 (= 0.2)$ , $\gamma_2 (= 1.5)$ and $\gamma_3 (= 0.2)$ are used to normalize all the component losses to be of the same scale.
+
+# 4. Experiments
+
+We applied KITTI tracking dataset [10] (with point clouds scanned using lidar) as benchmark. We followed settings in [11] (shortened as SC3D by us for simplicity) in data split, tracklet generation1 and evaluation metric for fair comparisons. Since cars in KITTI appear in largest quantity and diversity, we mainly focused on car tracking and perform ablation study on it as in SC3D. We also did extensive experiments with other three target types (Pedestrain, Van, Cyclist) for better comparisons.
+
+# 4.1. Experimental setting
+
+# 4.1.1 Dataset
+
+Since ground truth for test set in KITTI is inaccessible offline, we used its training set to train and test our P2B. This tailored dataset had 21 outdoor scenes and 8 types of targets. We generated tracklets for target instances within all videos and split the dataset as follows: scenes 0-16 for training, 17-18 for validation, and 19-20 for testing.
+
+Point cloud's sparsity. Though each frame reports an average of 120k points, we suppose the points on target might be quite sparse with general occlusion and lidar's defect on distant objects. To validate our idea, we counted the number of points on KITTI's cars in Fig. 5. We can observe that about $34\%$ cars held fewer than 50 points. The situation may be worse on smaller-size pedestrians and cyclists. This sparsity imposes great challenge onto point cloud based 3D object tracking.
+
+
+Figure 5. Histogram for number of points on KITTI's cars to exemplify the sparsity of points on target.
+
+# 4.1.2 Evaluation metric
+
+We used One Pass Evaluation (OPE) [38] to measure Success and Precision of different methods. "Success" is defined as IOU between predicted box and ground-truth (GT) box. "Precision" is defined as AUC for errors (distance between two boxes' centers) from 0 to $2\mathrm{m}$ .
+
+# 4.1.3 Implementation details
+
+Template and search area. For template $^2$ , we collected and normalized its points to $N_{1} = 512$ ones with randomly abandoning or duplicating. For search area, we similarly collected and normalized the points to $N_{2} = 1024$ ones. The ways to generate template and search area differ in training and testing as detailed below.
+
+Network architecture. We adopted PointNet++ [30] as our backbone. We tailored it to contain three set-abstraction (SA) layers, with receptive radius of 0.3, 0.5, 0.7 meters, and 3 times of half-size down-sampling. This yielded $M_1 = 64(= N_1 / 2^3)$ template seeds and $M_2 = 128(= N_2 / 2^3)$ search area seeds. We applied random sampling, and removed up-sampling layers in PointNet++ due to points' sparsity. The output feature was of $d_1 = 256$ dimensions.
+
+Throughout our method, all used MLPs had three layers. The size of these layers was 256 (hence $d_{2} = 256$ ) except that of the last layers ( $\mathrm{size}_{\mathrm{ly}}$ ) in following MLPs:
+
+- For MLP to predict $s^{\mathrm{s}}$ , $\mathrm{size}_{\mathrm{ly}} = 1$ .
+- For $\Theta$ to predict $s^{\mathrm{p}}$ and $p^{\mathrm{t}}$ , $\mathrm{size}_{\mathrm{ly}} = 5$ .
+
+Clustering. $K = 64$ randomly sampled potential target centers clustered the neighbors within $R = 0.3$ meters.
+
+Training. 1) Data Augmentation: we applied random offset on previous GT and fused point clouds within the result box and the first GT for more template samples; we enlarged the current GT by 2 meters to include background (negative seeds), applied similar random offset and collected inside point cloud for more search area samples. 2) We trained P2B from scratch with the augmented samples.
+
+ | Method | Previous result | Previous GT | Current GT |
| Success | SC3D [11] | 41.3 | 64.6 | 76.9 |
| P2B (ours) | 56.2 | 82.4 | 84.0 |
| Precision | SC3D [11] | 57.9 | 74.5 | 81.3 |
| P2B (ours) | 72.8 | 90.1 | 90.3 |
+
+Table 2. Comprehensive comparison with SC3D. The right three columns differ in their ways to generate search area.
+
+ | Method | Car | Pedestrian | Van | Cyclist | Mean |
| Frame Number | 6424 | 6088 | 1248 | 308 | 14068 |
| Success | SC3D [11] | 41.3 | 18.2 | 40.4 | 41.5 | 31.2 |
| P2B (ours) | 56.2 | 28.7 | 40.8 | 32.1 | 42.4 |
| Precision | SC3D [11] | 57.9 | 37.8 | 47.0 | 70.4 | 48.5 |
| P2B (ours) | 72.8 | 49.6 | 48.4 | 44.7 | 60.0 |
+
+We applied Adam optimizer [17]. Learning rate was initially 0.001 and decreased by 5 times after 10 epochs. Batch size was 32. In practice, we observed P2B converged to a satisfying result after about 40 epochs.
+
+Testing. We used the trained P2B to infer 3D bounding boxes within tracklets frame by frame. For the current frame, template initially adopted the first GT's point cloud and then fusion of the first GT's and previous result's point clouds. We enlarged previous result by 2 meters in current frame and collected inside point cloud to obtain search area.
+
+# 4.2. Comprehensive comparisons
+
+We only compared our P2B with SC3D [11], the first and only work on point cloud based 3D object tracking. We reported results for 3D car tracking in Table 2.
+
+We generated search area centered on previous result, previous GT or current GT. Using previous result as the search center meets the requirement of real scenarios, while using previous GT helps approximately assess short-term tracking performance. For the two situations, SC3D applies Kalman filtering to generate proposals. Using current GT is unreasonable, but is considered in SC3D to approximate exhaustive search and assess SC3D's discriminative power. Specifically, SC3D conducts grid search around target center to include GT box in generated proposals. However, P2B clusters potential target centers to generate proposals without explicit dependence on GT box. I.e., P2B may adapt to various scenarios while SC3D could degrade when the GT boxes are removed as demonstrated in Table 2. Comprehensively, P2B outperformed SC3D by a large margin. All later experiments adopted the more realistic setting of using previous result ("Testing" in Sec. 4.1.3).
+
+Extensive comparisons. We further compared P2B with SC3D on Pedestrian, Van, and Cyclist (Table 3). P2B outperformed SC3D by $\sim 10\%$ on average. P2B's advantage turned significant on data-rich Car and Pedestrian. But P2B degraded when training data decreased as was the case for
+
+Table 3. Extensive comparisons with SC3D. The right five columns show results with different target types and their Mean.
+
+| Ways for tsfa | Success | Precision |
| Our default setting | 56.2 | 72.8 |
| Without template features | 55.6 | 70.9 |
| Without similarity map | 52.7 | 69.4 |
| With search area features A | 56.8 | 72.6 |
| With search area features B | 49.3 | 64.8 |
+
+Table 4. Different ways for target-specific feature augmentation (tsfa). Methods for obtaining search features A and B are illustrated in Fig. 6.
+
+
+(A)
+
+
+(B)
+Figure 6. Two ways to include search area features in target-specific feature augmentation. For A we duplicated search area seeds' features and attached them after template features' duplications along each column of similarity map; for B we concatenated the search area feature with the feature after Maxpool (Fig. 4).
+
+Van and Cyclist. We conjecture that P2B may rely on more data to learn better networks especially when regressing potential target centers. Comparatively, SC3D needs relatively less data to suffice similarity measuring between two regions. To validate this, we used the model trained on data-rich Car to test Van, with the belief that car resembles van and contains potentially transferable information. As expected, the Success/Precision result of P2B showed an improved 49.9/59.9 (original: 40.8/48.4), while SC3D reported a declined 37.2/45.9 (original: 40.4/47.0).
+
+# 4.3. Ablation study
+
+# 4.3.1 Ways for target-specific feature augmentation
+
+Besides our default setting in P2B (Sec. 3.2), there are another four possible ways for feature augmentation: removing (the duplication of) template features, removing the similarity map, using search area feature A and B (Fig. 6).
+
+We compared the five settings in Table 4. Here removing template features or similarity map degraded by about $1\%$ or $3\%$ , which validates the contributions of these two parts in our default setting. Search area feature A and B did not improve or even harm the performance. Note that we already combined template features in both conditions. This may reveal that search area features only capture spatial context rather than target clue, and hence turns useless for target-specific feature augmentation. In comparison, our default setting brings with richer target clue from template seeds to yield a more "directed" proposal generation.
+
+
+Figure 7. Illustration of seed-wise targetness scores and potential target centers. Green lines show projection from seeds (colored points in the first row) to potential target centers (colored points in the second row). We marked those informative points, i.e., with higher targetness scores, in red and opposite in yellow. Paired seed and potential center were marked in the same color to show correlation.
+
+| Ways for using s8 | Success | Precision |
| Our default setting | 56.2 | 72.8 |
| Without concatenation | 55.1 | 70.8 |
| Without the whole branch of s8 | 52.6 | 67.4 |
+
+
+Figure 8. Different number of the proposals to show our method is compatible with a wide range of parameters.
+
+
+
+# 4.3.2 Effectiveness of seed-wise targetness
+
+In Sec. 3.4, we obtain seed-wise targetness scores $s^{\mathrm{s}}$ and concatenate them with potential target centers to guide the proposal and verification. Here we tested P2B without this concatenation or even the whole branch of $s^{\mathrm{s}}$ (Table 5). We can observe that leaving out concatenation dropped the performance by $\sim 1\%$ , while removing the whole branch dropped by $\sim 3\%$ . This verifies that $s^{\mathrm{s}}$ offers good supervision on learning the whole network for improved target proposal and verification.
+
+# 4.3.3 Robustness with different number of proposals
+
+We tested P2B (without re-training) and SC3D with different number of proposals. From the results in Fig. 8, P2B obtained satisfying results even with only 20 proposals. But SC3D degraded dramatically when using less than 40 proposals. To conclude, P2B turns more robust to less number of proposals, showing that P2B can generate proposals with both higher quality and efficiency.
+
+# 4.3.4 Ways for template generation
+
+For template generation, SC3D concatenates the points in all previous results while P2B concatenates the points
+
+Table 5. Effectiveness of seed-wise targetness.
+
+| Source of template points | Success | Precision |
| P2B (ours) | SC3D [11] | P2B (ours) | SC3D [11] |
| The First GT | 46.7 | 31.6 | 59.7 | 44.4 |
| Previous result | 53.1 | 25.7 | 68.9 | 35.1 |
| First & Previous | 56.2 | 34.9 | 72.8 | 49.8 |
| All previous results | 51.4 | 41.3 | 66.8 | 57.9 |
+
+Table 6. Different ways for template generation. "First & Previous" denotes "The first GT and Previous result".
+
+within the first GT and previous result to update template for efficiency. Here we reported results with four settings for template generation: the first GT, the previous result, the fusion of the first GT and previous result, and all previous results. Results in Table 6 show P2B's consistent advantage over SC3D in all settings, even in "All previous shapes" where P2B reported degraded result. We attribute the degradation to that 1) we did not include shape completion [11] and 2) we did not train P2B with all previous results while SC3D considered both.
+
+# 4.4. Qualitative analysis
+
+# 4.4.1 Advantageous cases
+
+We first exemplified our target-specific feature's discriminative power in Fig. 7. The first row visualizes seeds' targetness scores to demonstrate their possibility of belonging to the target (Car). We can observe that P2B had learnt to discriminate the target seeds from the background ones. The second row visualizes how P2B projects seeds to potential target centers. We can observe that the potential centers with more target information gathered tightly around GT target center, which further validates our discriminative target-specific features. Besides, P2B can address the occlusion because it can generate groups of informative potential target centers for final prediction.
+
+We then visualize P2B's advantage over SC3D to address point cloud's sparsity in Fig. 9. We can observe that in the sparse scenarios where SC3D tracked off course or even failed, our predicted box held tight to the target center.
+
+
+Figure 9. Advantageous cases of our P2B compared with SC3D. We can observe P2B's advantage over SC3D in both dense (the first-row sequence) and sparse (the second-row sequence) scenarios, especially for the latter.
+
+
+Figure 10. Failure cases of P2B when the initial template contained few informative points.
+
+# 4.4.2 Failure cases
+
+Here we searched for tracklets where P2B failed and found that most failure cases arose when initial template in the first frame was too sparse and hence yielded little target information. As exemplified in Fig. 10, when P2B faced such case and tracked off course with cluttered background, points from the initial template cannot modify current erroneous predictions and re-obtain an informative template. This failure may also reveal that P2B inherits target information from template instead of search area.
+
+We believe that when fed with more points containing potentially rich target information, P2B could generate proposals with higher quality to yield better results. Our intuition is validated in Fig. 11.
+
+# 4.5. Running speed
+
+Here we averaged the running time of all test frames for car to measure P2B's speed. P2B achieved 45.5 FPS, including $7.0\mathrm{ms}$ for processing point cloud, $14.3\mathrm{ms}$ for network forward propagation and $0.9\mathrm{ms}$ for post-processing, on a single NVIDIA 1080Ti GPU. SC3D in default setting ran with 1.8 FPS on the same platform.
+
+# 5. Conclusions
+
+In this work we propose a novel point-to-box (P2B) network for 3D object tracking. We focus on embedding the target information within template into search space and formulate an end-to-end method for point-driven target proposal and verification jointly. P2B operates on sampled
+
+
+Figure 11. The influence of the number of points on the first frame's car to our method. We counted the average Success for each interval (horizontal axis) in the test set.
+
+seeds instead of 3D boxes to reduce search space by a large margin. Experiments justify our proposition's superiority.
+
+The experiments also reveal that P2B needs more data to obtain satisfying result. Hence, we could expect a less data-dependent P2B while we could also collect more data to handle the issue under this big-data era. Besides, we could seek better ways for feature augmentation in search area and test our method on more challenging scenarios.
+
+Acknowledgements This work is jointly supported by the National Natural Science Foundation of China (Grant No. U1913602, 61876211 and 61502187), Equipment Preresearch Field Fund of China (Grant No. 61403120405), National Key Laboratory Open Fund of China (Grant No. 6142113180211), and the Fundamental Research Funds for the Central Universities (Grant No. 2019kfyXKJC024).
+
+# References
+
+[1] Alireza Asvadi, Pedro Girão, Paulo Peixoto, and Urbano Nunes. 3d object tracking using rgb and lidar data. In Proc. IEEE International Conference on Intelligent Transportation Systems (ITSC), 2016. 1, 2
+[2] D. H. Ballard. Generalizing the hough transform to detect arbitrary shapes. Pattern recognition, 13(2):111-122, 1981. 3
+[3] Luca Bertinetto, Jack Valmadre, Joao F Henriques, Andrea Vedaldi, and Philip HS Torr. Fully-convolutional siamese networks for object tracking. In Proc. European Conference on Computer Vision (ECCV), 2016. 1, 2
+[4] Adel Bibi, Tinahzu Zhang, and Bernard Ghanem. 3d part-based sparse tracker with automatic synchronization and registration. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. 1, 2
+[5] R. Qi Charles, Su Hao, Kaichun Mo, and Leonidas J. Guibas. Pointnet: Deep learning on point sets for 3d classification and segmentation. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 2
+[6] Xinghao Chen, Guijin Wang, Cairong Zhang, Tae-Kyun Kim, and Xiangyang Ji. Shpr-net: Deep semantic hand pose regression from point clouds. IEEE Access, pages 43425-43439, 2018. 2
+[7] Andrew I Comport, Éric Marchand, and François Chaumette. Robust model-based tracking for robot vision. In Proc. IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), 2004. 1
+[8] Heng Fan and Haibin Ling. Siamese cascaded region proposal networks for real-time visual tracking. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 2
+[9] Liuhao Ge, Yujun Cai, Junwu Weng, and Junsong Yuan. Hand pointnet: 3d hand pose estimation using point sets. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 2
+[10] Andreas Geiger, Philip Lenz, and Raquel Urtasun. Are we ready for autonomous driving? the kitti vision benchmark suite. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2012. 2, 5
+[11] Silvio Giancola, Jesus Zarzar, and Bernard Ghanem. Leveraging shape completion for 3d siamese tracking. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 1, 2, 5, 6, 7
+[12] Neil Gordon, B Ristic, and S Arulampalam. Beyond the kalman filter: Particle filters for tracking applications. *Artech House*, London, 2004. 1
+[13] David Held, Sebastian Thrun, and Silvio Savarese. Learning to track at 100 fps with deep regression networks. In Proc. European Conference on Computer Vision (ECCV), 2016. 2
+[14] Lianghua Huang, Xin Zhao, and Kaiqi Huang. Globaltrack: A simple and strong baseline for long-term tracking. arXiv preprint arXiv:1912.08531, 2019. 3
+[15] Ugur Kart, Alan Lukezic, Matej Kristan, Joni-Kristian Kamarainen, and Jiri Matas. Object tracking by reconstruction with view-specific discriminative correlation filters. In Proc.
+
+IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 1, 2
+[16] Matas J. Kart U, Kamarainen J K. How to make an rgbd tracker? In Proc. European Conference on Computer Vision (ECCV), 2018. 1, 2
+[17] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Proc. International Conference on Learning Representations (ICLR), 2015. 6
+[18] Roman Klokov and Victor Lempitsky. Escape from cells: Deep kd-networks for the recognition of 3d point cloud models. In Proc. IEEE International Conference on Computer Vision (ICCV), 2017. 2
+[19] Bastian Leibe, Ales Leonardis, and Bernt Schiele. Robust object detection with interleaved categorization and segmentation. International Journal of Computer Vision, 77(1-3):259-289, 2008. 3
+[20] Bo Li, Wei Wu, Qiang Wang, Fangyi Zhang, Junliang Xing, and Junjie Yan. Siamrpn++: Evolution of siamese visual tracking with very deep networks. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 2
+[21] Bo Li, Junjie Yan, Wei Wu, Zheng Zhu, and Xiaolin Hu. High performance visual tracking with siamese region proposal network. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 2
+[22] Shile Li and Dongheui Lee. Point-to-pose voting based hand pose estimation using residual permutation equivariant layer. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 2
+[23] Yangyan Li, Rui Bu, Mingchao Sun, Wei Wu, Xinhan Di, and Baoquan Chen. Pointcnn: Convolution on x-transformed points. In Proc. Advances in Neural Information Processing Systems (NIPS), 2018. 2
+[24] Ye Liu, Xiao-Yuan Jing, Jianhui Nie, Hao Gao, Jun Liu, and Guo-Ping Jiang. Context-aware three-dimensional mean-shift with occlusion handling for robust object tracking in rgb-d videos. IEEE Transactions on Multimedia, pages 664-677, 2018. 1, 2
+[25] Wenjie Luo, Bin Yang, and Raquel Urtasun. Fast and furious: Real time end-to-end 3d detection, tracking and motion forecasting with a single convolutional net. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 1
+[26] Eiji Machida, Meifen Cao, Toshiyuki Murao, and Hiroshi Hashimoto. Human motion tracking of mobile robot with kinect 3d sensor. In Proc. SICE Annual Conference (SICE), 2012. 1
+[27] Alessandro Pieropan, Niklas Bergstrom, Masatoshi Ishikawa, and Hedvig Kjellstrom. Robust 3d tracking of unknown objects. In Proc. IEEE International Conference on Robotics and Automation (ICRA), 2015. 2
+[28] Charles R Qi, Or Litany, Kaiming He, and Leonidas J Guibas. Deep hough voting for 3d object detection in point clouds. In Proc. IEEE International Conference on Computer Vision (ICCV), 2019. 2, 3, 4, 5
+[29] Charles R Qi, Wei Liu, Chenxia Wu, Hao Su, and Leonidas J Guibas. Frustum pointnets for 3d object detection from rgb-
+
+d data. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 2
+[30] Charles Ruizhongtai Qi, Li Yi, Hao Su, and Leonidas J Guibas. Pointnet++: Deep hierarchical feature learning on point sets in a metric space. In Proc. Advances in Neural Information Processing Systems (NIPS), 2017. 2, 3, 4, 5
+[31] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In Proc. Advances in Neural Information Processing Systems (NIPS), 2015. 5
+[32] Shaoshuai Shi, Xiaogang Wang, and Hongsheng Li. Poincaré: 3d object proposal generation and detection from point cloud. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 2
+[33] Ran Tao, Efstratos Gavves, and Arnold WM Smeulders. Siamese instance search for tracking. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. 2
+[34] Qiang Wang, Jin Gao, Junliang Xing, Mengdan Zhang, and Weiming Hu. Dcfnet: Discriminant correlation filters network for visual tracking. arXiv preprint arXiv:1704.04057, 2017. 2
+[35] Qiang Wang, Zhu Teng, Junliang Xing, Jin Gao, Weiming Hu, and Stephen Maybank. Learning attentions: residual attentional siamese network for high performance online visual tracking. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 2
+[36] Qiang Wang, Li Zhang, Luca Bertinetto, Weiming Hu, and Philip HS Torr. Fast online object tracking and segmentation: A unifying approach. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 2
+[37] Xiao Wang, Tao Sun, Rui Yang, and Bin Luo. Learning target-aware attention for robust tracking with conditional adversarial network. In Proc. British Machine Vision Conference (BMVC), 2016. 3
+[38] Yi Wu, Jongwoo Lim, and Ming-Hsuan Yang. Online object tracking: A benchmark. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2013. 5
+[39] Zetong Yang, Yanan Sun, Shu Liu, Xiaoyong Shen, and Jiaya Jia. Std: Sparse-to-dense 3d object detector for point cloud. In Proc. IEEE International Conference on Computer Vision (ICCV), 2019. 2
+[40] Zhipeng Zhang and Houwen Peng. Deeper and wider siamese networks for real-time visual tracking. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 2
+[41] Gao Zhu, Fatih Murat Porikli, and Hongdong Li. Beyond local search: Tracking objects everywhere with instancespecific proposals. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. 3
+[42] Zheng Zhu, Qiang Wang, Bo Li, Wei Wu, Junjie Yan, and Weiming Hu. Distractor-aware siamese networks for visual object tracking. In Proc. European Conference on Computer Vision (ECCV), 2018. 2
\ No newline at end of file
diff --git a/p2bpointtoboxnetworkfor3dobjecttrackinginpointclouds/images.zip b/p2bpointtoboxnetworkfor3dobjecttrackinginpointclouds/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..0d7495fbec9cde73e1c775a0766a931eb2466e3f
--- /dev/null
+++ b/p2bpointtoboxnetworkfor3dobjecttrackinginpointclouds/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a60fb851ba492e2f56ceedcd888f1b78773294bd5fe4faf74a95fca4b9fd6f39
+size 504441
diff --git a/p2bpointtoboxnetworkfor3dobjecttrackinginpointclouds/layout.json b/p2bpointtoboxnetworkfor3dobjecttrackinginpointclouds/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..8e1c12fba5738d744959e83f6df4a03ce5e87536
--- /dev/null
+++ b/p2bpointtoboxnetworkfor3dobjecttrackinginpointclouds/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e033718919adaacadb2a9f44590bf89d1dc3663a37982fa10ca5a5a16c6582de
+size 493818
diff --git a/padspolicyadaptedsamplingforvisualsimilaritylearning/0a973c47-ee04-4cf6-8469-77be225f9ad2_content_list.json b/padspolicyadaptedsamplingforvisualsimilaritylearning/0a973c47-ee04-4cf6-8469-77be225f9ad2_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..6271a9cb294493d724e8c52c67f3953689bf05c0
--- /dev/null
+++ b/padspolicyadaptedsamplingforvisualsimilaritylearning/0a973c47-ee04-4cf6-8469-77be225f9ad2_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d8a29461fac9b48fe7f6f2dec5f2eda145542edc2513d64bf9f02d362070f652
+size 80739
diff --git a/padspolicyadaptedsamplingforvisualsimilaritylearning/0a973c47-ee04-4cf6-8469-77be225f9ad2_model.json b/padspolicyadaptedsamplingforvisualsimilaritylearning/0a973c47-ee04-4cf6-8469-77be225f9ad2_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..a3d05e19d09e8704207b0cab6e9faf69380c2303
--- /dev/null
+++ b/padspolicyadaptedsamplingforvisualsimilaritylearning/0a973c47-ee04-4cf6-8469-77be225f9ad2_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c2f567a0afcf889e5ed1a15bb846bb3e11d47f795bd48e5abc97b43d8f64553e
+size 101469
diff --git a/padspolicyadaptedsamplingforvisualsimilaritylearning/0a973c47-ee04-4cf6-8469-77be225f9ad2_origin.pdf b/padspolicyadaptedsamplingforvisualsimilaritylearning/0a973c47-ee04-4cf6-8469-77be225f9ad2_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..f80c49b87244a0cbcf98c4044ef3a2ea8c3524f9
--- /dev/null
+++ b/padspolicyadaptedsamplingforvisualsimilaritylearning/0a973c47-ee04-4cf6-8469-77be225f9ad2_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8f4e2565989b127b89c59d65133d5189b635571fb66ec270d693080299ce6e35
+size 746361
diff --git a/padspolicyadaptedsamplingforvisualsimilaritylearning/full.md b/padspolicyadaptedsamplingforvisualsimilaritylearning/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..c43ef7895a7d825b2c095c3c828cc178ae713a22
--- /dev/null
+++ b/padspolicyadaptedsamplingforvisualsimilaritylearning/full.md
@@ -0,0 +1,293 @@
+# PADS: Policy-Adapted Sampling for Visual Similarity Learning
+
+Karsten Roth* Timo Milbich* Björn Ommer
+Heidelberg Collaboratory for Image Processing / IWR
+Heidelberg University, Germany
+
+# Abstract
+
+Learning visual similarity requires to learn relations, typically between triplets of images. Albeit triplet approaches being powerful, their computational complexity mostly limits training to only a subset of all possible training triplets. Thus, sampling strategies that decide when to use which training sample during learning are crucial. Currently, the prominent paradigm are fixed or curriculum sampling strategies that are predefined before training starts. However, the problem truly calls for a sampling process that adjusts based on the actual state of the similarity representation during training. We, therefore, employ reinforcement learning and have a teacher network adjust the sampling distribution based on the current state of the learner network, which represents visual similarity. Experiments on benchmark datasets using standard triplet-based losses show that our adaptive sampling strategy significantly outperforms fixed sampling strategies. Moreover, although our adaptive sampling is only applied on top of basic triplet-learning frameworks, we reach competitive results to state-of-the-art approaches that employ diverse additional learning signals or strong ensemble architectures. Code can be found under https://github.com/Confusezius/CVPR2020_PADS.
+
+# 1. Introduction
+
+Capturing visual similarity between images is the core of virtually every computer vision task, such as image retrieval[57, 50, 36, 33], pose understanding [32, 8, 3, 51], face detection[46] and style transfer [26]. Measuring similarity requires to find a representation which maps similar images close together and dissimilar images far apart. This task is naturally formulated as Deep Metric Learning (DML) in which individual pairs of images are compared[17, 50, 35] or contrasted against a third image[46, 57, 54] to learn a distance metric that reflects image similarity. Such triplet learning constitutes the basis of powerful learning algorithms[42, 36, 44, 59]. However, with growing training
+
+
+Figure 1: Progression of negative sampling distributions over training iterations. A static sampling strategy[57] follows a fixed probability distribution over distances $d_{an}$ between anchor and negative images. In contrast, our learned, discretized sampling distributions change while adapting to the training state of the DML model. This leads to improvements on all datasets close to $4\%$ compared to static strategies (cf. Tab. 1). Moreover, the progression of the adaptive distributions varies between datasets and, thus, is difficult to model manually which highlights the need for a learning based approach.
+
+set size, leveraging every single triplet for learning becomes computationally infeasible, limiting training to only a subset of all possible triplets. Thus, a careful selection of those triplets which drive learning best, is crucial. This raises the question: How to determine which triplets to present when
+
+to our model during training?
+
+As training progresses, more and more triplet relations will be correctly represented by the model. Thus, ever fewer triplets will still provide novel, valuable information. Conversely, leveraging only triplets which are hard to learn[46, 9, 60] but therefore informative, impairs optimization due to high gradient variance[57]. Consequently, a reasonable mixture of triplets with varying difficulty would provide an informative and stable training signal. Now, the question remains, when to present which triplet? Sampling from a fixed distribution over difficulties may serve as a simple proxy[57] and is a typical remedy in representation learning in general[25, 5]. However, $(i)$ choosing a proper distribution is difficult; $(ii)$ the abilities and state of our model evolves as training progresses and, thus, a fixed distribution cannot optimally support every stage of training; and $(iii)$ triplet sampling should actively contribute to the learning objective rather than being chosen independently. Since a manually predefined sampling distribution does not fulfill these requirements, we need to learn and adapt it while training a representation.
+
+Such online adaptation of the learning algorithm and parameters that control it during training is typically framed as a teacher-student setup and optimized using Reinforcement Learning (RL). When modelling a flexible sampling process (the student), a controller network (the teacher) learns to adjust the sampling such that the DML model is steadily provided with an optimal training signal. Fig. 1 compares progressions of learned sampling distributions adapted to the DML model with a typical fixed sampling distribution[57].
+
+This paper presents how to learn a novel triplet sampling strategy which is able to effectively support the learning process of a DML model at every stage of training. To this end, we model a sampling distribution so it is easily adjustable to yield triplets of arbitrary mixtures of difficulty. To adapt to the training state of the DML model we employ Reinforcement Learning to update the adjustment policy. Directly optimizing the policy so it improves performance on a held-back validation set, adjusts the sampling process to optimally support DML training. Experiments show that our adaptive sampling strategy significantly improves over fixed, manually designed triplet sampling strategies on multiple datasets. Moreover, we perform diverse analyses and ablations to provide additional insights into our method.
+
+# 2. Related Work
+
+Metric learning has become the leading paradigm for learning distances between images with a broad range of applications, including image retrieval[34, 29, 57], image classification [11, 61], face verification[46, 19, 30] or human pose analysis[32, 8]. Ranking losses formulated on pairs[50, 17], triplets[46, 57, 54, 12] or even higher order tuples of images[7, 35, 55] emerged as the most widely used
+
+basis for DML [43]. As with the advent of CNNs datasets are growing larger, different strategies are developed to cope with the increasing complexity of the learning problem.
+
+Complexity management in DML: The main line of research are negative sampling strategies[46, 57, 18] based on distances between an anchor and a negative image. FaceNet[46] leverages only the hard negatives in a minibatch. Wu et al. [57] sample negatives uniformly over the whole range of distances to avoid large variances in the gradients while optimization. Harwood et al. [18] restrict and control the search space for triplets using pre-computed sets of nearest neighbors by linearly regressing the training loss. Each of them successfully enable effective DML training. However, these works are based on fixed and manually predefined sampling strategies. In contrast, we learn an adaptive sampling strategy to provide an optimal input stream of triplets conditioned on the training state of our model.
+
+Orthogonal to sampling negatives from the training set is the generation of hard negatives in form of images[9] or feature vectors[62, 60]. Thus, these approaches also resort to hard negatives, while our sampling process yields negatives of any mixture of difficulty depending on the model state.
+
+Finally, proxy based techniques reduce the complexity of the learning problem by learning one[34] or more [40] virtual representatives for each class, which are used as negatives. Thus, these approaches approximate the negative distributions, while our sampling adaptively yields individual negative samples.
+
+Advanced DML: Based on the standard DML losses many works improve model performance using more advanced techniques. Ensemble methods [36, 59, 44] learn and combine multiple embedding spaces to capture more information. HORDE[22] additionally forces feature representations of related images to have matching higher moments. Roth et al. [42] combines class-discriminative features with features learned from characteristics shared across classes. Similarly, Lin et al. [29] proposes to learn the intra-class distributions, next to the inter-class distribution. All these approaches are applied in addition to the standard ranking losses discussed above. In contrast, our work presents a novel triplet sampling strategy and, thus, is complementary to these advanced DML methods.
+
+Adaptive Learning: Curriculum Learning[4] gradually increases the difficulty of the samples presented to the model. Hacohen et al. [16] employ a batch-based learnable scoring function to provide a batch-curriculum for training, while we learn how to adapt a sampling process to the training state. Graves et al. [15] divide the training data into fixed subsets before learning in which order to use them from training. Further, Gopal et al. [14] employs an empirical online importance sampling distribution over inputs based on their gradient magnitudes during training. Similarly, Shreyas et al. [45] learn an importance sampling over
+
+
+Figure 2: Sampling distribution $p(I_n|I_a)$ . We discretize the distance interval $U = [\lambda_{\min}, \lambda_{\max}]$ into $K$ equisized bins $u_k$ with individual sampling probabilities $p_k$ .
+
+instances. In contrast, we learn an online policy for selecting triplet negatives, thus instance relations. Meta Learning aims at learning how to learn. It has been successfully applied for various components of a learning process, such as activation functions[41], input masking[10], self-supervision [6], finetuning [49], loss functions[20], optimizer parameters[2] and model architectures[39, 58]. In this work, we learn a sampling distribution to improve triplet-based learning.
+
+# 3. Distance-based Sampling for DML
+
+Let $\phi_i \coloneqq \phi(I_i; \zeta)$ be a $D$ -dimensional embedding of an image $I_i \in \mathbb{R}^{H \times W \times 3}$ with $\phi(I_i; \zeta)$ being represented by a deep neural network parametrized by $\zeta$ . Further, $\phi$ is normalized to a unit hypersphere $\mathbb{S}$ for regularization purposes [46]. Thus, the objective of DML is to learn $\phi: \mathbb{R}^{H \times W \times 3} \to \Phi \subseteq \mathbb{S}$ such that images $I_i, I_j \in \mathcal{I}_{\mathrm{train}}$ are mapped close to another if they are similar and far otherwise, under a standard distance function $d(\phi_i, \phi_j)$ . Commonly, $d$ is the euclidean distance, i.e. $d_{ij} \coloneqq \| \phi_i - \phi_j \|_2$ .
+
+A popular family of training objectives for learning $\phi$ are ranking losses[46, 57, 50, 35, 35, 17] operating on tuples of images. Their most widely used representative is arguably the triplet loss[46] which is defined as an ordering task between images $\{I_a, I_p, I_n\}$ , formulated as
+
+$$
+\mathcal {L} _ {\text {t r i p l e t}} \left(\left\{I _ {a}, I _ {p}, I _ {n} \right\}; \zeta\right) = \max \left(0, d _ {a p} ^ {2} - d _ {a n} ^ {2} + \gamma\right) \tag {1}
+$$
+
+Here, $I_{a}$ and $I_{p}$ are the anchor and positive with the same class label. $I_{n}$ acts as the negative from a different class. Optimizing $\mathcal{L}_{\mathrm{triplet}}$ pushes $I_{a}$ closer to $I_{p}$ and further away from $I_{n}$ as long as a constant distance margin $\gamma$ is violated.
+
+# 3.1. Static Triplet sampling strategies
+
+While ranking losses have proven to be powerful, the number of possible tuples grows dramatically with the size of the training set. Thus, training quickly becomes infeasible, turning efficient tuple sampling strategies into a key component for successful learning as discussed here.
+
+When performing DML using ranking losses like Eq.1,
+
+triplets decreasingly violate the triplet margin $\gamma$ as training progresses. Naively employing random triplet sampling entails many of the selected triplets being uninformative, as distances on $\Phi$ are strongly biased towards larger distances $d$ due to its regularization to $\mathbb{S}$ . Consequently, recent sampling strategies explicitly leverage triplets which violate the triplet margin and, thus, are difficult and informative.
+
+(Semi-)Hard negative sampling: Hard negative sampling methods focus on triplets violating the margin $\gamma$ the most, i.e. by sampling negatives $I_{n}^{*} = \arg \min_{I_{n}\in \mathcal{I}:d_{an} < d_{ap}}d_{an}$ . While it speeds up convergence, it may result in collapsed models[46] due to a strong focus on few data outliers and very hard negatives. Facenet[46] proposes a relaxed, semi-hard negative sampling strategy restricting the sampling set to a single mini-batch $\mathcal{B}$ by employing negatives $I_{n}^{*} = \arg \min_{I_{n}\in \mathcal{B}:d_{an} > d_{ap}}d_{an}$ . Based on this idea, different online[37, 50] and offline[18] strategies emerged.
+
+(Static) Distance-based sampling: By considering the hardness of a negative, one can successfully discard easy and uninformative triplets. However, triplets that are too hard lead to noisy learning signals due to overall high gradient variance[57]. As a remedy, to control the variance while maintaining sufficient triplet utility, sampling can be extended to also consider easier negatives, i.e. introducing a sampling distribution $I_{n} \sim p(I_{n}|I_{a})$ over the range of distances $d_{an}$ between anchor and negatives. Wu et al. [57] propose to sample from a static uniform prior on the range of $d_{an}$ , thus equally considering negatives from the whole spectrum of difficulties. As pairwise distances on $\Phi$ are strongly biased towards larger $d_{an}$ , their sampling distribution requires to weigh $p(I_n|I_a)$ inversely to the analytical distance distribution on $\Phi$ : $q(d) \propto d^{D - 2}\left[1 - \frac{1}{4} d^2\right]^{\frac{D - 3}{2}}$ for large $D \geq 128[1]$ . Distance-based sampling from the static, uniform prior is then performed by
+
+$$
+I _ {n} \sim p \left(I _ {n} \mid I _ {a}\right) \propto \min \left(\lambda , q ^ {- 1} \left(d _ {a n}\right)\right) \tag {2}
+$$
+
+with $\lambda$ being a clipping hyperparameter for regularization.
+
+# 4. Learning an Adaptive Negative Sampling
+
+Distance-based sampling of negatives $I_{n}$ has proven to offer a good trade-off between fast convergence and a stable, informative training signal. However, a static sampling distribution $p(I_n|I_a)$ provides a stream of training data independent of the the changing needs of a DML model during learning. While samples of mixed difficulty may be useful at the beginning, later training stages are calling for samples of increased difficulty, as e.g. analyzed by curriculum learning[4]. Unfortunately, as different models and even different model initializations[13] exhibit distinct learning dynamics, finding a generally applicable learning schedule is challenging. Thus, again, heuristics[16] are typically employed, inferring changes after a fixed number of training
+
+
+Apdative Negative Sampling
+DML
+Figure 3: Overview of approach. Blue denotes the standard Deep Metric Learning (DML) setup using triplets $\{I_a, I_p, I_n\}$ . Our proposed adaptive negative sampling is shown in green: (1) We compute the current training state $s$ using $\mathcal{I}_{val}$ . (2) Conditioned on $s$ , our policy $\pi_{\theta}(a|s)$ predicts adjustments to $p_k$ . (3) We perform bin-wise adjustments of $p(I_n|I_a)$ . (4) Using the adjusted $p(I_n|I_a)$ we train the DML model. (5) Finally, $\pi_{\theta}$ is updated based on the reward $r$ .
+
+epochs or iterations. To provide an optimal training signal, however, we rather want $p(I_n|I_a)$ to adapt to the training state of the DML model than merely the training iteration. Such an adaptive negative sampling allows for adjustments which directly facilitate maximal DML performance. Since manually designing such a strategy is difficult, learning it is the most viable option.
+
+Subsequently, we first present how to find a parametrization of $p(I_{a}|I_{n})$ that is able to represent arbitrary, potentially multi-modal distributions, thus being able to sample negatives $I_{n}$ of any mixture of difficulty needed. Using this, we can learn a policy which effectively alters $p(I_{n}|I_{a})$ to optimally support learning of the DML model.
+
+# 4.1. Modelling a flexible sampling distribution
+
+Since learning benefits from a diverse distribution $p(I_n|I_a)$ of negatives, uni-modal distributions (e.g. Gaussians, Binomials, $\chi^2$ ) are insufficient. Thus, we utilize a discrete probability mass function $p(I_n|I_a) \coloneqq Pr\{d_{an} \in u_k\} = p_k$ , where the bounded interval $U = [\lambda_{\min}, \lambda_{\max}]$ of possible distances $d_{an}$ is discretized into disjoint equidistant bins $u_1, \ldots, u_K$ . The probability of drawing $I_n$ from bin $u_k$ is $p_k$ with $p_k \geq 0$ and $\sum_k p_k = 1$ . Fig. 2 illustrates this discretized sampling distribution.
+
+This representation of the negative sampling distribution effectively controls which samples are used to learn $\phi$ . As $\phi$ changes during learning, $p(I_n|I_a)$ should also adapt to always provide the most useful training samples, i.e. to control when to use which sample. Hence the probabilities $p_k$ need to be updated while learning $\phi$ . We subsequently solve this task by learning a stochastic adjustment policy $\pi_{\theta}$ for the $p_k$ , implemented as a neural network parametrized by $\theta$ .
+
+# 4.2. Learning an adjustment policy for $p(I_n|I_a)$
+
+Our sampling process based on $p(I_n|I_a)$ should provide optimal training signals for learning $\phi$ at every stage of train-
+
+ing. Thus, we adjust the $p_k$ by a multiplicative update $a \in \mathcal{A}$ conditioned on the current representation (or state) $s \in S$ of $\phi$ during learning. We introduce a conditional distribution $\pi_{\theta}(a|s)$ to control which adjustment to apply at which state $s$ of training $\phi$ . To learn $\pi_{\theta}$ , we measure the utility of these adjustments for learning $\phi$ using a reward signal $r = r(s,a)$ . We now first describe how to model each of these components, before presenting how to efficiently optimize the adjustment policy $\pi_{\theta}$ alongside $\phi$ .
+
+Adjustments $a$ : To adjust $p(I_n|I_a)$ , $\pi_{\theta}(a|s)$ proposes adjustments $a$ to the $p_k$ . To lower the complexity of the action space, we use a limited set of actions $\mathcal{A} = \{\alpha, 1, \beta\}$ to individually decrease, maintain, or increase the probabilities $p_k$ for each bin $u_k$ , i.e. $a := [a_k \in \{\alpha, 1, \beta\}]_{k=1}^K$ . Further, $\alpha, \beta$ are fixed constants $0 < \alpha < 1, \beta > 1$ and $\frac{\alpha + \beta}{2} = 1$ . Updating $p(I_n|I_a)$ is then simply performed by bin-wise updates $p_k \gets p_k \cdot a_k$ followed by re-normalization. Using a multiplicative adjustment accounts for the exponential distribution of distances on $\Phi$ (cf. Sec. 3.1).
+
+Training states $s$ : Adjustments $a$ depend on the present state $s \in S$ of the representation $\phi$ . Unfortunately, we cannot use the current model weights $\zeta$ of the embedding network, as the dimensionality of $s$ would be to high, thus making optimization of $\pi_{\theta}$ infeasible. Instead, we represent the current training state using representative statistics describing the learning progress: running averages over Recall@1[23], NMI[31] and average distances between and within classes on a fixed held-back validation set $\mathcal{I}_{\mathrm{val}}$ . Additionally we use past parametrizations of $p(I_n|I_a)$ and the relative training iteration (cf. Implementation details, Sec. 5).
+
+Rewards $r$ : An optimal sampling distribution $p(I_n|I_a)$ yields triplets whose training signal consistently improves the evaluation performance of $\phi$ while learning. Thus, we compute the reward $r$ for adjustments $a \sim \pi_{\theta}(a|s)$ by directly measuring the relative improvement of $\phi(\cdot; \zeta)$ over
+
+$\phi (\cdot ;\zeta^{\prime})$ from the previous training state. This improvement is quantified through DML evaluation metrics $e(\phi (.;\zeta_t),\mathcal{I}_{\mathrm{val}})$ on the validation set $\mathcal{I}_{\mathrm{val}}$ . More precisely, we define $r$ as
+
+$$
+r = \operatorname {s i g n} \left(e \left(\phi \left(. ; \zeta\right), \mathcal {I} _ {\text {v a l}}\right) - e \left(\phi \left(. ; \zeta^ {\prime}\right), \mathcal {I} _ {\text {v a l}}\right)\right) \tag {3}
+$$
+
+where $\zeta$ was reached from $\zeta^{\prime}$ after $M$ DML training iterations using $p(I_n|I_a)$ . We choose $e$ to be the sum of Recall@1[23] and NMI[31]. Both metrics are in the range [0, 1] and target slightly different performance aspects. Further, similar to [20], we utilize the sign function for consistent learning signals even during saturated training stages.
+
+Learning of $\pi_{\theta}$ : Adjusting $p(I_n|I_a)$ is a stochastic process controlled by actions $a$ sampled from $\pi_{\theta}(a|s)$ based on a current state $s$ . This defines a Markov Decision Process (MDP) naturally optimized by Reinforcement Learning. The policy objective $J(\theta)$ is formulated to maximize the total expected reward $R(\tau) = \sum_{t} r_t(a_t, s_t)$ over training episodes of tuples $\tau = \{(a_t, s_t, r_t) | t = 0, \dots, T\}$ collected from sequences of $T$ time-steps, i.e.
+
+$$
+J (\theta) = \mathbb {E} _ {\tau \sim \pi_ {\theta} (\tau)} [ R (\tau) ] \tag {4}
+$$
+
+Hence, $\pi_{\theta}$ is optimized to predict adjustments $a$ for $p(I_n|I_a)$ which yield high rewards and thereby improving the performance of $\phi$ . Common approaches use episodes $\tau$ comprising long state trajectories which potentially cover multiple training epochs[10]. As a result, there is a large temporal discrepancy between model and policy updates. However, in order to closely adapt $p(I_n|I_a)$ to the learning of $\phi$ , this discrepancy needs to be minimized. In fact, our experiments show that single-step episodes, i.e. $T = 1$ , are sufficient for optimizing $\pi_{\theta}$ to infer meaningful adjustments $a$ for $p(I_n|I_a)$ . Such a setup is also successfully adopted by contextual bandits [28]'. In summary, our training episodes $\tau$ consists of updating $p(I_n|I_a)$ using a sampled adjustment $a$ , performing M DML training iterations based on the adjusted $p(I_n|I_a)$ and updating $\pi_{\theta}$ using the resulting reward $r$ . Optimizing Eq. 4 is then performed by standard RL algorithms which approximate different variations of the policy gradient based on the gain $G(s,a)$ ,
+
+$$
+\nabla_ {\theta} J (\theta) = \mathbb {E} _ {\tau \sim \pi_ {\theta} (\tau)} [ \nabla_ {\theta} \log \pi_ {\theta} (a | s) G (s, a) ] \tag {5}
+$$
+
+The choice of the exact form of $G = G(s, a)$ gives rise to different optimization methods, e.g. REINFORCE[56] ( $G = R(\tau)$ ), Advantage Actor Critic (A2C)[52] ( $G = A(s, a)$ ), etc. Other RL algorithms, such as TRPO[47] or PPO[48] replace Eq. 4 by surrogate objective functions. Fig. 3 provides an overview over the learning procedure. Moreover,
+
+in the supplementary material we compare different RL algorithms and summarizes the learning procedure in Alg. 1 using PPO[48] for policy optimization.
+
+Initialization of $p(I_n|I_a)$ : We find that an initialization with a slight emphasis towards smaller distances $d_{an}$ works best. However, as shown in Tab. 5, also other initializations work well. In addition, the limits of the distance interval $U = [\lambda_{\min}, \lambda_{\max}]$ can be controlled for additional regularization as done in [57]. This means ignoring values above $\lambda_{\max}$ and clipping values below $\lambda_{\min}$ , which is analysed in Tab. 5.
+
+Self-Regularisation: As noted in [42], the utilisation of intra-class features can be beneficial to generalization. Our approach easily allows for a learnable inclusion of such features. As positive samples are generally closest to anchors, we can merge positive samples into the set of negative samples and have the policy learn to place higher sampling probability on such low-distance cases. We find that this additionally improves generalization performance.
+
+Computational costs: Computational overhead over fixed sampling strategies[46, 57] comes from the estimation of $r$ requiring a forward pass over $\mathcal{I}_{\mathrm{val}}$ and the computation of the evaluation metrics. For example, setting $M = 30$ increases the computation time per epoch by less than $20\%$ .
+
+# 5. Experiments
+
+In this section we provide implementation details, evaluations on standard metric learning datasets, ablations studies and analysis experiments.
+
+Implementation details. We follow the training protocol of [57] with ResNet50. During training, images are resized to $256 \times 256$ with random crop to $224 \times 224$ and random horizontal flipping. For completeness, we also evaluate on Inception-BN [21] following standard practice in the supplementary. The initial learning rates are set to $10^{-5}$ . We choose triplet parameters according to [57], with $\gamma = 0.2$ . For margin loss, we evaluate margins $\beta = 0.6$ and $\beta = 1.2$ . Our policy $\pi$ is implemented as a two-layer fully-connected network with ReLU-nonlinearity inbetween and 128 neurons per layer. Action values are set to $\alpha = 0.8$ , $\beta = 1.25$ . Episode iterations $M$ are determined via cross-validation within [30,150]. The sampling range $[\lambda_{\mathrm{min}}, \lambda_{\mathrm{min}}]$ of $p(I_n|I_a)$ is set to [0.1, 1.4], with $K = 30$ . The sampling probability of negatives corresponding to distances outside this interval is set to 0. For the input state we use running averages of validation recall, NMI and average intra- and interclass distance based on running average lengths of 2, 8, 16 and 32 to account for short- and longterm changes. We also incorporate the metrics of the previous 20 iterations. Finally, we include the sampling distributions of the previous iteration and the training progress normalized over the total training length. For optimization, we utilize an A2C + PPO setup with ratio limit $\epsilon = 0.2$ . The history policy is updated every 5 policy iterations. For implementation we use the
+
+| Dataset | CUB200-2011[53] | CARS196[27] | SOP[35] |
| Approach | Dim | R@1 | R@2 | R@4 | NMI | R@1 | R@2 | R@4 | NMI | R@1 | R@10 | R@100 | NMI | |
| Margin[57] + U-dist (orig) | 128 | 63.6 | 74.4 | 83.1 | 69.0 | 79.6 | 86.5 | 90.1 | 69.1 | 72.7 | 86.2 | 93.8 | 90.7 | |
| Margin[57] + U-dist (ReImp, β = 1.2) | 128 | 63.5 | 74.9 | 84.4 | 68.1 | 80.1 | 87.4 | 91.9 | 67.6 | 74.6 | 87.5 | 94.2 | 90.7 | |
| Margin[57] + U-dist (ReImp, β = 0.6) | 128 | 63.0 | 74.3 | 83.0 | 66.9 | 79.7 | 87.0 | 91.8 | 67.1 | 73.5 | 87.2 | 93.9 | 89.3 | |
| Margin[57] + PADS (Ours) | 128 | 67.3 | 78.0 | 85.9 | 69.9 | 83.5 | 89.7 | 93.8 | 68.8 | 76.5 | 89.0 | 95.4 | 89.9 | |
| Triplet[46] + semihard (orig) | 64 | 42.6 | 55.0 | 66.4 | 55.4 | 51.5 | 63.8 | 73.5 | 53.4 | 66.7 | 82.4 | 91.9 | 89.5 | |
| Triplet[46] + semihard (ReImp) | 128 | 60.6 | 72.3 | 82.1 | 65.5 | 71.9 | 81.5 | 88.5 | 64.1 | 73.5 | 87.5 | 94.9 | 89.2 | |
| Triplet[46] + U-dist (ReImp) | 128 | 62.2 | 73.2 | 82.8 | 66.3 | 78.0 | 85.6 | 91.4 | 65.7 | 73.9 | 87.7 | 94.5 | 89.3 | |
| Triplet[46] + PADS (Ours) | 128 | 64.0 | 75.5 | 84.3 | 67.8 | 79.9 | 87.5 | 92.3 | 67.1 | 74.8 | 88.2 | 95.0 | 89.5 | |
+
+Table 1: Comparison of our proposed adaptive negative sampling (PADS) against common static negative sampling strategies: semihard negative mining[35] (semihard) and static distance-based sampling ( $\mathcal{U}$ -dist)[57] using triplet[46] and margin loss[57]. ReImp. denotes our re-implementations and Dim the dimensionality of $\phi$ .
+
+PyTorch framework[38] on a single NVIDIA Titan X. Benchmark datasets. We evaluate the performance on three common benchmark datasets. For each dataset the first half of classes is used for training and the other half is used for testing. Further, we use a random subset of $15\%$ of the training images for our validation set $\mathcal{I}_{\mathrm{val}}$ . We use:
+
+CARS196[27], with 16,185 images from 196 car classes. CUB200-2011[53], 11,788 bird images from 200 classes. Stanford Online Products (SOP)[35], containing 120,053 images divided in 22,634 classes.
+
+# 5.1. Results
+
+In Tab. 1 we apply our adaptive sampling strategy on two widely adopted basic ranking losses: triplet[46] and margin loss[57]. For each loss, we compare against the most commonly used static sampling strategies, semi-hard[46]
+
+
+Figure 4: Averaged progression of $p(I_n|I_a)$ over multiple training runs on CUB200-2011, CARS196 and SOP.
+
+(semihard) and distance-based sampling[57] ( $\mathcal{U}$ -dist) on the CUB200-2011, CARS196 and SOP dataset. We measure image retrieval performance using recall accuracy $\mathrm{R}@\mathrm{k}[23]$ following [36]. For completeness we additionally show the normalized mutual information score (NMI)[31], despite not fully correlating with retrieval performance. For both losses and each dataset, our learned negative sampling significantly improves the performance over the non-adaptive sampling strategies. Especially the strong margin loss greatly benefits from the adaptive sampling, resulting in boosts up to $3.8\%$ on CUB200-2011, $3.4\%$ on CARS196 and $1.9\%$ on SOP. This clearly demonstrates the importance of adjusting triplet sampling to the learning process a DML model, especially for smaller datasets.
+
+Next, we compare these results with the current state-of-the-art in DML which extend these basic losses using diverse additional training signals (MIC[42], DVML[29], HORDE[22], A-BIER[36]), ensembles of embedding spaces (DREML[59], D&C[44], Rank[55]) and/or significantly more network parameters (HORDE[22], SOFT-TRIPLE[40]). Tab. 2 shows that our results, despite not using such additional extensions, compete and partly even surpass these strong methods. On CUB200-2011 we outperform all methods, including the powerful ensembles, by at least $1.2\%$ in Recall accuracy. On CARS196[27] we rank second behind the top performing non-ensemble method D&C[44]. On SOP[35] we lose $0.7\%$ to MIC[42] which, in turn, we surpass on both CUB200-2011 and CARS196. This highlights the strong benefit of our adaptive sampling.
+
+# 5.2. Analysis
+
+We now present various analysis experiments providing detailed insights into our learned adaptive sampling strategy. Training progression of $p(I_n|I_a)$ : We now analyze in Fig. 4 how our adaptive sampling distribution progresses during training by averaging the results of multiple training
+
+| Dataset | | CUB200-2011[53] | CARS196[27] | SOP[35] |
| Approach | Dim | R@1 | R@2 | R@4 | NMI | R@1 | R@2 | R@4 | NMI | R@1 | R@2 | R@4 | NMI |
| HTG[60] | 512 | 59.5 | 71.8 | 81.3 | - | 76.5 | 84.7 | 90.4 | - | - | - | - | - |
| HDML[62] | 512 | 53.7 | 65.7 | 76.7 | 62.6 | 79.1 | 87.1 | 92.1 | 69.7 | 68.7 | 83.2 | 92.4 | 89.3 |
| HTL[12] | 512 | 57.1 | 68.8 | 78.7 | - | 81.4 | 88.0 | 92.7 | - | 74.8 | 88.3 | 94.8 | - |
| DVML[29] | 512 | 52.7 | 65.1 | 75.5 | 61.4 | 82.0 | 88.4 | 93.3 | 67.6 | 70.2 | 85.2 | 93.8 | 90.8 |
| A-BIER[36] | 512 | 57.5 | 68.7 | 78.3 | - | 82.0 | 89.0 | 93.2 | - | 74.2 | 86.9 | 94.0 | - |
| MIC[42] | 128 | 66.1 | 76.8 | 85.6 | 69.7 | 82.6 | 89.1 | 93.2 | 68.4 | 77.2 | 89.4 | 95.6 | 90.0 |
| D&C[44] | 128 | 65.9 | 76.6 | 84.4 | 69.6 | 84.6 | 90.7 | 94.1 | 70.3 | 75.9 | 88.4 | 94.9 | 90.2 |
| Margin[57] | 128 | 63.6 | 74.4 | 83.1 | 69.0 | 79.6 | 86.5 | 90.1 | 69.1 | 72.7 | 86.2 | 93.8 | 90.8 |
| Ours (Margin[57] + PADS) | 128 | 67.3 | 78.0 | 85.9 | 69.9 | 83.5 | 89.7 | 93.8 | 68.8 | 76.5 | 89.0 | 95.4 | 89.9 |
| Significant increase in network parameter: |
| HORDE[22]+contrastive loss[17] | 512 | 66.3 | 76.7 | 84.7 | - | 83.9 | 90.3 | 94.1 | - | - | - | - | - |
| SOFT-TRIPLE[40] | 512 | 65.4 | 76.4 | 84.5 | - | 84.5 | 90.7 | 94.5 | 70.1 | 78.3 | 90.3 | 95.9 | 92.0 |
| Ensemble Methods: |
| Rank[55] | 1536 | 61.3 | 72.7 | 82.7 | 66.1 | 82.1 | 89.3 | 93.7 | 71.8 | 79.8 | 91.3 | 96.3 | 90.4 |
| DREML[59] | 9216 | 63.9 | 75.0 | 83.1 | 67.8 | 86.0 | 91.7 | 95.0 | 76.4 | - | - | - | - |
| ABE[24] | 512 | 60.6 | 71.5 | 79.8 | - | 85.2 | 90.5 | 94.0 | - | 76.3 | 88.4 | 94.8 | - |
+
+runs with different network initializations. While on CARS196 the distribution $p(I_n|I_a)$ strongly emphasizes smaller distances $d_{an}$ , we observe on CUB200-2011 and SOP generally a larger variance of $p(I_n|I_a)$ . Further, on each dataset, during the first half of training $p(I_n|I_a)$ quickly peaks on a sparse set of bins $u_k$ , as intuitively expected, since most triplets are still informative. As training continues, $p(I_n|I_a)$ begins to yield both harder and easier negatives, thus effectively sampling from a wider distribution. This observation confirms the result of Wu et al. [57] which proposes to ease the large gradient variance introduced by hard negatives with also adding easier negatives. Moreover, for each dataset we observe a different progression of $p(I_n|I_a)$ which indicates that manually designing similar sampling strategies is difficult, as also confirmed by our results in Tab. 1 and 4.
+
+Transfer of $\pi_{\theta}$ and $p(I_n|I_a)$ : Tab. 3 investigates how well a trained policy $\pi_{\theta}$ or final sampling distribution $p(I_n|I_a)$ from a reference run transfer to differently $(\neq)$ or equally
+
+Table 2: Comparison to the state-of-the-art DML methods on CUB200-2011[53], CARS196[27] and SOP[35]. Dim denotes the dimensionality of $\phi$ .
+
+ | Init. | Reference | fix πθ | fix last p(In|Ia) |
| R@1 | ≠ | 65.4 | 64.3 | 59.0 |
| R@1 | = | 65.4 | 65.8 | 57.6 |
+
+$(=)$ initialized training runs. We find that applying a fixed trained policy $(fix\pi_{\theta})$ to a new training run with the same network initialization $(=)$ improves performance by $0.4\%$ due to the immediate utility of $\pi_{\theta}$ for learning $\phi$ as $\pi_{\theta}$ is already fully adapted to the reference learning process. In contrast, applying the trained policy to a differently initialized training run $(\neq)$ drops performance by $1.5\%$ . Since the fixed $\pi_{\theta}$ cannot adapt to the learning states of the new model, its support for optimizing $\phi$ is diminished. Note that the policy has only been trained on a single training run, thus it cannot fully generalize to different training dynamics. This shows the importance of an adaptive sampling.
+
+Next, we investigate if the distribution $p(I_n|I_a)$ obtained at the end of training can be regarded as an optimal sampling distribution over $d_{an}$ , as $\pi_{\theta}$ is fully trained. To this end we fix and apply the distribution $p(I_n|I_a)$ after its last adjustment by $\pi_{\theta}$ (fix last $p(I_n|I_a)$ ) in training the reference run. As intuitively expected, in both cases performance drops strongly as $(i)$ we now have a static sampling process
+
+Table 3: Transferring a fixed trained policy $\pi_{\theta}$ and fixed final distribution $p(I_n|I_a)$ to training runs with different $(\neq)$ and the same network initialization $(=)$ . Reference denotes the training run from which $\pi_{\theta}$ and $p(I_n|I_a)$ is obtained.
+
+| Dataset | CUB200-2011[53] | CARS196[27] |
| Metrics | R@1 | NMI | R@1 | NMI |
| Ours | 67.3 | 69.9 | 83.5 | 68.8 |
| linear CL | 59.1 | 63.1 | 72.2 | 64.0 |
| non-linear CL | 63.6 | 68.4 | 78.1 | 66.8 |
+
+Table 4: Comparison to curriculum learning strategies with predefined linear and non-linear progression of $p(I_n|I_a)$ .
+
+| [λmin, λmax] | [0,2] | [0.1,1.4] | [0.25,1.0] | [0.5,1.4] |
| Recall@1 | 64.7 | 65.7 | 64.8 | 63.7 |
| NMI | 67.5 | 69.2 | 68.2 | 67.5 |
+
+(a) Varying the interval $U = \left[\lambda_{\min}, \lambda_{\max}\right]$ of distances $d_{an}$ used for learning $p(I_n|I_a)$ . The number of bins $u_k$ is kept fixed to $K = 30$ .
+
+| Num. bins K | 10 | 30 | 50 | 100 |
| Recall@1 | 63.8 | 65.7 | 65.3 | 64.9 |
| NMI | 67.8 | 69.2 | 68.7 | 68.6 |
+
+(b) Varying the number of bins $u_{k}$ used to discretize the range of distances $U = [0.1, 1.4]$ used for learning $p(I_{n}|I_{a})$ .
+
+| Init. Distr. | U[0.1,1.4] | N(0.5,0.05) | U[0.3,0.7] |
| Recall@1 | 63.9 | 65.0 | 65.7 |
| NMI | 67.0 | 68.6 | 69.2 |
+
+(c) Comparison of $p(I_n|I_a)$ -initializations on distance interval $U = [0.1, 1.4]$ . $\mathcal{U}_{[a,b]}$ denotes uniform emphasis in $[a,b]$ with low probabilities outside the interval. $\mathcal{N}(\mu, \sigma)$ denotes a normal distribution.
+Table 5: Ablation experiments analyzing various parameters for learning $p(I_n|I_a)$ .
+
+and (ii) the sampling distribution is optimized to a specific training state. Given our strong results, this proves that our sampling process indeed adapts to the learning of $\phi$ .
+
+Curriculum Learning: To compare our adaptive sampling with basic curriculum learning strategies, we pre-define two sampling schedules: (1) A linear increase of negative hardness, starting from a semi-hard distance intervall[46] and (2) a non-linear schedule using distance-based sampling[57], where the distribution is gradually shifted towards harder negatives. We visualize the corresponding progression of the sampling distribution in the supplementary material. Tab. 4 illustrates that both fixed, pre-defined curriculum schedules perform worse than our learned, adaptive sampling distribution by at least $3.6\%$ on CUB200-2011. On CARS196 the performance gap is even larger. The strong difference in datasets further demonstrates the difficulty of finding broadly applicable, effective fixed sampling strategies.
+
+# 5.3. Ablation studies
+
+Subsequently we ablate different parameters for learning our sampling distribution $p(I_n|I_a)$ on the CUB200-2011 dataset. More ablations are shown in the appendix. To make the following experiments comparable, no learning rate scheduling was applied, as convergence may significantly change with different parameter settings. In contrast, the results in Tab 1-2 are obtained with our best parameter
+
+settings and a fixed learning rate scheduling. Without scheduling, our best parameter setting achieves a recall value of 65.7 and NMI of 69.2 on CUB200-2011.
+
+Distance interval $U$ : As presented in Sec. 4.1, $\tilde{p}(I_n|I_a)$ is defined on a fixed interval $U = [\lambda_{\min}, \lambda_{\max}]$ of distances. Similar to other works[57, 18], this allows us to additionally regularize the sampling process by clipping the tails of the true range of distances [0, 2] on $\Phi$ . Tab. 5 (a) compares different combinations of $\lambda_{\min}, \lambda_{\max}$ . We observe that, while each option leads to significant performance boost compared to the static sampling strategies, an interval $U = [0.1, 1.4]$ results in the most effective sampling process.
+
+Number of bins $K$ : Next, we analyze the impact of the $U$ resolution in Tab. 5 (b), i.e. the number of bins $K$ . This affects the flexibility of $p(I_n|I_a)$ , but also the complexity of the actions $a$ to be predicted. As intuitively expected, increasing $K$ allows for better adaption and performance until the complexity grows too large.
+
+Initialization of $p(I_n|I_a)$ : Finally, we analyze how the initialization of $p(I_n|I_a)$ impacts learning. Tab. 5 (c) compares the performance using different initial distributions, such as a neutral uniform initialization (i.e. random sampling) $\mathcal{U}_{[0.1,1.4]}$ , emphasizing semi-hard negatives $I_n$ early on $\mathcal{U}_{[0.3,0.7]}$ or a proxy to [57] $(\mathcal{N}(0.5,0.05))$ . We observe that our learned sampling process benefits from a meaningful, but generic initial configuration of $p(I_n|I_a)$ , $\mathcal{U}_{[0.3,0.7]}$ , to effectively adapt the learning process of $\phi$ .
+
+# 6. Conclusion
+
+This paper presents a learned adaptive triplet sampling strategy using Reinforcement Learning. We optimize a teacher network to adjust the negative sampling distribution to the ongoing training state of a DML model. By training the teacher to directly improve the evaluation metric on a held-back validation set, the resulting training signal optimally facilitates DML learning. Our experiments show that our adaptive sampling strategy improves significantly over static sampling distributions. Thus, even though only built on top of basic triplet losses, we achieve competitive or even superior performance compared to the state-of-the-art of DML on multiple standard benchmarks sets.
+
+# Acknowledgements
+
+We thank David Yu-Tung Hui (MILA) for valuable insights regarding the choice of RL Methods. This work has been supported in part by Bayer AG, the German federal ministry BMWi within the project "KI Absicherung", and a hardware donation from NVIDIA corporation.
+
+# References
+
+[1] The sphere game in $n$ dimensions. http://faculty.madisoncollege.edu/alehnen/sphere/hypers.htm., 2017.3
+[2] Marcin Andrychowicz, Misha Denil, Sergio Gómez, Matthew W Hoffman, David Pfau, Tom Schaul, Brendan Shillingford, and Nando de Freitas. Learning to learn by gradient descent by gradient descent. In Advances in Neural Information Processing Systems. 2016. 3
+[3] Miguel A Bautista, Artsiom Sanakoyeu, Ekaterina Tikhoncheva, and Bjorn Ommer. Cliqueconn: Deep unsupervised exemplar learning. In Advances in Neural Information Processing Systems, pages 3846-3854, 2016. 1
+[4] Yoshua Bengio, Jérôme Louradour, Ronan Collobert, and Jason Weston. Curriculum learning. In International Conference on Machine Learning, 2009. 2, 3
+[5] Piotr Bojanowski and Armand Joulin. Unsupervised learning by predicting noise. In Proceedings of the 34th International Conference on Machine Learning, 2017. 2
+[6] U. Buchler, B. Brattoli, and Björn Ommer. Improving spatiotemporal self-supervision by deep reinforcement learning. In Proceedings of the European Conference on Computer Vision (ECCV), 2018. 3
+[7] 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, 2017. 2
+[8] Huseyin Coskun, David Joseph Tan, Sailesh Conjeti, Nassir Navab, and Federico Tombari. Human motion analysis with deep metric learning. In Proceedings of the European Conference on Computer Vision (ECCV), 2018. 1, 2
+[9] Yueqi Duan, Wenzhao Zheng, Xudong Lin, Jiwen Lu, and Jie Zhou. Deep adversarial metric learning. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018. 2
+[10] Yang Fan, Fei Tian, Tao Qin, Jiang Bian, and Tie-Yan Liu. Learning what data to learn, 2017. 3, 5
+[11] Zeyu Feng, Chang Xu, and Dacheng Tao. Self-supervised representation learning by rotation feature decoupling. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 2
+[12] Weifeng Ge. Deep metric learning with hierarchical triplet loss. In Proceedings of the European Conference on Computer Vision (ECCV), pages 269-285, 2018. 2, 7
+[13] Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. JMLR Proceedings, 2010. 3
+[14] Siddharth Gopal. Adaptive sampling for sgd by exploiting side information. In International Conference on Machine Learning, 2016. 2
+[15] Alex Graves, Marc G. Bellemare, Jacob Menick, Rémi Munos, and Koray Kavukcuoglu. Automated curriculum learning for neural networks. In International Conference on Machine Learning, 2017. 2
+[16] Guy Hacohen and Daphna Weinshall. On the power of curriculum learning in training deep networks. 2019. 2, 3
+
+[17] Raia Hadsell, Sumit Chopra, and Yann LeCun. Dimensionality reduction by learning an invariant mapping. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2006. 1, 2, 3, 7
+[18] Ben Harwood, BG Kumar, Gustavo Carneiro, Ian Reid, Tom Drummond, et al. Smart mining for deep metric learning. In Proceedings of the IEEE International Conference on Computer Vision, pages 2821-2829, 2017. 2, 3, 8
+[19] J. Hu, J. Lu, and Y. Tan. Discriminative deep metric learning for face verification in the wild. In 2014 IEEE Conference on Computer Vision and Pattern Recognition, 2014. 2
+[20] Chen Huang, Shuangfei Zhai, Walter Talbott, Miguel Angel Bautista, Shih-Yu Sun, Carlos Guestrin, and Josh Susskind. Addressing the loss-metric mismatch with adaptive loss alignment. In ICML, 2019. 3, 5
+[21] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. International Conference on Machine Learning, 2015. 5
+[22] Pierre Jacob, David Picard, Aymeric Histace, and Edouard Klein. Metric learning with horde: High-order regularizer for deep embeddings. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 2, 6, 7
+[23] Herve Jegou, Matthijs Douze, and Cordelia Schmid. Product quantization for nearest neighbor search. IEEE transactions on pattern analysis and machine intelligence, 33(1):117-128, 2011. 4, 5, 6
+[24] Wonsik Kim, Bhavya Goyal, Kunal Chawla, Jungmin Lee, and Keunjoo Kwon. Attention-based ensemble for deep metric learning. In Proceedings of the European Conference on Computer Vision (ECCV), 2018. 7
+[25] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. In Proceedings of the International Conference on Learning Representations (ICLR), 2013. 2
+[26] Dmytro Kotovenko, Artsiom Sanakoyeu, Sabine Lang, and Björn Ommer. Content and style disentanglement for artistic style transfer. In Proceedings of the Intl. Conf. on Computer Vision (ICCV), 2019. 1
+[27] Jonathan Krause, Michael Stark, Jia Deng, and Li Fei-Fei. 3d object representations for fine-grained categorization. In Proceedings of the IEEE International Conference on Computer Vision Workshops, pages 554–561, 2013. 6, 7
+[28] John Langford and Tong Zhang. The epoch-greedy algorithm for multi-armed bandits with side information. In J. C. Platt, D. Koller, Y. Singer, and S. T. Roweis, editors, Advances in Neural Information Processing Systems 20, pages 817–824. Curran Associates, Inc., 2008. 5
+[29] Xudong Lin, Yueqi Duan, Qiyuan Dong, Jiwen Lu, and Jie Zhou. Deep variational metric learning. In The European Conference on Computer Vision (ECCV), September 2018. 2, 6, 7
+[30] Weiyang Liu, Yandong Wen, Zhiding Yu, Ming Li, Bhiksha Raj, and Le Song. Spherface: Deep hypersphere embedding for face recognition. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 2
+[31] Christopher Manning, Prabhakar Raghavan, and Hinrich Schütze. Introduction to information retrieval. Natural Language Engineering, 16(1):100-103, 2010. 4, 5, 6
+
+[32] Timo Milbich, Miguel Bautista, Ekaterina Sutter, and Björn Ommer. Unsupervised video understanding by reconciliation of posture similarities. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2017. 1, 2
+[33] Timo Milbich, Omair Ghori, Ferran Diego, and Björn Ommer. Unsupervised representation learning by discovering reliable image relations. Pattern Recognition (PR), 102, June 2020. 1
+[34] Yair Movshovitz-Attias, Alexander Toshev, Thomas K Leung, Sergey Ioffe, and Saurabh Singh. No fuss distance metric learning using proxies. In Proceedings of the IEEE International Conference on Computer Vision, pages 360–368, 2017. 2
+[35] Hyun Oh Song, Yu Xiang, Stefanie Jegelka, and Silvio Savarese. Deep metric learning via lifted structured feature embedding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4004-4012, 2016. 1, 2, 3, 6, 7
+[36] Michael Opitz, Georg Waltner, Horst Possegger, and Horst Bischof. Deep metric learning with bier: Boosting independent embeddings robustly. IEEE transactions on pattern analysis and machine intelligence, 2018. 1, 2, 6, 7
+[37] Omkar M. Parkhi, Andrea Vedaldi, and Andrew Zisserman. Deep face recognition. In *British Machine Vision Conference*, 2015. 3
+[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-W, 2017. 6
+[39] Hieu Pham, Melody Y. Guan, Barret Zoph, Quoc V. Le, and Jeff Dean. Efficient neural architecture search via parameter sharing. International Conference on Machine Learning, 2018. 3
+[40] Qi Qian, Lei Shang, Baigui Sun, Juhua Hu, Hao Li, and Rong Jin. Softtriple loss: Deep metric learning without triplet sampling. 2019. 2, 6, 7
+[41] Prajit Ramachandran, Barret Zoph, and Quoc V. Le. Searching for activation functions. CoRR, abs/1710.05941, 2017. 3
+[42] Karsten Roth, Biagio Brattoli, and Bjorn Ommer. Mic: Mining interclass characteristics for improved metric learning. In Proceedings of the IEEE International Conference on Computer Vision, pages 8000-8009, 2019. 1, 2, 5, 6, 7
+[43] Karsten Roth, Timo Milbich, Samarth Sinha, Prateek Gupta, Björn Ommer, and Joseph Paul Cohen. Revisiting training strategies and generalization performance in deep metric learning, 2020. 2
+[44] Artsiom Sanakoyeu, Vadim Tschernezki, Uta Buchler, and Bjorn Ommer. Divide and conquer the embedding space for metric learning. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 1, 2, 6, 7
+[45] Shreyas Saxena, Oncel Tuzel, and Dennis DeCoste. Data parameters: A new family of parameters for learning a differentiable curriculum. In Advances in Neural Information Processing Systems. 2019. 2
+[46] 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, 2, 3, 5, 6, 8
+[47] John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In International Conference on Machine Learning, 2015. 5
+[48] John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. CoRR, 2017. 5
+[49] Tianlin Shi, Jacob Steinhardt, and Percy Liang. Learning where to sample in structured prediction. In Artificial Intelligence and Statistics, 2015. 3
+[50] Kihyuk Sohn. Improved deep metric learning with multiclass n-pair loss objective. In Advances in Neural Information Processing Systems, pages 1857-1865, 2016. 1, 2, 3
+[51] Omer Sümer, Tobias Dencker, and Björn Ommer. Self-supervised learning of pose embeddings from spatiotemporal relations in videos. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2017. 1
+[52] Richard S. Sutton and Andrew G. Barto. Reinforcement Learning: An Introduction. The MIT Press, 1998. 5
+[53] Catherine Wah, Steve Branson, Peter Welinder, Pietro Perona, and Serge Belongie. The caltech-ucsd birds-200-2011 dataset. 2011. 6, 7
+[54] Jian Wang, Feng Zhou, Shilei Wen, Xiao Liu, and Yuanqing Lin. Deep metric learning with angular loss. In Proceedings of the IEEE International Conference on Computer Vision, pages 2593-2601, 2017. 1, 2
+[55] Xinshao Wang, Yang Hua, Elyor Kodirov, Guosheng Hu, Romain Garnier, and Neil M. Robertson. Ranked list loss for deep metric learning. The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 2, 6, 7
+[56] Ronald J. Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning, 1992. 5
+[57] Chao-Yuan Wu, R Manmatha, Alexander J Smola, and Philipp Krahenbuhl. Sampling matters in deep embedding learning. In Proceedings of the IEEE International Conference on Computer Vision, pages 2840-2848, 2017. 1, 2, 3, 5, 6, 7, 8
+[58] Sirui Xie, Hehui Zheng, Chunxiao Liu, and Liang Lin. SNAS: stochastic neural architecture search. 2019. 3
+[59] Hong Xuan, Richard Souvenir, and Robert Pless. Deep randomized ensembles for metric learning. In Proceedings of the European Conference on Computer Vision (ECCV), pages 723-734, 2018. 1, 2, 6, 7
+[60] Yiru Zhao, Zhongming Jin, Guo-jun Qi, Hongtao Lu, and Xian-sheng Hua. An adversarial approach to hard triplet generation. In Proceedings of the European Conference on Computer Vision (ECCV), pages 501-517, 2018. 2, 7
+[61] Xuefei Zhe, Shifeng Chen, and Hong Yan. Directional statistics-based deep metric learning for image classification and retrieval. Pattern Recognition, 93, 2018. 2
+[62] Wenzhao Zheng, Zhaodong Chen, Jiwen Lu, and Jie Zhou. Hardness-aware deep metric learning. The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 2, 7
\ No newline at end of file
diff --git a/padspolicyadaptedsamplingforvisualsimilaritylearning/images.zip b/padspolicyadaptedsamplingforvisualsimilaritylearning/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..bb0f2b274d083888bda30c37392e9d58e80248f8
--- /dev/null
+++ b/padspolicyadaptedsamplingforvisualsimilaritylearning/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5ba1526c517aeedfc40910a0f0b8407de29f120dd0489679e4ed69dd82c8183a
+size 463063
diff --git a/padspolicyadaptedsamplingforvisualsimilaritylearning/layout.json b/padspolicyadaptedsamplingforvisualsimilaritylearning/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..94f8a19b2279105aeafddfd7f777aafa765acbca
--- /dev/null
+++ b/padspolicyadaptedsamplingforvisualsimilaritylearning/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2d5e2bf68c3a90d2df6028a156ed98fef913c3ccafe6e64930be3c6ac2a68db9
+size 554018
diff --git a/paintingmanypastssynthesizingtimelapsevideosofpaintings/59c1d794-22e7-4ea9-9a0d-babfedb16b82_content_list.json b/paintingmanypastssynthesizingtimelapsevideosofpaintings/59c1d794-22e7-4ea9-9a0d-babfedb16b82_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..a43cbb8fcf4fe798f37e7f6eee1c02f10c106b7f
--- /dev/null
+++ b/paintingmanypastssynthesizingtimelapsevideosofpaintings/59c1d794-22e7-4ea9-9a0d-babfedb16b82_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d4cce9fea41d8244419a9f0d313f0c199af75c691a4c3a200bdfcc4221660714
+size 87517
diff --git a/paintingmanypastssynthesizingtimelapsevideosofpaintings/59c1d794-22e7-4ea9-9a0d-babfedb16b82_model.json b/paintingmanypastssynthesizingtimelapsevideosofpaintings/59c1d794-22e7-4ea9-9a0d-babfedb16b82_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..5ff072d7216d21ab3794ae59aa2b5a6006b7aeab
--- /dev/null
+++ b/paintingmanypastssynthesizingtimelapsevideosofpaintings/59c1d794-22e7-4ea9-9a0d-babfedb16b82_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d30c573f94654962f4ba6ba801adac931ae5d0ee5234ffa47c3003199773414d
+size 111552
diff --git a/paintingmanypastssynthesizingtimelapsevideosofpaintings/59c1d794-22e7-4ea9-9a0d-babfedb16b82_origin.pdf b/paintingmanypastssynthesizingtimelapsevideosofpaintings/59c1d794-22e7-4ea9-9a0d-babfedb16b82_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..7115f1c4e4020410f34e5dcd9761d89fd2733238
--- /dev/null
+++ b/paintingmanypastssynthesizingtimelapsevideosofpaintings/59c1d794-22e7-4ea9-9a0d-babfedb16b82_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4ecd144462b3660f541baf113add01212eb410b6ffcace59fc887488e6bd39af
+size 869507
diff --git a/paintingmanypastssynthesizingtimelapsevideosofpaintings/full.md b/paintingmanypastssynthesizingtimelapsevideosofpaintings/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..ff06bff1a5a641b227a9d18e57131625e6eaeb08
--- /dev/null
+++ b/paintingmanypastssynthesizingtimelapsevideosofpaintings/full.md
@@ -0,0 +1,431 @@
+# Painting Many Pasts: Synthesizing Time Lapse Videos of Paintings
+
+Amy Zhao
+
+MIT
+
+xamyzhao@mit.edu
+
+FredoDurand
+
+MIT
+
+fredo@mit.edu
+
+Guha Balakrishnan
+
+MIT
+
+balakg@mit.edu
+
+John V. Guttag
+
+MIT
+
+guttag@mit.edu
+
+Kathleen M. Lewis
+
+MIT
+
+kmlewis@mit.edu
+
+Adrian V. Dalca
+
+MIT, MGH
+
+adalca@mit.edu
+
+# Abstract
+
+We introduce a new video synthesis task: synthesizing time lapse videos depicting how a given painting might have been created. Artists paint using unique combinations of brushes, strokes, and colors. There are often many possible ways to create a given painting. Our goal is to learn to capture this rich range of possibilities.
+
+Creating distributions of long-term videos is a challenge for learning-based video synthesis methods. We present a probabilistic model that, given a single image of a completed painting, recurrently synthesizes steps of the painting process. We implement this model as a convolutional neural network, and introduce a novel training scheme to enable learning from a limited dataset of painting time lapses. We demonstrate that this model can be used to sample many time steps, enabling long-term stochastic video synthesis. We evaluate our method on digital and watercolor paintings collected from video websites, and show that human raters find our synthetic videos to be similar to time lapse videos produced by real artists. Our code is available at https://xamyzhao.github.io/timecraft.
+
+# 1. Introduction
+
+Skilled artists can often look at a piece of artwork and determine how to recreate it. In this work, we explore whether we can use machine learning and computer vision to mimic this ability. We define a new video synthesis problem: given a painting, can we synthesize a time lapse video depicting how an artist might have painted it?
+
+Artistic time lapses present many challenges for video synthesis methods. There is a great deal of variation in how people create art. Suppose two artists are asked to paint the same landscape. One artist might start with the sky, while the other might start with the mountains in the distance. One might finish each object before moving onto the next, while
+
+Input
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 1: We present a probabilistic model for synthesizing time lapse videos of paintings. We demonstrate our model on Still Life with a Watermelon and Pomegranates by Paul Cezanne (top), and Wheat Field with Cypresses by Vincent van Gogh (bottom).
+
+
+
+
+
+
+
+
+
+
+
+
+
+the other might work a little at a time on each object. During the painting process, there are often few visual cues indicating where the artist will apply the next stroke. The painting process is also long, often spanning hundreds of paint strokes and dozens of minutes.
+
+In this work, we present a solution to the painting time lapse synthesis problem. We begin by defining the problem and describing its unique challenges. We then derive a principled, learning-based model to capture a distribution of steps that a human might use to create a given painting. We introduce a training scheme that encourages the method to produce realistic changes over many time steps. We demonstrate that our model can learn to solve this task, even when trained using a small, noisy dataset of painting time lapses collected from the web. We show that human evaluators almost always prefer our method to an existing video synthesis baseline, and often find our results indistinguishable from time lapses produced by real artists.
+
+This work presents several technical contributions:
+
+1. We use a probabilistic model to capture stochastic decisions made by artists, thereby capturing a distribution of plausible ways to create a painting.
+2. Unlike work in future frame prediction or frame interpolation, we synthesize long-term videos spanning dozens
+
+of time steps and many real-time minutes.
+
+3. We demonstrate a model that successfully learns from painting time lapses "from the wild." This data is small and noisy, having been collected from uncontrolled environments with variable lighting, spatial resolution and video capture rates.
+
+# 2. Related work
+
+To the best of our knowledge, this is the first work that models and synthesizes distributions of videos of the past, given a single final frame. The most similar work to ours is a recent method called visual deprojection [5]. Given a single input image depicting a temporal aggregation of frames, their model captures a distribution of videos that could have produced that image. We compare our method to theirs in our experiments. Here, we review additional related research in three main areas: video prediction, video interpolation, and art synthesis.
+
+# 2.1. Video prediction
+
+Video prediction, or future frame prediction, is the problem of predicting the next frame or few frames of a video given a sequence of past frames. Early work in this area focused on predicting motion trajectories [8, 16, 34, 51, 55] or synthesizing motions in small frames [40, 41, 50]. Recent methods train convolutional neural networks on large video datasets to synthesize videos of natural scenes and human actions [35, 38, 46, 52, 53]. A recent work on time lapse synthesis focuses on outdoor scenes [43], simulating illumination changes over time while keeping the content of the scene constant. In contrast, creating painting time lapses requires adding content while keeping illumination constant. Another recent time lapse method outputs only a few frames depicting specific physical processes: melting, rotting, or flowers blooming [70].
+
+Our problem differs from video prediction in several key ways. First, most video prediction methods focus on short time scales, synthesizing frames on the order of seconds into the future, and encompassing relatively small changes. In contrast, painting time lapses span minutes or even hours, and depict dramatic content changes over time. Second, most video predictors output a single most likely sequence, making them ill-suited for capturing a variety of different plausible painting trajectories. One study [63] uses a conditional variational autoencoder to model a distribution of plausible future frames of moving humans. We build upon these ideas to model painting changes across multiple time steps. Finally, video prediction methods focus on natural videos, which depict of motions of people and objects [52, 53, 63] or physical processes [70]. The input frames often contain visual cues about how the motion, action or physical process will progress, limiting the space of
+
+possibilities that must be captured. In contrast, snapshots of paintings provide few visual cues, leading to many plausible future trajectories.
+
+# 2.2. Video frame interpolation
+
+Our problem can be thought of as a long-term frame interpolation task between a blank canvas and a completed work of art, with many possible painting trajectories between them. In video frame interpolation, the goal is to temporally interpolate between two frames in time. Classical approaches focus on natural videos, and estimate dense flow fields [4, 58, 65] or phase [39] to guide interpolation. More recent methods use convolutional neural networks to directly synthesize the interpolated frame [45], or combine flow fields with estimates of scene information [28, 44]. Most frame interpolation methods predict a single or a few intermediate frames, and are not easily extended to predicting long sequences, or predicting distributions of sequences.
+
+# 2.3. Art synthesis
+
+The graphics community has long been interested in simulating physically realistic paint strokes in digital media. Many existing methods focus on physics-based models of fluids or brush bristles [6, 7, 9, 12, 57, 62]. More recent learning-based methods leverage datasets of real paint strokes [31, 36, 68], often posing the artistic stroke synthesis problem as a texture transfer or style transfer problem [3, 37]. Several works focus on simulating watercolorspecific effects such as edge darkening [42, 56]. We focus on capturing large-scale, long-term painting processes, rather than fine-scale details of individual paint strokes.
+
+In style transfer, images are transformed to simulate a specific style, such as a painting-like style [20, 21] or a cartoon-like style [67]. More recently, neural networks have been used for generalized artistic style transfer [18, 71]. We leverage insights from these methods to synthesize a realistic progressions of paintings.
+
+Several recent papers apply reinforcement learning or similar techniques to the process of painting. These approaches involve designing parameterized brush strokes, and then training an agent to apply strokes to produce a given painting [17, 22, 26, 27, 59, 60, 69]. Some works focus on specific artistic tasks such as hatching or other repetitive strokes [29, 61]. These approaches require careful hand-engineering, and are not optimized to produce varied or realistic painting progressions. In contrast, we learn a broad set of effects from real painting time lapse data.
+
+# 3. Problem overview
+
+Given a completed painting, our goal is to synthesize different ways that an artist might have created it. We work with recordings of digital and watercolor painting time lapses collected from video websites. Compared to
+
+
+Figure 2: Several real painting progressions of similar-looking scenes. Each artist fills in the house, sky and field in a different order.
+
+natural videos of scenes and human actions, videos of paintings present unique challenges.
+
+# High Variability
+
+Painting trajectories: Even for the same scene, different artists will likely paint objects in different temporal orders (Figure 2).
+
+Painting rates: Artists work at different speeds, and apply paint in different amounts.
+
+Scales and shapes: Over the course of a painting, artists use strokes that vary in size and shape. Artists often use broad strokes early on, and add fine details later.
+
+Data availability: Due to the limited number of available videos in the wild, it is challenging to gather a dataset that captures the aforementioned types of variability.
+
+# Medium-specific challenges
+
+Non-paint effects: In digital art applications (e.g., [23]), there are many tools that apply local blurring, smudging, or specialized paint brush shapes. Artists can also apply global effects simulating varied lighting or tones.
+
+Erasing effects: In digital art applications, artists can erase or undo past actions, as shown in Figure 3.
+
+Physical effects in watercolor paintings: Watercolor painting videos exhibit distinctive effects resulting from the physical interaction of paint, water, and paper. These effects include specular lighting on wet paint, pigments fading as they dry, and water spreading from the point of contact with the brush (Figure 4).
+
+In this work, we design a learning-based model to handle the challenges of high variability and painting medium-specific effects.
+
+
+Figure 3: Example digital painting sequences. These sequences show a variety of ways to add paint, including fine strokes and filling (row 1), and broad strokes (row 3). We use red boxes to outline challenges, including erasing (row 2) and drastic changes in color and composition (row 3).
+
+
+Figure 4: Example watercolor painting sequences. The outlined areas highlight some watercolor-specific challenges, including changes in lighting (row 1), diffusion and fading effects as paint dries (row 2), and specular effects on wet paint (row 3).
+
+# 4. Method
+
+We begin by formalizing the time lapse video synthesis problem. Given a painting $x_{T}$ , our task is to synthesize the past frames $x_{1},\dots ,x_{T - 1}$ . Suppose we have a training set of real time lapse videos $\{\mathbf{x}^{(i)} = x_1^{(i)},\dots ,x_{T^{(i)}}^{(i)}\}$ . We first define a principled probabilistic model, and then learn its parameters using these videos. At test time, given a completed painting, we sample from the model to create new videos of realistic-looking painting processes.
+
+# 4.1. Model
+
+We propose a probabilistic, temporally recurrent model for changes made during the painting process. At each time instance $t$ , the model predicts a pixel-wise intensity change $\delta_t$ that should be added to the previous frame to produce the current frame; that is, $x_{t} = x_{t - 1} + \delta_{t}$ . This change could represent one or multiple physical or digital paint strokes, or other effects such as erasing or fading.
+
+We model $\delta_t$ as being generated from a random latent variable $z_t$ , the completed piece $x_T$ , and the image content at the previous time step $x_{t-1}$ ; the likelihood is
+
+
+Figure 5: The proposed probabilistic model. Circles represent random variables; the shaded circle denotes a variable that is observed at inference time. The rounded rectangle represents model parameters.
+
+$p_{\theta}(\delta_t|z_t,x_{t - 1};x_T)$ (Figure 5). Using a random variable $z_{t}$ helps to capture the stochastic nature of painting. Using both $x_{T}$ and $x_{t - 1}$ enables the model to capture time-varying effects such as the progression of coarse to fine brush sizes, while the Markovian assumption facilitates learning from a small number of video examples.
+
+It is common to define such image likelihoods as a per-pixel normal distribution, which results in an L2 image similarity loss term in maximum likelihood formulations [33]. In synthesis tasks, using L2 loss often produces blurry results [24]. We instead design our image similarity loss as the L1 distance in pixel space and the L2 distance in a perceptual feature space. Perceptual losses are commonly used in image synthesis and style transfer tasks to produce sharper and more visually pleasing results [14, 24, 30, 45, 66]. We use the L2 distance between normalized VGG features [49] as described in [66]. We let the likelihood take the form:
+
+$$
+\begin{array}{l} p _ {\theta} \left(\delta_ {t} \mid z _ {t}, x _ {t - 1}; x _ {T}\right) \\ \propto e ^ {- \frac {1}{\sigma_ {1} ^ {2}} | \delta_ {t} - \hat {\delta} _ {t} |} \mathcal {N} \left(V \left(x _ {t - 1} + \delta_ {t}\right); V \left(x _ {t - 1} + \hat {\delta} _ {t}\right), \sigma_ {2} ^ {2} \mathbb {I}\right), \tag {1} \\ \end{array}
+$$
+
+where $\hat{\delta}_t = g_\theta (z_t,x_{t - 1},x_T)$ $g_{\theta}(\cdot)$ represents a function parameterized by $\theta ,V(\cdot)$ is a function that extracts normalized VGG features, and $\sigma_1,\sigma_2$ are fixed noise parameters.
+
+We assume the latent variable $z_{t}$ is generated from the multivariate standard normal distribution:
+
+$$
+p \left(z _ {t}\right) = \mathcal {N} \left(z _ {t}; 0, \mathbb {I}\right). \tag {2}
+$$
+
+We aim to find model parameters $\theta$ that best explain all videos in our dataset:
+
+$$
+\begin{array}{l} \underset {\theta} {\arg \max } \Pi_ {i} \Pi_ {t} p _ {\theta} \left(\delta_ {t} ^ {(i)}, x _ {t - 1} ^ {(i)}, x _ {T ^ {(i)}} ^ {(i)}\right) \\ = \arg \max _ {\theta} \Pi_ {i} \Pi_ {t} \int_ {z _ {t}} p _ {\theta} \left(\delta_ {t} ^ {(i)} \mid z _ {t} ^ {(i)}, x _ {t - 1} ^ {(i)}; x _ {T ^ {(i)}} ^ {(i)}\right) d z _ {t}. \tag {3} \\ \end{array}
+$$
+
+This integral is intractable, and the posterior $p(z_{t}|\delta_{t},x_{t - 1};x_{T})$ is also intractable, preventing the use of the EM algorithm. We instead use variational inference and introduce an approximate posterior distribution
+
+
+Figure 6: Neural network architecture. We implement our model using a conditional variational autoencoder framework. At training time, the network is encouraged to reconstruct the current frame $x_{t}$ , while sampling the latent $z_{t}$ from a distribution that is close to the standard normal. At test time, the auto-encoding branch is removed, and $z_{t}$ is sampled from the standard normal. We use the shorthand $\hat{\delta}_{t} = g_{\theta}(z_{t},x_{t - 1},x_{T}),\hat{x}_{t} = x_{t - 1} + \hat{\delta}_{t}$ .
+
+$p(z_{t}|\delta_{t},x_{t - 1};x_{T})\approx q_{\phi}(z_{t}|\delta_{t},x_{t - 1};x_{T})$ [32, 63, 64]. We let this approximate distribution take the form of a multivariate normal:
+
+$$
+\begin{array}{l} q _ {\phi} \left(z _ {t} \mid \delta_ {t}, x _ {t - 1}, x _ {T}\right) \\ = \mathcal {N} \left(z _ {t}; \mu_ {\phi} \left(\delta_ {t}, x _ {t - 1}, x _ {T}\right), \Sigma_ {\phi} \left(\delta_ {t}, x _ {t - 1}, x _ {T}\right)\right), \tag {4} \\ \end{array}
+$$
+
+where $\mu_{\phi}(\cdot), \Sigma_{\phi}(\cdot)$ are functions parameterized by $\phi$ , and $\Sigma_{\phi}(\cdot)$ is diagonal.
+
+# 4.1.1 Neural network framework
+
+We implement the functions $g_{\theta}$ , $\mu_{\phi}$ and $\Sigma_{\phi}$ as a convolutional encoder-decoders parameterized by $\theta$ and $\phi$ , using a conditional variational autoencoder (CVAE) framework [54, 64]. We use an architecture (summarized in Figure 6) similar to [64]. We include full details in the appendix.
+
+# 4.2. Learning
+
+We learn model parameters using short sequences from the training video dataset, which we discuss in further detail in Section 5.1. We use two stages of optimization to facilitate convergence: pairwise optimization, and sequence optimization.
+
+# 4.2.1 Pairwise optimization
+
+From Equations (3) and (4), we obtain an expression for each pair of consecutive frames (a derivation is provided in the appendix):
+
+
+Figure 7: Sequential CVAE training. Our model is trained to reconstruct a real frame (outlined in green) while building upon its previous predictions for $S$ time steps.
+
+$$
+\begin{array}{l} \log p _ {\theta} (\delta_ {t}, x _ {t - 1}, x _ {T}) \\ \geq \mathbb {E} _ {z _ {t} \sim q _ {\phi} (z _ {t} | x _ {t - 1}, \delta_ {t}; x _ {T})} \left[ \log p _ {\theta} (\delta_ {t} | z _ {t}, x _ {t - 1}; x _ {T}) \right] \\ - K L \left[ q _ {\phi} \left(z _ {t} \mid \delta_ {t}, x _ {t - 1}; x _ {T}\right) \right\lvert \left| p \left(z _ {t}\right) \right], \tag {5} \\ \end{array}
+$$
+
+where $KL[\cdot |\cdot ]$ denotes the Kullback-Liebler divergence. Combining Equations (1), (2), (4), and (5), we minimize:
+
+$$
+\begin{array}{l} \mathcal {L} _ {K L} + \frac {1}{\sigma_ {1} ^ {2}} \mathcal {L} _ {L 1} (\delta_ {t}, \hat {\delta} _ {t}) \\ + \frac {1}{2 \sigma_ {2} ^ {2}} \mathcal {L} _ {L 2} \left(V G G \left(x _ {t - 1} + \delta_ {t}\right), V G G \left(x _ {t - 1} + \hat {\delta} _ {t}\right)\right), \tag {6} \\ \end{array}
+$$
+
+where $\mathcal{L}_{KL} = \frac{1}{2}\big(-\log \Sigma_{\phi} + \Sigma_{\phi} + \mu_{\phi}^{2}\big)$ , and the image similarity terms $\mathcal{L}_{L1},\mathcal{L}_{L2}$ represent L1 and L2 distance respectively.
+
+We optimize Equation (6) on single time steps, which we obtain by sampling all pairs of consecutive frames from the dataset. We also train the model to produce the first frame $x_{1}$ from videos that begin with a blank canvas, given a white input frame $x_{blank}$ , and $x_{T}$ . These starter sequences teach the model how to start a painting at inference time.
+
+# 4.2.2 Sequence optimization
+
+To synthesize an entire video, we run our model recurrently for multiple time steps, building upon its own predicted frames. It is common when making sequential predictions to observe compounding errors or artifacts over time [52]. We use a novel sequential training scheme to encourage outputs of the model to be accurate and realistic over multiple time steps. We alternate between two training modes.
+
+Sequential CVAE training encourages sequences of frames to be well-captured by the learned distribution, by reducing the compounding of errors. We train the model sequentially for a few time steps, predicting each intermediate frame $\hat{x}_t$ using the model's prediction from the previous time step: $\hat{x}_t = \hat{x}_{t-1} + g_\theta(z_t, \hat{x}_{t-1}, x_T)$ for $z_t \sim q_\phi(z_t | x_t - \hat{x}_{t-1}, \hat{x}_{t-1}, x_T)$ . We compare each predicted frame to the corresponding real frame using the image similarity losses in Eq. (6). We illustrate this in Figure 7.
+
+Sequential sampling training encourages random samples from our learned distribution to look like realistic partially-completed paintings. During inference (described below),
+
+
+Figure 8: Sequential sampling training. We use a conditional frame critic to encourage all frames sampled from our model to look realistic. The image similarity loss on the final frame encourages the model to complete the painting in $\tau$ time steps.
+
+we rely on sampling from the prior $p(z_{t})$ at each time step to synthesize new videos. A limitation of the variational strategy is the limited coverage of the latent space $z_{t}$ during training [15], sometimes leading to unrealistic predictions $\hat{x}_{t} = \hat{x}_{t - 1} + g_{\theta}(z_{t},\hat{x}_{t - 1},x_{T})$ for $z_{t}\sim p(z_{t})$ . To compensate for this, we introduce supervision on such samples by amending the image similarity term in Equation (5) with a conditional critic loss term [19]:
+
+$$
+\begin{array}{l} \mathcal {L} _ {\text {c r i t i c}} = \mathbb {E} _ {z _ {t} \sim p (z _ {t})} \left[ D _ {\psi} \left(\hat {x} _ {t}, \hat {x} _ {t - 1}, x _ {T}\right) \right] \\ - \mathbb {E} _ {x _ {t}} \left[ D _ {\psi} \left(x _ {t}, x _ {t - 1}, x _ {T}\right) \right], \tag {7} \\ \end{array}
+$$
+
+where $D_{\psi}(\cdot)$ is a critic function with parameters $\psi$ . The critic encourages the distribution of sampled painting changes $\hat{\delta}_t = g_\theta (z_t,\hat{x}_{t - 1},x_T),z_t\sim p(z_t)$ to match the distribution of training painting changes $\delta_t$ . We use a critic architecture based on [10] and optimize it using WGAN-GP [19].
+
+In addition to the critic loss, we apply the image similarity losses discussed above after $\tau$ time steps, to encourage the model to eventually produce the completed painting. This training scheme is summarized in Figure 8.
+
+# 4.3. Inference: video synthesis
+
+Given a completed painting $x_{T}$ and learned model parameters $\theta, \phi$ , we synthesize videos by sampling from the model at each time step. Specifically, we synthesize each frame $\hat{x}_{t} = \hat{x}_{t-1} + g_{\theta}(z_{t}, \hat{x}_{t-1}, x_{T})$ using the synthesized previous frame $\hat{x}_{t-1}$ and a randomly sampled $z_{t} \sim p(z_{t})$ . We start each video using $\hat{x}_{0} = x_{blank}$ , a blank frame.
+
+# 4.4. Implementation
+
+We implement our model using Keras [11] and Tensorflow [1]. We experimentally selected the hyperparameters controlling the reconstruction loss weights to be $\sigma_{1} = \sigma_{2} = 0.1$ , using the validation set.
+
+# 5. Experiments
+
+# 5.1. Datasets
+
+We collected time lapse recordings of paintings from YouTube and Vineo. We selected digital and watercolor
+
+
+Figure 9: Diversity of sampled videos. We show examples of our method applied to a digital (top 3 rows) and a watercolor (bottom 3 rows) painting from the test set. Our method captures diverse and plausible painting trajectories.
+
+paintings (which are common painting methods on these websites), and focused on landscapes or still lifes (which are common subjects for both mediums). We downloaded each video at $360 \times 640$ resolution and cropped it temporally and spatially to include only the painting process (excluding other content such as introductions or sketching). We split each dataset in a 70:15:15 ratio into training, validation, and held-out test video sets.
+
+Digital paintings: We collected 117 digital painting time lapses. The average duration is 4 minutes, with many videos having already been sped up by artists using the Procreate application [23]. We selected videos with minimal zooming and panning. We manually removed segments that contained movements such as translations, flipping and zooming. Figure 3 shows example video sequences.
+
+Watercolor paintings: We collected 116 watercolor time lapses, with an average duration of 20 minutes. We only kept videos that contained minimal movement of the paper, and manually corrected any small translations of the painting. We show examples in Figure 4.
+
+A challenge with videos of physical paintings is the presence of the hand, paintbrush and shadows in many frames. We trained a simple convolutional neural network to identify and remove frames that contained these artifacts.
+
+# 5.1.1 Sequence extraction
+
+We synthesize time lapses at a lower temporal resolution than real-time for computational feasibility. We extract training sequences from raw videos at a period of $\gamma > 0$
+
+frames (i.e., skipping $\gamma$ frames in each synthesized time step), with a maximum variance of $\epsilon$ frames. Allowing some variance in the sampling rate is useful for (1) improving robustness to varied painting rates, and (2) extracting sequences from watercolor painting videos where many frames containing hands or paintbrushes have been removed. We select $\gamma$ and $\epsilon$ independently for each dataset. We avoid capturing static segments of each video (e.g., when the artist is speaking) by requiring that adjacent frames in each sequence have at least $1\%$ of the pixels changing by a fixed intensity threshold. We use a dynamic programming method to find all training and validation sequences that satisfy these criteria. We train on sequences of length 3 or 5 for sequential CVAE training, and length $\tau = 40$ for sequential sampling training, which we determined using experiments on the validation set. For evaluations on the test set, we extract a single sequence from each test video that satisfies the filtering criteria.
+
+# 5.1.2 Crop extraction
+
+To facilitate learning from small numbers of videos, we use multiple crops from each video. We first downsample each video spatially to $126 \times 168$ , so that most patches contain visually interesting content and spatial context, and then extract $50 \times 50$ crops with minimal overlap.
+
+# 5.2. Baselines
+
+Deterministic video synthesis (unet): In image synthesis tasks, it is common to use an encoder-decoder architecture with skip connections, similar to U-Net [24, 47]. We adapt this technique to synthesize an entire video at once.
+
+Stochastic video synthesis $(vdp)$ : Visual deprojection synthesizes a distribution of videos from a single temporally-projected input image [5].
+
+We design each baseline model architecture to have a comparable number of parameters to our model. Both baselines output videos of a fixed length, which we choose to be 40 to be comparable to our choice of $\tau = 40$ in Section 5.1.
+
+# 5.3. Results
+
+We conducted both quantitative and qualitative evaluations. We first present a user study quantifying human perception of the realism of our synthesized videos. Next, we qualitatively examine our synthetic videos, and discuss characteristics that contribute to their realism. Finally, we discuss quantitative metrics for comparing sets of sampled videos to real videos. We show additional results, including videos and visualizations using the tipiX tool [13] on our project page at https://xamyzhao.github.io/timecraft.
+
+Input
+
+(a) Similarly to the artist, our method paints in a coarse-to-fine manner. Blue arrows show where our method first applies a flat color, and then adds fine details. Red arrows indicate where the baselines add fine details even in the first time step.
+
+Figure 10: Videos predicted from the digital (top) and watercolor (bottom) test sets. For the stochastic methods $vdp$ and ours, we show the nearest sample to the real video out of 2000 samples. We show additional results in the appendices.
+
+(b) Our method works on similar regions to the artist, although it does not use the same color layers to achieve the completed painting. Blue arrows show where our method paints similar parts of the scene to the artist (filling in the background first, and then the house, and then adding details to the background). Red arrows indicate where the baselines do not paint according to semantic boundaries, gradually fading in the background and the house in the same time step.
+
+| Comparison | All paintings | Watercolor paintings | Digital paintings |
| real > vdp | 90% | 90% | 90% |
| real > ours | 55% | 60% | 51% |
| ours > vdp | 91% | 90% | 88% |
+
+Table 1: User study results. Users compared the realism of pairs of videos randomly sampled from ours, vdp, and real videos. The vast majority of participants preferred our videos over vdp videos $(p < 0.0001)$ . Similarly, most participants chose real videos over vdp videos $(p < 0.0001)$ . Users preferred real videos over ours $(p = 0.0004)$ , but many participants confused our videos with the real videos, especially for digital paintings.
+
+We experimented with training each method on digital or watercolor paintings only, as well as on the combined
+
+paintings dataset. For all methods, we found that training on the combined dataset produced the best qualitative and quantitative results (likely due to our limited dataset size), and we only present results for those models.
+
+# 5.3.1 Human evaluations
+
+We surveyed 158 people using Amazon Mechanical Turk [2]. Participants compared the realism of pairs of videos randomly sampled from ours, $vdp$ , or the real videos. In this study, we omit the weaker baseline unet, which performed consistently worse on all metrics (discussed below).
+
+We first trained the participants by showing them several examples of real painting time lapses. We then presented a pair of time lapse videos generated by different methods for the center crop of the same painting, and asked "Which
+
+video in each pair shows a more realistic painting process?" We repeated this process for 14 randomly sampled paintings from the test set. Full study details are in the appendix.
+
+Table 1 indicates that almost every participant thought videos synthesized by our model looked more realistic than those synthesized by $\nu dp$ ( $p < 0.0001$ ). Furthermore, participants confused our synthetic videos with real videos nearly half of the time. In the next sections, we show example synthetic videos and discuss aspects that make our model's results appear more realistic, offering an explanation for these promising user study results.
+
+# 5.3.2 Qualitative results
+
+Figure 9 shows sample sequences produced by our model for two input paintings. Our model chooses different orderings of semantic regions during the painting process, leading to different paths that still converge to the same completed painting.
+
+Figure 10 shows videos synthesized by each method. To objectively compare the stochastic methods vdp and ours, we show the most similar predicted video by L1 distance to the ground truth video. The ground truth videos show that artists tend to paint in a coarse-to-fine manner, using broad strokes near the start of a painting, and finer strokes near the end. Artists also tend to focus on one or a few semantic regions in each time step. As we highlight with arrows, our method captures these tendencies better than baselines, having learned to make changes within separate semantic regions such as mountains, cabins and trees. Our predicted trajectories are similar to the ground truth, showing that our sequential modeling approach is effective at capturing realistic temporal progressions. In contrast, the baselines tend to make blurry changes without separating the scene into components.
+
+# 5.3.3 Quantitative results
+
+In a stochastic task, comparing synthesized results to "ground truth" is ill-defined, and developing quantitative measures of realism is difficult [25, 48]; these challenges motivated our user study above. In this section, we explore quantitative metrics designed to measure aspects of time lapse realism. For each video in the test set, we extract a 40-frame long sequence according to the criteria described in Section 5.1.1, and evaluate each method on 5 random crops using several video similarity metrics:
+
+Best (across $k$ samples) overall video distance (lower is better): For each crop, we draw $k$ sample videos from each model and report the closest sample to the true video by L1 distance [5]. This captures whether a model produces some realistic samples, and whether the model is diverse enough to capture each artist's specific choices.
+
+| Method | Digital paintings | Watercolor paintings |
| L1 | Change IOU | L1 | Change IOU |
| interp | 0.49 (0.13) | 0.17 (0.06) | 0.38 (0.09) | 0.17 (0.09) |
| unet | 0.18 (0.08) | 0.24 (0.08) | 0.15 (0.06) | 0.27 (0.07) |
| vdp | 0.16 (0.06) | 0.31 (0.10) | 0.14 (0.05) | 0.32 (0.08) |
| ours | 0.16 (0.05) | 0.36 (0.09) | 0.14 (0.05) | 0.36 (0.07) |
+
+Table 2: We compare videos synthesized from the digital and watercolor painting test sets to the artists' videos. For the stochastic methods vdp and ours, we draw 2000 video samples and report the closest one to the ground truth.
+
+Best (across $k$ samples) painting change shape similarity (higher is better): We quantify how similar the set of painting change shapes are between the ground truth and each predicted video, disregarding the order in which they were performed. We define the painting change shape as a binary map of the changes made in each time step. For each time step in each test video, we compare the artist's change shape to the most similarly shaped change synthesized by each method, as measured by intersection-over-union (IOU). This captures whether a method paints in similar semantic regions to the artist.
+
+We summarize these results in Table 2. We introduce the interp baseline, which linearly interpolates in time, as a quantitative lower bound. The deterministic interp and unet approaches perform poorly for both metrics. For $k = 2000$ , vdp and our method produce samples that lead to comparable "best video similarity" by L1 distance, highlighting the strength of methods designed to capture distributions of videos. The painting change IOU metric shows that our method synthesizes changes that are significantly more realistic than the other methods.
+
+# 6. Conclusion
+
+In this work, we introduce a new video synthesis problem: making time lapse videos that depict the creation of paintings. We proposed a recurrent probabilistic model that captures the stochastic decisions of human artists. We introduced an alternating sequential training scheme that encourages the model to make realistic predictions over many time steps. We demonstrated our model on digital and watercolor paintings, and used it to synthesize realistic and varied painting videos. Our results, including human evaluations, indicate that the proposed model is a powerful first tool for capturing stochastic changes from small video datasets.
+
+# 7. Acknowledgments
+
+We thank Zoya Bylinskii of Adobe Inc. for her insights around designing effective and accurate user studies. This work was funded by Wistron Corporation.
+
+# References
+
+[1] Martin Abadi et al. Tensorflow: Large-scale machine learning on heterogeneous distributed systems. arXiv preprint arXiv:1603.04467, 2016.
+[2] Inc. Amazon Mechanical Turk. Amazon mechanical turk: Overview, 2005.
+[3] Ryoichi Ando and Reiji Tsuruno. Segmental brush synthesis with stroke images. 2010.
+[4] Simon Baker, Daniel Scharstein, JP Lewis, Stefan Roth, Michael J Black, and Richard Szeliski. A database and evaluation methodology for optical flow. International Journal of Computer Vision, 92(1):1-31, 2011.
+[5] Guha Balakrishnan, Adrian V. Dalca, Amy Zhao, John V. Guttag, Fredo Durand, and William T Freeman. Visual deprojection: Probabilistic recovery of collapsed dimensions. In IEEE International Conference on Computer Vision (ICCV), 2019.
+[6] William Baxter, Yuanxin Liu, and Ming C Lin. A viscous paint model for interactive applications. Computer Animation and Virtual Worlds, 15(3-4):433-441, 2004.
+[7] William V Baxter and Ming C Lin. A versatile interactive 3d brush model. In Computer Graphics and Applications, 2004. PG 2004. Proceedings. 12th Pacific Conference on, pages 319-328. IEEE, 2004.
+[8] Maren Bennewitz, Wolfram Burgard, and Sebastian Thrun. Learning motion patterns of persons for mobile service robots. In Proceedings 2002 IEEE International Conference on Robotics and Automation (Cat. No. 02CH37292), volume 4, pages 3601-3606. IEEE, 2002.
+[9] Zhili Chen, Byungmoon Kim, Daichi Ito, and Huamin Wang. Wetbrush: GPU-based 3d painting simulation at the bristle level. ACM Transactions on Graphics (TOG), 34(6):200, 2015.
+[10] Yunjey Choi, Minje Choi, Munyoung Kim, Jung-Woo Ha, Sunghun Kim, and Jaegul Choo. Stargan: Unified generative adversarial networks for multi-domain image-to-image translation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8789-8797, 2018.
+[11] François Chollet et al. Keras. https://github.com/fchollet/keras, 2015.
+[12] Nelson S-H Chu and Chiew-Lan Tai. Moxi: real-time ink dispersion in absorbent paper. In ACM Transactions on Graphics (TOG), volume 24, pages 504-511. ACM, 2005.
+[13] Adrian V Dalca, Ramesh Sridharan, Natalia Rost, and Polina Golland. tipix: Rapid visualization of large image collections. MICCAI-IMIC Interactive Medical Image Computing Workshop.
+[14] Alexey Dosovitskiy and Thomas Brox. Generating images with perceptual similarity metrics based on deep networks. In Advances in neural information processing systems, pages 658-666, 2016.
+[15] Jesse Engel, Matthew Hoffman, and Adam Roberts. Latent constraints: Learning to generate conditionally from uncon-
+
+ditional generative models. In International Conference on Learning Representations, 2018.
+[16] Scott Gaffney and Padhraic Smyth. Trajectory clustering with mixtures of regression models. In KDD, volume 99, pages 63-72, 1999.
+[17] Yaroslav Ganin, Tejas Kulkarni, Igor Babuschkin, SM Eslami, and Oriol Vinyals. Synthesizing programs for images using reinforced adversarial learning. arXiv preprint arXiv:1804.01118, 2018.
+[18] Leon A Gatys, Alexander S Ecker, and Matthias Bethge. A neural algorithm of artistic style. arXiv preprint arXiv:1508.06576, 2015.
+[19] Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron C Courville. Improved training of wasserstein gans. In Advances in neural information processing systems, pages 5767-5777, 2017.
+[20] Aaron Hertzmann. Painterly rendering with curved brush strokes of multiple sizes. In Proceedings of the 25th annual conference on Computer graphics and interactive techniques, pages 453-460. ACM, 1998.
+[21] Fay Huang, Bo-Hui Wu, and Bo-Ru Huang. Synthesis of oil-style paintings. In *Pacific-Rim Symposium on Image and Video Technology*, pages 15-26. Springer, 2015.
+[22] Zhewei Huang, Wen Heng, and Shuchang Zhou. Learning to paint with model-based deep reinforcement learning. In IEEE International Conference on Computer Vision (ICCV), 2019.
+[23] Savage Interactive. Procreate Artists' Handbook. Savage, 2016.
+[24] Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. arXiv preprint arXiv:1611.07004, 2016.
+[25] 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.
+[26] Biao Jia, Jonathan Brandt, Radomír Mech, Byungmoon Kim, and Dinesh Manocha. Lpaintb: Learning to paint from self-supervision. CoRR, abs/1906.06841, 2019.
+[27] Biao Jia, Chen Fang, Jonathan Brandt, Byungmoon Kim, and Dinesh Manocha. Paintbot: A reinforcement learning approach for natural media painting. CoRR, abs/1904.02201, 2019.
+[28] Huaizu Jiang, Deqing Sun, Varun Jampani, Ming-Hsuan Yang, Erik Learned-Miller, and Jan Kautz. Super slomo: High quality estimation of multiple intermediate frames for video interpolation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9000-9008, 2018.
+[29] Pierre-Marc Jodoin, Emric Epstein, Martin Granger-Piche, and Victor Ostromoukhov. Hatching by example: a statistical approach. In Proceedings of the 2nd international symposium on Non-photorealistic animation and rendering, pages 29–36. ACM, 2002.
+
+[30] 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.
+[31] Mikyung Kim and Hyun Joon Shin. An example-based approach to synthesize artistic strokes using graphs. In Computer Graphics Forum, volume 29, pages 2145-2152. Wiley Online Library, 2010.
+[32] Diederik P Kingma, Shakir Mohamed, Danilo Jimenez Rezende, and Max Welling. Semi-supervised learning with deep generative models. In Advances in Neural Information Processing Systems, pages 3581-3589, 2014.
+[33] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
+[34] Ce Liu, Jenny Yuen, and Antonio Torralba. Sift flow: Dense correspondence across scenes and its applications. IEEE transactions on pattern analysis and machine intelligence, 33(5):978-994, 2010.
+[35] Ziwei Liu, Raymond A Yeh, Xiaou Tang, Yiming Liu, and Aseem Agarwala. Video frame synthesis using deep voxel flow. In Proceedings of the IEEE International Conference on Computer Vision, pages 4463-4471, 2017.
+[36] Jingwan Lu, Connelly Barnes, Stephen DiVerdi, and Adam Finkelstein. Realbrush: painting with examples of physical media. ACM Transactions on Graphics (TOG), 32(4):117, 2013.
+[37] Michal Lukáč, Jakub Fišer, Paul Asente, Jingwan Lu, Eli Shechtman, and Daniel Sykora. Brushables: Example-based edge-aware directional texture painting. In Computer Graphics Forum, volume 34, pages 257-267. Wiley Online Library, 2015.
+[38] Michael Mathieu, Camille Couprie, and Yann Lecun. Deep multi-scale video prediction beyond mean square error. 11 2016.
+[39] Simone Meyer, Oliver Wang, Henning Zimmer, Max Grosse, and Alexander Sorkine-Hornung. Phase-based frame interpolation for video. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1410-1418, 2015.
+[40] Vincent Michalski, Roland Memisevic, and Kishore Konda. Modeling deep temporal dependencies with recurrent grammar cells". In Advances in neural information processing systems, pages 1925-1933, 2014.
+[41] Roni Mittelman, Benjamin Kuipers, Silvio Savarese, and Honglak Lee. Structured recurrent temporal restricted boltzmann machines. In International Conference on Machine Learning, pages 1647-1655, 2014.
+[42] Santiago E Montesdeoca, Hock Soon Seah, Pierre Bénard, Romain Vergne, Joëlle Thollot, Hans-Martin Rall, and Davide Benvenuti. Edge-and substrate-based effects for watercolor stylization. In Proceedings of the Symposium on Non-Photorealistic Animation and Rendering, page 2. ACM, 2017.
+[43] Seonghyeon Nam, Chongyang Ma, Menglei Chai, William Brendel, Ning Xu, and Seon Joo Kim. End-to-end time-lapse video synthesis from a single outdoor image. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1409-1418, 2019.
+
+[44] Simon Niklaus and Feng Liu. Context-aware synthesis for video frame interpolation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1701-1710, 2018.
+[45] Simon Niklaus, Long Mai, and Feng Liu. Video frame interpolation via adaptive separable convolution. In Proceedings of the IEEE International Conference on Computer Vision, pages 261-270, 2017.
+[46] MarcAurelio Ranzato, Arthur Szlam, Joan Bruna, Michael Mathieu, Ronan Collobert, and Sumit Chopra. Video (language) modeling: a baseline for generative models of natural videos. arXiv preprint arXiv:1412.6604, 2014.
+[47] 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.
+[48] Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training gans. In Advances in neural information processing systems, pages 2234-2242, 2016.
+[49] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
+[50] Ilya Sutskever, Geoffrey E Hinton, and Graham W Taylor. The recurrent temporal restricted boltzmann machine. In Advances in neural information processing systems, pages 1601-1608, 2009.
+[51] Dizan Vasquez and Thierry Fraichard. Motion prediction for moving objects: a statistical approach. In IEEE International Conference on Robotics and Automation, 2004. Proceedings. ICRA'04. 2004, volume 4, pages 3931-3936. IEEE, 2004.
+[52] Ruben Villegas, Jimei Yang, Yuliang Zou, Sungryull Sohn, Xunyu Lin, and Honglak Lee. Learning to generate long-term future via hierarchical prediction. In ICML, 2017.
+[53] Carl Vondrick, Hamed Piriavash, and Antonio Torralba. Generating videos with scene dynamics. In Advances In Neural Information Processing Systems, pages 613-621, 2016.
+[54] Jacob Walker, Carl Doersch, Abhinav Gupta, and Martial Hebert. An uncertain future: Forecasting from static images using variational autoencoders. In European Conference on Computer Vision, pages 835-851. Springer, 2016.
+[55] Jacob Walker, Abhinav Gupta, and Martial Hebert. Patch to the future: Unsupervised visual prediction. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3302-3309, 2014.
+[56] Miaoyi Wang, Bin Wang, Yun Fei, Kanglai Qian, Wenping Wang, Jiating Chen, and Jun-Hai Yong. Towards photo watercolorization with artistic verisimilitude. IEEE transactions on visualization and computer graphics, 20(10):1451-1460, 2014.
+[57] Der-Lor Way and Zen-Chung Shih. The Synthesis of Rock Textures in Chinese Landscape Painting. Computer Graphics Forum, 2001.
+[58] Manuel Werlberger, Thomas Pock, Markus Unger, and Horst Bischof. Optical flow guided tv-1 1 video interpolation and
+
+restoration. In International Workshop on Energy Minimization Methods in Computer Vision and Pattern Recognition, pages 273-286. Springer, 2011.
+[59] Ning Xie, Hirotaka Hachiya, and Masashi Sugiyama. Artist agent: A reinforcement learning approach to automatic stroke generation in oriental ink painting. CoRR, abs/1206.4634, 2012.
+[60] Ning Xie, Tingting Zhao, Feng Tian, Xiaohua Zhang, and Masashi Sugiyama. Stroke-based stylization learning and rendering with inverse reinforcement learning. In Proceedings of the 24th International Conference on Artificial Intelligence, IJCAI'15, pages 2531-2537. AAAI Press, 2015.
+[61] Jun Xing, Hsiang-Ting Chen, and Li-Yi Wei. Autocomplete painting repetitions. ACM Transactions on Graphics (TOG), 33(6):172, 2014.
+[62] Songhua Xu, Min Tang, Francis Lau, and Yunhe Pan. A solid model based virtual hairy brush. In Computer Graphics Forum, volume 21, pages 299-308. Wiley Online Library, 2002.
+[63] Tianfan Xue, Jiajun Wu, Katherine Bouman, and Bill Freeman. Visual dynamics: Probabilistic future frame synthesis via cross convolutional networks. In Advances in neural information processing systems, pages 91-99, 2016.
+[64] Xinchen Yan, Jimei Yang, Kihyuk Sohn, and Honglak Lee. Attribute2image: Conditional image generation from visual attributes. In European Conference on Computer Vision, pages 776-791. Springer, 2016.
+[65] Zhefei Yu, Houqiang Li, Zhangyang Wang, Zeng Hu, and Chang Wen Chen. Multi-level video frame interpolation: Exploiting the interaction among different levels. IEEE Transactions on Circuits and Systems for Video Technology, 23(7):1235-1248, 2013.
+[66] Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 586-595, 2018.
+[67] Yong Zhang, Weiming Dong, Chongyang Ma, Xing Mei, Ke Li, Feiyue Huang, Bao-Gang Hu, and Oliver Deussen. Data-driven synthesis of cartoon faces using different styles. IEEE Transactions on image processing, 26(1):464-478, 2017.
+[68] Ming Zheng, Antoine Milliez, Markus Gross, and Robert W Sumner. Example-based brushes for coherent stylized renderings. In Proceedings of the Symposium on Non-Photorealistic Animation and Rendering, page 3. ACM, 2017.
+[69] Ningyuan Zheng, Yifan Jiang, and Dingjiang Huang. Strokenet: A neural painting environment. In International Conference on Learning Representations, 2019.
+[70] Yipin Zhou and Tamara L. Berg. Learning temporal transformations from time-lapse videos. volume 9912, pages 262-277, 10 2016.
+[71] 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.
\ No newline at end of file
diff --git a/paintingmanypastssynthesizingtimelapsevideosofpaintings/images.zip b/paintingmanypastssynthesizingtimelapsevideosofpaintings/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..f49d5d1c72a66c6410ed00bb344c01b76307101c
--- /dev/null
+++ b/paintingmanypastssynthesizingtimelapsevideosofpaintings/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f5b84ba1eaee4b083dd8c48effc5a4196f2e6cb8f9302349b95764bf608f6e4e
+size 515054
diff --git a/paintingmanypastssynthesizingtimelapsevideosofpaintings/layout.json b/paintingmanypastssynthesizingtimelapsevideosofpaintings/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..3752d4cab1e455e5796dd665c26d08c18b043542
--- /dev/null
+++ b/paintingmanypastssynthesizingtimelapsevideosofpaintings/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:448b508cb0e80784c89837e2602ceff8f843a3111f0691932527ba9158060b82
+size 468985
diff --git a/pandaagigapixellevelhumancentricvideodataset/30151cb1-ed5e-437f-8a71-11512738d937_content_list.json b/pandaagigapixellevelhumancentricvideodataset/30151cb1-ed5e-437f-8a71-11512738d937_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..bc0be890d6100b5a8380d32da61b5a986c028b79
--- /dev/null
+++ b/pandaagigapixellevelhumancentricvideodataset/30151cb1-ed5e-437f-8a71-11512738d937_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fa3633dcfb8614804d5ab98fa0ffc11ee95dc1bdf7bd85c6a42fb4bac058020b
+size 84851
diff --git a/pandaagigapixellevelhumancentricvideodataset/30151cb1-ed5e-437f-8a71-11512738d937_model.json b/pandaagigapixellevelhumancentricvideodataset/30151cb1-ed5e-437f-8a71-11512738d937_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..18ce10daee24a45c4ebaadf6884ec1f81194a99b
--- /dev/null
+++ b/pandaagigapixellevelhumancentricvideodataset/30151cb1-ed5e-437f-8a71-11512738d937_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a1779d84896100bb20413b6c13953b25cf8b0d805eaddd6cadba3dc6857d80ae
+size 110311
diff --git a/pandaagigapixellevelhumancentricvideodataset/30151cb1-ed5e-437f-8a71-11512738d937_origin.pdf b/pandaagigapixellevelhumancentricvideodataset/30151cb1-ed5e-437f-8a71-11512738d937_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..d4ee6de1924fe06508a3c4359dd75b07501ba2f2
--- /dev/null
+++ b/pandaagigapixellevelhumancentricvideodataset/30151cb1-ed5e-437f-8a71-11512738d937_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cd98774904a6c86694db1151fdf827e2c19e7091676eaafe082f6398fcfcb0b8
+size 4624343
diff --git a/pandaagigapixellevelhumancentricvideodataset/full.md b/pandaagigapixellevelhumancentricvideodataset/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..9f639a2b6769f12511db6ffc5505cfccf79c6e5a
--- /dev/null
+++ b/pandaagigapixellevelhumancentricvideodataset/full.md
@@ -0,0 +1,306 @@
+# PANDA: A Gigapixel-level Human-centric Video Dataset
+
+Xueyang Wang $^{1*}$ , Xiya Zhang $^{1*}$ , Yinheng Zhu $^{1*}$ , Yuchen Guo $^{1*}$ , Xiaoyun Yuan $^{1}$ , Liuyu Xiang $^{1}$ , Zerun Wang $^{1}$ , Guiguang Ding $^{1}$ , David Brady $^{2}$ , Qionghai Dai $^{1}$ , Lu Fang $^{1\boxtimes}$ , Tsinghua University ${}^{2}$ Duke University
+
+
+Figure 1. A representative video Marathon of PANDA dataset. The characteristic of joint wide field-of-view and high spatial resolution empowers the large-scale, long-term, and multi-object visual analysis.
+
+
+
+
+
+# Abstract
+
+We present PANDA, the first gigapixel-level human-centric viDeo dAtaset, for large-scale, long-term, and multi-object visual analysis. The videos in PANDA were captured by a gigapixel camera and cover real-world scenes with both wide field-of-view ( $\sim 1\mathrm{km}^2$ area) and high-resolution details ( $\sim$ gigapixel-level/frame). The scenes may contain $4k$ head counts with over $100\times$ scale variation. PANDA provides enriched and hierarchical ground-truth annotations, including 15,974.6k bounding boxes, 111.8k fine-grained attribute labels, 12.7k trajectories, 2.2k groups and 2.9k interactions. We benchmark the human detection and tracking tasks. Due to the vast variance of pedestrian pose, scale, occlusion and trajectory, existing approaches are challenged by both accuracy and efficiency. Given the uniqueness of PANDA with both wide FoV and high resolution, a new task of interaction-aware group detection is introduced. We design a 'global-to-local zoom-in' framework, where global trajectories and local interactions are simultaneously encoded, yielding promising results. We believe PANDA will contribute to the community of artificial intelligence and praxeology by understanding human behaviors and interactions in large-scale real-world scenes. PANDA Website: http://www.panda-dataset.com.
+
+# 1. Introduction
+
+It has been widely recognized that the recent conspicuous success of computer vision techniques, especially the deep learning based ones, rely heavily on large-scale and well-annotated datasets. For example, ImageNet [58] and CIFAR-10/100 [64] are important catalyst for deep convolutional neural networks [33, 41], Pascal VOC [26] and MS COCO [47] for common object detection and segmentation, LFW [34] for face recognition, and Caltech Pedestrians [21] and MOT benchmark [51] for person detection and tracking. Among all these tasks, human-centric visual analysis is fundamentally critical yet challenging. It relates to many sub-tasks, e.g., pedestrian detection, tracking, action recognition, anomaly detection, attribute recognition etc., which attract considerable interests in the last decade [55, 9, 46, 68, 50, 63, 18, 71]. While significant progress has been made, there is a lack of the long-term analysis of crowd activities at large-scale spatiotemporal range with clear local details.
+
+Analyzing the reasons behind, existing datasets [47, 21, 51, 28, 56, 6] suffer an inherent trade-off between the wide FoV and high resolution. Taking the football match as an example, a wide-angle camera may cover the panoramic scene, yet each player faces significant scale variation, suffering very low spatial resolution. Whereas one may use a telephoto lens camera to capture the local details of the particular player, the scope of the contents will be highly restricted to a small FoV. Even though the multiple surveillance camera setup may deliver more information, the requisite of re-identification on scattered video clips highly af
+
+fcts the continuous analysis of the real-world crowd behaviour. All in all, existing human-centric datasets remain constrained by the limited spatial and temporal information provided. The problems of low spatial resolution [44, 54, 28], lack of video information [14, 72, 18, 4], unnatural human appearance and actions [1, 37, 36], and limited scope of activities with short-term annotations [6, 49, 15, 53] lead to inevitable influence for understanding the complicated behaviors and interactions of crowd.
+
+To address aforementioned problems, we propose a new gigapixel-level human-centric viDeo dAtaset (PANDA). The videos in PANDA are captured by a gigacamera [70, 7], which is capable of covering a large-scale area full of high resolution details. A representative video example of Marathon is presented in Fig. 1. Such rich information enables PANDA to be a competitive dataset with multiscale features: (1) globally wide field-of-view where visible area may beyond $1\mathrm{km}^2$ , (2) locally high resolution details with gigapixel-level spatial resolution, (3) temporally long-term crowd activities with $43.7k$ frames in total, (4) real-world scenes with abundant diversities in human attributes, behavioral patterns, scale, density, occlusion, and interaction. Meanwhile, PANDA is provided with rich and hierarchical ground-truth annotations, with 15,974.6k bounding boxes, 111.8k fine-grained labels, 12.7k trajectories, 2.2k groups and 2.9k interactions in total.
+
+Benefiting from the comprehensive and multiscale information, PANDA facilitates a variety of fundamental yet challenging tasks for image/video based human-centric analysis. We start with the most fundamental detection task. Yet detection on PANDA has to address both the accuracy and efficiency issues. The former one is challenged by the significant scale variation and complex occlusion, while the latter one is highly affected by the gigapixel resolution. Whereafter, the task of tracking is benchmarked. Equipped with the simultaneous large-scale, long-term and multi-object properties, our tracking task is heavily challenged, due to the complex occlusion as well as large-scale and long-term activity existing in real-world scenarios. Moreover, PANDA enables a distinct task of identifying the group relationship of the crowd in the video, termed as interaction-aware group detection. In this task, we propose a novel global-to-local zoom-in framework to reveal the mutual effects between global trajectories and local interactions. Note that these three tasks are inherently correlated. Although detection may bias to local high-resolution detail and tracking may focus on global trajectories, the former promotes the latter significantly. Meanwhile, the spatial-temporal trajectories deduced from detection and tracking serve for group analysis.
+
+In summary, PANDA aims to contribute a standardized dataset to the community, for investigating new algorithms
+
+to understand the complicated crowd social behavior in large-scale real-world scenarios. The contributions are summarized as follows.
+
+- We propose a new video dataset with gigapixel-level resolution for human-centric visual analysis. It is the first video dataset endowed with wide FoV and high spatial resolution simultaneously, which is capable of providing sufficient spatial and temporal information from both global scene and local details. Complete and accurate annotations of location, trajectory, attribute, group and intra-group interaction information of crowd are provided.
+
+- We benchmark several state-of-the-art algorithms on PANDA for the fundamental detection and tracking tasks. The results demonstrate that existing methods are heavily challenged from both accuracy and efficiency perspectives, and indicate that it is quite difficult to accurately detect objects in a scene with significant scale variation and track objects that move continuously for a long distance under complex occlusion.
+
+- We introduce a new visual analysis task, termed as interaction-aware group detection, based on the spatial and temporal multi-object interaction. A global-to-local zoom-in framework is proposed to utilize the multi-modal annotations in PANDA, including global trajectories, local face orientations and interactions. Promising results further validate the collaborative effectiveness of global scene and local details provided by PANDA.
+
+By serving the visual tasks related to the long-term analysis of crowd activities at a large-scale spatial-temporal range, we believe PANDA will definitely contribute to the community for understanding the complicated behaviors and interactions of crowd in large-scale real-world scenes, and further boost the intelligence of unmanned systems.
+
+# 2. Related Work
+
+# 2.1. Image-based Datasets
+
+The most representative human-centric task on image datasets is human (person or pedestrian) detection. The common object detection datasets, such as PASCAL VOC [26], ImageNet [58], MS COCO [47], Open Images [42] and Objects365 [60] datasets, are not initially designed for human-centric analysis, although they contain human object categories1. However, restricted by the narrow FoV, each image only contains limited number of objects, far from enough to describe the crowd behaviour and interaction.
+
+Pedestrian Detection. Some pioneer representatives include INRIA [19], ETH [25], TudBrussels [67], and Daimler [23]. Later, Caltech [21], KITTI-D [31], CityPersons [75] and EuroCity Persons [8] datasets with higher quality, larger scale, and more challenging contents are proposed. Most of them are collected via a vehicle-mounted camera through the regular traffic scenario, with limited diversity of pedestrian appearances and occlusions. The latest Wider-Person [76] and CrowdHuman [61] datasets focus on crowd scenes with many pedestrians. Due to the trade-off between spatial resolution and field of view, existing datasets cannot provide sufficient high resolution local details if the scene becomes larger.
+
+Group Detection. Starting with the free-standing conversational groups (FCGs) decades ago [24], the subsequent works try to study the interacting persons characterized by mutual scene locations and poses, known as F-formations [40]. Representatives ones include IDIAP Poster [35], Cocktail Party [72], Coffee Break [18] and GDet [4]. In [14], the problem of structure group along with a dataset is proposed, which defines the way people spatially interact with each other. Recently, pedestrian group Re-Identification (G-ReID) benchmarks like DukeMTMC Group [48] and Road Group [48] are proposed to match a group of persons across different camera views. However, these datasets only support position-aware group detection, lack of the important dynamic interactions.
+
+# 2.2. Video-based Datasets
+
+Pedestrian Tracking. It locates pedestrians in a series of frames and find the trajectories of them. MOT Challenge benchmarks [43, 51] were launched to establish a standardized evaluation of multiple objects tracking algorithms. The latest MOT19 benchmark [20] consists of 8 new sequences with very crowded challenging scenes. Besides, some datasets are designed for specific applications, e.g., Campus [57] and VisDrone2018 [79], which are drone-platform-based benchmarks. PoseTrack [2] contains joint position annotations for multiple persons in videos. To increase the FoV for long-term tracking, a network of cameras is adopted, leading to the multi-target multi-camera (MTMC) tracking problem. MARS [77], DukeMTMC [56] are representative ones.
+
+On the other hand, to investigate pedestrians in surveillance perspectives, UCY Crowds-by-Example [44], ETH BIWI Walking Pedestrians [54], Town Center [5] and Train Station [78] are proposed for trajectory prediction, abnormal behaviour detection, and pedestrian motion analysis. PETS09 [28] was collected by eight cameras in a campus for person density estimation, people tracking, event recognition, etc. Recently, CUHK [59] and WorldExpo'10 [74] serve for evaluating the performance of crowd segmentation, crowd density, collectiveness, and cohesiveness esti
+
+mation. However, these datasets are in insufficient of the richness and complexity of the scenes, and can hardly provide high resolution local details, which is critical to further analyze the human interactions in crowd.
+
+Interaction Analysis. SALSA [1] contains uninterrupted multi-modal recordings of indoor social events with 18 participants for over 60 minutes. Panoptic Studio [37] uses 480 synchronized VGA cameras to capture social interactions, with 3D body poses annotated. BEHAVE [6], CAVIAR [49], Collective Activity [15] and Volleyball [36] are widely used datasets to evaluate human group activity recognition approaches. VIRAT [53] is a real-world surveillance video dataset containing diverse examples of multiple types of complex visual events. However, for the sake of local details, the group interactions are usually restricted in small scenes or unnatural human behaviors.
+
+# 3. Data Collection and Annotation
+
+# 3.1. Data Collection and Pre-processing
+
+It is known that single camera based imaging suffers inevitable contradiction between wide FoV and high spatial resolution. The recently developed array-camera-based gigapixel videography techniques significantly boost the feasibility of high performance imaging [7, 70]. By designing the advanced computational algorithms, a number of micro-cameras work simultaneously to generate a seamless gigapixel-level video in realtime. As a result, the sacrifice in either field of view or spatial resolution can be eliminated. We adopt the latest gigacamera [3, 70] to collect the data for PANDA, where the FoV is around 70 degree horizontally, and the video resolution reaches $25\mathrm{k}\times 14\mathrm{k}$ , working in $30\mathrm{Hz}$ . A representative video Marathon in Fig. 1 fully reflects the uniqueness of PANDA with both globally wide FoV and locally high resolution details.
+
+Currently, PANDA is composed by 21 real-world outdoor scenes², by taking scenario diversity, pedestrians density, trajectory distribution, group activity, etc. into account. In each scene, we collected approximately 2 hours of $30\mathrm{Hz}$ video as the raw data pool. Afterwards, around 3600 frames (approximately two minutes long segments) are extracted. For the images to be annotated, around 30 representative frames per video, 600 in total are selected, covering different crowd distributions and activities.
+
+# 3.2. Data Annotation
+
+Annotating PANDA images and videos faces the difficulty of full image annotation due to the gigixel-level resolution. Herein, following the idea of divide-and-merge, the
+
+
+
+
+(a) Scale Variation
+
+
+(b) Fine Bboxes
+Figure 2. Visualization of annotations in PANDA dataset. (a) The scale variation of pedestrians in a large-scale scene. (b) Three fine-grained bounding boxes on human body. (c) Five categories for human body postures. (d) Group information along with the intra-group interactions (TK=Talking, PC=Physical contact), where the circle and short line denote pedestrian and their face orientation.
+
+
+(c) Fine-grained Classes
+
+
+(d) Group Information
+
+ | Caltech | CityPersons | PANDA | PANDA-C |
| Res | 480P | 2048×1024 | >25k×14k | >25k×14k |
| #Im | 249.9k | 5k | 555 | 45 |
| #Ps | 289.4k | 35.0k | 111.8k | 122.1k |
| Den | 1.16 | 7.0 | 201.4 | 2,713.8 |
+
+Table 1. Pedestrian datasets comparison (statistics of CityPersons only contain public available training set). Res is the image resolution, #Im is the total number of images, #Ps is the total number of persons, Den denotes person density (average number of person per image) and PANDA-C is the PANDA-Crowd subset.
+
+full image is partitioned into 4 to 16 subimages by considering the pedestrian density and size. After the labels are annotated on the subimages separately, the annotation results are mapped back to the full image. The objects cut by block borders are labeled with special status, which will be re-labeled after merging all blocks together. All labels are provided by a well trained professional annotation team.
+
+# 3.2.1 Image Annotation
+
+PANDA has 600 well annotated images captured from 21 diverse scenes for the multi-object detection task. Among them, PANDA-Crowd subset are composed by 45 images labeled with human head bounding boxes, which are selected from 3 extremely crowded scenes that full of head-counts. The remaining 555 images from 18 real-world daily scenes own $111\mathrm{k}$ pedestrians in total, labeled with head point, head bounding box, visible body bounding box, and the estimated full body bounding box close to the border
+
+of the pedestrian. For the crowd that are too far or too dense to be individually distinguished, the glass reflected persons, and the persons with more than $80\%$ occluded area are marked as 'ignore' and disabled for benchmarking.
+
+Fig. 2 presents a typical large-scale real-world scene OCT Harbour in PANDA, where the crowd shows a significant diversity in the scale, location, occlusion, activity, interaction, and so on. Beside the fine bounding boxes in (b), each pedestrian is further assigned a fine-grained label showing the detailed attributes in (c). Five categories are used, i.e., walking, standing, sitting, riding, and held in arms (for child), based on the daily postures. Pedestrians whose key parts occluded are marked as 'unsure'. The 'riding' label is further subdivided into bicycle rider, tricycle rider and motorcycle rider. Another detailed attribute is termed as 'child' or 'adult', distinguished from the appearance and behavior, as shown in (a).
+
+The comparisons with the representative Caltech [21] and CityPersons image datasets [75] are provided quantitatively (Tab. 1) and statistically (Fig. 3). From Tab. 1, each image of PANDA owns gigapixel-level resolution, which is around 100 times of existing datasets. Although the number of images is much smaller than other datasets, benefiting from the joint high resolution and wide FoV, PANDA has much higher pedestrian density per image than others especially in the extremely crowded PANDA-Crowd, and maintaining the total number of pedestrian in PANDA comparable to Caltech,
+
+Some detailed statistics about image annotation are
+
+
+(a)
+
+
+
+
+(c)
+
+
+(b)
+
+
+(e)
+Figure 3. (a) Distribution of person scale (height in pixel). (b) Distribution of the number of person pairs with different occlusion (measured by IoU) threshold per image. (c) Distribution of persons' pose labels in PANDA (WK=Walking, SD=Standing, ST=Sitting, RD=Ridding, HA=Held in arms, US=Unsure; The visible ratio is divided into W/O Occ (>0.9), Partial Occ (0.5 - 0.9), and Heavy Occ (<0.5)). (d) Distribution of categories and duration of inter-group interactions in PANDA (PC=Physical contact, BL=Body language, FE=Face expressions, EC=Eye contact, TK=Talking; The duration is divided into Short (<10s), Middle (10s - 30s), and Long ( $\geq$ 30s)). (e) Distribution of person tracking duration. (f) Distribution of person occluded time ratio. The comparisons in (a), (b), (e) and (f) are limited to training sets.
+
+
+(d)
+(f)
+
+shown in Fig. 3. In particular, Fig. 3(a) shows the distribution of person scale in pixel of PANDA, Caltech and CityPersons. As we can see, the height of persons in Caltech and CityPersons is mostly between 50px and 300px due to the limited spatial resolution, while PANDA has more balanced distribution from 100px to 600px. The larger scale variation in PANDA necessitates powerful multi-scale detection algorithms. In Fig. 3(b), the pairwise occlusion between persons measured by bounding box IoU of PANDA and CityPersons is given. The fine-grained label statistics for different poses and occlusion conditions are summarized in Fig. 3(c).
+
+# 3.2.2 Video Annotation
+
+Video annotation pays more attention on the labels revealing the activity/interaction. In addition to the bounding box of each person, we also label the face orientation (quantified into eight bins) and the occlusion ratio (without, partial and
+
+ | KITTI-T | MOT16 | MOT19 | PANDA |
| Res | 1392×512 | 1080p | 1080p | >25k×14k |
| #V | 20 | 14 | 8 | 15 |
| #F | 19.1k | 11.2k | 13.4k | 43.7k |
| #T | 204 | 1.3k | 3.9k | 12.7k |
| #B | 13.4k | 292.7k | 2,259.2k | 15,480.5k |
| Den | 0.7 | 26.1 | 168.6 | 354.6 |
+
+Table 2. Comparison of multi-object tracking datasets (statistics of KITTI only contain public available training set). Res means video resolution. #V, #F, #T and #B denote the number of video clips, video frames, tracks and bounding boxes respectively. Den means Density (average number of person per frame).
+
+heavy). For pedestrians who are completely occluded for a short time, we label a virtual body bounding box and mark it as 'disappearing'. MOT annotations are available for all the videos in PANDA except for PANDA-Crowd.
+
+The comparisons with KITTI-T [31] and MOT [20] video datasets are provided quantitatively (Tab. 2) and statistically (Fig. 3). Apparently, PANDA is competitive with the largest number of frames, tracks and bounding boxes3. Moreover, in Fig. 3(e), we show the distribution of tracking duration of different datasets. It demonstrates that the tracking duration in PANDA is many times longer than than KITTI-T and MOT because PANDA has wider FoV. This property makes PANDA an excellent dataset for largescale and long-term tracking. Moreover, we also investigate the duration that each person is occluded and summarize the distribution in Fig. 3(f). It shows that more tracks in PANDA suffer from partial or heavy occlusions, in both absolute number and relative portion, making the tracking task more challenging.
+
+For group annotation, the advance of PANDA with wide-FoV global information, high-resolution local details and temporal activities ensures more reliable annotations for group detection. Unlike existing group-based datasets that focus on either the similarity of global trajectories [54] or the stability of local spatial structure [14], we utilize the social signal processing [65] to label the group attributes at the interaction level.
+
+More specifically, with the annotated bounding boxes, we firstly label the group members based on scene characteristics and social signals such as interpersonal distance [22] and interaction [65]. Afterwards, each group is assigned an category label denoting the relationship, such as acquaintance, family, business, etc., as shown in Fig. 2(d). To enrich the features for group identification, we further label the interactions between members within the group,
+
+ | Sub | Visible Body | Full Body | Head |
| AP.50 | AR | AP.50 | AR | AP.50 | AR |
| FR [55] | S | 0.201 | 0.137 | 0.190 | 0.128 | 0.031 | 0.023 |
| M | 0.560 | 0.381 | 0.552 | 0.376 | 0.157 | 0.088 |
| L | 0.755 | 0.523 | 0.744 | 0.512 | 0.202 | 0.105 |
| CR [9] | S | 0.204 | 0.140 | 0.227 | 0.160 | 0.028 | 0.018 |
| M | 0.561 | 0.388 | 0.579 | 0.384 | 0.168 | 0.091 |
| L | 0.747 | 0.532 | 0.765 | 0.518 | 0.241 | 0.116 |
| RN [46] | S | 0.171 | 0.121 | 0.221 | 0.150 | 0.023 | 0.018 |
| M | 0.547 | 0.370 | 0.561 | 0.360 | 0.143 | 0.081 |
| L | 0.725 | 0.482 | 0.740 | 0.479 | 0.259 | 0.149 |
+
+Table 3. Performance of detection methods on PANDA. FR, CR, and RN denote Faster R-CNN, Cascade R-CNN and RetinaNet respectively. Sub means subset of different target sizes, where Small, Middle, and Large indicate object size being $< 32 \times 32$ , $32 \times 32 - 96 \times 96$ , and $> 96 \times 96$ .
+
+including the interaction category (including physical contact, body language, face expressions, eye contact and talking; multi-label annotation) and its begin/end time. The distribution and duration of interactions are shown in Fig. 3(d). The mean duration of interaction is 518 frames (17.3s). To avoid overly subjective or ambiguous cases, three rounds of cross-checking are performed.
+
+# 4. Algorithm Analysis
+
+We consider three human-centric visual analysis tasks on PANDA. The first is pedestrian detection, which biases local visual information. The second is multi-pedestrian tracking. In this task, global visual clues from different regions are taken into consideration. Based on these two well-defined tasks, we introduce the interaction-aware group detection task. In this task, both global trajectories and local interactions between persons are necessary.
+
+# 4.1. Detection
+
+Pedestrian detection is a fundamental task for human-centric visual analysis. The extremely high resolution of PANDA makes it possible to detect pedestrians from a long distance. However, the significant variance in scale, posture, and occlusion severely degrade the detection performance. In this paper, we benchmarked several state-of-the-art detection algorithms on PANDA4.
+
+Evaluation metrics. For evaluation, we choose $AP_{50}$ and $AR$ as metrics: $AP_{50}$ is the average precision at $IoU = 0.50$ and $AR$ is the average recall with $IoU$ ranging in $[0.5, 0.95]$ with a stride of 0.05.
+
+Baseline detectors. We choose Faster R-CNN [55], Cascade R-CNN [9] and RetinaNet [46] as our baseline detectors with ResNet101 [33] backbone. The implementation is based on [11]. To train the gigapixel images on our network,
+
+
+Figure 4. Left: False analysis for Faster R-CNN on Visible Body. C75, C50, Loc and BG denote PR-curve at IoU=0.75, IoU=0.5, ignoring localization errors and ignoring background false positives, respectively. Right: False negative instances (FN) v.s. All instances (ALL) in terms of person height (in pixel) distribution for Faster R-CNN on Visible Body.
+
+we resize the original size image into multiple scales and partition the image into blocks with appropriate size as neural network input. For the objects cut by block borders, we retain them if the preserved area overt $50\%$ . Similarly, for evaluation, we resize the original image into multiple scales and use the sliding window approach to generate proper size blocks for the detector. For a better analysis of detector performance and limitations, we split test results into subsets according to the object size.
+
+Results. We train these 3 detectors from the COCO pretrained weights and evaluate them on three tasks: visible body, full body, and head detection. As shown in Tab. 3, Faster R-CNN, Cascade R-CNN and RetinaNet show the difficulty in detecting small objects, resulting in very low precision and recall. We also apply false analysis on visible body using Faster R-CNN, as illustrated in Fig. 4 left. We can observe that the huge amount of false negatives is the most severe factor limiting the performance of the detector. We further analyze the height distribution of the false negative instances in Fig. 4 right. The results indicate false negative caused by missing detection of small objects is the main reason for poor recall. According to the results, it seems quite difficult to accurately detect objects in a scene with very large scale variation (most $100 \times$ in PANDA) by the single detector based on existing architectures. More advanced optimization strategies and algorithms are highly demanded for the detection task on extra-large images with large object scale variation, such as scale self-adaptive detectors and efficient global-to-local multi-stage detectors.
+
+# 4.2. Tracking
+
+Pedestrian tracking aims to associate pedestrians at different spatial positions and temporal frames. The superior properties of PANDA make it naturally suitable for long-term tracking. Yet the complex scenes with crowded pedestrian impose various challenges as well.
+
+Evaluation metrics. To evaluate the performance of multiple person tracking algorithms, we adopt the metrics of MOTChallenge [43, 51], including MOTA, MOTP,
+
+| T | D | MOTA↑ | MOTP↑ | IDF1↑ | FAR↓ | MT↑ |
| DS [68] | FR | 25.53 | 76.67 | 21.14 | 20.45 | 762 |
| CR | 24.35 | 76.31 | 21.39 | 15.59 | 661 |
| RN | 16.36 | 78.0 | 15.16 | 4.32 | 259 |
| DAN [63] | FR | 25.06 | 74.81 | 21.85 | 25.95 | 826 |
| CR | 24.24 | 78.55 | 20.13 | 12.42 | 602 |
| RN | 15.57 | 79.90 | 13.43 | 3.33 | 227 |
| MD [50] | FR | 13.51 | 78.82 | 14.92 | 6.52 | 257 |
| CR | 13.54 | 80.25 | 14.89 | 4.41 | 255 |
| RN | 10.77 | 80.62 | 11.86 | 1.90 | 162 |
+
+Table 4. Performance of multiple object tracking methods on PANDA. T is tracker, D is detector, DS, DAN and MD denote the DeepSORT [68], DAN [63] and MOTDT [50] trackers, respectively. $\uparrow$ denotes higher is better and vice versa.
+
+IDF1, FAR, MT and Hz. Multiple Object Tracking Accuracy (MOTA) computes the accuracy considering three error sources: false positives, false negatives/missed targets and identity switches. Multiple Object Tracking Precision (MOTP) takes into account the misalignment between the groundtruth and the predicted bounding boxes. ID F1 score (IDF1) measures the ratio of correctly identified detections over the average number of ground-truth and computed detections. False alarm rate (FAR) measures the average number of false alarms per frame. The mostly tracked targets (MT) measures the ratio of ground-truth trajectories that are covered by a track hypothesis for at least $80\%$ of their respective life span. The Hz indicates the processing speed of the algorithm.
+
+Baseline trackers. Three representative algorithms DeepSORT [68], DAN [63] and MOTDT [50] are evaluated. All of them follow the tracking-by-detection strategy. In our experiments, the bounding boxes are generated from 3 detection algorithms [55, 9, 46] in the previous subsection. For the sake of fairness, We use the same pretrained weights on the COCO dataset and detection threshold scores (0.7) for them. Default model parameters provided by the authors are used for evaluating three trackers.
+
+Results. Tab. 4 shows the results of DeepSORT [68], MOTDT [50] and DAN [63] on PANDA. The time cost to process a single frame is 18.36s (0.054Hz), 19.13s (0.052Hz), 8.29s (0.121Hz) for DeepSORT, MOTDT and DAN, respectively. MOTDT shows better bounding box alignment according to MOTP and FAR. DAN leads on IDF1 and MT, implying its stronger capability to establish correspondence between the detected objects in different frames. The experimental results also demonstrate the challenge of PANDA dataset. The best MOTA for DeepSORT, DAN and MOTDT on MOT16 are 61.4, 52.42 and 47.6, while drop more than half on PANDA. With regards to object detectors, Faster R-CNN performs the best and Cascade R-CNN shows similar performance. Whereas the performance of RetinaNet is relatively poor except MOTP and FAR, the reason is that RetinaNet has low recall under
+
+
+(a) Tracking Duration
+(b) Tracking Distance
+(c) Moving Speed
+
+
+(d) Scale (Height)
+(e) Scale Variation
+(f) Occlusion Degree
+Figure 5. Influence of target properties on tracker's MOTA. We divided the pedestrian targets into 3 subsets from easy to hard for each property.
+
+confidence threshold 0.7 for detection results.
+
+We further analyze the influence of different pedestrian properties, including: (a) tracking duration; (b) tracking distance; (c) moving speed; (d) scale (height); (e) scale variation (the standard deviation of height); (f) occlusion. For each property, we divided the pedestrian targets into 3 subsets from easy to hard. Besides, in order to eliminate the influence of detectors, we used the ground-truth bounding boxes as input here. Fig. 5(b)(c) show that the tracking distance and moving speed are the most influential factors to trackers' performance. In Fig. 5(a), the impact of tracking duration on tracker performance is not obvious because there are many stationary or slow moving people in the scene.
+
+# 4.3. Group Detection
+
+Group detection aims at identifying groups of people from crowds. Unlike existing datasets that focus on either the similarity of global trajectories [54] or the stability of local spatial structure [14], the advance of PANDA with joint wide-FoV global information, high-resolution local details and temporal activities imposes rich information for group detection.
+
+Furthermore, as indicated by the recent advances on trajectory embedding [30, 16], trajectory prediction [10, 13] and interaction modeling in video recognition [36, 62, 27], these tasks are strongly correlated to the group detection task. For example, modeling group interaction can help improve the trajectory prediction performance [69, 10, 13], while learning a good trajectory embedding is also beneficial for video action recognition [66, 30, 16]. However, none of previous research has investigated how those multimodal information can be incorporated into the group detection task. Hence, we propose the interaction-aware group detection task, where video data and multi-modal annotations (spatial-temporal human trajectory, face orientation, and human interaction) are provided as input for group detection.
+
+
+Figure 6. Global-to-local zoom-in framework for interaction-aware group detection. The Global Trajectory, Local Interaction, Zoom In, and Edge Merging modules are associated. Different color vertices and trajectories stand for different human entities. Line thickness represents the edge weights in the graph. (1) Global Trajectory: Trajectories are firstly fed into LSTM encoder with dropout layer to obtain embedding vectors and then construct a graph where the edge weight is L2 distance between embedding vectors. (2) Zoom In: By repeating inference with dropout activated as Stochastic Sampling [38], $E_{global}$ and $E_{uncertainty}$ are obtained from sample mean and variance respectively. (3) Local Interaction: The local interaction videos corresponding to high uncertainty edges $(I_B \sim I_D)$ are further checked using video interaction classifier (3DConvNet [32]). (4) Edge Merge and Results: Edges are merged using label propagation [73], and cliques remaining in the graph are the group detection results.
+
+**Framework.** We further design a global-to-local zoom-in framework as shown in Fig. 6 to validate the incremental effectiveness of local visual clues to global trajectories. More specifically, human entities and their relationships are represented as vertices and edges respectively in graph $G = (V, E)$ . And features from multiple scales and modalities such as the global trajectory, face orientation vector, and local interaction video are used to generate edge set $E_{\text{global}}$ and $E_{\text{local}}$ . Following a global-to-local strategy [52, 29, 45, 12], $E_{\text{global}}$ is firstly obtained by calculating L2 distance in feature space for each trajectory embedding vector, which comes from LSTM encoder like common practice [30]. After that, uncertainty-based [38, 39] and random selection policies are adopted to determine the sub-set of edges that need to be further checked using visual clues. Then, video interaction scores among entities are estimated by spatial-temporal ConvNet [32]. The combinations of obtained edge sets, e.g., $E_{\text{global}} \cup E_{\text{local}}$ or $E_{\text{global}}$ , are merged using label propagation [73], and the cliques remaining in the graph are the group detection results. Finally, we can estimate the incremental effectiveness with the performance metrics specified in [14] under different combinations.
+
+Results. The details about network structure, zoom-in policy, and edge merging strategy are placed in supplemental material S.4.3.1, S.4.3.2, and S.4.3.3 respectively, while experimental results are shown in Tab. 5. Half metrics [14] including precision, recall, and F1 where group member $IoU = 0.5$ are used for evaluation. The performance is improved significantly by leveraging $E_{local}$ as well as uncertainty estimation, which further validates the effectiveness of local visual clues provided by PANDA.
+
+| Edge Sets | Zoom In | Precision | Recall | F1 |
| Eglobal | / | 0.237 | 0.120 | 0.160 |
| Eglobal ∪ Elocal | Random | 0.244 | 0.133 | 0.172 |
| Eglobal ∪ Elocal | Uncertainty | 0.293 | 0.160 | 0.207 |
+
+Table 5. Incremental Effectiveness (half metric [14]). The random zoom-in policy randomly selects several local videos to estimate interaction score while the uncertainty-based one selects local videos depending on the uncertainty estimation from Stochastic Dropout Sample [38].
+
+# 5. Conclusion
+
+In this paper, we introduced a gigapixel-level video dataset (PANDA) for large-scale, long-term, and multi-object human-centric visual analysis. The videos in PANDA are equipped with both wide FoV and high spatial resolution. Rich and hierarchical annotations are provided. We benchmarked several state-of-the-art algorithms for the fundamental human-centric tasks, pedestrian detection and tracking. The results demonstrate that they are heavily challenged for accuracy due to the significant variance of pedestrian pose, scale, occlusion and trajectory, etc., and efficiency due to the large image size and the huge amount of objects in single frame. Besides, we introduced a new task, termed as interaction-aware group detection based on the characteristics of PANDA. We proposed a global-to-local zoom-in framework which combines both global trajectories and local interactions, yielding promising group detection performance. Based on PANDA, we believe the community will develop new effective and efficient algorithms for understanding complicated behaviors and interactions of crowd in large-scale real-world scenes.
+
+# References
+
+[1] Xavier Alameda-Pineda, Jacopo Staiano, Ramanathan Subramanian, Ligia Batrinca, Elisa Ricci, Bruno Lepri, Oswald Lanz, and Nicu Sebe. Salsa: A novel dataset for multimodal group behavior analysis. IEEE transactions on pattern analysis and machine intelligence, 38(8):1707-1720, 2015. 2, 3
+[2] Mykhaylo Andriluka, Umar Iqbal, Eldar Insafutdinov, Leonid Pishchulin, Anton Milan, Juergen Gall, and Bernt Schiele. Posetrack: A benchmark for human pose estimation and tracking. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5167-5176, 2018. 3
+[3] Inc. Aqueti. Aqueti mantis 70 array cameras webpage. https://www.aqueti.com/. Accessed 2019.3
+[4] Loris Bazzani, Marco Cristani, Diego Tosato, Michela Farenzena, Giulia Paggetti, Gloria Menegaz, and Vittorio Murino. Social interactions by visual focus of attention in a three-dimensional environment. Expert Systems, 30(2):115-127, 2013. 2, 3
+[5] Ben Benfold and Ian Reid. Stable multi-target tracking in real-time surveillance video. In CVPR 2011, pages 3457-3464. IEEE, 2011. 3
+[6] Scott Blunsden and RB Fisher. The behave video dataset: ground truthed video for multi-person behavior classification. Annals of the BMVA, 4(1-12):4, 2010. 1, 2, 3
+[7] David J. Brady, Michael E. Gehm, Ronald A. Stack, Daniel L. Marks, David S. Kittle, Dathon R. Golish, Esteban Vera, and Steven D. Feller. Multiscale gigapixel photography. Nature, 486:386-389, 2012. 2, 3
+[8] Markus Braun, Sebastian Krebs, Fabian Flohr, and Dariu Gavrila. Eurocity persons: a novel benchmark for person detection in traffic scenes. IEEE transactions on pattern analysis and machine intelligence, 2019. 3
+[9] 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. 1, 6, 7
+[10] Rohan Chandra, Uttaran Bhattacharya, Aniket Bera, and Dinesh Manocha. Traphic: Trajectory prediction in dense and heterogeneous traffic using weighted interactions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8483-8492, 2019. 7
+[11] Kai Chen, Jiaqi Wang, Jiangmiao Pang, Yuhang Cao, Yu Xiong, Xiaoxiao Li, Shuyang Sun, Wansen Feng, Ziwei Liu, Jiarui Xu, Zheng Zhang, Dazhi Cheng, Chenchen Zhu, Tianheng Cheng, Qijie Zhao, Buyu Li, Xin Lu, Rui Zhu, Yue Wu, Jifeng Dai, Jingdong Wang, Jianping Shi, Wanli Ouyang, Chen Change Loy, and Dahua Lin. MMDetection: Open mmlab detection toolbox and benchmark. arXiv preprint arXiv:1906.07155, 2019. 6
+[12] Wuyang Chen, Ziyu Jiang, Zhangyang Wang, Kexin Cui, and Xiaoning Qian. Collaborative global-local networks for memory-efficient segmentation of ultra-high resolution images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8924-8933, 2019. 8
+
+[13] Chiho Choi and Behzad Dariush. Learning to infer relations for future trajectory forecast. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 0–0, 2019. 7
+[14] Wongun Choi, Yu-Wei Chao, Caroline Pantofaru, and Silvio Savarese. Discovering groups of people in images. In European conference on computer vision, pages 417-433. Springer, 2014. 2, 3, 5, 7, 8
+[15] Wongun Choi, Khuram Shahid, and Silvio Savarese. What are they doing?: Collective activity classification using spatio-temporal relationship among people. In 2009 IEEE 12th International Conference on Computer Vision Workshops, ICCV Workshops, pages 1282-1289. IEEE, 2009. 2, 3
+[16] John D Co-Reyes, YuXuan Liu, Abhishek Gupta, Benjamin Eysenbach, Pieter Abbeel, and Sergey Levine. Self-consistent trajectory autoencoder: Hierarchical reinforcement learning with trajectory embeddings. arXiv preprint arXiv:1806.02813, 2018. 7
+[17] Creative Commons. Commons attribution-noncommercial-sharealike 4.0 license. https://creativecommons.org/licenses/by-nc-sa/4.0/.3
+[18] Marco Cristani, Loris Bazzani, Giulia Paggetti, Andrea Fossati, Diego Tosato, Alessio Del Bue, Gloria Menegaz, and Vittorio Murino. Social interaction discovery by statistical analysis of f-formations. In BMVC, volume 2, page 4, 2011. 1, 2, 3
+[19] Navneet Dalal and Bill Triggs. Histograms of oriented gradients for human detection. 2005. 3
+[20] Patrick Dendorfer, Hamid Rezatofighi, Anton Milan, Javen Shi, Daniel Cremers, Ian Reid, Stefan Roth, Konrad Schindler, and Laura Leal-Taixe. Cvpr19 tracking and detection challenge: How crowded can it get? arXiv preprint arXiv:1906.04567, 2019. 3, 5
+[21] Piotr Dollar, Christian Wojek, Bernt Schiele, and Pietro Perona. Pedestrian detection: An evaluation of the state of the art. IEEE transactions on pattern analysis and machine intelligence, 34(4):743-761, 2011. 1, 3, 4
+[22] Marshall P Duke and Stephen Nowicki. A new measure and social-learning model for interpersonal distance. Journal of Experimental Research in Personality, 1972. 5
+[23] Markus Enzweiler and Dariu M Gavrila. Monocular pedestrian detection: Survey and experiments. IEEE transactions on pattern analysis and machine intelligence, 31(12):2179-2195, 2008. 3
+[24] Goffman Erving. Behavior in public places: notes on the social organization of gatherings. New York, 1963. 3
+[25] Andreas Ess, Bastian Leibe, Konrad Schindler, and Luc Van Gool. A mobile vision system for robust multi-person tracking. In 2008 IEEE Conference on Computer Vision and Pattern Recognition, pages 1-8. IEEE, 2008. 3
+[26] 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, 2
+[27] Christoph Feichtenhofer, Haoqi Fan, Jitendra Malik, and Kaiming He. Slowfast networks for video recognition. arXiv preprint arXiv:1812.03982, 2018. 7
+
+[28] James Ferryman and Ali Shahrokni. Pets2009: Dataset and challenge. In 2009 Twelfth IEEE international workshop on performance evaluation of tracking and surveillance, pages 1-6. IEEE, 2009. 1, 2, 3
+[29] 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 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 6926-6935, 2018. 8
+[30] Qiang Gao, Fan Zhou, Kunpeng Zhang, Goce Trajcevski, Xucheng Luo, and Fengli Zhang. Identifying human mobility via trajectory embeddings. In IJCAI, volume 17, pages 1689-1695, 2017. 7, 8
+[31] Andreas Geiger, Philip Lenz, and Raquel 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. IEEE, 2012. 3, 5
+[32] Kensho Hara, Hirokatsu Kataoka, and Yutaka Satoh. Can spatiotemporal 3d cnns retrace the history of 2d cnns and imagenet? In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 6546-6555, 2018. 8
+[33] 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. 1, 6
+[34] 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
+[35] Hayley Hung and Ben Kröse. Detecting f-formations as dominant sets. In Proceedings of the 13th international conference on multimodal interfaces, pages 231-238. ACM, 2011. 3
+[36] Mostafa S Ibrahim, Srikanth Muralidharan, Zhiwei Deng, Arash Vahdat, and Greg Mori. A hierarchical deep temporal model for group activity recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1971-1980, 2016. 2, 3, 7
+[37] Hanbyul Joo, Hao Liu, Lei Tan, Lin Gui, Bart Nabbe, Iain Matthews, Takeo Kanade, Shohei Nobuhara, and Yaser Sheikh. Panoptic studio: A massively multiview system for social motion capture. In Proceedings of the IEEE International Conference on Computer Vision, pages 3334-3342, 2015. 2, 3
+[38] Alex Kendall, Vijay Badrinarayanan, and Roberto Cipolla. Bayesian segnet: Model uncertainty in deep convolutional encoder-decoder architectures for scene understanding. arXiv preprint arXiv:1511.02680, 2015. 8
+[39] Alex Kendall and Yarin Gal. What uncertainties do we need in bayesian deep learning for computer vision? In Advances in neural information processing systems, pages 5574-5584, 2017. 8
+[40] Adam Kendon. Conducting interaction: Patterns of behavior in focused encounters, volume 7. CUP Archive, 1990. 3
+[41] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural net
+
+works. In Advances in Neural Information Processing Systems 25: 26th Annual Conference on Neural Information Processing Systems 2012. Proceedings of a meeting held December 3-6, 2012, Lake Tahoe, Nevada, United States., pages 1106-1114, 2012. 1
+[42] 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. 2
+[43] Laura Leal-Taixe, Anton Milan, Ian Reid, Stefan Roth, and Konrad Schindler. Motchallenge 2015: Towards a benchmark for multi-target tracking. arXiv preprint arXiv:1504.01942, 2015. 3, 6
+[44] Alon Lerner, Yiorgos Chrysanthou, and Dani Lischinski. Crowds by example. In Computer graphics forum, volume 26, pages 655-664. Wiley Online Library, 2007. 2, 3
+[45] Hongyang Li, Yu Liu, Wanli Ouyang, and Xiaogang Wang. Zoom out-and-in network with map attention decision for region proposal and object detection. International Journal of Computer Vision, 127(3):225-238, 2019. 8
+[46] Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dólar. Focal loss for dense object detection. In Proceedings of the IEEE international conference on computer vision, pages 2980-2988, 2017. 1, 6, 7
+[47] 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. 1, 2
+[48] Weiyao Lin, Yuxi Li, Hao Xiao, John See, Junni Zou, Hongkai Xiong, Jingdong Wang, and Tao Mei. Group re-identification with multi-grained matching and integration. arXiv preprint arXiv:1905.07108, 2019. 3
+[49] Thor List, Jos Bins, Jose Vazquez, and Robert B Fisher. Performance evaluating the evaluator. In 2005 IEEE International Workshop on Visual Surveillance and Performance Evaluation of Tracking and Surveillance, pages 129-136. IEEE, 2005. 2, 3
+[50] Chen Long, Ai Haizhou, Zhuang Zijie, and Shang Chong. Real-time multiple people tracking with deeply learned candidate selection and person re-identification. In ICME, 2018. 1, 7
+[51] Anton Milan, Laura Leal-Taixe, Ian Reid, Stefan Roth, and Konrad Schindler. Mot16: A benchmark for multi-object tracking. arXiv preprint arXiv:1603.00831, 2016. 1, 3, 6
+[52] Mahyar Najibi, Bharat Singh, and Larry S. Davis. Autofocus: Efficient multi-scale inference. arXiv preprint arXiv:1812.01600, 2018. 8
+[53] Sangmin Oh, Anthony Hoogs, Amitha Perera, Naresh Cunteor, Chia-Chih Chen, Jong Taek Lee, Saurajit Mukherjee, JK Aggarwal, Hyungtae Lee, Larry Davis, et al. A large-scale benchmark dataset for event recognition in surveillance video. In CVPR 2011, pages 3153-3160. IEEE, 2011. 2, 3
+[54] Stefano Pellegrini, Andreas Ess, Konrad Schindler, and Luc Van Gool. You'll never walk alone: Modeling social be
+
+havior for multi-target tracking. In 2009 IEEE 12th International Conference on Computer Vision, pages 261-268. IEEE, 2009. 2, 3, 5, 7
+[55] 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. 1, 6, 7
+[56] Ergys Ristani, Francesco Solera, Roger Zou, Rita Cucchiara, and Carlo Tomasi. Performance measures and a data set for multi-target, multi-camera tracking. In European Conference on Computer Vision, pages 17-35. Springer, 2016. 1, 3
+[57] Alexandre Robicquet, Amir Sadeghian, Alexandre Alahi, and Silvio Savarese. Learning social etiquette: Human trajectory understanding in crowded scenes. In European conference on computer vision, pages 549-565. Springer, 2016. 3
+[58] 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. International journal of computer vision, 115(3):211-252, 2015. 1, 2
+[59] Jing Shao, Chen Change Loy, and Xiaogang Wang. Scene-independent group profiling in crowd. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2219-2226, 2014. 3
+[60] 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 The IEEE International Conference on Computer Vision (ICCV), October 2019. 2
+[61] Shuai Shao, Zijian Zhao, Boxun Li, Tete Xiao, Gang Yu, Xiangyu Zhang, and Jian Sun. Crowdhuman: A benchmark for detecting human in a crowd. arXiv preprint arXiv:1805.00123, 2018. 3
+[62] Tianmin Shu, Sinisa Todorovic, and Song-Chun Zhu. Cern: confidence-energy recurrent network for group activity recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5523-5531, 2017. 7
+[63] ShiJie Sun, Naveed Akhtar, HuanSheng Song, Ajmal S Mian, and Mubarak Shah. Deep affinity network for multiple object tracking. IEEE transactions on pattern analysis and machine intelligence, 2019. 1, 7
+[64] Antonio Torralba, Robert Fergus, and William T. Freeman. 80 million tiny images: A large data set for nonparametric object and scene recognition. IEEE Trans. Pattern Anal. Mach. Intell., 30(11):1958-1970, 2008. 1
+[65] Alessandro Vinciarelli, Maja Pantic, and Hervé Bourlard. Social signal processing: Survey of an emerging domain. Image Vision Comput., 27:1743-1759, 2009. 5
+[66] Limin Wang, Yu Qiao, and Xiaou Tang. Action recognition with trajectory-pooled deep-convolutional descriptors. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4305–4314, 2015. 7
+[67] Christian Wojek, Stefan Walk, and Bernt Schiele. Multi-cue onboard pedestrian detection. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pages 794-801. IEEE, 2009. 3
+
+[68] Nicolai Wojke, Alex Bewley, and Dietrich Paulus. Simple online and realtime tracking with a deep association metric. In 2017 IEEE International Conference on Image Processing (ICIP), pages 3645-3649. IEEE, 2017. 1, 7
+[69] Yanyu Xu, Zhixin Piao, and Shenghua Gao. Encoding crowd interaction with deep neural network for pedestrian trajectory prediction. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5275-5284, 2018. 7
+[70] Xiaoyun Yuan, Lu Fang, Qionghai Dai, David J Brady, and Yebin Liu. Multiscale gigapixel video: A cross resolution image matching and warping approach. In Computational Photography (ICCP), 2017 IEEE International Conference on, pages 1-9. IEEE, 2017. 2, 3
+[71] Francesco Zanlungo, Drazen Brščić, and Takayuki Kanda. Pedestrian group behaviour analysis under different density conditions. *Transportation Research Procedia*, 2:149–158, 2014. 1
+[72] Gloria Zen, Bruno Lepri, Elisa Ricci, and Oswald Lanz. Space speaks: towards socially and personality aware visual surveillance. In Proceedings of the 1st ACM international workshop on Multimodal pervasive video analysis, pages 37-42. ACM, 2010. 2, 3
+[73] Xiaohang Zhan, Ziwei Liu, Junjie Yan, Dahua Lin, and Chen Change Loy. Consensus-driven propagation in massive unlabeled data for face recognition. In Proceedings of the European Conference on Computer Vision (ECCV), pages 568-583, 2018. 8
+[74] Cong Zhang, Kai Kang, Hongsheng Li, Xiaogang Wang, Rong Xie, and Xiaokang Yang. Data-driven crowd understanding: A baseline for a large-scale crowd dataset. IEEE Transactions on Multimedia, 18(6):1048-1061, 2016. 3
+[75] Shanshan Zhang, Rodrigo Benenson, and Bernt Schiele. Citypersons: A diverse dataset for pedestrian detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3213-3221, 2017. 3, 4
+[76] Shifeng Zhang, Yiliang Xie, Jun Wan, Hansheng Xia, Stan Z Li, and Guodong Guo. Widerperson: A diverse dataset for dense pedestrian detection in the wild. IEEE Transactions on Multimedia, 2019. 3
+[77] 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. 3
+[78] Bolei Zhou, Xiaogang Wang, and Xiaou Tang. Understanding collective crowd behaviors: Learning a mixture model of dynamic pedestrian-agents. In 2012 IEEE Conference on Computer Vision and Pattern Recognition, pages 2871-2878. IEEE, 2012. 3
+[79] Pengfei Zhu, Longyin Wen, Xiao Bian, Haibin Ling, and Qinghua Hu. Vision meets drones: A challenge. arXiv preprint arXiv:1804.07437, 2018. 3
\ No newline at end of file
diff --git a/pandaagigapixellevelhumancentricvideodataset/images.zip b/pandaagigapixellevelhumancentricvideodataset/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..733ab5a9d33d9e1a4e9099379774ddb5c5cbb5f1
--- /dev/null
+++ b/pandaagigapixellevelhumancentricvideodataset/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8a97cae01a6e695069d6f14757dd2da5804910d129e7b75de76abaa8e0dd8fc3
+size 611904
diff --git a/pandaagigapixellevelhumancentricvideodataset/layout.json b/pandaagigapixellevelhumancentricvideodataset/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..048bcd855d6621eeadcc5194a2418789d6ce819f
--- /dev/null
+++ b/pandaagigapixellevelhumancentricvideodataset/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5a77fd6a2144afe41e020828fdd707638c87902b99498fa1bd099e6caa398bed
+size 402719
diff --git a/pandanetanchorbasedsingleshotmultiperson3dposeestimation/a57c9329-0a78-4085-8702-c98a23e0f9e3_content_list.json b/pandanetanchorbasedsingleshotmultiperson3dposeestimation/a57c9329-0a78-4085-8702-c98a23e0f9e3_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..cc87943680fd2770213e21a6e4930f49d4e46853
--- /dev/null
+++ b/pandanetanchorbasedsingleshotmultiperson3dposeestimation/a57c9329-0a78-4085-8702-c98a23e0f9e3_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:48c9c6d989b7b074e3845826e8fc59b9f6fd45f8a2996f344857613ed7578c82
+size 77709
diff --git a/pandanetanchorbasedsingleshotmultiperson3dposeestimation/a57c9329-0a78-4085-8702-c98a23e0f9e3_model.json b/pandanetanchorbasedsingleshotmultiperson3dposeestimation/a57c9329-0a78-4085-8702-c98a23e0f9e3_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..14e7669c0543cd67f9d5cf231bf6d1a444a64b8d
--- /dev/null
+++ b/pandanetanchorbasedsingleshotmultiperson3dposeestimation/a57c9329-0a78-4085-8702-c98a23e0f9e3_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7ed784d5fd40a133d6ad446c364205088615b78ee0d6595f37125f8ff59cf2a4
+size 95594
diff --git a/pandanetanchorbasedsingleshotmultiperson3dposeestimation/a57c9329-0a78-4085-8702-c98a23e0f9e3_origin.pdf b/pandanetanchorbasedsingleshotmultiperson3dposeestimation/a57c9329-0a78-4085-8702-c98a23e0f9e3_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..39b22a627e31d4d5cee5b68ee42bd022ace146d2
--- /dev/null
+++ b/pandanetanchorbasedsingleshotmultiperson3dposeestimation/a57c9329-0a78-4085-8702-c98a23e0f9e3_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6a54a915672d314514f64bc353a9387916193a2e65b2492cc3ce272b451e9bb4
+size 983539
diff --git a/pandanetanchorbasedsingleshotmultiperson3dposeestimation/full.md b/pandanetanchorbasedsingleshotmultiperson3dposeestimation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..d61816eac361b9002598d716ae1c2baf5deef964
--- /dev/null
+++ b/pandanetanchorbasedsingleshotmultiperson3dposeestimation/full.md
@@ -0,0 +1,344 @@
+# PandaNet : Anchor-Based Single-Shot Multi-Person 3D Pose Estimation
+
+Abdallah Benzine*, Florian Chabot*, Bertrand Luvison*, Quoc Cuong Pham*, Catherine Achard †
+* CEA LIST Vision and Learning Lab for Scene Analysis
+† Sorbonne University, CNRS, Institute for Intelligent Systems and Robotics
+
+
+Figure 1: Qualitative results of PandaNet on JTA dataset [8] which consists in images with many people (up to 60), a large proportion of people at low resolution and many occlusion situations. Most of the previous 3D human pose estimation studies mainly focused on the single-person case or estimate 3D pose of few people at high resolution. In this paper, we propose an anchor-based and single-shot multi-person 3D pose estimation framework that allows the pose estimation of a large number of people at low resolution. Ground-truth translations and scales are used for visualisation.
+
+# Abstract
+
+Recently, several deep learning models have been proposed for 3D human pose estimation. Nevertheless, most of these approaches only focus on the single-person case or estimate 3D pose of a few people at high resolution. Furthermore, many applications such as autonomous driving or crowd analysis require pose estimation of a large number of people possibly at low-resolution. In this work, we present PandaNet (Pose estimAtioN and Detection Anchor-based Network), a new single-shot, anchor-based and multi-person 3D pose estimation approach. The proposed model performs bounding box detection and, for each detected person, 2D and 3D pose regression into a single forward pass. It does not need any post-processing to re-group joints since the network predicts a full 3D pose for each bounding box and allows the pose estimation of a possibly large number of people at low resolution. To manage people overlapping, we introduce a Pose-Aware Anchor Selection strategy. Moreover, as imbalance exists between different people sizes in the image, and joints coordinates have
+
+different uncertainties depending on these sizes, we propose a method to automatically optimize weights associated to different people scales and joints for efficient training. PandaNet surpasses previous single-shot methods on several challenging datasets: a multi-person urban virtual but very realistic dataset (JTA Dataset), and two real world 3D multi-person datasets (CMU Panoptic and MuPoTS-3D).
+
+# 1. Introduction
+
+3D human pose estimation is a common addressed problem in Computer Vision. It has many applications such as crowd analysis, autonomous driving, human computer interaction or motion capture. 3D pose is a low dimensional and interpretable representation that allows to understand and anticipate human behavior. Great progresses have been achieved thanks to large scale datasets with 2D annotations (LSP [13], MPII [1], COCO [22], CrowdPose [18]) and 3D annotations (Human 3.6M [12], MPI-INF-3DHP [25], MuCo-3D-HP [28], CMU Panoptic [14]). Nevertheless, this problem remains hard as the human body is an articu
+
+lated object whose terminal joints are very mobile and thus difficult to be precisely located. In addition, real-world applications require to handle a large number of people and crowded images like the ones in Figure 2b, 2c and 2d. To handle these challenging conditions, models need to be robust to people occlusions and to low resolution (i.e. people that occupy a small portion of the image). They also need to be fast and to handle a large number of people. Most existing approaches focus on 3D pose estimation of either a single person or a limited number of people that are relatively close to the camera.
+
+Although top-down and two-stage based methods are currently considered as best performing in the state of the art, these approaches become slow in crowded scenes as their computation complexity increases with the number of people. On the contrary, bottom-up approaches perform their forward pass with a constant complexity. Existing bottom-up single-shot methods rely on heatmaps prediction followed by complex post-processing steps to properly re-group joints detections into full human skeletons. 3D coordinates of joints are stored in maps at their corresponding 2D position. Consequently, if 2D localisation or 2D association of joints fails, 3D pose estimation will also fail. These approaches can also fail for other reasons. First, they lack precision at low resolution because of the downsampling factor between the input image and the predicted heatmaps. Second, heatmaps are usually not sharp enough to distinguish two very close joints of the same type. Finally, 3D coordinates of two overlapping joints cannot be stored at the same 2D location causing erroneous 3D pose estimation. For all these reasons, we believe that heatmap based approaches are not suited for robust 3D pose estimation for occluded people at low resolution.
+
+In this paper, we introduce PandaNet (Pose estimation and Detection Anchor-based Network), a new single-shot approach that performs bounding box detection in a dense way and regresses 2D and 3D human poses for each detected person. To this end, three contributions are proposed.
+
+First, an anchor based representation is adopted. An anchor that matches a subject stores its full 3D pose. This avoids problems induced by occlusion of joints. Additionally, this anchor-based formulation allows lower resolution outputs than heatmap one since a single output pixel is enough to store the entire subject's pose. This property is important to efficiently process people at low resolution.
+
+Second, a Pose-Aware Anchor Selection strategy discards ambiguous anchors during inference. Indeed, ambiguous anchors overlap parts of several people and do not allow a readout of consistent 3D poses.
+
+Third, an automatic weighting of losses with homoscedastic uncertainty handles imbalance between people sizes in the image and uncertainties associated to human pose predictions.
+
+
+(a)
+
+
+(b)
+
+
+(c)
+Figure 2: Different real-world contexts for 3D human pose estimation. Recent 3D multi-person estimation approaches focus on 3D pose estimation of a few people close to the camera like in a). This context is yet challenging because of frequent inter-people occlusions. 3D pose estimation is even more difficult in applications such as sport analysis (b), autonomous driving (c) or crowd analysis (d) with a large number of people at low resolution.
+
+
+(d)
+
+Contrary to previous top-down multi-person approaches, PandaNet has a forward inference complexity that does not depend on the number of people in the image. It can efficiently process images with a large number of people (cf. Figure 1). The proposed model is validated on three 3D datasets. The first one is the Joint Track Auto dataset (JTA) [8], a rich, synthetic but very realistic urban dataset with a large number of people (up to 60) and occlusion situations. The second one is the Panoptic dataset [14], an indoor dataset with many interactions and social activities. The third one is the MuPoTS-3D dataset [28], a dataset with a reduced number of people but various indoor and outdoor contexts. Our results outperform those of previous single-shot methods on all these datasets.
+
+# 2. Related Work
+
+2D multi-person pose estimation. Two main approaches in multi-person 2D pose estimation can be distinguished: top-down and bottom-up approaches. Methods of the former category first perform human detection then estimate a 2D pose within the detected bounding box. On the other hand, bottom-up approaches localise all human body keypoints in an input image and then group these keypoints into full 2D human skeletons. Each of them has advantages and disadvantages. Bottom-up methods are generally faster and seems more suited for crowded scenes since they process the entire image at once. However, available benchmarks show that top-down approaches are more accurate as they process all subjects at the same scale.
+
+State of the art bottom-up approaches [4, 31, 16] differ on their association method. Cao et al. [4] propose Part Affinity Fields that are 2D vectors modeling the associations between children and parent joints. They are used to regroup 2D predictions of joints into full 2D skeletons. Newell et al. [31] perform this grouping by training the network to predict similar tag values to joints belonging to the
+
+same person and different tag values for joints belonging to different people. Kreiss el al. [17] propose a bottom-up approach to handle people at low resolution in crowded images. Their model predicts Part Intensity Fields (PIF) that are similar to the offsets and heatmaps in [32] and Part Associative Field (PAF) that has a composite structure.
+
+The methods in [11, 6, 32, 46, 19, 10] are top-down approaches. Mask R-CNN [11] detect keypoints as a segmentation task. The method in [32] performs 2D offsets and 2D heatmaps prediction and fuses these predictions to generate more precise heatmaps. Chen et al. [6] propose a cascaded pyramid network to generate 2D poses with a refinement process that focuses on hard keypoints. Xiao et al. [46] present a simple architecture with deep backbone and several upsampling layers.
+
+While top-down approaches achieve higher 2D pose estimation scores in standard benchmarks than bottom-up approaches, most of these approaches fail in scenes with frequent and strong occlusions. Indeed, these methods depend on the predicted bounding boxes. In crowded scenes, bounding boxes, even if correct, may contain parts of other people. This situation is not well managed by existing methods. Li et al. [19] introduce a new benchmark to evaluate 2D human pose models on crowded scenes and a method that performs multi-peak predictions for each joint and a global maximum joint association. Golda et al. [10] propose an approach that explicitly detects occluded body parts, uses a data augmentation method to generate occlusions and exploits a synthetic generated dataset.
+
+Single-person 3D pose estimation. There are two categories of single person 3D pose estimation approaches: direct and reconstruction approaches. Direct approaches estimate the 3D pose directly from an input image while reconstruction methods first take as input 2D poses provided by a 2D pose estimation model and lift them to the 3D space.
+
+The approaches described in [9, 24] are reconstruction-based methods. Martinez et al. [24] regress 3D pose from 2D pose input by using a simple architecture with residual connections and batch normalisation. Fang et al. [9] use a pose grammar model that takes into account the connections between human joints. These reconstruction approaches are limited by the 2D pose estimator performance and do not take into account important images clues, such as contextual information, to make the prediction.
+
+The models in [20, 34, 42, 43, 44, 50, 47] are direct approaches. Li et al. [20] simultaneously learn 3D pose regression and body part detection. Tekin et al. [44] predict 3D poses in an embedding space learned by an autoencoder. Pavlakos et al. [33] adopt a volumetric representation and a coarse to fine architecture to predict 3D poses. Sun et al. [42] take into account the connection structure between joints by proposing a compositional loss. Sun et al. [43] use the soft-argmax layer to extract 3D coordinates from a
+
+3D volumetric representation in a differentiable way. Zhou et al. [50] use a geometric loss based on bones constraints to weakly supervise the depth regression module on in the wild images. Yang et al. [47] improve generalisation to in the wild images thanks to an adversarial loss.
+
+Multi-person 3D pose estimation. Multi-person 3D pose estimation has been less studied. It is a difficult problem that adds to the 2D multi-person management difficulty, that of depth estimation. Zanfir et al. [49] estimate the 3D human shape from sequences of frames. A pipeline process is followed by a 3D pose refinement based on a nonlinear optimisation process and semantic constraints. In a top-down approach, Rogez et al. [39, 40] generate human pose proposals that are classified into anchor-poses and further refined using a regressor. Moon et al. [29] propose a camera distance aware multi-person top-down approach that performs human detection (DetectNet), absolute 3D human localisation (RootNet) and root relative 3D human pose estimation (PoseNet). These approaches perform redundant estimations that need to be filtered or fused, and scales badly with a large number of people.
+
+All existing single-shot methods estimate both 2D and 3D human poses and rely on heatmaps to detect individual joints in the image. Mehta et al. [28] propose a bottom-up approach system that predicts Occlusion-Robust Pose Maps (ORPM) and Part Affinity Fields [4] to manage multiperson 3D pose estimation even for occluded and cropped people. Benzine et al. [2, 3] perform single-shot multiperson 3D pose estimation by extending the 2D multiperson model in [31] to predict ORPM. ORPM based methods predict a fixed number of 2D heatmaps and ORPM, whatever the number of people in the image. 3D coordinates are stored multiple times in the ORPM allowing the readout of 3D coordinates at non occluded and reliable 2D positions. Nevertheless, this formulation implies potential conflicts when similar joints of different people overlap. In the same way, MubyNet [48] also uses a fixed number of output maps to store 2D and 3D poses of all people in the image. However, the full 3D pose vector is stored at all 2D positions of the subject skeleton increasing the number of potential conflicts. The model learns to score the possible associations of joints to limbs and a global optimisation problem is solved to group the joints into full skeletons. XNect [27] estimates 3D poses in two steps. The first step improves the method of [28] by encoding only the joints' immediate context, which reduces the number of potential conflicts. The second step refines the 3D poses.
+
+PandaNet is a single-shot approach like [48, 28, 2, 27] but is anchor-based rather than heatmap-based. It is based on LapNet [5], a single-shot object detection model which has today the best accuracy/inference time trade-off. Unlike LapNet that is a 2D object detector, PandaNet is intended for multi- person 3D pose estimation and differs from Lap
+
+Net in the prediction heads (introduced in subsection 3.1), in the anchor selection strategy (described in subsection 3.4) and in the automatic weighting of losses (described in subsection 3.5). It efficiently processes images with many people, strong occlusion and various sizes in the image with a complexity that does not depend on their number.
+
+# 3. Method
+
+# 3.1. Overview
+
+Given an input image, PandaNet predicts a dense set of human bounding boxes with their associated confidence scores, 2D and 3D poses. These boxes are then filtered using non-maximum suppression to provide the final detections and human poses. As in most detection approaches [37, 23, 35, 21, 5], our model uses predefined anchors. These anchors are computed on the training dataset with the clustering method used in [5, 35]. We define $N_{A}$ to be the number of predefined human anchors used in the model, $N_{K}$ the number of human joints and $H$ and $W$ the height and the width of the network output. The model returns: (1) Score maps $\hat{C} \in \mathbb{R}^{H \times W \times N_{A}}$ that contain the probability of an anchor to contain a subject (2) Box offsets maps $\hat{B} \in \mathbb{R}^{H \times W \times N_{A} \times 4}$ (3) 2D joints coordinates maps $\hat{P}^{2D} \in \mathbb{R}^{H \times W \times N_{A} \times N_{K} \times 2}$ that contain the full 2D pose vectors expressed relatively to their corresponding anchor (4) 3D joints coordinates maps $\hat{P}^{3D} \in \mathbb{R}^{H \times W \times N_{A} \times N_{K} \times 3}$ that contain root relative 3D human poses.
+
+PandaNet is a multi-task network based on LapNet, the single-shot object detection model proposed in [5] which has today the best accuracy/inference time trade-off. The architecture of the proposed model, detailed in Figure 3, slightly differs from LapNet. First, sub-pixel convolutions are applied [41] to the feature maps to obtain higher resolution maps that are crucial to detect and estimate the human pose of people at low resolution. Secondly, a 2D pose and 3D pose regression heads are added.
+
+# 3.2. Anchor-based Multi-person Pose Formulation
+
+For a given image $I$ , we define $\mathcal{B} = \{b_n \in \mathbb{R}^4\}$ as the set of ground truth bounding boxes $n \in [1, \ldots, N]$ and $N$ is the number of visible people. $\mathcal{P}^{2D} = \{p_n^{2D} \in \mathbb{R}^{2 \times N_K}\}$ and $\mathcal{P}^{3D} = \{p_n^{3D} \in \mathbb{R}^{3 \times N_K}\}$ are the sets of corresponding 2D and 3D human poses.
+
+In order to train PandaNet, a grid of anchors $A \in \mathbb{R}^{H \times W \times N_A \times 4}$ is defined. $A_{i,j,a}$ is an element of this grid at output position $(i,j)$ for anchor $a$ . Let $B \in \mathbb{R}^{H \times W \times N_A \times 4}$ be the grid of matched bounding boxes, each of its element is defined as:
+
+$$
+B _ {i, j, a} = \underset {b _ {n} \in \mathcal {B}} {\operatorname {a r g m a x}} I o U \left(b _ {n}, A _ {i, j, a}\right) \tag {1}
+$$
+
+Similarly, $P^{2D}$ and $P^{3D}$ are defined respectively as the
+
+grids of matched 2D poses and 3D poses:
+
+$$
+P _ {i, j, a} ^ {2 D} = p _ {n} ^ {2 D} \mid b _ {n} = B _ {i, j, a} \tag {2}
+$$
+
+$$
+P _ {i, j, a} ^ {3 D} = p _ {n} ^ {3 D} \mid b _ {n} = B _ {i, j, a} \tag {3}
+$$
+
+In other words, $P_{i,j,a}^{2D}$ and $P_{i,j,a}^{3D}$ are the 2D and 3D human poses of the subject matched by the anchor $A_{i,j,a}$
+
+The Per-Object Normalised Overlap (PONO) map [5] $O$ is used. $O_{i,j,a}$ is the IoU between anchor $A_{i,j,a}$ and ground truth $B_{i,j,a}$ , normalised by the maximum overlap between $B_{i,j,a}$ and all matched anchors to this ground truth.
+
+The positive anchors $\mathcal{A}^+$ are the set of matched anchors that have a PONO value greater than 0.5. Only bounding boxes and human poses associated to anchors in $\mathcal{A}^+$ will be supervised, like described in the next subsection.
+
+# 3.3. Bounding box offsets and human poses supervision
+
+# 3.3.1 IoU based bounding-box offsets supervision
+
+Most detection approaches use SmoothL1 or Mean Squared Error losses to predict bounding box offsets that fit the ground truth bounding boxes. More recently, some methods prefer to optimize the Intersection over Union (IoU) loss [45, 5] or its extension [38] taking benefit of its invariance to scale. We also used the IoU loss to supervise bounding box offsets prediction and, for an anchor $a$ at location $(i,j)$ , we define the overlap function as:
+
+$$
+\hat {O} _ {i, j, a} = I o U \left(B _ {i, j, a}, \hat {B} _ {i, j, a}\right) \tag {4}
+$$
+
+where $\hat{B}_{i,j,a}$ is the predicted box, i.e the anchor $A_{i,j,a}$ transformed with estimated offsets. The pixel-wise localisation loss is then obtained with:
+
+$$
+\mathcal {L} _ {l o c} (i, j, a) = \left\{ \begin{array}{l l} \left\| 1 - \hat {O} _ {i, j, a} \right\| ^ {2}, & \text {i f} A _ {i, j, a} \in \mathcal {A} ^ {+} \\ 0, & \text {o t h e r w i s e} \end{array} \right. \tag {5}
+$$
+
+# 3.3.2 IoU based 2D human pose supervision
+
+While our main objective is single-shot multi-person 3D pose estimation, PandaNet also regresses 2D human poses for two reasons. Firstly, the predicted 2D poses are needed in the pose-aware pixel-wise classification loss defined in subsection 3.4. Secondly, by minimizing the reprojection loss between a 2D human pose and a root relative 3D human pose, one can obtain the 3D human pose in the camera reference. Regressing 2D human poses is challenging because of large variations in scale between people. So, we introduce a IoU loss to supervise this step. We designate by $P_{i,j,a,k}^{2D}$ the ground-truth 2D coordinates in the anchor coordinate system of the joint $k$ of the subject matched with the
+
+
+Figure 3: PandaNet architecture. The input image is passed through a backbone network. A second stage is used to compute pyramid feature maps at several resolutions and semantic levels (like done by FPN [21]). Four 3x3 convolutions are applied to these feature maps. The resulting maps are then upsampled to the size of the highest resolution feature map. After multiscale feature concatenation and subpixels convolution, four convolutional heads are used to provide the four outputs. Each head is composed by four 3x3 convolutions and one final convolutional layer for the output.
+
+anchor $a$ . These coordinates are obtained from the coordinates in the image space by translating them to the center of the anchor and dividing them by the width and the height of the anchor. $\hat{P}_{i,j,a,k}^{2D}$ are the corresponding predicted coordinates in the anchor space. Two unit squares in the anchor space, $\hat{S}_{i,j,a,k}$ and $S_{i,j,a,k}$ , centred at positions $\hat{P}_{i,j,a,k}^{2D}$ and $P_{i,j,a,k}^{2D}$ are defined to compute the IoU loss and the pixelwise 2D pose loss for joint $k$ :
+
+$$
+\hat {O} _ {i, j, a, k} ^ {2 D} = I o U \left(S _ {i, j, a, k}, \hat {S} _ {i, j, a, k}\right) \tag {6}
+$$
+
+$$
+\mathcal {L} _ {2 D} (i, j, a, k) = \left\{ \begin{array}{l l} \left\| 1 - \hat {\mathcal {O}} _ {i, j, a, k} ^ {2 D} \right\| ^ {2}, & \text {i f} A _ {i, j, a} \in \mathcal {A} ^ {+} \\ 0, & \text {o t h e r w i s e} \end{array} \right. \tag {7}
+$$
+
+# 3.3.3 3D human pose supervision
+
+PandaNet is trained to predict scale normalised 3D human poses translated to the pelvis. The sum of the subject bones length is equal to 1. As all 3D poses are predicted at the same scale, an Euclidean distance is used as supervision. The pixel-wise 3D pose loss for joint $k$ between the ground-truth 3D joints coordinates $P_{i,j,a,k}^{3D}$ and their corresponding predicted coordinates $\hat{P}_{i,j,a,k}^{3D}$ is defined by:
+
+$$
+\begin{array}{l} \mathcal {L} _ {3 D} (i, j, a, k) \\ = \left\{ \begin{array}{l l} \left\| P _ {i, j, a, k} ^ {3 D} - \hat {P} _ {i, j, a, k} ^ {3 D} \right\| ^ {2}, & \text {i f} A _ {i, j, a} \in \mathcal {A} ^ {+} \\ 0, & \text {o t h e r w i s e} \end{array} \right. \tag {8} \\ \end{array}
+$$
+
+# 3.4. Pose-Aware Anchor Selection
+
+As illustrated in Figure 4, some of the positive anchors in $\mathcal{A}^+$ are not suited for the readout of consistent human poses. When several subjects overlap, these anchors may contain more than one person. This can lead to erroneous predicted bounding boxes and incorrect human poses. Consequently, at inference, precise readout locations are needed to determine the final bounding boxes and poses. To do so, the
+
+
+(a) Input Image
+
+
+(b) Grid Anchors $\mathcal{A}$ .
+
+
+(c) Matched Anchors $\mathcal{A}^+$
+Figure 4: Pose-Aware Anchors Selection. A grid of anchors $\mathcal{A}$ is first computed at all output 2D positions (Figure 4b). An example of an anchor is depicted in yellow. The matched anchors $\mathcal{A}^+$ correspond to anchors with a sufficient PONO (depicted in red and blue in Figure 4c). Nevertheless, some of these anchors are ambiguous (crossed anchors in 4c) as they correspond to overlapping persons. They are filtered by the Pose-Aware Anchors Selection strategy to obtain the set of non-ambiguous positive readout anchors $\mathcal{A}^{++}$ depicted in Figure 4d (best viewed in color).
+
+
+(d) Selected Anchors $\mathcal{A}^{+ + }$
+
+network should be trained to consider ambiguous anchors as negative. We define $\mathcal{A}^{++}$ to be the set of nonambiguous readout anchors.
+
+A way to filter $\mathcal{A}^+$ to get $\mathcal{A}^{++}$ is to threshold the product of the overlap between ground truth and predicted bounding boxes $\hat{O}_{i,j,a}$ and the PONO value $O_{i,j,a}$ , as it is done in [5]. In other words, an anchor belongs to $\mathcal{A}^{++}$ if the box predicted by this anchor correctly fit its associated ground truth. For detection purpose this strategy may be sufficient to solve ambiguities, but for pose estimation such a filtering is too coarse. Anchors in $\mathcal{A}^{++}$ must lead to the readout of valid and unambiguous human poses. To this end, we introduce a Pose-Aware Anchor Selection strategy based on 2D poses overlap. This overlap $\hat{O}_{i,j,a}^{2D}$ is defined as the mean of $\hat{O}_{i,j,a,k}^{2D}$ for all joints $k$ of the subject.
+
+Thus, the Positive Readout Anchors Labels $(C_{i,j,a})$ are defined by:
+
+$$
+C _ {i, j, a} = \left\{ \begin{array}{l l} 1 & \text {i f} O _ {i, j, a} \times \hat {O} _ {i, j, a} ^ {2 D} > 0. 5 \\ 0 & \text {o t h e r w i s e} \end{array} \right. \tag {9}
+$$
+
+The pixel-wise classification loss is then defined by:
+
+$$
+\mathcal {L} _ {c l s} (i, j, a) = \mathcal {H} \left(C _ {i, j, a}, \hat {C} _ {i, j, a}\right) \tag {10}
+$$
+
+where $\mathcal{H}$ is the standard binary cross-entropy.
+
+# 3.5. Automatic weighting of losses with homoscedastic uncertainty
+
+A classical problem in training a multi-task network is to properly weight each task. Kendall et al. [15] propose a loss based on the homoscedastic uncertainty (i.e independent of the input data) to weight multiple losses in a multi-task network. Another issue in single-shot multi-person pose estimation is the imbalance between subject's sizes in the image. In real-world images, there are both a large range of distances to the camera and an imbalance in people sizes in the image. In Lapnet [5], anchor weights are learned to solve this problem for rigid object detection. In multiperson pose estimation tasks of PandaNet, uncertainties related to joints have to be managed. Indeed, as joints have different degrees of freedom, predictions associated to hips are more certain than predictions associated to hands for instance. Uncertainty also depends on people sizes in the image. A network is less precise for people at low resolution than for high resolution people. Furthermore, far from the camera people are more prone to occlusions than other people making the regressed coordinates associated to these people more uncertain. This is why we propose to learn joint specific regression weights for each predefined anchor and introduce the following loss functions:
+
+$$
+\begin{array}{l} \mathcal {L} _ {c l s} = \frac {\lambda_ {c l s}}{H W N _ {A}} \sum_ {a} \lambda_ {c l s} ^ {a} \sum_ {i, j} \mathcal {L} _ {c l s} (i, j, a) \tag {11} \\ + \log (\frac {1}{\lambda_ {c l s}}) + \frac {1}{N _ {A}} \sum_ {a} \log (\frac {1}{\lambda_ {c l s} ^ {a}}) \\ \end{array}
+$$
+
+$$
+\begin{array}{l} \mathcal {L} _ {l o c} = \frac {\lambda_ {l o c}}{N ^ {+}} \sum_ {a} \lambda_ {l o c} ^ {a} \sum_ {i, j} \mathcal {L} _ {l o c} (i, j, a) \tag {12} \\ + \log (\frac {1}{\lambda_ {l o c}}) + \frac {1}{N _ {A}} \sum_ {a} \log (\frac {1}{\lambda_ {l o c} ^ {a}}) \\ \end{array}
+$$
+
+$$
+\begin{array}{l} \mathcal {L} _ {2 D} = \frac {\lambda_ {2 D}}{N _ {K} N ^ {+}} \sum_ {i, j, a, k} \lambda_ {2 D} ^ {a, k} \mathcal {L} _ {2 D} (i, j, a, k) \tag {13} \\ + \frac {1}{N _ {K} N _ {A}} \sum_ {a, k} \log (\frac {1}{\lambda_ {2 D} ^ {k , a}}) \\ \end{array}
+$$
+
+$$
+\begin{array}{l} \mathcal {L} _ {3 D} = \frac {\lambda_ {3 D}}{N _ {K} N ^ {+}} \sum_ {i, j, a, k} \lambda_ {3 D} ^ {a, k} \mathcal {L} _ {3 D} (i, j, a, k) \tag {14} \\ + \frac {1}{N _ {K} N _ {A}} \sum_ {a, k} \log \left(\frac {1}{\lambda_ {3 D} ^ {k , a}}\right) \\ \end{array}
+$$
+
+where $\lambda_{cls}$ , $\lambda_{loc}$ , $\lambda_{Pose2D}$ and $\lambda_{Pose3D}$ are the task weights, $\lambda_{cls}^{a}$ and $\lambda_{loc}^{a}$ are the anchors weights and $\lambda_{Pose2D}^{a,k}$ and $\lambda_{Pose3D}^{a,k}$ are the anchor-joint regression weights. $N^{+}$ is the number of anchors in $A^{+}$ . All weights $\lambda$ are trainable variables. All terms $\log\left(\frac{1}{\lambda}\right)$ are regularisation terms that avoid all $\lambda$ to converge to 0. The final total loss is:
+
+$$
+\mathcal {L} _ {\text {t o t a l}} = \mathcal {L} _ {\text {c l s}} + \mathcal {L} _ {\text {l o c}} + \mathcal {L} _ {2 D} + \mathcal {L} _ {3 D} \tag {15}
+$$
+
+# 4. Experimental Results
+
+PandaNet's performance is evaluated on three datasets: JTA [8], CMU-Panoptic [14] and MuPoTS-3D [28].
+
+Evaluation Metrics: To evaluate multi-person 3D pose approaches, we use two metrics. The first one is the Mean per Joint Position Error (MPJPE) that corresponds to the mean Euclidean distance between the ground truth and the prediction for all people and all joints. The second one is the 3DPCK which is the 3D extension of the Percentage of Correct Keypoints (PCK) metric used for 2D pose evaluation. A joint is considered correctly estimated if the error in its estimation is less than $150\mathrm{mm}$ . If an annotated subject is not detected by an approach, we consider all of its joints to be incorrect in the 3DPCK metric. The human detection performance is evaluated with the Average Precision (AP) used in the PASCAL VOC challenge [7].
+
+Training Procedure: The method was implemented and tested with TensorFlow 1.12. In all our experiments, the model is trained with mini-batches of 24 images. SGD optimiser is used with a momentum of 0.9, an initial learning rate of 0.005 and a polynomial decay policy of 0.9. Random crops and random scales are used for data augmentation. Synchronized batch normalisation across GPU is used. Darknet-53 [36] is used as backbone. The number of anchors $N_{A}$ is set to 10 in all experiments.
+
+# 4.1. JTA dataset results
+
+JTA (Joint Track Auto) is a dataset for human pose estimation and tracking in urban environment. It was collected from the realistic video-game the Grand Theft Auto V and contains 512 HD videos of 30 seconds recorded at 30 fps. The collected videos feature a vast number of different body poses, in several urban scenarios at varying illumination conditions and viewpoints. People perform different actions like walking, sitting, running, chatting, talking on the phone, drinking or smoking. Each image contains a number of people ranging between 0 and 60 with an average of 21 people. The distance from the camera ranges between 0.1 to 100 meters, resulting in pedestrian heights between 20 and 1100 pixels. No existing dataset with annotated 3D poses is comparable with JTA dataset in terms of number and sizes of people. An input image size of $928 \times 576$ is used.
+
+| Anchor Selection | AP | 3DPCK |
| No | 84.1 | 80.7 |
| BB-Aware [5] | 85.1 | 81.9 |
| Pose-Aware (Ours) | 85.3 | 83.2 |
+
+Table 1: Influence of the Anchor Selection Strategy. All the models are trained with the Automatic Weighting of Losses.
+
+| task | anchor | joint | AP | 3DPCK |
| 1 | 1 | 1 | 21.7 | 15.8 |
| learned | 1 | 1 | 84.1 | 80.8 |
| learned | learned | 1 | 85.2 | 81.7 |
| learned | learned | learned | 85.3 | 83.2 |
+
+# 4.1.1 Ablation Studies
+
+Pose-Aware Anchor Selection strategy: Table 1 results show the effectiveness of the Pose-Aware Anchor Selection. We compare three variants of PandaNet. The first variant (first line) is a model where no anchor selection strategy is used. It corresponds to a model where only the PONO overlap $O_{i,j,a}$ is considered in equation 9. Using the Bounding-box Aware Anchor Selection [5] (second row), improves the model performance over this baseline. Box detection and 3D pose estimation take all benefit of this anchor selection strategy. Using the proposed Pose-Aware Anchor Selection (third row) maintain the AP value while improving the 3DPCK, showing its effectiveness for choosing better anchors for 3D pose estimation.
+
+Automatic Weighting of Losses: The influence of Automatic Weighting of Losses is detailed in Table 2. When the $\lambda$ 's are all set to 1 (first line) and not trained, the model has poor performance on all tasks. Learning task-specific $\lambda_{loc}$ , $\lambda_{cls}$ , $\lambda_{2D}$ and $\lambda_{3D}$ (second row) allow the network to converge and to achieve good performances on all tasks. Learning anchor weights $\lambda_{loc}^{a}$ and $\lambda_{cls}^{a}$ (third row) improves detection and 3D pose estimation performances. The best results are obtained when all $\lambda$ 's are learned, showing the importance of the proposed automatic weighting of losses.
+
+# 4.1.2 Comparison with prior work
+
+The approach in [3] is the only method that provides 3D results on the JTA dataset. We compare PandaNet with the best model in [3] i.e the model with multi-scale inference.
+
+Table 3 provides 3DPCK results according to the distance of people to the camera. PandaNet outperforms the model of Benzine et al. [3] on all camera distances demon
+
+Table 2: Influence of the Automatic Weighting of Losses. task, anchor and joint represent the type of trainable $\lambda$ weights. All the models are trained with the Pose-Aware Anchor Selection Strategy.
+
+| Dist. | <10 | 10-20 | 20-30 | 30-40 | >40 | All |
| [3] | 55.8 | 61.6 | 42.2 | 36.0 | 41.7 | 43.9 |
| Ours | 95.6 | 93.7 | 87.3 | 80.5 | 71.2 | 83.2 |
+
+Table 3: Distance wise 3DPCK on the JTA dataset. Distance are in meters.
+
+strating the ability of PandaNet to properly process people at all scales. While our model achieve very good results for people close to the camera (less than $20\mathrm{m}$ ), it also correctly handles people who are further from the camera.
+
+Table 4 provides joint-wise results on the JTA dataset. PandaNet outperforms the model of Benzine et al. [3] for all joints. In particular, it has no difficulties to estimate 3D coordinates for the joints that have the fewest degrees of freedom (head, neck, clavicles, hips and spines) with a 3DPCK for these joints greater than $92\%$ . PandaNet increases the 3DPCK for the shoulders by $44.6\%$ and for the elbows by $34.9\%$ . Terminal joints (wrists and ankles) are the most difficult joints with a 3DPCK of $60.1\%$ and $58.0\%$ for these joints against $19.0\%$ and $8.9\%$ for [3].
+
+# 4.2. CMU-Panoptic results
+
+CMU Panoptic [14] is a dataset containing images with several people performing different scenarios in a dome where many cameras are placed. Although it was acquired in a simple and controlled environment, this dataset is challenging because of complex interactions and difficult camera viewpoints. We evaluate PandaNet using the protocol used in [48, 49, 2]. The test set is composed of 9600 frames from HD cameras 16 and 30 and for 4 scenarios: Haggling, Mafia, Ultimatum, Pizza. The model is trained on the other 28 HD cameras of CMU Panoptic. An input image size of $512 \times 320$ is used on all Panoptic experiments.
+
+On this dataset, PandaNet improves the results over the recent state of the art methods on all scenarios (Table 5). The average MPJPE is improved by $25.8\mathrm{mm}$ compared to the best previous approach. While the results on JTA prove the ability of the model to deal with realistic urban scenes with many people at low resolution, results on the Panoptic dataset show that the approach is effective to manage people overlaps and crops that frequently occur in this dataset.
+
+# 4.3. MuPoTS-3D results
+
+MuPoTS-3D [28] is a dataset containing 20 sequences with ground truth 3D poses for up to three subjects. PandaNet is trained on the MuCo-3DHP dataset that is generated by compositing the existing MPI-INF-3DHP 3D single-person pose estimation dataset [26], and on the COCO-dataset [22] to ensure better generalisation. Each mini-batch consists of half MuCo-3DHP and half COCO images. For COCO data, the loss value for the 3D regres
+
+| Method | head | neck | clavicles | shoulders | elbows | wrist | spines | hips. | knees | ankles | all |
| [3] | 41.1 | 44.6 | 44.9 | 33.8 | 27.2 | 19.0 | 74.4 | 73.9 | 25.7 | 8.9 | 43.9 |
| Ours | 92.7 | 99.1 | 97.0 | 78.4 | 72.1 | 60.1 | 99.9 | 87.8 | 71.8 | 58.0 | 83.2 |
+
+Table 4: Joint wise 3DPCK.
+
+| Method | Haggling | Mafia | Ultimatum | Pizza | Mean |
| [48] | 140.0 | 165.9 | 150.7 | 156.0 | 153.4 |
| [49] | 72.4 | 78.8 | 66.8 | 94.3 | 72.1 |
| [2] | 70.1 | 66.6 | 55.6 | 78.4 | 68.5 |
| Ours | 40.6 | 37.6 | 31.3 | 55.8 | 42.7 |
+
+Table 5: MPJPE in mm on the Panoptic dataset.
+
+| Method | 3DPCK |
| Two-Stage | LCR-Net[39] | 53.8 |
| LCR-Net++ [40] | 70.6 |
| Moon et al. [29] | 81.8 |
| Single-Shot | Mehta et al. [28] | 66.0 |
| XNect [27] | 70.4 |
| PandaNet | 72.0 |
+
+Table 6: 3DPCK on the MuPoTS-3D dataset.
+
+
+Figure 5: Running time comparison with the approach of Moon et al. [30] according to the number of people per image. Experiments are performed on a NVIDIA Titan X GPU. Images come from JTA Dataset [8].
+
+sion task is set to zero. An input image size size of 512x512 is used and Subpixel convolutions are removed.
+
+Table 6 provides 3DPCK results on this dataset. PandaNet achieve higher 3DPCK than previous single-shot approaches. It improves over an ORPM method [28] by $6\%$
+
+and over XNect [27] by $1.6\%$ . XNect is composed of two different models. The first one predicts partial 2D and 3D pose encoding and the second one refines these encodings to get final full 3D poses. Consequently, the weaknesses of the first model (like joints occlusions and people crops) are compensated by the second one. We achieve better results with a single model without any refinement process. Compared to two-stage models, PandaNet achieves better results than LCR-Net [39] and LCR-Net++ [40]. Compared to the approach of Moon et al. [30], PandaNet has a lower 3DPCK. This top-down approach uses an external two-stage object detector (Faster-R CNN [37]) to compute human bounding boxes and forward each cropped subject to a single-person 3D person approach [43]. Therefore, the computation complexity of their model depends on the number of people in the image like illustrated in Figure 5. If the number of people is large, this approach scales badly. On the contrary, the proposed single-shot model allows a nearly constant inference time regarding the number of people. The inference time of PandaNet is about 140ms for images with 60 people on a NVIDIA Titan X GPU.
+
+# 5. Conclusion
+
+PandaNet is a new anchor-based single-shot multiperson pose estimation model that efficiently handles scene with a large number of people, large variation in scale and people overlaps. This model predicts in a single-shot way people bounding boxes and their corresponding 2D and 3D pose. To properly manage people overlaps, we introduce a Pose-Aware Anchor Selection strategy that discards ambiguous anchors. Moreover, an automatic weighting has been provided for three main purposes. It balances task-specific losses, it compensates imbalance in people sizes and it manages uncertainty related to joints coordinates.
+
+The experiments validate the proposed Anchor-based Multi-person Pose Regression framework and prove the importance of the Pose-Aware Anchor Selection strategy and of the Automatic Weighting. Furthermore, large-scale experiments, on JTA, CMU Panoptic, and MuPoTS-3D datasets demonstrate that PandaNet outperforms previous single-shot state of the art methods.
+
+# References
+
+[1] Mykhaylo Andriluka, Leonid Pishchulin, Peter Gehler, and Bernt Schiele. 2d human pose estimation: New benchmark and state of the art analysis. In CVPR, June 2014. 1
+
+[2] Abdallah Benzine, Bertrand Luvison, Quoc Cuong Pham, and Catherine Achard. Deep, robust and single shot 3d multiperson human pose estimation from monocular images. In ICIP, 2019. 3, 7, 8
+[3] Abdallah Benzine, Bertrand Luvison, Quoc Cuong Pham, and Catherine Achard. Deep, robust and single shot 3d multiperson human pose estimation in complex images. arXiv preprint arXiv:1911.03391, 2019. 3, 7, 8
+[4] Zhe Cao, Tomas Simon, Shih-En Wei, and Yaser Sheikh. Realtime multi-person 2d pose estimation using part affinity fields. CVPR, 2017. 2, 3
+[5] Florian Chabot, Mohamed Chaouch, and Quoc Cuong Pham. Lapnet: Automatic balanced loss and optimal assignment for real-time dense object detection. arXiv preprint arXiv:1911.01149, 2019. 3, 4, 5, 6, 7
+[6] Yilun Chen, Zhicheng Wang, Yuxiang Peng, Zhiqiang Zhang, Gang Yu, and Jian Sun. Cascaded pyramid network for multi-person pose estimation. In CVPR, 2018. 3
+[7] 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. ICCV, 2015. 6
+[8] Matteo Fabbri, Fabio Lanzi, Simone Calderara, Andrea Palazzi, Roberto Vezzani, and Rita Cucchiara. Learning to detect and track visible and occluded body joints in a virtual world. ECCV, 2018. 1, 2, 6, 8
+[9] Hao-Shu Fang, Yuanlu Xu, Wenguan Wang, Xiaobai Liu, and Song-Chun Zhu. Learning pose grammar to encode human body configuration for 3d pose estimation. AAAI Conference on Artificial Intelligence, 2018. 3
+[10] Thomas Golda, Tobias Kalb, Arne Schumann, and Jüergen Beyerer. Human Pose Estimation for Real-World Crowded Scenarios. In AVSS, 2019. 3
+[11] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross Girshick. Mask r-cnn. In ICCV, 2017. 3
+[12] Catalin Ionescu, Dragos Papava, Vlad Olaru, and Cristian Sminchisescu. Human3. 6m: Large scale datasets and predictive methods for 3d human sensing in natural environments. PAMI, 36(7), 2014. 1
+[13] Sam Johnson and Mark Everingham. Clustered pose and nonlinear appearance models for human pose estimation. In BMVC, 2010. 1
+[14] Hanbyul Joo, Tomas Simon, Xulong Li, Hao Liu, Lei Tan, Lin Gui, Sean Banerjee, Timothy Godisart, Bart Nabbe, Iain Matthews, et al. Panoptic studio: A massively multiview system for social interaction capture. IEEE transactions on pattern analysis and machine intelligence, 2019. 1, 2, 6, 7
+[15] Alex Kendall, Yarin Gal, and Roberto Cipolla. Multi-task learning using uncertainty to weigh losses for scene geometry and semantics. In CVPR, 2018. 6
+[16] Muhammed Kocabas, Salih Karagoz, and Emre Akbas. Multiposenet: Fast multi-person pose estimation using pose residual network. In ECCV, 2018. 2
+[17] Sven Kreiss, Lorenzo Bertoni, and Alexandre Alahi. Pifpaf: Composite fields for human pose estimation. In CVPR, 2019. 3
+[18] Jiefeng Li, Can Wang, Hao Zhu, Yihuan Mao, Hao-Shu Fang, and Cewu Lu. Crowdpose: Efficient crowded scenes pose estimation and a new benchmark. 2018. 1
+
+[19] Jiefeng Li, Can Wang, Hao Zhu, Yihuan Mao, Hao-Shu Fang, and Cewu Lu. Crowdpose: Efficient crowded scenes pose estimation and a new benchmark. In CVPR, 2019. 3
+[20] Sijin Li and Antoni B Chan. 3d human pose estimation from monocular images with deep convolutional neural network. In ACCV, 2014. 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. 4, 5
+[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. 1, 7
+[23] 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. 4
+[24] Julieta Martinez, Rayat Hossain, Javier Romero, and James J Little. A simple yet effective baseline for 3d human pose estimation. In ICCV, 2017. 3
+[25] Dushyant Mehta, Helge Rhodin, Dan Casas, Pascal Fua, Oleksandr Sotnychenko, Weipeng Xu, and Christian Theobalt. Monocular 3d human pose estimation in the wild using improved cnn supervision. In 3D Vision, 2017. 1
+[26] Dushyant Mehta, Helge Rhodin, Dan Casas, Oleksandr Sotnychenko, Weipeng Xu, and Christian Theobalt. Monocular 3d human pose estimation using transfer learning and improved cnn supervision. arxiv preprint. arXiv preprint arXiv:1611.09813, 2016. 7
+[27] Dushyant Mehta, Oleksandr Sotnychenko, Franziska Mueller, Weipeng Xu, Mohamed Elgharib, Pascal Fua, Hans-Peter Seidel, Helge Rhodin, Gerard Pons-Moll, and Christian Theobalt. Xnect: Real-time multi-person 3d human pose estimation with a single rgb camera. arXiv preprint arXiv:1907.00837, 2019. 3, 8
+[28] Dushyant Mehta, Oleksandr Sotnychenko, Franziska Mueller, Weipeng Xu, Srinath Sridhar, Gerard Pons-Moll, and Christian Theobalt. Single-shot multi-person 3d body pose estimation from monocular rgb input. 3DV, 2017. 1, 2, 3, 6, 7, 8
+[29] Gyeongsik Moon, Ju Yong Chang, and Kyoung Mu Lee. Camera distance-aware top-down approach for 3d multiperson pose estimation from a single rgb image. ICCV, 2019. 3, 8
+[30] Gyeongsik Moon, Ju Yong Chang, and Kyoung Mu Lee. Multi-scale aggregation r-cnn for 2d multi-person pose estimation. CVPR, 2019. 8
+[31] Alejandro Newell, Zhiao Huang, and Jia Deng. Associative embedding: End-to-end learning for joint detection and grouping. In NIPS, 2017. 2, 3
+[32] 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
+[33] Sungheon Park, Jihye Hwang, and Nojun Kwak. 3d human pose estimation using convolutional neural networks with 2d pose information. In ECCV, 2016. 3
+
+[34] Georgios Pavlakos, Xiaowei Zhou, Konstantinos G Derpanis, and Kostas Daniilidis. Coarse-to-fine volumetric prediction for single-image 3d human pose. In CVPR, 2017. 3
+[35] Joseph Redmon and Ali Farhadi. Yolo9000: better, faster, stronger. In CVPR, 2017. 4
+[36] Joseph Redmon and Ali Farhadi. Yolov3: An incremental improvement. arXiv preprint arXiv:1804.02767, 2018. 6
+[37] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In NIPS, 2015. 4, 8
+[38] Hamid Rezatofighi, Nathan Tsoi, JunYoung Gwak, Amir Sadeghian, Ian Reid, and Silvio Savarese. Generalized intersection over union: A metric and a loss for bounding box regression. In CVPR, 2019. 4
+[39] Gregory Rogez, Philippe Weinzaepfel, and Cordelia Schmid. Lcr-net: Localization-classification-regression for human pose. In CVPR, 2017. 3, 8
+[40] Gregory Rogez, Philippe Weinzaepfel, and Cordelia Schmid. Lcr-net++: Multi-person 2d and 3d pose detection in natural images. TPAMI, 2019. 3, 8
+[41] 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, 2016. 4
+[42] Xiao Sun, Jiaxiang Shang, Shuang Liang, and Yichen Wei. Compositional human pose regression. In ICCV, 2017. 3
+[43] Xiao Sun, Bin Xiao, Fangyin Wei, Shuang Liang, and Yichen Wei. Integral human pose regression. In ECCV, 2018. 3, 8
+[44] Bugra Tekin, Isinsu Katircioglu, Mathieu Salzmann, Vincent Lepetit, and Pascal Fua. Structured prediction of 3d human pose with deep neural networks. arXiv preprint arXiv:1605.05180, 2016. 3
+[45] Zhi Tian, Chunhua Shen, Hao Chen, and Tong He. Fcos: Fully convolutional one-stage object detection. arXiv preprint arXiv:1904.01355, 2019. 4
+[46] Bin Xiao, Haiping Wu, and Yichen Wei. Simple baselines for human pose estimation and tracking. In ECCV, 2018. 3
+[47] Wei Yang, Wanli Ouyang, Xiaolong Wang, Jimmy Ren, Hongsheng Li, and Xiaogang Wang. 3d human pose estimation in the wild by adversarial learning. In CVPR, 2018. 3
+[48] Andrei Zanfir, Elisabeta Marinoiu, and Cristian Sminchisescu. Monocular 3d pose and shape estimation of multiple people in natural scenes—the importance of multiple scene constraints. In CVPR, 2018. 3, 7, 8
+[49] Andrei Zanfir, Elisabeta Marinoiu, Mihai Zanfir, Alin-Ionut Popa, and Cristian Sminchisescu. Deep network for the integrated 3d sensing of multiple people in natural images. In NIPS, 2018. 3, 7, 8
+[50] Xingyi Zhou, Qixing Huang, Xiao Sun, Xiangyang Xue, and Yichen Wei. Towards 3d human pose estimation in the wild: a weakly-supervised approach. In ICCV, 2017. 3
\ No newline at end of file
diff --git a/pandanetanchorbasedsingleshotmultiperson3dposeestimation/images.zip b/pandanetanchorbasedsingleshotmultiperson3dposeestimation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..5661fcb4b719ed1500f62b73ec730cb8377abc02
--- /dev/null
+++ b/pandanetanchorbasedsingleshotmultiperson3dposeestimation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d2f94762c7dd102ba0059fba7b5e48fe0146451dc6cc42a9b84931ff11ac00e2
+size 369489
diff --git a/pandanetanchorbasedsingleshotmultiperson3dposeestimation/layout.json b/pandanetanchorbasedsingleshotmultiperson3dposeestimation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..9ba33c6fac6ba6999f1122f893521eff6dd37fde
--- /dev/null
+++ b/pandanetanchorbasedsingleshotmultiperson3dposeestimation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:34dbf52bc7e61982b49c0b9e40c1773d3832d4ce949a42bd6143b33cd0b7b191
+size 397892
diff --git a/panopticbasedimagesynthesis/97acddc2-4297-47ba-a630-e05be4e616b7_content_list.json b/panopticbasedimagesynthesis/97acddc2-4297-47ba-a630-e05be4e616b7_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..abc41a0f900cb129c72498a8fb76f9a220d6d172
--- /dev/null
+++ b/panopticbasedimagesynthesis/97acddc2-4297-47ba-a630-e05be4e616b7_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7e3b81eb8ef906bc962acdc2f72122ccdc43324a6b375aace31b84f298fea763
+size 71012
diff --git a/panopticbasedimagesynthesis/97acddc2-4297-47ba-a630-e05be4e616b7_model.json b/panopticbasedimagesynthesis/97acddc2-4297-47ba-a630-e05be4e616b7_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..e8c685c4122ca411fc654fe31c1f1a43f163cd80
--- /dev/null
+++ b/panopticbasedimagesynthesis/97acddc2-4297-47ba-a630-e05be4e616b7_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7c2e580dc7c8340318e74bdc27b0cb676aef9d66758f3a0d4eeac6f3f60e56b3
+size 85934
diff --git a/panopticbasedimagesynthesis/97acddc2-4297-47ba-a630-e05be4e616b7_origin.pdf b/panopticbasedimagesynthesis/97acddc2-4297-47ba-a630-e05be4e616b7_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..86bd3846d5ff715ac1892fb115d9d06afe211404
--- /dev/null
+++ b/panopticbasedimagesynthesis/97acddc2-4297-47ba-a630-e05be4e616b7_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1a10ab94de057efc80a51fbf4e88dfe2ddd7a10c1e50a945de62f9ccc32e4a8e
+size 784182
diff --git a/panopticbasedimagesynthesis/full.md b/panopticbasedimagesynthesis/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..77f42dd813e1e9feb7abd571cf294a7ae3499444
--- /dev/null
+++ b/panopticbasedimagesynthesis/full.md
@@ -0,0 +1,326 @@
+# Panoptic-based Image Synthesis
+
+Aysegul Dundar
+
+Karan Sapra
+
+Guilin Liu
+
+Andrew Tao
+
+Bryan Catanzaro
+
+
+
+
+
+
+Panoptic maps
+
+
+
+
+
+
+Baseline
+
+
+
+
+
+
+Ours
+Figure 1. Unlike previous methods that rely on semantic and boundary label maps to synthesize images, our model uses panoptic maps. It generates instances with clear separation even in cluttered scenes where multiple instances occlude each other. The forth and fifth column show zoomed in patches from the second and third column images to highlight the boundaries between instances, where previous methods tend to blend instances together.
+
+
+
+
+
+
+Baseline enlarged
+
+
+
+
+
+
+Ours enlarged
+
+# Abstract
+
+Conditional image synthesis for generating photorealistic images serves various applications for content editing to content generation. Previous conditional image synthesis algorithms mostly rely on semantic maps, and often fail in complex environments where multiple instances occlude each other. We propose a panoptic aware image synthesis network to generate high fidelity and photorealistic images conditioned on panoptic maps which unify semantic and instance information. To achieve this, we efficiently use panoptic maps in convolution and upsampling layers. We show that with the proposed changes to the generator, we can improve on the previous state-of-the-art methods by generating images in complex instance interaction environments in higher fidelity and tiny objects in more details. Furthermore, our proposed method also outperforms the
+
+previous state-of-the-art methods in metrics of mean IoU (Intersection over Union), and detAP (Detection Average Precision).
+
+# 1. Introduction
+
+Image synthesis refers to the task of generating diverse and photo-realistic images, where a prevalent sub-category known as conditional image synthesis outputs images that are conditioned on some input data. Recently, deep neural networks have been successful at conditional image synthesis [11, 4, 32, 38, 39, 37, 1] where one of the conditional inputs is a semantic segmentation map. Extending this concept, in this paper, we are interested in the generation of photo-realistic images guided by panoptic maps. Panoptic maps unify semantic and instance maps. Specifically,
+
+they provide information about object instances for countable classes which are called "things" such as people, animals, and cars. Additionally, they contain the semantic information about classes that are amorphous regions and repeat patterns or textures such as grass, sky, and wall. These classes are referred to as "stuff".
+
+We are interested in panoptic maps because semantic maps do not provide sufficient information to synthesize "things" (instances) especially in complex environments with multiple of them interacting with each other. Even the state-of-the-art baseline (SPADE [23]) which inputs boundary maps to the network fails to generate high fidelity images when objects are small and instances are partially occluding. This issue can be observed in Figure 1, in the continuous pattern extending from one zebra to the other. This is the result of conventional convolution and upsampling algorithms being independent of class and instance boundaries. To address this problem, we replace the convolution and upsampling layers in the generator with Panoptic aware convolution and Panoptic aware upsampling layers.
+
+We refer to this form of image synthesis as panoptic-based image synthesis. We evaluate our proposed image generator on two diverse and challenging datasets: Cityscapes [5], and COCO-Stuff [2]. We demonstrate that we are able to efficiently and accurately use panoptic maps to generate higher fidelity images and improve on evaluation metrics used by previous methods [4, 32, 23].
+
+Our main contributions can be summarized as follows:
+
+1. We propose to use Panoptic aware convolution that re-weights convolution based on the panoptic maps in conditional image generation setting. Similar mechanisms have been previously used for other tasks [15, 7] with binary masks and learned soft masks but not for image synthesis with multi-class panoptic masks.
+2. We propose Panoptic aware upsampling that addresses the misalignment between the upsampled low resolution features and high resolution panoptic maps. This ensures that the semantic and instance details are not lost, and that we also maintain higher accuracy alignment between the generated images and the panoptic maps.
+3. We demonstrate that using our proposed network architecture, not only do we see more photorealistic images, but we also observe significant improvements in object detection scores on both Cityscapes and COCO-Stuff datasets when evaluated with object detection model.
+
+# 2. Related Work
+
+Generative Adversarial Networks (GANs) [6] perform image synthesis by modelling the natural image dis
+
+tribution and synthesizing new samples that are indistinguishable from natural images. This is achieved by using a generator and a discriminator network that are both trying to optimize an opposing objective function, in a zero-sum game. Many conditional image synthesis works use GANs to generate realistic images, and so does ours.
+
+Conditional Image Synthesis can vary based on different type of inputs to be conditioned upon. For example, inputs can be text [25, 38, 34, 9], natural and synthetic images [13, 41, 17, 42, 10, 40, 14], or unsupervised landmarks [18, 12, 28] to name a few. Recently, [24, 4, 11] use semantic maps and [32, 23] use both semantic maps and boundary maps as inputs to the generator, where the boundary maps are obtained from the instance maps. A pixel in the boundary map is set to 1 if its object identity is different from any of its 4 neighbors, and set to 0 otherwise. This approach does not preserve the whole information contained in an instance map especially when instances are occluding each other. The pixels that belong to the same instance may be separated by multiple boundaries.
+
+Content Aware Convolution. There have been many works that learn to weight the convolution activations based on attention mechanisms [37, 33, 35, 7]. These mechanisms operate on feature maps to capture the spatial locations that are related to each other while making a decision. In another line of research, the spatial locations that should not contribute to an output may be given to us by binary masks such as in the case of image inpainting, the task of filling in holes in an image. In this task, [16, 30] use partial convolutions so that given a binary mask with holes and valid pixels, the convolutional results depend only on the valid pixels. Our convolution layer is similar to the one used in image inpainting, instead of masks with holes, we have panoptic maps given to us, and therefore we know that convolutional results of an instance should not depend on an another instance or on pixels that belong to a different semantic class. We are not given binary masks, but we generate them efficiently on-the-fly based on panoptic maps.
+
+Content Aware Upsampling. Nearest neighbor and bilinear interpolations are the most commonly used upsampling methods in deep learning applications. These methods use hand-crafted algorithms based on the relative positions of the pixel coordinates. There has been also great interest in learning the upsampling weights for the tasks of semantic segmentation [22, 29] and image and video super-resolution [27]. Recently, [19, 31] proposed feature guided upsampling algorithms. These methods operate on the feature maps to encode contents, and based on the contents they upsample the features. In our method, similar to the idea in the panoptic aware convolution layer, we take advantage of the high resolution panoptic maps to resolve the misalignments in upsampled feature maps and panoptic maps.
+
+
+Figure 2. Panoptic aware partial convolution layer takes a panoptic map (colorized for visualization) and based on the center of each sliding window it generates a binary mask, M. The pixels that share the same identity with the center of the window are assigned 1 and the others 0.
+
+# 3. Method
+
+In this section, we first detail the Panoptic aware convolution and Panoptic aware upsampling layers. We then describe the overall network architecture.
+
+# 3.1. Panoptic Aware Convolution Layer
+
+We refer to the partial convolution operation using panoptic maps as a Panoptic aware partial convolution layer which shares the fundamentals with other works that use partial convolution for different tasks [7, 15]. Let $\mathbf{W}$ be the convolution filter weights and $b$ the corresponding bias. $\mathbf{X}$ is the feature values, $\mathbf{P}$ is the panoptic map values for the current convolution (sliding) window, and $\mathbf{M}$ is the corresponding binary mask.
+
+M defines which pixels will contribute to the output of the convolution operation based on the panoptic maps. The pixel coordinates which share the same identity with the center pixel in the panoptic map are assigned 1 in the mask, while the others are assigned 0. This is expressed as:
+
+$$
+m _ {(i, j)} = \left\{ \begin{array}{l l} 1, & \text {i f} \mathbf {P} _ {(\mathrm {i}, \mathrm {j})} = = \mathbf {P} _ {(\text {c e n t e r}, \text {c e n t e r})} \\ 0, & \text {o t h e r w i s e} \end{array} \right. \tag {1}
+$$
+
+This can be implemented by first subtracting the center pixel from the patch and clipping the absolute value to (0, 1), then subtracting the clipped output from 1 to inverse the zeros and ones. Figure 2 depicts the construction of the mask M.
+
+The partial convolution at every location is expressed as:
+
+$$
+x ^ {\prime} = \left\{ \begin{array}{l l} \mathbf {W} ^ {T} (\mathbf {X} \odot \mathbf {M}) \frac {\operatorname {s u m} (\mathbf {1})}{\operatorname {s u m} (\mathbf {M})} + b, & \text {i f} \operatorname {s u m} (\mathbf {M}) > 0 \\ 0, & \text {o t h e r w i s e} \end{array} \right. \tag {2}
+$$
+
+where $\odot$ denotes element-wise multiplication and $\mathbf{1}$ has same shape as $\mathbf{M}$ but with all elements being 1. The scaling factor, $\mathrm{sum(1) / sum(M)}$ , applies normalization to account
+
+
+Figure 3. Overview of Panoptic aware upsampling module. $16 \times 16$ and $32 \times 32$ panoptic maps are nearest neighbor downsampled from original $256 \times 256$ panoptic map. $32 \times 32$ upsampled map is upsampled from $16 \times 16$ panoptic map using nearest neighbor upsampling algorithm. Comparing the $32 \times 32$ upsampled and $32 \times 32$ original map, we can observe two issues: 1) Spatial misalignments and 2) Appearance of new classes or instances. As shown in Figure (top), first we correct misalignment by replicating a feature vector from a neighboring pixel that belongs to the same panoptic instance. This operation is different from nearest neighbor upsampling which would always replicate the top-left feature. Second, as shown in Figure (bottom), we resolve pixels where new semantic or instance classes have just appeared by encoding new features from semantic maps with Panoptic aware convolution layer.
+
+for varying amount of valid inputs as in [15]. With Equation 2, convolution results of an instance or stuff depend only on the feature values that belong to the same instance or stuff.
+
+# 3.2. Panoptic Aware Upsampling Layer
+
+We propose a Panoptic aware upsampling layer as an alternative to traditional upsampling layers when the higher resolution panoptic maps are available as in the case of im
+
+
+Figure 4. The percent of incorrectly mapped features using upsampling through different layers of network.
+
+age synthesis for content generation task. Nearest neighbor upsampling is a popular conventional upsampling choice in conditional image synthesis tasks as used by [1, 23, 32, 23]. However, nearest neighbor upsampling algorithm is handcrafted to do replication. For example, in a $2 \times 2$ upsampling scenario, nearest neighbor algorithm will replicate the top-left corner to the neighboring pixels in a $2 \times 2$ window. This creates two issues as shown in Figure 3.
+
+First, it can create a spatial misalignment between the high resolution panoptic map and upsampled features. Figure 3-top illustrates this issue, where the features of instance $id_B$ are replicated and incorrectly used for instance $id_A$ following traditional upsampling approach. In Figure 3, we demonstrate the misalignments in the upsampled panoptic maps for clarity, but we are only interested in the alignment in feature maps. We refer to the operation for fixing this misalignment as "Upsampling alignment" correction. Secondly, as shown in Figure 3-bottom, the high resolution panoptic map may contain new classes and instances that might not exist in the lower resolution panoptic map. This implies that new features need to be generated and replaced in upsampled feature map. We refer to this operation as "Hole filling".
+
+Figure 4 depicts how often the two issues mentioned above occur at different layers in the network for the Cityscapes dataset. As seen in the figure, especially in the early layers, over $30\%$ of pixel features among the newly generated ones do not align with the panoptic maps, and many pixels that belong to a new instance or semantic map appear for the first time at the new scale.
+
+To resolve these two issues, Panoptic aware upsampling layer performs a two-step process: Upsample alignment correction and Hole filling as shown in Figure 3. Let $\mathbf{S}$ be the semantic map, and $\mathbf{F}$ the feature to be upsampled. We are interested in $2 \times 2$ upsampling as it is the most common upsampling scale used by image synthesis methods. Let $\mathbf{P}^{\mathrm{d}}$ be the downsampled panoptic mask. We are interested in upsampling $\mathbf{F}^{\mathrm{d}}$ , to generate the upsampled feature
+
+Algorithm 1 Upsampling Alignment Correction.
+Initialize: $M^{correction} = 0$ , $F^{\prime u} = 0$
+for $i \in [0,2W)$ ; $j \in [0,2H)$ do
+if $P_{i,j}^{u} == P_{i//2,j//2}^{d}$ then
+ $F_{i,j}^{\prime u} == F_{i//2,j//2}^{d}$ $M_{i,j}^{correction} = 1$
+end if
+end for
+for $i \in [0,2W)$ ; $j \in [0,2H)$ do
+if $P_{i,j}^{u} == P_{i//2+1,j//2}^{d}$ and $M_{i,j}^{correction} != 1$ then
+ $F_{i,j}^{\prime u} == F_{i//2+1,j//2}^{d}$ $M_{i,j}^{correction} = 1$
+end if
+end for
+for $i \in [0,2W)$ ; $j \in [0,2H)$ do
+if $P_{i,j}^{u} == P_{i//2,j//2+1}^{d}$ and $M_{i,j}^{correction} != 1$ then
+ $F_{i,j}^{\prime u} == F_{i//2,j//2+1}^{d}$ $M_{i,j}^{correction} = 1$
+end if
+end for
+for $i \in [0,2W)$ ; $j \in [0,2H)$ do
+if $P_{i,j}^{u} == P_{i//2+1,j//2+1}^{d}$ and $M_{i,j}^{correction} != 1$ then
+ $F_{i,j}^{\prime u} == F_{i//2+1,j//2+1}^{d}$ $M_{i,j}^{correction} = 1$
+end if
+end for
+
+map, $\mathbf{F}^{\prime \mathbf{u}}$ with the guidance from a higher scale panoptic and semantic maps, $\mathbf{P}^{\mathbf{u}}$ , and $\mathbf{S}^{\mathbf{u}}$ , and a mask, $\mathbf{M}^{\mathrm{correction}}$ , that we will generate.
+
+To correct the misalignment in the $2 \times 2$ upsampling layer, we scan the four neighbors of each pixel. In the $2 \times 2$ window, if we find a match between the corresponding pixels' panoptic identity in higher resolution and a neighboring pixels panoptic identity in lower resolution, we copy over that neighboring feature to the corresponding indices in upsampled feature map. This method is depicted in Algorithm 1. Note that the first for loop would correspond to the nearest neighbor upsampling algorithm if there was no if statement in the loop. We also update the mask, $\mathbf{M}^{\mathrm{correction}}$ , to keep track of which indices have been successfully aligned. In the subsequent for loops, for the indices that were not aligned yet, we check if any of the other neighbors are matching the panoptic identity with them.
+
+After Algorithm 1, we end up with a partially filled upsampled feature map $\mathbf{F}^{\prime u}$ and a $\mathbf{M}^{\mathrm{correction}}$ mask which defines which coordinates found a match. After that we calculate the final $\mathbf{F}^{\prime \mathbf{u}}$ by:
+
+$$
+\begin{array}{c} F _ {(i, j)} ^ {\prime u} = F _ {(i, j)} ^ {\prime u} + \\ \underbrace {(1 - M _ {i , j} ^ {c o r r e c t i o n}) * f _ {h o l e f i l l i n g} (S _ {(i , j)} ^ {u})} _ {\text {H o l e F i l l i n g}} \end{array}
+$$
+
+We generate $f_{holefilling}$ with the Panoptic aware convolution layer by feeding semantic map $(\mathbf{S}^{\mathbf{u}})$ as input and panoptic map $(\mathbf{P}^{\mathbf{u}})$ for guidance. We use the semantic map to encode features from $K \times 2W \times 2H$ semantic map where $K$ is the number of classes to a higher dimension $C \times 2W \times 2H$ with this layer.
+
+$$
+f _ {\text {h o l e f i l l i n g}} = \text {P a n o p t i c A w a r e C o n v o l u t i o n} \left(S ^ {u}\right) \tag {3}
+$$
+
+With Panoptic aware upsampling layer, the features that have been tailored for a specific instance or a semantic map are not copied over to an another one, which improves the accuracy of the generated images.
+
+# 3.3. Network Architecture
+
+Our final proposed architecture, motivated by SPADE [23] is described in Figure 5. Similar to SPADE, we feed a downsampled segmentation map to the first layer of the generator, but in our architecture, it is a Panoptic aware convolution layer that encodes features from $\# \text{Classes} \times W \times H$ semantic map to a higher dimension $1024 \times W \times H$ . In the rest of the network, we replace all convolution layers in the ResNet Blocks with the Panoptic aware convolution layers and all upsampling layers with Panoptic aware upsampling layers. Each block operates at a different scale and we downsample the semantic and panoptic maps to match the scale of the features.
+
+The input to the SPADE module is kept as a semantic map which learns denormalization parameters. Panoptic maps are not suitable for this computation, since the convolution operation expects a fixed number of channels. Hence, we rely on SPADE to provide the network with the correct statistics of features based on the semantic classes.
+
+We feed panoptic maps to the panoptic aware convolution layers in order to perform convolution operation based on the instances and classes. The original full resolution panoptic and semantic maps are also fed to the panoptic aware upsampling layers to perform upsampling alignment correction and hole filling.
+
+The panoptic aware convolution layer that is in the first layer of the architecture which encodes features from #Classes $\times W\times H$ semantic map to a higher dimension encoded features are shared between panoptic aware upsampling layers in the rest of the network. When the number of channels the partial convolution layer from the first layer generates does not match the one expected at different blocks, we decrease the dimension with $1\times 1$ convolution layers. This layer is depicted by green boxes in Figure 5. Note that the green box is depicted multiple times in Figure but they are shared between stages. By sharing the weights, we do not introduce additional parameters to the baseline except the negligible cost of $1\times 1$ convolutions. Sharing these weights also makes sense since the task of this layer
+
+is common at each stage which is to generate features for instances and semantic classes that appear for the first time at that stage.
+
+# 4. Experiments
+
+Datasets. We conduct our experiments on Cityscapes [5] and COCO-Stuff [2] datasets that have both instance and semantic segmentation labels available. The Cityscapes dataset contains 3,000 training images and 500 validation images of urban street scenes along with 35 semantic classes and 9 instance classes. All classes are used while synthesizing images but only 19 classes are used for semantic evaluation as defined by Cityscapes evaluation benchmark. COCO-Stuff dataset has 118,000 training images and 5,000 validation images from both indoor and outdoor scenes. This dataset has 182 semantic classes and 81 instance classes.
+
+Implementation Details. We use the parameters provided by SPADE baseline [23]. Specifically, we use synchronized batch normalization to collect statistics across GPUs, and apply Spectral Norm [20] to all layers in the generator and discriminator. We train and generate images in $256 \times 256$ resolution for COCO-Stuff, and $256 \times 512$ for Cityscapes dataset. We train 200 epochs on Cityscapes dataset with batch size 16, and linearly decay the learning rate after 100 epochs as done by [23]. COCO-Stuff dataset is trained for 100 epochs with batch size of 48 with constant learning rate. Initial learning rates are set to 0.0001 and 0.0004 for the generator and discriminator respectively, and networks are trained with ADAM solver with $\beta_{1} = 0$ and $\beta_{2} = 0.999$ .
+
+Performance Metrics. We adopt the evaluation metrics as previous conditional image synthesis work [23, 32] plus add another metric for detecting successfully generated object instances. The first two metrics, mean intersection over union (mIoU) and overall pixel accuracy (accuracy), are obtained by inferring a state-of-the-art semantic segmentation model on the synthesized images and comparing how well the predicted segmentation mask matches the ground truth semantic map. Additionally, we use Detection Average Precision (detAP) by using a trained object detection network to evaluate instance detection accuracy on synthesized images.
+
+We use the same segmentation networks used in [23] for evaluation. Specifically, we use DeepLabV2 [3, 21] for COCO-Stuff, and DRN-D-105 [36] for Cityscapes datasets. For detection, we use Faster-RCNN [26] with ResNet-50 backbone. In addition to the mIoU, accuracy and detAP performance metrics, we use the Fréchet Inception Distance (FID) [8] to measure the distance between the distribution of synthesized results and the distribution of real images.
+
+Baselines. We compare our method against three popular image synthesis frameworks, namely: cascaded refinement network (CRN) [4], semi-parametric image synthesis
+
+
+Figure 5. In our generator, each ResNet Block layer uses segmentation and panoptic masks to modulate the layer activations. (Left) The generator contains a series of the residual blocks with Panoptic aware convolution and upsampling layers. (Right) Structure of residual blocks.
+
+| Method | detAP | mIoU | accuracy | FID |
| CRN [4] | 8.75 | 52.4 | 77.1 | 104.7 |
| SIMS [24] | 2.60 | 47.2 | 75.5 | 49.7 |
| SPADE [23] | 11.67 | 62.3 | 81.9 | 71.8 |
| SPADE* | 11.80 | 62.2 | 81.9 | 94.0 |
| Ours | 13.43 | 64.8 | 82.4 | 96.4 |
+
+Table 1. Results on Cityscapes. Our method outperforms current leading methods in detAP, mIoU and overall pixel accuracy. SPADE* is trained by us.
+
+(SIMS) [24], and spatially-adaptive denormalization model (SPADE) [23]. CRN uses a deep network with given semantic label map, it repeatedly refines the output from low to high resolution without an adversarial training. SIMS uses a memory bank of image segments constructed from a training set of images and refines the boundaries via a deep network. Both SIMS and CRN operate only on a semantic map. SPADE is the current state-of-the-art conditional image synthesis method, and not only uses semantic map but also incorporates the instance information via a boundary map. The pixel in the boundary map is 1 if its object identity is different from any of its 4 neighbors, and 0 otherwise. This approach does not provide the full instance information especially in cluttered scenes with lots of objects occluding each other. We compare with SIMS on Cityscapes dataset but not on COCO-stuff dataset as SIMS requires queries to the training set images and it is computationally costly for a large dataset such as the COCO-stuff dataset.
+
+Quantitative Results. In Tables 1 and 2, we provide the results for Cityscapes and COCO-Stuff datasets, respectively. We find that our method outperforms the current state-of-the-art by a large margin for object detection score, mIoU and pixel level accuracy in both datasets. Table 4 reports mIoU for each class in Cityscapes dataset. We improve al
+
+| Method | detAP | mIoU | accuracy | FID |
| CRN [4] | 22.7 | 23.7 | 40.4 | 70.4 |
| SPADE [23] | 28.5 | 37.4 | 67.9 | 22.6 |
| SPADE* | 29.0 | 38.2 | 68.6 | 25.3 |
| Ours | 31.0 | 38.6 | 69.0 | 28.8 |
+
+Table 2. Results on COCO-Stuff. Our method outperforms current leading methods in detAP, mIoU and overall pixel accuracy. SPADE* is trained by us.
+
+most all of the classes significantly. Especially, our proposed method improves mIoU for traffic sign from 44.7 to 50.0, which is a challenging class because of the small size of the signs.
+
+We observe a slight degradation in our FID score compared to the released SPADE models, and the SPADE models we trained with the parameters provided by [23]. FID score tries to match the variances/diversities between real and generated images, without caring about the correspondence with the conditioned semantic map and instance map. Our results have better correspondence with the underlying semantic and instance maps. Though this would be the desired behavior, the results may get affected by human annotation bias. We suspect, such annotation bias (e.g. straight line bias, over-simplified polygonal shape bias) in the inputs may deteriorate the matching of variances. Also note that SIMS produces images that have significantly lower FID score than the other methods even though it achieves worse detAP and mIoU scores. This is because SIMS copies image patches from training dataset, and sometimes the copied patch does not faithfully match the given segmentation mask. This issue becomes even more apparent in detAP score, as SIMS copies over patches without ensuring the number of cars being consistent with the panoptic map. Qualitative Comparison. In Figures 6 and 7, we provide image synthesis results of our method and other competing
+
+| Method | road | swalk | build. | wall | fence | pole | tlight | tsign | veg. | terr. | sky | person | rider | car | truck | bus | train | mbike | bike |
| CRN [4] | 96.9 | 79.5 | 76.7 | 29.0 | 10.6 | 34.8 | 39.8 | 44.3 | 68.4 | 54.4 | 91.9 | 63.0 | 39.7 | 87.8 | 25.0 | 56.2 | 31.8 | 14.5 | 52.2 |
| SIMS [24] | 93.3 | 66.1 | 73.6 | 33.1 | 34.5 | 30.3 | 27.2 | 39.5 | 73.4 | 46.2 | 56.6 | 42.9 | 31.0 | 70.3 | 35.8 | 42.5 | 37.3 | 20.3 | 43.1 |
| SPADE [23] | 97.4 | 80.0 | 87.9 | 50.6 | 47.2 | 35.9 | 39.0 | 44.7 | 88.2 | 66.1 | 91.6 | 62.3 | 38.7 | 88.7 | 65.0 | 70.2 | 41.4 | 28.6 | 58.8 |
| Ours | 97.7 | 82.5 | 89.2 | 60.6 | 54.2 | 35.3 | 39.8 | 50.0 | 89.5 | 69.0 | 92.4 | 63.2 | 38.2 | 90.6 | 66.7 | 72.2 | 48.8 | 31.2 | 59.1 |
+
+
+Figure 6. Visual comparison of image synthesis results on Cityscapes dataset. We also provide the bounding box detection predictions from Faster-RCNN. The cars in the first row images are occluded by poles which create a challenge for the image synthesis methods. CRN generates cars that can be detected by Faster-RCNN but visually look less pleasing. SIMS loosely follows the provided semantic map, and the cars SPADE generates are not distinctive enough to be detected by Faster-RCNN. In the third row, cars generated on the right side of the images present a challenge for the algorithms that only use semantic maps as seen in the images from CRN and SIMS where CRN generates two cars and SIMS generates four cars while three cars should be present. Thanks to the boundary maps used in SPADE, it can generate the correct number of cars. However, our proposed method along with generating the correct number of car instances, also generates more instances of persons that can be detected with higher accuracy.
+
+methods. We also provide the bounding box detection predictions from Faster-RCNN. We especially provide examples where multiple instances occlude each other. We find that our method produces instances with better visual quality in challenging scenarios. Specifically, we find that our method generates distinct cars even when they are behind poles, and can generate detectable people even when they are far away as shown in Figure 6. As can be seen in Figure 7, we find that other methods may blend the pattern and texture of objects among neighboring instances, whereas our method clearly separates them.
+
+Ablation Studies. We conduct controlled experiments and gradually add our proposed components. We start with a baseline SPADE model [23]. We train the model three times, and report the average results. First, we replace the convolutions in ResNet blocks and the first layer with panoptic aware convolution layers. Second, we additionally replace nearest neighbor upsampling layers with panoptic
+
+Table 3. Per-class mIoU results on Cityscapes.
+
+| Method | mIoU | detAP |
| Baseline (SPADE) | 60.00 | 10.97 |
| +Panoptic-aware Partial Conv | 61.24 | 11.50 |
| +Panoptic-aware Upsampling | 64.55 | 13.04 |
+
+Table 4. Ablation studies on Cityscapes dataset. Results are averaged over 3 runs, and they are slightly different than the results in Table 1.
+
+aware upsampling layers. The segmentation mIoU scores and detAP scores of the generated images by each setup are shown in Table 4 where each added module increases the performance.
+
+# 5. Conclusion
+
+In conclusion, we propose a panoptic-based image synthesis network that generates images with higher fidelity to the underlying segmentation and instance information.
+
+
+Panoptic Map
+
+
+CRN [4]
+
+
+SPADE [23]
+
+
+Ours
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 7. Visual comparison of image synthesis results on the COCO-stuff dataset. We also display the bounding box detection predictions from Faster-RCNN. Other methods generate patterns that are continues throughout instances which makes the instances indistinguishable. Also note that in the last row our method is able to produce detectable car instances in a cluttered scene.
+
+
+
+
+
+
+
+We show that our method is better at generating distinct instances in challenging scenarios and outperforms previous state-of-the-art significantly in detAP metric, a metric which has not been used to evaluate conditional image synthesis results before.
+
+Future Work. Multi-modal image synthesis and controllability of styles are very important for content generation applications. The architecture in our experiments does not support style-guided image synthesis. However, our work can be extended to output multiple styles via an encoder
+
+decoder architecture as proposed in pix2pixHD [32]. Furthermore, the proposed panoptic aware convolution and upsampling layers can be used for feature maps that decode styles, and can provide further improvements. We leave this as future work.
+
+# References
+
+[1] Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale gan training for high fidelity natural image synthe
+
+sis. In International Conference on Learning Representations (ICLR), 2019. 1, 4
+[2] Holger Caesar, Jasper Uijlings, and Vittorio Ferrari. Cocostuff: Thing and stuff classes in context. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1209-1218, 2018. 2, 5
+[3] 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 (TPAMI), 40(4):834-848, 2018. 5
+[4] Qifeng Chen and Vladlen Koltun. Photographic image synthesis with cascaded refinement networks. In Proceedings of the IEEE International Conference on Computer Vision, pages 1511-1520, 2017. 1, 2, 5, 6, 7, 8
+[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. 2, 5
+[6] 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. 2
+[7] Adam W Harley, Konstantinos G Derpanis, and Iasonas Kokkinos. Segmentation-aware convolutional networks using local attention masks. In IEEE International Conference on Computer Vision (ICCV), volume 2, page 7, 2017. 2, 3
+[8] 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, 2017. 5
+[9] Seunghoon Hong, Dingdong Yang, Jongwook Choi, and Honglak Lee. Inferring semantic layout for hierarchical text-to-image synthesis. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 2
+[10] Xun Huang, Ming-Yu Liu, Serge Belongie, and Jan Kautz. Multimodal unsupervised image-to-image translation. European Conference on Computer Vision (ECCV), 2018. 2
+[11] 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 (CVPR), 2017. 1, 2
+[12] Tomas Jakab, Ankush Gupta, Hakan Bilen, and Andrea Vedaldi. Unsupervised learning of object landmarks through conditional image generation. In Advances in Neural Information Processing Systems, 2018. 2
+[13] Levent Karacan, Zeynep Akata, Aykut Erdem, and Erkut Erdem. Learning to generate images of outdoor scenes from attributes and semantic layouts. arXiv preprint arXiv:1612.00215, 2016. 2
+[14] Levent Karacan, Zeynep Akata, Aykut Erdem, and Erkut Erdem. Manipulating attributes of natural scenes via hallucination. arXiv preprint arXiv:1808.07413, 2018. 2
+
+[15] 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 Proceedings of the European Conference on Computer Vision (ECCV), pages 85-100, 2018. 2, 3
+[16] Guilin Liu, Kevin J. Shih, Ting-Chun Wang, Fitsum A. Reda, Karan Sapra, Zhiding Yu, Andrew Tao, and Bryan Catanzaro. Partial convolution based padding, 2018. 2
+[17] Ming-Yu Liu, Thomas Breuel, and Jan Kautz. Unsupervised image-to-image translation networks. In Advances in Neural Information Processing Systems, 2017. 2
+[18] Dominik Lorenz, Leonard Bereska, Timo Milbich, and Björn Ommer. Unsupervised part-based disentangling of object shape and appearance. In CVPR, 2019. 2
+[19] Davide Mazzini. Guided upsampling network for real-time semantic segmentation. arXiv preprint arXiv:1807.07466, 2018.2
+[20] Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks. arXiv preprint arXiv:1802.05957, 2018. 5
+[21] Kazuto Nakashima. Deepplab-pytorch. https://github.com/kazuto1011/deeplab-pytorch, 2018.5
+[22] Hyeonwoo Noh, Seunghoon Hong, and Bohyung Han. Learning deconvolution network for semantic segmentation. IEEE International Conference on Computer Vision (ICCV), Dec 2015. 2
+[23] Taesung Park, Ming-Yu Liu, Ting-Chun Wang, and Jun-Yan Zhu. Semantic image synthesis with spatially-adaptive normalization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2337-2346, 2019. 2, 4, 5, 6, 7, 8
+[24] Xiaojuan Qi, Qifeng Chen, Jiaya Jia, and Vladlen Koltun. Semi-parametric image synthesis. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8808-8816, 2018. 2, 6, 7
+[25] Scott Reed, Zeynep Akata, Xinchen Yan, Lajanugen Logeswaran, Bernt Schiele, and Honglak Lee. Generative adversarial text to image synthesis. In International Conference on Machine Learning (ICML), 2016. 2
+[26] 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. 5
+[27] 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 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. 2
+[28] Kevin J Shih, Aysegul Dundar, Animesh Garg, Robert Pottorf, Andrew Tao, and Bryan Catanzaro. Video interpolation and prediction with unsupervised landmarks. arXiv preprint arXiv:1909.02749, 2019. 2
+[29] Hang Su, Varun Jampani, Deqing Sun, Orazio Gallo, Erik Learned-Miller, and Jan Kautz. Pixel-adaptive convolutional
+
+neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 11166-11175, 2019. 2
+[30] Jonas Uhrig, Nick Schneider, Lukas Schneider, Uwe Franke, Thomas Brox, and Andreas Geiger. Sparsity invariant cnns. arXiv preprint arXiv:1708.06500, 2017. 2
+[31] Jiaqi Wang, Kai Chen, Rui Xu, Ziwei Liu, Chen Change Loy, and Dahua Lin. Carafe: Content-aware reassembly of features, 2019. 2
+[32] 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, pages 8798-8807, 2018. 1, 2, 4, 5, 8
+[33] Xiaolong Wang, Ross Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7794-7803, 2018. 2
+[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 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 2
+[35] Zichao Yang, Xiaodong He, Jianfeng Gao, Li Deng, and Alex Smola. Stacked attention networks for image question answering. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 21-29, 2016. 2
+[36] Fisher Yu, Vladlen Koltun, and Thomas Funkhouser. Dilated residual networks. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 5
+[37] Han Zhang, Ian Goodfellow, Dimitris Metaxas, and Augustus Odena. Self-attention generative adversarial networks. arXiv preprint arXiv:1805.08318, 2018. 1, 2
+[38] Han Zhang, Tao Xu, Hongsheng Li, Shaoting Zhang, Xiaolei Huang, Xiaogang Wang, and Dimitris Metaxas. Stackgan: Text to photo-realistic image synthesis with stacked generative adversarial networks. In IEEE International Conference on Computer Vision (ICCV), 2017. 1, 2
+[39] Han Zhang, Tao Xu, Hongsheng Li, Shaoting Zhang, Xiaogang Wang, Xiaolei Huang, and Dimitris Metaxas. Stackgan++: Realistic image synthesis with stacked generative adversarial networks. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 2018. 1
+[40] Bo Zhao, Lili Meng, Weidong Yin, and Leonid Sigal. Image generation from layout. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 2
+[41] Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In IEEE International Conference on Computer Vision (ICCV), 2017. 2
+[42] Jun-Yan Zhu, Richard Zhang, Deepak Pathak, Trevor Darryll, Alexei A Efros, Oliver Wang, and Eli Shechtman. Toward multimodal image-to-image translation. In Advances in Neural Information Processing Systems, 2017. 2
\ No newline at end of file
diff --git a/panopticbasedimagesynthesis/images.zip b/panopticbasedimagesynthesis/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..551b8cd9d3f6cd58f6c76ca6b9758a8062578f63
--- /dev/null
+++ b/panopticbasedimagesynthesis/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:232619c1a20f3d1e32486e27e052a88ac8c85d81352df21ae1db70091a3dff46
+size 783624
diff --git a/panopticbasedimagesynthesis/layout.json b/panopticbasedimagesynthesis/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..82a061c2f3033403a80c74ee4fef37fd6fb99b73
--- /dev/null
+++ b/panopticbasedimagesynthesis/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:857eb1692a1aaecf67c95fc7ff852548a8f2a4131bb214b0df2eb3e817e17bb1
+size 375782
diff --git a/panopticdeeplabasimplestrongandfastbaselineforbottomuppanopticsegmentation/f37febc3-b92a-433d-83b2-4e5f94d5e3f4_content_list.json b/panopticdeeplabasimplestrongandfastbaselineforbottomuppanopticsegmentation/f37febc3-b92a-433d-83b2-4e5f94d5e3f4_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..7c47a20332590d3e7a1edc0f05b22342da5ac7ac
--- /dev/null
+++ b/panopticdeeplabasimplestrongandfastbaselineforbottomuppanopticsegmentation/f37febc3-b92a-433d-83b2-4e5f94d5e3f4_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:99a72d0b3a3b42428cc852a62535a67a8e503f905ad7313ddc2d0b42b8488603
+size 82754
diff --git a/panopticdeeplabasimplestrongandfastbaselineforbottomuppanopticsegmentation/f37febc3-b92a-433d-83b2-4e5f94d5e3f4_model.json b/panopticdeeplabasimplestrongandfastbaselineforbottomuppanopticsegmentation/f37febc3-b92a-433d-83b2-4e5f94d5e3f4_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..33bc68cefab7febb4fe9655b5289b7ef4031e07d
--- /dev/null
+++ b/panopticdeeplabasimplestrongandfastbaselineforbottomuppanopticsegmentation/f37febc3-b92a-433d-83b2-4e5f94d5e3f4_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1bdb9f37d3070a98b62ff55caa565bc931008b36553c648d27831c9cf9627aea
+size 107275
diff --git a/panopticdeeplabasimplestrongandfastbaselineforbottomuppanopticsegmentation/f37febc3-b92a-433d-83b2-4e5f94d5e3f4_origin.pdf b/panopticdeeplabasimplestrongandfastbaselineforbottomuppanopticsegmentation/f37febc3-b92a-433d-83b2-4e5f94d5e3f4_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..b6bd881ecc533b3b27d065636fdf7d8ed1a52065
--- /dev/null
+++ b/panopticdeeplabasimplestrongandfastbaselineforbottomuppanopticsegmentation/f37febc3-b92a-433d-83b2-4e5f94d5e3f4_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b2d70b32df43e6b1a883977d880ce244775cb91ca664042d6d1cabfb925ff663
+size 1967664
diff --git a/panopticdeeplabasimplestrongandfastbaselineforbottomuppanopticsegmentation/full.md b/panopticdeeplabasimplestrongandfastbaselineforbottomuppanopticsegmentation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..668e508a6ccc4b853260885b0acd51c04edb9ee6
--- /dev/null
+++ b/panopticdeeplabasimplestrongandfastbaselineforbottomuppanopticsegmentation/full.md
@@ -0,0 +1,303 @@
+# Panoptic-DeepLab: A Simple, Strong, and Fast Baseline for Bottom-Up Panoptic Segmentation
+
+Bowen Cheng $^{1,2}$ , Maxwell D. Collins $^{2}$ , Yukun Zhu $^{2}$ , Ting Liu $^{2}$ , Thomas S. Huang $^{1}$ , Hartwig Adam $^{2}$ , Liang-Chieh Chen $^{2}$
+
+$^{1}$ UIUC $^{2}$ Google Research
+
+# Abstract
+
+In this work, we introduce Panoptic-DeepLab, a simple, strong, and fast system for panoptic segmentation, aiming to establish a solid baseline for bottom-up methods that can achieve comparable performance of two-stage methods while yielding fast inference speed. In particular, Panoptic-DeepLab adopts the dual-ASPP and dual-decoder structures specific to semantic, and instance segmentation, respectively. The semantic segmentation branch is the same as the typical design of any semantic segmentation model (e.g., DeepLab), while the instance segmentation branch is class-agnostic, involving a simple instance center regression. As a result, our single Panoptic-DeepLab simultaneously ranks first at all three Cityscapes benchmarks, setting the new state-of-art of $84.2\%$ mIoU, $39.0\%$ AP, and $65.5\%$ PQ on test set. Additionally, equipped with MobileNetV3, Panoptic-DeepLab runs nearly in real-time with a single $1025 \times 2049$ image (15.8 frames per second), while achieving a competitive performance on Cityscapes (54.1 PQ% on test set). On Mapillary Vistas test set, our ensemble of six models attains $42.7\%$ PQ, outperforming the challenge winner in 2018 by a healthy margin of $1.5\%$ . Finally, our Panoptic-DeepLab also performs on par with several top-down approaches on the challenging COCO dataset. For the first time, we demonstrate a bottom-up approach could deliver state-of-the-art results on panoptic segmentation.
+
+# 1. Introduction
+
+Panoptic segmentation, unifying semantic segmentation and instance segmentation, has received a lot of attention thanks to the recently proposed panoptic quality metric [34] and associated recognition challenges [46, 16, 53]. The goal of panoptic segmentation is to assign a unique value, encoding both semantic label and instance id, to every pixel in an image. It requires identifying the class and extent of each individual 'thing' in the image, and labelling all pixels that
+
+
+Figure 1. Our Panoptic-DeepLab predicts three outputs: semantic segmentation, instance center prediction and instance center regression. Class-agnostic instance segmentation, obtained by grouping predicted foreground pixels to their closest predicted instance centers, is then fused with semantic segmentation by majority-vote rule to generate final panoptic segmentation.
+
+belong to each 'stuff' class.
+
+The task of panoptic segmentation introduces challenges that preceding methods are unsuited to solve. Models typically used in the separate instance and semantic segmentation literature have diverged, and fundamentally different approaches dominate in each setting. For panoptic segmentation, the top-down methods [74, 33, 40, 43, 60], attaching another semantic segmentation branch to Mask R-CNN [25], generate overlapping instance masks as well as duplicate pixel-wise semantic predictions. To settle the conflict, the commonly employed heuristic resolves overlapping instance masks by their predicted confidence scores [34], or even by the pairwise relationship between categories [43] (e.g., ties should be always in front of person). Additionally, the discrepancy between semantic and instance segmentation results are sorted out by favoring the instance predictions. Though effective, it may be hard to implement the hand-crafted heuristics in a fast and parallel fashion. Another effective way is to develop advanced modules to fuse semantic and instance segmentation results [43, 40, 74]. However, these top-down methods are usually
+
+slow in speed, resulted from the multiple sequential processes in the pipeline.
+
+On the other hand, bottom-up methods naturally resolve the conflict by predicting non-overlapping segments. Only few works [75, 22] adopt the bottom-up approach, which typically starts with a semantic segmentation prediction followed by grouping operations to generate instance masks. Tackling panoptic segmentation in such a sequential order allows a simple and fast scheme, such as majority vote [75], to merge semantic and instance segmentation results. Although obtaining promising fast inference speed, bottom-up approaches still demonstrate inferior performance compared to top-down ones prevailing in public benchmarks [46, 16, 53].
+
+The difficulties faced by top-down methods, and the dearth of previous investigations into complementary approaches motivate us to establish a simple, strong, and fast bottom-up baseline for panoptic segmentation. Our proposed Panoptic-DeepLab (Fig. 1) requires only three loss functions during training, and introduces extra marginal parameters as well as additional slight computation overhead when building on top of a modern semantic segmentation model. The design of the proposed Panoptic-DeepLab is conceptually simple, adopting dual-ASPP and dual-decoder modules specific to semantic segmentation and instance segmentation, respectively. The semantic segmentation branch follows the typical design of any semantic segmentation model (e.g., DeepLab [11]), while the instance segmentation branch involves a simple instance center regression [4, 30], where the model learns to predict instance centers as well as the offset from each pixel to its corresponding center, resulting in an extremely simple grouping operation by assigning pixels to their closest predicted center. Additionally, with fast GPU implementation of the merging operation, Panoptic-DeepLab delivers near real-time end-to-end panoptic segmentation prediction.
+
+We conduct experiments on several popular panoptic segmentation datasets. On Cityscapes test set [16], a single Panoptic-DeepLab model (without fine-tuning on different tasks) achieves state-of-the-art performance of $65.5\%$ PQ, $39.0\%$ AP, and $84.2\%$ mIoU, simultaneously ranking first on all three Cityscapes tasks when comparing with published works. On Mapillary Vistas [53], our best single model attains $40.6\%$ PQ on val set, while employing an ensemble of 6 models reaches a performance of $42.2\%$ PQ on val set and $42.7\%$ PQ on test set, outperforming the winner of Mapillary Vistas Panoptic Segmentation Challenge in 2018 by a healthy margin of $1.5\%$ PQ. For the first time, we show a bottom-up approach could deliver state-of-the-art panoptic segmentation results on both Cityscapes and Mapillary Vistas. On COCO [46] test-dev set, our Panoptic-DeepLab also demonstrates state-of-the-art results, performing on par with several top-down ap
+
+proaches. Finally, we provide extensive experimental results and disclose every detail in our system. We hope our Panoptic-DeepLab could serve as a solid baseline to facilitate the research on panoptic segmentation, especially from the bottom-up perspective.
+
+# 2. Related Works
+
+We categorize current panoptic segmentation methods [34] into two groups: top-down and bottom-up approaches.
+
+Top-down: Most state-of-the-art methods tackle panoptic segmentation from the top-down or proposal-based perspective. These methods are often referred to as two-stage methods because they require an additional stage to generate proposals. Specifically, Mask R-CNN [25] is commonly deployed to extract overlapping instances, followed by some post-processing methods to resolve mask overlaps. The remaining regions are then filled by a light-weight stuff segmentation branch. For example, TASCNet [40] learns a binary mask to enforce the consistency between 'thing' and 'stuff' predictions. Liu et al. [52] propose the Spatial Ranking module to resolve the overlapping instance masks. AUNet [43] introduces attention modules to guide the fusion between 'thing' and 'stuff' segmentation. Panoptic FPN [33] endows Mask R-CNN [25] with a semantic segmentation branch. UPSNet [74] develops a parameter-free panoptic head which resolves the conflicts in 'thing'-'stuff' fusion by predicting an extra unknown class. Porzi et al. [60] integrate the multi-scale features from FPN [45] with a light-weight DeepLab-inspired module [9]. AdaptIS [66] generates instance masks with point proposals.
+
+Bottom-up: On the other hand, there are few bottom-up or proposal-free methods for panoptic segmentation. These works typically get the semantic segmentation prediction before detecting instances by grouping 'thing' pixels into clusters. The first bottom-up approach, DeeperLab [75], adopts bounding box corners as well as object centers for class-agnostic instance segmentation, coupled with DeepLab semantic segmentation outputs [8, 10]. Recently, SSAP [22] proposes to group pixels based on a pixel-pair affinity pyramid [51] with an efficient graph partition method [31]. Unfortunately, given its simplicity (i.e., a single pass of the system for prediction), bottom-up approaches perform inferiorly to top-down methods at almost all public benchmarks. In this work, we aim to push the envelope of bottom-up approaches. We note that there are several instance segmentation works [77, 68, 76, 2, 48, 35, 56, 20, 18, 44, 37, 30, 51, 54, 6], which could be potentially extended to bottom-up panoptic segmentation. Additionally, our method bears a similarity to Hough-Voting-based methods [4, 39, 21, 5] and recent works by Kendall et al. [30], Uhrig et al. [69] and Neven et al. [54] in the sense that our class-agnostic instance segmentation is obtained by regressing foreground pixels to their centers. However, our method
+
+
+Figure 2. Our Panoptic-DeepLab adopts dual-context and dual-decoder modules for semantic segmentation and instance segmentation predictions. We apply atrous convolution in the last block of a network backbone to extract denser feature map. The Atrous Spatial Pyramid Pooling (ASPP) is employed in the context module as well as a light-weight decoder module consisting of a single convolution during each upsampling stage. The instance segmentation prediction is obtained by predicting the object centers and regressing every foreground pixel (i.e., pixels with predicted 'thing' class) to their corresponding center. The predicted semantic segmentation and class-agnostic instance segmentation are then fused to generate the final panoptic segmentation result by the "majority vote" proposed by DeeperLab.
+
+is even simpler than theirs: we directly predict the instance center locations and group pixels to their closest predicted centers. As a result, our method does not require the clustering method OPTICS [1] used in [30], or the advanced clustering loss function proposed in [54]. Finally, our model employs the parallel multi-head prediction framework similar to [68, 36, 55].
+
+Keypoint representation: Recently, keypoint representations have been used for instance segmentation and object detection. Newell et al. [56] group pixels by embedding vectors. PersonLab [58] generates person segmentation masks and groups them into instances by learning offset to their detected keypoints. CornerNet [38] detects objects by predicting paired corners and group corners based on [56]. ExtremeNet [79] groups 'extreme points' [57] according to the relation to a center point. Zhou et al. [78] and Duan et al. [19] exploit instance centers for object detection. Following the same direction, we represent each instance by its center and take a step further by showing that such a simple representation is able to achieve state-of-the-art panoptic segmentation results on several challenging datasets. Different from keypoint-based detection, our Panoptic-DeepLab only requires class-agnostic object center prediction.
+
+# 3. Panoptic-DeepLab
+
+As shown in Fig. 2, our proposed Panoptic-DeepLab is deployed in a bottom-up and single-shot manner.
+
+# 3.1. Architecture
+
+Panoptic-DeepLab consists of four components: (1) an encoder backbone shared for both semantic segmentation and instance segmentation, (2) decoupled ASPP modules and (3) decoupled decoder modules specific to each task, and (4) task-specific prediction heads.
+
+Basic architecture: The encoder backbone is adapted from an ImageNet-pretrained neural network paired with atrous convolution for extracting denser feature maps in its last block. Motivated by [14, 13, 54], we employ separate ASPP and decoder modules for semantic segmentation and instance segmentation, respectively, based on the hypothesis that those two branches require different contextual and decoding information, which is empirically verified in the following section. Our light-weight decoder module follows DeepLabV3+ [11] with two modifications: (1) we introduce an additional low-level feature with output stride 8 to the decoder, thus the spatial resolution is gradually recovered by a factor of 2, and (2) in each upsampling stage we apply a single $5 \times 5$ depthwise-separable convolution [28].
+
+Semantic segmentation head: We employ the weighted bootstrapped cross entropy loss, proposed in [75], for semantic segmentation, predicting both 'thing' and 'stuff' classes. The loss improves over bootstrapped cross entropy loss [72, 7, 59] by weighting each pixel differently.
+
+Class-agnostic instance segmentation head: Motivated by Hough Voting [4, 30], we represent each object instance by its center of mass. For every foreground pixel (i.e., pixel whose class is a 'thing'), we further predict the offset to its corresponding mass center. During training,
+
+groundtruth instance centers are encoded by a 2-D Gaussian with standard deviation of 8 pixels [67]. In particular, we adopt the Mean Squared Error (MSE) loss to minimize the distance between predicted heatmaps and 2D Gaussian-encoded groundtruth heatmaps. We use $L_{1}$ loss for the offset prediction, which is only activated at pixels belonging to object instances. During inference, predicted foreground pixels (obtained by filtering out background 'stuff' regions from semantic segmentation prediction) are grouped to their closest predicted mass center, forming our class-agnostic instance segmentation results, as detailed below.
+
+# 3.2. Panoptic Segmentation
+
+During inference, we use an extremely simple grouping operation to obtain instance masks, and a highly efficient majority voting algorithm to merge semantic and instance segmentation into final panoptic segmentation.
+
+Simple instance representation: We simply represent each object by its center of mass, $\{\mathcal{C}_n:(i_n,j_n)\}$ . To obtain the center point prediction, we first perform a keypoint-based non-maximum suppression (NMS) on the instance center heatmap prediction, essentially equivalent to applying max pooling on the heatmap prediction and keeping locations whose values do not change before and after max pooling. Finally, a hard threshold is used to filter out predictions with low confidence, and only locations with top-k highest confidence scores are kept. In experiments, we use max-pooling with kernel size 7, threshold 0.1, and $k = 200$ .
+
+Simple instance grouping: To obtain the instance id for each pixel, we use a simple instance center regression. For example, consider a predicted 'thing' pixel at location $(i,j)$ , we predict an offset vector $\mathcal{O}(i,j)$ to its instance center. $\mathcal{O}(i,j)$ is a vector with two elements, representing the offset in horizontal and vertical directions, respectively. The instance id for the pixel is thus the index of the closest instance center after moving the pixel location $(i,j)$ by the offset $\mathcal{O}(i,j)$ . That is,
+
+$$
+\hat {k} _ {i, j} = \underset {k} {\operatorname {a r g m i n}} | | \mathcal {C} _ {k} - ((i, j) + \mathcal {O} (i, j)) | | ^ {2}
+$$
+
+where $\hat{k}_{i,j}$ is the predicted instance id for pixel at $(i,j)$ .
+
+We use semantic segmentation prediction to filter out 'stuff' pixels whose instance id are always set to 0.
+
+Efficient merging: Given the predicted semantic segmentation and class-agnostic instance segmentation results, we adopt a fast and parallelizable method to merge the results, following the "majority vote" principle proposed in DeeperLab [75]. In particular, the semantic label of a predicted instance mask is inferred by the majority vote of the corresponding predicted semantic labels. This operation is essentially accumulating the class label histograms, and thus is efficiently implemented in GPU, which takes only 3 ms when operating on a $1025 \times 2049$ input.
+
+# 3.3. Instance Segmentation
+
+Panoptic-DeepLab can also generate instance segmentation predictions as a by-product. To properly evaluate the instance segmentation results, one needs to associate a confidence score with each predicted instance mask. Previous bottom-up instance segmentation methods use some heuristics to obtain the confidence scores. For example, DWT [2] and SSAP [22] use an average of semantic segmentation scores for some easy classes and use random scores for other harder classes. Additionally, they remove masks whose areas are below a certain threshold for each class. On the other hand, our Panoptic-DeepLab does not adopt any heuristic or post processing for instance segmentation. Motivated by YOLO [62], we compute the class-specific confidence score for each instance mask as
+
+$$
+\operatorname {S c o r e} (\text {O b j e c t n e s s}) \times \operatorname {S c o r e} (\text {C l a s s})
+$$
+
+where $Score(Objects)$ is unnormalized objectness score obtained from the class-agnostic center point heatmap, and $Score(Class)$ is obtained from the average of semantic segmentation predictions within the predicted mask region.
+
+# 4. Experiments
+
+Cityscapes [16]: The dataset consists of 2975, 500, and 1525 traffic-related images for training, validation, and testing, respectively. It contains 8 'thing' and 11 'stuff' classes.
+
+Mapillary Vistas [53]: A large-scale traffic-related dataset, containing 18K, 2K, and 5K images for training, validation and testing, respectively. It contains 37 'thing' classes and 28 'stuff' classes in a variety of image resolutions, ranging from $1024 \times 768$ to more than $4000 \times 6000$
+
+COCO [46]: There are 118K, 5K, and 20K images for training, validation, and testing, respectively. The dataset consists of 80 'thing' and 53 'stuff' classes.
+
+Experimental setup: We report mean IoU, average precision (AP), and panoptic quality (PQ) to evaluate the semantic, instance, and panoptic segmentation results.
+
+All our models are trained using TensorFlow on 32 TPUs. We adopt a similar training protocol as in [11]. In particular, we use the 'poly' learning rate policy [50] with an initial learning rate of 0.001, fine-tune the batch normalization [29] parameters, perform random scale data augmentation during training, and optimize with Adam [32] without weight decay. On Cityscapes, our best setting is obtained by training with whole image (i.e., crop size equal to $1025 \times 2049$ ) with batch size 32. On Mapillary Vistas, we resize the images to 2177 pixels at the longest side to handle the large input variations, and randomly crop $1025 \times 1025$ patches during training with batch size 64. On COCO, we resize the images to 1025 pixels at the longest side and train our models with crop size
+
+| Adam | MSE | De. x2 | ASPP x2 | L-Crop | \( C_{Sem} = 256 \) | \( C_{Ins} = 256 \) | Sem. Only | PQ (%) | AP (%) | mIoU (%) | Params (M) | M-Adds (B) |
| | | | | | | | 60.3 | 32.7 | 78.2 | 41.85 | 496.84 |
| ✓ | | | | | | | | 61.0 | 34.3 | 79.4 | 41.85 | 496.84 |
| ✓ | ✓ | | | | | | | 61.8 | 33.8 | 78.6 | 41.85 | 496.84 |
| ✓ | ✓ | ✓ | | | | | | 60.8 | 32.7 | 79.0 | 41.93 | 501.88 |
| ✓ | ✓ | ✓ | ✓ | | | | | 62.5 | 33.9 | 78.7 | 43.37 | 517.17 |
| ✓ | ✓ | ✓ | ✓ | ✓ | | | | 62.7 | 34.5 | 79.6 | 43.37 | 517.17 |
| ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | | 63.0 | 35.3 | 80.5 | 46.72 | 547.49 |
| ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | 62.1 | 35.1 | 80.3 | 46.88 | 573.86 |
| ✓ | | | | ✓ | ✓ | | ✓ | - | - | 80.3 | 43.60 | 518.84 |
+
+Table 1. Ablation studies on Cityscapes val set. Adam: Adam optimizer. MSE: MSE loss for instance center. De. x2: Dual decoder. ASPP x2: Dual ASPP. L-Crop: Large crop size. $C_{\text{sem}} = 256$ : 256 (instead of 128) channels in semantic segmentation branch. $C_{\text{ins}} = 256$ : 256 (instead of 128) channels in instance segmentation branch. Sem. Only: Only semantic segmentation. M-Adds are measured w.r.t. a $1025 \times 2049$ input.
+
+| Method | Extra Data | Flip | MS | PQ (%) | AP (%) | mIoU (%) |
| w/o Extra Data |
| TASCNet [40] | | | | 55.9 | - | - |
| Panoptic FPN [33] | | | | 58.1 | 33.0 | 75.7 |
| AUNet [43] | | | | 59.0 | 34.4 | 75.6 |
| UPSNet [74] | | | | 59.3 | 33.3 | 75.2 |
| UPSNet [74] | | ✓ | ✓ | 60.1 | 33.3 | 76.8 |
| Seamless [60] | | | | 60.3 | 33.6 | 77.5 |
| AdaptIS [66] | | ✓ | | 62.0 | 36.3 | 79.2 |
| DeeperLab [75] | | | | 56.5 | - | - |
| SSAP [22] | | ✓ | ✓ | 61.1 | 37.3 | - |
| Panoptic-DeepLab | | | | 63.0 | 35.3 | 80.5 |
| Panoptic-DeepLab | | ✓ | | 63.4 | 36.1 | 80.9 |
| Panoptic-DeepLab | | ✓ | ✓ | 64.1 | 38.5 | 81.5 |
| w/ Extra Data |
| TASCNet [40] | COCO | | | 59.3 | 37.6 | 78.1 |
| TASCNet [40] | COCO | ✓ | ✓ | 60.4 | 39.1 | 78.7 |
| UPSNet [74] | COCO | | | 60.5 | 37.8 | 77.8 |
| UPSNet [74] | COCO | ✓ | ✓ | 61.8 | 39.0 | 79.2 |
| Seamless [60] | MV | | | 65.0 | - | 80.7 |
| Panoptic-DeepLab | MV | | | 65.3 | 38.8 | 82.5 |
| Panoptic-DeepLab | MV | ✓ | | 65.6 | 39.4 | 82.6 |
| Panoptic-DeepLab | MV | ✓ | ✓ | 67.0 | 42.5 | 83.1 |
+
+Table 2. Cityscapes val set. Flip: Adding left-right flipped inputs. MS: Multiscale inputs. MV: Mapillary Vistas.
+
+$1025 \times 1025$ with batch size 64. We set training iterations to $60\mathrm{K}$ , $150\mathrm{K}$ , and $200\mathrm{K}$ for Cityscapes, Mapillary Vistas, and COCO, respectively. During evaluation, due to the sensitivity of PQ [74, 40, 60], we re-assign to 'VOID' label all 'stuff' segments whose areas are smaller than a threshold. The thresholds on Cityscapes, Mapillary Vistas, and COCO are 2048, 4096, and 4096, respectively. Additionally, we adopt multi-scale inference (scales equal to $\{0.5, 0.75, 1, 1.25, 1.5, 1.75, 2\}$ for Cityscapes and Mapillary Vistas and $\{0.5, 0.75, 1, 1.25, 1.5\}$ for COCO) and left-right flipped inputs, to further improve the performance. For all the reported results, unless specified, Xception-71 [15, 61, 11] is employed as the backbone.
+
+Panoptic-DeepLab is trained with three loss functions: weighted bootstrapped cross entropy loss for semantic segmentation head $(\mathcal{L}_{sem})$ [75]; MSE loss for center heatmap head $(\mathcal{L}_{heatmap})$ [67]; and L1 loss for center offset head $(\mathcal{L}_{offset})$ [58]. The final loss $\mathcal{L}$ is computed as follows.
+
+| Method | Extra Data | PQ (%) | AP (%) | mIoU (%) |
| Semantic Segmentation |
| GFF-Net [42] | | - | - | 82.3 |
| Zhu et al. [80] | C, V, MV | - | - | 83.5 |
| Hyundai Mobis AD Lab | C, MV | - | - | 83.8 |
| Instance Segmentation |
| AdaptIS [66] | | - | 32.5 | - |
| UPSNet [74] | COCO | - | 33.0 | - |
| PANet [49] | COCO | - | 36.4 | - |
| Sogou_MM | COCO | - | 37.2 | - |
| iFLYTEK-CV | COCO | - | 38.0 | - |
| NJUST | COCO | - | 38.9 | - |
| AlInnoSegmentation | COCO | - | 39.5 | - |
| Panoptic Segmentation |
| SSAP [22] | | 58.9 | 32.7 | - |
| TASCNet [40] | COCO | 60.7 | - | - |
| Seamless [60] | MV | 62.6 | - | - |
| Panoptic-DeepLab | | 62.3 | 34.6 | 79.4 |
| Panoptic-DeepLab | MV | 65.5 | 39.0 | 84.2 |
+
+Table 3. Cityscapes test set. C: Cityscapes coarse annotation. V: Cityscapes video. MV: Mapillary Vistas.
+
+$$
+\mathcal {L} = \lambda_ {\text {s e m}} \mathcal {L} _ {\text {s e m}} + \lambda_ {\text {h e a t m a p}} \mathcal {L} _ {\text {h e a t m a p}} + \lambda_ {\text {o f f s e t}} \mathcal {L} _ {\text {o f f s e t}}
+$$
+
+Specifically, we set $\lambda_{sem} = 3$ for pixels belonging to instances with an area smaller than $64\times 64$ and $\lambda_{sem} = 1$ everywhere else, following DeeperLab [75]. To make sure the losses are in the similar magnitude, we set $\lambda_{heatmap} = 200$ and $\lambda_{offset} = 0.01$ .
+
+# 4.1. Ablation Studies
+
+We conduct ablation studies on Cityscapes validation set, as shown in Tab. 1. Replacing SGD momentum optimizer with Adam optimizer yields $0.7\%$ PQ improvement. Instead of using the sigmoid cross entropy loss for training the heatmap (i.e., instance center prediction), it brings $0.8\%$ PQ improvement by applying the Mean Squared Error (MSE) loss to minimize the distance between the predicted heatmap and the 2D Gaussian-encoded groundtruth heatmap. It is more effective to adopt both dual-decoder and
+
+dual-ASPP, which gives us $0.7\%$ PQ improvement while maintaining similar AP and mIoU. Employing a large crop size $1025 \times 2049$ (instead of $513 \times 1025$ ) during training further improves the AP and mIoU by $0.6\%$ and $0.9\%$ respectively. Finally, increasing the feature channels from 128 to 256 in the semantic segmentation branch achieves our best result of $63.0\%$ PQ, $35.3\%$ AP, and $80.5\%$ mIoU.
+
+Multi-task learning: For reference, we train a Semantic-DeepLab under the same setting as the best Panoptic-DeepLab (last row of Tab. 1), showing that multitask learning does not bring extra gain to mIoU. Note that Panoptic-DeepLab adds marginal parameters and small computation overhead over Semantic-DeepLab.
+
+# 4.2. Cityscapes
+
+Val set: In Tab. 2, we report our Cityscapes validation set results. When using only Cityscapes fine annotations, our best Panoptic-DeepLab, with multi-scale inputs and left-right flips, outperforms the best bottom-up approach, SSAP, by $3.0\%$ PQ and $1.2\%$ AP, and is better than the best proposal-based approach, AdaptIS, by $2.1\%$ PQ, $2.2\%$ AP, and $2.3\%$ mIoU. When using extra data, our best Panoptic-DeepLab outperforms UPSNet by $5.2\%$ PQ, $3.5\%$ AP, and $3.9\%$ mIoU, and Seamless by $2.0\%$ PQ and $2.4\%$ mIoU. Note that we do not exploit any other data, such as COCO, Cityscapes coarse annotations, depth, or video.
+
+Test set: On the test set, we additionally employ the trick proposed in [11] that applies atrous convolution in the last two blocks within the backbone, with rate 2 and 4 respectively, during inference. This trick brings an extra $0.4\%$ AP and $0.2\%$ mIoU on val set but no improvement over PQ. We do not use this trick for the Mapillary Vistas Challenge. As shown in Tab. 3, our single unified Panoptic-DeepLab achieves state-of-the-art results, ranking first at all three Cityscapes tasks, when comparing with published works. Our model ranks second in the instance segmentation track when also taking into account unpublished entries.
+
+# 4.3. Mapillary Vistas
+
+Val set: In Tab. 4, we report Mapillary Vistas val set results. Our best single Panoptic-DeepLab model, with multiscale inputs and left-right flips, outperforms the bottom-up approach, DeeperLab, by $8.3\%$ PQ, and the top-down approach, Seamless, by $2.6\%$ PQ. In Tab. 5, we report our results with three families of network backbones. We observe that naïve HRNet-W48 slightly under-performs Xception71. Due to the diverse image resolutions in Mapillary Vistas, we found it important to enrich the context information as well as to keep high-resolution features. Therefore, we propose a simple modification for HRNet [70] and Auto-DeepLab [47]. For modified HRNet, called HRNet+, we keep its ImageNet-pretrained head and further attach dual-ASPP and dual-decoder modules. For modified Auto
+
+| Method | Flip | MS | PQ (%) | \( PQ^{Th} \)(%) | \( PQ^{St} \)(%) | AP (%) | mIoU (%) |
| TASCNet [40] | | | 32.6 | 31.1 | 34.4 | 18.5 | - |
| TASCNet [40] | ✓ | ✓ | 34.3 | 34.8 | 33.6 | 20.4 | - |
| AdaptIS [66] | ✓ | | 35.9 | 31.5 | 41.9 | - | - |
| Seamless [60] | | | 37.7 | 33.8 | 42.9 | 16.4 | 50.4 |
| DeeperLab [75] | | | 32.0 | - | - | - | 55.3 |
| Panoptic-DeepLab | | | 37.7 | 30.4 | 47.4 | 14.9 | 55.4 |
| Panoptic-DeepLab | ✓ | | 38.0 | 30.6 | 47.9 | 15.2 | 55.8 |
| Panoptic-DeepLab | ✓ | ✓ | 40.3 | 33.5 | 49.3 | 17.2 | 56.8 |
+
+Table 4. Mapillary Vistas val set. Flip: Adding left-right flipped inputs. MS: Multiscale inputs.
+
+| Backbone | Params (M) | M-Adds (B) | PQ (%) | AP (%) | mIoU (%) |
| Xception-65 | 44.31 | 1054.05 | 39.2 | 16.4 | 56.9 |
| Xception-71 | 46.73 | 1264.32 | 40.3 | 17.2 | 56.8 |
| HRNet-W48 [70] | 71.66 | 2304.87 | 39.3 | 17.2 | 55.4 |
| HRNet-W48+ | 88.87 | 2208.04 | 40.6 | 17.8 | 57.6 |
| HRNet-W48+ (Atrous) | 88.87 | 2972.02 | 40.5 | 17.7 | 57.4 |
| HRNet-Wider+ | 60.05 | 1315.70 | 40.0 | 17.0 | 57.0 |
| HRNet-Wider+ (Atrous) | 60.05 | 1711.69 | 39.7 | 16.8 | 56.5 |
| Auto-DeepLab-L+ | 41.54 | 1493.78 | 39.3 | 15.8 | 56.9 |
| Auto-DeepLab-XL+ | 71.98 | 2378.17 | 40.3 | 16.3 | 57.1 |
| Auto-DeepLab-XL++ | 72.16 | 2386.81 | 40.3 | 16.9 | 57.6 |
| Ensemble (top-6 models) | - | - | 42.2 | 18.2 | 58.7 |
+
+Table 5. Mapillary Vistas val set with different backbones. HRNet-W48+: Modified HRNet-W48 with ImageNet-pretraining head kept. HRNet-W48+ (Atrous): Additionally apply atrous convolution with rate 2 in the output stride 32 branch of HRNet. HRNet-Wider+: A wider version of HRNet using separable convolution with large channels. The ImageNet-pretraining head is also kept. HRNet-Wider+ (Atrous): Additionally apply atrous convolution with rate 2 in the output stride 32 branch. Auto-DeepLab-L+: Auto-DeepLab with $F = 48$ and remove the stride in the original output stride 32 path. Auto-DeepLab-XL+: Auto-DeepLab with $F = 64$ and remove the stride in the original output stride 32 path. Auto-DeepLab-XL++. Additionally exploit low-level features from output stride 8 endpoint in the decoder module. We employ dual-ASPP and dual-decoder modules for all model variants except HRNet-W48 which follows the original design in [70]. Results are obtained with multi-scale and left-right flipped inputs. M-Adds are measured w.r.t. a $2177 \times 2177$ input.
+
+| Method | PQ | SQ | RQ | \( PQ^{Th} \) | \( SQ^{Th} \) | \( RQ^{Th} \) | \( PQ^{St} \) | \( SQ^{St} \) | \( RQ^{St} \) |
| DeeperLab [75] | 31.6 | 75.5 | 40.1 | 25.0 | 73.4 | 33.1 | 40.3 | 78.3 | 49.3 |
| AdaptIS [66] | 36.8 | 76.0 | 46.3 | 33.3 | 75.2 | 42.6 | 41.4 | 77.1 | 51.3 |
| TRI-ML (2018: 2nd) | 38.7 | 78.1 | 48.4 | 39.0 | 79.7 | 48.9 | 38.2 | 75.9 | 47.9 |
| Team R4D (2018: 1st) | 41.2 | 79.1 | 50.8 | 37.9 | 79.7 | 47.1 | 45.6 | 78.4 | 55.8 |
| Panoptic-DeepLab | 42.7 | 78.1 | 52.5 | 35.9 | 75.3 | 46.0 | 51.6 | 81.9 | 61.2 |
+
+Table 6. Performance on Mapillary Vistas test set.
+
+DeepLab, called Auto-DeepLab+, we remove the stride in the original 1/32 branch (which improves PQ by $1\%$ ). To summarize, using Xception-71 strikes the best accuracy and speed trade-off, while HRNet-W48+ achieves the best PQ of $40.6\%$ . Finally, our ensemble of six models attains a $42.2\%$ PQ, $18.2\%$ AP, and $58.7\%$ mIoU.
+
+Test set: Tab. 6 summarizes our Mapillary Vistas test set results along with other top-performing methods. Our entry [12] with an ensemble of six models attain a performance of $42.7\%$ PQ, outperforming the winner of Mapillary Vistas Panoptic Segmentation Challenge in 2018 by $1.5\%$ PQ.
+
+| Method | Backbone | Flip | MS | PQ (%) | \( PQ^{Th} \) (%) | \( PQ^{St} \) (%) |
| AUNet [43] | ResNet-50 [26] | | | 39.6 | 49.1 | 25.2 |
| Panoptic-FPN [33] | ResNet-101 | | | 40.3 | 47.5 | 29.5 |
| AdaptIS [66] | ResNeXt-101 [73] | ✓ | | 42.3 | 49.2 | 31.8 |
| UPSNet [74] | ResNet-50 | | | 42.5 | 48.5 | 33.4 |
| Detection2 [71] | ResNet-101 | | | 43.0 | - | - |
| UPSNet [74] | ResNet-50 | ✓ | ✓ | 43.2 | 49.1 | 34.1 |
| DeeperLab [75] | Xception-71 | | | 33.8 | - | - |
| SSAP [22] | ResNet-101 | ✓ | ✓ | 36.5 | - | - |
| Panoptic-DeepLab | Xception-71 | | | 39.7 | 43.9 | 33.2 |
| Panoptic-DeepLab | Xception-71 | ✓ | | 40.2 | 44.4 | 33.8 |
| Panoptic-DeepLab | Xception-71 | ✓ | ✓ | 41.2 | 44.9 | 35.7 |
+
+Table 7. COCO val set. Flip: Adding left-right flipped inputs. MS: Multiscale inputs.
+
+| Method | Backbone | Flip | MS | PQ (%) | \( PQ^{Th} \) (%) | \( PQ^{St} \) (%) |
| TASCNet [40] | ResNet-50 | | | 40.7 | 47.0 | 31.0 |
| Panoptic-FPN [33] | ResNet-101 | | | 40.9 | 48.3 | 29.7 |
| AdaptIS [66] | ResNeXt-101 | ✓ | | 42.8 | 53.2 | 36.7 |
| AUNet [43] | ResNeXt-152 | | | 46.5 | 55.8 | 32.5 |
| UPSNet [74] | DCN-101 [17] | ✓ | ✓ | 46.6 | 53.2 | 36.7 |
| DeeperLab [75] | Xception-71 | | | 34.3 | 37.5 | 29.6 |
| SSAP [22] | ResNet-101 | ✓ | ✓ | 36.9 | 40.1 | 32.0 |
| Panoptic-DeepLab | Xception-71 | ✓ | ✓ | 41.4 | 45.1 | 35.9 |
+
+Table 8. COCO test-dev set. Flip: Adding left-right flipped inputs.
+MS: Multiscale inputs.
+
+# 4.4. COCO
+
+Val set: In Tab. 7, we report COCO val set result. With a single scale inference, our Panoptic-DeepLab outperforms the previous best bottom-up SSAP by $3.2\%$ PQ and DeeperLab [75] by $5.9\%$ PQ. With multi-scale inference and horizontal flip, Panoptic-DeepLab achieves $41.2\%$ PQ, setting a new state-of-the-art performance for bottom-up methods, and performing comparably with top-down methods.
+
+Test-dev set: In Tab. 8, we report COCO test-dev set result. Our Panoptic-DeepLab is $4.5\%$ PQ better than the previous best bottom-up SSAP on COCO and our $41.4\%$ PQ is comparable to most top-down methods without using heavier backbone [73] or deformable convolution [17].
+
+# 4.5. Runtime
+
+In Tab. 9, we report the end-to-end runtime (i.e., inference time from an input image to final panoptic segmentation, including all operations such as merging semantic and instance segmentation) of Panoptic-DeepLab with three different network backbones (MobileNetV3 [27], ResNet-50 [26], and Xception-71 [15, 61]) on all three datasets. The inference speed is measured on a Tesla V100-SXM2 GPU with batch size of one. We further plot the speed-accuracy trade-off curve in Fig. 3. Our Panoptic-DeepLab achieves the best trade-off across all three datasets.
+
+# 4.6. Discussion
+
+Herein, we list a few interesting aspects in the hope of inspiring future works on bottom-up panoptic segmentation.
+
+Scale variation: Fig. 4 shows visualization of Panoptic-DeepLab. In particular, the cross road (in last 2 rows), with
+
+| Method | Backbone | Input Size | PQ [val] | PQ [test] | Speed (ms) | M-Adds (B) |
| Cityscapes |
| DeeperLab [75] | W-MNV2 [64] | 1025 × 2049 | 52.3 | - | 303 | - |
| DeeperLab [75] | Xception-71 | 1025 × 2049 | 56.5 | - | 463 | - |
| UPSNet [74] | ResNet-50 | 1024 × 2048 | 59.3 | - | 202 | - |
| Panoptic-DeepLab | MNV3 | 1025 × 2049 | 55.4 | 54.1 | 63 | 54.17 |
| Panoptic-DeepLab | ResNet-50 | 1025 × 2049 | 59.7 | 58.0 | 117 | 381.39 |
| Panoptic-DeepLab | Xception-71 | 1025 × 2049 | 63.0 | 60.7 | 175 | 547.49 |
| Mapillary Vistas |
| DeeperLab [75] | W-MNV2 | 1441 × 1441 | 25.2 | 25.3 | 307 | - |
| DeeperLab [75] | Xception-71 | 1441 × 1441 | 32.0 | 31.6 | 469 | - |
| Panoptic-DeepLab | MNV3 | 2177 × 2177 | 28.8 | - | 148 | 138.12 |
| Panoptic-DeepLab | ResNet-50 | 2177 × 2177 | 33.3 | - | 286 | 910.47 |
| Panoptic-DeepLab | Xception-71 | 2177 × 2177 | 37.7 | - | 398 | 1264.32 |
| COCO |
| DeeperLab [75] | W-MNV2 | 641 × 641 | 27.9 | 28.1 | 83 | - |
| DeeperLab [75] | Xception-71 | 641 × 641 | 33.8 | 34.3 | 119 | - |
| UPSNet [74] | ResNet-50 | 800 × 1333 | 42.5 | - | 167 | - |
| Panoptic-DeepLab | MNV3 | 641 × 641 | 30.0 | 29.8 | 38 | 12.24 |
| Panoptic-DeepLab | ResNet-50 | 641 × 641 | 35.1 | 35.2 | 50 | 77.79 |
| Panoptic-DeepLab | Xception-71 | 641 × 641 | 38.9 | 38.8 | 74 | 109.21 |
| Panoptic-DeepLab | Xception-71 | 1025 × 1025 | 39.7 | 39.6 | 132 | 279.25 |
+
+Table 9. End-to-end runtime, including merging semantic and instance segmentation. All results are obtained by (1) a single-scale input without flipping, and (2) built-in TensorFlow library without extra inference optimization. MNV3: MobileNet-V3. PQ [val]: PQ (\%) on val set. PQ [test]: PQ (\%) on test(-dev) set. Note the channels in last block of MNV3 are reduced by a factor of 2 [27].
+
+
+(a) PQ vs. inference time (ms) on Cityscapes val set.
+
+
+(b) PQ vs. inference time (ms) on Mapillary Vistas val set
+
+
+(c) PQ vs. inference time (ms) on COCO val set
+Figure 3. PQ vs. Seconds. Our Panoptic-DeepLab model variants attain a better speed/accuracy trade-off across challenging datasets. The inference time is measured end-to-end from input image to panoptic segmentation output. X-71: Xception-71. R-50: ResNet-50. MNV3: MobileNetV3. Data points from Tab. 9.
+
+
+Figure 4. Visualization of Panoptic-DeepLab with Xception-71 on Mapillary Vistas val set. Only single scale inference is used and the model achieves $37.7\%$ PQ. We encode 2D offset vectors into RGB values, same as [3]. The cross road in last 2 rows is segmented into multiple instances due to large scale variation. More visualizations are included in supplementary materials.
+
+a large scale variation, is segmented into multiple small instances. On the other hand, top-down methods handle scale variation to some extent by the ROIPooling [23] or ROIAlign [25] operations which normalize regional features to a canonical scale [24, 63]. Additionally, incorporating scale-aware information to feature pyramid [45] or image pyramid [65] may improve the performance of bottom-up methods.
+
+$\mathbf{PQ}^{\mathrm{Thing}}$ vs. $\mathbf{PQ}^{\mathrm{Stuff}}$ : As shown in Tab. 6 and Tab. 8, Panoptic-DeepLab has higher $\mathbf{PQ}^{\mathrm{Stuff}}$ but lower $\mathbf{PQ}^{\mathrm{Thing}}$ when compared with other top-down approaches which better handle instances of large scale variation as discussed above. Combining the best from both bottom-up and top-down approaches is thus interesting to explore but beyond the scope of current work.
+
+Panoptic vs. instance annotations: Most bottom-up panoptic segmentation methods only exploit the panoptic annotations. We notice there are two types of annotations in the COCO dataset, panoptic annotations and instance annotations. The former do not allow overlapping masks (thus
+
+creating occlusions among masks), while the latter allows overlaps, which might make the training target easier to optimize, similar to amodal segmentation [81, 41].
+
+End-to-end training: Current bottom-up panoptic segmentation methods still require some post-processing steps to obtain the final panoptic segmentation, which may make it hard to end-to-end train the whole system.
+
+# 5. Conclusion
+
+We have presented Panoptic-DeepLab, a simple, strong, and fast baseline for bottom-up panoptic segmentation. Panoptic-DeepLab is simple in design, requiring only three loss functions during training and adds marginal parameters to a modern semantic segmentation model. Panoptic-DeepLab is the first bottom-up and single-shot panoptic segmentation model that attains state-of-the-art performance on several public benchmarks, and delivers near real-time end-to-end inference speed. We hope our simple and effective model could establish a solid baseline and further benefit the research community.
+
+# References
+
+[1] Mihael Ankerst, Markus M Breunig, Hans-Peter Kriegel, and Jörg Sander. Optics: ordering points to identify the clustering structure. In ACM Sigmod record, 1999. 3
+[2] Min Bai and Raquel Urtasun. Deep watershed transform for instance segmentation. In CVPR, 2017. 2, 4
+[3] Simon Baker, Daniel Scharstein, JP Lewis, Stefan Roth, Michael J Black, and Richard Szeliski. A database and evaluation methodology for optical flow. IJCV, 2011. 8
+[4] Dana H Ballard. Generalizing the hough transform to detect arbitrary shapes. Pattern Recognition, 1981. 2, 3
+[5] Olga Barinova, Victor Lempitsky, and Pushmeet Kholi. On detection of multiple object instances using hough transforms. IEEE TPAMI, 2012. 2
+[6] Daniel Bolya, Chong Zhou, Fanyi Xiao, and Yong Jae Lee. Yolact: Real-time instance segmentation. In ICCV, 2019. 2
+[7] Samuel Rota Bulò, Gerhard Neuhold, and Peter Kontschieder. Loss maxpooling for semantic image segmentation. In CVPR, 2017. 3
+[8] 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 ICLR, 2015. 2
+[9] 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 TPAMI, 2017. 2
+[10] Liang-Chieh Chen, George Papandreou, Florian Schroff, and Hartwig Adam. Rethinking atrous convolution for semantic image segmentation. arXiv:1706.05587, 2017. 2
+[11] 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. 2, 3, 4, 5, 6
+[12] Bowen Cheng, Maxwell D Collins, Yukun Zhu, Ting Liu, Thomas S Huang, Hartwig Adam, and Liang-Chieh Chen. Panoptic-deeplab. In ICCV COCO + Mapillary Joint Recognition Challenge Workshop, 2019. 6
+[13] Bowen Cheng, Yunchao Wei, Honghui Shi, Rogerio Feris, Jinjun Xiong, and Thomas Huang. Decoupled classification refinement: Hard false positive suppression for object detection. arXiv:1810.04002, 2018. 3
+[14] 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
+[15] François Chollet. Xception: Deep learning with depthwise separable convolutions. In CVPR, 2017. 5, 7
+[16] 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. 1, 2, 4
+[17] Jifeng Dai, Haozhi Qi, Yuwen Xiong, Yi Li, Guodong Zhang, Han Hu, and Yichen Wei. Deformable convolutional networks. In ICCV, 2017. 7
+
+[18] Bert De Brabandere, Davy Neven, and Luc Van Gool. Semantic instance segmentation with a discriminative loss function. arXiv:1708.02551, 2017. 2
+[19] Kaiwen Duan, Song Bai, Lingxi Xie, Honggang Qi, Qingming Huang, and Qi Tian. Centernet: Keypoint triplets for object detection. In ICCV, 2019. 3
+[20] Alireza Fathi, Zbigniew Wojna, Vivek Rathod, Peng Wang, Hyun Oh Song, Sergio Guadarrama, and Kevin P Murphy. Semantic instance segmentation via deep metric learning. arXiv:1703.10277, 2017. 2
+[21] Juergen Gall and Victor Lempitsky. Class-specific hough forests for object detection. In CVPR, 2009. 2
+[22] Naiyu Gao, Yanhu Shan, Yupei Wang, Xin Zhao, Yinan Yu, Ming Yang, and Kaiqi Huang. Ssap: Single-shot instance segmentation with affinity pyramid. In ICCV, 2019. 2, 4, 5, 7
+[23] Ross Girshick. Fast r-cnn. In ICCV, 2015. 8
+[24] Ross Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. In CVPR, 2014. 8
+[25] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross Girshick. Mask r-cnn. In ICCV, 2017. 1, 2, 8
+[26] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 7
+[27] Andrew Howard, Mark Sandler, Grace Chu, Liang-Chieh Chen, Bo Chen, Mingxing Tan, Weijun Wang, Yukun Zhu, Ruoming Pang, Vijay Vasudevan, et al. Searching for mobilenetv3. In ICCV, 2019. 7
+[28] 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:1704.04861, 2017. 3
+[29] Sergey Ioffe and Christian Szegedy. Batch normalization: accelerating deep network training by reducing internal covariate shift. In ICML, 2015. 4
+[30] Alex Kendall, Yarin Gal, and Roberto Cipolla. Multi-task learning using uncertainty to weigh losses for scene geometry and semantics. In CVPR, 2018. 2, 3
+[31] Margret Keuper, Evgeny Levinkov, Nicolas Bonneel, Guillaume Lavoué, Thomas Brox, and Bjorn Andres. Efficient decomposition of image and mesh graphs by lifted multicuts. In ICCV, 2015. 2
+[32] Diederik P Kingma and Jimmy Ba. Adam: a method for stochastic optimization. In ICLR, 2015. 4
+[33] Alexander Kirillov, Ross Girshick, Kaiming He, and Piotr Dollár. Panoptic feature pyramid networks. In CVPR, 2019, 1, 2, 5, 7
+[34] Alexander Kirillov, Kaiming He, Ross Girshick, Carsten Rother, and Piotr Dólár. Panoptic segmentation. In CVPR, 2019. 1, 2
+[35] Alexander Kirillov, Evgeny Levinkov, Bjoern Andres, Bogdan Savchynskyy, and Carsten Rother. Instancecut: from edges to instances with multicut. In CVPR, 2017. 2
+[36] Iasonas Kokkinos. Ethernet: Training a universal convolutional neural network for low-, mid-, and high-level vision
+
+using diverse datasets and limited memory. In CVPR, 2017. 3
+[37] Victor Kulikov, Victor Yurchenko, and Victor Lempitsky. Instance segmentation by deep coloring. arXiv:1807.10007, 2018. 2
+[38] Hei Law and Jia Deng. Cornernet: Detecting objects as paired keypoints. In ECCV, 2018. 3
+[39] Bastian Leibe, Ales Leonardis, and Bernt Schiele. Combined object categorization and segmentation with an implicit shape model. In Workshop on statistical learning in computer vision, ECCV, 2004. 2
+[40] Jie Li, Allan Raventos, Arjun Bhargava, Takaaki Tagawa, and Adrien Gaidon. Learning to fuse things and stuff. arXiv:1812.01192, 2018. 1, 2, 5, 6, 7
+[41] Ke Li and Jitendra Malik. Amodal instance segmentation. In ECCV, 2016. 8
+[42] Xiangtai Li, Houlong Zhao, Lei Han, Yunhai Tong, and Kuiyuan Yang. Gff: Gated fully fusion for semantic segmentation. arXiv:1904.01803, 2019. 5
+[43] 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, 2, 5, 7
+[44] Xiaodan Liang, Liang Lin, Yunchao Wei, Xiaohui Shen, Jianchao Yang, and Shuicheng Yan. Proposal-free network for instance-level object segmentation. IEEE TPAMI, 2018. 2
+[45] Tsung-Yi Lin, Piotr Dólar, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. Feature pyramid networks for object detection. In CVPR, 2017. 2, 8
+[46] 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. 1, 2, 4
+[47] Chenxi Liu, Liang-Chieh Chen, Florian Schroff, Hartwig Adam, Wei Hua, Alan Yuille, and Li Fei-Fei. Auto-deeplab: Hierarchical neural architecture search for semantic image segmentation. In CVPR, 2019. 6
+[48] Shu Liu, Jiaya Jia, Sanja Fidler, and Raquel Urtasun. Sgn: Sequential grouping networks for instance segmentation. In ICCV, 2017. 2
+[49] Shu Liu, Lu Qi, Haifang Qin, Jianping Shi, and Jiaya Jia. Path aggregation network for instance segmentation. In CVPR, 2018. 5
+[50] Wei Liu, Andrew Rabinovich, and Alexander C Berg. Parsenet: Looking wider to see better. arXiv:1506.04579, 2015. 4
+[51] Yiding Liu, Siyu Yang, Bin Li, Wengang Zhou, Jizheng Xu, Houqiang Li, and Yan Lu. Affinity derivation and graph merge for instance segmentation. In ECCV, 2018. 2
+[52] Huanyu Liu1, Chao Peng, Changqian Yu, Jingbo Wang, Xu Liu, Gang Yu, and Wei Jiang. An end-to-end network for panoptic segmentation. In CVPR, 2019. 2
+[53] Gerhard Neuhold, Tobias Ollmann, Samuel Rota Bulò, and Peter Kontschieder. The mapillary vistas dataset for semantic understanding of street scenes. In ICCV, 2017. 1, 2, 4
+
+[54] Davy Neven, Bert De Brabandere, Marc Proesmans, and Luc Van Gool. Instance segmentation by jointly optimizing spatial embeddings and clustering bandwidth. In CVPR, 2019. 2, 3
+[55] Davy Neven, Bert De Brabandere, Stamatios Georgoulis, Marc Proesmans, and Luc Van Gool. Fast scene understanding for autonomous driving. arXiv:1708.02550, 2017. 3
+[56] Alejandro Newell, Zhiao Huang, and Jia Deng. Associative embedding: End-to-end learning for joint detection and grouping. In NeurIPS, 2017. 2, 3
+[57] Dim P Papadopoulos, Jasper RR Uijlings, Frank Keller, and Vittorio Ferrari. Extreme clicking for efficient object annotation. In ICCV, 2017. 3
+[58] George Papandreou, Tyler Zhu, Liang-Chieh Chen, Spyros Gidaris, Jonathan Tompson, and Kevin Murphy. Personlab: Person pose estimation and instance segmentation with a bottom-up, part-based, geometric embedding model. In ECCV, 2018. 3, 5
+[59] Tobias Pohlen, Alexander Hermans, Markus Mathias, and Bastian Leibe. Full-resolution residual networks for semantic segmentation in street scenes. In CVPR, 2017. 3
+[60] Lorenzo Porzi, Samuel Rota Bulò, Aleksander Colovic, and Peter Kontschieder. Seamless scene segmentation. In CVPR, 2019. 1, 2, 5, 6
+[61] Haozhi Qi, Zheng Zhang, Bin Xiao, Han Hu, Bowen Cheng, Yichen Wei, and Jifeng Dai. Deformable convolutional networks - coco detection and segmentation challenge 2017 entry. ICCV COCO Challenge Workshop, 2017. 5, 7
+[62] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In CVPR, 2016. 4
+[63] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In NeurIPS, 2015. 8
+[64] Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zh-moginov, and Liang-Chieh Chen. Mobilenetv2: Inverted residuals and linear bottlenecks. In CVPR, 2018. 7
+[65] Bharat Singh and Larry S Davis. An analysis of scale invariance in object detection-snip. CVPR, 2018. 8
+[66] Konstantin Sofiuk, Olga Barinova, and Anton Konushin. Adaptis: Adaptive instance selection network. In ICCV, 2019. 2, 5, 6, 7
+[67] Jonathan J. Thompson, Arjun Jain, Yann LeCun, and Christoph Bregler. Joint training of a convolutional network and a graphical model for human pose estimation. In NeurIPS, 2014. 4, 5
+[68] Jonas Uhrig, Marius Cordts, Uwe Franke, and Thomas Brox. Pixel-level encoding and depth layering for instance-level semantic labeling. In German Conference on Pattern Recognition, 2016. 2, 3
+[69] Jonas Uhrig, Eike Rehder, Björn Fröhlich, Uwe Franke, and Thomas Brox. Box2pix: Single-shot instance segmentation by assigning pixels to object boxes. In IEEE Intelligent Vehicles Symposium (IV), 2018. 2
+[70] Jingdong Wang, Ke Sun, Tianheng Cheng, Borui Jiang, Chaorui Deng, Yang Zhao, Dong Liu, Yadong Mu, Mingkui Tan, Xinggang Wang, Wenyu Liu, and Bin Xiao. Deep
+
+high-resolution representation learning for visual recognition. arXiv:1908.07919, 2019. 6
+[71] Yuxin Wu, Alexander Kirillov, Francisco Massa, Wan-Yen Lo, and Ross Girshick. Detector2. https://github.com/facebookresearch/detectron2, 2019.7
+[72] Zifeng Wu, Chunhua Shen, and Anton van den Hengel. Bridging category-level and instance-level semantic image segmentation. arXiv:1605.06885, 2016. 3
+[73] Saining Xie, Ross Girshick, Piotr Dolkar, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In CVPR, 2017. 7
+[74] 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, 2, 5, 7
+[75] Tien-Ju Yang, Maxwell D Collins, Yukun Zhu, Jyh-Jing Hwang, Ting Liu, Xiao Zhang, Vivienne Sze, George Papandreou, and Liang-Chieh Chen. Deeperlab: Single-shot image parser. arXiv:1902.05093, 2019. 2, 3, 4, 5, 6, 7
+[76] Ziyu Zhang, Sanja Fidler, and Raquel Urtasun. Instance-level segmentation for autonomous driving with deep densely connected mrfs. In CVPR, 2016. 2
+[77] Ziyu Zhang, Alexander G Schwing, Sanja Fidler, and Raquel Urtasun. Monocular object instance segmentation and depth ordering with cnns. In ICCV, 2015. 2
+[78] Xingyi Zhou, Dequan Wang, and Philipp Krahenbuhl. Objects as points. arXiv:1904.07850, 2019. 3
+[79] Xingyi Zhou, Jiacheng Zhuo, and Philipp Kähenbuhl. Bottom-up object detection by grouping extreme and center points. In CVPR, 2019. 3
+[80] Yi Zhu, Karan Sapra, Fitsum A Reda, Kevin J Shih, Shawn Newsam, Andrew Tao, and Bryan Catanzaro. Improving semantic segmentation via video propagation and label relaxation. In CVPR, 2019. 5
+[81] Yan Zhu, Yuandong Tian, Dimitris Metaxas, and Piotr Dollár. Semantic amodal segmentation. In CVPR, 2017. 8
\ No newline at end of file
diff --git a/panopticdeeplabasimplestrongandfastbaselineforbottomuppanopticsegmentation/images.zip b/panopticdeeplabasimplestrongandfastbaselineforbottomuppanopticsegmentation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..44a2d3b66ac5f7403014bbe113808a9227485f14
--- /dev/null
+++ b/panopticdeeplabasimplestrongandfastbaselineforbottomuppanopticsegmentation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7bde0758ccadb94cd278f5f5df406ffc3548d838fe9ee949c98a2983e8461b25
+size 781275
diff --git a/panopticdeeplabasimplestrongandfastbaselineforbottomuppanopticsegmentation/layout.json b/panopticdeeplabasimplestrongandfastbaselineforbottomuppanopticsegmentation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..ba2112d4177e724d666d31c7f81f32d7b051e281
--- /dev/null
+++ b/panopticdeeplabasimplestrongandfastbaselineforbottomuppanopticsegmentation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:15c440aca8f4c24d5200abcdef442c6e90c12c868620870f09dc8e4d00b50b06
+size 420105
diff --git a/parsingbasedviewawareembeddingnetworkforvehiclereidentification/620020bc-d8ef-4b72-a55b-c017b3f07d8b_content_list.json b/parsingbasedviewawareembeddingnetworkforvehiclereidentification/620020bc-d8ef-4b72-a55b-c017b3f07d8b_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..d9bae0e77d71ba2d7a8788522f2e7008d929dc0f
--- /dev/null
+++ b/parsingbasedviewawareembeddingnetworkforvehiclereidentification/620020bc-d8ef-4b72-a55b-c017b3f07d8b_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b99c595fd14917dafaf82734749a829fe01e3623b67fab5d26a34fb13d9bb086
+size 75421
diff --git a/parsingbasedviewawareembeddingnetworkforvehiclereidentification/620020bc-d8ef-4b72-a55b-c017b3f07d8b_model.json b/parsingbasedviewawareembeddingnetworkforvehiclereidentification/620020bc-d8ef-4b72-a55b-c017b3f07d8b_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..e136000f1b61b194f0215f1ce887e410fa5bc1fd
--- /dev/null
+++ b/parsingbasedviewawareembeddingnetworkforvehiclereidentification/620020bc-d8ef-4b72-a55b-c017b3f07d8b_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cd2848319fe3056290e9afb3eac345a73cb8158aef8cae1b5e06726588321c9f
+size 91038
diff --git a/parsingbasedviewawareembeddingnetworkforvehiclereidentification/620020bc-d8ef-4b72-a55b-c017b3f07d8b_origin.pdf b/parsingbasedviewawareembeddingnetworkforvehiclereidentification/620020bc-d8ef-4b72-a55b-c017b3f07d8b_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..92468e0d17ae12b983cc30025e8c53da602b7cfe
--- /dev/null
+++ b/parsingbasedviewawareembeddingnetworkforvehiclereidentification/620020bc-d8ef-4b72-a55b-c017b3f07d8b_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:19c71a70d83ff881ee255377a2837222eedade7f463d0b5ff4b9dfe3b851cf71
+size 1529726
diff --git a/parsingbasedviewawareembeddingnetworkforvehiclereidentification/full.md b/parsingbasedviewawareembeddingnetworkforvehiclereidentification/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..b90c1cdfbe3b7aba179085149179679d3c277aa3
--- /dev/null
+++ b/parsingbasedviewawareembeddingnetworkforvehiclereidentification/full.md
@@ -0,0 +1,320 @@
+# Parsing-based View-aware Embedding Network for Vehicle Re-Identification
+
+Dechao Meng $^{1,2}$ , Liang Li $^{*1}$ , Xuejing Liu $^{1,2}$ , Yadong Li $^{3}$ , Shijie Yang $^{2}$ , Zheng-Jun Zha $^{4}$ , Xingyu Gao $^{6}$ , Shuhui Wang $^{1}$ , and Qingming Huang $^{2,1,5}$
+
+1Key Lab of Intell. Info. Process., Inst. of Comput. Tech., CAS, Beijing, China
+2University of Chinese Academy of Sciences, China, 3Megvii Inc, Beijing, China
+4University of Science and Technology of China, China, 5Peng Cheng Laboratory, Shenzhen, China, 6Institute of Microelectronics, Chinese Academy of Sciences, Beijing, China
+{dechao.meng, xuejing.liu, shijie.yang}@vipl.ict.ac.cn, {liang.li, wangshuhui} @ict.ac.cn, liyadong@megvii.inc, gaoxingyu@ime.ac.cn, zhazj@ustc.edu.cn, qmhuang@ucas.ac.cn
+
+# Abstract
+
+Vehicle Re-Identification is to find images of the same vehicle from various views in the cross-camera scenario. The main challenges of this task are the large intra-instance distance caused by different views and the subtle inter-instance discrepancy caused by similar vehicles. In this paper, we propose a parsing-based view-aware embedding network (PVEN) to achieve the view-aware feature alignment and enhancement for vehicle ReID. First, we introduce a parsing network to parse a vehicle into four different views, and then align the features by mask average pooling. Such alignment provides a fine-grained representation of the vehicle. Second, in order to enhance the view-aware features, we design a common-visible attention to focus on the common visible views, which not only shortens the distance among intra-instances, but also enlarges the discrepancy of inter-instances. The PVEN helps capture the stable discriminative information of vehicle under different views. The experiments conducted on three datasets show that our model outperforms state-of-the-art methods by a large margin.
+
+# 1. Introduction
+
+Vehicle Re-identification (ReID) has attracted more and more attention in recent years as it is important for building intelligent transportation and city surveillance systems [16, 11, 18, 14, 13, 30, 2]. This task aims to retrieve images of a query vehicle in a large gallery set, where the target vehicles are usually under various views and from widespread cameras. It is particularly useful when the license plates of
+
+vehicles are occluded, blurred, and damaged. As illustrated in Figure 1, there exists two key challenges in this task, 1) the large intra-instance difference of the same vehicle under different views. 2) the subtle inter-instance discrepancy of different vehicles when they share the same type and color.
+
+To address the above challenges, some works use the meta information (e.g. vehicle attributes, spatial-temporal information) to improve the representation ability of the features. Liu et al. [16] proposed a course-to-fine search framework to model the attributes and spatial-temporal information into vehicle ReID. Zheng et al. [34] introduced a deep network to fuse the camera views, vehicle types and color into the features of vehicle. These approaches focus on learning global representation for the vehicle.
+
+However, the overall appearance changes dramatically under different view-points, which results in the instability of global features and also brings the first challenge. In contrast, local features usually provide the stable discriminative cues. Recently, researchers introduced local regions to learn the more discriminative features about the vehicle. Wang et al. [27] generated orientation invariant features based on vehicle keypoints detection. Liu et al. [17] extracted local features based on three evenly separated regions of a vehicle to acquire distinctive visual cues. He et al. [3] detected window, lights, and brand for each vehicle through a YOLO detector to generate discriminative features. The above methods focus on pre-defined regions to learn the subtle local cues. However, as shown in Figure 1, the distinctive cues (e.g. exhaust, stickers and ornaments) may appear in any part of vehicle and this leads to the second challenge.
+
+Recently, data augmentation such as complementary views generation was applied to shrink the intra-instances discrepancy. Zhou et al. [37] tried to handle the multi-view
+
+
+
+
+(a) Vehicle ID-1
+
+
+
+
+
+
+Figure 1. Toy examples from two different vehicles with the same type and color in VERI-Wild. Each row indicates different views of the same vehicle, which shows the challenge of large intra-instance difference. Each column denotes the same view from different vehicles, which shows the challenge of subtle inter-instance discrepancy. The red boxes represent the subtle discriminative differences of the two vehicles.
+
+
+(b) Vehicle ID-2
+
+
+
+
+
+problem based on generating the invisible views. The generated views are derived from the visible view, which are unable to reconstruct additional discriminative features.
+
+In vehicle ReID, different views usually present the different characteristics of a vehicle. We would acquire more discriminative description of a vehicle by leveraging these complementary characteristics. However, since the same vehicle has large appearance discrepancy between different views, how to effectively fuse such different characteristics remains a challenging problem.
+
+To tackle the above challenge, this paper proposes a Parsing-based View-aware Embedding Network (PVEN) to achieve the view-aware feature alignment and enhancement for vehicle ReID. The PVEN consists of three modules: vehicle part parser, view-aware feature alignment, and common-visible feature enhancement. First, we generate four view masks (front, back, top and side) by training a U-shape parsing network as shown in Figure 3. Because the vehicle is a rigid body, the parsing network achieves an impressive accuracy as it need not handle the deforming problem. Second, based on global feature maps, local view-aware features are aligned through mask average pooling. Such alignment brings the vehicle the fine-grained representation with a complete spatial covering. Third, we propose a common-visible attention to enhance the local features. The mechanism tends to enlarge the effect of common visible views between two vehicles and suppress the non-salient views. This helps to overcome the large intra-instance difference under different views and the subtle discrepancy of inter-instances under similar type and color. Based on common-visible attention, we modified the typical triplet loss to avoid the mismatch of local features. We optimize this local triplet loss and the global loss to learn the view-aware feature embedding. As a result, the global semantic and local subtle discriminative cues are jointly learned into the final embedding of the vehicle.
+
+In summary, our main contributions are three folds.
+
+- To address the two key challenges in vehicles ReID, we propose a view-aware feature embedding method, where both feature alignment and enhancement of common visible views help to learn more robust and discriminative features.
+- We introduce a common-visible attention to enhance features under different views. This not only shortens the distance among intra-instances, but also enlarges the discrepancy of inter-instances.
+- Experiments on three vehicle ReID datasets verify the effectiveness of PVEN1. It achieves superior performance over SOTA methods with a large margin.
+
+# 2. Related Works
+
+Vehicle Re-identification has become a hot topic recently due to its wide using in intelligent transportation systems [16, 11, 18, 14, 2, 19, 8]. In previous works of vehicle ReID, these methods can be summarized into three groups:
+
+(1) Vehicle meta-information based feature fusion. The meta information, such as spatial-temporal information, vehicle attribute, are aggregated into global vehicle embeddings. Liu et al. [16] used a course-to-fine progressive search to leverage the vehicle attributes and spatial-temporal information. Shen et al. [24] considered the constraint of spatial temporal information and used visual-spatial-temporal path to reduce searching space. Guided by camera views, vehicle types and color, Zheng et al. [34] introduced a deep model to fuse the features for vehicle ReID. These approaches learn global representation for vehicle, and they are sensitive to dramatic changes of view. So they suffer from the challenge of large intra-instance difference of the same vehicle under different views. (2) Local region based vehicle feature learning. Besides global features, recent works take advantage of local features to improve the representation ability. For example, Wang et al. [27] generated orientation invariant feature based on pre-defined keypoints detection. He et al. [3] used the local region (e.g., window, brand and light bounding box) to learn more discriminative regions. This type of methods usually depends on pre-defined distinctive region or key-points. They ignore the fact that the discriminative cues may appear in any region of vehicle, and suffer from the challenge of subtle inter-instance discrepancy of similar vehicles. (3) Generative Adversarial Network based feature alignment. With GAN thriving, some works have started to introduce GAN into vehicle ReID. For instance, Zhou et al. [37] handled the viewpoint problem by generating the opposite side features using a GAN. Lou et al. [18] proposed to generate the
+
+
+Figure 2. The network architecture of PVEN. First, the image is fed into feature extractor and vehicle part parser. The former outputs semantic feature maps while the latter generates the view mask of front, back, top and side. Then global feature of vehicle is extracted to construct the ID loss and triplet loss. View-aware features are extracted by mask average pooling for each mask. We aggregate the features by common-visible attention to formulate the triplet loss of local features. In inference stage, the distance of global feature and local features are added to get the final distance.
+
+hard samples by introducing a GAN. Due to the limitation of generation ability of existing GAN and the insufficient adversarial samples, there exists large gap between the generated features and reality features.
+
+Vehicle re-identification is also related with person ReID task, which aims to find target persons from various views in a large set of persons. Recently, CNN-based features achieved great progress on person ReID [25, 35, 6, 20, 33, 9, 32, 12]. Sun et al. [25] split the image with a uniform partition strategy and extract CNN features for each parts. Zhao et al. [33] decompose the person by human body region to acquire human pose information. Wei et al. [9] proposed harmonious attention CNN to jointly learn attention selection and feature representation. The explosion of person ReID methods lightens the vehicle ReID task.
+
+# 3. Methodology
+
+To address the challenges of large intra-instance difference and subtle inter-instance discrepancy in vehicle ReID, we propose a Parsing-based View-aware Embedding Network (PVEN). It consists of three modules: vehicle part parser, view-aware feature alignment, and common-visible feature enhancement. The PVEN focuses on the view-aware feature learning, where the alignment and enhancement of common visible regions helps learn more robust and discriminative features.
+
+# 3.1. Vehicle Part Parser
+
+As one key challenge of vehicle ReID, view transformation under multiple cameras is unavoidable. Invariant fea
+
+ture learning under different views is an important insight to improve the performance of vehicle ReID. We notice that most vehicles have the following two characteristics. First, the vehicle can be regarded as a cube, which can be divided into different parts by view. Second, the vehicle is the rigid body, so there are no physical deformations. The characteristics imply that accurate vehicle parsing masks are capable to be extracted. With these parsing masks, we can align corresponding parts for different vehicles.
+
+A vehicle can be roughly regarded as a cube with six surfaces. The bottom of vehicle is usually invisible under the camera. The left and right side of the vehicle usually can not appear at the same time under a certain view and are usually symmetry in visual. Based on these observations, we parse a vehicle into four parts: front, back, side and top. The side indicates the left or right side of a vehicle. In this paper, the above parsing scheme is designed for vehicle view-aware representation. As shown in Figure 3, there are two key advantages of this parsing scheme: First, it covers the whole vehicle under the certain view, so that every subtle differences between two vehicles can be captured. Second, under most view-points, 3 parts of a vehicle are visible in an image, which means that there are at least 2 same parts appearing in both the query and gallery image.
+
+Parsing Annotation for VeRi776 Dataset. We annotate a subset of VeRi776 [16] dataset for training vehicle part parsing network. To improve the adaptive capacity of the parsing model for various views, we collect as many views of a vehicle as possible. In detail, according the definition of viewpoint in [27], we sample images for seven different viewpoints of a vehicle. If the number of viewpoints is less
+
+
+Figure 3. Examples of our parsing result on three main vehicle ReID datasets. The red, green, yellow and blue masks denote the front, back, side and top view of the vehicle respectively.
+
+than four, we evenly sample four images of this vehicle. Totally, we annotated 3165 images. We select 2665 images of the annotated dataset randomly as training set and 500 images as validation set.
+
+Vehicle Parsing Network. To get an accurate parsing result, we train a segmentation model [21] using the above annotated dataset. The parsing model takes SeResNeXt50 [5] as backbone and is trained with balanced cross entropy loss. Our model achieves $81.2\%$ IoU score in the validation set, which is sufficient for solving the view transformation challenge. Figure 3 shows some of the parsing results in three vehicle ReID datasets. It shows the impressive generalization performance of the parsing model as the parser need not handle the deforming problem.
+
+# 3.2. View-aware Feature Alignment
+
+Most of vehicle ReID models use deep global features to represent a vehicle, which focus on learning high semantic information. In this paper, we introduce the view-aware local features to obtain the fine-grained representation with a complete spatial covering. Further, view-aware feature alignment is implemented to avoid the mismatch among different views.
+
+Here, we use ResNet50[4] pre-trained on ImageNet[22] dataset as our feature extractor. We reset the stride of last pooling layer from 2 to 1 and obtain a $16 \times 16 \times 2048$ feature map $\mathbf{F}$ . As shown in Figure 2, the feature extractor network has two output branches. The first branch is the global branch, where we apply the global average pooling to the feature map to get global feature $f_{g}$ . The other branch is the local branch for view-aware feature learning. First, we pool the above view masks to $16 \times 16$ by max pooling, which is defined as $\{M_i | i \in \{1, 2, 3, 4\}\}$ . Second, we apply the mask average pooling (MAP) to the feature map $F$ to compute four local view-aware features $\{f_l^i | i \in \{0, 1, 2, 3\}\}$ . They represent the front, back, side and top view of a vehi
+
+
+Figure 4. Illustration of common-visible attention. First, the visibility scores of different parts are computed based on the vehicle masks. Then, the common-visible scores of all parts are obtained by the common-visible attention. Finally, we calculate the local distance between two vehicles with their view-aware features and the corresponding common-visible scores.
+
+cle respectively. The $f_{l}^{i}$ is calculated by
+
+$$
+f _ {l} ^ {i} = \frac {\sum_ {j , k = 1} ^ {1 6} M _ {i} (j , k) \times \mathbf {F} (j , k)}{\sum_ {j , k = 1} ^ {1 6} M _ {i} (j , k)} \tag {1}
+$$
+
+The global feature blend features of different views into one feature. It leads to a mismatch of views when comparing two vehicles. Differently, the local view-aware features are aligned upon the above four views. It decouples the information of different views into corresponding local features, and provides view-aware embeddings for a vehicle.
+
+# 3.3. Common-visible Feature Enhancement
+
+After the above stage, we obtain the four view-aware local features $f_{l}^{i}$ of the vehicle. In this section, we introduce a common-visible attention to enhance the features of different views. This helps capture the stable discriminative information of the same vehicle under different views.
+
+Figure 4 shows the procedure of common-visible attention. Given two image $p, q$ , and their masks $M_{i}^{p}$ and $M_{i}^{q}$ , we compute the visibility score $v_{i}^{p}$ and $v_{i}^{q}$ , which indicated the size of corresponding area of each view. The visibility score $v_{i}$ is defined as
+
+$$
+v _ {i} = \sum_ {j, k = 1} ^ {1 6} M _ {i} (j, k) \tag {2}
+$$
+
+We introduce the common-visible attention to compute the common-visible score $a_{i}^{p,q}$ as following,
+
+$$
+a _ {i} ^ {p, q} = \frac {v _ {i} ^ {p} v _ {i} ^ {q}}{\sum_ {i = 1} ^ {N} v _ {i} ^ {p} v _ {i} ^ {q}} \tag {3}
+$$
+
+where $a_{i}^{p,q}$ measures the consistency of common visible regions. Then, the distance of local features $\hat{D}$ between two vehicles is computed as,
+
+$$
+\hat {D} ^ {p, q} = \sum_ {i = 1} ^ {N} a _ {i} ^ {p q} D \left(f _ {i} ^ {p}, f _ {i} ^ {q}\right) \tag {4}
+$$
+
+where $D$ denotes the Euclidean distance.
+
+If the vehicle lacks some views, the corresponding common-visible score would be relatively small. So, only views with high score would contribute to the final distance.
+
+In this paper, we optimize the network by constructing the loss of ID and triplet loss for global features, and triplet loss for local features. The triplet loss of local features is calculated based on the above distance of local features as,
+
+$$
+L _ {\text {t r i p l e t}} ^ {l} = \max \left(\hat {D} ^ {a p} - \hat {D} ^ {a n} + \gamma , 0\right) \tag {5}
+$$
+
+where the local distance based on view-aware feature alignment and common-visible feature enhancement aims to reduce the intra-instance distance from different views and enlarge the inter-instance distance from similar vehicles.
+
+Finally, the total objective of PVEN is to minimize the following loss,
+
+$$
+L = L _ {\mathrm {i d}} ^ {g} + L _ {\text {t r i p l e t}} ^ {g} + L _ {\text {t r i p l e t}} ^ {l} \tag {6}
+$$
+
+# 4. Experiments
+
+# 4.1. Datasets
+
+We evaluate our model on three popular vehicle ReID datasets, including VehicleID [11], VeRi776 [16] and VERI-Wild [18].
+
+VehicleID [11] is a large scale vehicle ReID dataset. It contains 221,763 images about 26,267 vehicles. Images of this datasets are captured under front or back viewpoint. Three test sets (i.e. small, medium and large) are extracted according to their size. During inference stage, for each vehicle, one image is randomly selected as the gallery set while other images are regarded as query images.
+
+VeRi776 [16] is also a classical vehicle ReID benchmark. It consists of about 50,000 images of 776 vehicles, which are collected by 20 cameras across block region under different viewpoints. The training set covers 576 vehicles and the test set contains the other 200 vehicles.
+
+VERI-Wild [18] is another large scale dataset for vehicle ReID. It contains 416,314 images of 40,671 vehicles, which are collected by 174 cameras in a month.
+
+# 4.2. Experiments Setup
+
+# 4.2.1 Training
+
+We train the parsing model for 40 epochs on our annotated Parsing VeRi dataset. The batch size is 8 and the learning rate is 1e-4. We use Adam as the optimizer. Finally, The parser achieves $81.2\%$ IoU score in the validation set.
+
+We train models for 120 epochs with warm-up strategy. Initial learning rate is $3.5\mathrm{e - 5}$ , which increases to $3.5\mathrm{e - 4}$ after the 10th epoch, and drops to $3.5\mathrm{e - 5}$ , $3.5\mathrm{e - 6}$ in the 40th, 70th epoch for faster convergence. We first pad 10 pixels on image border, and then randomly crop it to $256\times 256$ . We also augment the data with random erasing. Adam is used to optimize the model. Further, we add a Batch Normalization layer after global feature. A fully connected layer is added to map the global feature to ID classification score.
+
+# 4.2.2 Inference
+
+To evaluate our method, we first calculate the Euclidean distance $D_{global}$ among global features. Then we calculate the distance $\hat{D}_{local}$ as defined in Eq. (4) among local view-aware features. Final distance between query set and gallery set is computed as $\lambda_1 D_{global} + \lambda_2 \hat{D}_{local}$ . Here, we set $\lambda_1 = 1$ and $\lambda_2 = 0.5$ .
+
+# 4.2.3 Compared Methods
+
+We compare our method with some state-of-the-art methods, e.g. (1). Handcraft feature based methods. BOWCN [36] first adopts BOW model based on the Color Name (CN). Local Maximal Occurrence Representation (LOMO) [10] is robust to the varied lightning conditions. Fusion of Attributes and Color feaTures (FACT) [15] combines the low-level color feature and high-level semantic features. (2). Deep learning based methods. GoogLeNet [28] is a GoogleNet[26] model fine-tuned on the CompCars [29] dataset. Plate-SNN[16], which use the number plate features to enhance the retrieval vehicles. Siamese+Path [24] proposed the visual-spatial-temporalpath to exploit the temporal restrict. GSTE [1] proposed group-sensitive-triplet embedding to model the intraclass variance elegantly. VAMI [37] generated features of different views by GAN while Feature Distance Adversarial Network [18] (FDA-Net) generated the hard negative samples in feature space. EALN [19] proposed an adversarial network that is capable of generating samples localized in the embedding space. (3). Discriminitive region mining based methods. OIFE [27] used the 20 pre-defined keypoints to roughly align the vehicle features. RAM [17] split the image horizontally into 3 parts. PRN [3] detected the window, light and brand to capture the difference between vehicle instances. AVER [7] proposed an attention mechanism based on vehicle keypoints and orientation.
+
+Table 1. The CMC@1 and CMC@5 on VehicleID.
+
+| Method | small | medium | large |
| @1 | @5 | @1 | @5 | @1 | @5 |
| MD+CCL[11] | 0.490 | 0.735 | 0.428 | 0.668 | 0.382 | 0.616 |
| OIFE[27] | - | - | - | - | 0.670 | 0.829 |
| VAMI[37] | 0.631 | 0.833 | 0.529 | 0.751 | 0.473 | 0.703 |
| RAM[17] | 0.752 | 0.915 | 0.723 | 0.870 | 0.677 | 0.845 |
| EALN[19] | 0.751 | 0.881 | 0.718 | 0.839 | 0.693 | 0.814 |
| AVER[7] | 0.747 | 0.938 | 0.686 | 0.900 | 0.635 | 0.856 |
| PRN[3] | 0.784 | 0.923 | 0.750 | 0.883 | 0.742 | 0.864 |
| PVEN | 0.847 | 0.970 | 0.806 | 0.945 | 0.778 | 0.920 |
+
+# 4.3. Experiments on VehicleID dataset
+
+We compare the CMC@1 and CMC@5 scores on this dataset, as there is only one ground-truth for each query vehicle. Table 1 shows the comparison results on three test datasets with different sizes. We observe that, first, compared with other methods, the PRN and our PVEN obtained the performance improvement with a large margin. This is because these two methods introduced the further learning to some key regions. This plays an important role in vehicle ReID task. Second, our PVEN achieve the improvement at the CMC@1 by $3.6\%+$ and CMC@5 by $4.5\%+$ over the SOTA PRN [3] on different test data. Although the PRN [3] introduced the detection about window, light, and brand for each vehicle, they ignored the fact that the distinctive cues will appear in any part of vehicle. On the contrast, our method certifies the complete information mining of vehicle through the local view-aware feature embedding. The above comparison results prove the effectiveness of the PEVN.
+
+It is worth noting that the vehicle only contains two viewpoints in this dataset, namely, the front side and back side. The extracted features from different views are completely different, even they are from the same vehicle. Benefiting from view-aware feature enhancement, the PVEN can avoid the mismatch of local features under the different views.
+
+# 4.4. Experiments on VeRi776 dataset
+
+We also evaluate the vehicle ReID methods on VeRi776 dataset, where three measurement metrics, including mAP, CMC@1 and CMC@5, are adopted.
+
+Table 2 shows the performance comparison among PVEN and other methods. We find that, benefitting from learning of extra key regions, both the PRN and our PVEN achieve a large promotion with a $16.0\%$ and $21.2\%$ on the mAP respectively. Besides, different from the pre-defined regions of the PRN, the PVEN extracts the local information from four views, which completely cover the whole vehicle. Thus, PVEN can learn the key distinctive and local cues to determine the target vehicle. In detail, the PEVN obtains the improvement of $5.2\%$ on mAP, and $1.3\%$ CMC@1 over the PRN. Moreover the CMC@5 of both methods have exceeded the $98.4\%$ , which is a promising performance for real vehicle ReID scenario.
+
+Table 2. The mAP, CMC@1 and CMC@5 on VeRi776.
+
+| Method | mAP | CMC@1 | CMC@5 |
| BOW-CN[36] | 0.122 | 0.339 | 0.537 |
| LOMO[10] | 0.096 | 0.253 | 0.465 |
| GoogLeNet[28] | 0.170 | 0.498 | 0.712 |
| FACT[15] | 0.185 | 0.510 | 0.735 |
| FACT+Plate+STR[16] | 0.278 | 0.614 | 0.788 |
| Siamese+Path[24] | 0.583 | 0.835 | 0.900 |
| OIFE[27] | 0.480 | 0.894 | - |
| VAMI[37] | 0.501 | - | - |
| RAM[17] | 0.615 | 0.886 | 0.940 |
| EALN[19] | 0.574 | 0.844 | 0.941 |
| AVER[7] | 0.612 | 0.890 | 0.947 |
| PRN[3] | 0.743 | 0.943 | 0.989 |
| PVEN | 0.795 | 0.956 | 0.984 |
+
+Table 3. The mAP on VERI-Wild.
+
+| Method | small | medium | large |
| GoogLeNet[28] | 0.243 | 0.242 | 0.215 |
| Triplet[23] | 0.157 | 0.133 | 0.099 |
| Softmax[16] | 0.264 | 0.227 | 0.176 |
| CCL[11] | 0.225 | 0.193 | 0.148 |
| HDC[31] | 0.291 | 0.248 | 0.183 |
| GSTE[1] | 0.314 | 0.262 | 0.195 |
| Unlabile-GAN[38] | 0.299 | 0.247 | 0.182 |
| FDA-Net[18] | 0.351 | 0.298 | 0.228 |
| PVEN | 0.825 | 0.770 | 0.697 |
+
+# 4.5. Experiments on VERI-Wild dataset
+
+VERI-Wild dataset[18] is the current largest vehicle ReID dataset. Here we compare our PEVN with other methods at three metrics, namely, CMC@1, CMC@5 and mAP.
+
+Table 3 shows the performance of mAP on the three different size of test dataset. We can find that our PVEN has a large promotion over the previous works of vehicle ReID. In detail, the improvement of mAP is $47.4\%$ , $47.2\%$ , and $46.9\%$ on the small, medium and large dataset respectively. This impressive boost of mAP benefits from the view-aware feature alignment and enhancement, which help to learn more robust and discriminative features of vehicles.
+
+Table 4 shows the performance of CMC@1 and CMC@5 from different methods on three test datasets. We can observe that, first, our PVEN exceeds all the other models under both metrics on different test datas. The CMC@1 of the PVEN has the improvement of $32.7\%+$ than the FDA-Net [18], and the CMC@5 of PVEN has the improvement of $16.4\%+$ than FDA-Net. The consistency of CMC promotion proves the effectiveness of our model. Second, as the size of test datas increases, the performance of the traditional methods decreases with a large margin. For example, for CMC@5, the state-of-the-art method FDA-Net de
+
+Table 4. The CMC@1 and CMC@5 on VERI-Wild.
+
+| Method | small | medium | large |
| @1 | @5 | @1 | @5 | @1 | @5 |
| GoogLeNet[28] | 0.572 | 0.751 | 0.532 | 0.711 | 0.446 | 0.636 |
| Triplet[23] | 0.447 | 0.633 | 0.403 | 0.590 | 0.335 | 0.514 |
| Softmax[16] | 0.534 | 0.750 | 0.462 | 0.699 | 0.379 | 0.599 |
| CCL[11] | 0.570 | 0.750 | 0.519 | 0.710 | 0.446 | 0.610 |
| HDC[31] | 0.571 | 0.789 | 0.496 | 0.723 | 0.440 | 0.649 |
| GSTE[1] | 0.605 | 0.801 | 0.521 | 0.749 | 0.454 | 0.665 |
| Unlabled Gan[38] | 0.581 | 0.796 | 0.516 | 0.744 | 0.436 | 0.655 |
| FDA-Net[18] | 0.640 | 0.828 | 0.578 | 0.783 | 0.494 | 0.705 |
| PVEN | 0.967 | 0.992 | 0.954 | 0.988 | 0.934 | 0.978 |
+
+Table 5. Ablation study about each part of PVEN on VehicleID.
+
+| settings | CMC@1 | CMC@5 | CMC@10 |
| PVEN w/o local | 0.796 | 0.937 | 0.969 |
| PVEN w/o CV-ATT | 0.766 | 0.900 | 0.953 |
| PVEN | 0.847 | 0.970 | 0.987 |
+
+clines $4.5\%$ between small and medium test data and $7.8\%$ between medium and large test data; the performance of PVEN degrades $0.4\%$ between small and medium test data and $1.0\%$ between medium and large test data; This indicates that our approach has the better generalization ability under large datas. This results from the view-aware features enhancement under different views in PVEN, not only shortens the distance among intra-instances, but also enlarges the discrepancy of inter-instances.
+
+# 4.6. Ablation Study
+
+# 4.6.1 The effectiveness of the parsing module
+
+To validate the effectiveness of the parsing model for vehicle ReID, we conduct an experiment that just evenly split the images vertically into four parts, and remain other settings the same with PVEN. The results in Table 6 show that parsing performs better than both the baseline and vertical split settings in mAP and CMC@5.
+
+# 4.6.2 The validation of view-aware feature learning
+
+We conduct ablation study about the proposed view-aware feature learning on VehicleID dataset. PVEN w/o local indicates the PVEN model without the local branch of view-aware feature learning. PVEN w/o CV-ATT adds the local branch, but do not use the common-visible attention. It calculates the Euclidean distance of each local features. Typical triplet loss are applied to the distance. PVEN uses the full architecture as described in Section 3. As in Table 5, first, we observe that our PVEN achieves better accuracy than others by a large margin. This is because view-aware feature alignment and common-visible attention drives the network attending to the common visible parts between two compared vehicles. Second, directly applying triplet loss to view-aware features without common-visible attention is
+
+Table 6. The validation of parsing module on VeRi776.
+
+| settings | mAP | CMC@1 | CMC@5 |
| baseline | 0.772 | 0.957 | 0.980 |
| vertical split | 0.775 | 0.948 | 0.974 |
| Parsing | 0.795 | 0.956 | 0.984 |
+
+Table 7. Weight selection of global and local distance on VeRi776.
+
+| λ1 | λ2 | mAP | CMC@1 | CMC@5 | CMC@10 |
| 1 | 0 | 0.787 | 0.955 | 0.982 | 0.990 |
| 1 | 0.3 | 0.794 | 0.956 | 0.984 | 0.992 |
| 1 | 0.5 | 0.795 | 0.956 | 0.984 | 0.992 |
| 1 | 0.7 | 0.794 | 0.959 | 0.984 | 0.992 |
| 1 | 1 | 0.793 | 0.961 | 0.984 | 0.991 |
| 0 | 1 | 0.713 | 0.922 | 0.967 | 0.982 |
+
+harmful to the performance. It treats features of each view equally and ignore that features are non-salient under certain views, so this introduces noise to the network.
+
+# 4.6.3 Weight selection of global and local distance
+
+Here we conduct experiments to figure out how the view-aware feature affects the performance of vehicle ReID. Table 7 shows the results of different weights between global and local distance. We can find that the view-aware local feature brings the improvement of final results at all metrics, namely mAP, CMC@1, CMC@5, CMC@10. The local view-aware feature learning helps the global features learn better.
+
+# 4.6.4 Visualization of view-aware feature learning
+
+To better understand the influence of view-aware feature learning in PVEN, we visualize the distance heatmap of vehicle images. The pixels with high score in distance heatmap indicate that they play more important role in determine the similarity between query and gallery vehicle. Specifically, the heatmap is the weighted sum of the last feature maps of the backbone. The weights are computed from the element-wise Euclidean distance of two features.
+
+Figure 5 shows the distance heatmap of two images from our PVEN and PVEN without view-aware feature learning. The two images are from back view and front view respectively, but they are of the same vehicle. As shown the first row in Figure 5, we observe that the PVEN without view-aware feature learning mainly focus on the mismatched back and front lights of the vehicle. As a comparison in the second row, the PVEN pays more attention to the co-occurrence regions, such as the side and top part of the vehicle, which decreases the obstruction of different views and shortens the distance among intra-instances.
+
+
+Figure 5. The distance heatmap of two images for the same vehicle. These two images are under different views (back and front). The PVEN without view-aware future learning (first row) mainly focuses on the back and front part of the vehicle, while PVEN (second row) pays more attention on the common visible parts.
+
+# 4.7. Cross-dataset Transferring
+
+In vehicle Re-ID task, the main difference between different datasets is the distribution of views. For example, most vehicles are under back and front views in VehicleID while more vehicles are under side views in VeRi776 and VERI-Wild. We test the transferring performance of PVEN to evaluate the effectiveness of the view-aware feature embedding. We train the PVEN in VERI-Wild and test it in the VehicleID. The compared methods RAM [17] and EALN [19] are trained and tested both on VehicleID.
+
+Table 8 shows the performance. We found the performance of our model outperforms RAM [17] and EALN [19] on CMC@1 and CMC@5, although PVEN is not trained on the test dataset. The proposed view-aware feature learning alleviates the multi-view distribution difference. This transfer ability of PVEN derives from two aspects. First, the view-aware feature alignment brings the fine-grained representation for the vehicle. Second, the common-visible feature enhancement under different views can not only shorten the distance among intra-instances, but also enlarge the discrepancy of inter-instances.
+
+# 4.8. Qualitative Analysis
+
+Figure 6 shows the qualitative results of our PVEN on the three vehicle ReID datasets. We can observe that when the query and target images are under different views, our PVEN can better recognize the same vehicle, which benefits from view-aware feature alignment and enhancement.
+
+In Figure 6, The top two rows show the results on VeRi776. The medium two rows are the results on Vehi
+
+Table 8. The mAP, CMC@1 and CMC@5 on cross domain setting.
+
+| method | train | test | CMC@1 | CMC@5 |
| RAM[17] | VehicleID | VehicleID | 0.752 | 0.915 |
| EALN[19] | VehicleID | VehicleID | 0.751 | 0.881 |
| PVEN | VERI-Wild | VehicleID | 0.772 | 0.944 |
+
+
+Figure 6. Visualization of ranking list on vehicle ReID task. The images in the first column are the query images. The rest images are retrieved top-5 ranking results. The correct retrieved images are in green border, while false instances are in red border.
+
+cleID, where for each test query, there is only one target image in the gallery set. The bottom two rows show the results on VERI-Wild. We can find that the top-k retrieved vehicles of the PVEN without view-aware feature learning are of the same view, and also in similar color and vehicle type. As comparison, PVEN retrieves the right images under different views. This indicates that the view-aware feature learning can better align and enhance the local features so as to ease the view transformation problem.
+
+# 5. Conclusion
+
+In this paper, we propose a parsing-based view-aware embedding network. With the help of vehicle part parser, view-aware feature alignment provides a fine-grained representation of the vehicle. We design a common-visible attention to focus on the common visible views, which enhance the vehicle embeddings under different views. This not only shortens the distance among intra-instances, but also enlarges the discrepancy of inter-instances. PVEN helps capture the stable and discriminative information of the same vehicle. The experiments on three datasets show that our model outperforms SOTA methods by a large margin.
+
+Acknowledgement. This work was supported in part by National Key R&D Program of China under Grand: 2018AAA0102003, in part by National Natural Science Foundation of China: 61771457, 61732007, 61772497, 61772494, 61931008, U1636214, 61622211, U19B2038, 61702491, in part by Key Research Program of Frontier Sciences, CAS: QYZDJ-SSW-SYS013.
+
+# References
+
+[1] Yan Bai, Yihang Lou, Feng Gao, Shiqi Wang, Yuwei Wu, and Ling-Yu Duan. Group-sensitive triplet embedding for vehicle reidentification. IEEE Transactions on Multimedia, 20(9):2385-2399, 2018.
+[2] Haiyun Guo, Chaoyang Zhao, Zhiwei Liu, Jinqiao Wang, and Hanqing Lu. Learning coarse-to-fine structured feature embedding for vehicle re-identification. In AAAI, pages 6853–6860, 2018.
+[3] Bing He, Jia Li, Yifan Zhao, and Yonghong Tian. Part-regularized near-duplicate vehicle re-identification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3997-4005, 2019.
+[4] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In IEEE CVPR, pages 770-778, 2016.
+[5] Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In IEEE CVPR, pages 7132-7141, 2018.
+[6] Mahdi M. Kalayeh, Emrah Basaran, Muhittin G ö kmen, Mustafa E. Kamasak, and Mubarak Shah. Human semantic parsing for person re-identification. In IEEE CVPR, pages 1062–1071, 2018.
+[7] Pirazh Khorramshahi, Amit Kumar, Neehar Peri, Sai Saketh Rambhatla, Jun-Cheng Chen, and Rama Chellappa. A dual path model with adaptive attention for vehicle re-identification. arXiv preprint arXiv:1905.03397, 2019.
+[8] Liang Li, Shuqiang Jiang, and Qingming Huang. Learning hierarchical semantic description via mixed-norm regularization for image understanding. IEEE Transactions on Multimedia, 14(5):1401-1413, 2012.
+[9] Wei Li, Xiatian Zhu, and Shaogang Gong. Harmonious attention network for person re-identification. In IEEE CVPR, pages 2285–2294, 2018.
+[10] Shengcai Liao, Yang Hu, Xiangyu Zhu, and Stan Z Li. Person re-identification by local maximal occurrence representation and metric learning. In IEEE CVPR, pages 2197–2206, 2015.
+[11] Hongye Liu, Yonghong Tian, Yaowei Wang, Lu Pang, and Tiejun Huang. Deep relative distance learning: Tell the difference between similar vehicles. In IEEE CVPR, pages 2167-2175, 2016.
+[12] Jiawei Liu, Zheng-Jun Zha, Di Chen, Richang Hong, and Meng Wang. Adaptive transfer network for cross-domain person re-identification. In IEEE CVPR, pages 7202-7211, 2019.
+[13] Xuejing Liu, Liang Li, Shuhui Wang, Zheng-Jun Zha, Dechao Meng, and Qingming Huang. Adaptive reconstruction network for weakly supervised referring expression grounding. In IEEE ICCV, pages 2611-2620, 2019.
+[14] Xinchen Liu, Wu Liu, Huadong Ma, and Huiyuan Fu. Large-scale vehicle re-identification in urban surveillance videos. In ICME, pages 1–6, 2016.
+[15] Xinchen Liu, Wu Liu, Huadong Ma, and Huiyuan Fu. Large-scale vehicle re-identification in urban surveillance videos. In ICME, pages 1-6. IEEE, 2016.
+[16] Xinchen Liu, Wu Liu, Tao Mei, and Huadong Ma. PROVID: progressive and multimodal vehicle reidentification for
+
+large-scale urban surveillance. IEEE Trans. Multimedia, 20(3):645-658, 2018.
+[17] Xiaobin Liu, Shiliang Zhang, Qingming Huang, and Wen Gao. RAM: A region-aware deep model for vehicle re-identification. In ICME, pages 1–6, 2018.
+[18] Yihang Lou, Yan Bai, Jun Liu, Shiqi Wang, and Lingyu Duan. Veri-wild: A large dataset and a new method for vehicle re-identification in the wild. In IEEE CVPR, pages 3235–3243, 2019.
+[19] Yihang Lou, Yan Bai, Jun Liu, Shiqi Wang, and Ling - Yu Duan. Embedding adversarial learning for vehicle re-identification. IEEE Trans. Image Processing, 28(8):3794-3807, 2019.
+[20] Hao Luo, Youzhi Gu, Xingyu Liao, Shenqi Lai, and Wei Jiang. Bag of tricks and a strong baseline for deep person re-identification. In IEEE CVPR Workshops, pages 0–0, 2019.
+[21] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In Medical Image Computing and Computer-Assisted Intervention - MICCAI 2015 - 18th International Conference Munich, Germany, October 5 - 9, 2015, Proceedings, Part III, pages 234-241, 2015.
+[22] 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. IJCV, 115(3):211-252, 2015.
+[23] Florian Schroff, Dmitry Kalenichenko, and James Philbin. Facenet: A unified embedding for face recognition and clustering. In IEEE CVPR, pages 815-823, 2015.
+[24] Yantao Shen, Tong Xiao, Hongsheng Li, Shuai Yi, and Xiaogang Wang. Learning deep neural networks for vehicle re-id with visual-spatio-temporal path proposals. In IEEE ICCV, pages 1918-1927, 2017.
+[25] 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, pages 501-518, 2018.
+[26] Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott E. Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In IEEE CVPR, pages 1-9, 2015.
+[27] Zhongdao Wang, Luming Tang, Xihui Liu, Zhuliang Yao, Shuai Yi, Jing Shao, Junjie Yan, Shengjin Wang, Hongsheng Li, and Xiaogang Wang. Orientation invariant feature embedding and spatial temporal regularization for vehicle re-identification. In IEEE ICCV, pages 379–387, 2017.
+[28] Linjie Yang, Ping Luo, Chen Change Loy, and Xiaou Tang. A large-scale car dataset for fine-grained categorization and verification. In IEEE CVPR, pages 3973-3981, 2015.
+[29] Linjie Yang, Ping Luo, Chen Change Loy, and Xiaou Tang. A large-scale car dataset for fine-grained categorization and verification. In IEEE CVPR, pages 3973-3981, 2015.
+[30] Shijie Yang, Liang Li, Shuhui Wang, Weigang Zhang, Qingming Huang, and Qi Tian. Skeletonnet: a hybrid network with a skeleton-embedding process for multi-view image representation learning. IEEE Transactions on Multimedia, 21(11):2916-2929, 2019.
+
+[31] Yuhui Yuan, Kuiyuan Yang, and Chao Zhang. Hard-aware deeply cascaded embedding. In IEEE ICCV, pages 814-823, 2017.
+[32] Wei Zhang, Shengnan Hu, and Kan Liu. Learning compact appearance representation for video-based person re-identification. arXiv preprint arXiv:1702.06294, 2017.
+[33] Haiyu Zhao, Maoqing Tian, Shuyang Sun, Shao Jing, and Xiaou Tang. Spindle net: Person re-identification with human body region guided feature decomposition and fusion. In IEEE CVPR, 2017.
+[34] Aihua Zheng, Xianmin Lin, Chenglong Li, Ran He, and Jin Tang. Attributes guided feature learning for vehicle re-identification. arXiv preprint arXiv:1905.08997, 2019.
+[35] 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 IEEE CVPR, pages 8514–8522, 2019.
+[36] Liang Zheng, Liyue Shen, Lu Tian, Shengjin Wang, Jingdong Wang, and Qi Tian. Scalable person re-identification: A benchmark. In IEEE ICCV, pages 1116-1124, 2015.
+[37] Yi Zhou and Ling Shao. Viewpoint-aware attentive multiview inference for vehicle re-identification. In IEEE CVPR, pages 6489–6498, 2018.
+[38] Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In IEEE ICCV, pages 2223-2232, 2017.
\ No newline at end of file
diff --git a/parsingbasedviewawareembeddingnetworkforvehiclereidentification/images.zip b/parsingbasedviewawareembeddingnetworkforvehiclereidentification/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..d852059d177d4404592f6174e0bdc1d8e430c024
--- /dev/null
+++ b/parsingbasedviewawareembeddingnetworkforvehiclereidentification/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:456a26dd1a628ccb40dcef0413625aff268d3de06393ec8864e1088273358860
+size 577885
diff --git a/parsingbasedviewawareembeddingnetworkforvehiclereidentification/layout.json b/parsingbasedviewawareembeddingnetworkforvehiclereidentification/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..3d07c745387483b6bc89e679bb84511c157d93fe
--- /dev/null
+++ b/parsingbasedviewawareembeddingnetworkforvehiclereidentification/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4e4d6023edcf669d7724c1456dd0f06731f992a70d410a238df5186020bb51dc
+size 344223
diff --git a/partawarecontextnetworkforhumanparsing/3e923054-c0c2-4c0b-bce3-1f9f61b77c82_content_list.json b/partawarecontextnetworkforhumanparsing/3e923054-c0c2-4c0b-bce3-1f9f61b77c82_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..61737885e0b6a1f934948734959ad7d07b23df38
--- /dev/null
+++ b/partawarecontextnetworkforhumanparsing/3e923054-c0c2-4c0b-bce3-1f9f61b77c82_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6b72380722009b0e1aa5d0394677323824f33c1bc0a7267f7c867eeb3b373cf7
+size 88846
diff --git a/partawarecontextnetworkforhumanparsing/3e923054-c0c2-4c0b-bce3-1f9f61b77c82_model.json b/partawarecontextnetworkforhumanparsing/3e923054-c0c2-4c0b-bce3-1f9f61b77c82_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..2128a61078e8fbfaf83f467e9a8395cd91d682bc
--- /dev/null
+++ b/partawarecontextnetworkforhumanparsing/3e923054-c0c2-4c0b-bce3-1f9f61b77c82_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2508fdaa7b8cab9ad0d6f01b77dd88bafcd08dc86938e1c1633920472a1c7aaf
+size 105522
diff --git a/partawarecontextnetworkforhumanparsing/3e923054-c0c2-4c0b-bce3-1f9f61b77c82_origin.pdf b/partawarecontextnetworkforhumanparsing/3e923054-c0c2-4c0b-bce3-1f9f61b77c82_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..2cd3d439dc8f59b8405ac4ec3fd4b1027c4fe3ab
--- /dev/null
+++ b/partawarecontextnetworkforhumanparsing/3e923054-c0c2-4c0b-bce3-1f9f61b77c82_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:be47b84b643fa50b73e421540e7f73f6650e5997d75fe91c53000e92b326d879
+size 902531
diff --git a/partawarecontextnetworkforhumanparsing/full.md b/partawarecontextnetworkforhumanparsing/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..b65cd9c92150a76494f7e54ca0ce1193cabe871d
--- /dev/null
+++ b/partawarecontextnetworkforhumanparsing/full.md
@@ -0,0 +1,389 @@
+# Part-aware Context Network for Human Parsing
+
+Xiaomei Zhang Yingying Chen Bingke Zhu Jinqiao Wang Ming Tang
+
+National Laboratory of Pattern Recognition, Institute of Automation, CAS, Beijing 100190, China
+School of Artificial Intelligence, University of Chinese Academy of Sciences, Beijing 100049, China
+
+{xiaomei.zhang, yingying.chen, bingke.zhu, jqwang, tangm}@nlpr.ia.ac.cn
+
+# Abstract
+
+Recent works have made significant progress in human parsing by exploiting rich contexts. However, human parsing still faces a challenge of how to generate adaptive contextual features for the various sizes and shapes of human parts. In this work, we propose a Part-aware Context Network (PCNet), a novel and effective algorithm to deal with the challenge. PCNet mainly consists of three modules, including a part class module, a relational aggregation module, and a relational dispersion module. The part class module extracts the high-level representations of every human part from a categorical perspective. We design a relational aggregation module to capture the representative global context by mining associated semantics of human parts, which adaptively augments the context for human parts. We propose a relational dispersion module to generate the discriminative and effective local context and neglect disturbing one by making the affinity of human parts dispersed. The relational dispersion module ensures that features in the same class will be close to each other and away from those of different classes. By fusing the outputs of the relational aggregation module, the relational dispersion module and the backbone network, our PCNet generates adaptive contextual features for various sizes of human parts, improving the parsing accuracy. We achieve a new state-of-the-art segmentation performance on three challenging human parsing datasets, i.e., PASCAL-PersonPart, LIP, and CIHP.
+
+# 1. Introduction
+
+Human parsing aims at classifying every pixel in images to one of the predefined categories of parts or clothes (e.g., head, torso, etc.). It has been widely used in various challenging fields such as person re-identification [9], human behavior analysis [40], clothing style recognition and retrieval [44], clothing category classification [38]. With the rapid development of electronic commerce and on
+
+
+
+
+Image
+
+
+
+
+Ground Truth
+
+
+
+
+Mislabeling in Predictions
+
+
+
+
+Improvement in Predictions
+Figure 1. Examples of the challenge in human parsing. The original images and ground-truth come from PASCAL-Person-Part dataset [5]. There are various scales and shapes of human parts. Third column: CE2P [27] fails to extract the lower-arms, upper-arms, and upper-legs with the predefined fixed context. Fourth column: our method has better performance in extracting the three parts by the adaptive context.
+
+line shopping, human parsing has attracted much attention [37, 42, 43, 14, 20, 22, 24, 15, 47, 31, 27]. However, it is still a challenging task to generate adaptive contextual features for different human parts, due to various sizes and shapes of human parts.
+
+The most widely used method [25, 31, 14, 27] to solve the above problem is aggregating various contexts from predefined fixed regions. However, the semantic context represented by predefined fixed contexts cannot meet the requirement of dense prediction tasks. Another way is applying attention mechanisms [4, 41] that assigning different weights on different channels or positions. However, attention models have a major drawback that they focus on local patterns of parts and ignore the relation between parts, which restricts their capability to capture the global context. As shown in Figure 1, lower-arms, upper-arms and upper-legs cannot be categorized correctly due to the lack of adaptive contextual features for human parts with various scales and shapes. Different from the above methods, we argue that different human parts need an adaptive context. In this
+
+paper, we propose a Part-aware Context Network (PCNet) to leverage the global and local context and adaptively generate proper contextual features for human parts with various scales and shapes.
+
+To exploit the high-level representations of every human part, we propose a part class module which describes the overall representations of each category, as shown in Figure 2(a). Specifically, the high-level representation for one category is extracted by clustering the features of all the positions belonging to this class. Moreover, we design a relational aggregation module to generate global features by leveraging a dynamic convolution kernel with the global context, as shown in Figure 2(b). The global context is generated by progressively refining graph representations within the same graph structure of all human parts. Because neurons processing information reveals that neurons are adaptive processors, changing their function according to behavioral context [12] and some methods [16, 7] verified that outputs of a specific convolutional layer are guided by its kernel content. Thus, the dynamic convolution kernel with the global context is applied to the original features generated from the backbone network to adaptively generate the global features for human parts.
+
+To alleviate the negative influence of redundant or interfering information in the global context, we develop a relational dispersion module which generates the discriminative and effective local features by applying a dynamic convolution kernel with the discriminative local context, as shown in Figure 2(c). Specifically, the discriminative local context (affinity dispersion) is generated by making the affinity of human parts dispersed and the discrimination of every human part enhanced. By measuring the similarity among the features of human parts, we can obtain the affinity coefficient of parts. The smaller coefficient indicates that the two parts have a closer relation. Then the features of the part multiply with its affinity coefficient to make the affinity disperse and itself remain unchanged, called affinity dispersion. We concatenate affinity dispersion of all human parts as a dynamic convolution kernel. The kernel applied to the original features from the backbone network generates the discriminative and effective local features for human parts.
+
+We fuse the outputs of the relational aggregation module, the relational dispersion module and the backbone network to obtain proper contextual features for different human parts. The overall structure of our PCNet is shown in Figure 2. Extensive experiments on three popular benchmarks show that our network achieves a new state-of-the-art consistently on three public benchmarks, PASCAL-PersonPart [5], LIP [15] and CIHP [14]. In summary, our contributions are in three folds:
+
+1. A novel Part-aware Context Network (PCNet) is designed specially to generate adaptive contextual features for human parts with various scales and shapes.
+
+2. The proposed PCNet consists of three modules, including a part class module exploits the high-level representations of every human part, a relational aggregation module captures representative global context, a relational dispersion module generates the discriminative and effective local context and neglects disturbing one.
+
+3. The proposed PCNet achieves new state-of-the-art results consistently on three public human parsing benchmarks. Specifically, our method outperforms the best competitor by $3.25\%$ , $2.63\%$ , and $0.43\%$ on PASCAL-Person-Part, LIP, and CIHP in terms of mIoU, respectively.
+
+# 2. Related Work
+
+Human Parsing. Many research efforts have been devoted to human parsing [42, 43, 15, 20, 22, 24, 47, 45, 31, 27]. Chen et al. [4] proposed an attention mechanism that learned to weigh the multi-scale features at each pixel location softly. Xia et al. [42] proposed HAZN for object part parsing, which adapted to the local scales of objects and parts by detection methods. However, [4, 42] ignored the relation of human parts. In this paper, our PCNet captures the global context of human parts by mining their associated semantic.
+
+Human pose estimation and semantic part segmentation are two complementary tasks [21], in which the former provided an object-level shape prior to regularize part segments while the latter constrained the variation of pose location. Ke et al. [13] proposed Graphonomy, which incorporated hierarchical graph transfer learning upon the conventional parsing network to predict all labels. Wang et al. [39] combined neural networks with the compositional hierarchy of the human body for complete human parsing. All the above methods focus on how to capture the relation of different human parts and ignore how to generate discriminative contextual representation. Different from the above methods, our PCNet can generate a remarkable contextual representation for human parsing.
+
+Contextual Modeling. There are two mainstreams to enhance contextual aggregation in parsing networks. One is to concatenate or sum multi-scale features to segment human parts [22, 14, 27, 10], Liang et al. [22] proposed a contextualized convolutional neural network to integrate the cross-layer context of an image by summing features of a down-sampling process for human parsing. Gong et al. [14] and Liu et al. [27] used a pyramid pooling module to concatenate multi-scale features. The other is that [4, 11] proposed an attention model to output a weight map which weights features pixel by pixel for each scale and is shared across all the channels of the same scale. However, the kernels of all the above methods are fixed after training. D
+
+
+Figure 2. Overview of the proposed Part-aware Context Network (PCNet). An input image goes through the backbone network to generate its original features. The part class module is appended to extract the high-level representations of every human part. Then the relational aggregation module and the relational dispersion module adaptively generate the global context and the discriminative local context, respectively. By fusing the outputs of the relational aggregation module, the relational dispersion module and the backbone network, PCNet can adaptively generate features with rich contexts for human parts with various scales. $\clubsuit$ denotes the convolution operation, $(\mathbb{C})$ indicates the concatenation operation.
+
+ifferent from the above methods, our kernels can generate dynamically conditioned on an input.
+
+Additionally, Ding et al. [7] proposed a shape-variant context to model the diverse shapes and scales of contexts, which greatly enhanced the modeling ability of the network. Wang et al. [36] reassembled the features inside a predefined region centered at each location via a weighted combination, where the weights were generated in a content-aware manner. Although [7, 36] have rich contexts, they cannot spotlight discriminative and effective local features. In this paper, our relational dispersion module can enhance discriminative and effective local features.
+
+# 3. Part-aware Context Network
+
+# 3.1. Overall Framework
+
+The overall framework of our network, Part-aware Context Network (PCNet), is shown in Figure 2. Our backbone network is ResNet-101 [17] (pre-trained on ImageNet [34]). Following PSPNet [46], the classification layer and last two pooling layers are removed and the dilation rate of the convolution layers after the removed pooling layers are set to 2 and 4, respectively. Thus, the output stride of the network is set to 8. Our PCNet consists of three modules, including a part class module, a relational aggregation module, and a relational dispersion module. The part class module takes the original features of the backbone network as inputs and exploits the high-level representations for human parts from a categorical perspective. Then the outputs of the part class module and the backbone network are sent into the relational aggregation module and the relational dispersion module, respectively. The relational aggregation module adaptively generates global features depending on the associated se
+
+mantics of human parts. The relational dispersion module adaptively generates discriminative local features. Finally, we aggregate the representative global features, discriminative local features and original features to obtain adaptive contextual features for human parts.
+
+# 3.2. Part Class Module
+
+The proposed part class module exploits the high-level representations of every human part from a categorical perspective. As shown in Figure 2(a), the part class module applies a channel reduction operation to original features through a $1 \times 1$ conv to reduce the channel number to obtain $M_1 \in R^{N \times H \times W}$ , which are learned under the supervision from the ground-truth segmentation.
+
+In order to decrease the computation, we compress $M_1 \in R^{N \times H \times W}$ to $M_2 \in R^{N \times h \times w}$ by a group convolutional layer. We reshape $M_2 \in R^{N \times h \times w}$ to $P \in R^{N \times D}$ , where $N$ is the number of categories, $D = hw$ and $D$ is the feature dimension for each category. The number of nodes $N$ typically corresponds to the number of target labels of a dataset.
+
+# 3.3. Relational Aggregation Module
+
+The relational aggregation module is proposed to adaptively generate global features by capturing high-order associated semantics among human parts. The relational aggregation module is proposed to exploit the graph representation of human parts to generate dynamic global-aware convolutional kernels. Based on the high-level representations $P \in R^{N \times D}$ , we leverage semantic constraints from the human body structure knowledge to evolve the global context by graph reasoning. One node denotes one category of a dataset. We introduce the connections between the human parts to encode the relation between two nodes, as
+
+
+(a)
+
+
+(b)
+Figure 3. (a) Examples of the defined connections between each two human body parts, which is the foundation to encode the relations between two semantic nodes in the graph for reasoning. Two nodes are related if they are connected by a black line. (b) The framework of GCN.
+
+shown in Figure 3(a). For example, head usually appears with torso so these two nodes are linked while the head node and the Lower - legs are disconnected because they have nothing related.
+
+Following Graph Convolution [19], we perform graph propagation over representation $P \in R^{N \times D}$ of all nodes. As shown in Figure 3(b), we represent the associated semantics as a graph $G(V, E)$ , where $V$ is the vertex set, $E$ is the edge set. In particular, $V$ is the human part set, $E$ is the relation set. The adjacency matrix $A \in R^{N \times N}$ of $G$ is defined as:
+
+$$
+A _ {i, j} = \frac {\exp \left(r _ {i , j}\right)}{\sum_ {i = 1} ^ {m} \exp \left(r _ {i , j}\right)}, \tag {1}
+$$
+
+where $r_{i,j}$ computes the score of the semantic relation between two human parts by a function $p$ , i.e., inner product:
+
+$$
+r _ {i, j} = p \left(\nu_ {i}, \nu_ {(i, j)}\right), \tag {2}
+$$
+
+where $\nu_{i} \in R^{1 \times D}$ is a human part, $\nu_{(i,j)} \in R^{1 \times D}$ is a human part directly connected to $\nu_{i}, j \in [1,2,\dots,m]$ , $m$ is the number of $\nu_{i}$ 's neighbors. In general, $r_{i,j} \in R$ characterizes the importance of the semantic relation between human part $\nu_{i}$ and $\nu_{j}$ . For example, a part may have more potential interesting in the part to share inherent structures of the human body, whereas another part may be more concerned about the appearance of parts.
+
+The next step in the $G$ is to aggregate the human part $\nu_{i}$ and its neighbors:
+
+$$
+\widetilde {A} _ {i, j} = A _ {i, j} + I _ {n}, \tag {3}
+$$
+
+where $I_{n}$ is the identity matrix. Finally, the output of the graph convolution layer is computed as:
+
+$$
+H = \sigma (\widetilde {A} P W), \tag {4}
+$$
+
+where $W$ is a trainable parametric matrix, and $\sigma$ is the nonlinear function such as ReLU.
+
+
+Figure 4. Examples of affinity dispersion of human parts. $\odot$ indicates the element-wise multiplication operation.
+
+Following [35], we convert $H \in R^{N \times D}$ (the part-aware global context) to $H' \in R^{D \times h \times h}$ by using a learnable projection matrix. Then, $H'$ goes through a convolutional layer to increase the channel number to $C$ , obtaining $\theta' \in R^{c_i \times h \times h}$ . Note that $c_i = C$ , $C$ is the number of channels of the original features. Following [33], here $h = 7$ is the convolution kernel size. Following [1], we perform the following operations on $\theta'$ to generate the convolution kernels $\theta \in R^{h \times h \times c_i \times c_o}$ :
+
+$$
+\theta = U * \theta^ {\prime} * _ {c} V, \tag {5}
+$$
+
+where $*$ denotes the convolution operation, $^{\ast}_{c}$ denotes the channel-wise convolution operation, $U\in R^{1\times 1\times c_i\times c_o}$ and $V\in R^{1\times 1\times c_i\times c_i}$ are auxiliary parameters to learn for the convolution kernels.
+
+With the convolution kernels $\theta$ , we adopt a convolutional layer, different from the traditional convolutional layer where kernel weights are generated dynamically conditioned on an input.
+
+$$
+F ^ {r} = \sigma (\theta * F), \tag {6}
+$$
+
+where $F$ is the output of the backbone network, $F^r$ is the output of the relational aggregation module.
+
+It can be seen from the above formulation that parts with different sizes can automatically augment the representation of the context of human parts with the part relation presentation. With our design, the relational aggregation module can generate global features according to the global context.
+
+# 3.4. Relational Dispersion Module
+
+The global features are essential for human parsing, but it may bring the negative influence of redundant or interfering information because it is difficult for the global features to classify adjacent patches with similar appearances but different semantic labels. In order to learn the discriminative and effective local features, we propose the relational dispersion module. The module can ensure that features in the same class will lie close to each other and away from those of different classes, as shown in Figure 2(c).
+
+In order to adaptively enhance local features, we disperse the affinity of human parts, as shown in Figure 4. Specifically, we first measure the similarity among features of human
+
+parts. For example, the similarity of a human part $\nu_{i}$ and other human parts $\nu_{p}$ is calculated by matrix minus, which gets $a_{ip}$ :
+
+$$
+a _ {i p} = \nu_ {i} - \nu_ {p}, \tag {7}
+$$
+
+where $\nu_{i}\in R^{1\times D},\nu_{p}\in R^{1\times D},p\in [1,2,\dots,N - 1]$ , and $N$ is the number of categories. Noted that the smaller $a_{ip}$ indicates that the features of the human part $\nu_{i}$ is more similar to the human part $\nu_{p}$ 's, $a_{ip}\in A_i$ .
+
+Then a group convolution layer is applied to $A_{i} \in R^{(N - 1) \times D}$ to generate $A_{ig} \in R^{(N - 1) \times D}$ . $\nu_{i}$ made product with $A_{ig} \in R^{(N - 1) \times D}$ to generate $S_{i}' \in R^{(N - 1) \times D}$ . According to the original location of $\nu_{i}$ , we put it to the $S_{i}'$ which generates $S_{i} \in R^{N \times D}$ . We concatenate all the $S_{i}$ , that is:
+
+$$
+S _ {i} ^ {\prime} = A _ {i g} \odot v _ {i},
+$$
+
+$$
+B = \operatorname {c a t} \left(\left\{S _ {i} \right\} _ {i = 1} ^ {N}\right), \tag {8}
+$$
+
+where $\odot$ denotes the element-wise multiplication operation, $cat(\cdot)$ denotes the concatenation function, $B$ denotes the results by concatenating $S_{i}$ .
+
+We apply a convolution layer on $B \in R^{N \times N \times D}$ to generate $\omega' \in R^{c \times h \times h}$ , and use Eq. 5 on the $\omega'$ to generate $\omega \in R^{h \times h \times c \times c_o}$ .
+
+With kernel $\omega$ , we adopt a convolutional layer, different from the traditional convolutional layer. The kernels are generated dynamically conditioned on an input:
+
+$$
+F ^ {d} = \sigma (\omega * F) \tag {9}
+$$
+
+where $F^d$ is the outputs of the relational dispersion module.
+
+It can be seen that our relational dispersion module can learn the discriminative and effective local features by class-specific cohesion and separation of sample features of interclass.
+
+# 3.5. Loss Function
+
+Following PSPNet [46], PCNet employs two deep auxiliary losses that are softmax cross-entropy loss, one locates at the part class part as shown in Figure 2 and the other is applied after the twenty-second module of the fourth stage of ResNet101, i.e., the res4b22 residue module, they are named as $L_{aux1}$ and $L_{aux2}$ , respectively. The loss at the end of our method is named as $L_{softmax}$ . The total loss can be formulated as:
+
+$$
+L = \lambda L _ {\text {s o f t m a x}} + \lambda_ {1} L _ {\text {a u x 1}} + \lambda_ {2} L _ {\text {a u x 2}}, \tag {10}
+$$
+
+where we fix the hyper-parameters $\lambda = 0.6$ , $\lambda_{1} = 0.1$ , and $\lambda_{2} = 0.3$ in our experiments.
+
+We experiment with setting the auxiliary loss weight $\lambda_{1}$ and $\lambda_{2}$ between 0 and 1, respectively. Then, we experiment with setting the loss at the end of our method $\lambda$ between 0 and 1. $\lambda = 0.6$ , $\lambda_{1} = 0.1$ and $\lambda_{2} = 0.3$ yield the best results.
+
+# 4. Discussion
+
+Here we discuss the relations between PCNet and dynamic filter [18], and deformable convolution [6], which share similar design philosophy but with different focuses.
+
+Dynamic Filter. Dynamic filter generates instance-specific convolutional filters conditioned on the input of the network, and then applies the predicted filter on the input. Both dynamic filter and PCNet are content-aware operators, but a fundamental difference between them lies in their kernel generation process. Specifically, the contents of the dynamic filter are not related to each other, whereas the contents of our PCNet are the global-aware content or local-aware content.
+
+Deformable Convolutional Networks (DCN). DCN also adopts the idea of learning geometric transformation and combines it with the regular convolution layers. It predicts kernel offsets other than using grid convolution kernels. It is also known to be sensitive to parameter initialization.
+
+# 5. Experiments
+
+# 5.1. Datasets
+
+PASCAL-Person-Part dataset [5], there are multiple person appearances in an unconstrained environment. Each image has 7 labels: background, head, torso, upper-arm, lower-arm, upper-leg and lower-leg. Originally, we only use the images containing human for training (1716 images) and validation (1817 images).
+
+LIP dataset [15] contains 50,462 images in total, including 30,362 for training, 10,000 for testing and 10,000 for validation. LIP defines 19 human parts (clothes) labels, including hat, hair, sunglasses, upper-clothes, dress, coat, socks, pants, gloves, scarf, skirt, jumpsuits, face, right-arm, left-arm, right-leg, left-leg, right-shoe and left-shoe, and a background class. We use its training set to train our network and its validated set to test our network.
+
+CIHP dataset [14] is a new large-scale benchmark for human parsing task, including 38,280 images with pixelwise annotations on 19 semantic part labels. The images are collected from the real-world scenarios, containing persons appearing with challenging poses and viewpoints, heavy occlusions, and in a wide range of resolutions. Following the benchmark, we use 28,280 images for training, 5,000 images for validation and 5,000 images for testing.
+
+Evaluation Metrics We evaluate the mean pixel Intersection-over-Union (mIoU) of our network in experiments on these three datasets. Additionally, we adopt mean accuracy (Mean Acc) for CIHP dataset.
+
+# 5.2. Implementation Details
+
+As for the baseline, we use the FCN-like ResNet101 [17] (pre-trained on ImageNet [34]). Following PSPNet [46], the classification layer and last two pooling layers
+
+| # | Baseline | Part-class (ours) | RAM-mult (ours) | RAM-conv (ours) | D-gcn (ours) | T-gcn (ours) | RDM-concat (ours) | RDM-conv (ours) | DA | MS | mIoU(%) |
| 1 | ✓ | | | | | | | | | | 66.61 |
| 2 | ✓ | ✓ | | | | | | | | | 67.40 |
| 3 | ✓ | ✓ | ✓ | | | | | | | | 68.53 |
| 4 | ✓ | ✓ | | ✓ | | | | | | | 69.41 |
| 5 | ✓ | ✓ | | ✓ | ✓ | | | | | | 70.12 |
| 6 | ✓ | ✓ | | ✓ | | ✓ | | | | | 70.52 |
| 7 | ✓ | ✓ | | ✓ | | ✓ | ✓ | | | | 71.08 |
| 8 | ✓ | ✓ | | ✓ | | ✓ | | ✓ | | | 72.26 |
| 9 | ✓ | ✓ | | ✓ | | ✓ | | ✓ | ✓ | | 73.32 |
| 10 | ✓ | ✓ | | ✓ | | ✓ | | ✓ | ✓ | ✓ | 74.59 |
+
+Table 1. Ablation study for our network PCNet. The results are obtained on the validation set of PASCAL-Person-Part [5]. The baseline is ResNet-101. Part-class denotes our part class module. RAM denotes our relational aggregation module. RDM denotes our relational dispersion module. RAM-mult denotes that the global context $H$ and original features from the backbone are multiplied in a channel-wise way in our relational aggregation module. RAM-conv denotes that the global context $H$ as kernels applied to original features in our relational aggregation module. D-gcn denotes that dual graph convolution layers are applied in our relational aggregation module. T-gcn denotes that three graph convolution layers are applied in our relational aggregation module. RDM-concat denotes that the $B$ and original features are concatenating in our relational dispersion module. RDM-conv denotes that the $B$ as kernels applied to original features in our relational dispersion module. DA denotes data augmentation with multi-scale input during the training phase, MS denotes multi-scale testing.
+
+are removed and the dilation rate of the convolution layers after the removed pooling layers are set to 2 and 4 respectively. Thus, the output feature is $8 \times$ smaller than the input image if not specified. Additionally, we train the method in an end-to-end manner. The number of nodes in the relational aggregation module is set according to the number of categories of human parts, i.e., $N = 7$ for Pascal-Person-Part dataset, $N = 20$ for LIP dataset, $N = 20$ for CIHP dataset. The feature dimension D of each semantic node is 128. The relational aggregation module has two graph convolution layers with the ReLU activate function.
+
+We train all the models using stochastic gradient descent (SGD) solver, momentum is 0.9 and weight decay is 0.0005. As for these three datasets (PASCAL-Person-Part, LIP and CIHP), we resize images to $512 \times 512$ , $473 \times 473$ , and $512 \times 512$ as the input size, respectively; the batch sizes are 8, 12, and 8, respectively; the epochs of three datasets are 100, 120, 120, respectively. We do not use OHEM. For data augmentation, we apply the random scaling (from 0.5 to 1.5) and left-right flipping during training. In the inference process, we test images on the multi-scale to acquire a multi-scale context. All networks are trained on NVIDIA GTX TITAN X GPU with 12 GB memory.
+
+# 5.3. Ablation Study
+
+We conduct all of our ablation study experiments with ResNet-101 as our backbone network and report all the performance with only single scale testing on the PASCAL-Person-Part validation set. For starters, we evaluate the performance of the baseline, as the #1 result in Table 1. It should be noted that all our experiments use auxiliary su
+
+pervision.
+
+Ablation for the Part Class Module. To verify the effect of the part class module, we first remove the relational aggregation module and the relational dispersion module in Figure 2. The $P \in R^{N \times D}$ is upsampled and reshaped to $R^{N \times H \times W}$ . Then the upsampled $P \in R^{N \times H \times W}$ and the original features from the backbone network are concatenated to get the fine segmentation result. The experiment result is shown in Table 1 (#2). This modification improves the performance to $66.61\% (0.79 \uparrow)$ on the PASCAL-Person-Part validation set with negligible additional parameters.
+
+Ablation for the Relational Aggregation Module. We further evaluate the role of the relational aggregation module. As for the relational aggregation module, we replace its convolutional layer named $RAM - conv$ (described in Eq. 6) with channel-wise multiplication named $RAM - mult$ , the operation can be formulated as follows:
+
+$$
+F ^ {r ^ {\prime}} = F \cdot H, \tag {11}
+$$
+
+where $F$ is the outputs of the backbone network, $F^{r'}$ is the outputs of the relational aggregation module. The experiment result is shown in Table 1 (#3). Compared with the experiment of baseline + partclass (#2), the #3 improves the performance of the PASCAL-Person-Part validation set from $67.40\%$ to $68.53\%$ , whereas the #4 with RAM - conv achieves a performance of $69.41\%$ . Compared with the baseline, the improvement is significant. In the following experiments, we use the relational aggregation module with a convolutional layer strategy RAM - concat as default. Note that #4 and #5 apply one graph convolution layer.
+
+| Method | mIoU(%) | FLOPs | Memory | Params |
| ResNet-101 | 66.61 | 190.3G | 2.601G | 42.4M |
| DeeplabV3 | 68.32 | +62.9G | +64M | +15.2M |
| CE2P | 69.22 | +60.9G | +59M | +20M |
| PCNet (ours) | 74.59 | +42.2G | +30.1M | +11.4M |
+
+Table 2. Detailed comparisons on PASCAL VOC with the baseline (ResNet-101) and DeeplabV3 in mIoU (\%). All results are achieved with the backbone ResNet-101 and output stride 8. The FLOPs and memory are computed with the input size $512 \times 512$ .
+
+| Method | Head | Torso | U-arms | L-arms | U-legs | L-legs | Background | mIoU(%) |
| HAZA [42] | 80.76 | 60.50 | 45.65 | 43.11 | 41.21 | 37.74 | 93.78 | 57.54 |
| LIP [15] | 83.26 | 62.40 | 47.80 | 45.58 | 42.32 | 39.48 | 94.68 | 59.36 |
| MMAN [31] | 82.58 | 62.83 | 48.49 | 47.37 | 42.80 | 40.40 | 94.92 | 59.91 |
| Graph LSTM [23] | 82.69 | 62.68 | 46.88 | 47.71 | 45.66 | 40.93 | 94.59 | 60.61 |
| SE LSTM [22] | 82.89 | 67.15 | 51.42 | 48.72 | 51.72 | 45.91 | 97.18 | 63.57 |
| Joint [43] | 85.50 | 67.87 | 54.72 | 54.30 | 48.25 | 44.78 | 95.32 | 64.39 |
| MuLA [32] | - | - | - | - | - | - | - | 65.1 |
| PCNet [47] | 86.81 | 69.06 | 55.35 | 55.27 | 50.21 | 48.54 | 96.07 | 65.90 |
| Holistic [20] | - | - | - | - | - | - | - | 66.3 |
| WSHP [8] | 87.15 | 72.28 | 57.07 | 56.21 | 52.43 | 50.36 | 97.72 | 67.60 |
| PGN [14] | 90.89 | 75.12 | 55.83 | 64.61 | 55.42 | 41.47 | 95.33 | 68.40 |
| RefineNet [26] | - | - | - | - | - | - | - | 68.6 |
| Learning [39] | 88.02 | 72.91 | 64.31 | 63.52 | 55.61 | 54.96 | 96.02 | 70.76 |
| Graphonomy [13] | - | - | - | - | - | - | - | 71.14 |
| DPC [2] | 88.81 | 74.54 | 63.85 | 63.73 | 57.24 | 54.55 | 96.66 | 71.34 |
| PCNet (ours) | 90.04 | 76.89 | 69.11 | 68.4 | 60.78 | 60.14 | 96.78 | 74.59 |
+
+Table 3. Performance comparison in terms of mean pixel Intersection-over-Union (mIoU) (\%) with the state-of-the-art methods on PASCAL-Person-Part [5].
+
+To sufficiently propagate the global context, we employ a different number of such graph convolution. From the #4, #5 and #6 results in Table 1, we can find that three graph convolutions have the best trade-off.
+
+Ablation for the Relational Dispersion Module. We also evaluate the role of the relational dispersion module. We replace the convolutional layer named $RDM - conv$ (described in Eq. 9) with the concatenation operation $RDM - concat$ , the operation can be formulated as follows,
+
+$$
+F ^ {d ^ {\prime}} = \operatorname {c o n c a t} (F, B), \tag {12}
+$$
+
+where $F$ is the outputs of the backbone network, B is up-sampled to the size of $F$ , $F^{d'}$ is the output of the relational aggregation module. The experiment results are shown in Table 1. Compared with the experiment of #6, the #7 improves the performance of the PASCAL-Person-Part validation set from $70.52\%$ to $71.08\%$ , whereas the #8 achieves a performance of $72.26\%$ . When comparing with the baseline, the improvement is significant. In the following experiments, we use the RDM - conv strategy as default.
+
+We adopt data augmentation with multi-scale input during the training phase and multi-scale testing during the testing. Our PCNet achieves a performance of $74.59\%$ .
+
+
+(a)
+
+
+
+
+(c)
+(d)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 5. Qualitative comparison of PCNet results on PASCAL-Person-Part[5] dataset. In the first row, our method extracts more complete foregrounds from cluttered scenes. And in the last two rows, our method segments different human parts more accurately, such as, upper-arm and lower-arm.
+
+
+
+
+
+
+
+
+
+
+
+Ablation for the Computation. We thoroughly compare PCNet with two models, including DeeplabV3 and CE2P [27] on the validation set of PASCAL-Person-Part. We report mIoU, FLOPS, memory cost and parameter number in Table 2. Our PCNet achieves the best performance of $74.59\%$ among networks with the ResNet-101 and outperforms the strong competitiveness one (CE2P) by $5.37\%$ , which is significant due to the fact that this benchmark is very competitive. Moreover, it achieves the performance that is comparable with the method based on some larger backbones. We can see that PCNet outperforms two methods by a large margin. Moreover, PCNet is much lighter in computation and memory.
+
+Qualitative Comparison. The qualitative comparison of results on PASCAL-Person-Part [5] are visualized in Figure 5. From the first row, we find that our method has better performance in extracting foreground from cluttered scenes compared with the baseline because our relational aggregation module can generate representative global features to distinguish foreground and background and our relational dispersion module discriminative local features to segment human parts. In the second row, the baseline misses some parts of a human body, and only can segment a few parts, whereas most of parts can be segmented by our network. For upper-leg and lower-leg in the last row, ours performs well on these small parts and large parts in the image compared with the baseline.
+
+| Method | hat | hair | glov | sung | clot | dress | coat | sock | pant | suit | scarf | skirt | face | l-arm | r-arm | l-leg | r-leg | l-sh | r-sh | bkg | mIoU(%) |
| FCN-8s [29] | 39.79 | 58.96 | 5.32 | 3.08 | 49.08 | 12.36 | 26.82 | 15.66 | 49.41 | 6.48 | 0.00 | 2.16 | 62.65 | 29.78 | 36.63 | 28.12 | 26.05 | 17.76 | 17.70 | 78.02 | 28.29 |
| DeepLabV2 [3] | 56.48 | 65.33 | 29.98 | 19.67 | 62.44 | 30.33 | 51.03 | 40.51 | 69.00 | 22.38 | 11.29 | 20.56 | 70.11 | 49.25 | 52.88 | 42.37 | 35.78 | 33.81 | 32.89 | 84.53 | 41.64 |
| Attention [4] | 58.87 | 66.78 | 23.32 | 19.48 | 63.20 | 29.63 | 49.70 | 35.23 | 66.04 | 24.73 | 12.84 | 20.41 | 70.58 | 50.17 | 54.03 | 38.35 | 37.70 | 26.20 | 27.09 | 84.00 | 42.92 |
| DeepLab-ASPP[3] | 56.48 | 65.33 | 29.98 | 19.67 | 62.44 | 30.33 | 51.03 | 40.51 | 69.00 | 22.38 | 11.29 | 20.56 | 70.11 | 49.25 | 52.88 | 42.37 | \( {35.78} \) | 33.81 | 32.89 | 84.53 | 44.03 |
| LIP [15] | 59.75 | 67.25 | 28.95 | 21.57 | 65.30 | 29.49 | 51.92 | 38.52 | 68.02 | 24.48 | 14.92 | 24.32 | 71.01 | 52.64 | 55.79 | 40.23 | 38.80 | 28.08 | 29.03 | 84.56 | 44.73 |
| ASN [30] | 56.92 | 64.34 | 28.07 | 17.78 | 64.90 | 30.85 | 51.90 | 39.75 | 71.78 | 25.57 | 7.97 | 17.63 | 70.77 | 53.53 | 56.70 | 49.58 | 48.21 | 34.57 | 33.31 | 84.01 | 45.41 |
| MMAN [31] | 57.66 | 66.63 | 30.70 | 20.02 | 64.15 | 28.39 | 51.98 | 41.46 | 71.03 | 23.61 | 9.65 | 23.20 | 68.54 | 55.30 | 58.13 | 51.90 | 52.17 | 38.58 | 39.05 | 84.75 | 46.81 |
| JPPNet [21] | 63.55 | 70.20 | 36.16 | 23.48 | 68.15 | 31.42 | 55.65 | 44.56 | 72.19 | 28.39 | 18.76 | 25.14 | 73.36 | 61.97 | 63.88 | 58.21 | 57.99 | 44.02 | 44.09 | 86.26 | 51.37 |
| CE2P [27] | 65.29 | 72.54 | 39.09 | 32.73 | 69.46 | 32.52 | 56.28 | 49.67 | 74.11 | 27.23 | 14.19 | 22.51 | 75.50 | 65.14 | 66.59 | 60.10 | 58.59 | 46.63 | 46.12 | 87.67 | 53.10 |
| BraidNet [28] | 66.8 | 72.0 | 42.5 | 32.1 | 69.8 | 33.7 | 57.4 | 49.0 | 74.9 | 32.4 | 19.3 | 27.2 | 74.9 | 65.5 | 67.9 | 60.2 | 59.6 | 47.4 | 47.9 | 88.0 | 54.4 |
| PCNet (ours) | 69.32 | 73.08 | 44.72 | 34.21 | 72.59 | 36.02 | 60.84 | 51.03 | 76.66 | 38.78 | 31.60 | 33.94 | 76.65 | 67.07 | 68.74 | 60.22 | 60.16 | 47.65 | 48.67 | 88.68 | 57.03 |
+
+Table 4. Performance comparison in terms of mean pixel Intersection-over-Union (mIoU) (%) with state-of-the-art methods on LIP [15].
+
+| Method | Mean accuracy(%) | mIoU(%) |
| PGN [14] | 64.22 | 55.80 |
| Graphonomy [13] | 66.65 | 58.58 |
| M-CE2P [27] | - | 59.50 |
| BraidNet [28] | - | 60.62 |
| PCNet(ours) | 67.05 | 61.05 |
+
+Table 5. Performance comparison in terms of mean pixel Intersection-over-Union (mIoU) (\%) with state-of-the-art methods on CIHP [14].
+
+# 5.4. Comparison with the State-of-the-Art
+
+Results on PASCAL-Person-Part Dataset. We compare our method with several human parsing methods including HAZA [42], LIP [15], MMAN [31], Graph LSTM [23], SE LSTM [22], Joint [43], PCNet [47], MuLA [32], Holistic [20], WSHP [8], PGN [14], RefineNet [26], Learning [39], Graphonomy [13], and DPC [2]. As shown in Table 3, we can observe that our PCNet outperforms other methods on all categories of PASCAL-Person-Part. Furthermore, our PCNet achieves state-of-the-art performance, i.e., $74.59\%$ , and outperforms the previous best one by $3.25\%$ .
+
+Results on LIP dataset. In this subsection, we conduct experiments on the LIP dataset to validate the effectiveness of our method. Following previous works [15, 31, 21, 21], data augmentation with multi-scale input and multi-scale testing are used.
+
+We compare our method with previous networks on the validation set, which are FCN-8s [29], Attention [4], DeepLab-ASPP[3], LIP [15], MMAN [31], JPPNet [21] CE2P[21], and BraidNet [27]. As shown in Table 4, our method outperforms all priors. Our proposed framework yields $57.03\%$ in terms of mIoU on the LIP. Compared with the best methods, ours exceeds it $2.63\%$ .
+
+Results on CIHP dataset. The human parsing results evaluated on CIHP dataset are reported in Table 5. The previous work achieves high performance with $60.62\%$ in mIoU this challenging dataset. Our PCNet improves the re
+
+sults up to $61.05\%$ , which demonstrates its superiority and capability to take full advantage of the global features and the discriminative local features to boost the human parsing performance.
+
+Overall, our PCNet consistently obtains promising results over different datasets, which clearly demonstrates its superior performance and strong general. This also distinguishes our model from several previous state-of-the-art deep human parsers, such as [15, 32, 43], since it does not use extra pose annotations during training.
+
+# 6. Conclusion
+
+In this work, we propose a Part-aware Context Network (PCNet), which significantly improves performance on human parsing. PCNet consists of three modules, a part class module, a relational aggregation module, and a relational dispersion module. The part class module extracts the high-level representations of every human part from the original features from a categorical perspective. Based on the outputs of the part class module and the backbone network, our relational aggregation module can capture the global features of human parts by mining their associated semantics, and our relational dispersion module can select discriminative and effective local contexts and neglect disturbing ones for one human part. Finally, extensive experiments show that our method improves the performance of the baseline models on three datasets significantly. These results on three datasets prove that our framework works well on different kinds of datasets, including a simple dataset with a small number of body parts and complex datasets with a variety of human body parts.
+
+Acknowledgement. This work was supported by National Natural Science Foundation of China (No.61976210, 61772527, 61806200, 61702510 and 61876086), and Research and Development Projects in the Key Areas of Guangdong Province (No.2020B010165001, 2019B010153001).
+
+# References
+
+[1] Luca Bertinetto, João F Henriques, Jack Valmadre, Philip Torr, and Andrea Vedaldi. Learning feed-forward one-shot learners. In Advances in Neural Information Processing Systems, pages 523-531, 2016.
+[2] 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, pages 8699-8710, 2018.
+[3] 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. In IEEE TPAMI, 40(4):834-848, 2018.
+[4] Liang-Chieh Chen, Yi Yang, Jiang Wang, Wei Xu, and Alan L Yuille. Attention to scale: Scale-aware semantic image segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3640-3649, 2016.
+[5] Xianjie Chen, Roozbeh Mottaghi, Xiaobai Liu, Sanja Fidler, Raquel Urtasun, and Alan Yuille. Detect what you can: Detecting and representing objects using holistic models and body parts. In CVPR, pages 1979-1986, 2014.
+[6] 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, pages 764-773, 2017.
+[7] Henghui Ding, Xudong Jiang, Bing Shuai, Ai Qun Liu, and Gang Wang. Semantic correlation promoted shape-variant context for segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8885–8894, 2019.
+[8] Hao-Shu Fang, Guansong Lu, Xiaolin Fang, Jianwen Xie, Yu-Wing Tai, and Cewu Lu. Weakly and semi supervised human body part parsing via pose-guided knowledge transfer. arXiv preprint arXiv:1805.04310, 2018.
+[9] M. Farenzena, L. Bazzani, A. Perina, V. Murino, and M. Cristani. Person re-identification by symmetry-driven accumulation of local features. In CVPR, pages 2360–2367, 2010.
+[10] Jun Fu, Jing Liu, Yong Li, Yongjun Bao, Weipeng Yan, Zhiwei Fang, and Hanqing Lu. Contextual deconvolution network for semantic segmentation. Pattern Recognition, page 107152, 2020.
+[11] Jun Fu, Jing Liu, Yuhang Wang, Yong Li, Yongjun Bao, Jinhui Tang, and Hanqing Lu. Adaptive context network for scene parsing. In Proceedings of the IEEE international conference on computer vision, pages 6748-6757, 2019.
+[12] Charles D Gilbert and Wu Li. Top-down influences on visual processing. Nature Reviews Neuroscience, 14(5):350-363, 2013.
+[13] Ke Gong, Yiming Gao, Xiaodan Liang, Xiaohu Shen, Meng Wang, and Liang Lin. Graphonomy: Universal human parsing via graph transfer learning. In In CVPR, pages 7450-7459, 2019.
+
+[14] Ke Gong, Xiaodan Liang, Yicheng Li, Yimin Chen, Ming Yang, and Liang Lin. Instance-level human parsing via part grouping network. In Proceedings of the European Conference on Computer Vision (ECCV), pages 770-785, 2018.
+[15] Ke Gong, Xiaodan Liang, Dongyu Zhang, Xiaohui Shen, and Liang Lin. Look into person: Self-supervised structure-sensitive learning and a new benchmark for human parsing. In CVPR, volume 2, page 6, 2017.
+[16] Junjun He, Zhongying Deng, and Yu Qiao. Dynamic multiscale filters for semantic segmentation. In Proceedings of the IEEE International Conference on Computer Vision, pages 3562-3572, 2019.
+[17] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770-778, 2016.
+[18] Xu Jia, Bert De Brabandere, Tinne Tuytelaars, and Luc V Gool. Dynamic filter networks. In Advances in Neural Information Processing Systems, pages 667-675, 2016.
+[19] Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016.
+[20] Qizhu Li, Anurag Arnab, and Philip HS Torr. Holistic, instance-level human parsing. arXiv preprint arXiv:1709.03612, 2017.
+[21] Xiaodan Liang, Ke Gong, Xiaohui Shen, and Liang Lin. Look into person: Joint body parsing & pose estimation network and a new benchmark. In IEEE TPAMI, 41(4):871-885, 2018.
+[22] Xiaodan Liang, Liang Lin, Xiaohui Shen, Jiashi Feng, Shuicheng Yan, and Eric P. Xing. Interpretable structure-evolving lstm. In CVPR, pages 2175-2184, 2017.
+[23] Xiaodan Liang, Xiaohui Shen, Jiashi Feng, Liang Lin, and Shuicheng Yan. Semantic object parsing with graph lstm. In ECCV, pages 125-143. Springer, 2016.
+[24] Xiaodan Liang, Xiaohui Shen, Donglai Xiang, Jiashi Feng, Liang Lin, and Shuicheng Yan. Semantic object parsing with local-global long short-term memory. In CVPR, pages 3185-3193, 2016.
+[25] Xiaodan Liang, Chunyan Xu, Xiaohui Shen, Jianchao Yang, Si Liu, Jinhui Tang, Liang Lin, and Shuicheng Yan. Human parsing with contextualized convolutional neural network. In IEEE TPAMI, 39(1):115-127, 2016.
+[26] Guosheng Lin, Anton Milan, Chunhua Shen, and Ian Reid. Refinenet: Multi-path refinement networks for high-resolution semantic segmentation. In CVPR, pages 1925-1934, 2017.
+[27] Ting Liu, Tao Ruan, Zilong Huang, Yunchao Wei, Shikui Wei, Yao Zhao, and Huang Thomas. Devil in the details: Towards accurate single and multiple human parsing. AAAI, pages 4814-4821, 2019.
+[28] Xinchen Liu, Meng Zhang, Wu Liu, Jingkuan Song, and Tao Mei. Braidnet: Braiding semantics and details for accurate human parsing. In Proceedings of the 27th ACM International Conference on Multimedia, pages 338-346. ACM, 2019.
+[29] Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In CVPR, pages 3431-3440, 2015.
+
+[30] Pauline Luc, Camille Couprie, Soumith Chintala, and Jakob Verbeek. Semantic segmentation using adversarial networks. arXiv preprint arXiv:1611.08408, 2016.
+[31] Yawei Luo, Zhedong Zheng, Liang Zheng, Tao Guan, Junqing Yu, and Yi Yang. Macro-micro adversarial network for human parsing. In ECCV, 2018.
+[32] Xuecheng Nie, Jiashi Feng, and Shuicheng Yan. Mutual learning to adapt for joint human parsing and pose estimation. In ECCV, pages 502-517, 2018.
+[33] Xuecheng Nie, Jiashi Feng, Yiming Zuo, and Shuicheng Yan. Human pose estimation with parsing induced learner. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2100-2108, 2018.
+[34] 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. International journal of computer vision, 115(3):211-252, 2015.
+[35] Zhi Tian, Tong He, Chunhua Shen, and Youliang Yan. Decoders matter for semantic segmentation: Data-dependent decoding enables flexible feature aggregation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3126-3135, 2019.
+[36] Jiaqi Wang, Kai Chen, Rui Xu, Ziwei Liu, Chen Change Loy, and Dahua Lin. Carafe: Content-aware reassembly of features. arXiv preprint arXiv:1905.02188, 2019.
+[37] Peng Wang, Xiaohui Shen, Zhe Lin, Scott Cohen, Brian Price, and Alan Yuille. Joint object and part segmentation using deep learned potentials. In ICCV, pages 1573-1581, 2015.
+[38] Wenguan Wang, Yuanlu Xu, Jianbing Shen, and Songchun Zhu. Attentive fashion grammar network for fashion landmark detection and clothing category classification. In CVPR, 2018.
+[39] Wenguan Wang, Zhijie Zhang, Siyuan Qi, Jianbing Shen, Yanwei Pang, and Ling Shao. Learning compositional neural information fusion for human parsing. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2019.
+[40] Yang Wang, Tran Duan, Zicheng Liao, and David Forsyth. Discriminative hierarchical part-based models for human parsing and action recognition. Journal of Machine Learning Research, 13(1):3075-3102, 2012.
+[41] Zhen Wei, Yao Sun, Jinqiao Wang, Hanjiang Lai, and Si Liu. Learning adaptive receptive fields for deep image parsing network. In CVPR, pages 3947-3955, 2017.
+[42] Fangting Xia, Peng Wang, Liang Chieh Chen, and Alan L. Yuille. Zoom better to see clearer: Human and object parsing with hierarchical auto-zoom net. In ICCV, pages 648-663, 2015.
+[43] Fangting Xia, Peng Wang, Xianjie Chen, and Alan Yuille. Joint multi-person pose estimation and semantic part segmentation. In CVPRW, pages 6080-6089, 2017.
+[44] Kota Yamaguchi, M. Hadi Kiapour, and Tamara L. Berg. Paper doll parsing: Retrieving similar styles to parse clothing items. In ICCV, pages 3519-3526, 2013.
+
+[45] Xiaomei Zhang, Yingying Chen, Bingke Zhu, Jinqiao Wang, Ming Tang, and Hanqing Lu. Tree hierarchical cnns for object parsing. In 2018 25th IEEE International Conference on Image Processing (ICIP), pages 1588-1592. IEEE, 2018.
+[46] Hengshuang Zhao, Jianping Shi, Xiaojuan Qi, Xiaogang Wang, and Jiaya Jia. Pyramid scene parsing network. In CVPR, 2017.
+[47] Bingke Zhu, Yingying Chen, Ming Tang, and Jinqiao Wang. Progressive cognitive human parsing. In AAAI, 2018.
\ No newline at end of file
diff --git a/partawarecontextnetworkforhumanparsing/images.zip b/partawarecontextnetworkforhumanparsing/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..cbfc8478f30dab75c3e464cce783f9bdec6387be
--- /dev/null
+++ b/partawarecontextnetworkforhumanparsing/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ab675ed74795060bc417c641f6dd886aa8fe38cbc1b8c5cc7f94c983524dc973
+size 486992
diff --git a/partawarecontextnetworkforhumanparsing/layout.json b/partawarecontextnetworkforhumanparsing/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..61b77f646261a6de6207913a61fb23c84b02076d
--- /dev/null
+++ b/partawarecontextnetworkforhumanparsing/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4656789abafd79e5f02138497a96c7389b6a2ebf7af37e2eab591573954a4383
+size 471626
diff --git a/partialweightadaptationforrobustdnninference/8f68a5c4-d0ea-4426-b415-89a55a2815d7_content_list.json b/partialweightadaptationforrobustdnninference/8f68a5c4-d0ea-4426-b415-89a55a2815d7_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..a32c4d1e707022402a645c112c35ebd4ff177b9b
--- /dev/null
+++ b/partialweightadaptationforrobustdnninference/8f68a5c4-d0ea-4426-b415-89a55a2815d7_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:379209528900a6db9a9cfaf06b134c778d09cbafb1d4715bc701bf56ff5d1346
+size 71925
diff --git a/partialweightadaptationforrobustdnninference/8f68a5c4-d0ea-4426-b415-89a55a2815d7_model.json b/partialweightadaptationforrobustdnninference/8f68a5c4-d0ea-4426-b415-89a55a2815d7_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..ba875541b6fd27a5feacc00a17362063371b3145
--- /dev/null
+++ b/partialweightadaptationforrobustdnninference/8f68a5c4-d0ea-4426-b415-89a55a2815d7_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:40be374170b5d35f09071ebe797fa2d10df85ce9b5fb2d684eb7ffde9297f30e
+size 87881
diff --git a/partialweightadaptationforrobustdnninference/8f68a5c4-d0ea-4426-b415-89a55a2815d7_origin.pdf b/partialweightadaptationforrobustdnninference/8f68a5c4-d0ea-4426-b415-89a55a2815d7_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..6699ccd83b6292fc9301735ee5bb1ccb4858c141
--- /dev/null
+++ b/partialweightadaptationforrobustdnninference/8f68a5c4-d0ea-4426-b415-89a55a2815d7_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3a90a616a13012c30f7a06bccc501a149ee4e4c58ae6cfb196c4a36a01940a6e
+size 836029
diff --git a/partialweightadaptationforrobustdnninference/full.md b/partialweightadaptationforrobustdnninference/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..e2e1a8c78ffc53c0ce8bbf1889052ef05aba33d9
--- /dev/null
+++ b/partialweightadaptationforrobustdnninference/full.md
@@ -0,0 +1,324 @@
+# Partial Weight Adaptation for Robust DNN Inference
+
+Xiufeng Xie
+Hewlett Packard Labs
+xiufeng.xie@hpe.com
+
+Kyu-Han Kim Hewlett Packard Labs kyu-han.kim@hpe.com
+
+# Abstract
+
+Mainstream video analytics uses a pre-trained DNN model with an assumption that inference input and training data follow the same probability distribution. However, this assumption does not always hold in the wild: autonomous vehicles may capture video with varying brightness; unstable wireless bandwidth calls for adaptive bitrate streaming of video; and, inference servers may serve inputs from heterogeneous IoT devices/c Cameras. In such situations, the level of input distortion changes rapidly, thus reshaping the probability distribution of the input.
+
+We present GearNN, an adaptive inference architecture that accommodates DNN inputs with varying distortions. GearNN employs an optimization algorithm to identify a tiny set of "distortion-sensitive" DNN parameters, given a memory budget. Based on the distortion level of the input, GearNN then adapts only the distortion-sensitive parameters, while reusing the rest of DNN parameters across all input qualities. In our evaluation of DNN inference with dynamic input distortions, GearNN improves the accuracy (mIoU) by an average of $18.12\%$ over a DNN trained with the undistorted dataset and $4.84\%$ over stability training from Google, with only $1.8\%$ extra memory overhead.
+
+# 1. Introduction
+
+Video analytics solutions typically use a DNN with pretrained weights for inference, assuming consistent probability distribution between the training and test dataset. Unfortunately, the inputs to DNN inference might have various distortions that alter the probability distribution and harm DNN performance in practice. An autonomous vehicle may drive in and out of shades, causing abrupt brightness change in the captured video; a drone may change a compression ratio of video frames while streaming to the inference server based on wireless link bandwidth; edge servers may need to process data from IoT devices with heterogeneous camera hardware and compression strategies. In these scenarios of input distortions with high dynamic range, existing solutions that rely on a DNN with constant pre-trained weights
+
+
+Figure 1: GearNN, an adaptive inference architecture (This is a simplified illustration, DNN layers in the adaptor and those in the base can be interleaved with each other).
+
+suffer from severe accuracy loss [23]. We observe up to a $58\%$ accuracy loss in our experiments (§5).
+
+One workaround to handle input with unstable distortion level is to train a DNN for each possible distortion level by augmenting the training data to match that particular distortion level, and then switch between them following the distortion level of the current input. However, there are enormous distortion levels (e.g., JPEG has 100 quality levels), concurrently running so many DNNs is infeasible, due to limited memory. Swapping DNNs between disk and memory causes huge latency, and thus, is impractical.
+
+This paper proposes GearNN, an adaptive DNN inference architecture to accommodate real-world inputs with various distortions, without sacrificing memory efficiency. GearNN only adapts a tiny portion (e.g., $0.2\%$ of the DNN size in §4) of the DNN weights that are "distortion sensitive" (called adaptor) to fit the distortion level of the instantaneous input, while reusing the majority of weights (called base) across all inputs. In this way, the adaptation leads to high inference accuracy, while reusing most weights guarantees memory efficiency and scalability. We name our design GearNN: like the gearbox that helps one engine handle different car speeds, GearNN helps a single DNN base to accommodate a wide range of input distortions.
+
+The GearNN workflow can be summarized as follows:
+
+(i) Identifying distortion-sensitive weights offline. Given a DNN pre-trained with undistorted training dataset,
+
+GearNN first fine-tunes this DNN to multiple versions, each with training data of a particular distortion level. Next, by comparing the original DNN and the fine-tuned versions, GearNN runs an optimization problem (§3.2.2) to identify a set of distortion-sensitive DNN weights, under a constraint of additional memory budget.
+
+(ii) Partial DNN fine-tuning offline. GearNN then partially fine-tunes the DNN for each pre-defined distortion level, by only updating the distortion-sensitive weights (i.e., adaptor), while freezing the rest of the pre-trained DNN weights (i.e., base). This step yields multiple adaptors, each for a particular distortion level.
+(iii) Partial DNN adaptation online. With multiple finetuned small adaptors and a single copy of the base loaded in memory, GearNN switches between the adaptors, following a current input distortion level (like compression level), while reusing the base across all possible inputs.
+
+We have prototyped GearNN on top of popular DNN models like DRN [21, 22] and Mask R-CNN [6] using PyTorch, and performed an extensive evaluation with semantic segmentation and detection tasks (§5). Our evaluation shows that GearNN enables robust DNN inference under various input distortion levels, while retaining memory efficiency. More specifically, GearNN achieves up to $18.12\%$ higher average inference accuracy over the original DNN trained with undistorted data. GearNN also outperforms other alternatives such as stability training from Google or fine-tuning a DNN using a dataset with mixed distortion levels, and it consumes only $1.8\%$ more memory over such single DNN solutions to accommodate 10 distortion levels. Meanwhile, compared to switching between multiple DNNs, GearNN reduces memory consumption by $88.7\%$ , while achieving a similar level of accuracy.
+
+Our contributions can be summarized as follows:
+
+- We propose GearNN, a general technique to improve the tolerance of DNN models to input distortions with high dynamic range, without compromising the memory efficiency. We validate GearNN over state-of-the-art DNNs, where it outperforms existing solutions.
+GearNN formulates an optimization problem that selects a tiny set of DNN weights to be adapted, under a given constraint of memory consumption.
+GearNN is the first to enable robust video analytics on adaptive bitrate (ABR) streaming, following the trend of modern video streaming.
+GearNN can quickly customize (only takes 4 training epochs in our prototype) any pre-trained DNN to fit the desired dynamic range of input distortion, offering flexibility in deployment.
+
+
+Figure 2: An adaptive DNN can better serve a wide dynamic range of input distortions than a constant DNN.
+
+# 2. Related Work
+
+Adaptive neural network. Existing work [1, 18] discusses adapting the neural network architecture based on the instantaneous input. However, these solutions focus only on accelerating the inference by early exit [1] or skipping convolution layers [18]. In contrast, GearNN aims to improve the DNN robustness under diverse & dynamic input distortions without compromising memory consumption. Besides, GearNN adapts DNN weight values, instead of network architecture, which guarantees fast adaptation and backward compatibility.
+
+Improve training for better robustness. Some existing work proposes to improve the training phase to make DNNs more robust to small input perturbations. Stability training [23] from Google uses a modified training architecture that flattens the input-output mapping in a small neighborhood of the input image. However, for perturbation with a broad range, it is difficult to flatten one input-output mapping, as shown in Fig. 2. Hence, stability training fails to tolerate various input distortions. On the other hand, GearNN processes the input with different distortion levels by using different input-output mappings, and thus, it is more tolerable under various input distortions.
+
+DNN pruning. DNN pruning [4, 11, 8] identifies and removes trivial neurons to reduce the model size and computational cost. This approach looks similar to our solution at first glance but is fundamentally different. GearNN focuses on the "distortion-sensitive" weights rather than the neurons that are important to the output. Some DNN weights can be insensitive to the input distortion but remain vital to the output. In other words, GearNN can reuse such weights across different input distortion levels, but the DNN cannot work correctly after pruning such weights. Besides, DNN pruning uses a pruned constant DNN for inference, while GearNN adapts (part of) DNN online during the inference.
+
+Transfer learning. Due to the high cost to build a large training dataset, transfer learning [12, 16, 20] is proposed to customize a pre-trained model on one task to fit another task. Although GearNN follows the principle of
+
+transfer learning - customizing the pre-trained model to fit another task of same input type but different distortion levels - it is drastically different from existing practice of transfer learning: (i) GearNN actively identifies the "distortion-sensitive" weights and only fine-tunes such weights. In contrast, typical transfer learning fine-tunes either only the fully-connected layer or all DNN weights. (ii) GearNN enables partial weight adaptation in runtime inference, whereas typical transfer learning still uses a pretrained DNN for inference.
+
+Adaptive bitrate Streaming. Adaptive bitrate (ABR) streaming quickly gains popularity in recent years [9, 13, 15]. By adapting the media stream quality in real-time following the dynamic network bandwidth, ABR streaming achieves both the high throughput and low latency. Unfortunately, existing DNN-based inference solutions mostly use a single DNN and fail to accommodate the dynamic quality levels on the ABR streams. In contrast, GearNN can adapt the DNN to accommodate dynamic streaming quality.
+
+# 3. GearNN: Partial weight adaptation
+
+In this section, we first analyze the effect of fine-tuning a DNN with distorted training data (§3.1), and then reveal our observation that the majority of DNN weights have minor changes after fine-tuning with distorted data (§3.2). Finally, we elaborate on the GearNN design, featuring partial DNN adaptation motivated by our observation (§3.3).
+
+# 3.1. What happens when fine-tuning a DNN?
+
+# 3.1.1 Frequency-domain features of visual distortions
+
+Since human eyes are insensitive to the high-frequency components (in the spatial-frequency domain) of the visual input, encoders like JPEG and H.264 compress such high-freq. components aggressively. Similarly, after reducing the image brightness, human eyes still perceive object outlines (low-freq. components), but not textures (high-freq. components). In other words, typical visual distortions in practice essentially add noise to the high-freq. components.
+
+# 3.1.2 DNN's frequency response after fine-tuning
+
+Inspired by human eyes' spatial frequency response, we measure DNNs' spatial frequency response to understand how DNNs respond to the noise caused by visual distortions (§3.1.1). As shown in Fig. 3, we prepend an Inverse Discrete Fourier Transform (IDCT) module to the typical DNN training framework, then the frequency components (DCT coefficients) of the input become the leaf nodes, and we can perform backward propagation to obtain the gradient of loss w.r.t. every input frequency component. A higher gradient amplitude of a frequency component indicates that the DNN is more sensitive to input noise on this frequency,
+
+
+Figure 3: Using the gradient of loss to model the DNN's freq.-domain perceptual sensitivity (frequency response).
+
+and we define the gradient map of all input frequency components as the DNN's frequency response [19].
+
+We then compare the frequency responses of the original DNN and the DNN fine-tuned with distorted training data. We repeat the comparison for 4 types of distortions: (i) H.264 compression with a quality (CRF) of 24; (ii) JPEG compression with a quality of 10; (iii) Underexposure with $10\%$ brightness of the original image; (iv) Data augmentation that mixes H.264 frames with different qualities (CRF from 15 to 24) in one training set. Fig. 4 shows the measured DNN frequency responses. We see that, compared to the original DNN, the DNNs fine-tuned with distorted training data become less sensitive to the high-frequency components in all tested cases, i.e., they learn to avoid looking at the noisy high-frequency components for better robustness.
+
+# 3.2. Distortion-sensitive DNN weights
+
+Fine-tuning a DNN is updating its weights to fit a new training set. In §3.1, we reveal that fine-tuning a DNN with a distorted dataset is equivalent to reshaping its frequency response so that it filters out the noise from the distortion. In this section, we dig further to understand which DNN weights play more critical roles than other ones in reshaping the frequency response. We define such important weights as "distortion-sensitive". It is worth noting that the "distortion-sensitivity" is different from the importance of neurons in DNN pruning. Some weights can be vital for the inference and should not be pruned. However, they can meanwhile be insensitive to the input distortion, i.e., their values do not change much after fine-tuning with distorted training data – there is no need to fine-tune them because the inference output is insensitive to the small changes of the DNN weights as shown in existing works [5, 3, 10].
+
+# 3.2.1 Modeling DNN weights' sensitivity to distortions
+
+We first fine-tune a pre-trained DNN $\mathcal{D}$ by using distorted training datasets, and compare the resulting weights with the original model. Let $K$ denote the number of layers in $\mathcal{D}$ , and $l_{i}$ denotes each layer, which contains $N_{i}$ weights, then we have $l_{i} = \{p_{i}^{1}, p_{i}^{2} \dots p_{i}^{N_{i}}\}$ . Let $p_{i}^{j}$ denote the $j$ -th weight of the layer $l_{i}$ in the original pre-trained DNN, and $f_{q}(\cdot)$ denotes the fine-tuning process with a certain distor
+
+
+
+
+
+
+
+
+
+
+
+
+Sensitivity difference: fine-tuned DNNs become less sensitive to noisy high-frequency bands
+
+
+Figure 4: Comparing the DCT spectral sensitivity (frequency response) of the original and fine-tuned DRN-D-38. We use different color palettes for the sensitivity in the 1st row and the sensitivity difference (can be negative) in the 2nd row.
+
+
+
+
+
+
+(a) DRN-D-38 fine-tuned CRF=23.
+H.264
+Figure 5: Per-layer average weight value change caused by fine-tuning.
+
+
+(b) Mask R-CNN $Q = 10$
+fine-tuned with JPEG
+
+
+(c) Mask R-CNN fine-tuned with relative brightness 0.2.
+
+tion level $q$ . Then, $f_{q}(p_{i}^{j})$ is the corresponding weight of the fine-tuned DNN, and we can compute the average change of weight values in layer $l_{i}$ , caused by fine-tuning, as:
+
+$$
+v _ {i} ^ {q} = \frac {1}{N _ {i}} \sum_ {j = 1} ^ {N _ {i}} \| p _ {i} ^ {j} - f _ {q} \left(p _ {i} ^ {j}\right) \| \tag {1}
+$$
+
+The layers with a high $v_{i}^{q}$ value yield significant change of weight values, when fine-tuned to fit the distortion level $q$ , which means they are sensitive to the distortion level. Therefore, we define $v_{i}^{q}$ as the distortion sensitivity of layer $l_{i}$ . Following Eq. (1), we measure the layer-level weight change caused by the fine-tuning for three cases: DRN-D-38 fine-tuned with H.264 of quality level (CRF) 23 in Fig 5a; Mask R-CNN fine-tuned with JPEG of quality level (Q) 10 in Fig 5b; and, Mask R-CNN fine-tuned with dimmed images of relative brightness 0.2 in Fig 5c.
+
+In Fig. 5a, the sum size of the DRN parameters (including both the weights & biases. We use the term "weights" to denote "DNN parameters including both weights & biases" elsewhere for simplicity) that changed more than $2 \times 10^{-4}$ after fine-tuning only accounts for $1.44\%$ of the model size. Similarly, only $0.08\%$ and $0.0058\%$ of the Mask R-CNN weights changed more than $2 \times 10^{-4}$ in Fig. 5b and Fig. 5c. We thus have a key observation: only a tiny portion of DNN
+
+weights have non-negligible changes (e.g., $>2 \times 10^{-4}$ ) after fine-tuning with distorted data. In order to fit DNN to the distorted inputs, we can reshape the frequency response of a DNN by changing such a tiny portion of DNN weights.
+
+# 3.2.2 Choosing subset of DNN weights to fine-tune
+
+Since only a tiny portion of DNN weights have nonnegligible changes after fine-tuning with distorted data, given a constraint on memory usage, GearNN can select and then fine-tune only these "distortion-sensitive" weights. We formulate this as a knapsack problem in Eq. (2), where the "cost" of layer $l_{i}$ is its parameter number $N_{i}$ and the "value" of layer $l_{i}$ is its distortion sensitivity defined in Eq. (1). More specifically, we need to select a list $S$ of DNN layers to maximize the total "value" (distortion sensitivity) $\sum_{i\in S}v_i^q$ , under the constraint that the total "cost" (memory usage) $\sum_{i\in S}N_{i}$ is within a user-defined bound $M$ .
+
+$$
+\max _ {S} \sum_ {\boldsymbol {i} \in S} v _ {i} ^ {q}
+$$
+
+$$
+\text {s . t .} \quad \sum_ {\boldsymbol {i} \in S} N _ {i} \leq M \tag {2}
+$$
+
+After obtaining the optimal list $S$ of layers, we fine-tune the corresponding DNN portion $\mathcal{A}_q = \{l_i : i \in S\}$ (we call it
+
+
+Figure 6: Partial fine-tuning for DRN.
+
+
+Figure 7: Partial fine-tuning for Mask R-CNN.
+
+the adaptor) with the dataset of quality $q$ while keeping the rest of the DNN (we call it the base $\mathcal{B}_q = \mathcal{D} \setminus \mathcal{A}_q$ ) frozen. We denote this partial fine-tuning step as $\mathcal{A}_q^* = f_q(\mathcal{A}_q)$ .
+
+# 3.2.3 Frequency response of partially fine-tuned DNN
+
+We further compare the frequency responses of both partially and fully fine-tuned DNNs to understand the effect of partial fine-tuning. Our experiments include two models: DRN-D-38 with $0.2\%$ of weights fine-tuned (in Fig. 6) and Mask R-CNN with $0.8\%$ of weights fine-tuned (in Fig. 7). By comparing Fig. 6b and 6c, we observe that fine-tuning the entire DRN and fine-tuning only $0.2\%$ of the DRN weights with the same distorted dataset yield DNNs with close frequency responses – Both avoid looking at the noisy high-frequency components, compared to the original one in Fig. 6a. We have a similar observation from Fig. 7.
+
+# 3.3. GearNN workflow
+
+Based on the algorithm in §3.2, we design GearNN, a robust inference architecture that adapts only a small portion of the DNN, following the instantaneous input distortion.
+
+Splitting the DNN (offline). The first step is to split the DNN into two parts - the adaptor to be changed in real-time following the input distortion level and the base that remains constant. The splitting follows §3.2.2: For each distortion level $q$ , GearNN fine-tunes the entire DNN using distorted training data and compares the result with the original DNN, to obtain the distortion-sensitivity metric $v_{i}^{q}$ of every DNN layer. Then, by solving the optimization problem in Eq. (2), GearNN picks a subset of layers to fine-tune, which is the adaptor $\mathcal{A}_q$ for distortion level $q$ .
+
+Partial fine-tuning (offline). GearNN then fine-tunes the adaptors, each using a dataset distorted to a particular
+
+# Algorithm 1 DNN splitting & partial fine-tuning (Offline).
+
+Input: $\mathcal{Q} = \{q_1,\dots ,q_N\}$ -Supported distortion levels $\mathcal{D}$ -Pre-trained DNN of $K$ layers, each having size $N_{k}$ $M$ Size constraint of each adaptor
+
+Output: $A^q$ - Fine-tuned subset of DNN layers (adaptor)
+
+1: for all $q \in \mathcal{Q}$ do
+
+2: Fine-tune $\mathcal{D}_q^* = f_q(\mathcal{D})$ with the data of distortion level $q$
+3: Compute $v_{i}^{q} = \frac{1}{N_{i}}\sum_{j = 1}^{N_{i}}\| p_{i}^{j} - f_{q}(p_{i}^{j})\|$ for each $l_{i}\in \mathcal{D}$
+4: Obtain "values" list $\pmb{v}^{q} = \{v_{1}^{q},\dots,v_{K}^{q}\}$ using Eq. (1)
+5: Obtain "costs" list $\pmb{n} = \{N_1, \dots, N_K\}$
+6: $S = \text{knapsack(value} = \mathbf{v}^q, \text{cost} = \mathbf{n}, \text{bound} = M)$
+7: The subset of layers to fine-tune is $\mathcal{A}_q = \{\pmb {l}_i:i\in S\}$
+8: Fine-tune $\mathcal{A}_q^* = f_q(\mathcal{A}_q)$ with data of distortion level $q$
+
+
+Figure 8: Partial weight fine-tuning workflow.
+
+level (the original dataset before distortion is the same as the one used in the DNN splitting step), while freezing the base, as illustrated in Fig. 8. In this way, GearNN obtains multiple fine-tuned adaptors $\mathcal{A}_q^*$ , each fitting a particular input distortion level. Alg. 1 summarizes the above steps.
+
+Partial adaptation (online) With the fine-tuned adaptors and the base, we can run GearNN online. Since the size of adaptors is tiny, an inference server can load multiple adaptors for all supported distorted levels at low memory cost. Next, given a visual input stream with various distortion levels (e.g., ABR streaming or receiving from heterogeneous IoT hardware), GearNN switches between the adaptors to fit the instantaneous input distortion level, while keeping the base weights unchanged, as shown in Fig. 1. It is straightforward to get the distortion level of the instantaneous input frame. For JPEG images, the quality information is embedded in the image; For DASH video streaming, the frame resolution is directly available; For the brightness levels, we can compute the brightness of an image based on its pixel values. Overall, GearNN can quickly determine which adaptor to use for the current input frame, enabling the real-time adaptation.
+
+Why adapting at the layer-level? Adapting a subset of DNN weights requires not only their new values but also their positions in the model. For example, we can use a 0-1 vector to mark every weight (1 means do adaption and 0 means otherwise), then a DNN with millions of weights needs an extremely long vector, causing huge overhead. In contrast, labeling the DNN layers incurs tiny overhead since DNNs typically have up to hundreds of layers.
+
+
+Figure 9: Implementation of GearNN and benchmarks. Modules in blue are active when processing an input instance, while modules in black are overhead.
+
+# 4. Implementation
+
+# 4.1. DNN-related configurations
+
+We implement GearNN using PyTorch [14]. Since GearNN is designed as a generic inference architecture, we use two popular DNN models for its implementation: the dilated residual networks (DRN) [21, 22] and the Mask R-CNN model [7]. Also, we run DRN on the Cityscapes dataset [2] for urban driving scenery semantic segmentation and Mask R-CNN on the Penn-Fudan dataset [17] for pedestrian segmentation and detection. Our implementation uses a small learning rate of 0.001 and runs only 4 epochs when fine-tuning the adaptor as it only slightly updates the original DNN trained with the undistorted dataset.
+
+Since GearNN allows a user to specify memory constraint, we evaluated GearNN with various adaptor sizes, ranging from $0.1\%$ to $1\%$ of the original DNN size, and our empirical results suggest that the adaptor with $0.2\%$ of the original DRN size or $0.4\%$ of the Mask R-CNN size best balance the inference accuracy and memory consumption.
+
+# 4.2. Benchmark solutions
+
+For benchmarks, we use 4 alternatives (also in Fig. 9):
+
+Original DNN. The original DNN is a DNN pre-trained with the original undistorted dataset and is available in public. In our implementation, we download and use original DNN models from public links provided by their authors.
+
+DNN switching. A straightforward solution to accommodate DNN inputs with various distortions is to train and use multiple DNNs, each for a particular distortion level.
+
+Mixed training. A common technique to make DNN robust is to use perturbed images, via data augmentation, for training. We transform the original datasets to multiple versions, each for a particular distortion level, and then randomly sample from these distorted datasets to form a new dataset with mixed distortions. Finally, we fine-tune the DNN with the mixed dataset.
+
+Stability training. Google proposed stability training [23] to improve the robustness of a DNN against noisy inputs. This solution forces a DNN to map inputs with small perturbations to their original input images to achieve the
+
+same inference output. Stability training only improves the training phase, and the inference still uses a constant DNN.
+
+# 4.3. Distortion types
+
+We now define input distortion types used in GearNN.
+
+Resolution scaling. One primary motivation of GearNN is to make video analytics fit adaptive bitrate (ABR) video streaming, and the standard way of ABR streaming is to adapt the video resolution like MPEG-DASH [15]. Downscaling the video dimension reduces its size and causes distortions. We use H.264 encoder to compress the Cityscapes dataset of original resolution $\{2048 \times 1024\}$ to 6 different versions with smaller resolutions: $\{1920 \times 960, 1600 \times 800, 1280 \times 640, 1024 \times 512, 800 \times 400, 512 \times 256\}$ . All these frames share a constant rate factor (CRF) of 18, meaning small quantization loss.
+
+JPEG compression. The quality of a JPEG image is defined by an integer value $Q$ , ranging from 1 to 100, and a higher $Q$ indicates higher image quality and less distortion. We compress a lossless PNG-formatted dataset (like Cityscapes) to 10 different versions with JPEG quality levels, ranging from 10 to 100 in a step of 10, while keeping the same resolution as the undistorted dataset.
+
+Brightness. A too bright or too dark visual input can significantly affect the DNN inference performance. We adjust the image brightness by Pillow to make multiple versions of the same dataset, each having a particular relative brightness to the original dataset. Our implementation includes relative brightness levels from 0.1 (10% of the original brightness) to 2.0 (double the original brightness), with the resolution unchanged.
+
+GearNN tackles distorted inputs by fine-tuning adaptors for each resolution, compression level, brightness, or even combinations of them. In §5, we evaluate different distortion types separately to show the impact of each type.
+
+# 5. Experiments
+
+We now present experimental results under different distortion types, datasets, tasks, and benchmarks.
+
+# 5.1. JPEG quality level
+
+In practical scenarios where a server (at edge or cloud) processes images from remote IoT devices, the inference engine at the server may encounter various quality levels of JPEG images as JPEG is the dominant image compression standard. In this context, we evaluate GearNN with inputs of various JPEG quality levels. We use the Cityscapes dataset, and build GearNN over DRN-D-22, a smaller DRN model than the one in §5.2, to show it is not limited to a particular model. Following §4.3, we convert the dataset to 10 versions with different JPEG quality levels and set the adaptor size as $0.2\%$ of the model size (§4.1), then the memory overhead is $0.2\% \times (10 - 1) = 1.8\%$ over the original DNN.
+
+
+(a) Different JPEG qualities.
+
+
+(b) Different resolutions.
+
+
+(c) Different brightness.
+Figure 10: GearNN can accommodate various input distortion levels.
+
+Table 1: Memory overhead.
+
+ | 10 of JPEG qualities (DRN-D-22) | 7 of H.264 resolutions (DRN-D-38) |
| Params | Overhead vs. original | Params | Overhead vs. original |
| GearNN | 16,193,465 | 1.8% | 26,334,993 | 1.2% |
| Original DNN | 15,907,139 | 0% | 26,022,723 | 0% |
| Stability training | 15,907,139 | 0% | 26,022,723 | 0% |
| Mixed training | 15,907,139 | 0% | 26,022,723 | 0% |
| DNN switching | 159,071,390 | 900% | 182,159,061 | 600% |
+
+The result in Fig. 10a confirms the high inference accuracy of GearNN on all JPEG quality levels. In contrast, original DNN suffers from significant accuracy degradation at low quality, and its mIoU falls below $40\%$ for quality under 50. Mixed training also achieves lower accuracy than GearNN does, especially on inputs with high & low qualities, because it attempts to map different distorted versions of an image to the same inference output, which is difficult for a single DNN (Fig. 2). DNN switching yields accuracy similar to GearNN's, but at the cost of much higher memory cost (Table 1), as it needs to keep multiple DNNs in the memory. When each quality level has the same probability of appearing in the input, GearNN achieves $18.12\%$ average accuracy gain over the original DNN and $1.95\%$ gain over the mixed training. The accuracy difference with the memory-hungry DNN switching is only $0.22\%$ .
+
+# 5.2. H.264 video resolution
+
+We then evaluate how GearNN guarantees high inference accuracy across dynamic input video resolutions, by using the Cityscapes dataset, DRN-D-38 model, and the frame scaling with 7 resolution levels as distortions (§4.3). We set the adaptor size to $0.2\%$ of the model size (§4.1), then the memory overhead is $0.2\% \times (7 - 1) = 1.2\%$ over the original DNN. From the results in Fig. 10b, we see that both GearNN and DNN switching outperform the original DNN and mixed training significantly, with around $4\%$ higher accuracy (mIoU) under resolutions lower than $1024^{1}$ .
+
+Despite the similar accuracy of GearNN and DNN switching, GearNN only costs a $1.2\%$ memory overhead over the original DNN (Table 1), while DNN switching requires keeping multiple DNNs in the memory and thus suffers from a high memory overhead. When each input resolution has an equal chance to appear, GearNN achieves $2.88\%$ higher average accuracy over the original DNN, $1.70\%$ over the mixed training, and $0.71\%$ over DNN switching.
+
+# 5.3. Brightness level
+
+Another application scenario of GearNN is autonomous driving, where the camera can capture video frames with diverse brightness levels. In such a scenario, abrupt brightness change may cause even human eyes to malfunction temporarily. In this experiment, we reveal that the DNN-based computer vision also suffers from the same problem, and GearNN can address this by partially adapting the DNN to the brightness changes. Following §4.3, we alter the brightness of the datasets and use the DNR-D-38 model.
+
+From Fig. 10c, we see the same performance ranking of tested solutions under various brightness levels - GearNN and DNN switching achieve comparable accuracy, while mixed training suffers significant accuracy loss on high or low input brightness. Next, the original DNN has the worst performance on all brightness levels. Overall, considering the 20 brightness levels from 0.1 to 2.0, GearNN costs merely $0.2\% \times 20 = 4\%$ memory overhead, compared to the original DNN, while DNN switching costs $1900\%$ extra memory, rendering it impractical. If all brightness levels have the same chance of appearing in the input, GearNN achieves $5.11\%$ higher average accuracy than the original DNN, $1.11\%$ than the mixed training, and a slight $0.05\%$ accuracy difference from DNN switching.
+
+# 5.4. Different datasets and tasks
+
+To demonstrate that GearNN is not bounded to a particular model or dataset, we run GearNN on pedestrian detection and segmentation with the Penn-Fudan dataset. We use
+
+
+Figure 11: GearNN based on Mask R-CNN (semantic segmentation).
+
+
+Figure 12: GearNN based on Mask R-CNN (bounding box detection)
+
+
+Figure 13: GearNN vs. stability training with various configurations.
+
+Mask R-CNN with ResNet-50 as the backbone and perform both the segmentation and bounding box detection of the pedestrians. Our GearNN prototype runs on top of the Mask R-CNN model and supports 10 JPEG input quality levels (§4.3), for both pedestrian segmentation (Fig. 11) and bounding box detection (Fig. 12). Since we set the adaptor size to $0.4\%$ of the model size (§4.1), the memory overhead is $0.4\% \times (10 - 1) = 3.6\%$ over the original DNN.
+
+From the segmentation results in Fig. 11, we first see that the original DNN and mixed training suffer from severe accuracy loss when the input quality is below 20. GearNN has similar accuracy to DNN switching, as in all other experiments. As the input quality increases, the accuracy of the original DNN and mixed training remain below GearNN's. But the gap is smaller than that of the Cityscapes dataset because the PennFudan dataset has a lower resolution than Cityscapes, and semantic segmentation on the lower-resolution dataset is simpler and more robust to input distortions. In Fig. 12, we further plot the bounding box detection accuracy measured from the same set of experiments. The results show that GearNN always achieves higher accuracy than the original DNN and mixed training, especially at low input qualities. Meanwhile, it achieves similar accuracy, while maintaining much lower memory overhead than DNN switching.
+
+Overall, if all JPEG quality levels have the same probability to appear in the input, GearNN achieves $5.16\%$ (segmentation) / $3.53\%$ (detection) higher average accuracy than the original DNN, $1.20\%$ (segmentation) / $1.33\%$ (detection) higher than the mixed training, and a small $0.43\%$ (segmentation) / $0.24\%$ (detection) accuracy difference from the memory-hungry DNN switching.
+
+# 5.5. Comparison with stability training
+
+There are only a few existing solutions in improving the DNN robustness to distorted/perturbed inputs. One of the most well-known works is the stability training proposed by Google. Therefore, we perform an extensive performance comparison against stability training under various configurations. In particular, we implement both GearNN and stability training based on the DRN-D-38 model and
+
+evaluate them on the Cityscapes dataset compressed by the H.264 encoder. For stability training, there are two configurable parameters: (i) $\alpha$ controls the tradeoff between the stability and the accuracy on undistorted inputs, and (ii) $\sigma$ controls the tolerance to distortions. We test multiple combinations of $\alpha$ and $\sigma$ , then show the results in Fig. 13.
+
+We first observe that GearNN outperforms all tested combinations of $\alpha$ and $\sigma$ at any input distortion level. We also see that $\alpha$ and $\sigma$ control the performance of stability training as expected. Overall, a higher $\alpha$ or $\sigma$ leads to better tolerance to distortions. It essentially sacrifices the performance on the low-distortion inputs to improve the performance on the high-distortion inputs, so that the overall performance is balanced. Compared to the stability training configuration with the highest accuracy when $\alpha = 2$ and $\sigma = 0.1$ , GearNN achieves $4.84\%$ average accuracy gain, while the highest accuracy gain is $7.15\%$ at the CRF of 24 and $3.18\%$ at the CRF of 15. In sum, stability training uses a single DNN to fit a wide range of distortions, and thus it has to tradeoff performance across different distortion levels. In contrast, GearNN partially adapts the weights to fit the current input distortion level, which guarantees its high accuracy and low memory overhead.
+
+# 6. Conclusion
+
+In this paper, we present GearNN, a memory-efficient adaptive DNN inference architecture, to combat the various DNN input distortions. GearNN enables robust inference under a broad range of input distortions, without compromising memory consumption. It identifies and adapts only the distortion-sensitive DNN parameters, a tiny portion of the DNN (e.g., $0.2\%$ of the total size), following the instantaneous input distortion level. Our evaluation demonstrates the superior performance of GearNN over benchmark solutions such as stability training from Google, when the distortion level of input varies due to adaptive video resolution, JPEG compression, or brightness change. As a general inference architecture, GearNN can be potentially applied to many existing DNN models and enables them to accommodate the various DNN input distortions in the IoT era.
+
+# References
+
+[1] Tolga Bolukbasi, Joseph Wang, Ofer Dekel, and Venkatesh Saligrama. Adaptive neural networks for efficient inference. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, 2017. 2
+[2] 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 (CVPR), 2016. 6
+[3] Gunhan Dundar and Kenneth Rose. The effects of quantization on multilayer neural networks. IEEE Transactions on Neural Networks, 1995. 3
+[4] Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. arXiv preprint arXiv:1510.00149, 2015. 2
+[5] Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. arXiv preprint arXiv:1510.00149, 2015. 3
+[6] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross Girshick. Mask r-cnn. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2017. 2
+[7] 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
+[8] Yihui He, Xiangyu Zhang, and Jian Sun. Channel pruning for accelerating very deep neural networks. In Proceedings of the IEEE International Conference on Computer Vision, pages 1389-1397, 2017. 2
+[9] Te-Yuan Huang, Ramesh Johari, Nick McKeown, Matthew Trunnell, and Mark Watson. A buffer-based approach to rate adaptation: Evidence from a large video streaming service. In ACM SIGCOMM Computer Communication Review. ACM, 2014. 3
+[10] Itay Hubara, Matthieu Courbariaux, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Quantized neural networks: Training neural networks with low precision weights and activations. The Journal of Machine Learning Research, 2017. 3
+[11] Ehud D Karnin. A simple procedure for pruning backpropagation trained neural networks. IEEE transactions on neural networks, 1990. 2
+[12] Sinno Jialin Pan and Qiang Yang. A survey on transfer learning. IEEE Transactions on knowledge and data engineering, 2009. 2
+[13] Roger Pantos and William May. Http live streaming. Rfc, 2017. 3
+[14] 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
+[15] Iraj Sodagar. Thempeg-dash standard for multimedia streaming over the internet. IEEE Multimedia, 2011. 3, 6
+
+[16] Lisa Torrey and Jude Shavlik. Transfer learning. In Handbook of research on machine learning applications and trends: algorithms, methods, and techniques. IGI Global, 2010. 2
+[17] Liming Wang, Jianbo Shi, Gang Song, and I-fan Shen. Object detection combining recognition and segmentation. In Asian Conference on Computer Vision, pages 189-199. Springer, 2007. 6
+[18] 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), 2018. 2
+[19] Xiufeng Xie and Kyu-Han Kim. Source compression with bounded dnn perception loss for iot edge computer vision. In The 25th Annual International Conference on Mobile Computing and Networking (MobiCom), 2019. 3
+[20] Jason Yosinski, Jeff Clune, Yoshua Bengio, and Hod Lipson. How transferable are features in deep neural networks? In Advances in neural information processing systems, 2014. 2
+[21] Fisher Yu and Vladlen Koltun. Multi-scale context aggregation by dilated convolutions. In International Conference on Learning Representations (ICLR), 2016. 2, 6
+[22] Fisher Yu, Vladlen Koltun, and Thomas Funkhouser. Dilated residual networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 2, 6
+[23] Stephan Zheng, Yang Song, Thomas Leung, and Ian Goodfellow. Improving the robustness of deep neural networks via stability training. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. 1, 2, 6
\ No newline at end of file
diff --git a/partialweightadaptationforrobustdnninference/images.zip b/partialweightadaptationforrobustdnninference/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..82725a76d83129ab4701482283478f45a938f8bc
--- /dev/null
+++ b/partialweightadaptationforrobustdnninference/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:01cc8ee8b196a1409ddfec99a3183e3ec83dc36419f987b5116294b952387284
+size 524377
diff --git a/partialweightadaptationforrobustdnninference/layout.json b/partialweightadaptationforrobustdnninference/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..bb73ffd6dff215b7dc99d66d7ac2f5b067866e45
--- /dev/null
+++ b/partialweightadaptationforrobustdnninference/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:840b30ff2e1ddd4057bcee7b161c3f5db72816110975d3f3a7531ace5efc6d2a
+size 405954
diff --git a/pastanettowardhumanactivityknowledgeengine/3b18e5cb-1ad7-4a41-acc8-fd5cd6a101dd_content_list.json b/pastanettowardhumanactivityknowledgeengine/3b18e5cb-1ad7-4a41-acc8-fd5cd6a101dd_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..1c99a246e10144d04284e03437f1c3031573026e
--- /dev/null
+++ b/pastanettowardhumanactivityknowledgeengine/3b18e5cb-1ad7-4a41-acc8-fd5cd6a101dd_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1ef481a6f1d4e8013dbf68ae4b3d7cf75e3793dbe4d0241d21e3eb07491b0184
+size 80690
diff --git a/pastanettowardhumanactivityknowledgeengine/3b18e5cb-1ad7-4a41-acc8-fd5cd6a101dd_model.json b/pastanettowardhumanactivityknowledgeengine/3b18e5cb-1ad7-4a41-acc8-fd5cd6a101dd_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..bf9e016c93b25238bfc9435a3e66839cc0139df9
--- /dev/null
+++ b/pastanettowardhumanactivityknowledgeengine/3b18e5cb-1ad7-4a41-acc8-fd5cd6a101dd_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:52478829dda19424b0e9a93fbe3657c9785542105791430567c949139d600c87
+size 101403
diff --git a/pastanettowardhumanactivityknowledgeengine/3b18e5cb-1ad7-4a41-acc8-fd5cd6a101dd_origin.pdf b/pastanettowardhumanactivityknowledgeengine/3b18e5cb-1ad7-4a41-acc8-fd5cd6a101dd_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..4994735578ef5c798f3fb6ddb33756b9c37d6235
--- /dev/null
+++ b/pastanettowardhumanactivityknowledgeengine/3b18e5cb-1ad7-4a41-acc8-fd5cd6a101dd_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:90c52a8fa181fa6e44aa824717fa8b4930faef0eb4ee3c6532bb3f75b4634cdd
+size 1954632
diff --git a/pastanettowardhumanactivityknowledgeengine/full.md b/pastanettowardhumanactivityknowledgeengine/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..ba6501132a0c9b8c80c1d29f03af9d289b471b1f
--- /dev/null
+++ b/pastanettowardhumanactivityknowledgeengine/full.md
@@ -0,0 +1,308 @@
+# PaStaNet: Toward Human Activity Knowledge Engine
+
+Yong-Lu Li, Liang Xu, Xinpeng Liu, Xijie Huang, Yue Xu, Shiyi Wang, Hao-Shu Fang, Ze Ma, Mingyang Chen, Cewu Lu* Shanghai Jiao Tong University
+
+{yonglu_li, liangxu, otaku_huang, silicxuyue, shiywang}@sjtu.edu.cn, {xinpengliu0907, fhaoshu}@gmail.com, {maze1234556, cmy_123, lucewu}@sjtu.edu.cn
+
+# Abstract
+
+Existing image-based activity understanding methods mainly adopt direct mapping, i.e. from image to activity concepts, which may encounter performance bottleneck since the huge gap. In light of this, we propose a new path: infer human part states first and then reason out the activities based on part-level semantics. Human Body Part States (PaSta) are fine-grained action semantic tokens, e.g. , which can compose the activities and help us step toward human activity knowledge engine. To fully utilize the power of PaSta, we build a large-scale knowledge base PaStaNet, which contains $7M + PaSta$ annotations. And two corresponding models are proposed: first, we design a model named Activity2Vec to extract PaSta features, which aim to be general representations for various activities. Second, we use a PaSta-based Reasoning method to infer activities. Promoted by PaStaNet, our method achieves significant improvements, e.g. 6.4 and 13.9 mAP on full and one-shot sets of HICO in supervised learning, and 3.2 and 4.2 mAP on V-COCO and images-based AVA in transfer learning. Code and data are available at http://hake-mvig.cn/.
+
+# 1. Introduction
+
+Understanding activity from images is crucial for building an intelligent system. Facilitated by deep learning, great advancements have been made in this field. Recent works [7, 64, 61, 40] mainly address this high-level cognition task in one-stage, i.e. from pixels to activity concept directly based on instance-level semantics (Fig. 1(a)). This strategy faces performance bottleneck on large-scale benchmarks [3, 24]. Understanding activities is difficult for reasons, e.g. long-tail data distribution, complex visual patterns, etc. Moreover, action understanding expects a knowledge engine that can generally support activity related tasks.
+
+
+Figure 1. Instance-level and hierarchical methods. Besides the instance-level path, we perform body part states recognition in part-level with the PaSta annotations. With the help of PaSta, we can significantly boost the performance of activity understanding.
+
+Thus, for data from another domain and unseen activities, much smaller effort is required for knowledge transfer and adaptation. Additionally, for most cases, we find that only a few key human parts are relevant to the existing actions, the other parts usually carry very few useful clues.
+
+Consider the example in Fig. 1, we argue that perception in human part-level semantics is a promising path but previously ignored. Our core idea is that human instance actions are composed of fine-grained atomic body part states. This lies in strong relationships with reductionism [10]. Moreover, the part-level path can help us to pick up discriminative parts and disregard irrelevant ones. Therefore, encoding knowledge from human parts is a crucial step toward human activity knowledge engine. The generic object part states [39] reveal that the semantic state of an object part is limited. For example, after exhaustively checking on $7M$ manually labeled body part state samples, we find that there are only about 12 states for "head" in daily life activities, such as "listen to", "eat", "talk to", "inspect", etc. Therefore, in this paper, we exhaustively collect and annotate the possible semantic meanings of human parts in activities to build a large-scale human part knowledge base PaStaNet (PaSta is the abbreviation of Body Part State). Now PaStaNet includes $118\mathrm{K}+$ images, $285\mathrm{K}+$ persons,
+
+250 K+ interacted objects, 724 K+ activities and 7 M+ human part states. Extensive analysis verifies that PaStaNet can cover most of the the part-level knowledge in general. Using learned PaSta knowledge in transfer learning, we can achieve 3.2, 4.2 and 3.2 improvements on V-COCO [25], images-based AVA [24] and HICO-DET [3] (Sec.5.4).
+
+Given PaStaNet, we propose two powerful tools to promote the image-based activity understanding: 1) Activity2Vec: With PaStaNet, we convert a human instance into a vector consisting of PaSta representations. Activity2Vec extracts part-level semantic representation via PaSta recognition and combines its language representation. Since PaSta encodes common knowledge of activities, Activity2Vec works as a general feature extractor for both seen and unseen activities. 2) PaSta-R: A Part State Based Reasoning method (PaSta-R) is further presented. We construct a Hierarchical Activity Graph consisting of human instance and part semantic representations, and infer the activities by combining both instance and part level sub-graph states.
+
+The advantages of our method are two-fold: 1) Reusability and Transferability: PaSta are basic components of actions, their relationship can be in analogy with the amino acid and protein, letter and word, etc. Hence, PaSta are reusable, e.g., ⟨hand, hold, something⟩ is shared by various actions like "hold horse" and "eat apple". Therefore, we get the capacity to describe and differentiate plenty of activities with a much smaller set of PaSta, i.e. one-time labeling and transferability. For few-shot learning, reusability can greatly alleviate its learning difficulty. Thus our approach shows significant improvements, e.g. we boost $13.9\mathrm{mAP}$ on one-shot sets of HICO [4]. 2) Interpretability: we obtain not only more powerful activity representations, but also better interpretation. When the model predicts what a person is doing, we can easily know the reasons: what the body parts are doing.
+
+In conclusion, we believe PaStaNet will function as a human activity knowledge engine. Our main contributions are: 1) We construct PaStaNet, the first large-scale activity knowledge base with fine-grained PaSta annotations. 2) We propose a novel method to extract part-level activity representation named Activity2Vec and a PaSta-based reasoning method. 3) In supervised and transfer learning, our method achieves significant improvements on large-scale activity benchmarks, e.g. 6.4 (16%), 5.6 (33%) mAP improvements on HICO [4] and HICO-DET [3] respectively.
+
+# 2. Related Works
+
+Activity Understanding. Benefited by deep learning and large-scale datasets, image-based [4, 25, 33, 1] or video-based [24, 45, 46, 2, 53, 50, 30] activity understanding has achieved huge improvements recently. Human activities have a hierarchical structure and include diverse verbs, so it is hard to define an explicit organization for their cate
+
+gories. Existing datasets [24, 4, 12, 25] often have a large difference in definition, thus transferring knowledge from one dataset to another is ineffective. Meanwhile, plenty of works have been proposed to address the activity understanding [7, 20, 11, 51, 16, 31, 56, 54]. There are holistic body-level approaches [55, 7], body part-based methods [20], and skeleton-based methods [57, 11], etc. But compared with other tasks such as object detection [49] or pose estimation [15], its performance is still limited.
+
+Human-Object Interaction. Human-Object Interaction (HOI) [4, 3] occupies the most of daily human activities. In terms of tasks, some works focus on image-based HOI recognition [4]. Furthermore, instance-based HOI detection [3, 25] needs to detect accurate positions of the humans and objects and classify interaction simultaneously. In terms of the information utilization, some works utilized holistic human body and pose [55, 64, 61, 40, 5], and global context is also proved to be effective [29, 63, 62, 7]. According to the learning paradigm, earlier works were often based on hand-crafted features [7, 29]. Benefited from large scale HOI datasets, recent approaches [20, 13, 22, 19, 41, 48, 17, 34] started to use deep neural networks to extract features and achieved great improvements.
+
+Body Part based Methods. Besides the instance pattern, some approaches studied to utilize part pattern [63, 13, 20, 11, 40, 65]. Gkioxari et al. [20] detects both the instance and parts and input them all into a classifier. Fang et al. [13] defines part pairs and encodes pair features to improve HOI recognition. Yao et al. [63] builds a graphical model and embed parts appearance as nodes, and use them with object feature and pose to predict the HOIs. Previous work mainly utilized the part appearance and location, but few studies tried to divide the instance actions into discrete part-level semantic tokens, and refer them as the basic components of activity concepts. In comparison, we aim at building human part semantics as reusable and transferable knowledge.
+
+Part States. Part state is proposed in [39]. By tokenizing the semantic space as a discrete set of part states, [39] constructs a sort of basic descriptors based on segmentation [26, 14, 60]. To exploit this cue, we divide the human body into natural parts and utilize their states as discretized part semantics to represent activities. In this paper, we focus on the part states of humans instead of daily objects.
+
+# 3. Constructing PaStaNet
+
+In this section, we introduce the construction of PaStaNet. PaStaNet seeks to explore the common knowledge of human PaSta as atomic elements to infer activities. PaSta Definition. We decompose human body into ten parts, namely head, two upper arms, two hands, hip, two thighs, two feet. Part states (PaSta) will be assigned to these parts. Each PaSta represents a description of the target part. For example, the PaSta of "hand" can be "hold something"
+
+or "push something", the PaSta of "head" can be "watch something", "eat something". After exhaustively reviewing collected $200\mathrm{K}+$ images, we found the descriptions of any human parts can be concluded into limited categories. That is, the PaSta category number of each part is limited. Especially, a person may have more than one action simultaneously, thus each part can have multiple PaSta, too.
+
+Data Collection. For generality, we collect human-centric activity images by crowdsourcing (30K images paired with rough activity label) as well as existing well-designed datasets [4, 3, 25, 33, 66, 36] (185K images), which are structured around a rich semantic ontology, diversity, and variability of activities. All their annotated persons and objects are extracted for our construction. Finally, we collect more than 200K images of diverse activity categories.
+
+Activity Labeling. Activity categories of PaStaNet are chosen according to the most common human daily activities, interactions with object and person. Referred to the hierarchical activity structure [12], common activities in existing datasets [4, 25, 66, 33, 24, 12, 1, 36] and crowdsourcing labels, we select 156 activities including human-object interactions and body motions from 118K images. According to them, we first clean and reorganize the annotated human and objects from existing datasets and crowdsourcing. Then, we annotate the active persons and the interacted objects in the rest of the images. Thus, PaStaNet includes all active human and object bounding boxes of 156 activities.
+
+Body Part Box. To locate the human parts, we use pose estimation [15] to obtain the joints of all annotated persons. Then we generate ten body part boxes following [13]. Estimation errors are addressed manually to ensure high-quality annotation. Each part box is centered with a joint, and the box size is pre-defined by scaling the distance between the joints of the neck and pelvis. A joint with confidence higher than 0.7 will be seen as visible. When not all joints can be detected, we use body knowledge-based rules. That is, if the neck or pelvis is invisible, we configure the part boxes according to other visible joint groups (head, main body, arms, legs), e.g., if only the upper body is visible, we set the size of the hand box to twice the pupil distance.
+
+PaSta Annotation. We carry out the annotation by crowdsourcing and receive 224,159 annotation uploads. The process is as follows: 1) First, we choose the PaSta categories considering the generalization. Based on the verbs of 156 activities, we choose 200 verbs from WordNet [44] as the PaSta candidates, e.g., "hold", "pick" for hands, "eat", "talk to" for head, etc. If a part does not have any active states, we depict it as "no_action". 2) Second, to find the most common PaSta that can work as the transferable activity knowledge, we invite 150 annotators from different backgrounds to annotate 10K images of 156 activities with PaSta candidates (Fig. 2). For example, given an activity "ride bicycle", they may describe
+
+
+Figure 2. PaSta annotation. Based on instance activity labels, we add fine-grained body part boxes and corresponding part states PaSta labels. In PaSta, we use "something" [39] to indicate the interacted object for generalization. The edge in Activity Parsing Tree indicates the statistical co-occurrence.
+
+it as \(\langle\) hip, sit_on, something \rangle, \(\langle\) hand, hold, something \rangle, \(\langle\) foot, setp_on, something \rangle, etc. 3) Based on their annotations, we use the Normalized Point-wise Mutual Information (NPMI) [6] to calculate the co-occurrence between activities and PaSta candidates. Finally, we choose 76 candidates with the highest NPMI values as the final PaSta. 4) Using the annotations of 10K images as seeds, we automatically generate the initial PaSta labels for all of the rest images. Thus the other 210 annotators only need to revise the annotations. 5) Considering that a person may have multiple actions, for each action, we annotate its corresponding ten PaSta respectively. Then we combine all sets of PaSta from all actions. Thus, a part can also have multiple states, e.g., in "eating while talking", the head has PaSta \(\langle\) head, eat, something \rangle, \(\langle\) head, talk_to, something \rangle\) and \(\langle\) head, look_at, something \rangle\) simultaneously. 6) To ensure quality, each image will be annotated twice and checked by automatic procedures and supervisors. We cluster all labels and discard the outliers to obtain robust agreements.
+
+Activity Parsing Tree. To illustrate the relationships between $PaSta$ and activities, we use their statistical correlations to construct a graph (Fig. 2): activities are root nodes, $PaSta$ are son nodes and edges are co-occurrence.
+
+Finally, PaStaNet includes 118K+ images, 285K+ persons, 250K+ interacted objects, 724K+ instance activities and 7M+ PaSta. Referred to well-designed datasets [24, 12, 4] and WordNet [44], PaSta can cover most part situations with good generalization. To verify that PaSta have encoded common part-level activity knowledge and can adapt to various activities, we adopt two experiments:
+
+Coverage Experiment. To verify that PaSta can cover most of the activities, we collect other 50K images out of PaStaNet. Those images contain diverse activities and
+
+many of them are unseen in PaStaNet. Another 100 volunteers from different backgrounds are invited to find human parts that can not be well described by our PaSta set. We found that only $2.3\%$ cases cannot find appropriate descriptions. This verifies that PaStaNet is general to activities.
+
+Recognition Experiment. First, we find that PaSta can be well learned. A shallow model trained with a part of PaStaNet can easily achieve about 55 mAP on PaSta recognition. Meanwhile, a deeper model can only achieve about 40 mAP on activity recognition with the same data and metric (Sec. 5.2). Second, we argue that PaSta can be well transferred. To verify this, we conduct transfer learning experiments (Sec. 5.4), i.e. first trains a model to learn the knowledge from PaStaNet, then use it to infer the activities of unseen datasets, even unseen activities. Results show that PaSta can be well transferred and boost the performance (4.2 mAP on image-based AVA). Thus it can be considered as the general part-level activity knowledge.
+
+# 4. Activity Representation by PaStaNet
+
+In this section, we discuss the activity representation by PaStaNet.
+
+Conventional Paradigm Given an image $I$ , conventional methods mainly use a direct mapping (Fig. 1(a)):
+
+$$
+\mathcal {S} _ {\text {i n s t}} = \mathcal {F} _ {\text {i n s t}} \left(I, b _ {h}, \mathcal {B} _ {o}\right) \tag {1}
+$$
+
+to infer the action score $S_{inst}$ with instance-level semantic representations $f_{inst}$ . $b_h$ is the human box and $\mathcal{B}_o = \{b_o^i\}_{i=1}^m$ are the $m$ interacted object boxes of this person.
+
+PaStaNet Paradigm. We propose a novel paradigm to utilize general part knowledge: 1) PaSta recognition and feature extraction for a person and an interacted object $b_{o}$ :
+
+$$
+f _ {P a S t a} = \mathcal {R} _ {A 2 V} (I, \mathcal {B} _ {p}, b _ {o}), \tag {2}
+$$
+
+where $\mathcal{B}_p = \{b_p^{(i)}\}_{i}^{10}$ are part boxes generated from the pose estimation [15] automatically following [13] (head, upper arms, hands, hip, thighs, feet). $\mathcal{R}_{A2V}(\cdot)$ indicates the Activity2Vec, which extracts ten PaSta representations $f_{PaSta} = \{f_{PaSta}^{(i)}\}_{i=1}^{10}$ . 2) PaSta-based Reasoning (PaSta-R), i.e., from PaSta to activity semantics:
+
+$$
+\mathcal {S} _ {\text {p a r t}} = \mathcal {F} _ {\text {P a S t a} - R} \left(f _ {\text {P a S t a}}, f _ {o}\right), \tag {3}
+$$
+
+where $\mathcal{F}_{PaSta - R}(\cdot)$ indicates the $PaSta - R$ , $f_{o}$ is the object feature. $S_{part}$ is the action score of the part-level path. If the person does not interact with any objects, we use the ROI pooling feature of the whole image as $f_{o}$ . For multiple object case, i.e., a person interacts with several objects, we process each human-object pair $(f_{PaSta}, f_{o}^{(i)})$ respectively and generate its Activity2Vec embedding.
+
+Following, we introduce the PaSta recognition in Sec. 4.1. Then, we discuss how to map human instance
+
+to semantic vector via Activity2Vec in Sec. 4.2. We believe it can be a general activity representation extractor. In Sec. 4.3, a hierarchical activity graph is proposed to largely advance activity related tasks by leveraging PaStaNet.
+
+# 4.1. Part State Recognition
+
+With the object and body part boxes $b_{o}, \mathcal{B}_{p}$ , we operate the PaSta recognition as shown in Fig. 3. In detail, a COCO [35] pre-trained Faster R-CNN [49] is used as the feature extractor. For each part, we concatenate the part feature $f_{p}^{(i)}$ from $b_{p}^{(i)}$ and object features $f_{o}$ from $b_{o}$ as inputs. For body only motion, we input the whole image feature $f_{c}$ as $f_{o}$ . All features will be first input to a Part Relevance Predictor. Part relevance represents how important a body part is to the action. For example, feet usually have weak correlations with "drink with cup". And in "eat apple", only hands and head are essential. These relevance/attention labels can be converted from PaSta labels directly, i.e. the attention label will be one, unless its PaSta label is "no_action", which means this part contributes nothing to the action inference. With the part attention labels as supervision, we use part relevance predictor consisting of FC layers and Sigmoids to infer the attentions $\{a_{i}\}_{i = 1}^{10}$ of each part. Formally, for a person and an interacted object:
+
+$$
+a _ {i} = \mathcal {P} _ {p a} \left(f _ {p} ^ {(i)}, f _ {o}\right), \tag {4}
+$$
+
+where $\mathcal{P}_{pa}(\cdot)$ is the part attention predictor. We compute cross-entropy loss $\mathcal{L}_{att}^{(i)}$ for each part and multiply $f_{p}^{(i)}$ with its scalar attention, i.e. $f_{p}^{(i)*} = f_{p}^{(i)}\times a_{i}$ .
+
+Second, we operate the $PaSta$ recognition. For each part, we concatenate the re-weighted $f_{p}^{(i)*}$ with $f_{o}$ , and input them into a max pooling layer and two subsequent 512 sized FC layers, thus obtain the $PaSta$ score $S_{PaSta}^{(i)}$ for the $i$ -th part. Because a part can have multiple states, e.g. head performs "eat" and "watch" simultaneously. Hence we use multiple Sigmoids to do this multi-label classification. With $PaSta$ labels, we construct cross-entropy loss $\mathcal{L}_{PaSta}^{(i)}$ . The total loss of $PaSta$ recognition is:
+
+$$
+\mathcal {L} _ {P a S t a} = \sum_ {i} ^ {1 0} \left(\mathcal {L} _ {P a S t a} ^ {(i)} + \mathcal {L} _ {a t t} ^ {(i)}\right). \tag {5}
+$$
+
+# 4.2. Activity2Vec
+
+In Sec. 3, we define the PaSta according to the most common activities. That is, choosing the part-level verbs which are most often used to compose and describe the activities by a large number of annotators. Therefore PaSta can be seen as the fundamental components of instance activities. Meanwhile, PaSta recognition can be well learned. Thus, we can operate PaSta recognition on PaStaNet to learn the powerful PaSta representations, which have good transferability. They can be used to reason out the instance actions
+
+
+Figure 3. The overview of Part States (PaSta) recognition and Activity2Vec.
+
+in both supervised and transfer learning. Under such circumstance, PaStaNet works like the ImageNet [8]. And PaStaNet pre-trained Activity2Vec functions as a knowledge engine and transfers the knowledge to other tasks.
+
+Visual PaSta feature. First, we extract visual PaSta representations from PaSta recognition. Specifically, we extract the feature from the last FC layer in PaSta classifier as the visual PaSta representation $f_{PaSta}^{V(i)} \in \mathbb{R}^{512}$ .
+
+Language PaSta feature. Our goal is to bridge the gap between PaSta and activity semantics. Language priors are useful in visual concept understanding [38, 58]. Thus the combination of visual and language knowledge is a good choice for establishing this mapping. To further enhance the representation ability, we utilize the uncased BERT-Base pre-trained model [9] as the language representation extractor. Bert [9] is a language understanding model that considers the context of words and uses a deep bidirectional transformer to extract contextual representations. It is trained with large-scale corpus databases such as Wikipedia, hence the generated embedding contains helpful implicit semantic knowledge about the activity and PaSta. For example, the description of the entry "basketball" in Wikipedia: "drag one's foot without dribbling the ball, to carry it, or to hold the ball with both hands...placing his hand on the bottom of the ball;..known as carrying the ball".
+
+In specific, for the $i$ -th body part with $n$ PaSta, we divide each PaSta into tokens $\{t_p^{(i,k)}, t_v^{(i,k)}, t_o^{(i,k)}\}_{k=1}^n$ , e.g., $\langle \text{part}, \text{verb}, \text{object} \rangle$ . The $\langle \text{object} \rangle$ comes from object detection. Each PaSta will be converted to a $f_{Bert}^{(i,k)} \in \mathbb{R}^{2304}$ (concatenating three 768 sized vectors of part, verb, object), i.e. $f_{Bert}^{(i,k)} = \mathcal{R}_{Bert}(t_p^{(i,k)}, t_v^{(i,k)}, t_o^{(i,k)})$ . $\{f_{Bert}^{(i,k)}\}_{k=1}^n$ will be concatenated as the $f_{Bert}^{(i)} \in \mathbb{R}^{2304*n}$ for the $i$ -th part. Second, we multiply $f_{Bert}^{(i)}$ with predicted PaSta probabilities $P_{PaSta}^{(i)}$ , i.e. $f_{PaSta}^{L(i)} = f_{Bert}^{(i)} \times P_{PaSta}^{(i)}$ , where $P_{PaSta}^{(i)} = \text{Sigmoid}(S_{PaSta}^{(i)}) \in \mathbb{R}^n$ , $S_{PaSta}^{(i)}$ denotes the
+
+PaSta score of the $i$ -th part, $P_{PaSta} = \{P_{PaSta}^{(i)}\}_{i=1}^{10}$ . This means a more possible PaSta will get larger attention. $f_{PaSta}^{L(i)} \in \mathbb{R}^{2304*n}$ is the final language PaSta feature of the $i$ -th part. We use the pre-converted and frozen $f_{Bert}^{(i,k)}$ in the whole process. Additionally, we also try to rewrite each PaSta into a sentence and convert it into a fixed-size vector as $f_{Bert}^{(i,k)}$ , the performance is slightly better (Sec. 5.5).
+
+PaSta Representation. At last, we pool and resize the $f_{PaSta}^{L(i)}$ , and concatenate it with its corresponding visual PaSta feature $f_{PaSta}^{V(i)}$ . Then we obtain the PaSta representation $f_{PaSta}^{(i)} \in \mathbb{R}^m$ for each body part (e.g. $m = 4096$ ). This process is indicated as Activity2Vec (Fig. 3). The output $f_{PaSta} = \{f_{PaSta}^{(i)}\}_{i=1}^{10}$ is the part-level activity representation and can be used for various downstream tasks, e.g. activity detection, captioning, etc. From the experiments, we can find that Activity2Vec has a powerful representational capacity and can significantly improve the performance of activity related tasks. It works like a knowledge transformer with the fundamental PaSta to compose various activities.
+
+# 4.3. PaSta-based Activity Reasoning
+
+With part-level $f_{PaSta}$ , we construct a Hierarchical Activity Graph (HAG) to model the activities. Then we can extract the graph state to reason out the activities.
+
+Hierarchical Activity Graph. Hierarchical activity graph $\mathcal{G} = (\mathcal{V},\mathcal{E})$ is depicted in Fig. 4. For human-object interactions, $\mathcal{V} = \{\mathcal{V}_p,\mathcal{V}_o\}$ . For body only motions, $\mathcal{V} = \mathcal{V}_p$ . In instance level, a person is a node with instance representation from previous instance-level methods [17, 34, 24] as a node feature. Object node $v_{o}\in \mathcal{V}_{o}$ and has $f_{o}$ as node feature. In part level, each body part can be seen as a node $v_{p}^{i}\in \mathcal{V}_{p}$ with PaSta representation $f_{PaSta}^{i}$ as node feature. Edge between body parts and object is $e_{po} = (v_p^i,v_o)\in$ $\mathcal{V}_p\times \mathcal{V}_o$ , and edge within parts is $e_{pp}^{ij} = (v_p^i,v_p^j)\in \mathcal{V}_p\times \mathcal{V}_p$ .
+
+Our goal is to parse HAG and reason out the graph state,
+
+
+Figure 4. From PaSta to activities on hierarchical activity graph.
+
+i.e. activities. In part-level, we use $PaSta$ -based Activity Reasoning ( $PaSta-R$ ) to infer the activities. That is, with the $PaSta$ representation from Activity2Vec, we use $S_{part} = \mathcal{F}_{PaSta-R}(f_{PaSta}, f_o)$ (Eq. 3) to infer the activity scores $S_{part}$ . For body motion only activities e.g. "dance", Eq. 3 is $S_{part} = \mathcal{F}_{PaSta-R}(f_{PaSta}, f_c)$ , $f_c$ is the feature of image. We adopt different implementations of $\mathcal{F}_{PaSta-R}(\cdot)$ .
+
+Linear Combination. The simplest implementation is to directly combine the part node features linearly. We concatenate the output of Activity2Vec $f_{PaSta}$ with $f_{o}$ and input them to a FC layer with Sigmoids.
+
+MLP. We can also operate nonlinear transformation on Activity2Vec output. We use two 1024 sized FC layers and an action category sized FC with Siblings.
+
+Graph Convolution Network. With part-level graph, we use Graph Convolution Network (GCN) [32] to extract the global graph feature and use an MLP subsequently.
+
+Sequential Model. When watching an image in this way: watch body part and object patches with language description one by one, human can easily guess the actions. Inspired by this, we adopt an LSTM [28] to take the part node features $f_{PaSta}^{(i)}$ gradually, and use the output of the last time step to classify actions. We adopt two input orders: random and fixed (from head to foot), and fixed order is better.
+
+Tree-Structured Passing. Human body has a natural hierarchy. Thus we use a tree-structured graph passing. Specifically, we first combine the hand and upper arm nodes into an "arm" node, its feature is obtained by concatenating the features of three son nodes and passed a 512 sized FC layer. Similarly, we combine the foot and thigh nodes to an "leg" node. Head, arms, legs and feet nodes together form the second level. The third level contains the "upper body" (head, arms) and "lower-body" (hip, legs). Finally, the body node is generated. We input it and the object node into an MLP.
+
+The instance-level graph inference can be operated by instance-based methods [13, 17, 34, 24] using Eq. 1: $S_{inst} = \mathcal{F}_{inst}(I, b_h, \mathcal{B}_o)$ . To get the final result upon the whole graph, we can use either early or late fusion. In early fusion, we concatenate $f_{inst}$ with $f_{PaSta}$ , $f_o$ and input them to $PaSta-R$ . In late fusion, we fuse the predictions of two levels, i.e. $S = S_{inst} + S_{part}$ . In our test, late fusion outperforms early fusion in most cases. If not specified, we use late fusion in Sec. 5. We use $\mathcal{L}_{cls}^{inst}$ and $\mathcal{L}_{cls}^{PaSta}$ to indicate
+
+
+Figure 5. An analogy to activity recognition.
+
+the cross-entropy losses of two levels. The total loss is:
+
+$$
+\mathcal {L} _ {\text {t o t a l}} = \mathcal {L} _ {\text {P a S t a}} + \mathcal {L} _ {\text {c l s}} ^ {\text {P a S t a}} + \mathcal {L} _ {\text {c l s}} ^ {\text {i n s t}}. \tag {6}
+$$
+
+# 5. Experiments
+
+# 5.1. An analogy: MNIST-Action
+
+We design a simplified experiment to give an intuition (Fig. 5). We randomly sample MNIST digits from 0 to 9 $(28 \times 28 \times 1)$ and generate $128 \times 128 \times 1$ images consists of 3 to 5 digits. Each image is given a label to indicate the sum of the two largest numbers within it (0 to 18). We assume that "PaSta-Activity" resembles the "Digits-Sum". Body parts can be seen as digits, thus human is the union box of all digits. To imitate the complex body movements, digits are randomly distributed, and Gaussian noise is added to the images. For comparison, we adopt two simple networks. For instance-level model, we input the ROI pooling feature of the digit union box into an MLP. For hierarchical model, we operate single-digit recognition, then concatenate the union box and digit features and input them to an MLP (early fusion), or use late fusion to combine scores of two levels. Early fusion achieves 43.7 accuracy and shows significant superiority over instance-level method (10.0). And late fusion achieves a preferable accuracy of 44.2. Moreover, the part-level method only without fusion also obtains an accuracy of 41.4. This supports our assumption about the effectiveness of part-level representation.
+
+# 5.2. Image-based Activity Recognition
+
+Usually, Human-Object Interactions (HOIs) often take up most of the activities, e.g., more than $70\%$ activities in large-scale datasets [24, 12, 2] are HOIs. To evaluate PaStaNet, we perform image-based HOI recognition on HICO [4]. HICO has 38,116 and 9,658 images in train and test sets and 600 HOIs composed of 117 verbs and 80 COCO objects [35]. Each image has an image-level label which is the aggregation over all HOIs in an image and does not contain any instance boxes.
+
+Modes. We first pre-train Activity2Vec with PaSta labels, then fine-tune Activity2Vec and PaSta-R together on HICO train set. In pre-training and finetuning, we exclude the HICO testing data in PaStaNet to avoid data pollution. We
+
+| Method | mAP | Few@1 | Few@5 | Few@10 |
| R*CNN [21] | 28.5 | - | - | - |
| Girdhar et al. [18] | 34.6 | - | - | - |
| Mallya et al. [41] | 36.1 | - | - | - |
| Pairwise [13] | 39.9 | 13.0 | 19.8 | 22.3 |
| Mallya et al. [41]+PaStaNet*-Linear | 45.0 | 26.5 | 29.1 | 30.3 |
| Pairwise [13]+PaStaNet*-Linear | 45.9 | 26.2 | 30.6 | 31.8 |
| Pairwise [13]+PaStaNet*-MLP | 45.6 | 26.0 | 30.8 | 31.9 |
| Pairwise [13]+PaStaNet*-GCN | 45.6 | 25.2 | 30.0 | 31.4 |
| Pairwise [13]+PaStaNet*-Seq | 45.9 | 25.3 | 30.2 | 31.6 |
| Pairwise [13]+PaStaNet*-Tree | 45.8 | 24.9 | 30.3 | 31.8 |
| PaStaNet*-Linear | 44.5 | 26.9 | 30.0 | 30.7 |
| Pairwise [13]+GT-PaStaNet*-Linear | 65.6 | 47.5 | 55.4 | 56.6 |
| Pairwise [13]+PaStaNet-Linear | 46.3 | 24.7 | 31.8 | 33.1 |
+
+Table 1. Results on HICO. "Pairwise [13] $+ {PaStaNet}$ " means the late fusion of [13] and our part-level result. Few@i indicates the mAP on few-shot sets. @i means the number of training images is less than or equal to $i$ . The HOI categories number of Few@1,5, 10 are 49, 125 and 163. "PaStaNet-x" means different PaSta-R.
+
+adopt different data mode to pre-train Activity2Vec: 1) "PaStaNet*" mode (38K images): we use the images in HICO train set and their PaSta labels. The only additional supervision here is the PaSta annotations compared to conventional way. 2) "GT-PaStaNet*" mode (38K images): the data used is same with "PaStaNet*". To verify the upper bound of our method, we use the ground truth PaSta (binary labels) as the predicted PaSta probabilities in Activity2Vec. This means we can recognize PaSta perfectly and reason out the activities from the best starting point. 3) "PaStaNet" mode (118K images): we use all PaStaNet images with PaSta labels except the HICO testing data.
+
+Settings. We use image-level PaSta labels to train Activity2Vec. Each image-level PaSta label is the aggregation over all existing PaSta of all active persons in an image. For PaSta recognition, i.e., we compute the mAP for the PaSta categories of each part, and compute the mean mAP of all parts. To be fair, we use the person, body part and object boxes from [13] and VGG-16 [52] as the backbone. The batch size is 16 and the initial learning rate is 1e-5. We use SGD optimizer with momentum (0.9) and cosine decay restarts [37] (the first decay step is 5000). The pretraining costs 80K iterations and fine-tuning costs 20K iterations. Image-level PaSta and HOI predictions are all generated via Multiple Instance Learning (MIL) [42] of 3 persons and 4 objects. We choose previous methods [41, 13] as the instance-level path in the hierarchical model, and uses late fusion. Particularly, [13] uses part-pair appearance and location but not part-level semantics, thus we still consider it as a baseline to get a more abundant comparison.
+
+Results. Results are reported in Tab. 1. PaStaNet* mode methods all outperform the instance-level method. The part-level method solely achieves $44.5\mathrm{mAP}$ and shows good complementarity to the instance-level. Their fusion can boost the performance to $45.9\mathrm{mAP}$ (6 mAP improvement). And the gap between [13] and [41] is largely narrowed from 3.8 to $0.9\mathrm{mAP}$ . Activity2Vec achieves 55.9
+
+| Method | Default | Known Object |
| Full | Rare | Non-Rare | Full | Rare | Non-Rare |
| InteractNet [19] | 9.94 | 7.16 | 10.77 | - | - | - |
| GPPN [48] | 13.11 | 9.34 | 14.23 | - | - | - |
| iCAN [17] | 14.84 | 10.45 | 16.15 | 16.26 | 11.33 | 17.73 |
| TIN [34] | 17.03 | 13.42 | 18.11 | 19.17 | 15.51 | 20.26 |
| iCAN [17]+PaStaNet*-Linear | 19.61 | 17.29 | 20.30 | 22.10 | 20.46 | 22.59 |
| TIN [34]+PaStaNet*-Linear | 22.12 | 20.19 | 22.69 | 24.06 | 22.19 | 24.62 |
| TIN [34]+PaStaNet*MLP | 21.59 | 18.97 | 22.37 | 23.84 | 21.66 | 24.49 |
| TIN [34]+PaStaNet*-GCN | 21.73 | 19.55 | 22.38 | 23.95 | 22.14 | 24.49 |
| TIN [34]+PaStaNet*Seq | 21.64 | 19.10 | 22.40 | 23.82 | 21.65 | 24.47 |
| TIN [34]+PaStaNet*-Tree | 21.36 | 18.83 | 22.11 | 23.68 | 21.75 | 24.25 |
| PaStaNet*-Linear | 19.52 | 17.29 | 20.19 | 21.99 | 20.47 | 22.45 |
| TIN [34]+GT-PaStaNet*-Linear | 34.86 | 42.83 | 32.48 | 35.59 | 42.94 | 33.40 |
| TIN [34]+PaStaNet-Linear | 22.65 | 21.17 | 23.09 | 24.53 | 23.00 | 24.99 |
+
+Table 2. Results on HICO-DET.
+
+mAP on PaSta recognition in PaStaNet* mode: 46.3 (head), 66.8 (arms), 32.0 (hands), 68.6 (hip), 56.2 (thighs), 65.8 (feet). This verifies that PaSta can be better learned than activities, thus they can be learned ahead as the basis for reasoning. In GT-PaStaNet* mode, hierarchical paradigm achieves 65.6 mAP. This is a powerful proof of the effectiveness of PaSta knowledge. Thus what remains to do is to improve the PaSta recognition and further promote the activity task performance. Moreover, in PaStaNet mode, we achieve relative $16\%$ improvement. On few-shot sets, our best result significantly improves 13.9 mAP, which strongly proves the reusability and transferability of PaSta.
+
+# 5.3. Instance-based Activity Detection
+
+We further conduct instance-based activity detection on HICO-DET [3], which needs to locate human and object and classify the actions simultaneously. HICO-DET [3] is a benchmark built on HICO [4] and add human and object bounding boxes. We choose several state-of-the-arts [17, 19, 48, 34] to compare and cooperate.
+
+Settings. We use instance-level PaSta labels, i.e. each annotated person with the corresponding PaSta labels, to train Acitivity2Vec, and fine-tune Activity2Vec and PaSta-R together on HICO-DET. All testing data are excluded from pre-training and fine-tuning. We follow the mAP metric of [3], i.e. true positive contains accurate human and object boxes $(IoU > 0.5$ with reference to ground truth) and accurate action prediction. The metric for PaSta detection is similar, i.e., estimated part box and PaSta action prediction all have to be accurate. The mAP of each part and the mean mAP are calculated. For a fair comparison, we use the object detection from [17, 34] and ResNet-50[27] as backbone. We use SGD with momentum (0.9) and cosine decay restart [37] (the first decay step is $80\mathrm{K}$ ). The pre-training and fine-tuning take 1M and 2M iterations respectively. The learning rate is 1e-3 and the ratio of positive and negative samples is 1:4. A late fusion strategy is adopted. Three modes in Sec. 5.2 and different PaSta-R are also evaluated.
+
+Results. Results are shown in Tab. 2. All PaStaNet* mode methods significantly outperform the instance-level methods, which strongly prove the improvement from the learned PaSta information. In PaStaNet* mode, the PaSta detection performance are $30.2\mathrm{mAP}$ : 25.8 (head), 44.2
+
+| Method | AProle(SCenario1) | AProle(SCenario2) |
| Gupta et al. [25] | 31.8 | - |
| InteractNet [19] | 40.0 | - |
| GPNN [48] | 44.0 | - |
| iCAN [17] | 45.3 | 52.4 |
| TIN [34] | 47.8 | 54.2 |
| iCAN [17]+PaStaNet-Linear | 49.2 | 55.6 |
| TIN [34]+PaStaNet-Linear | 51.0 | 57.5 |
+
+Table 3. Transfer learning results on V-COCO [25].
+
+(arms), 17.5 (hands), 41.8 (hip), 22.2 (thighs), 29.9 (feet). This again verifies that $PaSta$ can be well learned. And GT-PaStaNet* (upper bound) and $PaStaNet$ (more $PaSta$ labels) modes both greatly boosts the performance. On Rare sets, our method obtains 7.7 mAP improvement.
+
+# 5.4. Transfer Learning with Activity2Vec
+
+To verify the transferability of PaStaNet, we design transfer learning experiments on large-scale benchmarks: V-COCO [25], HICO-DET [3] and AVA [24]. We first use PaStaNet to pre-train Activity2Vec and PaSta-R with 156 activities and PaSta labels. Then we change the last FC in PaSta-R to fit the activity categories of the target benchmark. Finally, we freeze Activity2Vec and fine-tune PaSta-R on the train set of the target dataset. Here, PaStaNet works like the ImageNet [8] and Activity2Vec is used as a pretrained knowledge engine to promote other tasks.
+
+V-COCO. V-COCO contains 10,346 images and instance boxes. It has 29 action categories, COCO 80 objects [35]. For a fair comparison, we exclude the images of V-COCO and corresponding PaSta labels in PaStaNet, and use remaining data (109K images) for pre-training. We use SGD with 0.9 momenta and cosine decay restarts [37] (the first decay is 80K). The pre-training costs 300K iterations with the learning rate as 1e-3. The fine-tuning costs 80K iterations with the learning rate as 7e-4. We select state-of-the-art's [25, 19, 48, 17, 34] as baselines and adopt the metric $AP_{role}$ [25] (requires accurate human and object boxes and action prediction). Late fusion strategy is adopted. With the domain gap, PaStaNet still improves the performance by 3.2 mAP (Tab. 3.).
+
+Image-based AVA. AVA contains 430 video clips with spatio-temporal labels. It includes 80 atomic actions consists of body motions and HOIs. We utilize all PaStaNet data (118K images) for pre-training. Considering that PaStaNet is built upon still images, we use the frames per second as still images for image-based instance activity detection. We adopt ResNet-50 [27] as backbone and SGD with momentum of 0.9. The initial learning rate is 1e-2 and the first decay of cosine decay restarts [37] is 350K. For a fair comparison, we use the human box from [59]. The pretraining costs 1.1M iterations and fine-tuning costs 710K iterations. We adopt the metric from [24], i.e. mAP of the top 60 most common action classes, using IoU threshold of 0.5 between detected human box and the ground truth and accurate action prediction. For comparison, we adopt a image-based baseline: Faster R-CNN detector [49] with
+
+| Method | mAP |
| AVA-TF [23] | 11.4 |
| LFB-Res-50-baseline [59] | 22.2 |
| LFB-Res-101-baseline [59] | 23.3 |
| AVA-TF [23]+PaStaNet-Linear | 15.6 |
| LFB-Res-50-baseline [59]+PaStaNet-Linear | 23.4 |
| LFB-Res-101-baseline [59]+PaStaNet-Linear | 24.3 |
+
+Table 4. Transfer learning results on image-based AVA [24].
+
+ResNet-101 [27] provided by the AVA website [23]. Recent works mainly use a spatial-temporal model such as I3D [2]. Although unfair, we still employ two video-based baselines [59] as instance-level models to cooperate with the part-level method via late fusion. Results are listed in Tab. 4. Both image and video based methods cooperated with PaStaNet achieve impressive improvements, even our model is trained without temporal information. Considering the huge domain gap (films) and unseen activities, this result strongly proves its great generalization ability.
+
+HICO-DET. We exclude the images of HICO-DET and the corresponding PaSta labels, and use left data (71K images) for pre-training. The test setting in same with Sec. 5.3. The pre-training and fine-tuning cost 300K and 1.3M iterations. PaStaNet shows good transferability and achieve 3.25 mAP improvement on Default Full set (20.28 mAP).
+
+# 5.5. Ablation Study
+
+We design ablation studies on HICO-DET with TIN [34] $+P a S t a^{*}$ -Linear (22.12 mAP). 1) w/o Part Attention degrades the performance with 0.21 mAP. 2) Language Feature: We replace the PaSta Bert feature in Activity2Vec with: Gaussian noise, Word2Vec [43] and GloVe [47]. The results are all worse (20.80, 21.95, 22.01 mAP). If we change the PaSta triplet $\langle$ part, verb, sth $\rangle$ into a sentence and convert it to Bert vector, this vector performs slightly better (22.26 mAP). This is probably because the sentence carries more contextual information.
+
+# 6. Conclusion
+
+In this paper, to make a step toward human activity knowledge engine, we construct PaStaNet to provide novel body part-level activity representation (PaSta). Meanwhile, a knowledge transformer Activity2Vec and a part-based reasoning method PaSta-R are proposed. PaStaNet brings in interpretability and new possibility for activity understanding. It can effectively bridge the semantic gap between pixels and activities. With PaStaNet, we significantly boost the performance in supervised and transfer learning tasks, especially under few-shot circumstances. In the future, we plan to enrich our PaStaNet with spatio-temporal PaSta.
+
+Acknowledgement: This work is supported in part by the National Key R&D Program of China, No. 2017YFA0700800, National Natural Science Foundation of China under Grants 61772332 and Shanghai Qi Zhi Institute.
+
+# References
+
+[1] Mykhaylo Andriluka, Leonid Pishchulin, Peter Gehler, and Bernt Schiele. 2d human pose estimation: New benchmark and state of the art analysis. In CVPR, 2014. 2, 3
+[2] Joao Carreira and Andrew Zisserman. Quo vadis, action recognition? a new model and the kinetics dataset. In CVPR, 2017. 2, 6, 8
+[3] Yu-Wei Chao, Yunfan Liu, Xieyang Liu, Huayi Zeng, and Jia Deng. Learning to detect human-object interactions. In WACV, 2018. 1, 2, 3, 7, 8
+[4] Yu Wei Chao, Zhan Wang, Yugeng He, Jiaxuan Wang, and Jia Deng. Hico: A benchmark for recognizing human-object interactions in images. In ICCV, 2015. 2, 3, 6, 7
+[5] Vasileios Choutas, Philippe Weinzaepfel, Jérôme Revaud, and Cordelia Schmid. Potion: Pose motion representation for action recognition. In CVPR, 2018. 2
+[6] Kenneth Ward Church and Patrick Hanks. Word association norms, mutual information, and lexicography. Computational linguistics, 1990. 3
+[7] Vincent Delaitre, Josef Sivic, and Ivan Laptev. Learning person-object interactions for action recognition in still images. In NIPS, 2011. 1, 2
+[8] 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
+[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. 5
+[10] Wendy Doniger. Reductionism. 1999. 1
+[11] Yong Du, Wei Wang, and Liang Wang. Hierarchical recurrent neural network for skeleton based action recognition. In CVPR, 2015. 2
+[12] Bernard Ghanem Fabian Caba Heilbron, Victor Escorcia and Juan Carlos Niebles. Activitynet: A large-scale video benchmark for human activity understanding. In CVPR, 2015. 2, 3, 6
+[13] Hao Shu Fang, Jinkun Cao, Yu Wing Tai, and Cewu Lu. Pairwise body-part attention for recognizing human-object interactions. In ECCV, 2018. 2, 3, 4, 6, 7
+[14] Hao-Shu Fang, Jianhua Sun, Runzhong Wang, Minghao Gou, Yong-Lu Li, and Cewu Lu. Instaboost: Boosting instance segmentation via probability map guided copy-pasting. In ICCV, 2019. 2
+[15] Hao-Shu Fang, Shuqin Xie, Yu-Wing Tai, and Cewu Lu. RMPE: Regional multi-person pose estimation. In ICCV, 2017. 2, 3, 4
+[16] Christoph Feichtenhofer, Axel Pinz, and Andrew Zisserman. Convolutional two-stream network fusion for video action recognition. In CVPR, 2016. 2
+[17] Chen Gao, Yuliang Zou, and Jia-Bin Huang. ican: Instance-centric attention network for human-object interaction detection. arXiv preprint arXiv:1808.10437, 2018. 2, 5, 6, 7, 8
+[18] Rohit Girdhar and Deva Ramanan. Attentional pooling for action recognition. In NIPS, 2017. 7
+
+[19] Georgia Gkioxari, Ross Girshick, Piotr Dólar, and Kaiming He. Detecting and recognizing human-object interactions. In CVPR, 2018. 2, 7, 8
+[20] Georgia Gkioxari, Ross Girshick, and Jitendra Malik. Actions and attributes from wholes and parts. In ICCV, 2015. 2
+[21] Georgia Gkioxari, Ross Girshick, and Jitendra Malik. Contextual action recognition with r* cnn. In ICCV, 2015. 7
+[22] Georgia Gkioxari, Bharath Hariharan, Ross Girshick, and Jitendra Malik. R-cnns for pose estimation and action detection. Computer Science, 2014. 2
+[23] Chunhui Gu, Chen Sun, David A Ross, Carl Vondrick, Caroline Pantofaru, Yeqing Li, Sudheendra Vijayanarasimhan, George Toderici, Susanna Ricco, Rahul Sukthankar, et al. Ava. https://research.google.com/ava/download.html, 2018.8
+[24] 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. 1, 2, 3, 5, 6, 8
+[25] Saurabh Gupta and Jitendra Malik. Visual semantic role labeling. arXiv preprint arXiv:1505.04474, 2015. 2, 3, 8
+[26] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross Girshick. Mask r-cnn. In ICCV, 2017. 2
+[27] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 7, 8
+[28] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 1997. 6
+[29] Jian Fang Hu, Wei Shi Zheng, Jianhuang Lai, Shaogang Gong, and Tao Xiang. Recognising human-object interaction via exemplar based modelling. In ICCV, 2014. 2
+[30] H. Jhuang, J. Gall, S. Zuffi, C. Schmid, and M. J. Black. Towards understanding action recognition. In ICCV, 2013. 2
+[31] Shuiwang Ji, Wei Xu, Ming Yang, and Kai Yu. 3d convolutional neural networks for human action recognition. TPAMI, 2012. 2
+[32] Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016. 6
+[33] Ivan Krasin, Tom Duerig, Neil Alldrin, Vittorio Ferrari, Sami Abu-El-Haija, Alina Kuznetsova, Hassan Rom, Jasper Uijlings, Stefan Popov, Andreas Veit, et al. Openimages: A public dataset for large-scale multi-label and multi-class image classification. Dataset available from https://github.com/openimages, 2:3, 2017. 2, 3
+[34] Yong-Lu Li, Siyuan Zhou, Xijie Huang, Liang Xu, Ze Ma, Hao-Shu Fang, Yanfeng Wang, and Cewu Lu. Transferable interactiveness knowledge for human-object interaction detection. In CVPR, 2019. 2, 5, 6, 7, 8
+[35] 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. 4, 6, 8
+[36] Si Liu, Lejian Ren, Yue Liao, Guanghui Ren, Hongyi Xiang, and Guanbin Li. Pic-person in context. http://picdataset.com/challenge/index/, 2018.3
+
+[37] Ilya Loshchilov and Frank Hutter. Sgdr: Stochastic gradient descent with warm restarts. arXiv preprint arXiv:1608.03983, 2016. 7, 8
+[38] Cewu Lu, Ranjay Krishna, Michael Bernstein, and Fei Fei Li. Visual relationship detection with language priors. In ECCV, 2016. 5
+[39] Cewu Lu, Hao Su, Yonglu Li, Yongyi Lu, Li Yi, Chi-Keung Tang, and Leonidas J Guibas. Beyond holistic object recognition: Enriching image understanding with part states. In CVPR, 2018. 1, 2, 3
+[40] S. Maji, L. Bourdev, and J. Malik. Action recognition from a distributed representation of pose and appearance. In CVPR, 2011. 1, 2
+[41] Arun Mallya and Svetlana Lazebnik. Learning models for actions and person-object interactions with transfer to question answering. In ECCV, 2016. 2, 7
+[42] Oded Maron and Tomás Lozano-Pérez. A framework for multiple-instance learning. In NIPS, 1998. 7
+[43] Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781, 2013. 8
+[44] George A Miller. Wordnet: a lexical database for english. Communications of the ACM, 1995. 3
+[45] Bo Pang, Kaiwen Zha, Hanwen Cao, Chen Shi, and Cewu Lu. Deep rnn framework for visual sequential applications. In CVPR, 2019. 2
+[46] Bo Pang, Kaiwen Zha, Yifan Zhang, and Cewu Lu. Further understanding videos through adverbs: A new video task. In AAAI, 2020. 2
+[47] Jeffrey Pennington, Richard Socher, and Christopher Manning. Glove: Global vectors for word representation. In EMNLP, 2014. 8
+[48] Siyuan Qi, Wenguan Wang, Baoxiong Jia, Jianbing Shen, and Song-Chun Zhu. Learning human-object interactions by graph parsing neural networks. In ECCV, 2018. 2, 7, 8
+[49] 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, 4, 8
+[50] Dian Shao, Yu Xiong, Yue Zhao, Qingqiu Huang, Yu Qiao, and Dahua Lin. Find and focus: Retrieve and localize video events with natural language queries. In ECCV, 2018. 2
+[51] Karen Simonyan and Andrew Zisserman. Two-stream convolutional networks for action recognition in videos. In NIPS, 2014. 2
+[52] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. 7
+[53] Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. Ucf101: A dataset of 101 human actions classes from videos in the wild. arXiv preprint arXiv:1212.0402, 2012. 2
+[54] Lin Sun, Kui Jia, Dit-Yan Yeung, and Bertram E. Shi. Human action recognition using factorized spatio-temporal convolutional networks. In ICCV, 2015. 2
+[55] Christian Thurau and Vaclav Hlavac. Pose primitive based human action recognition in videos or still images. In CVPR, 2008. 2
+
+[56] Du Tran, Lubomir Bourdev, Rob Fergus, Lorenzo Torresani, and Manohar Paluri. Learning spatiotemporal features with 3d convolutional networks. In ICCV, 2015. 2
+[57] Raviteja Vemulapalli, Felipe Arrate, and Rama Chellappa. Human action recognition by representing 3d skeletons as points in a lie group. In CVPR, 2014. 2
+[58] Oriol Vinyals, Alexander Toshev, Samy Bengio, and Dumitru Erhan. Show and tell: A neural image caption generator. In CVPR, 2015. 5
+[59] 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. 8
+[60] Wenqiang Xu, Yonglu Li, and Cewu Lu. Srda: Generating instance segmentation annotation via scanning, reasoning and domain adaptation. In ECCV, 2018. 2
+[61] Weilong Yang, Yang Wang, and Greg Mori. Recognizing human actions from still images with latent poses. In CVPR, 2010. 1, 2
+[62] Bangpeng Yao, Xiaoye Jiang, Aditya Khosla, Andy Lai Lin, Leonidas Guibas, and Fei Fei Li. Human action recognition by learning bases of action attributes and parts. In ICCV, 2011. 2
+[63] Bangpeng Yao and Fei Fei Li. Modeling mutual context of object and human pose in human-object interaction activities. In CVPR, 2010. 2
+[64] Bangpeng Yao and Fei Fei Li. Action recognition with exemplar based 2.5d graph matching. In ECCV, 2012. 1, 2
+[65] Zhichen Zhao, Huimin Ma, and Shaodi You. Single image action recognition using semantic body part actions. In ICCV, 2017. 2
+[66] Bohan Zhuang, Qi Wu, Chunhua Shen, Ian Reid, and Anton van den Hengel. Care about you: towards large-scale human-centric visual relationship detection. arXiv preprint arXiv:1705.09892, 2017. 3
\ No newline at end of file
diff --git a/pastanettowardhumanactivityknowledgeengine/images.zip b/pastanettowardhumanactivityknowledgeengine/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..311e92d842ab0a84a66aeeab905748b424ae4393
--- /dev/null
+++ b/pastanettowardhumanactivityknowledgeengine/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5a249824b7cd30a6fad795030ae1a752108d8739ffb1ac3b86d357eefb893c97
+size 379096
diff --git a/pastanettowardhumanactivityknowledgeengine/layout.json b/pastanettowardhumanactivityknowledgeengine/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..77fb275987108801e1ee981d7ce58fa716c0d5dd
--- /dev/null
+++ b/pastanettowardhumanactivityknowledgeengine/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:27394acb035b7d61a013b4eef3b70d0f2b186654d03242d79ee78ca309a303b3
+size 412949
diff --git a/patchvaelearninglocallatentcodesforrecognition/d3e8936b-66eb-434e-85be-5eb770af8a75_content_list.json b/patchvaelearninglocallatentcodesforrecognition/d3e8936b-66eb-434e-85be-5eb770af8a75_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..f90313280e16ff057cf865c44c52a0e11d88b11f
--- /dev/null
+++ b/patchvaelearninglocallatentcodesforrecognition/d3e8936b-66eb-434e-85be-5eb770af8a75_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7943750f45b65876ca1c95c853780764d2b7f066f7bf00d75992c0aee93a66e5
+size 83962
diff --git a/patchvaelearninglocallatentcodesforrecognition/d3e8936b-66eb-434e-85be-5eb770af8a75_model.json b/patchvaelearninglocallatentcodesforrecognition/d3e8936b-66eb-434e-85be-5eb770af8a75_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..bfce5198b43c8fc625f8c5d0032a5f59f12df1fb
--- /dev/null
+++ b/patchvaelearninglocallatentcodesforrecognition/d3e8936b-66eb-434e-85be-5eb770af8a75_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2ef0641c9a8e2bc54c6e2d1a270e29a3a5e7d87b119a3b0c51403ffdbb3ac9ff
+size 100608
diff --git a/patchvaelearninglocallatentcodesforrecognition/d3e8936b-66eb-434e-85be-5eb770af8a75_origin.pdf b/patchvaelearninglocallatentcodesforrecognition/d3e8936b-66eb-434e-85be-5eb770af8a75_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..baf952e1587cdc55d0421ae9cac8449fede12e89
--- /dev/null
+++ b/patchvaelearninglocallatentcodesforrecognition/d3e8936b-66eb-434e-85be-5eb770af8a75_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:855af7c4342334a6df8f7d1060a4b6596cf3cbb71e3ddcb9c03a8b5ffad5cb54
+size 1070900
diff --git a/patchvaelearninglocallatentcodesforrecognition/full.md b/patchvaelearninglocallatentcodesforrecognition/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..3e8c34c69bcccd1189390b0cc382eb9f82702d48
--- /dev/null
+++ b/patchvaelearninglocallatentcodesforrecognition/full.md
@@ -0,0 +1,342 @@
+# PatchVAE: Learning Local Latent Codes for Recognition
+
+Kamal Gupta1
+
+Saurabh Singh2
+
+1University of Maryland, College Park
+
+{kampta,abhinav}@cs.umd.edu
+
+Abhinav Shrivastava
+
+2Google Research
+
+saurabhsingh@gmail.com
+
+# Abstract
+
+Unsupervised representation learning holds the promise of exploiting large amounts of unlabeled data to learn general representations. A promising technique for unsupervised learning is the framework of Variational Auto-encoders (VAEs). However, unsupervised representations learned by VAEs are significantly outperformed by those learned by supervised learning for recognition. Our hypothesis is that to learn useful representations for recognition the model needs to be encouraged to learn about repeating and consistent patterns in data. Drawing inspiration from the mid-level representation discovery work, we propose PatchVAE, that reasons about images at patch level. Our key contribution is a bottleneck formulation that encourages mid-level style representations in the VAE framework. Our experiments demonstrate that representations learned by our method perform much better on the recognition tasks compared to those learned by vanilla VAEs.
+
+# 1. Introduction
+
+Due to the availability of large labeled visual datasets, supervised learning has become the dominant paradigm for visual recognition. That is, to learn about any new concept, the modus operandi is to collect thousands of labeled examples for that concept and train a powerful classifier, such as a deep neural network. This is necessary because the current generation of models based on deep neural networks require large amounts of labeled data [33]. This is in stark contrast to the insights that we have from developmental psychology on how infants develop perception and cognition without any explicit supervision [31]. Moreover, the supervised learning paradigm is ill-suited for applications, such as health care and robotics, where annotated data is hard to obtain either due to privacy concerns or high cost of expert human annotators. In such cases, learning from very few labeled images or discovering underlying natural patterns in large amounts of unlabeled data can have a large number of potential applications. Discovering such patterns from unlabeled data is
+
+
+Image
+
+
+Part Occurrence Map
+
+
+Part samples
+
+
+Example parts discovered by PatchVAE
+Figure 1: PatchVAE learns to encode repetitive parts across a dataset, by modeling their appearance and occurrence. (top) Given an image, the occurrence map of a particular part learned by PatchVAE is shown in the middle, capturing the head/beat of the birds. Samples of the same part from other images are shown on the right, indicating consistent appearance. (bottom) More examples of parts discovered by our PatchVAE framework.
+
+
+
+
+
+
+
+the standard setup of unsupervised learning.
+
+Over the past few years, the field of unsupervised learning in computer vision has followed two seemingly different tracks with different goals: generative modeling and self-supervised learning. The goal of generative modeling is to learn the probability distribution from which data was generated, given some training data. Such models, learned using reconstruction-based losses, can draw samples from the same distribution or evaluate the likelihoods of new data, and are useful for learning compact representation of images. However, we argue that these representations are not as useful for visual recognition. This is not surprising since the task of reconstructing images does not require the bottleneck representation to sort out meaningful data useful for recognition and discard the rest; on the contrary, it encourages preserving as much information as possible for reconstruction.
+
+In comparison, the goal in self-supervised learning is to learn representations that are useful for recognition. The standard paradigm is to establish proxy tasks that don't require human-supervision but can provide signals useful
+
+for recognition. Due to the mismatch in goals of unsupervised learning for visual recognition and the representations learned from generative modeling, self-supervised learning is a more popular way of learning representations from unlabeled data. However, fundamental limitation of this self-supervised paradigm is that we need to define a proxy-task that can mimic the desired recognition task. It is not possible to always establish such a task, nor are these tasks generalizable across recognition tasks.
+
+In this paper, our goal is to enable the unsupervised generative modeling approach of VAEs to learn representations useful for recognition. Our key hypothesis is that for a representation to be useful, it should capture just the interesting parts of the images, as opposed to everything in the images.
+
+What constitutes an interesting image part has been defined and studied in earlier works that pre-date the end-to-end trained deep network methods [30, 7, 14]. Taking inspiration from these works, we propose a novel representation that only encodes few such parts of an image that are repetitive across the dataset, i.e., the patches that occur often in images. By avoiding reconstruction of the entire image our method can focus on regions that are repeating and consistent across many images. In an encoder-decoder based generative model, we constrain the encoder architecture to learn such repetitive parts – both in terms of representations for appearance of these parts (or patches in an image) and where these parts occur. We formulate this using variational auto-encoder ( $\beta$ -VAEs) [19, 23], where we impose novel structure on the latent representations. We use discrete latents to model part presence or absence and continuous latents to model their appearance. Figure 1 shows an example of the discrete latents or occurrence map, and example parts discovered by our approach, PatchVAE. We present PatchVAE in Section 3 and demonstrate that it learns representations that are much better for recognition as compared to those learned by the standard $\beta$ -VAEs [19, 23].
+
+In addition, we present losses that favor foreground, which is more likely to contain repetitive patterns, in Section 3.4, and demonstrate that they result in representations that are much better at recognition. Finally, in Section 4, we present results on CIFAR100 [20], MIT Indoor Scene Recognition [27], Places [37], and ImageNet [4] datasets. To summarize, our contributions are as follows:
+
+1. We propose a novel patch-based bottleneck in the VAE framework that learns representations that can encode repetitive parts across images.
+2. We demonstrate that our method, PatchVAE, learns unsupervised representations that are better suited for recognition in comparison to traditional VAEs.
+3. We show that losses that favor foreground are better for unsupervised representation learning for recognition.
+4. We perform extensive ablation analysis of the proposed PatchVAE architecture.
+
+# 2. Related Work
+
+Due to its potential impact, unsupervised learning (particularly for deep networks) is one of the most researched topics in visual recognition over the past few years. Generative models such as VAEs [19, 23, 18, 11], PixelRNN [34], PixelCNN [12, 29], and their variants have proven effective when it comes to learning compressed representation of images while being able to faithfully reconstruct them as well as draw samples from the data distribution. GANs [10, 28, 38, 3] on the other hand, while don't model the probability density explicitly, can still produce high quality image samples from noise. There has been work combining VAEs and GANs to be able to simultaneously learn image data distribution while being able to generate high quality samples from it [15, 8, 21]. Convolution sparse coding [1] is an alternative approach for reconstruction or image inpainting problems. Our work complements existing generative frameworks in that we provide a structured approach for VAEs that can learn beyond low-level representations. We show the effectiveness of the representations learned by our model by using them for visual recognition tasks.
+
+There has been a lot of work in interpreting or disentangling representations learned using generative models such as VAEs [23, 9, 16]. However, there is little evidence of effectiveness of disentangled representations in visual recognition. Semi-supervised learning using generative models [17, 32], where partial or noisy labels are available to the model during training, has shown lots of promise in applications of generating conditioned samples from the model. In our work however, we focus on incorporating inductive biases in these generative models (e.g., VAEs) so they can learn representations better suited for visual recognition.
+
+A related, but orthogonal, line of work is self-supervised learning where a proxy task is designed to learn representation useful for recognition. These proxy tasks vary from simple tasks like arranging patches in an image in the correct spatial order [5, 6] and arranging frames from a video in correct temporal order [35, 25], to more involved tasks like inpainting [26] and context prediction [24, 36]. We follow the best practices from this line of work for evaluating the learned representations.
+
+# 3. Our Approach
+
+Our work builds upon VAE framework proposed by [19]. We briefly review relevant aspects of the VAE framework and then present our approach.
+
+# 3.1. VAE Review
+
+Standard VAE framework assumes a generative model for data where first a latent $\mathbf{z}$ is sampled from a prior $p(\mathbf{z})$ and then the data is generated from a conditional distribution $G(\mathbf{x}|\mathbf{z})$ . A variational approximation $Q(\mathbf{z}|\mathbf{x})$ to the true in
+
+
+(a) VAE Architecture
+
+
+(b) PatchVAE Architecture
+Figure 2: (a) VAE Architecture: In a standard VAE architecture, output of encoder network is used to parameterize the variational posterior for $z$ . Samples from this posterior are input to the decoder network. (b) Proposed PatchVAE Architecture: Our encoder network computes a set of feature maps $\mathbf{f}$ using $\phi(\mathbf{x})$ . This is followed by two independent single layer networks. The bottom network generates part occurrence parameters $Q^{\mathrm{O}}$ . We combine $Q^{\mathrm{O}}$ with output of top network to generate part appearance parameters $Q^{\mathrm{A}}$ . We sample $\mathbf{z}_{\mathrm{occ}}$ and $\mathbf{z}_{\mathrm{app}}$ to construct $\hat{\mathbf{z}}$ as described in Section 3.2 which is input to the decoder network. We also visualize the corresponding priors for latents $\mathbf{z}_{\mathrm{app}}$ and $\mathbf{z}_{\mathrm{occ}}$ in the dashed gray boxes.
+
+tractable posterior is introduced and the model is learned by minimizing the following negative variational lower bound (ELBO),
+
+$$
+\begin{array}{l} \mathcal {L} _ {\mathrm {V A E}} (\mathbf {x}) = - \mathbb {E} _ {z \sim Q (\mathbf {z} | \mathbf {x})} [ \log G (\mathbf {x} | \mathbf {z}) ] \\ + \mathbb {K L} [ Q (\mathbf {z} | \mathbf {x}) \| p (\mathbf {z}) ] \tag {1} \\ \end{array}
+$$
+
+where $Q(\mathbf{z}|\mathbf{x})$ is often referred to as an encoder as it can be viewed as mapping data to the latent space, while $G(\mathbf{x}|\mathbf{z})$ is referred to as a decoder (or generator) that can be viewed as mapping latents to the data space. Both $Q$ and $G$ are commonly parameterized as neural networks. Fig. 2a shows the commonly used VAE architecture. If the conditional $G(\mathbf{x}|\mathbf{z})$ takes a gaussian form, negative log likelihood in the first term of RHS of Eq. 1 becomes mean squared error between generator output $\hat{\mathbf{x}} = G(\mathbf{x}|\mathbf{z})$ and input data $\mathbf{x}$ . In the second term, prior $p(\mathbf{z})$ is assumed to be a multi-variate normal distribution with zero-mean and identity covariance $\mathcal{N}(0,\mathcal{I})$ and the loss simplifies to
+
+$$
+\mathcal {L} _ {\mathrm {V A E}} (\mathbf {x}) = \| \mathbf {x} - \hat {\mathbf {x}} \| ^ {2} + \mathbb {K L} [ Q (\mathbf {z} | \mathbf {x}) \| \mathcal {N} (0, \mathcal {I}) ] \quad (2)
+$$
+
+When $G$ and $Q$ are differentiable, entire model can be trained with SGD using reparameterization trick [19]. [23] propose an extension for learning disentangled representation by incorporating a weight factor $\beta$ for the KL Divergence term yielding
+
+$$
+\mathcal {L} _ {\beta \mathrm {V A E}} (\mathbf {x}) = \| \mathbf {x} - \hat {\mathbf {x}} \| ^ {2} + \beta \mathbb {K L} [ Q (\mathbf {z} | \mathbf {x}) \| \mathcal {N} (0, \mathcal {I}) ] \quad (3)
+$$
+
+VAE framework aims to learn a generative model for the images where the latents $\mathbf{z}$ represent the corresponding low dimensional generating factors. The latents $\mathbf{z}$ can therefore be treated as image representations that capture the necessary details about images. However, we postulate that representations produced by the standard VAE framework are not ideal for recognition as they are learned to capture all details, rather than capturing 'interesting' aspects of the data and dropping the rest. This is not surprising since there formulation does not encourage learning semantic information.
+
+For learning semantic representations, in the absence of any relevant supervision (as is available in self-supervised approaches), inductive biases have to be introduced. Therefore, taking inspiration from works on unsupervised mid-level pattern discovery [30, 7, 14], we propose a formulation that encourages the encoder to only encode such few parts of an image that are repetitive across the dataset, i.e., the patches that occur often in images.
+
+Since the VAE framework provides a principled way of learning a mapping from image to latent space, we consider it ideal for our proposed extension. We chose $\beta$ -VAEs for their simplicity and widespread use. In Section 3.2, we describe our approach in detail and in Section 3.4 propose a modification in the reconstruction error computation to bias the error term towards foreground high-energy regions (similar to the biased initial sampling of patterns in [30]).
+
+# 3.2. PatchVAE
+
+Given an image $\mathbf{x}$ , let $\mathbf{f} = \phi(\mathbf{x})$ be a deterministic mapping that produces a 3D representation $\mathbf{f}$ of size $h \times w \times d_{e}$ , with a total of $L = h \times w$ locations (grid-cells). We aim to encourage the encoder network to only encode parts of an image that correspond to highly repetitive patches. For example, a random patch of noise is unlikely to occur frequently, whereas patterns like faces, wheels, windows, etc. repeat across multiple images. In order to capture this intuition, we force the representation $\mathbf{f}$ to be useful for predicting frequently occurring parts in an image, and use just these predicted parts to reconstruct the image. We achieve this by transforming $\mathbf{f}$ to $\hat{\mathbf{z}}$ which encodes a set of parts at a small subset of $L$ locations on the grid cells. We refer to $\hat{\mathbf{z}}$ as "patch latent codes" for an image. Next we describe how we re-tool the $\beta$ -VAE framework to learn these local latent codes. We first describe our setup for a single part and follow it up with a generalization to multiple parts (Section 3.3).
+
+Image Encoding. Given the image representation $\mathbf{f} = \phi(x)$ , we want to learn part representations at each grid location $l$ (where $l \in \{1, \dots, L\}$ ). A part is parameterized by its
+
+appearance $\mathbf{z}_{\mathrm{app}}$ and its occurrence $\mathbf{z}_{\mathrm{occ}}^{l}$ (i.e., presence or absence of the part at grid location $l$ ). We use two networks, $Q_{\mathbf{f}}^{\mathrm{A}}$ and $Q_{\mathbf{f}}^{\mathrm{O}}$ , to parameterize posterior distributions $Q_{\mathbf{f}}^{\mathrm{A}}(\mathbf{z}_{\mathrm{app}} \mid \mathbf{f})$ and $Q_{\mathbf{f}}^{\mathrm{O}}(\mathbf{z}_{\mathrm{occ}}^{l} \mid \mathbf{f})$ of the part parameters $\mathbf{z}_{\mathrm{app}}$ and $\mathbf{z}_{\mathrm{occ}}^{l}$ respectively. Since the mapping $\mathbf{f} = \phi(\mathbf{x})$ is deterministic, we can re-write these distributions as $Q_{\mathbf{f}}^{\mathrm{A}}(\mathbf{z}_{\mathrm{app}} \mid \phi(\mathbf{x}))$ and $Q_{\mathbf{f}}^{\mathrm{O}}(\mathbf{z}_{\mathrm{occ}}^{l} \mid \phi(\mathbf{x}))$ ; or simply $Q^{\mathrm{A}}(\mathbf{z}_{\mathrm{app}} \mid \mathbf{x})$ and $Q^{\mathrm{O}}(\mathbf{z}_{\mathrm{occ}}^{l} \mid \mathbf{x})$ . Therefore, given an image $\mathbf{x}$ the encoder networks estimate the posterior $Q^{\mathrm{A}}(\mathbf{z}_{\mathrm{app}} \mid \mathbf{x})$ and $Q^{\mathrm{O}}(\mathbf{z}_{\mathrm{occ}}^{l} \mid \mathbf{x})$ . Note that $\mathbf{f}$ is a deterministic feature map, whereas $\mathbf{z}_{\mathrm{app}}$ and $\mathbf{z}_{\mathrm{occ}}^{l}$ are stochastic.
+
+Image Decoding. We utilize a generator or decoder network $G$ , that given $\mathbf{z}_{\mathrm{occ}}$ and $\mathbf{z}_{\mathrm{app}}$ , reconstructs the image. First, we sample a part appearance $\hat{\mathbf{z}}_{\mathrm{app}}$ ( $d_p$ dimensional, continuous) and then sample part occurrence $\hat{\mathbf{z}}_{\mathrm{occ}}^l$ ( $L$ dimensional, binary) one for each location $l$ from the posteriors
+
+$$
+\hat {\mathbf {z}} _ {\mathrm {a p p}} \sim Q ^ {\mathrm {A}} \left(\mathbf {z} _ {\mathrm {a p p}} \mid \mathbf {x}\right) \tag {4}
+$$
+
+$$
+\mathbf {\hat {z}} _ {\mathrm {o c c}} ^ {l} \sim Q ^ {\mathrm {O}} \left(\mathbf {z} _ {\mathrm {o c c}} ^ {l} \mid \mathbf {x}\right), \quad \text {w h e r e} l \in \{1, \dots , L \}
+$$
+
+Next, we construct a 3D representation $\hat{\mathbf{z}}$ by placing $\hat{\mathbf{z}}_{\mathrm{app}}$ at every location $l$ where the part is present (i.e., $\hat{\mathbf{z}}_{\mathrm{occ}}^{l} = 1$ ). This can be implemented by a broadcasted product of $\hat{\mathbf{z}}_{\mathrm{app}}$ and $\hat{\mathbf{z}}_{\mathrm{occ}}^{l}$ . We refer to $\hat{\mathbf{z}}$ as patch latent code. Again note that $\mathbf{f}$ is deterministic and $\hat{\mathbf{z}}$ is stochastic. Finally, a deconvolutional network takes $\hat{\mathbf{z}}$ as input and generates an image $\hat{\mathbf{x}}$ . This image generation process can be written as
+
+$$
+\hat {\mathbf {x}} \sim G \left(\mathbf {x} \mid \mathbf {z} _ {\text {o c c}} ^ {1}, \mathbf {z} _ {\text {o c c}} ^ {2}, \dots , \mathbf {z} _ {\text {o c c}} ^ {L}, \mathbf {z} _ {\text {a p p}}\right) \tag {5}
+$$
+
+Since all latent variables $(\mathbf{z}_{\mathrm{occ}}^{l}$ for all $l$ and $\mathbf{z}_{\mathrm{app}})$ are independent of each other, they can be stacked as
+
+$$
+\mathbf {z} _ {\mathrm {p}} = \left[ \mathbf {z} _ {\text {o c c}} ^ {1}; \mathbf {z} _ {\text {o c c}} ^ {2}; \dots ; \mathbf {z} _ {\text {o c c}} ^ {L}; \mathbf {z} _ {\text {a p p}} \right]. \tag {6}
+$$
+
+This enables us to use a simplified the notation (refer to (4) and (5)):
+
+$$
+\hat {\mathbf {z}} _ {\mathrm {p}} \sim Q ^ {\{\mathrm {A}, \mathrm {O} \}} \left(\mathbf {z} _ {\mathrm {p}} \mid \mathbf {x}\right) \tag {7}
+$$
+
+$$
+\hat {\mathbf {x}} \sim G (\mathbf {x} | \mathbf {z} _ {\mathrm {p}})
+$$
+
+Note that despite the additional structure, our model still resembles the setup of variational auto-encoders. The primary difference arises from: (1) use of discrete latents for part occurrence, (2) patch-based bottleneck imposing additional structure on latents, and (4) feature assembly for generator.
+
+Training. We use the training setup of $\beta$ -VAE and use the maximization of variational lower bound to train the encoder and decoder jointly (described in Section 3.1). The posterior $Q^{\mathrm{A}}$ , which captures the appearance of a part, is assumed to be a Normal distribution with zero-mean and identity covariance $\mathcal{N}(0,\mathcal{I})$ . The posterior $Q^{\mathrm{O}}$ , which captures the presence or absence a part, is assumed to be a Bernoulli
+
+distribution Bern $\left(\mathbf{z}_{\mathrm{occ}}^{\mathrm{prior}}\right)$ with prior $\mathbf{z}_{\mathrm{occ}}^{\mathrm{prior}}$ . Therefore, the ELBO for our approach can written as (refer to (3)):
+
+$$
+\begin{array}{l} \mathcal {L} _ {\text {P a t c h V A E}} (\mathbf {x}) = - \mathbb {E} _ {\mathbf {z} _ {\mathrm {p}} \sim Q \left\{\mathrm {A}, 0 \right\} \left(\mathbf {z} _ {\mathrm {p}} \mid \mathbf {x}\right)} \left[ G \left(\mathbf {x} \mid \mathbf {z} _ {\mathrm {p}}\right) \right] \\ + \beta \mathbb {K L} \left[ Q ^ {\{A, O \}} \left(\mathbf {z} _ {p} \mid \mathbf {x}\right) \| p \left(\mathbf {z} _ {p}\right) \right] \tag {8} \\ \end{array}
+$$
+
+where, the KL term can be expanded as:
+
+$$
+\begin{array}{l} \mathbb {K L} \left[ Q ^ {\{A, O \}} \left(\mathbf {z} _ {p} \mid \mathbf {x}\right) \| p \left(\mathbf {z} _ {p}\right) \right] = \\ \beta_ {\text {a p p}} \sum_ {l = 1} ^ {L} \mathbb {K L} \left(Q ^ {\mathrm {O}} \left(\mathbf {z} _ {\text {o c c}} ^ {l} \mid \mathbf {x}\right) \| \operatorname {B e r n} \left(\mathbf {z} _ {\text {o c c}} ^ {\text {p r i o r}}\right)\right) \tag {9} \\ + \beta_ {\text {o c c}} \mathbb {K L} \left(Q ^ {\mathrm {A}} \left(\mathbf {z} _ {\text {a p p}} \mid \mathbf {x}\right) \| \mathcal {N} (0, \mathcal {I})\right) \\ \end{array}
+$$
+
+Implementation details. As discussed in Section 3.1, the first and second terms of the RHS of (8) can be trained using L2 reconstruction loss and reparameterization trick [19]. In addition, we also need to compute KL Divergence loss for part occurrence. Learning discrete probability distribution is a challenging task since there is no gradient defined to backpropagate reconstruction loss through the stochastic layer at decoder even when using the reparameterization trick. Therefore, we use the relaxed-bernoulli approximation [22, 2] for training part occurrence distributions $\mathbf{z}_{\mathrm{occ}}^{l}$ .
+
+For an $H\times W$ image, network $Q(\mathbf{f}\mid \mathbf{x})$ first generates feature maps of size $(h\times w\times d_e)$ , where $(h,w)$ are spatial dimensions and $d_{e}$ is the number of channels. Therefore, the number of locations $L = h\times w$ . Encoders $Q_{\mathbf{f}}^{\mathrm{A}}(\mathbf{z}_{\mathrm{app}}\mid \mathbf{f})$ and $Q_{\mathbf{f}}^{\mathrm{O}}(\mathbf{z}_{\mathrm{occ}}^{l}\mid \mathbf{f})$ are single layer neural networks to compute $\mathbf{z}_{\mathrm{app}}$ and $\mathbf{z}_{\mathrm{occ}}^{l}$ . $\mathbf{z}_{\mathrm{occ}}^{l}$ is $(h\times w\times 1)$ -dimensional multivariate bernoulli parameter and $\mathbf{z}_{\mathrm{app}}$ is $(1\times 1\times d_p)$ -dimensional multivariate gaussian. $d_{p}$ is length of the latent vector for a single part. Input to the decoder $\hat{\mathbf{z}}$ is $(h\times w\times d_p)$ -dimensional. In all experiments, we fix $h = \frac{H}{8}$ and $w = \frac{W}{8}$ .
+
+Constructing $\mathbf{z}_{\mathrm{app}}$ . Notice that $\mathbf{f}$ is an $(h\times w\times d_e)$ -dimensional feature map and $\mathbf{z}_{\mathrm{occ}}^l$ is $(h\times w\times 1)$ -dimensional binary output, but $\mathbf{z}_{\mathrm{app}}$ is $(1\times 1\times d_p)$ -dimensional feature vector. If $\sum_{l}\mathbf{z}_{\mathrm{occ}}^{l} > 1$ , the part occurs at multiple locations in an image. Since all these locations correspond to same part, their appearance should be the same. To incorporate this, we take the weighted average of the part appearance feature at each location, weighted by the probability that the part is present. Since we use the probability values for averaging the result is deterministic. This operation is encapsulated by the $Q^{\mathrm{A}}$ encoder (refer to Figure 2b). During image generation, we sample $\hat{\mathbf{z}}_{\mathrm{app}}$ once and replicate it at each location where $\hat{\mathbf{z}}_{\mathrm{occ}}^{l} = 1$ . During training, this forces the model to: (1) only predict $\hat{\mathbf{z}}_{\mathrm{occ}}^{l} = 1$ where similar looking parts occur, and (2) learn a common representation for the part that occurs at these locations. Note that $\mathbf{z}_{\mathrm{app}}$ can be modeled as a mixture of distributions (e.g.,
+
+mixture of gaussians) to capture complicated appearances. However, in this work we assume that the convolutional neural network based encoders are powerful enough to map variable appearance of semantic concepts to similar feature representations. Therefore, we restrict ourselves to a single gaussian distribution.
+
+# 3.3. PatchVAE with multiple parts
+
+Next we extend the framework described above to use multiple parts. To use $N$ parts, we use $N \times 2$ encoder networks $Q^{\mathrm{A}(i)}\left(\mathbf{z}_{\mathrm{app}}^{(i)} \mid \mathbf{x}\right)$ and $Q^{\mathrm{O}(i)}\left(\mathbf{z}_{\mathrm{occ}}^{l(i)} \mid \mathbf{x}\right)$ , where $\mathbf{z}_{\mathrm{app}}^{(i)}$ and $\mathbf{z}_{\mathrm{occ}}^{l(i)}$ parameterize the $i^{\text{th}}$ part. Again, this can be implemented efficiently as 2 networks by concatenating the outputs together. The image generator samples $\hat{\mathbf{z}}_{\mathrm{app}}^{(i)}$ and $\hat{\mathbf{z}}_{\mathrm{occ}}^{l(i)}$ from the outputs of these encoder networks and constructs $\hat{\mathbf{z}}^{(i)}$ . We obtain the final patch latent code $\hat{\mathbf{z}}$ by concatenating all $\hat{\mathbf{z}}^{(i)}$ in channel dimension. Therefore, $\hat{\mathbf{z}}^{(i)}$ is $(h \times w \times d_p)$ -dimensional and $\hat{\mathbf{z}}$ is $(h \times w \times (N \times d_p))$ -dimensional stochastic feature map. For this multiple part case, (6) can be written as:
+
+$$
+\mathbf {z} _ {\mathbf {P}} = \left[ \begin{array}{l} \mathbf {z} _ {\mathrm {p}} ^ {(1)}; \mathbf {z} _ {\mathrm {p}} ^ {(1)}; \dots ; \mathbf {z} _ {\mathrm {p}} ^ {(N)} \end{array} \right] \tag {10}
+$$
+
+$$
+\text {w h e r e} \mathbf {z} _ {\mathrm {p}} ^ {(i)} = \left[ \mathbf {z} _ {\mathrm {o c c}} ^ {1 (i)}; \mathbf {z} _ {\mathrm {o c c}} ^ {2 (i)}; \ldots ; \mathbf {z} _ {\mathrm {o c c}} ^ {L (i)}; \mathbf {z} _ {\mathrm {a p p}} ^ {(i)} \right].
+$$
+
+Similarly, (8) and (9) can be written as:
+
+$$
+\begin{array}{l} \mathcal {L} _ {\text {M u l t i P a t c h V A E}} (\mathbf {x}) = - \mathbb {E} _ {\mathbf {z} \mathbf {p}} \left[ G \left(\mathbf {x} \mid \mathbf {z} _ {\mathbf {P}}\right) \right] \\ + \beta_ {\mathrm {a p p}} \sum_ {i = 1} ^ {N} \sum_ {l = 1} ^ {L} \mathbb {K L} \left(Q ^ {\mathrm {O} (i)} \left(\mathbf {z} _ {\mathrm {o c c}} ^ {l (i)} \mid \mathbf {x}\right) \| \operatorname {B e r n} \left(\mathbf {z} _ {\mathrm {o c c}} ^ {\text {p i o r}}\right)\right) \\ + \beta_ {\text {o c c}} \sum_ {i = 1} ^ {N} \mathbb {K L} \left(Q ^ {\mathrm {A} (i)} \left(\mathbf {z} _ {\text {a p p}} ^ {(i)} \mid \mathbf {x}\right) \| \mathcal {N} (0, \mathcal {I})\right) \tag {11} \\ \end{array}
+$$
+
+The training details and assumptions of posteriors follow the previous section.
+
+# 3.4. Improved Reconstruction Loss
+
+The L2 reconstruction loss used for training $\beta$ -VAEs (and other reconstruction based approaches) gives equal importance to each region of an image. This might be reasonable for tasks like image compression and image de-noising. However, for the purposes of learning semantic representations, not all regions are equally important. For example, "sky" and "walls" occupy large portions of an image, whereas concepts like "windows," "wheels," "faces" are comparatively smaller, but arguably more important. To incorporate this intuition, we use a simple and intuitive strategy to weigh the regions in an image in proportion to the gradient energy in the region. More concretely, we compute laplacian of an image to get the intensity of gradients per-pixel and average
+
+the gradient magnitudes in $8 \times 8$ local patches. The weight multiplier for the reconstruction loss of each $8 \times 8$ patch in the image is proportional to the average magnitude of the patch. All weights are normalized to sum to one. We refer to this as weighted loss $(\mathcal{L}_{\mathrm{w}})$ . Note that this is similar to the gradient-energy biased sampling of mid-level patches used in [30, 7]. Examples of weight masks are provided in the supplemental material.
+
+In addition, we also consider an adversarial training strategy from GANs to train VAEs [21], where the discriminator network from GAN implicitly learns to compare images and gives a more abstract reconstruction error for the VAE. We refer to this variant by using 'GAN' suffix in experiments. In Section 4.2, we demonstrate that the proposed weighted loss $(\mathcal{L}_{\mathrm{w}})$ is complementary to the discriminator loss from adversarial training, and these losses result in better recognition capabilities for both $\beta$ -VAE and PatchVAE.
+
+# 4. Experiments
+
+Datasets. We evaluate PatchVAE on CIFAR100 [20], MIT Indoor Scene Recognition [27], Places [37] and Imagenet [4] datasets. CIFAR100 consists of $60\mathrm{k}32\times 32$ color images from 100 classes, with 600 images per class. There are 50000 training images and 10000 test images. Indoor dataset contains 67 categories, and a total of 15620 images. Train and test subsets consist of 80 and 20 images per class respectively. Places dataset has 2.5 millions of images with 205 categories. Imagenet dataset has over a million images from 1000 categories.
+
+Learning paradigm. In order to evaluate the utility of Patch-VAE features for recognition, we setup the learning paradigm as follows: we will first train the model in an unsupervised manner on all training images. After that, we discard the generator network and use only part of the encoder network $\phi(\mathbf{x})$ to train a supervised model on the classification task of the respective dataset. We study different training strategies for the classification stage as discussed later.
+
+Training details. In all experiments, we use the following architectures. For CIFAR100, Indoor67, and Place205, $\phi (\mathbf{x})$ has a conv layer followed by two residual blocks [13]. For ImageNet, $\phi (\mathbf{x})$ is a ResNet18 model (a conv layer followed by four residual blocks). For all datasets, $Q^{\mathrm{A}}$ and $Q^{\mathrm{O}}$ have a single conv layer each. For classification, we start from $\phi (\mathbf{x})$ , and add a fully-connected layer with 512 hidden units and a final fully-connected layer as classifier. More details can be found in the supplemental material.
+
+During the unsupervised learning phase of training, all methods are trained for 90 epochs for CIFAR100 and Indoor67, 2 epochs for Places205, and 30 epochs for ImageNet dataset. All methods use ADAM optimizer for training, with initial learning rate of $1 \times 10^{-4}$ and a minibatch size of 128. For relaxed bernoulli in $Q^{\mathrm{O}}$ , we start with the temperature of
+
+Table 1: Classification results on CIFAR100, Indoor67, and Places205. We initialize the classification model with the representations $\phi (\mathbf{x})$ learned from unsupervised learning task. The model $\phi (\mathbf{x})$ comprises of a conv layer followed by two residual blocks (each having 2 conv layers). First column (called 'Conv1') corresponds to Top-1 classification accuracy with pre-trained model with the first conv layer frozen, second and third columns correspond to results with first three and first five conv layers frozen respectively. Details in Section 4.1
+
+| Model | CIFAR100 | Indoor67 | Places205 |
| Conv1 | Conv[1-3] | Conv[1-5] | Conv1 | Conv[1-3] | Conv[1-5] | Conv1 | Conv[1-3] | Conv[1-5] |
| β-VAE | 44.12 | 39.65 | 28.57 | 20.08 | 17.76 | 13.06 | 28.29 | 24.34 | 8.89 |
| β-VAE + Lw | 44.96 | 40.30 | 28.33 | 21.34 | 19.48 | 13.96 | 29.43 | 24.93 | 9.41 |
| β-VAE-GAN | 44.69 | 40.13 | 29.89 | 19.10 | 17.84 | 13.06 | 28.48 | 24.51 | 9.72 |
| β-VAE-GAN + Lw | 45.61 | 41.35 | 31.53 | 20.45 | 18.36 | 14.33 | 29.63 | 25.26 | 10.66 |
| PatchVAE | 43.07 | 38.58 | 28.72 | 20.97 | 19.18 | 13.43 | 28.63 | 24.95 | 11.09 |
| PatchVAE + Lw | 43.75 | 40.37 | 30.55 | 23.21 | 21.87 | 15.45 | 29.39 | 26.29 | 12.07 |
| PatchVAE-GAN | 44.45 | 40.57 | 31.74 | 21.12 | 19.63 | 14.55 | 28.87 | 25.25 | 12.21 |
| PatchVAE-GAN + Lw | 45.39 | 41.74 | 32.65 | 22.46 | 21.87 | 16.42 | 29.36 | 26.30 | 13.39 |
| BiGAN | 47.72 | 41.89 | 31.58 | 21.64 | 17.09 | 9.70 | 30.06 | 25.11 | 10.82 |
| Imagenet Pretrained | 55.99 | 54.99 | 54.36 | 45.90 | 45.82 | 40.90 | 37.08 | 36.46 | 31.26 |
+
+Table 2: ImageNet classification results using ResNet18. We initialize weights from using the unsupervised task and fine-tune the last two residual blocks. Details in Section 4.1
+
+| Model | Top-1 Acc. | Top-5 Acc. |
| β-VAE | 44.45 | 69.67 |
| PatchVAE | 47.01 | 71.71 |
| β-VAE + Lw | 47.28 | 71.78 |
| PatchVAE + Lw | 47.87 | 72.49 |
| Imagenet Supervised | 61.37 | 83.79 |
+
+1.0 with an annealing rate of $3 \times 10^{-5}$ (following the details in [2]). For training the classifier, all methods use stochastic gradient descent (SGD) with momentum with a minibatch size of 128. Initial learning rate is $1 \times 10^{-2}$ and we reduce it by a factor of 10 every 30 epochs. All experiments are trained for 90 epochs for CIFAR100 and Indoor67, 5 epochs for Places205, and 30 epochs for ImageNet datasets.
+
+Baselines. We use the $\beta$ -VAE model (Section 3.1) as our primary baseline. In addition, we use weighted loss and discriminator loss resulting in the $\beta$ -VAE-\* family of baselines. We also compare against a BiGAN model from [8]. We use similar backbone architectures for encoder/decoder (and discriminator if present) across all methods, and tried to keep the number of parameters in different approaches comparable to the best of our ability. Exact architecture details can be found in the supplemental material.
+
+# 4.1. Downstream classification performance
+
+In Table 1, we report the top-1 classification results on CIFAR100, Indoor67, and Places205 datasets for all methods with different training strategies for classification. First, we keep all the pre-trained weights in $\phi(\mathbf{x})$ from the un
+
+
+CIFAR100: Images and Encoded Occurrence Map
+
+
+ImageNet: Images and Encoded Occurrence Map
+Figure 3: Encoded part occurrence maps discovered on CIFAR100 and ImageNet. Each row represents a different part.
+
+supervised task frozen and only train the two newly added conv layers in the classification network (reported under column 'Conv[1-5]'). We notice that our method (with different losses) generally outperforms the $\beta$ -VAE counterpart by a healthy margin. This shows that the representations learned by PatchVAE framework are better for recognition compared to $\beta$ -VAEs. Moreover, better reconstruction losses ('GAN' and $\mathcal{L}_{\mathrm{w}}$ ) generally improve both $\beta$ -VAE and PatchVAE, and are complementary to each other.
+
+Next, we fine-tune the last residual block along with the two conv layers ('Conv[1-3]' column). We observe that PatchVAE performs better than VAE under all settings except the for CIFAR100 with just L2 loss. However, when using better reconstruction losses, the performance of PatchVAE improves over $\beta$ -VAE. Similarly, we fine-tune all but
+
+
+Figure 4: A few representative examples for several parts to qualitatively demonstrate the visual concepts captured by PatchVAE. For each part, we crop image patches centered on the part location where it is predicted to be present. Selected patches are sorted by part occurrence probability as score. We manually select a diverse set from the top-50 occurrences from the training images. As can be seen, a single part may capture diverse set of concepts that are similar in shape or texture or occur in similar context, but belong to different categories. We show which categories the patches come from (note that category information was not used while training the model).
+
+the first conv layer and report the results in 'Conv1' column. Again, we notice similar trends, where our method generally performs better than $\beta$ -VAE on Indoor67 and Places205 dataset, but $\beta$ -VAE performs better CIFAR100 by a small margin. When compared to BiGAN, PatchVAE representations are better on all datasets ('Conv[1-5]') by a huge margin. However, when fine-tuning the pre-trained weights, BiGAN performs better on two out of four datasets. We also report results using pre-trained weights in $\phi(\mathbf{x})$ using supervised ImageNet classification task (last column, Table 1) for completeness. The results indicate that PatchVAE learns better semantic representations compared to $\beta$ -VAE.
+
+ImageNet Results. Finally, we report results on the large-scale ImageNet benchmark in Table 2. For these experiments, we use ResNet18 [13] architecture for all methods. All weights are first learned using the unsupervised tasks. Then, we fine-tune the last two residual blocks and train the two newly added conv layers in the classification network (therefore, first conv layer and the following two residual blocks are frozen). We notice that PatchVAE framework outperforms $\beta$ -VAE under all settings, and the proposed weighted loss helps both approaches. Finally, the last row in Table 2 reports classification results of same architecture randomly initialized and trained end-to-end on ImageNet using supervised training for comparison.
+
+# 4.2. Qualitative Results
+
+We present qualitative results to validate our hypothesis. First, we visualize whether the structure we impose on the VAE bottleneck is able to capture occurrence and appearance of important parts of images. We visualize the PatchVAE trained on images from CIFAR100 and Imagenet datasets in the following ways.
+
+Concepts captured. First, we visualize the part occurrences
+
+
+Figure 5: Swapping source and target part appearance. Column 1, 2 show a source image with the occurrence map of one of the parts. We can swap the appearance vector of this part with appearance vectors of a different part in target images. Column 3, 4 show three target images with occurrence maps of one of their parts. Observe the change in reconstructions (column 5, 6) as we bring in the new appearance vector. The new reconstruction inherits properties of the source at specific locations in the target.
+
+in Figure 3. We can see that the parts can capture round (fruit-like) shapes in the top row and faces in the second row regardless of the class of the image. Similarly for ImageNet, occurrence map of a specific part in images of chicken focuses on head and neck. Note that these semantically these parts are more informative than just texture or color what a $\beta$ -VAE can capture. In Figure 4, we show parts captured by the ImageNet model by cropping a part of image centered around the occurring part. We can see that parts are able to capture multiple concepts, similar in either shape, texture, or context in which they occur.
+
+Swapping appearances. Using PatchVAE, we can swap appearance of a part with the appearance vector of another part from a different image. In Figure 5, keeping the occurrence map same for a target image, we modify the appearance of
+
+Table 3: Effect of $N$ : Increasing the maximum number of patches increases the discriminative power for CIFAR100 but has little or negative effect for Indoor67
+
+| N | CIFAR100 | Indoor67 |
| 4 | 27.59 | 14.40 |
| 8 | 28.74 | 12.69 |
| 16 | 28.94 | 14.33 |
| 32 | 27.78 | 13.28 |
| 64 | 29.00 | 12.76 |
+
+Table 4: Effect of $d_p$ : Increasing the number of hidden units for a patch has very little impact on classification performance
+
+| dp | CIFAR100 | Indoor67 |
| 3 | 28.63 | 14.25 |
| 6 | 28.97 | 14.55 |
| 9 | 28.21 | 14.55 |
+
+Table 5: Effect of ${\mathbf{z}}_{\text{occ }}^{\text{prior }}$ : Increasing increasing the prior probability of patch occurrence has adverse effect on classification performance
+
+| zprincipalocc | CIFAR100 | Indoor67 |
| 0.01 | 28.86 | 14.33 |
| 0.05 | 28.67 | 14.25 |
| 0.1 | 28.31 | 14.03 |
+
+Table 6: Effect of ${\beta }_{\text{occ }}$ : Too high or too low ${\beta }_{\text{occ }}$ can deteriorate the performance of learned representations
+
+| βocc | CIFAR100 | Indoor67 |
| 0.06 | 30.11 | 14.10 |
| 0.3 | 30.37 | 15.67 |
| 0.6 | 28.90 | 13.51 |
+
+Table 7: Reconstruction metrics on ImageNet. PatchVAE sacrifices reconstruction quality to learn discriminative parts, resulting in higher recognition performance (Table 2)
+
+| Model | PSNR ↑ | FID ↓ | SSIM ↑ |
| β-VAE | 4.857 | 108.741 | 0.289 |
| PatchVAE | 4.342 | 113.692 | 0.235 |
+
+a randomly chosen part and observe the change in reconstructed image. We notice that given the same source part, the decoder tries similar things across different target images. However, the reconstructions are worse since the decoder has never encountered this particular combination of part appearance before.
+
+Discriminative vs. Generative strength. As per our design, PatchVAE compromises the generative capabilities to learn more discriminative features. To quantify this, we use the images reconstructed from $\beta$ -VAE and PatchVAE models (trained on ImageNet) and compute three different metrics to measure the quality of reconstructions of test images. Table 7 shows that $\beta$ -VAE is better at reconstruction.
+
+# 4.3. Ablation Studies
+
+We study the impact of various hyper-parameters used in our experiments. For the purpose of this evaluation, we follow a similar approach as in the 'Conv[1-5]' column of Table 1 and all hyperparameters from the previous section. We use CIFAR100 and Indoor67 datasets for ablation analysis.
+
+Maximum number of patches. Maximum number of parts $N$ used in our framework. Depending on the dataset, higher value of $N$ can provide wider pool of patches to pick from. However, it can also make the unsupervised learning task harder, since in a minibatch of images, we might not get too many repeat patches. Table 3(left) shows the effect of $N$ on CIFAR100 and Indoor67 datasets. We observe that while increasing number of patches improves the discriminative power in case of CIFAR100, it has little or negative effect in case of Indoor67. A possible reason for this decline in performance for Indoor67 can be smaller size of the dataset
+
+(i.e., fewer images to learn).
+
+Number of hidden units for a patch appearance $\hat{\mathbf{z}}_{\mathrm{app}}$ . Next, we study the impact of the number of channels in the appearance feature $\hat{\mathbf{z}}_{\mathrm{app}}$ for each patch $(d_p)$ . This parameter reflects the capacity of individual patch's latent representation. While this parameter impacts the reconstruction quality of images. We observed that it has little or no effect on the classification performance of the base features. Results are summarized in Table 4(right) for both CIFAR100 and Indoor67 datasets.
+
+Prior probability for patch occurrence $\mathbf{z}_{\mathrm{occ}}^{\mathrm{prior}}$ . In all our experiments, prior probability for a patch is fixed to $1 / N$ , i.e., inverse of maximum number of patches. The intuition is to encourage each location on occurrence maps to fire for at most one patch. Increasing this patch occurrence prior will allow all patches to fire at the same location. While this would make the reconstruction task easier, it will become harder for individual patches to capture anything meaningful. Table 5 shows the deterioration of classification performance on increasing $\mathbf{z}_{\mathrm{occ}}^{\mathrm{prior}}$ .
+
+Patch occurrence loss weight $\beta_{\mathrm{occ}}$ . The weight for patch occurrence KL Divergence has to be chosen carefully. If $\beta_{\mathrm{occ}}$ is too low, more patches can fire at same location and this harms the learning capability of patches; and if $\beta_{\mathrm{occ}}$ is too high, decoder will not receive any patches to reconstruct from and both reconstruction and classification will suffer. Table 6 summarizes the impact of varying $\beta_{\mathrm{occ}}$ .
+
+# 5. Conclusion
+
+We presented a patch-based bottleneck in the VAE framework that encourages learning useful representations for recognition. Our method, PatchVAE, constrains the encoder architecture to only learn patches that are repetitive and consistent in images as opposed to learning everything, and therefore results in representations that perform much better for recognition tasks compared to vanilla VAEs. We also demonstrate that losses that favor high-energy foreground regions of an image are better for unsupervised learning of representations for recognition.
+
+# References
+
+[1] Lama Affara, Bernard Ghanem, and Peter Wonka. Supervised convolutional sparse coding. CoRR, abs/1804.02678, 2018. 2
+[2] Eirikur Agustsson, Fabian Mentzer, Michael Tschannen, Lukas Cavigelli, Radu Timofte, Luca Benini, and Luc V Gool. Soft-to-hard vector quantization for end-to-end learning compressible representations. In Advances in Neural Information Processing Systems, pages 1141-1151, 2017. 4, 6
+[3] Martin Arjovsky, Soumith Chintala, and Léon Bottou. Wasserstein gan. arXiv preprint arXiv:1701.07875, 2017. 2
+[4] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In Computer Vision and Pattern Recognition, 2009. IEEE Conference on, pages 248–255. IEEE, 2009. 2, 5
+[5] Carl Doersch, Abhinav Gupta, and Alexei A Efros. Context as supervisory signal: Discovering objects with predictable context. In European Conference on Computer Vision, pages 362-377. Springer, 2014. 2
+[6] Carl Doersch, Abhinav Gupta, and Alexei A. Efros. Unsupervised visual representation learning by context prediction. In International Conference on Computer Vision (ICCV), 2015.
+[7] Carl Doersch, Saurabh Singh, Abhinav Gupta, Josef Sivic, and Alexei A. Efros. What makes paris look like paris? ACM Transactions on Graphics (SIGGRAPH), 31(4):101:1-101:9, 2012. 2, 3, 5
+[8] Jeff Donahue, Philipp Krahenbuhl, and Trevor Darrell. Adversarial feature learning. arXiv preprint arXiv:1605.09782, 2016. 2, 6
+[9] Marco Fraccaro, Simon Kamronn, Ulrich Paquet, and Ole Winther. A disentangled recognition and nonlinear dynamics model for unsupervised learning. In NIPS, 2017. 2
+[10] 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. 2
+[11] Karol Gregor, Ivo Danihelka, Alex Graves, Danilo Jimenez Rezende, and Daan Wierstra. Draw: A recurrent neural network for image generation. arXiv preprint arXiv:1502.04623, 2015. 2
+[12] Ishaan Gulrajani, Kundan Kumar, Faruk Ahmed, Adrien Ali Taiga, Francesco Visin, David Vazquez, and Aaron Courville. Pixelvae: A latent variable model for natural images. arXiv preprint arXiv:1611.05013, 2016. 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, pages 770-778, 2016. 5, 7
+[14] Mayank Juneja, Andrea Vedaldi, CV Jawahar, and Andrew Zisserman. Blocks that shout: Distinctive parts for scene classification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 923-930, 2013. 2, 3
+[15] Salman H Khan, Munawar Hayat, and Nick Barnes. Adversarial training of variational auto-encoders for high fidelity image generation. arXiv preprint arXiv:1804.10323, 2018. 2
+
+[16] Hyunjik Kim and Andriy Mnih. Disentangling by factorising. arXiv preprint arXiv:1802.05983, 2018. 2
+[17] Durk P Kingma, Shakir Mohamed, Danilo Jimenez Rezende, and Max Welling. Semi-supervised learning with deep generative models. In Advances in neural information processing systems, pages 3581-3589, 2014. 2
+[18] Diederik P Kingma, Tim Salimans, Rafal Jozefowicz, Xi Chen, Ilya Sutskever, and Max Welling. Improved variational inference with inverse autoregressive flow. In Advances in Neural Information Processing Systems, pages 4743-4751, 2016. 2
+[19] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. 2, 3, 4
+[20] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, CiteSeer, 2009. 2, 5
+[21] Anders Boesen Lindbo Larsen, Søren Kaae Sønderby, Hugo Larochelle, and Ole Winther. Autoencoding beyond pixels using a learned similarity metric. arXiv preprint arXiv:1512.09300, 2015. 2, 5
+[22] Chris J Maddison, Andriy Mnih, and Yee Whye Teh. The concrete distribution: A continuous relaxation of discrete random variables. arXiv preprint arXiv:1611.00712, 2016. 4
+[23] Loic Matthew, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-vae: Learning basic visual concepts with a constrained variational framework. In ICLR 2017, 2017. 2, 3
+[24] Mehdi Noroozi and Paolo Favaro. Unsupervised learning of visual representations by solving jigsaw puzzles. In European Conference on Computer Vision, pages 69-84. Springer, 2016. 2
+[25] Deepak Pathak, Ross Girshick, Piotr Dólár, Trevor Darrell, and Bharath Hariharan. Learning features by watching objects move. In CVPR, 2017. 2
+[26] Deepak Pathak, Philipp Krahenbuhl, Jeff Donahue, Trevor Darrell, and Alexei A Efros. Context encoders: Feature learning by inpainting. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2536-2544, 2016. 2
+[27] Ariadna Quattoni and Antonio Torralba. Recognizing indoor scenes. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pages 413-420. IEEE, 2009. 2, 5
+[28] Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. CoRR, abs/1511.06434, 2015. 2
+[29] 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. 2
+[30] Saurabh Singh, Abhinav Gupta, and Alexei A. Efros. Unsupervised discovery of mid-level discriminative patches. In European Conference on Computer Vision, 2012. 2, 3, 5
+[31] Linda Smith and Michael Gasser. The development of embodied cognition: Six lessons from babies. Artificial life, 11(1-2):13-29, 2005. 1
+
+[32] Kihyuk Sohn, Honglak Lee, and Xinchen Yan. Learning structured output representation using deep conditional generative models. In Advances in neural information processing systems, pages 3483-3491, 2015. 2
+[33] Chen Sun, Abhinav Shrivastava, Saurabh Singh, and Abhinav Gupta. Revisiting unreasonable effectiveness of data in deep learning era. 2017 IEEE International Conference on Computer Vision (ICCV), pages 843-852, 2017. 1
+[34] Aäron van den Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel recurrent neural networks. CoRR, abs/1601.06759, 2016. 2
+[35] Xiaolong Wang and Abhinav Gupta. Unsupervised learning of visual representations using videos. In Proceedings of the IEEE International Conference on Computer Vision, pages 2794-2802, 2015. 2
+[36] Xiaolong Wang, Kaiming He, and Abhinav Gupta. Transitive invariance for self-supervised visual representation learning. In Proc. of Int'l Conf. on Computer Vision (ICCV), 2017. 2
+[37] 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. 2, 5
+[38] 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. 2
\ No newline at end of file
diff --git a/patchvaelearninglocallatentcodesforrecognition/images.zip b/patchvaelearninglocallatentcodesforrecognition/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..662ad9f24da3f1e9810a167eb2181573555562ec
--- /dev/null
+++ b/patchvaelearninglocallatentcodesforrecognition/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:95f65fca16892e1626448c75583a5c27f0c8cbc5942de7eba97a4007e12dddd8
+size 512882
diff --git a/patchvaelearninglocallatentcodesforrecognition/layout.json b/patchvaelearninglocallatentcodesforrecognition/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..ad4e41d927ee716cccfebc5dc1aa92ed431c48af
--- /dev/null
+++ b/patchvaelearninglocallatentcodesforrecognition/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:810bc5f241ccbe1780214d2a04aacb754d6b9b1e98a561d04f26a6769ddac6b7
+size 485596
diff --git a/pathologicalretinalregionsegmentationfromoctimagesusinggeometricrelationbasedaugmentation/14010fd7-53f8-4a19-b7e5-08758b9d15bf_content_list.json b/pathologicalretinalregionsegmentationfromoctimagesusinggeometricrelationbasedaugmentation/14010fd7-53f8-4a19-b7e5-08758b9d15bf_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..b5371fdf5a5f1bfddb3e756f45445424ff64b8bb
--- /dev/null
+++ b/pathologicalretinalregionsegmentationfromoctimagesusinggeometricrelationbasedaugmentation/14010fd7-53f8-4a19-b7e5-08758b9d15bf_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:66a295612db0b7592035658a8d21a46061dd448d6e1949669c19a9719e2d4b0b
+size 81557
diff --git a/pathologicalretinalregionsegmentationfromoctimagesusinggeometricrelationbasedaugmentation/14010fd7-53f8-4a19-b7e5-08758b9d15bf_model.json b/pathologicalretinalregionsegmentationfromoctimagesusinggeometricrelationbasedaugmentation/14010fd7-53f8-4a19-b7e5-08758b9d15bf_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..2684e7375faa62568a82bdc34c8299ba3111e5bd
--- /dev/null
+++ b/pathologicalretinalregionsegmentationfromoctimagesusinggeometricrelationbasedaugmentation/14010fd7-53f8-4a19-b7e5-08758b9d15bf_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cc77f0b3b5edf2fa638ea929ded689dd172bb28da43024f326b3cacec478e4ee
+size 106829
diff --git a/pathologicalretinalregionsegmentationfromoctimagesusinggeometricrelationbasedaugmentation/14010fd7-53f8-4a19-b7e5-08758b9d15bf_origin.pdf b/pathologicalretinalregionsegmentationfromoctimagesusinggeometricrelationbasedaugmentation/14010fd7-53f8-4a19-b7e5-08758b9d15bf_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..26810b4c27ed81e94c9f57462c25e9670e1a4acf
--- /dev/null
+++ b/pathologicalretinalregionsegmentationfromoctimagesusinggeometricrelationbasedaugmentation/14010fd7-53f8-4a19-b7e5-08758b9d15bf_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:72accf8e69eced6257ade4f3cb912e4a8bebca1d0fc1779d8dac744bbd701806
+size 1047278
diff --git a/pathologicalretinalregionsegmentationfromoctimagesusinggeometricrelationbasedaugmentation/full.md b/pathologicalretinalregionsegmentationfromoctimagesusinggeometricrelationbasedaugmentation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..58a930bbfe3e935758265f91c158048119f5414d
--- /dev/null
+++ b/pathologicalretinalregionsegmentationfromoctimagesusinggeometricrelationbasedaugmentation/full.md
@@ -0,0 +1,377 @@
+# Pathological Retinal Region Segmentation From OCT Images Using Geometric Relation Based Augmentation
+
+Dwarikanath Mahapatra1
+
+Behzad Bozortabar $^{2,3,4}$
+
+Ling Shao1
+
+IIAI, Abu Dhabi
+
+2 LTS5, EPFL, Lausanne
+
+$^{3}$ CIBM, Laussane
+
+4 CHUV, Lausanne
+
+{dwarikanath.mahapatra, ling.shao}@inceptioniai.org behzad.bozortabar@epfl.ch
+
+# Abstract
+
+Medical image segmentation is an important task for computer aided diagnosis. Pixelwise manual annotations of large datasets require high expertise and is time consuming. Conventional data augmentations have limited benefit by not fully representing the underlying distribution of the training set, thus affecting model robustness when tested on images captured from different sources. Prior work leverages synthetic images for data augmentation ignoring the interleaved geometric relationship between different anatomical labels. We propose improvements over previous GAN-based medical image synthesis methods by jointly encoding the intrinsic relationship of geometry and shape. Latent space variable sampling results in diverse generated images from a base image and improves robustness. Given those augmented images generated by our method, we train the segmentation network to enhance the segmentation performance of retinal optical coherence tomography (OCT) images. The proposed method outperforms state-of-the-art segmentation methods on the public RETOUCH dataset having images captured from different acquisition procedures. Ablation studies and visual analysis also demonstrate benefits of integrating geometry and diversity.
+
+# 1. Introduction
+
+Medical image segmentation is an important task for healthcare applications like disease diagnosis, surgical planning, and disease progression monitoring. While deep learning (DL) methods demonstrate state-of-the-art results for medical image analysis tasks [38], their robustness depends upon the availability of a diverse training dataset to learn different disease attributes such as appearance and shape characteristics. Large scale dataset annotations for segmentation require image pixel labels, which is time consuming and involves high degree of clinical expertise. The problem is particularly acute for pathological images since
+
+
+
+
+
+
+
+
+(a)
+(d)
+
+
+(b)
+(c)
+(e)
+Figure 1. (a) Base image (red contour denotes segmentation mask); Example of generated images using: (b) Our proposed GeoGAN method; (c) Zhao et al. [42]; (d) DAGAN method by [1]; (e) cGAN method by [25].
+
+it is difficult to obtain diverse images for less prevalent disease conditions, necessitating data augmentation. We propose a generative adversarial network (GAN) based approach for pathological images augmentation and demonstrate its efficacy in pathological region segmentation. Figure 1 summarizes the image generation results of our approach and [42], and highlights our superior performance by incorporating geometric information.
+
+Traditional augmentations such as image rotations or deformations have limited benefit as they do not fully represent the underlying data distribution of the training set and are sensitive to parameter choices. Recent works [15, 42, 14, 30] proposed to solve this issue by using synthetic data for augmentation and increase diversity in the training samples. However, certain challenges have not been satisfactorily addressed by these methods.
+
+Zhao et. al. [42] proposed a learning-based registration method to register images to an atlas, use corresponding deformation field to deform a segmentation mask and obtain
+
+
+NFL: Nerve Fiber Layer
+GCL: Ganglion Cell Layer
+IPL: Inner Plexiform Layer
+ONL: Outer Nuclear Layer
+IS: Inner Segment
+OS: Outer Segment
+
+(a)
+(b)
+
+INL: Inner Nuclear Layer
+OPL: Outer Plexiform Layer
+
+Figure 2. Example of normal and fluid filled OCT images: (a) example control subject image without any abnormalities (taken from [9]); (b) images with accumulated fluid up due to diabetic macular edema and AMD from our dataset. The fluid areas are marked with red arrows.
+
+RPE: Retinal Pigment Epithelium
+
+new data. This approach presents the following challenges: 1) since registration errors propagate to subsequent stages, inaccurate registration can adversely affect the data generation process; 2) with atlas of a normal subject it is challenging to register images from diseased subjects due to appearance or shape changes. This is particularly relevant for layer segmentation in retinal optical coherence tomography (OCT) images, where there is a drastic difference in layer shape between normal and diseased cases. Figure 2 (a) shows the retinal layers of a normal subject, and Figure 2 (b) shows two cases of retinal fluid build up due to diabetic macular edema (DME) and age related macular degeneration (AMD). The retinal layers are severely distorted compared to Figure 2 (a) and registration approaches have limited impact in generating accurate images.
+
+Recent methods for data augmentation [14, 30, 6, 7] using a generative adversarial network (GAN) [13] have shown moderate success for medical image classification. However, they have limited relevance for segmentation since they do not model geometric relation between different organs and most augmentation approaches do not differentiate between normal and diseased samples. Experiments in Section 4.5 show segmentation methods trained on normal subject images (Figure 2 (a)) are not equally effective for diseased cases due to significant shape changes between the two types. Hence there is a need for augmentation methods that consider the geometric relation between different anatomical regions and generate distinct images for diseased and normal cases. Another limitation of cur
+
+rent augmentation approaches is that they do not incorporate diversity in a principled manner. In [25] shape mask was incorporated manually for image generation, which is not practical and may lead to unrealistic deformations.
+
+# 2. Related Work
+
+# 2.1. Deep Models for Retinal OCT Segmentation
+
+One of the first works to use multi-scale convolutional neural nets (CNNs) on OCT images [35] employed patch-based voxel classification for detecting intraretinal fluid (IRF) and subretinal fluid (SRF) in fully supervised and weakly supervised settings. Fully convolutional neural nets and U-nets were used in [39, 12] to segment IRF, and in [33] to segment both the retinal layers and the fluid. Explicit fluid segmentation methods such as [40] also achieve high classification performance.
+
+# 2.2. Data Augmentation (DA)
+
+While conventional augmentation approaches are easy to implement and generate a large database, their capabilities are limited in inducing data diversity. They are also sensitive to parameter values [11], variation in image resolution, appearance and quality [22].
+
+Recent DL based methods trained with synthetic images outperform those trained with standard DA over classification and segmentation tasks. Antoniou et al. [1] proposed DAGAN for image generation in few shot learning systems. Bozorgtabar et al. [8] used GAN objective for domain transformation by aligning feature distribution of target data and source domain. Mahapatra et al. [25] used conditional GAN (cGAN) for generating informative synthetic chest Xray images conditioned on a perturbed input mask. GANs have also been used for generating synthetic retinal images [43] and brain magnetic resonance images (MRI) [14, 36], facial expression analysis [5], for super resolution [21, 24], image registration [27, 26, 28] and generating higher strength MRI from their low strength acquisition counterparts [41]. Generated images have implicit variations in intensity distribution but there is no explicit attempt to model attributes such as shape variations that are important to capture different conditions across a population. Milletari et al. [29] augmented medical images with simulated anatomical variations but demonstrate varying performance based on transformation functions and parameter settings.
+
+# 2.3. Image Generation Using Uncertainty
+
+Kendall et al. [17] used approximate Bayesian inference for parameter uncertainty estimation in scene understanding, but did not capture complex correlations between different labels. Lakshminarayanan et al. [20] proposed a method to generate different samples using an ensemble of $M$ networks while Rupprecht et al. [34] presented a sin
+
+gle network with $M$ heads for image generation. Sohn et al. [37] proposed a method based on conditional variational autoencoders (cVAE) to model segmentation masks, which improves the quality of generated images. In probabilistic UNet [19], cVAE is combined with UNet [32] to generate multiple segmentation masks, although with limited diversity since randomness is introduced at highest resolution only. Baumgartner et al. [2] introduced a framework to generate images with a greater diversity by injecting randomness at multiple levels.
+
+# 2.4. Our Contribution
+
+Based on the premise that improved data augmentation yields better segmentation performance in a DL system, we hypothesize that improved generation of synthetic images is possible by considering the intrinsic relationships between shape and geometry of anatomical structures [4]. In this paper we present a Geometry-Aware Shape Generative Adversarial Network (GeoGAN) that learns to generate plausible images of the desired anatomy (e.g., retinal OCT images) while preserving learned relationships between geometry and shape. We make the following contributions:
+
+1. Incorporating geometry information contributes to generation of realistic and qualitatively different medical images and shapes compared to standard DA. Other works such as [25, 43] do not incorporate this geometric relationship between anatomical parts.
+2. Use of uncertainty sampling and conditional shape generation on class labels to introduce diversity in the mask generation process. Compared to previous methods we introduce diversity at different stages (different from [25, 43, 19]) and introduce an auxiliary classifier (different from [2, 37]) for improving the quality and accuracy of generated images.
+
+# 3. Method
+
+Our augmentation method: 1) models geometric relationship between multiple segmentation labels; 2) preserves disease class label of original image to learn disease specific appearance and shape characteristics; and 3) introduces diversity in the image generation process through uncertainty sampling. Figure 3 shows the training workflow using a modified UNet based generator network. The set of images and segmentation masks are used to train the generator while the discriminator provides feedback to improve the generator output. Figure 4 depicts generation of synthetic images from the validation image set and their subsequent use in training a UNet for image segmentation at test time.
+
+# 3.1. Geometry Aware Shape Generation
+
+Let us denote an input image as $x$ , the corresponding manual segmentation masks as $s_x$ and the disease class la
+
+bel of $x$ as $l_{x}$ . Our method learns to generate a new image and segmentation label map from a base image and its corresponding manual mask. The first stage is a spatial transformer network (STN) [16] that transforms the base mask to a new shape with different attributes of location, scale and orientation. The transformations used to obtain new segmentation mask $s_{x}^{\prime}$ are applied to $x$ to get corresponding transformed image $x^{\prime}$ . Since the primary aim of our approach is to learn contours and other shape specific information of anatomical regions, a modified UNet architecture as the generator network effectively captures hierarchical information of shapes. It also makes it easier to introduce diversity at different levels of image abstraction.
+
+The generator $\mathbf{G}_g$ takes input $\mathbf{s}_x$ and a desired label vector of output mask $c_{g}$ to output an affine transformation matrix $\mathbf{A}$ via a STN, i.e., $\mathbf{G}_g(\mathbf{s}_x,c_g) = \mathbf{A}$ . $\mathbf{A}$ is used to generate $s_x'$ and $x'$ . The discriminator $\mathbf{D}_{class}$ determines whether output image preserves the desired label $c_{g}$ or not. The discriminator $\mathbf{D}_g$ is tasked with ensuring that the generated masks and images are realistic. Let the minimax criteria between $\mathbf{G}_g$ and $\mathbf{D}_g$ be $\min_{\mathbf{G}_g} \max_{\mathbf{D}_g} \mathbf{L}_g(\mathbf{G}_g,\mathbf{D}_g)$ . The loss function $\mathbf{L}_g$ has three components
+
+$$
+L _ {g} = L _ {a d v} + \lambda_ {1} L _ {\text {c l a s s}} + \lambda_ {2} L _ {\text {s h a p e}} \tag {1}
+$$
+
+where 1) $\mathbf{L}_{adv}$ is an adversarial loss to ensure $\mathbf{G}_g$ outputs realistic deformations; 2) $\mathbf{L}_{class}$ ensures generated image has characteristics of the target output class label (disease or normal); and 3) $\mathbf{L}_{shape}$ ensures new masks have realistic shapes. $\lambda_1, \lambda_2$ balance each term's contribution.
+
+Adversarial loss - $\mathbf{L}_{adv}(\mathbf{G}_g, \mathbf{D}_g)$ : The STN outputs $\widetilde{A}$ , a prediction for $\mathbf{A}$ conditioned on $\mathbf{s}_x$ and a new semantic map $\mathbf{s}_x \oplus \widetilde{A}(\mathbf{s}_x)$ is generated. $\mathbf{L}_{adv}$ is defined as:
+
+$$
+\begin{array}{l} L _ {a d v} \left(G _ {g}, D _ {g}\right) = \mathbb {E} _ {x} \left[ \log D _ {g} \left(\mathbf {s} _ {x} \oplus \widetilde {A} \left(\mathbf {s} _ {x}\right)\right) \right] \tag {2} \\ + \mathbb {E} _ {\mathbf {s} _ {x}} \left[ \log \left(1 - D _ {g} \left(\mathbf {s} _ {x} \oplus \widetilde {A} (\mathbf {s} _ {x})\right)\right) \right], \\ \end{array}
+$$
+
+Classification Loss - $\mathbf{L}_{\mathrm{class}}$ : The affine transformation $\mathbf{A}$ is applied to the base image $\mathbf{x}$ to obtain the generated image $\mathbf{x}'$ . We add an auxiliary classifier when optimizing both $\mathbf{G}_g$ and $\mathbf{D}_g$ and define the classification loss as,
+
+$$
+L _ {c l a s s} = \mathbb {E} _ {\mathbf {x} ^ {\prime}, c _ {g}} [ - \log D _ {c l a s s} \left(c _ {g} \mid x ^ {\prime}\right) ], \tag {3}
+$$
+
+where the term $D_{\text{class}}(c_g|x')$ represents a probability distribution over classification labels computed by $D$ .
+
+Shape Loss - $\mathbf{L}_{shape}$ : We intend to preserve the relative geometric arrangement between the different labels. The generated mask has regions with different assigned segmentation labels because the base mask (from which the image
+
+
+Figure 3. Overview of the steps in the training stage of our method. The images $(X)$ and corresponding segmentation masks $(S_X)$ are input to a STN whose output is fed to the generator network. Generator network is based on UNet architecture, and diversity through uncertainty sampling is injected at different levels. The generated mask $S_X'$ is fed to the discriminator which evaluates its accuracy based on $L_{class}$ , $L_{shape}$ and $L_{adv}$ . The provided feedback is used for weight updates to obtain the final model.
+
+
+Figure 4. Depiction of mask generation. The trained generator network is used on validation set base images to generate new images that are used to train a segmentation network (UNet or Dense UNet). The model then segments retinal layers from test images.
+
+was generated) already has labeled layers. Let us denote by $s_i$ the image region (or pixels) in $\mathbf{s}_x$ assigned label $i$ . Consider another set of pixels, $s_j$ , assigned label $j$ . We calculate $P_{shape}(l_i|s_j,s_i)$ , which is, given regions $s_i,s_j$ , the pairwise probability of $s_i$ being label $i$ . If $n$ denotes the total number of labels, for every label $i$ we calculate the $n - 1$ such probability values and repeat it for all $n$ labels. Thus
+
+$$
+L _ {s h a p e} = \frac {1}{n \times (n - 1)} \sum_ {i, j} ^ {i \neq j} P _ {s h a p e}; (i, j) \in \{1, \dots , n \} \tag {4}
+$$
+
+The probability value is determined from a pre-trained modified VGG16 architecture to compute $L_{shape}$ where the input has two separate maps corresponding to the label pair. Each map's foreground has only the region of the corresponding label and other labels considered background.
+
+The conditional probability between the pair of label maps enables the classifier to implicitly capture geometrical relationships and volume information without the need to define explicit features. The geometric relation between different layers will vary for disease and normal cases, which is effectively captured by our approach.
+
+# 3.2. Sample Diversity From Uncertainty Sampling
+
+The generated mask $s_x'$ is obtained by fusing $L$ levels of the generator $G_g$ (as shown in Figure 3), each of which is associated with a latent variable $z_l$ . We use probabilistic uncertainty sampling to model conditional distribution of segmentation masks and use separate latent variables at multi-resolutions to factor inherent uncertainties. The hierarchical approach introduces diversity at different stages and influences different features (e.g., low level features at the early layers and abstract features in the later layers). Denoting the generated mask as $s$ for simplicity, we obtain conditional distribution $p(s|x)$ for $L$ latent levels as:
+
+$$
+\begin{array}{l} p (s \mid x) = \int p (s \mid z _ {1}, \dots , z _ {L}) p \left(z _ {1} \mid z _ {2}, x\right) \dots \tag {5} \\ p (z _ {L 1} | z _ {L}, x) p (z _ {L} | x) d z _ {1} \dots d z _ {L}. \\ \end{array}
+$$
+
+Latent variable $z_{l}$ models diversity at resolution $2^{-l + 1}$ of the original image (e.g. $z_{1}$ and $z_{3}$ denote the original and $1 / 4$ image resolution). A variational approximation $q(z|s,x)$ approximates the posterior distribution $p(z|s,x)$ where $z = \{z_{1},\dots,z_{L}\}$ . $\log p(s|x) = L(s|x) +$
+
+$KL(q(z|s,x)||p(z|s,x))$ , where $L$ is the evidence lower bound, and $KL(.,.)$ is the Kullback-Leibler divergence. The prior and posterior distributions are parameterized as normal distributions $\mathcal{N}(z|\mu ,\sigma)$
+
+Figure 3 shows example implementation for $L = 3$ . We use 6 resolution levels and $L = 4$ latent levels. Figure 3 shows the latent variables $z_{l}$ forming skip connections in a UNet architecture such that information between the image and segmentation output goes through a sampling step. The latent variables are not mapped to a 1-D vector to preserve the structural relationship between them, and this substantially improves segmentation accuracy. $z_{l}$ 's dimensionality is $r_x2^{-l + 1}\times r_y2^{-l + 1}$ , where $r_x$ , $r_y$ are image dimensions.
+
+# 4. Experimental Results
+
+# 4.1. Dataset Description
+
+We apply our method to OCT images since retinal disease leads to significant change of retinal layers, while changes due to disease in other modalities, such as Xray or MRI, are not so obvious for mildly severe cases. Moreover, in retinal OCT there is greater interaction between different layers (segmentation labels) which is a good use case to demonstrate the effectiveness of our attempt to model the geometric relation between different anatomical regions. The publicly available RETOUCH challenge dataset [3] is used for our experiments. It has images of the following pathologies: 1) Intraretinal Fluid (IRF): contiguous fluid-filled spaces containing columns of tissue; 2) Subretinal Fluid (SRF): accumulation of a clear or lipid-rich exudate in the subretinal space; 3) Pigment Epithelial Detachment (PED): detachment of the retinal pigment epithelium (RPE) along with the overlying retina from the remaining Bruchs membrane (BM) due to the accumulation of fluid or material in sub-RPE space. It is common for age related macular degeneration (AMD).
+
+OCT volumes were acquired with spectral-domain SD-OCT devices from three different vendors: Cirrus HD-OCT (Zeiss Meditec), Spectralis (Heidelberg Engineering), and T-1000/T-2000 (Topcon). There were 38 pathological OCT volumes from each vendor. Each Cirrus OCT consists of 128 B-scans of $512 \times 1024$ pixels. Each Spectralis OCT had 49 B-scans with $512 \times 496$ pixels and each Topcon OCT has 128 B-scans of $512 \times 885$ (T-2000) or $512 \times 650$ (T-1000) pixels. All OCT volumes cover a macular area of $6 \times 6 \, \mathrm{mm}^2$ with axial resolutions of: $2\mu \mathrm{m}$ (Cirrus), $3.9\mu \mathrm{m}$ (Spectralis), and $2.6/3.5\mu \mathrm{m}$ (Topcon T-2000/T-1000). We use an additional dataset of 35 normal subjects derived equally (12, 12, 11) from the three device types who had no incidence of retinal disease. The training set consists of 90 OCT volumes, with 24, 24, and 22 diseased volumes acquired with Cirrus, Spectralis, and Topcon, respectively, with an extra 20 normal subjects (7, 7, 6 from each device). The
+
+test set has 57 volumes, 14 diseased volumes from each device vendor and 15 normal subjects (5 from each device type). The distribution of different fluid pathologies (IRF, SRF, PED) and diseases (AMD, RVO) is almost equal in the training and test set.
+
+The total number of images are as follows: 9071 training images (2D scans of the volume) - 7064 diseased and 2007 normal; 5795 test images- 4270 diseased and 1525 normal. Segmentation layers and fluid regions (in pathological images) were manually annotated in each of the $(9071 + 5795 = 14866)$ B-scans. Manual annotations were performed by 4 graders and the final annotation was based on consensus.
+
+# 4.2. Experimental Setup, Baselines and Metrics
+
+Our method has the following steps: 1) Split the dataset into training $(60\%)$ , validation $(20\%)$ , and test $(20\%)$ folds such that images of any patient are in one fold only. 2) Use training images to train the image generator. 3) Generate shapes from the validation set and train UNet segmentation network [32] on the generated images. 4) Use trained UNet to segment test images. 5) Repeat the above steps for different data augmentation methods. We trained all models using Adam optimiser [18] with a learning rate of $10^{-3}$ and batch-size of 12. Batch-normalisation was used. The values of parameters $\lambda_{1}$ and $\lambda_{2}$ in Eqn. 1 were set by a detailed grid search on a separate dataset of 18 volumes (6 from each device) that was not used for training or testing. They were varied between $[0,1]$ in steps of 0.05 by fixing $\lambda_{1}$ and varying $\lambda_{2}$ for the whole range. This was repeated for all values of $\lambda_{1}$ . The best segmentation accuracy was obtained for $\lambda_{1} = 0.9$ and $\lambda_{2} = 0.95$ , which were our final parameter values.
+
+We denote our method as GeoGAN (Geometry Aware GANs), and compare it's performance against other methods such as: 1) rotation, translation and scaling (denoted as DA-Data Augmentation); 2) DAGAN - data augmentation GANs of [1]; 3) cGAN - the conditional GAN based method of [25]; and 4) Zhao- the atlas registration method of [42]. Segmentation performance is evaluated in terms of Dice Metric (DM) [10] and Hausdorff Distance (HD) [31]. DSC of 1 indicates perfect overlap and 0 indicates no overlap, while lower values of HD (in mm) indicate better segmentation performance.
+
+Algorithm Baselines. The following variants of our method were used for ablation studies:
+
+1. GeoGAN $_{noL_{class}}$ - GeoGAN without classification loss (Eqn.3).
+2. GeoGANnoLshape - GeoGAN without shape relationship modeling term (Eqn.4).
+
+3. GeoGANNoSamp - GeoGAN without uncertainty sampling for injecting diversity to determine sampling's relevance to the final network performance.
+4. $\mathrm{GeoGAN}_{L_{\text{class}}} - \mathrm{GeoGAN}$ using classification loss (Eqn.3) and adversarial loss (Eqn.2) to determine $L_{\text{class}}$ 's relevance to GeoGAN's performance.
+5. $\mathrm{GeoGAN}_{L_{shape}}$ - GeoGAN using shape loss (Eqn.4) and adversarial loss (Eqn.2) to determine $L_{shape}$ 's contribution to GeoGAN's performance.
+6. $\mathrm{GeoGAN}_{\mathrm{Samp}}$ - GeoGAN using only uncertainty sampling and adversarial loss (Eqn.2). This baseline quantifies the contribution of sampling to the image generation process.
+
+# 4.3. Segmentation Results And Analysis
+
+We hypothesize that a good image augmentation method should capture the different complex relationships between the anatomies and the generated images leading to the improvement in segmentation accuracy. Average DSC for pathological images from all device types are reported in Table 1 for the RETOUCH test dataset. Figure 5 shows the segmentation results using a UNet trained on images from different methods. Figure 5 (a) shows the test image along with the manual mask overlayed and shown as the red contour and Figure 5 (b) shows the manual mask. Figures 5 (c)-(g) show, respectively, the segmentation masks obtained by GeoGAN, Zhao [42], DAGAN, cGAN and DA.
+
+Our method outperforms baseline conventional data augmentation and other competing methods by a significant margin. Results of other methods are taken from [3]. GeoGAN's DSC of 0.906 is higher than the DSC value (0.87) of the best performing method (obtained on the Spectralis images of the datasheet). While GeoGAN's average performance is equally good across all three device images, the competing methods rank differently for different devices. GeoGAN's superior segmentation accuracy is attributed to its capacity to learn geometrical relationships between different layers (through $L_{shape}$ ) much better than competing methods. Thus our attempt to model the intrinsic geometrical relationships between different labels could generate superior quality masks.
+
+In a separate experiment we train GeoGAN with images of one device and segment images of the other devices, and repeat for all device types. The average DSC value was 0.893, and HD was $8.6\mathrm{mm}$ . The decrease in performance compared to GeoGAN in Table 1 is expected since the training and test images are from different devices. However we still do better than Zhao [42] and competing methods on the same dataset.
+
+We repeat the set of experiments in Table 1 using a Dense UNet [23] instead of UNet as the segmentation network. We
+
+ | Comparison approaches | Proposed |
| DA | DAGAN [1] | cGAN [25] | Zhao [42] | GeoGAN |
| DM | 0.793 | 0.825 | 0.851 | 0.884 | 0.906 |
| (0.14) | (0.10) | (0.07) | (0.09) | (0.04) |
| HD | 14.3 | 12.9 | 10.6 | 8.8 | 7.9 |
| (4.2) | (3.8) | (3.0) | (3.3) | (2.2) |
+
+Table 1. Segmentation results for pathological OCT images from the RETOUCH database. Mean and standard deviation (in brackets) are shown. Best results per metric is shown in bold.
+
+obtain the following average DSC values: GeoGAN -0.917, Zhao - 0.896, cGAN - 0.864, DAGAN - 0.834 and $DA - 0.802$ . GeoGAN gives the best results, thus indicating it's better performance irrespective of the backbone segmentation framework.
+
+Ablation Studies. Table 2 shows the segmentation results for different ablation studies. Figure 6 shows the segmentation mask obtained by different baselines for the same image shown in Figure 5 (a). The segmentation outputs are quite different from the ground truth and the one obtained by GeoGAN. In some cases the normal regions in the layers are included as pathological area, while parts of the fluid region are not segmented as part of the pathological region. Either case is undesirable for disease diagnosis and quantification. Thus, different components of our cost functions are integral to the method's performance and excluding one or more of classification loss, geometric loss and sampling loss adversely affects segmentation performance.
+
+ | GeoGAN
+noLcls | GeoGAN
+noLshape | GeoGAN
+noSamp |
| DM | 0.867(0.07) | 0.864(0.09) | 0.862(0.09) |
| HD | 9.4(3.0) | 9.5(3.3) | 9.9(3.2) |
| GeoGAN
+onlyLcls | GeoGAN
+onlyLshape | GeoGAN
+onlySamp |
| DM | 0.824(0.08) | 0.825(0.07) | 0.818(0.06) |
| HD | 11.2(2.9) | 11.1(3.0) | 12.5(2.8) |
+
+Table 2. Mean and standard deviation (in brackets) of segmentation results from ablation studies on pathological OCT images from the RETOUCH database. HD is in mm.
+
+# 4.4. Realism of Synthetic Images
+
+Prior results show GeoGAN could generate more diverse images, which enables the corresponding UNet to show better segmentation accuracy. Figure 1 shows examples of generated synthetic images using GeoGAN and the other image generation methods except $DA$ since it involves rotation and scaling only while Figure 7 shows examples from
+
+
+(a)
+
+
+(b)
+Figure 5. Segmentation results on the RETOUCH challenge dataset for (a) cropped image with manual segmentation mask (red contour); Segmentation masks by (b) ground truth (manual); (c) GeoGAN; (d) Zhao [42]; (e) DAGAN; (f) cGAN and (g) conventional $DA$ .
+
+
+(c)
+
+
+(d)
+
+
+(e)
+
+
+(f)
+
+
+(g)
+
+
+
+
+
+
+GeoGANonlySamp. HD is in mm.
+
+(a)
+(d)
+
+(b) $GeoGAN_{noL_{cls}}$ ; (c) $GeoGAN_{noSamp}$ ; (d)
+
+(b)
+(e)
+
+$\text{GeoGAN}_{\text{onlyLshape}}$ (e) $\text{GeoGAN}_{\text{onlyLcls}}$ (f)
+
+
+(c)
+(f)
+Figure 6. Ablation study results for: (a) $GeoGAN_{noL_{shape}}$ ;
+
+the ablation models. The base image is the same in both figures. Visual examination shows GeoGAN generated images respect boundaries of adjacent layers in most cases, while other methods tend not to do so.
+
+Only GeoGAN and to some extent Zhao generate images with consistent layer boundaries. Images generated by other methods suffer from the following limitations: 1) tend to be noisy; 2) multiple artifacts exposing unrealistic appearance; 3) smoothed images which distort the layer boundaries; 4) different retinal layers tend to overlap with the fluid area. Segmentation models trained on such images will hamper their ability to produce accurate segmentations.
+
+Two trained ophthalmologists having 4 and 5 years experience in examining retinal OCT images for abnormalities assessed realism of generated images. We present them with a common set of 500 synthetic images from GeoGAN and ask them to classify each as realistic or not. The evaluation sessions were conducted separately with each ophthalmologist blinded to other's answers as well as the image generation model. Results with GeoGAN show one ophthalmologist (OPT 1) identified 461/500 $(92.2\%)$ images as realistic while OPT 2 identified 452 $(90.4\%)$ generated images as realistic. Both of them had a high agreement with 440 common images $(88.0\% - "Both Experts" in Table 3)$ identified as realistic. Considering both OPT 1 and OPT 2 feedback, a total of 473 $(94.6\%)$ unique images were identified as realistic ("Atleast 1 Expert" in Table 3). Subsequently, 27/500 $(5.4\%)$ of the images were not identified
+
+| Agreement Statistics | Both Experts | Atleast 1 Expert | No Expert |
| GeoGAN | 88.0 (440) | 94.6 (473) | 5.4 (27) |
| Zhao et. al.[42] | 84.8 (424) | 88.2 (441) | 11.8 (59) |
| cGAN ([25]) | 83.2 (416) | 85.4 (427) | 14.6 (73) |
| DAGAN([1]) | 82.2 (411) | 84.2 (421) | 15.8 (79) |
| DA | 80.4 (402) | 82.4 (412) | 17.6 (88) |
| GeoGANnoLcls | 83.6 (418) | 86.4 (432) | 13.6 (68) |
| GeoGANnoLshape | 83.0 (415) | 85.6 (428) | 14.4 (72) |
| GeoGANnoSamp | 82.8 (414) | 85.0 (425) | 15.0 (75) |
| GeoGANLcls | 82.2 (411) | 84.0 (420) | 16.0 (80) |
| GeoGANLshape | 81.2 (406) | 83.4 (417) | 16.6 (83) |
| GeoGANSamp | 80.4 (402) | 82.8 (414) | 17.2 (86) |
+
+Table 3. Agreement statistics for different image generation methods amongst 2 ophthalmologists. Numbers in bold indicate agreement percentage while numbers within brackets indicate actual numbers out of 500 patients.
+
+as realistic by any of the experts ("No Expert" in Table3). Agreement statistics for other methods are summarized in Table 3.
+
+The highest agreement between two ophthalmologists is obtained for images generated by our method. For all the other methods their difference from GeoGAN is significant. Zhao et. al. [42] has the best performance amongst them, but has agreement difference of more than $6\%$ (for "Atleast 1 Expert") compared to GeoGAN (94.6 vs 88.2). The numbers from Table 3 show a larger difference for the other methods, thus highlighting the importance of modeling geometric relationships in pathological region segmentation.
+
+# 4.5. Combining Disease And Normal Dataset
+
+Section 4.3 shows results of training the UNet on diseased population shapes to segment diseased shapes. In this section we show the opposite scenario where the training was performed on normal images, the network subsequently used to generate images from the diseased base images and segment test images of a diseased population. Table 4 shows the corresponding results and also for the scenario when the training images were a mix of diseased and normal population, while the test images were from the diseased population. All reported results are for the same set of test images.
+
+
+
+
+
+
+
+
+(a)
+(d)
+Figure 7. Generated images for ablation study methods: (a) $GeoGAN_{noL_{cls}}$ ; (b) $GeoGAN_{noL_{shape}}$ ; (c) $GeoGAN_{noSamp}$ ; (d) $GeoGAN_{onlyL_{cls}}$ ; (e) $GeoGAN_{onlyL_{shape}}$ ; (f) $GeoGAN_{onlySamp}$ .
+
+
+(b)
+(e)
+
+
+(c)
+(f)
+
+Comparing them with the results in Table 1, the superior performance of training separate networks for diseased and normal population is obvious. Figure 8 (a) shows the segmentation output when training and test image are from the diseased population, while Figure 8 (b) shows the scenario where the training images are from the normal population while the test images are the diseased case. Red contours show the outline of the manual segmentation while the green contours show the output of our method. When training images are from normal population it is more challenging to segment an image from the diseased population. Inaccurate segmentation of the fluid layers can have grave consequences for subsequent diagnosis and treatment plans. Figure 8 (c) shows the results when the training database is a mix of diseased and normal population, which is a more accurate representation of real world scenarios. A mixture of normal and diseased population images in the training set leads to acceptable performance. However, training a network exclusively on disease cases improves segmentation accuracy of pathological regions, which is certainly more critical than segmenting normal anatomical regions. Since it is challenging to obtain large numbers of annotated images, especially for diseased cases, our proposed image augmentation method is a significant improvement over existing methods.
+
+
+(a)
+
+
+(b)
+Figure 8. Segmentation results of test images for different training data sources: (a) diseased population only; (b) normal population only; (c) mix of diseased and normal population.
+
+
+(c)
+
+ | Train on Normal, Test on Diseased |
| DA | DAGAN [1] | cGAN [25] | [42] | GeoGAN |
| DM | 0.741 | 0.781 | 0.802 | 0.821 | 0.856 |
| HD | 15.3 | 14.5 | 13.7 | 11.3 | 9.9 |
+
+ | Train on Mix, Test on Diseased |
| DA | DAGAN [1] | cGAN [25] | [42] | GeoGAN |
| DM | 0.762 | 0.798 | 0.820 | 0.848 | 0.873 |
| HD | 14.8 | 14.0 | 13.2 | 10.8 | 9.2 |
+
+Table 4. Segmentation results for mix of diseased and normal OCT images. Best results per metric is shown in boldface. HD is in mm.
+
+# 5. Conclusion
+
+We propose a novel approach to generate plausible retinal OCT images by incorporating relationship between segmentation labels to guide the shape generation process. Diversity is introduced in the image generation process through uncertainty sampling. Comparative results show that the augmented dataset from GeoGAN outperforms standard data augmentation and other competing methods, when applied to segmentation of pathological regions (fluid filled areas) in retinal OCT images. We show that synergy between shape, classification and sampling terms lead to improved segmentation and greater visual agreement of experienced ophthalmologists. Each of these terms is equally important in generating realistic shapes. Our approach can be used for other medical imaging modalities without major changes to the workflow.
+
+Despite the good performance of our method we observe failure cases when the base images are noisy due to inherent characteristics of the image acquisition procedure, and when the fluid areas greatly overlap with other layers. Although the second scenario is not very common, it can be critical in the medical context. In future work we aim to evaluate our method's robustness on a wide range of medical imaging modalities such as MRI, Xray, etc. Our method is also useful to generate realistic images for educating clinicians, where targeted synthetic images (e.g. generation of complex cases, or disease mimickers) can be used to speed-up training. Similarly, the proposed approach could be used in quality control of deep learning systems to identify potential weaknesses through targeted high-throughput synthetic image generation and testing.
+
+# References
+
+[1] Antreas Antoniou, Amos Storkey, and Harrison Edwards. Data augmentation generative adversarial networks. In arXiv preprint arXiv:1711.04340, 2017. 1, 2, 5, 6, 7, 8
+[2] Christian F. Baumgartner, Kerem C. Tezcan, Krishna Chaitanya, Andreas M. Htker, Urs J. Muehlematter, Khoschy
+
+Schawkat, Anton S. Becker, Olivio Donati, and Ender Konukoglu. Phiseg: Capturing uncertainty in medical image segmentation. In Proc. MICCAI(2), pages 119-127, 2019. 3
+[3] Hrvoje Bogunovic and et. al. RETOUCH: The retinal oct fluid detection and segmentation benchmark and challenge. IEEE Trans. Med. Imag., 38(8):1858-1874, 2019. 5, 6
+[4] Fred L. Bookstein. Integration, disintegration, and self-similarity: Characterizing the scales of shape variation in landmark data. Evolutionary Biology, 42(4):395-426, 2015. 3
+[5] Behzad Bozortbar, Dwarikanath Mahapatra, and Jean-Philippe. Thiran. Exprada: Adversarial domain adaptation for facial expression analysis. In Press Pattern Recognition, 100:15–28, 2020. 2
+[6] Behzad Bozorgtabar, Dwarikanath Mahapatra, Hendrik von Teng, Alexander Pollinger, Lucas Ebner, Jean-Philippe Thiran, and Mauricio Reyes. Informative sample generation using class aware generative adversarial networks for classification of chest x-rays. Computer Vision and Image Understanding, 184:57–65, 2019. 2
+[7] Behzad Bozorgtabar, Mohammad Saeed Rad, Hazim Kemal Ekenel, and Jean-Philippe Thiran. Learn to synthesize and synthesize to learn. Computer Vision and Image Understanding, 185:1-11, 2019. 2
+[8] Behzad Bozortbar, Mohammad Saeed Rad, Dwarikanath Mahapatra, and Jean-Philippe Thiran. Syndemo: Synergistic deep feature alignment for joint learning of depth and egomotion. In Proceedings of the IEEE International Conference on Computer Vision, pages 4210–4219, 2019. 2
+[9] Stephanie J. Chiu, Xiao T. Li, Peter Nicholas, Cynthia A. Toth, Joseph A. Izatt, and Sina Farsiu. Automatic segmentation of seven retinal layers in sdct images congruent with expert manual segmentation. Opt. Express, 18(18):19413-19428, 2010. 2
+[10] Lee R. Dice. Measures of the amount of ecologic association between species. Ecology, 26(3):297-302, 1945. 5
+[11] Alexey Dosovitskiy, Philipp Fischer, Jost Tobias Springenberg, Martin Riedmiller, and Thomas Brox. Discriminative unsupervised feature learning with exemplar convolutional neural networks. IEEE Trans. Patt. Anal. Mach. Intell., 38(9):1734-1747, 2016. 2
+[12] G. N. Girish, Bibhash Thakur, Sohini Roy Chowdhurya, Abhishek R. Kothari, and Jeny Rajan. Segmentation of intra-retinal cysts from optical coherence tomography images using a fully convolutional neural network model. IEEE J. Biomed. Health Inform., 23(1):296-304, 2018. 2
+[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. 2
+[14] Changhee Han, Hideaki Hayashi, Leonardo Rundo, Ryosuke Araki, Wataru Shimoda, Shinichi Muramatsu, Yujiro Furukawa, Giancarlo Mauri, and Hideki Nakayama. Gan-based synthetic brain mr image generation. In 2018 IEEE 15th International Symposium on Biomedical Imaging (ISBI 2018), pages 734-738. IEEE, 2018. 1, 2
+
+[15] Sheng-Wei Huang, Che-Tsung Lin, Shu-Ping Chen, Yen-Yi Wu, Po-Hao Hsu, and Shang-Hong Lai. Auggan: Cross domain adaptation with gan-based data augmentation. In Proceedings of the European Conference on Computer Vision (ECCV), pages 718-731, 2018. 1
+[16] Max Jaderberg, Karen Simonyan, Andrew Zisserman, and Koray Kavukcuoglu. Spatial transformer networks. In NIPS, pages -, 2015. 3
+[17] Alex Kendall, Vijay Badrinarayanan, and Roberto Cipolla. Bayesian segnet: Model uncertainty in deep convolutional encoder-decoder architectures for scene understanding. In arXiv:1511.02680, 2015. 2
+[18] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In arXiv preprint arXiv:1412.6980., 2014. 5
+[19] Simon A. A. Kohl, Bernardino Romera-Paredes, Clemens Meyer, Jeffrey De Fauw, Joseph R. Ledsam, Klaus H. Maier-Hein, S. M. Ali Eslami, Danilo Jimenez Rezende, and Olaf Ronneberger. A probabilistic u-net for segmentation of ambiguous images. In Proc. NIPS, pages 6965–6975, 2018. 3
+[20] Balaji Lakshminarayanan, Alexander Pritzel, and Charles Blundell. Simple and scalable predictive uncertainty estimation using deep ensembles. In Proc. NIPS, pages 6402-6413, 2017. 2
+[21] Christian Ledig, Lucas Theis, Ferenc Huszar, Jose Caballero, Andrew Cunningham, Alejandro Acosta, Andrew Aitken, Alykhan Tejani, Johannes Totz, Zehan Wang, and Wenzhe Shi. Photo-realistic single image super-resolution using a generative adversarial network. CoRR, abs/1609.04802, 2016. 2
+[22] Kelvin K. Leung, Matthew J. Clarkson, Johnathon W. Bartlett, Shona Clegg, Clifford R. Jack Jr, Michael W. Weiner, Nick C. Fox, Sebastian Ourselin, and A. D. N. Initiative. Robust atrophy rate measurement in alzheimers disease using multi-site serial mri: tissue-specific intensity normalization and parameter selection. Neuroimage, 50(2):516-523, 2010. 2
+[23] Xiaomeng Li, Hao Chen, Xiaojuan Qi, Qi Dou, Chi-Wing Fu, and Pheng-Ann Heng. H-DenseUNet: Hybrid densely connected unet for liver and tumor segmentation from ct volumes. IEEE Trans. Med. Imag., 37(12):2663-2674, 2018. 6
+[24] Dwarikanath Mahapatra, Behzad Bozortabar, and Sajini Hewavitharanage. Image super resolution using generative adversarial networks and local saliency maps for retinal image analysis. In MICCAI, pages 382-390, 2017. 2
+[25] Dwarikanath Mahapatra, Behzad Bozorgtabar, Jean-Phillipe Thiran, and Mauricio Reyes. Efficient active learning for image classification and segmentation using a sample selection and conditional generative adversarial network. In MICCAI, pages 580–588, 2018. 1, 2, 3, 5, 6, 7, 8
+[26] Dwarikanath Mahapatra and Zongyuan Ge. Training data independent image registration with gans using transfer learning and segmentation information. In In Proc. IEEE ISBI, pages 709-713, 2019. 2
+[27] Dwarikanath Mahapatra and Zongyuan Ge. Training data independent image registration using generative adversarial
+
+networks and domain adaptation. In press Pattern Recognition, 100:1-14, 2020. 2
+[28] Dwarikanath Mahapatra, Zongyuan Ge, Suman Sedai, and Rajib Chakravorty. Joint registration and segmentation of xray images using generative adversarial networks. In In Proc. MICCAI-MLMI, pages 73–80, 2018. 2
+[29] Fausto Milletari, Nassir Navab, and Seyed-Ahmad Ahmadi. V-net: Fully convolutional neural networks for volumetric medical im- age segmentation. In Proc. Int. Conf. on 3D vision, pages 565-571, 2016. 2
+[30] Christopher Nielsen and Michal Okoniewski. Gan data augmentation through active learning inspired sample acquisition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 109-112, 2019. 1, 2
+[31] Javier Ribera, David Gera, Yuhao Chen, and Edward Delp. Weighted Hausdorff distance: A loss function for object localization. In arXiv preprint arXiv:1806.07564, 2018. 5
+[32] Olaf Ronneberger, Phillip Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In In Proc. MICCAI, pages 234-241, 2015. 3, 5
+[33] Abhijit Guha Roy, Sailesh Conjeti, Sri Phani Krishna Karri, Debdoot Sheet, Amin Katouzian, Christian Wachinger, and Nassir Navab. Relaynet: retinal layer and fluid segmentation of macular optical coherence tomography using fully convolutional networks. Biomed. Opt. Express, 8(8):3627-3642, 2017. 2
+[34] Christian Rupprecht, Iro Laina, Robert DiPietro, Maximilian Baust, Federico Tombari, Nassir Navab, and Gregory D. Hager. Learning in an uncertain world: Representing ambiguity through multiple hypotheses. In Proc. CVPR, pages 3591-3600, 2017. 2
+[35] Thomas Schlegl, Sebastian M. Waldstein, Wolf-Dietrich Vogl, Ursula Schmidt-Erfurth, and George Langs. Predicting semantic descriptions from medical images with convolutional neural networks. In Proc. Int. Conf. Inform. Process. Med. Imag. (IPMI), pages 437-438, 2015. 2
+[36] Hoo-Chang Shin, Neil A Tenenholtz, Jameson K Rogers, Christopher G Schwarz, Matthew L Senjem, Jeffrey L Gunter, Katherine Andriole, and Mark Michalski. Medical Image Synthesis for Data Augmentation and Anonymization using Generative Adversarial Networks. In Proc. MICCAI-SASHIMI, 2018. 2
+[37] Kihuk Sohn, Honglak Lee, and Xinchen Yan. Learning structured output representation using deep conditional generative models. In Proc. NIPS, pages 3483-3491, 2015. 3
+[38] Nima Tajbakhsh, Jae. Y. Shin, Suryakant R. Gurudu, R. Todd Hurst, Christopher B. Kendall, Michael B. Gotway, and Jianming Liang. Convolutional neural networks for medical image analysis: Full training or fine tuning?. IEEE Trans. Med. Imag., 35(5):1299-1312, 2016. 1
+[39] Freerk G. Venhuizen, Bram van Ginneken, Bart Liefers, Freeke van Asten, Vivian Schreur, Sascha Fauser, Carel Hoyng, Thomas Theelen, and Clara I. Sanchez. Deep learning approach for the detection and quantification of intraretinal cystoid fluid in multivendor optical coherence tomography. Biomed. Opt. Express, 9(4):1545-1569, 2018. 2
+
+[40] Xiayu Xu, Kyungmu Lee, Li Zhang, Milan Sonka, and Michael D. Abramoff. Stratified sampling voxel classification for segmentation of intraretinal and sub-retinal fluid in longitudinal clinical oct data. IEEE Trans. Med. Imag., 34(7):1616-1623, 2015. 2
+[41] Xin Yi, Ekta Walia, and Paul Babyn. Generative adversarial network in medical imaging: A review. Med. Imag. Anal., 58, 2019. 2
+[42] Amy Zhao, Guha Balakrishnan, Fredo Durand, John V. Guttag, and Adrian V. Dalca. Data augmentation using learned transforms for one-shot medical image segmentation. In In Proc. CVPR, pages 8543-8552, 2019. 1, 5, 6, 7, 8
+[43] He Zhao, Huiqi Li, Sebastian Maurer-Stroh, and LiCheng. Synthesizing retinal and neuronal images with generative adversarial nets. Med. Imag. Anal., 49:14-26, 2018. 2, 3
\ No newline at end of file
diff --git a/pathologicalretinalregionsegmentationfromoctimagesusinggeometricrelationbasedaugmentation/images.zip b/pathologicalretinalregionsegmentationfromoctimagesusinggeometricrelationbasedaugmentation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..7ce4300463499b2542ecd9d4a85128048d5089ce
--- /dev/null
+++ b/pathologicalretinalregionsegmentationfromoctimagesusinggeometricrelationbasedaugmentation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:93908a5d0963f2bb9ff92b733b6619f22f23300114ff87b060ddab8a91fa14e8
+size 496395
diff --git a/pathologicalretinalregionsegmentationfromoctimagesusinggeometricrelationbasedaugmentation/layout.json b/pathologicalretinalregionsegmentationfromoctimagesusinggeometricrelationbasedaugmentation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..7fd206ed8effbcfee7db78096cdd586ab82b0b61
--- /dev/null
+++ b/pathologicalretinalregionsegmentationfromoctimagesusinggeometricrelationbasedaugmentation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1d40efa5509ee50aadebf2d0a2c8bbd44d341d0d93a48d1832478d9154c96921
+size 506593
diff --git a/patternstructurediffusionformultitasklearning/ef7f28f5-0282-4add-a19a-839779d0d877_content_list.json b/patternstructurediffusionformultitasklearning/ef7f28f5-0282-4add-a19a-839779d0d877_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..fb2162a18c116cee0cdba4fa5ea3496917a9e16a
--- /dev/null
+++ b/patternstructurediffusionformultitasklearning/ef7f28f5-0282-4add-a19a-839779d0d877_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0a7cdb28c87bb5b724e008826731dc18a23e9bab7a76e31a7a5cd5cc3a4a3102
+size 79819
diff --git a/patternstructurediffusionformultitasklearning/ef7f28f5-0282-4add-a19a-839779d0d877_model.json b/patternstructurediffusionformultitasklearning/ef7f28f5-0282-4add-a19a-839779d0d877_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..fa3c54b34a2daa92750ba4a15b73ef67e0ebf8d2
--- /dev/null
+++ b/patternstructurediffusionformultitasklearning/ef7f28f5-0282-4add-a19a-839779d0d877_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:330b4743cb888c4f566efa2d75adac3118f55ad310a7225587f3f694251024d2
+size 98860
diff --git a/patternstructurediffusionformultitasklearning/ef7f28f5-0282-4add-a19a-839779d0d877_origin.pdf b/patternstructurediffusionformultitasklearning/ef7f28f5-0282-4add-a19a-839779d0d877_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..06c2d55f344fb5da8aab8a31de44213cf7c1a78c
--- /dev/null
+++ b/patternstructurediffusionformultitasklearning/ef7f28f5-0282-4add-a19a-839779d0d877_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d5008f323ac6e32cd0d827f87707b530146f77c1ecd25cdaefab1224235a633b
+size 1775035
diff --git a/patternstructurediffusionformultitasklearning/full.md b/patternstructurediffusionformultitasklearning/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..37dd1d242fefb724d719b98d5929186548c5324d
--- /dev/null
+++ b/patternstructurediffusionformultitasklearning/full.md
@@ -0,0 +1,303 @@
+# Pattern-Structure Diffusion for Multi-Task Learning
+
+Ling Zhou, Zhen Cui\*, Chunyan Xu, Zhenyu Zhang, Chaoqun Wang, Tong Zhang, Jian Yang PCA Lab, Key Lab of Intelligent Perception and Systems for High-Dimensional Information of Ministry of Education, School of Computer Science and Engineering, Nanjing University of Science and Technology
+
+# Abstract
+
+Inspired by the observation that pattern structures high-frequently recur within intra-task also across tasks, we propose a pattern-structure diffusion (PSD) framework to mine and propagate task-specific and task-across pattern structures in the task-level space for joint depth estimation, segmentation and surface normal prediction. To represent local pattern structures, we model them as small-scale graphlets1, and propagate them in two different ways, i.e., intra-task and inter-task PSD. For the former, to overcome the limit of the locality of pattern structures, we use the high-order recursive aggregation on neighbors to multiplicatively increase the spread scope, so that long-distance patterns are propagated in the intra-task space. In the intertask PSD, we mutually transfer the counterpart structures corresponding to the same spatial position into the task itself based on the matching degree of paired pattern structures therein. Finally, the intra-task and inter-task pattern structures are jointly diffused among the task-level patterns, and encapsulated into an end-to-end PSD network to boost the performance of multi-task learning. Extensive experiments on two widely-used benchmarks demonstrate that our proposed PSD is more effective and also achieves the state-of-the-art or competitive results.
+
+# 1. Introduction
+
+Dense pixel prediction tasks, e.g., depth estimation, segmentation and surface normal prediction, are fundamental yet challenging in computer vision due to the important applications to intelligent robotic [42], automatic drive [6], etc. Currently, numerous deep learning based methods have obtained great success in each of three tasks. However, the single-task models focus more on the learning of robust regression, but rarely consider the interactions between tasks. As the pixel-level tasks in scene understanding, actually, these three tasks have some common characteristics that can
+
+
+Figure 1: Illustration of our main idea. For multi-task learning, we specifically design intra-task and inter-task pattern structure diffusion (PSD) to mine and propagate useful pattern structures within/across tasks. Inter-task PSD bridges two tasks to mutually transfer pattern structures for each other through derived correlations, while intra-task PSD propagates within-task patterns through high-order diffusion on graphlets.
+
+share with each other.
+
+Recently joint-task learning methods [29, 55, 8, 38, 53] have sprung up and shown a promising direction to boost the performance through cross-task interactions. Most of them devote to feature fusion (e.g., concatenation) or model sharing (e.g., common network parameters) by following the conventional fusion lines. Due to unintentional integration, these "black-box" methods cannot concern/know what concrete information is transmitted/interacted between multi-tasks. Ultimately, what information could be available to bridge different tasks has not yet been well revealed and utilized in the study of multi-task pixel prediction.
+
+An observation [58] is that local patch patterns highfrequently recur within the same image, as well as different
+
+scaling images. It implicitly indicates the high-degree similarity of a large number of local pattern structures of natural images. The structures of local patterns provide some strong cues for pixel-level predictions, where the matching pattern structures could result in similar prediction values with high probabilities. More importantly, this observation can be extended into the scenes across different tasks as shown in Fig. 1, where a large number of patches have extremely similar pattern structures at the same spatial positions. For example, the patches (red squares) at the same positions from different tasks have similar pattern structures across depth, segmentation and surface normal. They describe the same objects, and endow the similar information about object shapes/boundaries. Therefore, those local pattern-structures hidden in the image also inter-task should be mined and utilized for pixel-level multi-task learning.
+
+Motivated by the observation on the recurrence of pattern structures within intra-task also across tasks, we propose a pattern-structure diffusion (PSD) framework to mine and propagate task-specific and task-across pattern structures in the task-level space for joint multi-task learning across depth estimation, segmentation and surface normal prediction. To characterize local pattern structures, we construct them as small-scale graphlets, whose topologies represent the pixel-level structure layouts while each vertex is anchored at one pixel position. It means that the graph w.r.t a local region encodes the correlations of pixel-level patterns therein. To transmit pattern structures in the task domain, we construct two types of pattern-structure diffusion process, named intra-task and inter-task PSD. For the former, to overcome the limit of locality of pattern-structure, we propose the high-order recursive diffusion to multiplicatively increase the propagation scope through calculating on the adjacent matrix. Such a recursive pattern-structure diffusion can reduce computation burden as well as memory requirement, in contrast to direct larger-scope or global pattern correlations. In the inter-task PSD process, we derive the similarities of those paired pattern structures corresponding to the same spatial positions, and then mutually transfer the counterpart structures into the task itself based on the learnt similarities. As the long-distance diffusion is done in intra-task, actually, inter-task PSD could implicitly borrow those large-scope pattern structures of the counterpart tasks besides the task itself. Finally, the intratask and inter-task pattern structures are jointly diffused among the task-level patterns, and encapsulated into an end-to-end PSD network to boost the performance of multi-task learning. We conduct extensive experiments of joint depth, segmentation and surface normal estimation on two public datasets, NYUD-v2 [35], SUNRGB-D [40]. The experiments demonstrate that our proposed PSD method is more effective than those baselines and also achieves the state-of-the-art or competitive results.
+
+In summary, our contributions are in three aspects: i) We propose a novel pattern-structure diffusion framework to attempt to mine and propagate local pattern structures in/across different task domains, ii) We propose two types of pattern-structure diffusions, i.e., intra-task and inter-task, where the former introduces recursive mechanism to learn long-distance propagation, while the latter derives inter-task correlations to transfer cross-task structures, iii) We validate the effectiveness of our proposed PSD method and achieve the state-of-the-art or competitive performance for depth, segmentation and surface normal estimation on two public multi-task learning datasets.
+
+# 2. Related Work
+
+Semantic Segmentation: With the great success of deep learning in high-level vision tasks, numerous semantic segmentation approaches [31, 33, 4, 9, 37] are beneficial from CNNs. Long et al. [24] proposed a full convolutional neural network (FCN) for semantic segmentation which conduct the pixel-wise classification in an end-to-end fashion. Later, many methods [7, 20, 31] are based on FCN. Due to the large scale RGB-D datasets are published, some RGB-D methods [36, 47, 13, 14] have sprung up. Besides, some methods [44, 15] used the graph-based representation for the problem of segmenting an image into regions. Different from these methods, we only use RGB images as input source and conduct semantic segmentation prediction based on depth prediction rather than depth ground truth. Also, we draw support from other tasks for improving the segmentation prediction.
+
+Depth Estimation. Monocular depth estimation has been studied for a long history, previous works on it generally utilized Markov Random Field (MRF) [3, 2]. Recently, several works [45, 19, 34, 50, 38, 27, 18, 52, 57, 56] with CNN architectures have achieved state-of-the-art results. Eigen et al. [11] first used CNN and proposed a multi-stage network to solve the monocular depth estimation. Roy et al. [39] utilized the regression forest and constructed shallow architectures at each tree nodes to predict depth. Unlike these depth-only prediction methods, we propose to make use of cues from other tasks to boost depth estimation.
+
+Surface Normal Estimation. Own to the strong feature representation ability of deep neural networks, most methods [30, 16, 17, 26, 48] for surface normal estimation are based on deep neural networks. Eigen and Fergus [14] adopt a unified coarse-to-fine hierarchical network for depth/normal prediction. Wang et al. [46] are the first to regularize dense geometry estimation with planar surface information via only a single RGB image. Recently, Qi et al. [38] proposed to use 3D geometric information for predicting surface normal and depth. In our work, our prediction of surface normal is boosted by depth and segmentation
+
+
+Figure 2: The PSD network architecture for joint prediction of depth, semantic segmentation and surface normal. The whole network is divided into a shared encoder and three task-specific decoder branches. In each branch, we first perform intratask PSD (Section 3.3) to transmit long-distance pattern-structure information within each task. Then cross-task pattern structures are correlated to transfer to each other, called inter-task PSD (Section 3.4). Finally, intra-task and inter-task PSD are encapsulated into a pattern structure diffusion layer (named PSD layer), which can be stacked in the deep mode for pixel-level multi-task learning.
+
+# information.
+
+Multi-task Learning. Many multi-task learning methods [1, 23, 43, 22, 53, 41, 54] have achieved great success. Several researchers [22, 53] proposed multi-task learning mechanisms for feature transmitting. Recently, Zhang et al. [55] proposed to learn non-local task-specific pattern affinities and obtain the cross-task affinities with fixed parameters for interactiveness. Our method is different from these approaches in the following aspects: i) transmits pattern structures across tasks rather than simple weighting features, ii) mines local patch pattern structures (i.e., graphlets) and multiplicatively diffuses them from local to global region, which has an incidental advantage of high-efficient computation compared to global affinities [55], iii) models with graph topologies versatile to different tasks.
+
+# 3. Pattern-Structure Diffusion
+
+In this section, we first overview the whole network architecture, and then introduce the definition of local pattern structure, intra-task and inter-task pattern-structure diffusion respectively, finally pose the objective function consisting of three different pixel-level prediction tasks.
+
+# 3.1. Network Architecture
+
+The pattern-structure diffusion is encapsulated into an end-to-end deep network as shown in Fig. 2. The whole network can be divided into a shared encoder and three task-specific decoders in which pattern structures are mutually propagated within intra-task also across tasks. Given one RGB image $x$ , the encoder produces multi-scale hierar
+
+chical feature maps through convolutional neural networks, e.g., ResNet [21]. We feed the response maps from the last convolutional layer of the encoder into each task-branch to decode pixel-level task-related information. To produce refining high-resolution predictions, we decode this convolutional features into higher-resolution feature maps, and then concatenate with the same-scale features at the encoder to feed into a residual block to produce task-specific features.
+
+Next, we perform pattern-structure diffusion on three task-specific feature maps. Concretely, intra-task PSD (Section 3.3) is first performed on the decoded features to transmit long-distance context information within each task, then inter-task PSD (Section 3.4) is used for two different tasks to mutually absorb the counterpart structures. In order for high-efficient PSD, we construct small graphlets on pixel-level local pattern regions instead of the large-scale or global region, which is introduced in Section 3.2. Further, we derive a recursive process on graphlets to propagate into long-distance positions. For inter-task PSD, we correlate those paired graphlets at the common position and weightedly transfer the structure information into the target task. In virtue of the joint PSD on intra-task and inter-task, pattern structures could be widely spread among long-range contexts within/across the three tasks.
+
+Repeatedly, we can continue to upscale feature maps and perform the above decoding process to produce a higher feature scale of our requirement for the final pixel-level prediction. Such a coarse-to-fine process is supervised under multi-loss functions followed by a convolution prediction layer at each scale, where the details are given in Sec-
+
+tion 3.5.
+
+# 3.2. Local Pattern-Structure Definition
+
+Let us denote the decoded multi-channel feature maps of depth, segmentation, surface normal tasks respectively with $\mathbf{X}^{\mathcal{T}_d},\mathbf{X}^{\mathcal{T}_s},\mathbf{X}^{\mathcal{T}_n}\in \mathbb{R}^{H\times W\times C}$ . Here $H,W,C$ represent height, width and channel number respectively. We characterize each local pattern with the pixel-level correlations therein, which is named as pattern-structure. To conveniently illustrate the construction of the pattern-structure, we omit the superscript $\mathcal{T}$ in the following description.
+
+At each spatial position of the multi-channel feature $\mathbf{X}$ we can crop out a $l\times l$ square region and denote local pattern as $\mathbf{X}_{P_i}\in \mathbb{R}^{l\times l\times C}$ , where $P_{i}$ means the cropped pattern at position $i$ . For simplification, we abuse the notation $\mathrm{vec}(\mathbf{X}_{P_i})\colon \mathbb{R}^{l\times l\times C}\to \mathbb{R}^{l^2\times C}$ , which vectorizes the 2D spatial dimensions in the row-by-row stacking way. For each local patch pattern, we construct a graphlet $\mathcal{G}_{P_i} = \{\mathcal{V}_{P_i},\mathcal{A}_{P_i},\mathcal{X}_{P_i}\}$ , where one vertex $v_{i}\in \mathcal{V}_{P_i}$ corresponds to one pixel position, the adjacent matrix $\mathcal{A}_{P_i}\in \mathbb{R}^{l^2\times l^2\times C}$ defines the edge-connection correlation, and $\mathcal{X}_{P_i} = \mathrm{vec}(\mathbf{X}_{P_i})\in \mathbb{R}^{l^2\times C}$ is the feature matrix. Formally, the adjacent matrix $\mathcal{A}_{P_i}$ of local patch pattern is defined as
+
+$$
+\begin{array}{l} \left[ \mathcal {A} _ {P _ {i}} \right] _ {j k} = \exp \left\{- \frac {\left\| \left[ \operatorname {v e c} \left(\mathbf {X} _ {P _ {i}}\right) \right] _ {j} - \left[ \operatorname {v e c} \left(\mathbf {X} _ {P _ {i}}\right) \right] _ {k} \right\| ^ {2}}{\sigma^ {2}} \right\}, (1) \\ \text {s . t .}, i = 1, 2, \dots , H \times W, j, k = 1, 2, \dots , l ^ {2}, (2) \\ \end{array}
+$$
+
+where $[\cdot ]_j$ takes the $j$ row of the input matrix, $[\mathcal{A}_{P_i}]_{jk}$ records the pattern-correlation between the position $j$ and $k$ at the $i$ -th patch pattern, and $\sigma$ ( $\sigma^2 = 2$ as default) is an exponential factor. The similar the patterns of node $j$ and $k$ are, the larger the corresponding value in $[\mathcal{A}_{P_i}]_{jk}$ is. Thus, $\mathcal{A}_{P_i}$ represents the local structure, which are recurred highfrequently and can be used for intra-task/inter-task pattern propagation to boost the performance based on our above observation.
+
+As the global representation, we can collect all local structures into an entire graph defined on feature map $\mathbf{X}$ , denoted as $\mathcal{G} = \{\mathcal{V},\mathcal{A},\mathcal{X}\}$ , where $|\mathcal{V}| = H\times W$ is the set of all vertices w.r.t spatial positions, $\mathcal{X} = \operatorname {vec}(\mathbf{X})$ is the verteorized feature map. The adjacent matrix of the whole graph is written as
+
+$$
+\mathcal {A} = \operatorname {d i a g} \left[ \operatorname {v e c} \left(\mathcal {A} _ {P _ {1}}\right) ^ {\intercal}; \operatorname {v e c} \left(\mathcal {A} _ {P _ {2}}\right) ^ {\intercal}; \dots ; \operatorname {v e c} \left(\mathcal {A} _ {P _ {H ^ {2} W ^ {2}}}\right) ^ {\intercal} \right], \tag {3}
+$$
+
+where $\operatorname{vec}(\mathcal{A}_{P_j})\colon \mathbb{R}^{l^2\times l^2\times C}\to \mathbb{R}^{l^4\times C}$ is similar to the above definition, $\mathrm{diag}(\cdot)$ is the diagonalization on blockwise matrices. Obviously, the global matrix $\mathcal{A}$ is sparse because most values are zeros and only those positions w.r.t local patches are non-zero values. Concretely, the number of non-zero values is $l^2 HW\ll H^2 W^2$ , where $l\ll H,W$ is size of patch kernels. Thus, the calculation on sparse
+
+
+Figure 3: Intra-task diffusion process. A graphlet $\mathcal{G}_{P_i}$ is constructed based on a local region. The pattern structures $\mathcal{A}_{P_i}$ are used to diffuse those adjacent patterns $\mathbf{X}_{P_i}$ to produce new patterns through matrix multiplication, which then are weightedly summarized to original patterns as the enhanced responses. This process is recursively performed for long-distance diffusions.
+
+matrix could be utilized to speed up in practice. The local structures can not only benefit for high-efficient computation and low-memory requirement, but also be spread to global region after high-order calculation as introduced in the following section.
+
+# 3.3. Intra-Task PSD
+
+The purpose of intra-task diffusion is to capture long-distance semantic information by diffusing local patterns in single task so as to enhance the task-specific patterns. To reduce the influence of scales for different local structures, we normalize the adjacent correlations in each $\mathcal{A}_{P_i}$ to the sum 1, i.e.,
+
+$$
+\mathcal {A} _ {P _ {i}} \leftarrow \mathcal {A} _ {P _ {i}} / \left(\mathbf {1} ^ {\top} \mathcal {A} _ {P _ {i}} \mathbf {1}\right), \tag {4}
+$$
+
+where $\mathbf{1}$ is a column vector with all values equal to 1.
+
+In order to propagate information, we take the summation aggregation to weight the patterns of those adjacent vertices, formally,
+
+$$
+v _ {i} \leftarrow \sum_ {j \in \mathcal {N} \left(v _ {i}\right)} w \left(v _ {i}, v _ {j}\right) f \left(v _ {j}\right), \tag {5}
+$$
+
+where the neighbor set $\mathcal{N}(v_i)$ and the weight $w(v_{i},v_{j})$ are determined by the adjacent relations $\mathcal{A}_{P_i}$ computed above, $f$ denotes the feature extraction function. The intra-task diffusion process is shown in Fig. 3. To propagate long-distance pattern information, we can recursively iterate the aggregation process in Eqn. (5) and spread local patterns to more distant regions. Concretely, we formulate the recursive process in the following matrix formula,
+
+$$
+[ \operatorname {v e c} (\mathbf {X} ^ {(t + 1)}) ] _ {i} =
+$$
+
+$$
+\left[ \operatorname {v e c} \left(\mathbf {X} ^ {(t)}\right) \right] _ {i} + \beta \cdot \sum_ {j \in \mathcal {N} \left(v _ {i}\right)} \mathcal {A} _ {i j} \times \left[ \operatorname {v e c} \left(\mathbf {X} ^ {(t)}\right) \right] _ {j}, \tag {6}
+$$
+
+where $t = 1, \dots, T$ is the iterate step, and $\beta$ (Here $\beta = 0.05$ as [55]) is the balance factor. In the above equation, we take the residual connection, in which the aggregated feature is integrated with the feature of reference vertex by the weight parameter $\beta$ . For each iteration, the diffused receptive field will enlarge one time. After multi-step iterations, a local pattern can be spread into those distant regions. Due to locality also sparsity of edge connection, the computation complexity of an iteration step depends on the edge number, i.e., $O(l^2 |\mathcal{V}|C)$ , where $l^2 \ll |\mathcal{V}|$ . Thus, the intratask diffusion with $T \ll |\mathcal{V}|$ iterations has the complexity $O(l^{2}T|\mathcal{V}|C)$ , which is obviously lower than the global connectivity with dense edges $O(|\mathcal{V}|^{3}C)$ . Moreover, the memory requirement, $O(l^{2}|\mathcal{V}|C)$ , is relatively lower in contrast to the global dense connection which is $O(|\mathcal{V}|^{2}C)$ .
+
+Finally, intermediate features of multiple steps is collected to enhance the local patterns, which can be formulated as
+
+$$
+[ \operatorname {v e c} (\widetilde {\mathbf {X}}) ] _ {i} = g (\Gamma ([ \operatorname {v e c} (\mathbf {X} ^ {(1)}) ] _ {i}, \cdot , [ \operatorname {v e c} (\mathbf {X} ^ {(T)}) ] _ {i}), \Theta), \tag {7}
+$$
+
+where $\Gamma$ means feature concatenation, $g$ is a non-linear function with the parameter $\Theta$ to be learnt, e.g., one $1\times 1$ convolution layer followed by the ReLU activation unit. Therefore, the new produced feature $\widetilde{\mathbf{X}}$ ensembles those local pattern structures within different-scale receptive fields.
+
+# 3.4. Inter-Task PSD
+
+For the same input, the different-task pixel-level predictions own the similar local pattern structures at those corresponding positions, which implies some latent cues to correlate different tasks. To this end, we attempt to transfer local pattern structures from one task to another task to achieve cross-task pattern propagation. In Fig. 4, we show the main process of inter-task pattern-structure diffusion. Below we take segmentation as the target task, and propagate the information of the other two tasks into the segmentation task. Formally, we derive the pattern at the $i$ -th position as follows
+
+$$
+\begin{array}{l} \left[ \operatorname {v e c} \left(\widetilde {\mathbf {X}} ^ {\mathcal {T} _ {s}}\right) \right] _ {i} \leftarrow \left[ \operatorname {v e c} \left(\widetilde {\mathbf {X}} ^ {\mathcal {T} _ {s}}\right) \right] _ {i} \\ + \beta_ {\mathcal {T} _ {s d}} \cdot \sum_ {j \in \mathcal {N} (v _ {i})} \mathcal {A} _ {i j} ^ {\mathcal {T} _ {s d}} \times [ \operatorname {v e c} (\widetilde {\mathbf {X}} ^ {\mathcal {T} _ {s}}) ] _ {j} \\ + \beta_ {\mathcal {T} _ {s n}} \cdot \sum_ {j \in \mathcal {N} (v _ {i})} \mathcal {A} _ {i j} ^ {\mathcal {T} _ {s n}} \times [ \operatorname {v e c} (\widetilde {\mathbf {X}} ^ {\mathcal {T} _ {s}}) ] _ {j}, \tag {8} \\ \end{array}
+$$
+
+$$
+\mathrm {s . t .}, \mathcal {A} _ {P _ {i}} ^ {\mathcal {T} _ {s d}} = \mathcal {A} _ {P _ {i}} ^ {\mathcal {T} _ {s}} \odot \mathcal {A} _ {P _ {i}} ^ {\mathcal {T} _ {d}} / F _ {P _ {i}} ^ {\mathcal {T} _ {s d}}, \tag {9}
+$$
+
+$$
+\mathcal {A} _ {P _ {i}} ^ {\mathcal {T} _ {s n}} = \mathcal {A} _ {P _ {i}} ^ {\mathcal {T} _ {s}} \odot \mathcal {A} _ {P _ {i}} ^ {\mathcal {T} _ {n}} / F _ {P _ {i}} ^ {\mathcal {T} _ {s n}}, \tag {10}
+$$
+
+where $\odot$ is the element-wise product operation, $\{\beta_{\mathcal{T}_{sd}},\beta_{\mathcal{T}_{sn}}\}$ are the balance factors, $\{F_{P_i}^{\mathcal{T}_{sd}},F_{P_i}^{\mathcal{T}_{sn}}\}$ are the normal factors to constrain the sum of all elements
+
+
+Figure 4: Inter-task diffusion process. The cross-task correlations $(\mathcal{A}_{P_i}^{\mathcal{T}_{sd}})$ are defined on intra-task pattern structures $(\mathcal{A}_{P_i}^{\mathcal{T}_s},\mathcal{A}_{P_i}^{\mathcal{T}_d})$ . According to $\mathcal{A}_{P_i}^{\mathcal{T}_{sd}}$ , local structures can be adaptively transferred from one task to another task.
+
+equal to 1, $\{\mathcal{A}_{P_i}^{\mathcal{T}_s},\mathcal{A}_{P_i}^{\mathcal{T}_n},\mathcal{A}_{P_i}^{\mathcal{T}_d}\}$ are the adjacent matrices of the patch $P_{i}$ for segmentation, surface normal and depth feature maps respectively. In the above Eqns. (9) and (10), the cross-task adjacent structures $\{\mathcal{A}_{P_i}^{\mathcal{T}_{sd}},\mathcal{A}_{P_i}^{\mathcal{T}_{sn}}\}$ are the transferred structures from depth and surface normal tasks respectively, which are adaptively regularized by weighting structures therein. The strong weight of the edge can be enhanced while the weak weight can be attenuated further. In Eqn. (8), the inter-task diffusion towards to segmentation absorbs the structure information from depth and surface normal. As the joint learning with intra-task PSD, actually, the inter-task diffusion also integrates the long-distance pattern information of counterpart tasks. Similar to the above Eqn. (7), we concatenate the diffused feature and the original feature (i.e.,the intra-task feature) to feed into one $1\times 1$ convolution layer to reduce the number of channels, which followed by non-linear activation unit such as ReLU. Accordingly, the transfer to other tasks follows the same process.
+
+# 3.5. Loss Function
+
+For different tasks, we take task-specific loss functions. Following a state-of-the-art depth estimation algorithm [27], we use berHu loss for the depth supervision. As for semantic segmentation and surface normal, cross-entropy loss and L1 loss has been adopted respectively.
+
+# 4. Experiment
+
+# 4.1. Datasets
+
+NYUD-v2. The NYUD-v2 dataset [35] is a popular indoor-scene RGB image dataset, captured with a Microsoft Kinect. There are only 1449 selected frames from 40 classes labeled for segmentation. Following the standard setting [14], we use 795 images to train our model and 654 images to test the final performance. In addition, we follow the method in [16, 38], randomly sampling around 12k images and generating the surface normal ground truth.
+
+Thus, more data can be used for training the joint depth and surface normal model.
+
+SUNRGB-D. The SUNRGB-D dataset [40] is a very large and challenging dataset containing 10355 RGB-D images of indoor scenes. These images are divided into 37 classes including wall, table, floor, etc. All these images have both segmentation and depth labels but no surface normal labels. Therefore, we train our jointly predicting segmentation and depth model with 5285 images and test on 5050 images according to the official documents.
+
+# 4.2. Implementation Details
+
+Training. We implement our proposed model on Pytorch with double NVIDIA GeForce RTX2080Ti (12GB of GPU memory for each). We build our framework based on ResNet-50 [21] which is pre-trained on the ImageNet classification task [12]. Our initial learning rate is 1e-4/0.01 for parameters of pre-trained layers and others respectively and decay to 1e-5/0.01 during fine-tuning process. We use a momentum of 0.9 and a weight decay of 1e-4. The network is trained on RGB images for depth, segmentation and surface normal in an end-to-end manner. In order to further speed up and reduce the computation and memory cost, we only concern on the connection of the center node with others within a local graphlet that makes the adjacent matrix more sparse and aggregate all channels of the adjacent matrix instead of taking a channel-wise calculation, i.e., $\mathcal{A}_{P_i} \in \mathbb{R}^{l \times l}$ . The original frames of $640 \times 480$ pixels are center-cropped to $416 \times 416$ . To increase the diversity of data, we have taken the same data augmentation strategy as [32]: scaling, flipping, cropping and rotating. For SUN-RGBD dataset, we train the model for 50 epochs and fine-tune it for 30 epochs. For NYUD-v2 dataset, the joint depth-segmentation model is trained for 50 epochs and fine-tuned for another 25 epochs with 12k images. As to the three-task joint model, 200 epochs are firstly taken and 100 epochs are for fine-tuning.
+
+Metrics. For the evaluation of depth estimation, we follow the previous works [14, 27] and use the metrics including: root mean square error (RMSE), average relative error (REL), root mean square error in log space (RMSE-Log) and the accuracy with threshold $\delta$ , where $\delta \in \{1.25, 1.25^2, 1.25^3\}$ . For semantic segmentation, we take the same metrics as [10, 31]: pixel accuracy (PixAcc), mean accuracy (mAcc) and mean intersection over union (mIoU). As for surface normal, we use the following metrics: mean of angle error (Mean), medians of the angle error (Median), root mean square error for normal (Nor-RMSE), and pixel accuracy as percentage of pixels with angle error below threshold $\eta$ , where $\eta \in \{11.25^\circ, 22.50^\circ, 30^\circ\}$ .
+
+# 4.3. Comparison with the State-of-the-Arts
+
+In this section, we compare our proposed method with various state-of-the-art methods for depth estimation, se
+
+mantic segmentation and surface normal respectively. In each experiment, we set node number $= 9$ (i.e., region size $= 3 \times 3$ ) and the iteration step is 9. All the following experiments adopt ResNet-50 as backbone.
+
+Semantic segmentation. The comparisons of semantic segmentation are made on widely-used NYUD-v2 and SUNRGB-D dataset. The superior or competitive comparison results on NYUD-v2 dataset are shown in Table 1. Note that here most methods are RGB-D methods which directly take depth map as a source of input. Conversely, our model trained for three tasks only takes 795 RGB images as input which achieves the best PixAcc (outperform TRL [53] by $0.8\%$ ) and mIoU (outperform D-CNN [47] by $2.6\%$ ) but slightly poor in mAcc than D-CNN [47]. This may due to imperfect depth predictions. Although our PSD can obtain impressive depth estimation results, the predictions are still not as precise as ground truth which results in negative effects on the segmentation predictions. For SUNRGB-D dataset, we train our model for depth and segmentation. As illustrated in Table 2, we can observe that our method is slightly weaker than RDF-ResNet152 [36] on mAcc but superior on PixAcc and mIoU. This is may due to the aforementioned reason as well. Meanwhile, RDF-ResNet152 uses stronger network backbone than ours with ResNet-50. Quantitative results are shown in Fig. 5. All these results demonstrate that our PSD can boost segmentation via information from other tasks.
+
+Depth estimation. We mainly compare the proposed PSD with state-of-the-arts for depth estimation on NYUDv2 dataset. As illustrated in Table 3, our model trained jointly for three tasks $(\mathrm{PSD - }\mathcal{T}_d + \mathcal{T}_s + \mathcal{T}_n)$ is able to deliver comparable results against previous state-of-the-art methods though only using 795 images for training. As to the model trained jointly for depth and normal $(\mathrm{PSD - }\mathcal{T}_d + \mathcal{T}_n)$ with more data (12k images), the performance gets better and achieves the best on most metrics except REL and $\delta_{1}$ . Actually, AdaD-S [34] and DORN [18] use large scale data (120k/100k images) for training which is highly beneficial for the model. As quantitative results are shown in Fig. 6, the predictions are more precise which demonstrates that the performance of our proposed PSD is superior.
+
+Surface normal. We mainly evaluate our method for surface normal prediction on NYUD-v2 dataset. The results are listed in Table 4. Our PSD consistently outperforms previous approaches on most metrics except $\eta_{3} = 30^{\circ}$ . The results well indicate PSD can utilize the task-specific and cross-task correlations for improving the current task performance. Quantitative results are shown in Fig. 7 from which we can find that predictions of our PSD are better and contain more details.
+
+Table 1: Comparisons with state-of-the-art semantic segmentation approaches on NYUD-v2 dataset
+
+| Method | data | PixAcc | mAcc | mIoU |
| FCN [24] | RGB | 60.0 | 49.2 | 29.2 |
| Lin et al. [32] | RGB | 70.0 | 53.6 | 40.6 |
| Mousavian et al. [33] | RGB | 68.6 | 52.3 | 39.2 |
| TRL [53] | RGB | 76.2 | 56.3 | 46.4 |
| RefineNet [31] | RGB | 72.8 | 57.8 | 44.9 |
| 3DGNN [37] | RGBD | - | 55.7 | 43.1 |
| RDFNet-ResNet50 [36] | RGBD | 74.8 | 60.4 | 47.7 |
| Cheng et al. [10] | RGBD | 71.9 | 60.7 | 45.9 |
| Deng et al. [13] | RGBD | 63.8 | - | 31.5 |
| Eigen & Fergus [14] | RGBD | 65.6 | 45.1 | 34.1 |
| D-CNN [47] | RGBD | - | 61.1 | 48.4 |
| PSD-ResNet50 | RGB | 77.0 | 58.6 | 51.0 |
+
+Table 2: Comparisons with state-of-the-art semantic segmentation approaches on SUNRGB-D dataset
+
+| Method | data | PixAcc | mAcc | mIoU |
| SegNet [4] | RGB | 72.6 | 44.8 | 31.8 |
| Lin et al. [32] | RGB | 78.4 | 53.4 | 42.3 |
| Bayesian-SegNet [25] | RGB | 71.2 | 45.9 | 30.7 |
| RefineNet [31] | RGB | 80.4 | 57.8 | 45.7 |
| TRL [53] | RGB | 83.6 | 58.9 | 50.3 |
| PAP [55] | RGB | 83.8 | 58.4 | 50.5 |
| Cheng et al. [10] | RGBD | - | 58.0 | - |
| 3DGNN [37] | RGBD | - | 57.0 | 45.9 |
| D-CNN [47] | RGBD | - | 53.5 | 42.0 |
| RDF-ResNet152 [36] | RGBD | 81.5 | 60.1 | 47.7 |
| PSD-ResNet50 | RGB | 84.0 | 57.3 | 50.6 |
+
+
+Figure 5: Visual results of semantic segmentation on SUNRGB-D dataset. (a) original RGB images; (b) ground truth; (c) our predictions
+
+Table 3: Comparisons with state-of-the-art depth estimation approaches on NYUD-v2 dataset
+
+| Method | data | Lower is better | Higher is better |
| RMSE | REL | RMSE-log | δ1= 1.25 | δ2= 1.252 | δ3= 1.253 |
| PAD-Net [49] | 795 | 0.582 | 0.120 | - | 0.817 | 0.954 | 0.987 |
| Wang et al. [45] | 795 | 0.745 | 0.220 | 0.262 | 0.605 | 0.890 | 0.970 |
| Li et al. [29] | 795 | 0.821 | 0.232 | - | 0.621 | 0.886 | 0.968 |
| Xu et al. [51] | 795 | 0.593 | 0.125 | - | 0.806 | 0.952 | 0.986 |
| Lee et al. [28] | 795 | 0.538 | 0.148 | 0.180 | 0.837 | 0.971 | 0.994 |
| PAP [55] | 795 | 0.530 | 0.142 | 0.190 | 0.818 | 0.957 | 0.988 |
| Eigen et al. [11] | 120k | 0.877 | 0.214 | 0.285 | 0.611 | 0.887 | 0.971 |
| Eigen & Fergus [14] | 120k | 0.641 | 0.158 | 0.214 | 0.769 | 0.950 | 0.988 |
| DORN [18] | 120k | 0.509 | 0.115 | - | 0.828 | 0.965 | 0.992 |
| AdaD-S [34] | 100k | 0.506 | 0.114 | - | 0.856 | 0.966 | 0.991 |
| Multiu-scale CRF [50] | 95k | 0.586 | 0.121 | - | 0.811 | 0.954 | 0.987 |
| GeoNet [38] | 16k | 0.569 | 0.128 | - | 0.834 | 0.960 | 0.990 |
| Laina et al. [27] | 12k | 0.573 | 0.127 | 0.194 | 0.811 | 0.953 | 0.988 |
| TRL [53] | 12k | 0.501 | 0.144 | 0.181 | 0.815 | 0.962 | 0.992 |
| PSD-Td+Ts+Tn | 795 | 0.510 | 0.149 | 0.184 | 0.810 | 0.958 | 0.990 |
| PSD-Td+Tn | 12k | 0.488 | 0.132 | 0.172 | 0.840 | 0.966 | 0.994 |
+
+# 4.4. Ablation Study
+
+In this section, we perform extensive experiments to verify the efficacy of our method. All the following experi
+
+
+Figure 6: Visual results of depth on NYUD-v2 dataset. (a) original RGB images; (b) predictions of [51]; (c) our predictions; (d) ground truth.
+
+Table 4: Comparisons with state-of-the-art surface normal approaches on NYUD-V2 dataset
+
+| Method | Lower is better | Higher is better |
| Mean | Median | Nor-RMSE | η1= 11.25° | η2= 22.5° | η3= 30° |
| 3DP [16] | 35.3 | 31.2 | - | 16.4 | 36.6 | 48.2 |
| 3DP(MV) [16] | 36.3 | 19.2 | - | 39.2 | 52.9 | 57.8 |
| Eigen & Fergus [14] | 23.7 | 15.5 | - | 39.2 | 62.0 | 71.1 |
| UNFOLD [17] | 35.1 | 19.2 | - | 37.6 | 53.3 | 58.9 |
| Deep3D [48] | 26.9 | 14.8 | - | 42.0 | 61.2 | 68.2 |
| SkipNet [5] | 19.8 | 12.0 | 28.2 | 47.9 | 70.0 | 77.8 |
| Discr. [26] | 33.5 | 23.1 | - | 27.7 | 49.0 | 58.7 |
| SURGE [46] | 20.6 | 12.2 | - | 47.3 | 68.9 | 76.6 |
| Liao et al. [30] | 19.7 | 12.5 | - | 45.8 | 72.1 | 80.6 |
| GeoNet [38] | 19.0 | 11.8 | 26.9 | 48.4 | 71.5 | 79.5 |
| PSD-ResNet50 | 18.2 | 11.5 | 24.9 | 48.9 | 72.7 | 79.9 |
+
+
+Figure 7: Visual results of surface normal on NYUD-v2 dataset. (a) original RGB images; (b) predictions of [14]; (c) predictions of [5]; (d) predictions of [38]; (e) our predictions; (f) ground truth.
+
+iments adopt ResNet-18 as backbone and are trained for three tasks on the NYUD-v2 dataset.
+
+Single-task versus multi-task learning. To verify the effectiveness of jointly predicting segmentation, depth and surface normal with our PSD method, we first predict each task separately and then jointly predict three tasks with our intra-task and inter-task PSD. To reflect the essential comparisons, we conduct the experiments on a single scale ( $\frac{1}{16}$ scale of input). As is shown in Table 5, the performance of joint-task model outperforms the single-task model by $7.0\%$ totally, and each task is indeed promoted after joint learning.
+
+Analysis on network settings. We perform a series of experiments to evaluate the influence of each module in our
+
+Table 5: Results of single-task versus multi-task learning
+
+| Settins | mIoU | RMSE | Nor-RMSE |
| Sementation only | 42.4 | - | - |
| Depth only | - | 0.572 | - |
| Surface normal only | - | - | 29.0 |
| Three task jointly | 44.9 | 0.548 | 26.9 |
+
+Table 6: Analysis on network settings on NYUD-v2 dataset
+
+| Model | mIoU | RMSE | Nor-RMSE |
| baseline | 40.9 | 0.585 | 29.2 |
| naive fusion | 42.1 | 0.576 | 28.7 |
| cross-stitch [22] | 43.4 | 0.554 | 28.4 |
| + intra-task PSD | 42.2 | 0.578 | 28.3 |
| + inter-task PSD | 43.1 | 0.565 | 27.8 |
| + intra&inter-task PSD on small scale | 44.9 | 0.548 | 26.9 |
| + intra&inter-task PSD on middle scale | 46.3 | 0.534 | 26.6 |
| + intra&inter-task PSD on big scale | 47.2 | 0.526 | 26.1 |
| + intra&inter-task PSD on all scales | 50.0 | 0.498 | 25.8 |
+
+
+Figure 8: Visualization of response maps. (a) original RGB image; (b) baseline; (c) naive fusion; (d) intra-task PSD; (e) inter-task PSD; (f) intra&inter-task PSD on middle scale
+
+proposed network. As shown in Table 6, the first five rows show results of experiments conducted on $\frac{1}{16}$ scale of the input. The baseline denotes the model jointly trained on three tasks without any interactiveness. We also compare two feature-fusion approaches under the same settings, i.e., naive fusion and cross-stitch [22]. The former directly concatenates cross-task features. The latter adds the cross-stitch unit to baseline. We can observe that both performances are poorer than ours. The reason behind it should be that, these two methods just combine features, but not mine/utilize pattern structures. Next, we add intra-task or inter-task PSD to baseline. The performance improvement indicates the benefit of each module. Further, we study the influence of different scales. The results are reported in the last four rows of Table 6. The larger scale results in a better performance, because the finer patterns at larger scale can be decoded to better estimate pixel-level subtle information. In addition, we show some qualitative visual results in Fig. 8. We can find that both intra-task and inter-task PSD can well boost pixel-level semantic understanding.
+
+Analysis on graphlet size. Here we perform experiments to investigate the influence of graphlet size (i.e., the node number). From Fig. 9, we can observe that the perfor
+
+
+Figure 9: (a) RMSE (left axis, lower the better) and NorRMSE (right axis, lower the better) and (b) mIoU (higher the better) of PSD w.r.t graphlet size; (c) RMSE and NorRMSE and (d) mIoU of PSD w.r.t iteration numbers.
+
+mance becomes better as the graphlet size increases, then reaches the best at the size of 25. The reason should be two folds: i) as the graphlet size increases, more pattern structures will be diffused which makes the correlations become more complicated and is more sensitive to feature response, ii) to some extent, some details may be fuzzed up as the diffused receptive field becomes larger. In addition, the size of 25 brings limited improvements over size of 9 while cost heavier memory and computation, which can be seen as a trade-off.
+
+Analysis on the iteration number of diffusion. In Fig. 9, we show the results of different iteration numbers. Here we set intra-task and inter-task PSD only on the $\frac{1}{16}$ scale of input with the graphlet size 9. We can observe that the performance increases at first and tends to saturate when the iteration number is 9. It reveals that the model can capture longer distance correlations as the iteration number increases. Nevertheless, transmitting too long-distance patterns might bring negative impacts for the current region pattern to a certain extent. This reason might be that, in the pixel-level prediction task, each pixel highly depends on its neighbours instead of too far away pixels unless the similar pattern structures.
+
+# 5. Conclusion
+
+In this paper, we proposed the pattern-structure diffusion (PSD) framework for multi-task learning. Two types of pattern-structure diffusion stage were designed to effectively mine and propagate the relationships within/across tasks. In virtue of these two PSD strategies, the interactions across tasks can be connected with pattern-structures as well as the correlations. Besides, graphlets are utilized to model the pattern-structures which can bring the additional benefit of low computation and memory burden. Finally, all these diffusion models were capsulated into a PSD layer, which can be flexible to be incorporated those general deep networks. Extensive experiments verified we can benefit from pattern-structure diffusion for joint prediction of depth, segmentation and surface normal. In the future, we may generalize our method to other tasks in computer vision.
+
+# Acknowledgement
+
+This work was supported by the National Natural Science Foundation of China (Grants Nos.61772276, 61906094, 61972204, U1713208) and the Natural Science Foundation of Jiangsu Province (Grants No.BK20190019).
+
+# References
+
+[1] Jalali Ali, Sanghavi Sujay, Ruan Chao, and Ravikumar Pradeep K. A dirty model for multi-task learning. In NeurlP-S, pages 964-972, 2010.
+[2] Saxena Ashutosh, Sun Min, and Ng Andrew Y. Make3d: Learning 3d scene structure from a single still image. TPA-MI, 31(5):824-840, 2008.
+[3] Saxena Ashutosh, Chung Sung H, and Ng Andrew Y. Learning depth from single monocular images. In NeurIPS, pages 1161-1168, 2006.
+[4] Vijay Badrinarayanan, Alex Kendall, and Roberto Cipolla. Segnet: A deep convolutional encoder-decoder architecture for image segmentation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 39(12):2481-2495, 2017.
+[5] Aayush Bansal, Bryan Russell, and Abhinav Gupta. Marr revisited: 2d-3d alignment via surface normal prediction. In CVPR, pages 5965–5974, 2016.
+[6] Chenyi Chen, Ari Seff, Alain Kornhauser, and Jianxiong Xiao. Deepdriving: Learning affordance for direct perception in autonomous driving. In CVPR, pages 2722-2730, 2015.
+[7] 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.
+[8] Po-Yi Chen, Alexander H. Liu, Yen-Cheng Liu, and Yu-Chiang Frank Wang. Towards scene understanding: Unsupervised monocular depth estimation with semantic-aware representation. In CVPR, June 2019.
+[9] Yuhua Chen, Wen Li, Xiaoran Chen, and Luc Van Gool. Learning semantic segmentation from synthetic data: A geometrically guided input-output adaptation approach. In CVPR, pages 1841-1850, 2019.
+[10] Yanhua Cheng, Rui Cai, Zhiwei Li, Xin Zhao, and Kaiqi Huang. Locality-sensitive deconvolution networks with gated fusion for rgb-d indoor semantic segmentation. In CVPR, pages 3029-3037, 2017.
+[11] Eigen David, Puhrsch Christian, and Fergus Rob. Depth map prediction from a single image using a multi-scale deep network. In NeurIPS, pages 2366-2374, 2014.
+[12] 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. IEEE, 2009.
+[13] Zhuo Deng, Sinisa Todorovic, and Longin Jan Latecki. Semantic segmentation of rgb images with mutex constraints. In CVPR, pages 1733-1741, 2015.
+[14] David Eigen and Rob Fergus. Predicting depth, surface normals and semantic labels with a common multi-scale convolutional architecture. In CVPR, pages 2650-2658, 2015.
+[15] Pedro F Felzenszwalb and Daniel P Huttenlocher. Efficient graph-based image segmentation. International journal of computer vision, 59(2):167-181, 2004.
+[16] David F Fouhey, Abhinav Gupta, and Martial Hebert. Data-driven 3d primitives for single image understanding. In CVPR, pages 3392-3399, 2013.
+[17] David Ford Fouhey, Abhinav Gupta, and Martial Hebert. Unfolding an indoor origami world. In ECCV, pages 687-702. Springer, 2014.
+
+[18] 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.
+[19] Clement Godard, Mac Aodha Oisin, Michael Firman, and Gabriel J. Brostow. Digging into self-supervised monocular depth estimation. In ICCV, October 2019.
+[20] Adam W Harley, Konstantinos G Derpanis, and Iasonas Kokkinos. Segmentation-aware convolutional networks using local attention masks. In CVPR, pages 5038-5047, 2017.
+[21] Kaiming He, Xiangyu Zhang, Ren Shaoqing, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770-778, 2016.
+[22] Misra Ishan, Shrivastava Abhinav, Gupta Abhinav, and Hebert Martial. Cross-stitch networks for multi-task learning. In CVPR, pages 3994-4003, 2016.
+[23] Yosinski Jason, Clune Jeff, Bengio Yoshua, and Lipson Hod. How transferable are features in deep neural networks? In NeurIPS, pages 3320-3328, 2014.
+[24] Long Jonathan, Shelhamer Evan, and Darrell Trevor. Fully convolutional networks for semantic segmentation. In CVPR, pages 3431-3440, 2015.
+[25] Alex Kendall, Vijay Badrinarayanan, and Roberto Cipolla. Bayesian segnet: Model uncertainty in deep convolutional encoder-decoder architectures for scene understanding. arXiv preprint arXiv:1511.02680, 2015.
+[26] L Ladický, Bernhard Zeisl, and Marc Pollefeys. Discriminatively trained dense surface normal estimation. In ECCV, volume 2, page 4, 2014.
+[27] Iro Laina, Christian Rupprecht, Vasileios Belagiannis, Federico Tombari, and Nassir Navab. Deeper depth prediction with fully convolutional residual networks. In 3DV, pages 239-248. IEEE, 2016.
+[28] Jae-Han Lee and Chang-Su Kim. Monocular depth estimation using relative depth maps. In CVPR, pages 9729-9738, 2019.
+[29] Bo Li, Chunhua Shen, Yuchao Dai, Anton Van Den Hengel, and Mingyi He. Depth and surface normal estimation from monocular images using regression on deep features and hierarchical crfs. In CVPR, pages 1119-1127, 2015.
+[30] Shuai Liao, Efstratios Gavves, and Cees G. M. Snoek. Spherical regression: Learning viewpoints, surface normals and 3d rotations on n-spheres. In CVPR, June 2019.
+[31] Guosheng Lin, Anton Milan, Chunhua Shen, and Ian Reid. Refinenet: Multi-path refinement networks for high-resolution semantic segmentation. In CVPR, pages 1925-1934, 2017.
+[32] Guosheng Lin, Chunhua Shen, Anton Van Den Hengel, and Ian Reid. Efficient piecewise training of deep structured models for semantic segmentation. In CVPR, pages 3194-3203, 2016.
+[33] Arsalan Mousavian, Hamed Pirsiavash, and Jana Košecka. Joint semantic segmentation and depth estimation with deep convolutional networks. In 3DV, pages 611-619. IEEE, 2016.
+[34] Jogendra Nath Kundu, Phani Krishna Uppala, Anuj Pahuja, and R Venkatesh Babu. Ad地貌: Unsupervised content
+
+congruent adaptation for depth estimation. In CVPR, pages 2656-2665, 2018.
+[35] Silberman Nathan, Hoiem Derek, Kohli Pushmeet, and Fergus Rob. Indoor segmentation and support inference from rgbd images. In ECCV, pages 746-760, 2012.
+[36] Seong-Jin Park, Ki-Sang Hong, and Seungyong Lee. RDFnet: Rgb-d multi-level residual feature fusion for indoor semantic segmentation. In CVPR, pages 4980-4989, 2017.
+[37] Xiaojuan Qi, Renjie Liao, Jiaya Jia, Sanja Fidler, and Raquel Urtasun. 3d graph neural networks for rgbd semantic segmentation. In CVPR, pages 5199-5208, 2017.
+[38] Xiaojuan Qi, Renjie Liao, Zhengzhe Liu, Raquel Urtasun, and Jiaya Jia. Geonet: Geometric neural network for joint depth and surface normal estimation. In CVPR, June 2018.
+[39] Anirban Roy and Sinisa Todorovic. Monocular depth estimation using neural regression forest. In CVPR, pages 5506-5514, 2016.
+[40] Shuran Song, Samuel P Lichtenberg, and Jianxiong Xiao. Sun rgb-d: A rgb-d scene understanding benchmark suite. In CVPR, pages 567-576, 2015.
+[41] Gjorgji Strezoski, Nanne van Noord, and Marcel Worring. Many task learning with task routing. In ICCV, October 2019.
+[42] Keisuke Tateno, Federico Tombari, Iro Laina, and Nassir Navab. Cnn-slam: Real-time dense monocular slam with learned depth prediction. In CVPR, pages 6243-6252, 2017.
+[43] Gebru Timnit, Hoffman Judy, and Li Feifei. Fine-grained recognition in the wild: A multi-task domain adaptation approach. In CVPR, pages 1349-1358, 2017.
+[44] Koen EA Van de Sande, Jasper RR Uijlings, Theo Gevers, and Arnold WM Smeulders. Segmentation as selective search for object recognition. In ICCV, pages 1879-1886. IEEE, 2011.
+[45] Peng Wang, Xiaohui Shen, Zhe Lin, Scott Cohen, Price Brian, and Yuille Alan L. Towards unified depth and semantic prediction from a single image. In CVPR, pages 2800-2809, 2015.
+[46] Peng Wang, Xiaohui Shen, Bryan Russell, Scott Cohen, Brian Price, and Alan L Yuille. Surge: Surface regularized geometry estimation from a single image. In NeurIPS, pages 172-180, 2016.
+[47] Weiyue Wang and Ulrich Neumann. Depth-aware cnn for rgb-d segmentation. In ECCV, pages 135-150, 2018.
+[48] Xiaolong Wang, David Fouhey, and Abhinav Gupta. Designing deep networks for surface normal estimation. In CVPR, pages 539-547, 2015.
+[49] Dan Xu, Wanli Ouyang, Xiaogang Wang, and Nicu Sebe. Pad-net: Multi-tasks guided prediction-and-distillation network for simultaneous depth estimation and scene parsing. In CVPR, pages 675-684, 2018.
+[50] Dan Xu, Elisa Ricci, Wanli Ouyang, Xiaogang Wang, and Nicu Sebe. Multi-scale continuous crfs as sequential deep networks for monocular depth estimation. In CVPR, pages 5354-5362, 2017.
+[51] Dan Xu, Wei Wang, Hao Tang, Hong Liu, Nicu Sebe, and Elisa Ricci. Structured attention guided convolutional neural fields for monocular depth estimation. In CVPR, pages 3917-3925, 2018.
+
+[52] Wei Yin, Yifan Liu, Chunhua Shen, and Youliang Yan. Enforcing geometric constraints of virtual normal for depth prediction. In ICCV, October 2019.
+[53] Zhenyu Zhang, Zhen Cui, Chunyan Xu, Zequn Jie, Xiang Li, and Jian Yang. Joint task-recursive learning for semantic segmentation and depth estimation. In ECCV, pages 235–251, 2018.
+[54] Zhenyu Zhang, Zhen Cui, Chunyan Xu, Zequn Jie, Xiang Li, and Jian Yang. Joint task-recursive learning for rgb-d scene understanding. TPAMI, 2019.
+[55] Zhenyu Zhang, Zhen Cui, Chunyan Xu, Yan Yan, Nicu Sebe, and Jian Yang. Pattern-affinitive propagation across depth, surface normal and semantic segmentation. In CVPR, June 2019.
+[56] Zhenyu Zhang, Chunyan Xu, Jian Yang, Junbin Gao, and Zhen Cui. Progressive hard-mining network for monocular depth estimation. TIP, 27(8):3691-3702, 2018.
+[57] Zhenyu Zhang, Chunyan Xu, Jian Yang, Ying Tai, and Liang Chen. Deep hierarchical guidance and regularization learning for end-to-end depth estimation. PR, 83:430-442, 2018.
+[58] Maria Zontak and Michal Irani. Internal statistics of a single natural image. In CVPR, pages 977-984. IEEE, 2011.
\ No newline at end of file
diff --git a/patternstructurediffusionformultitasklearning/images.zip b/patternstructurediffusionformultitasklearning/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..6e1dad1db23897b0bcf410f2213b439cf63948f9
--- /dev/null
+++ b/patternstructurediffusionformultitasklearning/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4e4518e8de24e06f9fc47abcd971a04d5828cf97fc18b03270bca061348d2b6a
+size 602324
diff --git a/patternstructurediffusionformultitasklearning/layout.json b/patternstructurediffusionformultitasklearning/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..7e0865e61247e34405d1364e5dfa388c3fdb55db
--- /dev/null
+++ b/patternstructurediffusionformultitasklearning/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:deaa4bc30fd8e45a97fb58970dfe6b1e26e6019d0f9d5790c15afc8031222cd0
+size 381855
diff --git a/peekabooocclusionreasoninginindoorsceneswithplanerepresentations/25c2c8a8-7937-436f-adc8-f551f0388db3_content_list.json b/peekabooocclusionreasoninginindoorsceneswithplanerepresentations/25c2c8a8-7937-436f-adc8-f551f0388db3_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..a5d21620055d801aaaaedbb661fb5a33b9a125b5
--- /dev/null
+++ b/peekabooocclusionreasoninginindoorsceneswithplanerepresentations/25c2c8a8-7937-436f-adc8-f551f0388db3_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dd747c33ca5b4c401b29c6aa0c4cb5417198f3e66e3e108cf1fc1775c8c7354a
+size 74654
diff --git a/peekabooocclusionreasoninginindoorsceneswithplanerepresentations/25c2c8a8-7937-436f-adc8-f551f0388db3_model.json b/peekabooocclusionreasoninginindoorsceneswithplanerepresentations/25c2c8a8-7937-436f-adc8-f551f0388db3_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..5f7fdab744507ffa64db0880f2e69a810334889c
--- /dev/null
+++ b/peekabooocclusionreasoninginindoorsceneswithplanerepresentations/25c2c8a8-7937-436f-adc8-f551f0388db3_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:aa9504fb6455bd7709c0e4bcdefcd808e93d772979fed1c9f694faa43b9bf4e0
+size 86819
diff --git a/peekabooocclusionreasoninginindoorsceneswithplanerepresentations/25c2c8a8-7937-436f-adc8-f551f0388db3_origin.pdf b/peekabooocclusionreasoninginindoorsceneswithplanerepresentations/25c2c8a8-7937-436f-adc8-f551f0388db3_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..a3a2fde8d0598fa315352482dc891bcc29708827
--- /dev/null
+++ b/peekabooocclusionreasoninginindoorsceneswithplanerepresentations/25c2c8a8-7937-436f-adc8-f551f0388db3_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6216b52396a94a64495dceb33894f166383a0e397611b3d23112b1a9e194979a
+size 5245869
diff --git a/peekabooocclusionreasoninginindoorsceneswithplanerepresentations/full.md b/peekabooocclusionreasoninginindoorsceneswithplanerepresentations/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..0f42ef3114a502c110992ff7499b02deabadd2d8
--- /dev/null
+++ b/peekabooocclusionreasoninginindoorsceneswithplanerepresentations/full.md
@@ -0,0 +1,333 @@
+# Peek-a-Boo: Occlusion Reasoning in Indoor Scenes with Plane Representations
+
+Ziyu Jiang $^{1,3*}$ Buyu Liu $^{1}$ Samuel Schulter $^{1}$ Zhangyang Wang $^{3}$ Manmohan Chandraker $^{1,2}$ $^{1}$ NEC Laboratories America $^{2}$ UC San Diego $^{3}$ Texas A&M University
+
+# Abstract
+
+We address the challenging task of occlusion-aware indoor 3D scene understanding. We represent scenes by a set of planes, where each one is defined by its normal, offset and two masks outlining (i) the extent of the visible part and (ii) the full region that consists of both visible and occluded parts of the plane. We infer these planes from a single input image with a novel neural network architecture. It consists of a two-branch category-specific module that aims to predict layout and objects of the scene separately so that different types of planes can be handled better. We also introduce a novel loss function based on plane warping that can leverage multiple views at training time for improved occlusion-aware reasoning. In order to train and evaluate our occlusion-reasoning model, we use the ScanNet dataset [1] and propose (i) a strategy to automatically extract ground truth for both visible and hidden regions and (ii) a new evaluation metric that specifically focuses on the prediction in hidden regions. We empirically demonstrate that our proposed approach can achieve higher accuracy for occlusion reasoning compared to competitive baselines on the ScanNet dataset, e.g. $42.65\%$ relative improvement on hidden regions.
+
+# 1. Introduction
+
+Reasoning about occlusions occurring in the 3D world is an ability at which human visual perception excels. While we develop an understanding for the concept of object permanence already as toddlers, for instance by playing peek-a-boo, it is a very challenging skill for machine intelligence to acquire, since it requires strong contextual and prior knowledge about objects and scenes. This is particularly true for indoor scenes where the composition of objects and scenes is highly complex and leads to numerous and strong occlusions. And while several works exist that investigate this problem for outdoor scenes [5, 13, 24], there has been comparatively little work for indoor scenes. But indoor applications that can potentially benefit from occlusion reasoning are ample, like robot navigation or augmented reality.
+
+
+Figure 1: Given a single image as input, our model predicts planes to describe both visible and occluded areas of the scene with separate branches for objects and layout (top). This model can be used for occlusion reasoning and novel view synthesis (bottom).
+
+To address the problem of occlusion reasoning, the first step is to find a suitable representation to describe scenes. Prior work has explored several representations like 3D bounding boxes for objects [4, 28] or voxels [19]. However, the former representation is rather coarse for general objects and is not suitable for scene layouts, while the latter has a significant memory footprint. Most recently, layered depth images (LDI) [18] have been leveraged for predicting scene geometry in occluded areas [3, 22], which was also extended to the object level [2]. We rely on planes as another promising representation that shows several benefits over the aforementioned ones. Planes can compactly describe scenes in a semi-parametric way: each plane is defined by a normal vector, an offset and a (non-parametric) mask to
+
+outline its extent. Liu et al. [10] have recently demonstrated these benefits with their Plane-RCNN model, but it focuses mainly on the visible part of the scene.
+
+In this work, we extend Plane-RCNN [10] to infer a full scene representation that also reasons about hidden areas of the input scene. Starting with a Plane-RCNN model that predicts both the visible and occluded extent of each plane, we propose a novel network architecture that separates the prediction of planes based on semantics, see Sec. 3.2. Given the often stark difference in size and shape of planes on "foreground" objects, like chairs or tables, and planes on "background" stuff, like walls, separating the predictions lowers output space variations and thus eases network optimization. With our proposed merging strategy, this novel architecture design significantly boosts performance, particularly in hidden areas. Finally, we also present a novel objective that is based on warping planes from one view to another to obtain a training signal if multi-view input is available, which additionally improves performance. Fig. 1 gives an overview of our approach.
+
+In order to train such a model, however, training data is required that contains ground truth about the geometry and semantics in occluded areas. While several synthetic datasets exist where full 3D information can be extracted [27, 20], no dataset with real images exists that provides such ground truth. In this work, we demonstrate how to process the ScanNet dataset [1] such that approximate but reliable ground truth for the problem of occlusion reasoning can be generated, which we will make publicly available. $^{1}$
+
+While we follow the standard evaluation proposed in Plane-RCNN [10], average precision (AP), for the visible part of planes, we found that it does not well capture the impact of predictions in the hidden part. For this reason, we propose a novel metric, average precision hidden (APH), which is specifically designed for occluded areas and described in Sec. 3.3.
+
+Our results on the ScanNet dataset with our newly generated annotations show that each component of our approach aids in better occlusion reasoning. Our model is competitive with Plane-RCNN [10] for foreground areas and outperforms strong baselines in occluded areas, see Sec. 4.
+
+To summarize, our contributions are:
+
+- Extend Plane-RCNN [10] to predict the occluded part of planes in indoor scenes
+- A novel network architecture (DualRPN) and training objective (plane-warp) specifically designed for the task of occlusion reasoning.
+- Approximate ground truth of semantics and geometry in occluded areas generated automatically from the ScanNet dataset.
+- An evaluation metric designed to analyze the prediction quality of occlusions.
+
+# 2. Related Work
+
+We focus our discussion of related work specifically on occlusion reasoning in scene understanding.
+
+Depth-ordering: Representing objects in an amodal fashion (e.g., 3d boxes) and assigning them an ordering based on depth is a simple way to reason about occlusions. For instance, Yang et al. [26] explore layered representations to express relative order. Specifically, an image will be decomposed into multiple regions and each region is associated with its semantic class and relative order [21]. The main problem lies in how to generate high quality semantically complete and meaningful regions. An exemplar-based detector is utilized in [21] and other instance-level detection methods can also be applied when occlusion reasoning happens among foreground objects. In contrast, our model is more generic since we work on both object and background/stuff classes and can be extended to unseen classes. Moreover, our representation is more complete since we provide absolute depth rather than just relative order.
+
+Layout estimation: Many prior works have tried to estimate the layout of a scene, both for outdoor [5, 9, 24] as well as indoors [7, 8, 23]. The layout is typically described by a parametric model, e.g., a cube for indoor rooms [8] or by more complex attributes for outdoor scenes [5, 24]. All these works naturally address occlusion reasoning since most scenes also contain foreground objects that occlude the scene layout. In contrast, our work addresses both foreground objects and the scene layout simultaneously.
+
+Explicit representations for occlusion reasoning: Another direction that addresses the occlusion reasoning problem more directly is via predicting multiple depth and/or semantic segmentation maps. Many works have been proposed for completing depth with RGB-D input, including ones that employ optimization of the Mumford-Shah functional [12], background surface extrapolation [14] or deep-learning based inpainting [17]. Similar works [3, 22] rely on Layer Depth Images (LDI) by Shade et al. [18]. While these methods separate foreground and background with two distinct depth maps (and segmentation maps), multiple occlusions of foreground objects are not representable. Most recently, Dhamo et al. [2], successfully addressed this issue by combining LDIs with the concept of object detection frameworks [16]. One limitation of [2] is that the definition of foreground objects is bound by the availability of object detection datasets, whereas our proposed approach is more generic and can generalize to arbitrary objects in a scene.
+
+Plane-based representations: Planes are an alternative representation of scenes, which have shown to be promising [10, 11, 25] due to their compactness and flexibility. Essentially, each plane in the scene can be described by a normal vector and an offset along with a mask that outlines the extent of the plane. Both [11] and [25] reconstruct
+
+
+(a)
+
+
+(b)
+Figure 2: An illustration of our plane representation: (a) complete layout masks (b) visible layout masks (c) complete object masks (d) visible object masks. Separately showing layout and object planes is for better visualization.
+
+
+(c)
+
+
+(d)
+
+scenes as piecewise planar depthmap from a single RGB image but are limited by the need to define a maximum number of planes. Very recently, Liu et al. [10] have proposed Plane-RCNN, which is a deep-learning based model to predict a full scene description based on planes. Similar to [2], Plane-RCNN leverages an object detection framework [16] to predict an arbitrary number of planes. In this work, we extend Plane-RCNN to explicitly do occlusion reasoning with a plane representation, which are very suitable since planes naturally extend to occluded areas.
+
+# 3. Our Approach
+
+In this section, we introduce our proposed approach for occlusion reasoning and discuss four main aspects. First, we introduce in Sec. 3.1 our procedure for generating ground truth from the ScanNet dataset [1] that is required to train our occlusion-reasoning model. We also discuss in that section the plane-based representation that we build our model upon. Given the plane representation, we then introduce our main contributions in Sec. 3.2: A two-branch category-specific module for predicting planes, the corresponding fusion scheme for objects and scene layout, and a novel training objective based on plane warping. Finally, in Sec. 3.3, we propose a novel metric to evaluate occlusion-reasoning specifically for occluded areas.
+
+# 3.1. Data generation and plane representation
+
+Our dataset is built based on the RGB-D videos in ScanNet [1]. We first convert the mesh of the room into a set of multiple planes following the steps described in PlaneNet [11]. In our work, we describe each plane with a normal vector, an offset and two masks: one for the visible part of the plane and one to outline the full extent of a plane even if occluded by other objects. We denote these two types of masks as "visible mask" and "complete mask". The normal vector indicates the direction of the plane, the offset defines the closest distance from the camera to the plane, and the masks indicate the size and shape of the plane (visible and complete, respectively). Fig. 2 illustrates this plane representation. For a full representation of the scene, we also use (and predict) a depthmap for areas that are not covered by any plane. To finally generate the data for every single
+
+
+(a)
+Figure 3: Complete masks for ground truth generation before (b) and after (c) applying the proposed filling method for image in (a). We can observe that after the proposed filling method, we are able to have a better complete mask for floor (blue area). (d) highlights the filled regions. White area is the original complete mask without filling. Red area shows the filled area, where pixel value is set to -1.
+
+
+(b)
+
+
+(c)
+
+
+(d)
+
+view of the scene, we utilize the camera parameters to compute the parameters and masks (both visible and complete) of our plane representation.
+
+However, due to the camera views as well as the noisy meshes [2], there can be holes in the complete masks for occluded areas. This would lead to a wrong training signal for our prediction network since the holes are merely artifacts of the data generation process. Observing that complete planes like the wall, the floor or the top of a table are, in most cases, of convex shape while holes generally occur inside the full planes, we propose to fill the complete masks to be the convex closure. However, since we cannot be sure that each hole is actually surrounded by a mask that corresponds to the same plane, assignment to masks becomes ambiguous and can potentially lead to wrong training signals. We thus choose to flag those filled areas as "ignore" (-1), meaning they have no influence during training our model. Fig. 3 shows comparisons of full masks before and after filling. Note that the filled floor is set as "ignore" (red area) in Fig. 3d. We also report quantitative results of with and without the filling step later in our experiments (see Sec. 4 for more details.)
+
+# 3.2. Occlusion-aware plane detection network
+
+Our occlusion-aware plane detection network follows the design of PlaneRCNN [10], which we briefly review in the following paragraph before introducing our proposed model.
+
+Plane-RCNN [10]: The main architecture of PlaneR-CNN [10] follows the design of Mask R-CNN [6]. Specifically, it detects planes by first depicting their enclosing bounding boxes (bbox). Then it predicts the normal and binary mask for each individual plane, indicating the corresponding orientation as well as the visible region of this plane. Meanwhile, there is a depth branch that uses the global feature map to predict per-pixel depth values. Given the per-pixel depth and the plane (normal and visible mask) predictions, it further estimates the offset of each plane. Note that in the original paper of [10], the authors also propose to add one more mask prediction module for inferring the
+
+
+Figure 4: Our framework consists of three parts: (1) A dual RPN model which splits the head of PlaneRCNN-OR [10] into two, for predicting layout masks and object masks separately. (2) A plane merging module for fusing predictions from the two branches. (3) An occlusion-aware warping loss module for measuring the consistency with neighbor frames during training when multiple views are available.
+
+
+Figure 5: The detailed flowchart of our DualRPN module. complete mask to handle the occlusion reasoning. Although no quantitative results are provided, we implement their proposal and take this as one of our baselines, which we denote as PlaneRCNN-OR.
+
+DualRPN: With the introduction of both visible and complete masks, the variation in shape, size and distribution of planes belonging to different categories becomes larger than only looking at visible masks as in PlaneRCNN [10]. A good example for this are categories like floor and wall, where large differences can be observed compared to typical foreground categories, but also between visible and com
+
+plete masks of the same plane. To this end, we propose to handle background and foreground separately. Specifically, we divide our classes into two, foreground and background, and propose a category-specific network, which is referred to as DualRPN in this paper. Compared to the baseline (PlaneRCNN-OR), we aim to learn different priors for different categories by employing separate RPNs with independent mask prediction modules. As can be viewed in Fig. 4, we have one object and one layout branch, for foreground and background categories, respectively. The object branch is trained with the object plane ground truth and vice versa. In this way, we are able to handle and learn different priors for both categories without adding too many parameters. Ideally, given a single image, the layout branch predicts only the masks for background classes, e.g. walls and floors, while the object branch focuses only on foreground classes and ignores others. The detailed flowchart is shown in Fig. 5. Note that we also tried splitting at later stages in the network architecture, however, it did not provide comparably good results.
+
+Semantic merging: The results of DualRPN are two sets of predicted planes from object and layout branches, respectively. In order to obtain the final representation for the entire image, we should fuse the predictions from both. To achieve that, one naive way is to take the union of the two sets and use the full predictions as the final results. However, this would lead to duplicated results. For instance, one region can get predictions both from object and layout branch by mistake since both of them believe this region should be represented by their own category. To address this problem,
+
+one can apply non-maxima suppression (NMS) over the full predictions. However, this simple NMS-based fusion can lead to over-suppressing of planes. Fig. 9 gives an example. If we directly apply NMS between predictions from object and layout branch, we will suppress the plane for the table. This is due to the heavy occlusion between table and floor boxes and NMS would only keep one of them in this case. This type of problem is even more severe for our task since heavy occlusions happen frequently.
+
+To this end, we propose a novel fusion method and denote it as Semantic Merging. We firstly apply NMS separately on each branch's output planes. Then, we feed the suppressed results from the two branches to our semantic merging module. This module then utilizes semantic segmentation results as reference to effectively fuse the results from both branches (see Fig. 4). Specifically, we can check the overlap between visible masks from object and layout branches. For those pairs whose overlapping score is greater than the pre-defined threshold $\theta$ , we further turn to the semantic segmentation results to help determine which of the planes to keep. For these paired visible masks, we compute their confidence scores based on their overlapping score w.r.t. semantic segmentation and leave the one that has higher confidence score in our final predictions. The overlapping score of the layout class can be computed by counting the percentage of pixels that are inside the layout visible mask and belong to a layout class in the segmentation map and vice versa. In practice, we use an off-the-shelf semantic segmentation network [15] to predict the per-pixel semantic segmentation map and set the threshold $\theta$ to 0.3. More detailed algorithm can be found in supplementary material.
+
+Plane warping module: We now introduce a novel training objective specifically designed for our plane representation that leverages the availability of multiple views of the same scene in the training dataset. The loss tries to encourage consistency between planes across different views, which is useful since many planes are likely only occluded in one view, but visible from another one. Different from the warping loss introduced in [10], our warping loss can enforce consistency also in hidden regions.
+
+Given the camera transformation between two views, we warp each predicted plane $P_{i}$ . First, the plane normals and offsets are projected by the camera rotation and translation. With this information, we can then further project the mask of the predicted plane $P_{i}$ to the other view via bilinear interpolation. We denote the warped plane as $P_{w_i}$ . Then, we match each warped prediction $P_{w_i}$ with ground truth planes $P_{g_j}$ , which can be formalized as
+
+$$
+\max _ {i, j} \operatorname {I o U} \left(P _ {g _ {i}}, P _ {w _ {j}}\right), \tag {1}
+$$
+
+subject to
+
+$$
+D _ {n} \left(P _ {g _ {i}}, P _ {w _ {j}}\right) \leq \eta_ {\text {d e p t h}} \wedge \operatorname {I o U} \left(P _ {g _ {i}}, P _ {w _ {j}}\right) \geq \eta_ {\text {i o u}}, \tag {2}
+$$
+
+with
+
+$$
+D _ {n} \left(P _ {g _ {i}}, P _ {w _ {j}}\right) = \left\| N _ {P _ {g _ {i}}} \cdot o _ {g _ {i}} - N _ {P _ {w _ {j}}} \cdot o _ {w _ {j}} \right\| ^ {2}. \tag {3}
+$$
+
+where $\mathrm{IoU}(\cdot)$ calculates the intersection-over-union overlap between two planes and $N_P$ and $o$ indicate the normal and offset of a plane. The two thresholds $\eta_{\mathrm{depth}}$ and $\eta_{\mathrm{iou}}$ are hyper-parameters which are set to 0.5 and 0.3, respectively for all experiments. Finally, the loss is calculated as the cross entropy between the warped mask prediction and the matched neighbor ground truth mask, which provides an additional training signal and improves our results as we empirically demonstrate in Sec. 4. A more detailed algorithm can be found in the supplementary material.
+
+# 3.3. Metric for occluded regions
+
+To measure the performance of plane predictions, Liu et al. [10] propose to utilize Average Precision (AP), as in instance segmentation [6], but with an additional depth constraint. The metric AP0.4 only counts predicted masks as correct if the intersection-over-union (IoU) between predicted and ground-truth masks is greater than 0.5 and the average pixel-level depth difference for these two planes is within 0.4 meter. However, directly applying this evaluation metric for our task is not desired. The main reason is that this evaluation metric never explicitly measures the performance on hidden regions, but only considers the complete region as a whole. Since it often happens that the area of a visible region is far larger than that of the corresponding hidden/invisible region, a model can still have a very high AP0.4 value even if it predicts the visible region well and sacrifices the hidden one. To this end, we propose a novel evaluation metric, termed Average Precision Hidden (APH), which complements AP0.4 specifically for occlusion-reasoning. For calculating APH, the Fully Visible planes $\{P_g^{\mathrm{FV}}\}$ and their corresponding estimations $\{P_e^{\mathrm{FV}}\}$ need first to be removed. For the $j$ th plane $P_{g_j}$ , it belongs to $\{P_g^{\mathrm{FV}}\}$ as long as its hidden mask $\mathrm{Area}(G_{H_j}) < \kappa_{\mathrm{area}}$ . Here $G_{H_j}$ is visible mask of $P_{g_j}$ . For the $i$ th plane $P_{e_i}$ , it belongs to $\{P_e^{\mathrm{FV}}\}$ as long as the output $j$ of Equ. 4 satisfies $P_{g_j} \in \{P_g^{\mathrm{FV}}\}$ .
+
+$$
+\operatorname {a r g m a x} _ {j} \operatorname {I o U} \left(M _ {i}, G _ {j}\right) \tag {4}
+$$
+
+where $M_{i}$ is the complete mask of the $i$ -th plane estimation $P_{e_i}$ , $G_{j}$ is the complete mask of the $j$ -th ground truth $P_{g_j}$ . A predicted plane must satisfy the following three criteria to be considered as true positive:
+
+$$
+\operatorname {I o U} \left(M _ {i} \cap \overline {{G _ {V _ {j}}}}, G _ {H _ {j}}\right) \geq \kappa_ {\text {i o u}} \tag {5a}
+$$
+
+$$
+D \left(P _ {e _ {i}}, P _ {g _ {j}}\right) \leq \kappa_ {\text {d e p t h}}, \tag {5b}
+$$
+
+$$
+P _ {g _ {j}} \notin \left\{P _ {g} ^ {\mathrm {F V}} \right\}, P _ {e _ {i}} \notin \left\{P _ {e} ^ {\mathrm {F V}} \right\}, \tag {5c}
+$$
+
+
+Figure 6: Data filling: The first column are input images. Columns two and three show the Origin and Refined complete mask of layout class, respectively. Columns four and five show the Origin and Refined complete mask of object.
+
+
+
+
+
+
+
+
+
+where $G_{V_j}$ is visible part of the complete mask $G_j$ . The function $D(\cdot)$ calculates the depth difference. $\kappa_{\mathrm{area}}$ , $\kappa_{\mathrm{iou}}$ and $\kappa_{\mathrm{depth}}$ are thresholds that we set as $\kappa_{\mathrm{area}} = 100$ pixel, $\kappa_{\mathrm{iou}} = 0.5$ for all experiments and $\kappa_{\mathrm{depth}} = [0.4\mathrm{m}, 0.6\mathrm{m}, 0.9\mathrm{m}]$ for the three instantiation of the metric: [AP0.4, AP0.6, AP0.9]. By excluding visible region from the ground truth, this metric focuses only on predictions in hidden regions and it cannot be cheated by improving predicting the visible planes. Jointly with AP on the complete masks, we now have a better and more comprehensive understanding of the performance of our occlusion reasoning method.
+
+# 4. Experiments
+
+# 4.1. Experimental setup
+
+Dataset: Our dataset is built on the large-scale RGB-D video dataset ScanNet[1]. It consists of 2.5 million views in more than 1500 room scans. The annotation includes 3D camera poses, 3D room reconstructions and semantic information. We follow [10] for assigning each scene to training, validation and testing. Then we uniformly sample each split and finally obtain 100k, 1k and 1k images for training, evaluation and testing. To obtain the ground-truth for object and layout categories, we first project the semantic label of each plane to the NYU40 classes. Afterwards, 'wall', 'ceiling', 'floor' and 'window' are categorized as layout. Others belong to the 'object' category.
+
+Implementation details: We implement our network with PyTorch. The pre-trained weights of PlaneRCNN [10] are employed for initializing our model. Our models are trained on an NVIDIA 1080 Ti GPU for 100k iterations with batch size set to 1. Following the setting of PlaneRCNN, input images are scaled to $640 \times 480$ and then padded with zero values to be $640 \times 640$ . The learning rate is set as 1e-4 when we start the training process and it decays to [5e-5, 2e-5, 1e-5] at [5k, 10k, 15k] iterations.
+
+Baselines: We choose the modification of PlaneR-CNN [10] for occlusion reasoning as the main baseline for validating the effectiveness of the proposed method. And we denote it as PlaneRCNN-OR (We refer the readers to Sec. 3.2 for more details). Please note that the original PlaneRCNN-OR is proposed in [10] to address the occlusion problem for
+
+indoor scenes. Since code for this version is not released, we implement ourselves based on [10]. Moreover, to have a fair comparison, we re-train this model on our dataset where visible and complete masks are generated and report the numbers.
+
+Metric: We evaluate both the plane prediction and depth prediction tasks. As for complete plane prediction, we follow [11] and use AP with different depth constrains to measure the performance. As for performance measurement on hidden regions, we employ the APH introduced in Sec. 3.3. We further employ the following two metrics for depth measurement:
+
+- Root Mean Squared Error(RMSE): $\sqrt{\frac{1}{T}\sum\left(d_i - g_i\right)^2}$
+- Threshold accuracy: Percentage of $d_{i}$ , such that $\max \left( \frac{d_{i}}{g_{i}}, \frac{g_{i}}{d_{i}} \right) < \lambda$
+
+$T$ stands for the number of pixels in the image, $d_{i}$ and $g_{i}$ indicate the depth value of pixel i in depth and ground truth image. We adopt threshold accuracy with $\lambda = [1.25, 1.25^2, 1.25^3]$ for Acc1, Acc2 and Acc3 respectively.
+
+# 4.2. Evaluations on data generation
+
+As can be seen in Tab. 2, evaluating model on the "Refine" dataset always gives better results, especially for hidden regions. This is mainly due to the fact that without hole filling, the networks are required to learn to predict those arbitrary holes in the masks (see the highlighted region in Fig. 6), which can be very challenging. Another observation is that models trained with the "Refine" dataset gives a better performance w.r.t. that trained on "Origin". Again, this is mainly because that with the "Refine" dataset, the network is more likely to learn something from meaningful complete masks, especially for hidden regions. While if the network is trained on "Origin", it is harder for this network to learn to predict masks due to these noises/holes.
+
+# 4.3. DualRPN with semantic merging
+
+DualRPN helps hidden mask prediction Employing DualRPN enables our model to learn category-specific prior knowledge. As shown in Fig. 9b, the baseline method is only able to extend the visible region of floor by a small margin. After introducing DualRPN, we can observe that a larger hidden region of the floor can be predicted in Fig. 9c. We demonstrate quantitative results in Tab. 1, where we can observe the proposed DualRPN greatly improving APH whiel not harming AP. As we described in Sec. 3.2, this behaviour is largely due to the over-suppressing of NMS. We report below the effectiveness of our proposed fusion module.
+
+Semantic merging surpasses NMS We now demonstrate the superiority of the proposed semantic merging module over NMS. Qualitative results are shown in Fig. 9c, where the table is suppressed by NMS due to its heavy overlapping w.r.t. the floor. Our proposed module is able to solve this
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 7: Visualization of proposed method, The first column is the input image. The second column and third column show the complete plane prediction from layout branch and that from object branch respectively. The fourth column demonstrates visible planes and the last column is the novel view synthesis. As can be viewed in our examples, the proposed method is able to predict both visible and complete area from single image, which provides a better representation for indoor scenes.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+problem (see examples in Fig. 9d). We also report quantitative results in Tab. 1. Specifically, Semantic Merging improves AP values by $[1.6\%, 1.8\%, 1.9\%]$ compared to NMS. Combining DualRPN with the Semantic Merging, we further pushes APH by $[2.9\%, 2.9\%, 2.6\%]$ and AP by $[1.2\%, 1.1\%, 0.9\%]$ .
+
+DualRPN with semantic merging helps depth prediction We further demonstrate that DualRPN benefits the depth prediction. Specifically, we convert the output plane representation to a depth map and report the depth prediction performance on visible areas. As shown in Tab. 3, PlaneRCNN-OR improves Acc1 by $1\%$ and our proposed method further
+
+boosts both RMSE and Acc1 by $2\%$ . Our results prove that occlusion reasoning and 3D understanding are mutually beneficial.
+
+# 4.4. Plane warping module
+
+By enforcing the consistency with neighboring views, our proposed plane warping module helps to improve precision on predicting the complete mask on both visible and hidden regions. As shown in Tab. 1, our proposed method improves AP 0.9 and APH 0.9 by $1\%$ and $0.4\%$ , respectively.
+
+We qualitatively compare our model with PlaneRCNN-OR [10] in Fig. 8, where our model almost always performs
+
+
+Figure 8: Qualitatively comparison of our method with PlaneRCNN-OR. For each sample, Left: The input image. Right: From top to bottom - ground truth, baseline prediction, proposed method prediction for visible and complete masks.
+
+Table 1: Ablation study of proposed methods: Dual RPN, Semantic Merging, Channel-wise Attention Module and Occlusion-aware Warping Module. The first row without any proposed modules denotes the PlaneRCNN-OR [10]. The adopted metrics are AP and APH under $\kappa_{\mathrm{iou}}$ set as 0.5 and $\kappa_{\mathrm{depth}}$ set as [0.4m, 0.6m, 0.9m]. A relative improment of $42.65\%$ on APH0.4 is achieved by comparing 0.068 (baseline) with 0.097 (our result).
+
+| Dual RPN | Semantic Merging | Plane Warping | AP 0.4 | AP 0.6 | AP 0.9 | APH 0.4 | APH 0.6 | APH 0.9 |
| | | 0.319 | 0.364 | 0.386 | 0.068 | 0.080 | 0.088 |
| ✓ | | | 0.315 | 0.357 | 0.376 | 0.092 | 0.104 | 0.109 |
| ✓ | ✓ | | 0.331 | 0.375 | 0.395 | 0.097 | 0.109 | 0.114 |
| ✓ | ✓ | ✓ | 0.334 | 0.382 | 0.405 | 0.097 | 0.111 | 0.118 |
+
+Table 2: Evaluation of PlaneRCNN-OR [10] when training and testing on different datasets with [AP0.4, AP0.6, AP0.9] and [APH0.4, APH0.6, APH0.9]
+
+| Testing set | Origin | Refine |
| Training set | Origin | Refine | Origin | Refine |
| AP 0.4 | 0.284 | 0.284 | 0.314 | 0.327 |
| AP 0.6 | 0.316 | 0.319 | 0.352 | 0.371 |
| AP 0.9 | 0.334 | 0.338 | 0.374 | 0.395 |
| APH 0.4 | 0.007 | 0.019 | 0.030 | 0.068 |
| APH 0.6 | 0.009 | 0.021 | 0.035 | 0.080 |
| APH 0.9 | 0.012 | 0.023 | 0.040 | 0.088 |
+
+
+(a)
+Figure 9: Qualitative results for PlaneRCNN-OR [10] w/ or w/o DualRPN: (a) input image (b) w/o DualRPN (c) w/DualRPN (d) w/DualRPN and Semantic Merging.
+
+
+(b)
+
+
+(c)
+
+
+(d)
+
+Table 3: Results for depth prediction.
+
+| Method | RMSE↓ | Acc1↑ | Acc2↑ | Acc3↑ |
| PlaneRCNN[10] | 0.34 | 0.78 | 0.95 | 0.99 |
| PlaneRCNN-OR[10] | 0.34 | 0.79 | 0.95 | 0.99 |
| DualRPN | 0.32 | 0.81 | 0.95 | 0.99 |
+
+better in terms of complete mask prediction.
+
+# 5. Conclusion
+
+This paper proposes to address the occlusion reasoning problem in indoor scenes with efficient plane representations. We firstly generate a dataset where the ground-truth of our occlusion-aware representations are available. Our proposed model separates the prediction for foreground and layout planes for a more effective mask prediction in hidden regions. When multiple views are available at train time, a novel plane warping loss is also introduced to handle occlusion scenarios. Finally, we propose a novel evaluation metric for measuring the performance specifically on hidden regions. Compared to existing methods, our proposed method achieves large relative improvements in hidden regions.
+
+# References
+
+[1] Angela Dai, Angel X Chang, Manolis Savva, Maciej Halber, Thomas Funkhouser, and Matthias Nießner. Scannet: Richly-annotated 3d reconstructions of indoor scenes. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5828-5839, 2017. 1, 2, 3, 6
+[2] Helisa Dhamo, Nassir Navab, and Federico Tombari. Object-driven multi-layer scene decomposition from a single image. In Proceedings of the IEEE International Conference on Computer Vision, pages 5369-5378, 2019. 1, 2, 3
+[3] Helisa Dhamo, Keisuke Tateno, Iro Laina, Nassir Navab, and Federico Tombari. Peeking behind objects: Layered depth prediction from a single image. Pattern Recognition Letters, 125:333-340, 2019. 1, 2
+[4] Vikas Dhiman, Quoc-Huy Tran, Jason J. Corso, and Manmohan Chandraker. A continuous occlusion model for road scene understanding. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2016. 1
+[5] Andreas Geiger, Martin Lauer, Christian Wojek, Christoph Stiller, and Raquel Urtasun. 3D Traffic Scene Understanding from Movable Platforms. PAMI, 2014. 1, 2
+[6] Kaiming He, Georgia Gkioxari, Piotr Dollar, and Ross Girshick. Mask r-cnn. In The IEEE International Conference on Computer Vision (ICCV), Oct 2017. 3, 5
+[7] Varsha Hedau, Derek Hoiem, and David Forsyth. Recovering the spatial layout of cluttered rooms. In 2009 IEEE 12th international conference on computer vision, pages 1849-1856. IEEE. 2
+[8] Chen-Yu Lee, Vijay Badrinarayanan, Tomasz Malisiewicz, and Andrew Rabinovich. Roomnet: End-to-end room layout estimation. In Proceedings of the IEEE International Conference on Computer Vision, pages 4865-4874, 2017. 2
+[9] Buyu Liu, Xuming He, and Stephen Gould. Joint semantic and geometric segmentation of videos with a stage model. In IEEE Winter Conference on Applications of Computer Vision, pages 737-744. IEEE, 2014. 2
+[10] Chen Liu, Kihwan Kim, Jinwei Gu, Yasutaka Furukawa, and Jan Kautz. Planercnn: 3d plane detection and reconstruction from a single image. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2, 3, 4, 5, 6, 7, 8
+[11] Chen Liu, Jimei Yang, Duygu Ceylan, Ersin Yumer, and Yasutaka Furukawa. Planenet: Piece-wise planar reconstruction from a single rgb image. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2579-2588, 2018. 2, 3, 6
+[12] Miaomiao Liu, Xuming He, and Mathieu Salzmann. Building scene models by completing and hallucinating depth and semantics. In European Conference on Computer Vision, pages 258-274. Springer, 2016. 2
+[13] Gellert Mattyus, Shenlong Wang, Sanja Fidler, and Raquel Urtasun. HD Maps: Fine-grained Road Segmentation by Parsing Ground and Aerial Images. In CVPR, 2016. 1
+[14] Suryanarayana M Muddala, Märten Sjöström, and Roger Olsson. Depth-based inpainting for disocclusion filling. In 2014 3DTV-Conference: The True Vision-Capture, Transmission
+
+and Display of 3D Video (3DTV-CON), pages 1-4. IEEE, 2014. 2
+[15] Adam Paszke, Abhishek Chaurasia, Sanggil Kim, and Eugenio Culurciello. Enet: A deep neural network architecture for real-time semantic segmentation. arXiv preprint arXiv:1606.02147, 2016. 5
+[16] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. 2015. 2, 3
+[17] Samuel Schulter, Menghua Zhai, Nathan Jacobs, and Manmohan Chandraker. Learning to look around objects for top-view representations of outdoor scenes. In The European Conference on Computer Vision (ECCV), September 2018. 2
+[18] Jonathan Shade, Steven Gortler, Li-wei He, and Richard Szeliski. Layered depth images. 1998. 1, 2
+[19] Shuran Song, Fisher Yu, Andy Zeng, Angel X. Chang, Manolis Savva, and Thomas Funkhouser. Semantic Scene Completion from a Single Depth Image. In CVPR, 2017. 1
+[20] Shuran Song, Fisher Yu, Andy Zeng, Angel X Chang, Manolis Savva, and Thomas Funkhouser. Semantic scene completion from a single depth image. Proceedings of 30th IEEE Conference on Computer Vision and Pattern Recognition, 2017. 2
+[21] Joseph Tighe, Marc Niethammer, and Svetlana Lazebnik. Scene parsing with object instances and occlusion ordering. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3748-3755, 2014. 2
+[22] Shubham Tulsiani, Richard Tucker, and Noah Snavely. Layer-structured 3d scene inference via view synthesis. In Proceedings of the European Conference on Computer Vision (ECCV), pages 302–317, 2018. 1, 2
+[23] Huayan Wang, Stephen Gould, and Daphne Koller. Discriminative learning with latent variables for cluttered indoor scene understanding. In ECCV, 2010. 2
+[24] Ziyan Wang, Buyu Liu, Samuel Schulter, and Manmohan Chandraker. A parametric top-view representation of complex road scenes. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 1, 2
+[25] Fengting Yang and Zihan Zhou. Recovering 3d planes from a single image via convolutional neural networks. In The European Conference on Computer Vision (ECCV), September 2018. 2
+[26] Yi Yang, Sam Hallman, Deva Ramanan, and Charless Fowlkes. Layered object detection for multi-class segmentation. In 2010 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pages 3113-3120. IEEE, 2010. 2
+[27] Jia Zheng, Junfei Zhang, Jing Li, Rui Tang, Shenghua Gao, and Zihan Zhou. Structured3d: A large photo-realistic dataset for structured 3d modeling. arXiv preprint arXiv:1908.00222, 2019.2
+[28] M. Zeeshan Zia, Michael Stark, and Konrad Schindler. Explicit Occlusion Modeling for 3D Object Class Representations. In CVPR, 2013. 1
\ No newline at end of file
diff --git a/peekabooocclusionreasoninginindoorsceneswithplanerepresentations/images.zip b/peekabooocclusionreasoninginindoorsceneswithplanerepresentations/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..46ec935fbdcee72844fd38cd9412ff4316f56ea3
--- /dev/null
+++ b/peekabooocclusionreasoninginindoorsceneswithplanerepresentations/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1dd591d3e48f920c478060a2331589882f57d5ca0b2d17fc432be2a5634518a3
+size 642187
diff --git a/peekabooocclusionreasoninginindoorsceneswithplanerepresentations/layout.json b/peekabooocclusionreasoninginindoorsceneswithplanerepresentations/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..4fd7c4ac454e39a22bc39d37bffd9d716c2780f1
--- /dev/null
+++ b/peekabooocclusionreasoninginindoorsceneswithplanerepresentations/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2cc18e5550d302329f15a20c1e5d9e9e24d1bd47dbf225016f94d78523747141
+size 380356
diff --git a/perceptualqualityassessmentofsmartphonephotography/31e6b6d7-0d57-479c-b88d-79e4586fbdbf_content_list.json b/perceptualqualityassessmentofsmartphonephotography/31e6b6d7-0d57-479c-b88d-79e4586fbdbf_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..7fe70b379f3c0ee7be73c89ebd00bb8062dc4120
--- /dev/null
+++ b/perceptualqualityassessmentofsmartphonephotography/31e6b6d7-0d57-479c-b88d-79e4586fbdbf_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fd409ecb81b3cb0bacf5d930f766196e5935e91be1d7af278875bb372699682a
+size 72117
diff --git a/perceptualqualityassessmentofsmartphonephotography/31e6b6d7-0d57-479c-b88d-79e4586fbdbf_model.json b/perceptualqualityassessmentofsmartphonephotography/31e6b6d7-0d57-479c-b88d-79e4586fbdbf_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..c9c8719ec40da47a3fff234394497296f5e4031b
--- /dev/null
+++ b/perceptualqualityassessmentofsmartphonephotography/31e6b6d7-0d57-479c-b88d-79e4586fbdbf_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0a2ecf15668a0e1eafd020b67166876136c22be0c77cc3139c4dcc218f8d1706
+size 89435
diff --git a/perceptualqualityassessmentofsmartphonephotography/31e6b6d7-0d57-479c-b88d-79e4586fbdbf_origin.pdf b/perceptualqualityassessmentofsmartphonephotography/31e6b6d7-0d57-479c-b88d-79e4586fbdbf_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..65a9a21f9452dc6b91c1f904a980f9224ef8fd65
--- /dev/null
+++ b/perceptualqualityassessmentofsmartphonephotography/31e6b6d7-0d57-479c-b88d-79e4586fbdbf_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1095981f6f190dba4f1805e958580ab1a13dc225ec49418863ea968505bb0df6
+size 354167
diff --git a/perceptualqualityassessmentofsmartphonephotography/full.md b/perceptualqualityassessmentofsmartphonephotography/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..a61e72359015e6696e4b404bf93aff954e3f6fd4
--- /dev/null
+++ b/perceptualqualityassessmentofsmartphonephotography/full.md
@@ -0,0 +1,300 @@
+# Perceptual Quality Assessment of Smartphone Photography
+
+Yuming Fang $^{1*}$ , Hanwei Zhu $^{1*}$ , Yan Zeng $^{1}$ , Kede Ma $^{2\dagger}$ , and Zhou Wang $^{3}$
+
+$^{1}$ Jiangxi University of Finance and Economics, $^{2}$ City University of Hong Kong, $^{3}$ University of Waterloo
+
+# Abstract
+
+As smartphones become people's primary cameras to take photos, the quality of their cameras and the associated computational photography modules has become a de facto standard in evaluating and ranking smartphones in the consumer market. We conduct so far the most comprehensive study of perceptual quality assessment of smartphone photography. We introduce the Smartphone Photography Attribute and Quality (SPAQ) database, consisting of 11,125 pictures taken by 66 smartphones, where each image is attached with so far the richest annotations. Specifically, we collect a series of human opinions for each image, including image quality, image attributes (brightness, colorfulness, contrast, noisiness, and sharpness), and scene category labels (animal, cityscape, human, indoor scene, landscape, night scene, plant, still life, and others) in a well-controlled laboratory environment. The exchangeable image file format (EXIF) data for all images are also recorded to aid deeper analysis. We also make the first attempts using the database to train blind image quality assessment (BIQA) models constructed by baseline and multi-task deep neural networks. The results provide useful insights on how EXIF data, image attributes and high-level semantics interact with image quality, how next-generation BIQA models can be designed, and how better computational photography systems can be optimized on mobile devices. The database along with the proposed BIQA models are available at https://github.com/h4nwei/SPAQ.
+
+# 1. Introduction
+
+Perceptual image quality assessment (IQA) aims to quantify human perception of image quality. IQA methods can be broadly classified into two categories: subjective and objective IQA [35]. Although time-consuming and expen
+
+sive, subjective IQA offers the most reliable way of evaluating image quality through psychophysical experiments [30]. Objective IQA, on the other hand, attempts to create computational models that are capable of automatically predicting subjective image quality [3]. In the past decades, there have been a significant number of studies on both directions [1, 12, 17], most of which focus on synthetic distortions, with the assumption that the original undistorted images exist and can be used as reference [37].
+
+In recent years, there has been a fast development of smartphone photography technologies. From a hardware perspective, dual-camera systems prevail, representing major advancements for the unprecedented photography experience. From a software perspective, computational methods play a more and more important role, introducing novel features such as digital zoom, HDR, portrait and panorama modes. It could be argued that the camera system along with the integrated computational photography module has become a crucial part and one of the biggest selling points of smartphones. Nevertheless, the vast majority of pictures are taken by inexperienced users, whose capture processes are largely affected by lighting conditions, sensor limitations, lens imperfections, and unprofessional manipulations. Arguably it is often challenging for professional photographers to acquire high-quality pictures consistently across a variety of natural scenes, especially in low-light and high-dynamic-range (HDR) scenarios [7]. As a result, real-world smartphone photos often contain mixtures of multiple distortions, which we call realistic camera distortions (as opposed to distortions such as JPEG compression that may be synthesized). Therefore, if the visual quality of the captured images could not be quantified in a perceptually meaningful way, it is difficult to develop next-generation smartphone cameras for improved visual experience.
+
+In this paper, we carry out so far the most comprehensive study of perceptual quality assessment of smartphone photography. Our contributions include:
+
+- A large-scale image database, which we name Smartphone Photography Attribute and Quality (SPAQ)
+
+| Database | # images | # cameras | Type of cameras | Subjective environment | # image attributes | # scene categories | # EXIF tags |
| BID | 585 | 1 | DSLR | Laboratory | N/A | N/A | N/A |
| CID2013 | 480 | 79 | DSLR/DSC/Smartphone | Laboratory | 4 | N/A | N/A |
| LIVE Challenge | 1,162 | 15* | DSLR/DSC/Smartphone | Crowdsourcing | N/A | N/A | N/A |
| KonIQ-10k | 10,073 | N/A | DSLR/DSC/Smartphone | Crowdsourcing | 4 | N/A | 3 |
| SPAQ | 11,125 | 66 | Smartphone | Laboratory | 5 | 9 | 7 |
+
+Table 1. Comparison of IQA databases of camera distortions. DSLR: Digital single-lens reflex camera. DSC: Digital still camera. N/A: Not applicable. * LIVE Challenge Database provides the number of manufacturers only.
+
+database, consisting of 11, 125 realistic pictures taken by 66 mobile cameras from eleven smartphone manufacturers. To aid comparison among different cameras, a subset of 1,000 pictures in SPAQ are captured under the same visual scenes by different smartphones [33]. Each image comes with EXIF data, which provide useful information about the scene being captured (e.g., time and brightness) and the camera settings (e.g., ISO and f-number) [32].
+
+- A large subjective experiment conducted in a well-controlled laboratory environment. We carefully design our experimental protocols to collect the mean opinion score (MOS) for each image and verify its reliability. Additionally, each image is annotated with five image attributes that are closely related to perceptual quality [9]. We also classify the images into nine scene categories by content information to facilitate a first exploration of the interactions between perceptual quality and high-level semantics.
+- An in-depth analysis of the relationship between EXIF tags, image attributes, scene category labels and image quality based on subjective data. Moreover, the cameras of different smartphones are compared and ranked according to our subjective study.
+- A family of objective BIQA models for smartphone pictures based on deep multi-task learning [10]. This allows us, for the first time, to investigate how EXIF tags, image attributes and scene labels affect quality prediction from a computational perspective. More importantly, the results shed light on how to create better photography systems for smartphones.
+
+# 2. Related Work
+
+In this section, we review representative IQA databases and BIQA models, with emphasis on realistic camera distortions.
+
+# 2.1. Databases for IQA
+
+Databases have played a critical role in scientific research [27]. In IQA, the creation of the LIVE database [30]
+
+validates the perceptual advantages of the structural similarity (SSIM) index [37] and the visual information fidelity (VIF) measure [29] over the widely used mean squared error (MSE). The introduction of the CSIQ [16] and TID2013 [25] databases allows objective IQA models to be compared in cross-database and cross-distortion settings, which highlights the difficulties of distortion-aware BIQA methods in handling unseen distortions. The release of the Waterloo Exploration Database [19] along with the group maximum differentiation (gMAD) competition methodology [18] probes the generalizability of BIQA models to novel image content. The above-mentioned databases facilitate IQA research on how humans and machines assess the perceptual quality of images during processing, compression, transmission, and reproduction, where the degradations can be synthesized. However, they become less relevant when we study smartphone captured images, whose distortions are realistic, complex, and hard to simulate.
+
+There has been limited work studying subjective IQA for realistic camera distortions. Ciancio et al. [2] made one of the first steps and built a small dataset of 585 realistically blurred pictures taken by a digital single-lens reflex camera. Toni et al. [33] constructed a database that spans eight visual scenes with a number of mobile devices. Ghadiyaram and Bovik created the LIVE Challenge Database [5], which contains 1,162 images by 15 mobile cameras. The MOSs were crowdsourced via a web-based online user study. The current largest IQA database - KonIQ-10k [9] includes 10,073 images selected from YFCC100M [32]. The perceptual quality of each image was also annotated via crowdsourcing together with four image attributes. By contrast, the proposed SPAQ database is specifically for smartphone photography with stringent hardware constraints on sensors and optics. Along with EXIF data, each image in SPAQ has image quality, attribute annotations, and high-level scene category labels collected in a well-controlled laboratory environment. Table 1 summaries and compares existing databases for realistic camera distortions.
+
+# 2.2. Objective BIQA Models
+
+Computational models for BIQA do not require an undistorted reference image for quality prediction of a test
+
+image [36]. Early BIQA models [4, 20-23, 39] mainly focus on synthetic distortions, which have been empirically shown to generalize poorly to realistic camera distortions [5, 41]. This is a consequence of domain shift, and is also referred to as the cross-distortion-scenario challenge in IQA [42]. For BIQA of realistic camera photos, Ghadiyaram and Bovik [6] extracted a bag of natural scene statistics (NSS). Zhang et al. [41] proposed a deep bilinear model to handle both synthetic and realistic distortions. Later, they introduced a training strategy [42] that is able to learn a unified BIQA model for multiple distortion scenarios. The BIQA models proposed in this paper emphasize more on exploiting additional information such as EXIF tags, image attributes, and semantic labels to aid quality prediction.
+
+# 3. SPAQ Database
+
+In this section, we first describe the construction of the proposed SPAQ database for smartphone photography. Next, we present the subjective assessment environment for collecting human annotations, including MOSs (for image quality), image attribute scores, and scene category labels.
+
+# 3.1. Database Construction
+
+We collect a total of 11,125 realistically distorted pictures. To support comparison among smartphones, a subset of 1,000 images are captured by different cameras under a few challenging scenes, including night, low-light, high-dynamic-range, and moving scenes. SPAQ represents a wide range of realistic camera distortions, including sensor noise contamination, out-of-focus blurring, motion blurring, contrast reduction, under-exposure, over-exposure, color shift, and a mixture of multiple distortions above. Sensor noise often occurs in night scenes or indoor scenes with low-light conditions, where high ISO must be applied. Out-of-focus blur can be created deliberately or unintentionally, and it does not necessarily lead to visual quality degradation [34]. Motion blur appears when camera shakes or object moves rapidly in the scene. Global and local contrast may not be fully reproduced for scenes under poor weather conditions or with high dynamic ranges. Color shift may result from incorrect white balance or other computational methods for post-processing. An important fact of smartphone photography is that mixtures of distortions frequently occur, making the images substantially different from those created by synthetic distortions.
+
+The images are initially saved with high resolution, typically in the order of six megapixels and more. The gigantic image size poses a challenge to existing BIQA models, whose computational complexities are generally high. Therefore, we choose to downsample the raw pictures such that the shorter side is 512, and stored them in PNG format. Sample images in SPAQ can be found in Figure 1.
+
+Each image in SPAQ is associated with
+
+
+Figure 1. Sample images in SPAQ. (a) Animal. (b) Cityscape. (c) Human. (d) Indoor scene. (e) Landscape. (f) Night scene. (g) Plant (h) Still life. (i) Others. All images are cropped for neat presentation.
+
+- EXIF tags, including 1) focal length, 2) f-number (inversely proportional to aperture size), 3) exposure time, 4) ISO (light sensitivity of sensor), 5) brightness value (brightness of focus point in the scene), 6) flash (flash fired or not), 7) time (when image was recorded). Since the brightness value is not provided by some smartphone manufacturers, we make an educated estimation using the exposure equation [11].
+- MOS, a continuous score in [0, 100] to represent the overall quality of the image. A higher score indicates better perceived quality.
+- Image attribute scores, including 1) brightness, 2) colorfulness, 3) contrast, 4) noisiness, and 5) sharpness. Similar to MOS, each attribute is represented by a continuous score in [0, 100] (see Figure 2 (a)).
+- Scene category labels, including 1) animal, 2) cityscape, 3) human, 4) indoor scene, 5) landscape, 6) night scene, 7) plant, 8) still life, and 9) others. The category of still life refers to images that contain salient static objects (not living things); the category of “others” includes images from which human annotators find difficulty in recognizing the visual content due to abstract nature or extremely poor quality. It is worth noting that one image may have multiple labels (see Figure 2 (b)).
+
+
+(a)
+
+
+(b)
+
+# 3.2. Subjective Testing
+
+MOSs and Image Attribute Scores We invite more than 600 subjects to participate in this subjective test. To obtain consistent and reliable human ratings, the experiment is conducted in a well-controlled laboratory environment. Figure 2 (a) shows the graphical user interface. Subjects are asked to rate the quality of an image on a continuous scale in [0, 100], evenly divided and labeled by five quality levels ("bad", "poor", "fair", "good", and "excellent"). Additionally, we ask the subjects to provide five other continuous scores from 0 to 100, representing the degrees of brightness, colorfulness, contrast, noisiness, and sharpness, respectively.
+
+Scene Category Labels Participants are invited to provide scene category labels for each image in SPAQ using a multi-label method, including animal, cityscape, human, indoor scene, landscape, night scene, plant, still life, and others. The graphical user interface for scene labeling is given in Figure 2 (b), where an image can be labeled by one or more categories.
+
+We refer the interested readers to the supplementary file for a complete description of the subjective experiment regarding the testing environment, the training and testing phases, the outlier removal and the reliability of subjective data.
+
+
+
+
+
+
+(a)
+
+
+(b)
+
+
+(c)
+
+
+(d)
+
+
+Figure 2. Graphical user interfaces used in our subjective experiments. (a) Quality rating. (b) Scene classification.
+(e)
+(g)
+Figure 3. Sample images in SPAQ. (a) $\mathrm{ISO} = 1,600$ . (b) $\mathrm{ISO} = 2,000$ . (c) exposure time $= 0.03s$ . (d) exposure time $= 0.06s$ . (e) f-number $= 2.0$ . (f) f-number $= 2.2$ . (g) and (h) f-number $= 2.2$ , exposure time $= 0.059s$ , and $\mathrm{ISO} = 1,757$ .
+
+
+(f)
+(h)
+
+# 4. Subjective Data Analysis
+
+In this section, we analyze the collected subjective data in SPAQ to reveal the relationships between EXIF tags, image attributes, scene category labels and image quality. We then rank several smartphone cameras based on the subjective results.
+
+# 4.1. Interactions between Perceptual Image Quality and Various Factors
+
+EXIF Tags To explore the relationship between the EXIF tags and image quality, we present some sample images captured with different camera settings in Figure 3. When playing with ISO, we find that higher ISO numbers yield brighter images but with a significant amount of noise (see Figure 3 (a) and (b)). This shows that ISO is predictable of image quality especially for night scenes. When playing with exposure time, we find that if camera shakes or object is moving fast, motion blurring occurs even for a relatively short exposure (see Figure 3 (c)), and over-exposure also arises if we double the exposure time (see Figure 3 (d)). It
+
+| Attribute | Image attribute scores |
| from humans | by MT-A |
| Brightness | 0.784 | 0.704 |
| Colorfulness | 0.844 | 0.760 |
| Contrast | 0.874 | 0.786 |
| Noisiness | 0.893 | 0.832 |
| Sharpness | 0.958 | 0.904 |
+
+is well-known that different aperture sizes lead to different depths of field. Generally, with a smaller aperture size, the range of distance in focus is larger, and therefore out-of-focus blur is less likely to happen (see Figure 3 (e) and (f)). Finally, the two different visual scenes in Figure 3 (g) and (h) are captured with the same camera setting, where we see that they suffer from a similar combination of distortions, leading to similar perceptual quality. In summary, the EXIF tags convey rich side information that may be helpful for predicting image quality. As will be clear in Section 5.2, computational models that make proper use of EXIF information greatly boost quality prediction performance.
+
+Image Attribute Scores To investigate how each image attribute affects perceived quality, we compute the Spearman's rank correlation coefficient (SRCC) between MOSs and attribute scores, as listed in Table 2. We find that sharpness and noisiness have higher correlations with image quality compared to brightness and colorfulness. This is consistent with the hypothesis that the human eye is highly adapted to extract local structures [37], and is less sensitive to global brightness change.
+
+Scene Category Labels We draw the MOS distribution (discretized to five quality levels) for each scene category in Figure 4, from which we have some interesting observations. First, the MOSs of the "others" category concentrate at low quality levels. This is expected because images in this category are unrecognizable largely due to poor visual quality. Second, images of night scenes generally exhibit poor quality with large under-exposed and noisy regions (see Figure 3 (g) and (h)), emphasizing the challenges for low-light photography. Finally, images with different scene categories have noticeable MOS distributions, suggesting high-level semantic effect on visual perception of image quality.
+
+# 4.2. Smartphone Camera Comparison
+
+At the beginning, it is important to note that this study is independent of any telecommunication device manufactures or service providers. In SPAQ, a subset of 1,000 im
+
+
+Figure 4. Discretized MOS distributions of images with different scene categories. See Figure 2 (a) for the specification of the five quality levels.
+
+Table 2. SRCC results between MOSs and image attribute scores from humans and MT-A (our proposed computational model), respectively.
+
+| Top-5 cameras | Bottom-5 cameras |
| Type | #scenes | Type | #scenes |
| Apple iPhone 6s Plus | 22 | Meitu M6 | 21 |
| Huawei PRA-AL00 | 19 | Vivo X7 | 17 |
| Oppo A33m | 17 | Samsung SM-G9006V | 16 |
| Oppo R9 Plusm A | 16 | Xiaomi MI 6 | 15 |
| Xiaomi MIX 2 | 15 | Apple iPhone SE | 14 |
+
+Table 3. The top and bottom performing smartphone cameras based on image quality.
+
+ages containing 50 visual scenes are captured by 20 smartphone cameras for performance comparison. Many images are taken under tough conditions to challenge the smartphone photography systems, including low-light, high-dynamic-range, and moving scenes.
+
+For the 50 visual scenes, we count the number of top-5 and bottom-5 pictures that belong to each smartphone camera based on image quality. The results are listed in Table 3, where we find that Apple iPhone 6s Plus achieves the best results with 22 scenes at the top-5, while Meitu M6 is at the bottom among 20 smartphone cameras. The success of Apple iPhone 6s plus may result from its stabilization and noise reduction post-processing methods, which help improve the quality of images captured under less ideal conditions. More information about the visual scenes and the smartphone camera ranking samples can be found in the supplementary.
+
+# 5. Objective Quality Models
+
+Based on the proposed SPAQ database, we train a deep neural network (DNN) to predict the perceptual quality of
+
+smartphone captured images and three variants that make use of EXIF tags, image attributes, and scene category labels, respectively.
+
+# 5.1. Baseline Model
+
+We adopt ResNet-50 [8] as the backbone to construct our baseline model - BL. We change the final fully connected layer to one output, and drop the softmax function. The parameters of BL are collectively denoted by $w_{\mathrm{B}}$ . The training mini-batch consists of $\{x^{(i)}, q^{(i)}\}_{i=1}^{m}$ , where $x^{(i)}$ is the $i$ -th input color image and $q^{(i)}$ is the corresponding MOS. We exclude pre-processing that would dramatically alter image quality such as global mean removal and contrast normalization. The output of BL is a scalar $\hat{q}^{(i)}$ , representing the predicted quality score of $x^{(i)}$ . We replace the cross entropy function for image classification with $\ell_1$ -norm as the empirical loss
+
+$$
+\ell_ {1} \left(w _ {\mathrm {B}}\right) = \| q - \hat {q} \| _ {1} = \sum_ {i = 1} ^ {m} \left| q ^ {(i)} - \hat {q} ^ {(i)} \right|. \tag {1}
+$$
+
+In our experiments, we find that fine-tuning ResNet-50 [8] from pre-trained weights performs better than training the network from scratch or starting from other pre-trained network architectures (e.g., AlexNet [15] and VGG16 [31]), which is consistent with the observations in [14].
+
+# 5.2. Multi-Task Learning from EXIF Tags
+
+We train a variant of the baseline model, namely MT-E, by incorporating EXIF data using multi-task learning. Specifically, each image has seven EXIF tags, among which focal length, f-number and ISO are categorical variables, exposure time and brightness are continuous, flash is binary, and time (image was recorded) is periodic. The input minibatch samples are formed as $\{x^{(i)},o^{(i)},q^{(i)}\}_{i = 1}^{m}$ , where $o^{(i)}$ is a feature vector containing the encoded EXIF tags of $x^{(i)}$ . MT-E consists of two sub-networks. The first sub-network is the same as BL, which takes $x^{(i)}$ as input and regresses a "generic" quality score $\hat{g}^{(i)}$ . The second sub-network comprises a simple fully connected layer, which accepts $o^{(i)}$ and produces an offset $\hat{b}^{(i)}$ [26], with parameters denoted by $w_{\mathrm{E}}$ . The final quality prediction is computed by
+
+$$
+\hat {q} ^ {(i)} = \hat {g} ^ {(i)} + \hat {b} ^ {(i)}, \tag {2}
+$$
+
+where we interpret $\hat{b}^{(i)}$ as a learned bias added to the generic score. When EXIF data are not present as in the case of many Internet images, MT-E reduces gracefully to BL. We train MT-E by optimizing a naive weighted sum of two $\ell_1$ -norm losses
+
+$$
+\ell_ {2} \left(w _ {\mathrm {B}}, w _ {\mathrm {E}}\right) = \alpha_ {1} \| q - \hat {g} \| _ {1} + \alpha_ {2} \| q - \hat {q} \| _ {1}, \tag {3}
+$$
+
+where $\alpha_{1}$ and $\alpha_{2}$ are non-negative task weightings, satisfying $\alpha_{1} + \alpha_{2} = 1$ . Since $\hat{g}$ and $\hat{q}$ have the same measurement scale, we simply set $\alpha_{1} = \alpha_{2} = 0.5$ .
+
+# 5.3. Multi-Task Learning from Image Attributes
+
+Besides subjective quality ratings, we also collect five image attribute scores, including brightness, colorfulness, contrast, noisiness, and sharpness. To explore the influence of image attributes on image quality, we extend BL to MT-A by learning to predict image attributes jointly. Built upon the baseline model, we let the final fully connected layer output six scalars, representing the overall image quality and the degrees of image attributes, respectively. That is, the six tasks share the computation up to the last fully connected layer. The parameters for estimating image attributes are represented by $w_{\mathrm{A}}$ . We denote the input mini-batch by $\{x^{(i)}, r^{(i)}, q^{(i)}\}_{i=1}^{m}$ , where $r^{(i)}$ is a five-dimensional vector that stores the ground truth image attribute scores of $x^{(i)}$ . Similarly, we use a naive weighted sum of six $\ell_1$ -norm losses to train MT-A
+
+$$
+\ell_ {3} (w _ {\mathrm {B}}, w _ {\mathrm {A}}) = \beta_ {1} \| q - \hat {q} \| _ {1} + \frac {\beta_ {2}}{5} \sum_ {j = 1} ^ {5} \| r _ {j} - \hat {r} _ {j} \| _ {1}, \tag {4}
+$$
+
+where $\hat{r}_j$ is an $m$ -dimensional vector that stores the $j$ -th image attribute predictions of the current mini-batch. $\beta_{1}$ and $\beta_{2}$ are non-negative task weightings, satisfying $\beta_{1} + \beta_{2} = 1$ . By default we give the five attribute prediction tasks the same weight. According to our subjective experiment, all tasks are measured in the same scale. We take advantage of this fact and sample $\beta_{1}$ linearly from [0, 1].
+
+# 5.4. Multi-Task Learning from Scene Labels
+
+To explore the effectiveness of incorporating semantic information into quality prediction, we train another model, namely MT-S, using multi-task learning. Conceptually, scene classification and quality assessment appear to be competing tasks - the former requires feature representations to be insensitive to image quality degradation, while the latter desires the opposite. To address this problem, MT-S splits BL into two sub-networks carefully for the two tasks. The input mini-batch samples are denoted by $\{x^{(i)},p^{(i)},q^{(i)}\}_{i = 1}^{m}$ , where $p^{(i)}$ is a nine-dimensional vector with $c$ non-zero entries, each set to $1 / c$ corresponding to the $c\geq 1$ scene labels for $x^{(i)}$ . For scene classification, we let the last fully connected layer to produce nine continuous activations $\hat{s}^{(i)}$ , followed by softmax nonlinearity to convert them into probabilities $\hat{p}^{(i)}$ . The cross entropy function is then used as the loss
+
+$$
+\ell_ {4} \left(w _ {\mathrm {S}}\right) = - \sum_ {i, j} p _ {j} ^ {(i)} \log \hat {p} _ {j} ^ {(i)}, \tag {5}
+$$
+
+where $w_{\mathrm{S}}$ denotes the parameters associated with the scene classification task. For quality regression, we use Eq. (1) as the empirical loss.
+
+It remains to combine the two losses for joint learning, which is nontrivial as they live in substantially different
+
+scales. Grid-based manual tuning for a reasonable weighting is expensive, especially in the context of deep learning. Inspired by [10], we choose to learn the optimal weighting as task-dependent uncertainty. In regression, we define the likelihood function as a Laplace distribution with mean given by the network output and an observation noise scalar $\sigma_{1}$ :
+
+$$
+\hat {p} \left(q ^ {(i)} \mid w _ {\mathrm {B}}\right) \sim \operatorname {L a p l a c e} \left(\hat {q} ^ {(i)}, \sigma_ {1}\right). \tag {6}
+$$
+
+In classification, we define the likelihood as a scaled version of the model output $\hat{s}^{(i)}$ through a softmax function [10]
+
+$$
+\hat {p} \left(y ^ {(i)} \mid w _ {\mathrm {S}}\right) \sim \operatorname {S o f t m a x} \left(\frac {1}{\sigma_ {2}} \hat {s} ^ {(i)}\right), \tag {7}
+$$
+
+where $\sigma_{2}$ is a positive scalar, governing how uniform the induced discrete distribution is and $y^{(i)}\in \{1,\ldots ,9\}$ . It is straightforward to show that the expected negative log likelihood as the joint loss function can be approximated by
+
+$$
+\ell_ {5} \left(w _ {\mathrm {B}}, w _ {\mathrm {S}}\right) = \frac {\ell_ {1} \left(w _ {\mathrm {B}}\right)}{\sigma_ {1}} + \frac {\ell_ {4} \left(w _ {\mathrm {S}}\right)}{\sigma_ {2}} + m \log \sigma_ {1} + \frac {m}{2} \log \sigma_ {2}. \tag {8}
+$$
+
+The above loss discourages high task uncertainty through the two log terms. MT-S can learn to ignore noisy tasks, but is penalized for that [10]. Eq (8) also discourages very low task uncertainty. For example, a low $\sigma_{1}$ will exaggerate the contribution of $\ell_{1}$ . $\sigma_{1}$ and $\sigma_{2}$ are estimated along with the model parameters $\{w_{\mathrm{B}}, w_{\mathrm{S}}\}$ .
+
+# 5.5. Performance Evaluation
+
+For the baseline model BL and its variants, we adopt the same training strategy, repeat the training processes for five times, and report the average results to reduce any bias introduced during training. Specifically, we randomly sample $80\%$ of the images in SPAQ for training and leave the rest for testing. The backbone ResNet-50 [8] is initialized with the pre-trained weights for object recognition on ImageNet [28]. We set the mini-batch size to 16 and the epoch number to 30. We use the Adam stochastic optimization package [13] with the initial learning rate of $10^{-3}$ and a decay factor of 0.1 for every 10 epochs. The input images are randomly cropped to $224 \times 224 \times 3$ . For the first 10 epochs, we only train the final fully connected layers by freezing the rest parameters in the networks. For the next 20 epochs, we fine-tune the whole networks by optimizing the respective losses.
+
+During testing, we crop $224 \times 224 \times 3$ patches from a test image with a stride of 112. The final quality and attribute scores are computed by averaging all patch predictions. The dominant scene class is determined by majority vote among all top-1 predictions, which is considered correct if it matches one of multiple ground truth labels.
+
+We compare the proposed methods with seven existing BIQA models, including BRISQUE [22], DIIVINE [24], CORNIA [39], QAC [38], ILNIQE [40], FRIQUEE [6], and DB-CNN [41]. These cover a wide range of design philosophies, including NSS-based [6, 22, 24, 40], codebook-based [38, 39], and DNN-based [41] models. The implementations of the competing models are obtained from the respective authors. We re-train BRISQUE, FRIQUEE, and DB-CNN using the same training set. As for DIIVINE and CORNIA, we directly use the learned models due to the lack of publicly available training codes and the complexity of reproducing the training procedures. Note that QAC [38] and ILNIQE [40] do not require MOSs for training.
+
+Experimental results are shown in Table 4, from which we have several interesting observations. First, BIQA models designed for synthetic distortions (e.g., QAC [38] and DIIVINE [24]) generally do not work well for realistic camera distortions, which is no surprise because there is a significant discrepancy between the two data distributions. Second, verified on the LIVE Challenge Database [5], FRIQUEE [6] delivers superior performance on SPAQ, which verifies the effectiveness of the handcrafted features at capturing the characteristics of realistic distortions. Third, BRISQUE [22] also obtains comparable performance, suggesting that the locally normalized pixel intensities may reveal useful attributes of realistic distortions. Fourth, by bilinearly pooling two sets of features, DB-CNN [41] outperforms all BIQA approaches, including the proposed BL based on ResNet-50. This suggests that DNNs successfully learn hierarchical features sensitive to realistic distortions, and that a more advanced backbone (such as DB-CNN) offers additional performance gains. Finally, the performance of the proposed baseline and its variants are among the best, verifying our training and multi-task learning strategies.
+
+Now, we take a close look at the multi-task learning results. When we add EXIF tags as additional inputs, MT-E achieves a significant improvement compared with BL. This emphasizes the importance of EXIF data to quality prediction of smartphone captured images, which, however, has not been paid much attention by the IQA community. Next, jointly predicting image attributes positively impacts the accuracy of quality prediction, and the results are robust to different task weightings (see Table 5). In addition, the predicted attribute scores by MT-A have high correlations with MOSs, as shown in the second column of Table 2. This indicates that the five image attributes play key roles in determining image quality, and the MT-A model has learned the inherent relationships between image attributes and the overall quality. Lastly and perhaps more interestingly, we observe improved performance of quality prediction in MT-S when jointly trained with scene classification. From Table 6, we find that the approximately op
+
+| Model | QAC [38] | DIIVINE [24] | CORNIA [39] | ILNIQE [40] | BRISQUE [22] | FRIQUEE [6] | DB-CNN [41] | BL | MT-E | MT-A | MT-S |
| SRCC | 0.092 | 0.599 | 0.709 | 0.713 | 0.809 | 0.819 | 0.911 | 0.908 | 0.926 | 0.916 | 0.917 |
| PLCC | 0.497 | 0.600 | 0.725 | 0.721 | 0.817 | 0.830 | 0.915 | 0.909 | 0.932 | 0.916 | 0.921 |
+
+Table 4. Average SRCC and PLCC results of our methods across five sessions against seven BIQA models on SPAQ.
+
+| Task weights | SRCC | PLCC |
| β1 | β2 |
| 0.9 | 0.1 | 0.917 | 0.919 |
| 0.8 | 0.2 | 0.917 | 0.918 |
| 0.7 | 0.3 | 0.917 | 0.918 |
| 0.6 | 0.4 | 0.916 | 0.917 |
| 0.5 | 0.5 | 0.916 | 0.916 |
+
+Table 5. Average SRCC and PLCC results of MT-A across five sessions as a function of task weighting. The default setting is highlighted in bold.
+
+| Splitting position | SRCC | PLCC | Accuracy |
| Conv1 | 0.915 | 0.918 | 0.702 |
| Conv10 | 0.916 | 0.918 | 0.687 |
| Conv22 | 0.916 | 0.919 | 0.673 |
| Conv40 | 0.917 | 0.921 | 0.673 |
| Conv49 | 0.915 | 0.916 | 0.670 |
+
+Table 6. Average SRCC, PLCC and accuracy results of MT-S across five sessions as a function of splitting positions. Conv# indicates the splitting happens right after the #-th convolution layer and there are a total of 49 convolution layers in MT-S.
+
+timal splitting for quality regression is at the 40-th convolution layer. However, the scene classification task prefers to split at the first convolution layer (measured by classification accuracy), which suggests two separate networks without sharing weights. This provides indirect evidence that the two tasks compete with each other. Nevertheless, MT-S is able to exploit semantic information to boost the quality prediction performance. These insightful findings inspire further research on how to extract semantic information (e.g., in the form of dense semantic segmentation maps) and how to incorporate it into IQA, with the goal of benefiting both tasks.
+
+# 6. Conclusion
+
+We build so far the most comprehensive database for perceptual quality assessment of smartphone photography, where each image is attached with rich annotations, including not only quality ratings (in the form of MOSs), but also a series of EXIF, attribute, and semantic information. In SPAQ, 1,000 images are captured repeatedly by different smartphones of the same scenes, facilitating head-to-head comparisons of smartphone cameras.
+
+We also construct four BIQA models using DNNs to exploit the influence of EXIF tags, image attributes, and high-level semantics on perceived quality of smartphone pictures. Our results suggest that all such side information may be useful in improving prediction accuracy of the BIQA models. We believe that the current database, together with the proposed DNN-based computational models, lay the groundwork for the development of next-generation BIQA methods for smartphone photography, which in turn will impact the future design of smartphone cameras and the integrated computational photography systems.
+
+# Acknowledgments
+
+This work was supported in part by the NSFC under Grant 61822109, the National Key R&D Program of China under Grant 2018AAA0100601, and the CityU Start-up Grant (No. 7200630). The authors would like to thank Chenyang Le for fruitful discussions on subjective testing and Weixia Zhang for insightful comments on model implementation. We thank the NVIDIA Corporation for donating a GPU for this research.
+
+# References
+
+[1] S. Athar and Z. Wang. A comprehensive performance evaluation of image quality assessment algorithms. IEEE Access, 7:140030-140070, Sep. 2019. 1
+[2] A. Ciancio, C. A. Da, S. E. Da, A. Said, R. Samadani, and P. Obrador. No-reference blur assessment of digital pictures based on multifeature classifiers. IEEE Transactions on Image Processing, 20(1):64-75, Jan. 2010. 2
+[3] S. J. Daly. Visible differences predictor: An algorithm for the assessment of image fidelity. In SPIE/IS&T Symposium on Electronic Imaging: Science and Technology, pages 2-15, 1992. 1
+[4] Y. Fang, K. Ma, Z. Wang, W. Lin, Z. Fang, and G. Zhai. No-reference quality assessment of contrast-distorted images based on natural scene statistics. IEEE Signal Processing Letters, 22(7):838-842, Nov. 2014. 3
+[5] D. Ghadiyaram and A. C. Bovik. Massive online crowdsourced study of subjective and objective picture quality. IEEE Transactions on Image Processing, 25(1):372-387, Jan. 2016. 2, 3, 7
+[6] D. Ghadiyaram and A. C. Bovik. Perceptual quality prediction on authentically distorted images using a bag of features approach. Journal of vision, 17(1):32-32, Jan. 2017. 3, 7, 8
+
+[7] S. W. Hasinoff, D. Sharlet, R. Geiss, A. Adams, J. T. Barron, F. Kainz, J. Chen, and M. Levoy. Burst photography for high dynamic range and low-light imaging on mobile cameras. ACM Transactions on Graphics, 35(6):192:1-192:12, Nov. 2016. 1
+[8] 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. 6, 7
+[9] V. Hosu, H. Lin, T. Sziranyi, and D. Saupe. KonIQ-10k: An ecologically valid database for deep learning of blind image quality assessment. CoRR, abs/1910.06180, 2019. 2
+[10] A. Kendall, Y. Gal, and R. Cipolla. Multi-task learning using uncertainty to weigh losses for scene geometry and semantics. In IEEE Conference on Computer Vision and Pattern Recognition, pages 7482-7491, 2018. 2, 7
+[11] D. A. Kerr. APEX - The additive system of photographic exposure. 2017, [Online] Available: http://dougerr.net/Pumpkin/index.htm#APEX.3
+[12] J. Kim, H. Zeng, D. Ghadiyaram, S. Lee, L. Zhang, and A. C. Bovik. Deep convolutional neural models for picture-quality prediction: Challenges and solutions to data-driven image quality assessment. IEEE Signal Processing Magazine, 34(6):130-141, Nov. 2017. 1
+[13] D. P. Kingma and J. Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, pages 1-15, 2015. 7
+[14] S. Kong, X. Shen, Z. Lin, R. Mech, and C. Fowlkes. Photo aesthetics ranking network with attributes and content adaptation. In European Conference on Computer Vision, pages 662-679, 2016. 6
+[15] A. Krizhevsky, I. Sutskever, and G. E. Hinton. ImageNet classification with deep convolutional neural networks. In Nerval Information Processing Systems, pages 1097-1105, 2012. 6
+[16] E. C. Larson and D. M. Chandler. Most apparent distortion: Full-reference image quality assessment and the role of strategy. SPIE Journal of Electronic Imaging, 19(1):1-21, Jan. 2010. 2
+[17] W. Lin and C.-C. J. Kuo. Perceptual visual quality metrics: A survey. Journal of Visual Communication and Image Representation, 22(4):297-312, May 2011. 1
+[18] K. Ma, Z. Duanmu, Z. Wang, Q. Wu, W. Liu, H. Yong, H. Li, and L. Zhang. Group maximum differentiation competition: Model comparison with few samples. IEEE Transactions on Pattern Analysis and Machine Intelligence, to appear, 2019. 2
+[19] K. Ma, Z. Duanmu, Q. Wu, Z. Wang, H. Yong, H. Li, and L. Zhang. Waterloo Exploration Database: New challenges for image quality assessment models. IEEE Transactions on Image Processing, 22(2):1004-1016, Feb. 2017. 2
+[20] K. Ma, W. Liu, T. Liu, Z. Wang, and D. Tao. dipIQ: Blind image quality assessment by learning-to-rank discriminable image pairs. IEEE Transactions on Image Processing, 26(8):3951-3964, Aug. 2017. 3
+
+[21] K. Ma, W. Liu, K. Zhang, Z. Duanmu, Z. Wang, and W. Zuo. End-to-end blind image quality assessment using deep neural networks. IEEE Transactions on Image Processing, 27(3):1202-1213, Mar. 2018. 3
+[22] A. Mittal, A. K. Moorthy, and A. C. Bovik. No-reference image quality assessment in the spatial domain. IEEE Transactions on Image Processing, 21(12):4695-4708, Dec. 2012, 3, 7, 8
+[23] A. Mittal, R. Soundararajan, and A. C. Bovik. Making a "completely blind" image quality analyzer. IEEE Signal Processing Letter, 20(3):209-212, Mar. 2013. 3
+[24] A. K. Moorthy and A. C. Bovik. Blind image quality assessment: From natural scene statistics to perceptual quality. IEEE Transactions on Image Processing, 20(12):3350-3364, Dec. 2011. 7, 8
+[25] N. Ponomarenko, L. Jin, O. Ieremeiev, V. Lukin, K. Egiazarian, J. Astola, B. Vozel, K. Chehdi, M. Carli, F. Battisti, and C.-C. J. Kuo. Image database TID2013: Peculiarities, results and perspectives. Signal Processing: Image Communication, 30:57-77, Jan. 2015. 2
+[26] J. Ren, X. Shen, Z. Lin, R. Mech, and D. J. Foran. Personalized image aesthetics. In IEEE International Conference on Computer Vision, pages 638-647, 2017. 6
+[27] A. H. Renear, S. Sacchi, and K. M. Wickett. Definitions of dataset in the scientific and technical literature. In Annual Meeting of the American Society for Information Science and Technology, pages 1-4, 2010. 2
+[28] O. Russakovsky, J. Deng, H. Su, J. Krause, S. Satheesh, S. Ma, Z. Huang, A. Karpathy, A. Khosla, M. Bernstein, A. C. Berg, and F.-F. Li. ImageNet large scale visual recognition challenge. International Journal of Computer Vision, 115(3):211-252, Dec. 2015. 7
+[29] H. R. Sheikh and A. C. Bovik. Image information and visual quality. IEEE Transactions on image processing, 15(2):430-444, Feb. 2006. 2
+[30] H. R. Sheikh, M. F. Sabir, and A. C. Bovik. A statistical evaluation of recent full reference image quality assessment algorithms. IEEE Transactions on Image Processing, 15(11):3440-3451, Nov. 2006. 1, 2
+[31] K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. CoRR, abs/1409.1556, 2014. 6
+[32] B. Thomee, D. A. Shamma, G. Friedland, B. Elizalde, K. Ni, D. Poland, D. Borth, and L. Li. YFCC100M: The new data in multimedia research. Communications of the ACM, 59(2):64-73, Nov. 2016. 2
+[33] V. Toni, N. Mikko, V. Mikko, O. Pirkko, and H. Jukka. CID2013: A database for evaluating no-reference image quality assessment algorithms. IEEE Transactions on Image Processing, 24(1):390-402, Jan. 2015. 2
+[34] N. Wadhwa, R. Garg, D. E. Jacobs, B. E. Feldman, N. Kanazawa, R. Carroll, Y. Movshovitz-Attias, J. T. Barron, Y. Pritch, and M. Levoy. Synthetic depth-of-field with a single-camera mobile phone. ACM Transactions on Graphics, 37(4):64:1-64:13, Jul. 2018. 3
+
+[35] Z. Wang and A. C. Bovik. Modern Image Quality Assessment. San Rafael, CA, USA: Morgan Claypool Publishers, 2006. 1
+[36] Z. Wang and A. C. Bovik. Reduced- and no-reference image quality assessment: The natural scene statistic model approach. IEEE Signal Processing Magazine, 28(6):29–40, Nov. 2011. 3
+[37] Z. Wang, A. C. Bovik, H. R. Sheikh, and E. P. Simoncelli. Image quality assessment: From error visibility to structural similarity. IEEE Transactions on Image Processing, 13(4):600-612, Apr. 2004. 1, 2, 5
+[38] W. Xue, L. Zhang, and X. Mou. Learning without human scores for blind image quality assessment. In IEEE Conference on Computer Vision and Pattern Recognition, pages 995-1002, 2013. 7, 8
+[39] P. Ye, J. Kumar, L. Kang, and D. Doermann. Unsupervised feature learning framework for no-reference image quality assessment. In IEEE Conference on Computer Vision and Pattern Recognition, pages 1098-1105, 2012. 3, 7, 8
+[40] L. Zhang, L. Zhang, and A. C. Bovik. A feature-enriched completely blind image quality evaluator. IEEE Transactions on Image Processing, 24(8):2579-2591, Aug. 2015. 7, 8
+[41] W. Zhang, K. Ma, J. Yan, D. Deng, and Z. Wang. Blind image quality assessment using a deep bilinear convolutional neural network. IEEE Transactions on Circuits and Systems for Video Technology, 30(1):36-47, Jan. 2020. 3, 7, 8
+[42] W. Zhang, K. Ma, G. Zhai, and X. Yang. Learning to blindly assess image quality in the laboratory and wild. CoRR, abs/1907.00516, 2019. 3
\ No newline at end of file
diff --git a/perceptualqualityassessmentofsmartphonephotography/images.zip b/perceptualqualityassessmentofsmartphonephotography/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..d7d54b6d71d390848031b8caeb3094562d3aec77
--- /dev/null
+++ b/perceptualqualityassessmentofsmartphonephotography/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d1e3b139fe7c0a7fd337da44cff0bb5d3cb3dcbd15fd8e91a2bb58b47b4a0a05
+size 419448
diff --git a/perceptualqualityassessmentofsmartphonephotography/layout.json b/perceptualqualityassessmentofsmartphonephotography/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..fa72cce5663a599704f1d234d7e43951f68feff5
--- /dev/null
+++ b/perceptualqualityassessmentofsmartphonephotography/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:08f5ff3f15599f4436ef4648a91c432295f90654c68544513bf9c82e5bfaa2c6
+size 355757
diff --git a/perspectiveplaneprograminductionfromasingleimage/e9debe92-6b4e-4fad-aba4-e6ed5a0f4088_content_list.json b/perspectiveplaneprograminductionfromasingleimage/e9debe92-6b4e-4fad-aba4-e6ed5a0f4088_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..d0bb5016fc0e1a81ce77fc2da6265fbc28678d84
--- /dev/null
+++ b/perspectiveplaneprograminductionfromasingleimage/e9debe92-6b4e-4fad-aba4-e6ed5a0f4088_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5b3ce5903af901f4fa0a7418f3f1096b86d427dd3eec0939565fd007a05eda90
+size 95666
diff --git a/perspectiveplaneprograminductionfromasingleimage/e9debe92-6b4e-4fad-aba4-e6ed5a0f4088_model.json b/perspectiveplaneprograminductionfromasingleimage/e9debe92-6b4e-4fad-aba4-e6ed5a0f4088_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..e115ea34a96208099b02d6da39969907a8530aa7
--- /dev/null
+++ b/perspectiveplaneprograminductionfromasingleimage/e9debe92-6b4e-4fad-aba4-e6ed5a0f4088_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:37128d7bd1130b4da644aac115a4f0b67ec840be65cf9f586062c05c5c8651c4
+size 113038
diff --git a/perspectiveplaneprograminductionfromasingleimage/e9debe92-6b4e-4fad-aba4-e6ed5a0f4088_origin.pdf b/perspectiveplaneprograminductionfromasingleimage/e9debe92-6b4e-4fad-aba4-e6ed5a0f4088_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..3c96d157e24854e45ff8c3275c90a4385ca73b95
--- /dev/null
+++ b/perspectiveplaneprograminductionfromasingleimage/e9debe92-6b4e-4fad-aba4-e6ed5a0f4088_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:913e4ff6aaf7296c69891347cddb0688d4f1fef98a6787914ebc1d07437533a7
+size 3622119
diff --git a/perspectiveplaneprograminductionfromasingleimage/full.md b/perspectiveplaneprograminductionfromasingleimage/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..a7e7e3305c0cea0c8e0aa91829b4a6e74f4967dd
--- /dev/null
+++ b/perspectiveplaneprograminductionfromasingleimage/full.md
@@ -0,0 +1,482 @@
+# Perspective Plane Program Induction from a Single Image
+
+Yikai Li $^{1,2*}$
+
+William T. Freeman1,3
+
+Jiayuan Mao $^{1*}$
+
+Joshua B. Tenenbaum1
+
+Xiuming Zhang
+
+Tenenbaum1 Jiajun Wu4
+
+2Shanghai Jiao Tong University
+
+3Google Research
+
+4Stanford University
+
+1MIT CSAIL
+
+
+
+
+
+SetCameraPose(pitch = -42, yaw = -15)
+
+for i in range(0, 4):
+ for j in range(0, 4):
+ if i + j >= 3:
+
+
+Figure 1: Perspective effects and scene structure regularity are ubiquitous in natural images (a). To detect such regularity, one may directly apply regularity structure detection (RPD) [21] to natural images, but this often fails due to the existence of perspective effects (d). Attempting to remedy this, one may perform perspective correction as an independent preprocessing step, but perspective correction often relies on line and/or vanishing point cues, and fails when such cues are missing (e). We observe that these two tasks are interconnected: image regularity serves as a new perspective correction cue, and regularity detection, in turn, also benefits from perspective correction. Thus, we propose to jointly solve perspective correction and regularity structure detection (b) by simultaneously seeking the program and perspective parameters that best describe the image (c). Project page: http://p3i.csail.mit.edu
+
+$$
+, \mathrm {x} = 1 8. 7 * \mathrm {i} + 9. 7 * \mathrm {j}, \mathrm {y} = 1 9. 7 * \mathrm {j})
+$$
+
+RPD (Non-Perspective-Aware)
+
+
+
+(d) Failed Regularity Inference
+
+PlaneNet(Learning-Based)
+
+
+
+(e) Failed Perspective Correction
+
+# Abstract
+
+We study the inverse graphics problem of inferring a holistic representation for natural images. Given an input image, our goal is to induce a neuro-symbolic, program-like representation that jointly models camera poses, object locations, and global scene structures. Such high-level, holistic scene representations further facilitate low-level image manipulation tasks such as inpainting. We formulate this problem as jointly finding the camera pose and scene structure that best describe the input image. The benefits of such joint inference are two-fold: scene regularity serves as a new cue for perspective correction, and in turn, correct perspective correction leads to a simplified scene structure, similar to how the correct shape leads to the most regular texture in shape from texture. Our proposed framework, Perspective Plane Program Induction (P3I), combines search-based and gradient-based algorithms to efficiently solve the problem. P3I outperforms a set of baselines on a collection of Internet images, across tasks including camera pose estimation, global structure inference, and down-stream image manipulation tasks.
+
+# 1. Introduction
+
+From a single image in Fig. 1, humans can effortlessly induce a holistic scene representation that captures both local textures and global scene structures. We can localize the objects in the scene (the "strawberry mice"). We also see the global scene regularities: the mice collectively form a 2D lattice pattern with a triangular boundary. Meanwhile, we can estimate the camera pose: the image is shot at an elevation of roughly 45 degrees.
+
+Building holistic scene representations requires scene understanding from various perspectives and levels of detail: estimating camera poses [26, 9, 3], detecting objects in the scene [17, 21], and inferring the global structure of scenes [15, 29]. Humans are able to resolve these inference tasks simultaneously. The estimation of global camera pose guides the localization of individual objects and the summarization of the scene structure, such as the lattice pattern in Fig. 1(a), in a top-down manner. Meanwhile, the localization of individual objects provides bottom-up cues for the inference of both scene structures and camera poses.
+
+While various algorithms have been developed to tackle each individual task, there is still a lack of studies on the integration of these methods and how they can benefit from each other. In this paper, we present the framework, Perspective Plane Program Induction (P3I), for the joint inference of the camera pose, the localization of individual objects, and a program-like representation that describes lattice or circular regularities of object placement. The inferred holistic scene representation, namely the perspective plane program, has a program-like structure with continuous graphics parameters. The key assumption is that the image, possibly captured with perspective effects, is composed of a collection of similar objects that are placed following a regular pattern.
+
+The integrated inference has three advantages. First, conventional estimations of camera poses (specifically the 3D rotations) mainly rely on geometric cues, such as straight lines [37, 3] and manually designed texture descriptors [1], or learning from human annotations [24]. Thus, they fail when no straight lines or textual regions can be detected and exhibit poor generalization to unseen complex scenes. In this work, P3I exploits regular structures on 2D planes to accurately estimate the camera pose. For example, in Fig. 1(b), the estimated camera pose can perspective correct the image such that all adjacent mice share roughly the same displacement.
+
+Second, classic object localization algorithms mostly rely on human heuristics [39, 51] or require large-scale datasets [17]. In this paper, we present a complementary solution based on the similarity among objects in a single image and the global scene regularity. Such regularities are modeled with the proposed perspective plane programs.
+
+Third, although graphics programs, as shown in Fig. 1(c), have been found useful for both low-level manipulation and high-level reasoning tasks [41, 15, 27], the inference is usually not done in an end-to-end manner. These methods work on estimated or known camera parameters and object detection results by off-the-shelf tools, and formulate the inference problem as a pure program synthesis problem in a symbolic space. This restricts the applicability of these algorithms to natural images. By contrast, in this work, P3I removes such dependencies by formulating the whole problem as a joint inference task of the camera pose, object locations, and the global scene structure. We show that our model can infer holistic perspective plane programs from a single input image without extra tools for any of the tasks.
+
+We collect a dataset of Internet images, namely the Nearly-Regular Patterns with Perspective dataset (NRPP), for evaluation. The dataset contains non-fronto-parallel images that are composed by a set of objects organized in regular patterns. P3I is evaluated on NRPP in two metrics: accuracy of camera pose estimation and that of graphics programs. Our model outperforms all baselines that tackle these problems separately. Moreover, we show how such
+
+holistic representations can be used to perform lower-level image manipulation tasks such as image inpainting and extrapolation. Our approach outperforms both learning-based and non-learning-based baselines designed for such tasks.
+
+# 2. Related Works
+
+Camera pose estimation and shape from texture. The idea of inferring camera poses (the perspective angles) from regularity draws deep connection to the classic work on shape from texture, dated back to the 80's [8, 2, 28, 33]. The key assumption here is the uniform density assumption (texels are uniformly distributed). Thus, a perspective view of slanted textured surface will show systematic changes in texture density, area, the aspect ratios. Blostein et al. [8] and Aloimonos [2] recover the slant and tilt of the camera for images containing a single plane, while Malik and Rosenholtz [28] consider curved surfaces. Aiger et al. [1] finds homography transformations by running statistical analysis on the detected regions of textures. Furthermore, Ohta et al. [33] combines perspective from texture and the estimation of vanishing points. Recently, there have been attempts that leverage deep learning for 3D line, vanishing point, and plane estimation [24, 3, 49]. While these methods focus on camera pose estimation, In this work, we propose to jointly tackle the problem with object localization and scene structure prediction via programs.
+
+Program induction and inverse graphics. Procedural modeling is well-established topic in computer graphics, mostly for indoor scenes [40, 23, 32] and 3D shapes [22, 38]. Recently, researchers propose to augment such algorithm with deep recognition networks. Representative works include graphics program induction for hand-drawn images [15], 3D scenes [27], primitive sets [35], and markup code [12, 7]. However, they only work on synthetic images in a constrained domain, while here we study natural images. SPIRAL [16], and its follow-up SPIRAL++ [30], both used reinforcement learning to discover 'doodles' that are later used to compose the image. Their models are no longer restricted to constrained domains, but are also not as transparent and interpretable as symbolic program-like representations, which limits their applications in tasks that involve explicit reasoning, such as image extrapolation.
+
+Most relevant to our papers are the work from Young et al. [45] and from Mao et al. [29], where they both used formal representations within deep generative networks to represent natural images, and later applied the representation for image editing. Unlike Young et al. [45], which requires learning semantics on a pre-defined dataset of semantically similar images, our P3I learns from a single image, following the spirit of internal learning [36]. Unlike Mao et al. [29], which assumes a top-down view and fails on images with perspective distortions, P3I simultaneously infers the camera pose, object locations, and scene structures.
+
+
+Figure 2: (a) Our model P3I solves an inverse graphics problem. Given an input image, P3I jointly infers the camera pose, object locations, and the global scene regularity, which is an inversion of a simplified graphics pipeline. (b) We compute the fitness of a program on the image based on a shift-and-compare routine, which we illustrates on a lattice pattern case.
+
+
+$\mathcal{L}_i$ : shift and compare along the $i$ axis.
+
+
+$\mathcal{L}_j$ : shift and compare along the $j$ axis.
+(b)
+
+Image manipulation. Image manipulation is most commonly studied in the context of image inpainting. Inpainting algorithms can be based on pixels, patches, or global image representations. Pixel-based methods [4, 5] and patch-based methods [14, 6] perform well when the missing regions are small and local, but cannot deal with cases that require high-level information beyond background textures. Darabi et al. [11] extended patch-based methods by allowing additional geometric and photometric transformations on patches but ignored global consistency among patches. Huang et al. [18] also used perspective correction to help patch-based inpainting, but their algorithm relies on the vanishing point detection by other methods. By contrast, P3I estimates the camera parameters based on the global regularity of images.
+
+The advances of deep nets has led to many impressive inpainting algorithms that integrate information beyond local pixels or patches [19, 44, 46, 25, 47, 50, 43]. Most relevant to our work, Xiong et al. [42] and Nazeri et al. [31] proposed to explicitly model contours to help the inpainting system preserve global object structures. Compared with them, P3I manipulates the image based on its latent perspective plane program. Thus, we can preserve the global scene regularity during manipulation and requires no extra training images.
+
+# 3. Perspective Plane Program Induction
+
+The proposed framework, Perspective Plane Program Induction (P3I), takes a raw image as input and infers a perspective plane program that best describes the image. In Section 3.1, we first present the domain-specific language of the program that we use to describe the scene and the camera, by walking through a graphics pipeline that generates a natural image. In Section 3.2, we present our algorithm for the inversion of such perspective plane programs and mathematically formulate it as a joint inference problem. Finally, in Section 3.3, we present a hybrid inference algorithm to
+
+
+SetCameraPose $\mathbf{rx} = 0$ .ry $= 0$ for i in range(0,25): draw(
+
+
+
+
+
+
+
+
+
+
+SetCameraPose $\mathrm{(rx = 0}$ ,ry $= 0$ ) $\mathbf{r} = 3.31$ $\operatorname {arc} = 3.41$ fori in range(0,8): $\mathrm{nr} = 2\pi \star \mathrm{r}*\mathrm{i} / \mathrm{arc}$
+Figure 3: Example programs inferred by P3I. Our model can perform joint inference of camera pose, object localizations, and global scene structures of images having different regularity patterns: (a) lattice, (b) circular, and (c) a hybrid structure composed by a circular structure and a linearly repeated one.
+
+perform the inference efficiently. Implementation details are supplied in Section 3.4.
+
+# 3.1. Perspective Plane Programs
+
+We introduce our perspective plane programs by walking through the graphics pipeline that generates a natural image. Suppose that the scene is composed of a collection of visually similar objects (or generally, patterns) placed regularly on a 2D plane. Thus, the generative process of the image can be divided into three parts: first, modeling of individual objects; second, global scene regularities such as the lattice
+
+patterns in Fig. 3 (a) or circular patterns in Fig. 3 (b) and (c), represented using graphics programs; and third, camera extrinsic and intrinsic parameters, which defines the projection of the 3D scene onto a 2D image plane.
+
+Illustrated in Fig. 3, a perspective plane program consists of the primitive Draw command which places objects at specified positions. Such Draw commands appear in (possibly nested) For-loop and Rotate-loop statements, which characterizes the global scene regularity. Finally, the program specifies camera parameters with the command SetCameraPose. We restrict the nested loops to be at most two-level because 1) it is powerful enough to capture most 2D layouts, and 2) in perspective geometry, a two-dimensional pattern is sufficient for inferring the vanishing line of a plane (and thus the plane orientation). However, we can expand the DSL to include new patterns; the inference algorithm we present is also not tied to any specific DSL and generalizes to new patterns.
+
+Repeated patterns. The most basic command in a perspective plane program is Draw. Given 2D coordinates $(x, y)$ , a single call to the Draw command places an object or, generally, a pattern on the 2D plane, centering at $(x, y)$ . The Draw commands are enclosed in (nested) loops that define lattice or circular structures. Fig. 3 illustrates the latent perspective plane programs for a set of images.
+
+Perspective transformations. The next step of the graphics pipeline is to project the 3D space onto a 2D image plane. Since we consider only a single 2D plane in the 3D world, the resulting transformation can be modeled as a perspective transformation (which gives the name, perspective plane programs). For simplicity, we only model the 3D rotational transformations given by the camera pose and make a set of assumptions on the other intrinsic and extrinsic parameters of the camera. Details could be found in Section 3.4.
+
+# 3.2. Inversion of the Graphics Pipeline
+
+The goal of P3I is to solve an inverse graphics problem: given the generated image of the scene, we want to estimate the camera pose, infer the regular pattern, and localize the individual objects or patterns. We view this problem as finding a program $P$ that best fit the input image $I$ . In this section, we demonstrate how our fitness function is computed. The backward direction of Fig. 2 gives an illustration.
+
+Taking the RGB image as the input, we first extract its visual feature using an ImageNet-pretrained AlexNet [20]. Working on the feature space makes the inference procedure more robust to local noises such as luminance and reflectance variations, compared with working with RGB pixels directly. We denote $\mathcal{F}_{\mathrm{AlexNet}}$ as the feature extractor and $F = \mathcal{F}_{\mathrm{AlexNet}}(I)$ as the extracted visual features.
+
+The second step is to invert the 2D projection. Assuming a pin-hole camera model, this is done by performing an inverse perspective transformation on the feature $F$ . Specifically, we transform the extracted feature map as a fronto-parallel
+
+feature based on the XYZ rotations $rx, ry, rz$ :
+
+$$
+F ^ {f p} = \operatorname {W a r p P e r s p e c t i v e} _ {- r x, - r y, - r z} (F). \tag {1}
+$$
+
+Note that, ideally, the transformation should be done on the input image. However, in practice, we swap the order of perspective transformation and AlexNet feature extraction. We find that transforming the feature map provides a good approximation of extracting features on the transformed image, i.e.
+
+$$
+\begin{array}{l} \operatorname {W a r p P e r s p e c t i v e} _ {- r x, - r y, - r z} \left(\mathcal {F} _ {\mathrm {A l e x N e t}} (I)\right) \\ \approx \quad \mathcal {F} _ {\mathrm {A l e x N e t}} \big (\operatorname {W a r p P e r s p e c t i v e} _ {- r x, - r y, - r z} (I) \big). \\ \end{array}
+$$
+
+Moreover, performing feature map transformation is more computationally efficient: we do not need to run the AlexNet multiple times for different camera parameters.
+
+The next step is to reconstruct the scene structure and localize individual objects. This is formulated as synthesizing a program that describes the transformed canvas plane. Each candidate program in the DSL space produces a set of 2D coordinates that can be interpreted as centers of objects. We compute the loss of each program based on the similarity of objects that are located by the program.
+
+Mathematically, we denote $C$ as a set of 2D coordinates generated by a program graphics program $P$ , defined on the (transformed) canvas plane. Since a perspective plane program contains at most a two-level nested loops, we denote the loop variables as $i$ and $j$ and view each coordinates $(x,y)$ in $C$ as a function of the loop variables. That is, $(x,y) = (x(i,j),y(i,j))$ . The coordinate functions can be chosen to fit either lattice or circular patterns. We define the loss function as:
+
+$$
+\begin{array}{l} \mathcal {L} = \sum_ {i, j} \left\| F ^ {f p} [ x (i, j), y (i, j) ] - F ^ {f p} [ x (i + 1, j), y (i + 1, j) ] \right\| _ {2} ^ {2} \\ + \sum_ {i, j} \left\| F ^ {f p} [ x (i, j), y (i, j) ] - F ^ {f p} [ x (i, j + 1), y (i, j + 1) ] \right\| _ {2} ^ {2}, \tag {2} \\ \end{array}
+$$
+
+where $\| \cdot \|_2$ is the $\mathcal{L}_2$ -norm, which computes the difference between two feature vectors at two spatial positions. In the lattice case, illustrated in Fig. 2(b), one can interpret this fitness function as the following operations: we shift the feature map by a displacement; we then compute the feature similarity between the shifted and the original feature map.
+
+In contrast to previous work by Lettry et al. [21], which detects repeated patterns based on a lattice global structure assumption, our program-based formulation allows a more flexible and compositional way to define global scene structures and perform inference. As an example, in Fig. 3(c), our model can detect repeated patterns in a hybrid structure composed by a circular structure and a linearly repeated one.
+
+# 3.3. Grid Search and Gradient-Based Optimization
+
+We present a hybrid inference algorithm to solve the problem of finding a graphics program $P$ that best fits the input image $I$ . The output of the algorithm includes both
+
+
+Figure 4: Loss Surface of the displacement parameter in a perspective plane program. On the left we show the input image. The regularity in the image directly leads to many cliffs on the loss surface $(dx = 10, 12.5, 15, \dots)$ and many local peaks.
+
+the layout patterns (lattice, circular, etc.) and the parameters. This requires solving an optimization problem of choosing a discrete structure (e.g., lattice or circular) and a collection of continuous parameters (rotation angles, object locations, etc.). Previously, graphics program inference is tackled mostly by program synthesis via search in the symbolic program space [15, 29]. This search process is slow, because the symbolic space is huge, growing exponentially with respect to the number of parameters. It is often required to quantize parameters (e.g., to integers) and use heuristics to accelerate the search process. Unlike these approaches, P3I tackles such inference with a hybrid version of search-based and gradient-based optimization.
+
+The key insight here is that both WarpPerspective transformations and feature map indexing are differentiable w.r.t. the parameters (the rotational angles and the continuous 2D coordinates), since they are both implemented using bilinear interpolation on the feature maps. Thus, the loss function (Equation 2) is differentiable with respect to all parameters in perspective plane programs, including camera poses and constants in coordinate expressions, making gradient-based optimization applicable to our inference task.
+
+However, directly applying gradient descent on $\mathcal{L}$ remains problematic: the discrete nature of object placements makes the loss function (Equation 2) non-convex. As shown in Fig. 4, the regularity in the image leads to many cliffs and peaks (local optima). Therefore, direct application of gradient descent will get stuck at a local optimum easily.
+
+Thus, we propose a hybrid inference algorithm to exploit the robustness of search-based inference and the efficiency of gradient-based inference. Specifically, we perform discrete search on the choice of regularity structure. Three structures are considered in this paper, as illustrated in Fig. 3: (a) lattice, (b) circular, and (c) a hybrid one. For continuous parameters, we perform grid search on a coarse scale and apply fine-grained gradient descent only locally. This is simply implemented by performing a grid search of initial parameters and performing gradient descent on each individual combination.
+
+# 3.4. Implementation Details
+
+During inference, in the grid search, the grid size for the coarse search of continuous values is 2. For lattice patterns, we do not perform search on the boundary conditions for the loop variables. Instead, the boundaries are generated based on the size of the image. In other words, we assume that the regular pattern covers the whole image plane.
+
+Throughout the paper we consider a simplified camera model with only two rotational degree of freedom (the X-tilt and the Y-tilt). Thus, we assume that the optic axis is aligned with the image center and there is no Z-axis rotation. This is because the Z-axis rotation has been captured by the object coordinates. For example, with lattice patterns, objects can be placed along axes that are not in parallel to the X and Y axes. We do not assume a known focal length $f$ and aspect ratio $\alpha$ . They cannot be recovered unequivocally from a single 2D plane, and different $f$ and $\alpha$ yield to the same perspective correction and image editing results. The results shown in the paper, obtained with $f = 35$ and $\alpha = 1$ , will remain the same with other $f$ and $\alpha$ . Meanwhile, we ignore lens distortions, such as radial distortion. Our method can be integrated with camera calibration algorithms to correct them based on detected repeated patterns [13]
+
+# 4. Experiments
+
+We test our model on a newly collected dataset, Nearly-Regular Patterns with Perspective (NRPP), and evaluate its accuracy for camera pose estimation (Section 4.2) and repeated pattern detection (Section 4.3). We further demonstrate the model can be used to guide low-level image manipulation (Section 4.4).
+
+# 4.1. Dataset
+
+We collected a dataset of 64 Internet images that each contain a set of objects organized in regular patterns (lattice and circular). Unlike a similar dataset, Nearly Regular Patterns [21], all images in our NRPP are not fronto-parallel; Fig. 5 gives some examples. We augment the dataset with human annotations of the camera pose and object locations, in the form of 2D coordinates of object centers. This supports a quantitative evaluation for camera pose estimation and repeated object detection.
+
+# 4.2. Camera Pose Estimation
+
+We evaluate the performance of P3I on camera pose estimation from single images, compared against both learning-based and non-learning-based baselines.
+
+Baselines. We compare P3I with three baselines. The first is AutoRectify [1], a texture-based baseline for camera pose estimation. AutoRectify statistically find homography transformation from intersects of detected ellipse regions. We decompose the output transformation matrix to get camera pose as the prediction of AutoRectify. The second is PlaneNet [24], a learning-based baseline for camera pose estimation. PlaneNet is a convolutional neural network-based
+
+
+
+
+
+
+
+
+
+
+Input Images
+
+
+
+
+
+
+
+
+
+
+AutoRectify
+
+
+
+
+
+
+
+
+
+
+Lightroom
+
+
+
+
+
+
+
+
+
+
+PlaneNet
+Figure 5: On the left, we show that P3I estimates the camera pose based on the global regularity of images. It outperforms AutoRectify, Lightroom and PlaneNet. Results are visualized by performing an perspective correction based on the estimated parameters. On the right, we show that P3I can perform perspective-aware repeated pattern detection, while both RPD [21] and RPD+PlaneNet fail.
+
+
+
+
+
+
+
+
+
+
+P3I (Ours)
+
+Camera Pose Estimation
+
+
+
+
+
+
+
+
+
+
+RPD
+
+
+
+
+
+
+
+
+
+
+RPD + PlaneNet
+
+
+
+
+
+
+
+
+
+
+P3I (Ours)
+
+Repeated Pattern Detection
+
+| Method | Camera Pose Error |
| AutoRectify [1] | 30.54 |
| PlaneNet [24] | 23.75 |
| P3I (Ours) | 4.54 |
+
+Table 1: Camera pose estimation. P3I outperforms texture-based baseline, AutoRectify, and the neural baseline, PlaneNet, by a remarkable margin on the NRPP dataset.
+
+algorithm trained to detect 2D planes and their normals in 3D scenes from RGB images. Since all images in our dataset contain only one plane, we select the largest plane detected by PlaneNet and use its normal vector to compute the camera pose as the prediction of PlaneNet. Across all experiments, we use the PlaneNet model pretrained on ScanNet [10]. We also compare our results qualitatively with the auto-perspective tool provided by Adobe Lighthroom.
+
+Metrics. We evaluate the accuracy of the estimated camera poses, i.e., the camera orientation, by calculating their $\mathcal{L}_1$ distance to the human-annotated pose using Rodrigues' rotation formula. All error metrics are computed in degrees and averaged over all images in the dataset.
+
+Results. We first present qualitative results in Fig. 5, visualizing the predictions of P3I, PlaneNet, and Adobe Lightroom. Our model achieves near-perfect estimations of the camera pose, whereas other baselines lead to incorrect perspective correction, possibly due to the absence of straight
+
+line cues. Quantitatively, as shown in Table 1, our model also outperforms AutoRectify and PlaneNet by a significant margin. Since Adobe Lighthroom does not provide numerical values of the estimated camera pose, we are unable to make quantitative comparison with it.
+
+These results indicate that our model can successfully use cues from global scene regularities to guide the inference of the camera pose. This differs from traditional visual cues such as vanishing points or straight lines.
+
+# 4.3. Repeated Pattern Detection
+
+The task of repeated pattern detection is to localize individual objects or patches in an image, assuming that these patches have similar visual appearances.
+
+Baselines. We compare our algorithm with a non-learning-based algorithm, RPD [21], designed for localizing objects that form lattice patterns. We use a subset of NRPP of 56 images (lattice patterns only), each of which contains only lattice patterns. Because the original RPD algorithm is not designed to handle non-fronto-parallel images, we also augment RPD with perspective correction based on the camera pose estimated by PlaneNet.
+
+Metrics. The output of both RPD and P3I is a list of object centroids, which we compare against the ground-truth annotations of object centroids in the image. Two complementary metrics are used: average distance from all detected centroids to their nearest ground-truth centroids ("Detected to
+
+| Method | Detected to GT | GT to Detected | Chamfer Dis. |
| RPD | 0.0971 | 0.0909 | 0.1880 |
| RPD + PlaneNet | 0.1659 | 0.1013 | 0.2672 |
| P3I (Ours) | 0.0639 | 0.0881 | 0.1520 |
+
+Table 2: Repeated object detection. P3I outperforms both RPD and $\mathrm{RPD + }$ PlaneNet. The degradation from "RPD" to "RPD $^+$ PlaneNet" is explained by incorrect perspective corrections, which lead to larger errors than not performing the correction at all.
+
+
+Figure 6: Besides lattice patterns, P3I is also able to detect (1) circular patterns (rainbow colors are used to visualize the inferred program), and (2) hybrid structures composed by a circular structure and a linearly repeated one.
+
+GT" in Table 2) and average distance from all ground-truth centroids to their respective closest detected counterparts ("GT to Detected"). Using both metrics penalizes both cases with excessively many detections and those with very few. We also report the sum of two aforementioned asymmetric error metrics, a.k.a., the Chamfer distance.
+
+Results. Qualitatively visualized in Fig. 5, the original RPD algorithm completely fails when the viewing angle deviates from the fronto-parallel view. The integration of PlaneNet helps correct the perspective effects on certain images, but overall degrades the performance due to large errors when the perspective correction is wrong. As Table 2 shows, our model quantitatively outperforms “RPD + PlaneNet” by a large margin, suggesting that our joint inference algorithm is superior to a pipeline directly integrating camera pose estimation and object detection.
+
+Importantly, P3I suggests a general framework for detecting repeated objects organized in any patterns expressible by a program in the DSL. As an example, we show in Fig. 6 that our model successfully localizes objects with a global circular pattern. Specifically, our model discovers the mirror's radial peripheral and holes on the metal surface.
+
+# 4.4. Image Manipulation
+
+The induced perspective plane programs enable perspective-aware image manipulation. The neural painting network (NPN) [29] is a general framework for program-guided image manipulation; it performs tasks such as inpainting missing pixels, extrapolating images, and editing image
+
+regularities. Consider the representative task of image inpainting. The key idea of NPNs is to train an image-specific neural generative model to inpaint missing pixels based on the specification generated by the high-level program: what should be put where. The original NPNs work only on fronto-parallel images with objects forming lattice patterns.
+
+Thus, we augment the NPN framework to add support for non-fronto-parallel images and non-lattice patterns. Specifically, based on the inferred camera pose, we first transform the input image to a fronto-parallel view. We then train an NPN to manipulate the transformed image. Circular patterns are supported by introducing an extra rotation operation during image manipulation; the details can be found in our supplementary material.
+
+Baselines. We compare our model against both learning-based (GatedConv [47]) and non-learning-based algorithms (Image Quilting [14] and PatchMatch [6]). Both nonlearning algorithms (Image Quilting and PatchMatch) perform image manipulation based on internal statistics only, without referencing to external image datasets. Similarly, P3I-guided NPNs also learn from single images (not external image datasets), and then perform manipulation with learned internal statistics. In contrast, GatedConv is a neural generative model trained on a large collection of images (Places365 [48]) for image inpainting.
+
+Metrics. We evaluate the performance of P3I-guided NPNs in image inpainting with two metrics: average $\mathcal{L}_1$ distance between the inpainted pixels and ground truth, and Inception Score (IS) [34] of the inpainted region.
+
+Results. Qualitative results for inpainting are presented in Fig. 7. Our model can inpaint missing pixels in images at various viewing angles. Both Image Quilting and PatchMatch do not perform well, because they are designed for texture synthesis and assume a stationary texture pattern, and this assumption does not hold when the image is non-frontoparallel or contains circular patterns. In addition, PatchMatch also modifies pixels near the inpainting region for improved global consistency, resulting in blurriness. More importantly, results by the baselines fail to respect the global perspective pattern (e.g., the lines in 1 and 4). Only P3I-guided NPNs are able to inpaint missing objects of proper sizes that respect the overall perspective structure.
+
+Quantitatively, as shown in Table 3, our P3I-guided NPNs outperform all the baselines (both non-learning-based and learning-based) in terms of $\mathcal{L}_1$ distance between the inpainted pixels and the ground truth. Image Quilting receives a higher Inception Score (IS) than our P3I-NPNs, because high patch diversity, in addition to patch quality, leads to high IS [34], and Image Quilting tends to produce diverse inpainting across the test images.
+
+Fig. 8 shows two intriguing failure cases of our model. In the first case (left), the complex scene consists of multiple planes at different orientations, and P3I struggles to
+
+
+1
+
+
+2
+
+
+3
+
+
+4
+Corrupted Images (Input)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+PatchMatch
+Non-Learning-Based
+
+
+Image Quilting
+
+
+
+
+
+
+
+
+GatedConv
+
+
+
+
+
+
+
+
+P3I + NPN
+
+
+
+
+
+
+
+
+Ground Truth
+
+| Method | L1 | Inception Score |
| Image Quilting | 35.76 | 1.16 |
| PatchMatch | 21.92 | 1.13 |
| GatedConv | 23.20 | 1.12 |
| P3I +NPN (Ours) | 18.72 | 1.14 |
+
+Table 3: Image inpainting. P3I-Guided NPNs outperform both classic, non-learning baselines and the learning-based baseline in $\mathcal{L}_1$ loss. Image Quilting achieves better Inception Score (IS) than P3I-NPNs, because besides patch quality, patch diversity also improves IS [34], and Image Quilting tends to produce diverse inpainting across the test images.
+
+perspective-correct both planes. In the second case (right), P3I only learns low-level texture statistics, therefore failing to inpaint the person's head using high-level semantics.
+
+# 5. Conclusion
+
+We have presented the perspective plane program induction (P3I), a framework for synthesizing graphics programs as a holistic representation for images. A graphics program models camera poses, object locations, and the global scene structure, such as lattice or circular patterns. The algorithm induces graphics programs through a joint inference of the scene structure and camera poses on a single input image, requiring no training or human annotations. A hybrid approach that combines search-based and gradient-based algorithms
+
+
+Figure 7: P3I-guided NPNs perform inpainting in a perspective-aware fashion. Results generated by P3I-guided NPNs are sharp (compared with PatchMatch), consistently connect to the global structure (e.g., the lines in 1 and 4), and respect the global perspective effects.
+Input Image w/ Multiple Planes
+
+
+Failed Perspective Correction
+Figure 8: Left: Perspective correction in the presence of multiple planes is a future direction that P3I can take. Right: P3I inpainting learns low-level texture statistics from single images, so it is unable to inpaint the person's head using high-level semantics.
+
+
+P3I Inpainting Ground Truth
+
+is proposed to solve the challenging inference task. The induced neuro-symbolic, program-like representations can further facilitate image manipulation tasks, such as image inpainting. The resulting P3I-guided neural painting networks (NPNs) are able to inpaint missing pixels in a way that respects the global perspective structure.
+
+Acknowledgements. This work is supported by the Center for Brains, Minds and Machines (NSF STC award CCF-1231216), NSF #1447476, ONR MURI N00014-16-1-2007, and IBM Research.
+
+# References
+
+[1] Dror Aiger, Daniel Cohen-Or, and Niloy J. Mitra. Repetition maximization based texture rectification. CGF, 2(31):439-448, 2012. 2, 5, 6
+[2] John Aloimonos. Shape from Texture. Biological Cybernetics, 58(5):345-360, 1988. 2
+[3] Syed Ammar Abbas and Andrew Zisserman. A Geometric Approach to Obtain a Bird's Eye View From an Image. In ICCV Workshop, 2019. 1, 2
+[4] Michael Ashikhmin. Synthesizing Natural Textures. In I3D, 2001. 3
+[5] Coloma Ballester, Marcelo Bertalmio, Vicent Caseles, Guillermo Sapiro, and Joan Verdera. Filling-in by Joint Interpolation of Vector Fields and Gray Levels. IEEE TIP, 10(8):1200-1211, 2001. 3
+[6] Connelly Barnes, Eli Shechtman, Adam Finkelstein, and Dan Goldman. PatchMatch: A Randomized Correspondence Algorithm for Structural Image Editing. ACM TOG, 28(3):24, 2009. 3, 7
+[7] Tony Beltramelli. Pix2Code: Generating Code from a Graphical User Interface Screenshot. In EICS, 2018. 2
+[8] Dorothea Blostein and Narendra Ahuja. Shape from Texture: Integrating Texture-Element Extraction and Surface Estimation. IEEE TPAMI, 11(12):1233–1251, 1989. 2
+[9] Tom Bruls, Horia Porav, Lars Kunze, and Paul Newman. The Right (Angled) Perspective: Improving the Understanding of Road Scenes Using Boosted Inverse Perspective Mapping. In IEEE Intelligent Vehicles Symposium (IV), 2019. 1
+[10] Angela Dai, Angel X. Chang, Manolis Savva, Maciej Halber, Thomas Funkhouser, and Matthias Nießner. ScanNet: Richly-Annotated 3D Reconstructions of Indoor Scenes. In CVPR, 2017. 6
+[11] Soheil Darabi, Eli Shechtman, Connelly Barnes, Dan B. Goldman, and Pradeep Sen. Image melding: combining inconsistent images using patch-based synthesis. ACM TOG, 31:82:1-82:10, 2012. 3
+[12] Yuntian Deng, Anssi Kanervisto, Jeffrey Ling, and Alexander M Rush. Image-to-Markup Generation with Coarse-to-Fine Attention. In ICML, 2017. 2
+[13] Frédéric Devernay and Olivier D Faugeras. Automatic calibration and removal of distortion from scenes of structured environments. In Investigative and Trial Image Processing, volume 2567, pages 62-72, 1995. 5
+[14] Alexei A. Efros and William T. Freeman. Image Quilting for Texture Synthesis and Transfer. In SIGGRAPH, 2001. 3, 7
+[15] Kevin Ellis, Daniel Ritchie, Armando Solar-Lezama, and Josh Tenenbaum. Learning to Infer Graphics Programs from Hand-Drawn Images. In NeurIPS, 2018. 1, 2, 5
+[16] Yaroslav Ganin, Tejas Kulkarni, Igor Babuschkin, S. M. Eslami, and Oriol Vinyals. Synthesizing Programs for Images Using Reinforced Adversarial Learning. In ICML, 2018. 2
+[17] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross Girshick. Mask R-CNN. In ICCV, 2017. 1, 2
+[18] Jia-Bin Huang, Sing Bing Kang, Narendra Ahuja, and Johannes Kopf. Image completion using planar structure guidance. ACM TOG, 33:129:1-129:10, 2014. 3
+
+[19] Satoshi Iizuka, Edgar Simo-Serra, and Hiroshi Ishikawa. Globally and Locally Consistent Image Completion. ACM TOG, 36(4):107, 2017. 3
+[20] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. ImageNet Classification with Deep Convolutional Neural Networks. In NeurIPS, 2012. 4
+[21] Louis Lettry, Michal Perdoch, Kenneth Vanhoey, and Luc Van Gool. Repeated Pattern Detection Using CNN Activations. In WACV, 2017. 1, 4, 5, 6
+[22] Jun Li, Kai Xu, Siddhartha Chaudhuri, Ersin Yumer, Hao Zhang, and Leonidas Guibas. GRASS: Generative Recursive Autoencoders for Shape Structures. ACM TOG, 36(4):52, 2017. 2
+[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 TOG, 38(2):12:1-12:16, 2019. 2
+[24] Chen Liu, Jimei Yang, Duygu Ceylan, Ersin Yumer, and Yasutaka Furukawa. PlaneNet: Piece-Wise Planar Reconstruction from a Single RGB Image. In CVPR, 2018. 2, 5, 6
+[25] 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, 2018. 3
+[26] Miaomiao Liu, Xuming He, and Mathieu Salzmann. Geometry-Aware Deep Network for Single-Image Novel View Synthesis. In CVPR, 2018. 1
+[27] Yunchao Liu, Zheng Wu, Daniel Ritchie, William T. Freeman, Joshua B. Tenenbaum, and Jiajun Wu. Learning to Describe Scenes with Programs. In ICLR, 2019. 2
+[28] Jitendra Malik and Ruth Rosenholtz. Computing Local Surface Orientation and Shape from Texture for Curved Surfaces. IJCV, 23(2):149-168, 1997. 2
+[29] Jiayuan Mao, Xiuming Zhang, Yikai Li, William T. Freeman, Joshua B. Tenenbaum, and Jiajun Wu. Program-Guided Image Manipulators. In ICCV, 2019. 1, 2, 5, 7
+[30] John FJ Mellor, Eunbyung Park, Yaroslav Ganin, Igor Babuschkin, Tejas Kulkarni, Dan Rosenbaum, Andy Ballard, Theophane Weber, Oriol Vinyals, and SM Eslami. Unsupervised Moodling and Painting with Improved SPIRAL. arXiv:1910.01007, 2019. 2
+[31] Kamyar Nazeri, Eric Ng, Tony Joseph, Faisal Qureshi, and Mehran Ebrahimi. EdgeConnect: Generative Image Inpainting with Adversarial Edge Learning. arXiv:1901.00212, 2019. 3
+[32] Chengjie Niu, Jun Li, and Kai Xu. Im2Struct: Recovering 3d Shape Structure from a Single Rgb Image. In CVPR, 2018. 2
+[33] Tu-ichi Ohta, Kiyoshi Maenobu, and Toshiyuki Sakai. Obtaining Surface Orientation from Texels Under Perspective Projection. In *IJCAI*, 1981. 2
+[34] Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved Techniques for Training GANs. In NeurIPS, 2016. 7, 8
+[35] Gopal Sharma, Rishabh Goyal, Difan Liu, Evangelos Kalogerakis, and Subhransu Maji. CSGNet: Neural Shape Parser for Constructive Solid Geometry. In CVPR, 2018. 2
+
+[36] Assaf Shocher, Nadav Cohen, and Michal Irani. "Zero-Shot" Super-Resolution Using Deep Internal Learning. In CVPR, 2018. 2
+[37] Jean-Philippe Tardif. Non-iterative Approach for Fast and Accurate Vanishing Point Detection. In ICCV, 2009. 2
+[38] 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 ICLR, 2019. 2
+[39] Jasper RR Uijlings, Koen EA Van De Sande, Theo Gevers, and Arnold WM Smeulders. Selective Search for Object Recognition. IJCV, 104(2):154-171, 2013. 2
+[40] Yanzhen Wang, Kai Xu, Jun Li, Hao Zhang, Ariel Shamir, Ligang Liu, Zhiquan Cheng, and Yueshan Xiong. Symmetry Hierarchy of Man-Made Objects. CGF, 30(2), 2011. 2
+[41] Jiajun Wu, Joshua B. Tenenbaum, and Pushmeet Kohli. Neural Scene De-rendering. In CVPR, 2017. 2
+[42] Wei Xiong, Zhe Lin, Jimei Yang, Xin Lu, Connelly Barnes, and Jiebo Luo. Foreground-Aware Image Inpainting. In CVPR, 2019. 3
+[43] Zhaoyi Yan, Xiaoming Li, Mu Li, Wangmeng Zuo, and Shiguang Shan. Shift-Net: Image Inpainting Via Deep Feature Rearrangement. In ECCV, 2018. 3
+[44] Chao Yang, Xin Lu, Zhe Lin, Eli Shechtman, Oliver Wang, and Hao Li. High-Resolution Image Inpainting Using MultiScale Neural Patch Synthesis. In CVPR, 2017. 3
+[45] Halley Young, Osbert Bastani, and Mayur Naik. Learning Neurosymbolic Generative Models via Program Synthesis. In ICML, 2019. 2
+[46] Jiahui Yu, Zhe Lin, Jimei Yang, Xiaohui Shen, Xin Lu, and Thomas S Huang. Generative Image Inpainting with Contextual Attention. In CVPR, 2018. 3
+[47] Jiahui Yu, Zhe Lin, Jimei Yang, Xiaohui Shen, Xin Lu, and Thomas S Huang. Free-Form Image Inpainting with Gated Convolution. In ICCV, 2019. 3, 7
+[48] Bolei Zhou, Agata Lapedriza, Aditya Khosla, Aude Oliva, and Antonio Torralba. Places: A 10 Million Image Database for Scene Recognition. IEEE TPAMI, 40(6):1452-1464, 2017. 7
+[49] Yichao Zhou, Haozhi Qi, Yuexiang Zhai, Qi Sun, Zhili Chen, Li-Yi Wei, and Yi Ma. Learning to Reconstruct 3D Manhattan Wireframes from a Single Image. In ICCV, 2019. 2
+[50] Yang Zhou, Zhen Zhu, Xiang Bai, Dani Lischinski, Daniel Cohen-Or, and Hui Huang. Non-Stationary Texture Synthesis by Adversarial Expansion. ACM TOG, 37(4):49, 2018. 3
+[51] C. Lawrence Zitnick and Piotr Dóllár. Edge Boxes: Locating Object Proposals from Edges. In ECCV, 2014. 2
\ No newline at end of file
diff --git a/perspectiveplaneprograminductionfromasingleimage/images.zip b/perspectiveplaneprograminductionfromasingleimage/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..9c1ae5d885f53eec064f4fdd8dc9accbc1dd40f1
--- /dev/null
+++ b/perspectiveplaneprograminductionfromasingleimage/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2a181f51e83bd229b6f94e5261a268bcc6c637d3622d3e5a2f3bdd6e4f6ad142
+size 739634
diff --git a/perspectiveplaneprograminductionfromasingleimage/layout.json b/perspectiveplaneprograminductionfromasingleimage/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..b12c97c0709fa40c4e83dcc9edb00d3282fa5ced
--- /dev/null
+++ b/perspectiveplaneprograminductionfromasingleimage/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c58460c4c3b1228e455dd01837a15dc7085326497fcc5f0c87b78432e69833a8
+size 502665
diff --git a/pfcnnconvolutionalneuralnetworkson3dsurfacesusingparallelframes/f9a52180-05fb-4aa6-a3c4-75fbda952bb8_content_list.json b/pfcnnconvolutionalneuralnetworkson3dsurfacesusingparallelframes/f9a52180-05fb-4aa6-a3c4-75fbda952bb8_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..c8822bb5edcc73640eeb54ea42a5143536d95495
--- /dev/null
+++ b/pfcnnconvolutionalneuralnetworkson3dsurfacesusingparallelframes/f9a52180-05fb-4aa6-a3c4-75fbda952bb8_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5cfbc2373d0bda86fdcff6941b95852899dd9160b0d53ef0929bb0e6abd9e8f1
+size 79691
diff --git a/pfcnnconvolutionalneuralnetworkson3dsurfacesusingparallelframes/f9a52180-05fb-4aa6-a3c4-75fbda952bb8_model.json b/pfcnnconvolutionalneuralnetworkson3dsurfacesusingparallelframes/f9a52180-05fb-4aa6-a3c4-75fbda952bb8_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..90f75d133342a98b09ac6093fcb1fc229d3f6755
--- /dev/null
+++ b/pfcnnconvolutionalneuralnetworkson3dsurfacesusingparallelframes/f9a52180-05fb-4aa6-a3c4-75fbda952bb8_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b56aaa46d9fa6ac400a0767a0a0fb6756249e65b9a3a8ac21837c9feeb30d6ee
+size 98577
diff --git a/pfcnnconvolutionalneuralnetworkson3dsurfacesusingparallelframes/f9a52180-05fb-4aa6-a3c4-75fbda952bb8_origin.pdf b/pfcnnconvolutionalneuralnetworkson3dsurfacesusingparallelframes/f9a52180-05fb-4aa6-a3c4-75fbda952bb8_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..7aadf9206f2c781e125123bd9bca2442e930f432
--- /dev/null
+++ b/pfcnnconvolutionalneuralnetworkson3dsurfacesusingparallelframes/f9a52180-05fb-4aa6-a3c4-75fbda952bb8_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:44817c60817861867a53eb8937f9e3671f3e31c7a8b7489aecbc51c44a832cad
+size 1224687
diff --git a/pfcnnconvolutionalneuralnetworkson3dsurfacesusingparallelframes/full.md b/pfcnnconvolutionalneuralnetworkson3dsurfacesusingparallelframes/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..c5b3d561b51f753dbd6ec38043b101d7381878ee
--- /dev/null
+++ b/pfcnnconvolutionalneuralnetworkson3dsurfacesusingparallelframes/full.md
@@ -0,0 +1,298 @@
+# PFCNN: Convolutional Neural Networks on 3D Surfaces Using Parallel Frames
+
+Yuqi Yang\*1,3 Shilin Liu\*2,3 Hao Pan\*3 Yang Liu3 Xin Tong3
+
+$^{1}$ Tsinghua University $^{2}$ University of Science and Technology of China $^{3}$ Microsoft Research Asia
+
+yangyq18@mails.tsinghua.edu.cn freelin@mail.ustc.edu.cn
+
+{haopan, yangliu, xtong}@microsoft.com
+
+# Abstract
+
+Surface meshes are widely used shape representations and capture finer geometry data than point clouds or volumetric grids, but are challenging to apply CNNs directly due to their non-Euclidean structure. We use parallel frames on surface to define PFCNNs that enable effective feature learning on surface meshes by mimicking standard convolutions faithfully. In particular, the convolution of PFCNN not only maps local surface patches onto flat tangent planes, but also aligns the tangent planes such that they locally form a flat Euclidean structure, thus enabling recovery of standard convolutions. The alignment is achieved by the tool of locally flat connections borrowed from discrete differential geometry, which can be efficiently encoded and computed by parallel frame fields. In addition, the lack of canonical axis on surface is handled by sampling with the frame directions. Experiments show that for tasks including classification, segmentation and registration on deformable geometric domains, as well as semantic scene segmentation on rigid domains, PFCNNs achieve robust and superior performances without using sophisticated input features than state-of-the-art surface based CNNs.
+
+# 1. Introduction
+
+Applying CNNs to 3D geometric domains is critical for deep learning beyond the 2D images. Unlike regular 2D images, 3D geometric data can be represented in different forms, posing challenges to standard CNNs. For example, volumetric grids regularly sample $\mathbf{R}^3$ on which CNNs can be trivially deployed, but they are memory consuming and inflexible for capturing fine geometric details. For representation efficiency, 3D objects and scenes are frequently encoded by their boundary surfaces discretized as triangle meshes. However, the curved and irregularly sampled meshes do not admit the standard CNNs designed for flat image domains with regular pixel grids. While several surface based CNNs have been proposed to tackle this problem, in this paper we use parallel frame fields that con
+
+tain pointwise $N$ -direction frames (Fig. 1) to define a novel PFCNN framework whose convolution mimics standard image convolutions more faithfully.
+
+Similar to standard CNNs, the PFCNN convolution works on a local surface patch each time and maps it onto the flat tangent space where the convolution kernel is parameterized, as done by many previous surface based CNNs [28, 3, 30, 32]. Different from the previous approaches, however, we also align the tangent spaces of different surface points such that they locally form a flat Euclidean structure, on which the surface-based feature maps and convolution kernels can be moved as in the standard image domain. For images, such translation operations are formally captured by the translation equivariance property of convolution [4], which is a key factor contributing to the effectiveness of CNNs by enabling shared trainable weights and thus significantly reducing the amount of network parameters to avoid overfitting and achieve generalization [23, 13]; our surface based convolution is shown to reproduce the image-domain translation equivariance locally.
+
+We adopt the tool of locally flat connections from discrete differential geometry [45] to align the tangent spaces. The locally flat connection is encoded by the field of pointwise tangential $N$ -direction frames (Fig. 1) that is efficiently computed to be parallel and aligned to salient geometric features to better capture semantics. In addition, because there exists no canonical axis on a surface, we sample the axes using the same $N$ frame directions and organize the resulting feature maps with an $N$ -cover space of the domain surface [9]; on each sheet of the cover space, the canonical axis is selected and the convolution is readily defined. Furthermore, to handle the irregular mesh vertices, for each patch we resample with a regular grid and apply standard shaped convolution kernels on it.
+
+The PFCNNs resemble standard CNNs so that efficient network structures can be leveraged accordingly. Through experiments of deformable shape classification, segmentation and matching as well as rigid scene segmentation, we show that PFCNNs using only raw input signals achieve superior performances than competing surface CNN frameworks. In addition, we do extensive ablation studies to validate the components of our framework.
+
+# 2. Related work
+
+We briefly review 3D neural networks by classifying them according to the forms of domain representation, and focus on the most related works that use surface meshes.
+
+3D neural networks for volumetric grids, point clouds and multi-view representations. The earliest works for 3D deep learning directly extend CNNs to 3D volumetric grids [47, 29], which are later improved for computational efficiency by using adaptive grids like octrees that use high resolution only around the boundary surfaces [37, 46]. Point sets also conveniently encode 3D shapes, for which the set-based PointNet [33] is proposed and later extended by PointNet++ [35] to take advantage of the local surface patch structure. Similarly, more works utilize the local patch structures of 3D point clouds, by e.g. tangent plane projection [42], localization with lattice structure [40], or localized kernel functions [1, 43]. Multi-view representations encode 3D data with a set of 2D images [41, 34], on which standard CNNs are applied to extract intermediate features and aggregated for final output. The PFCNNs presented in this paper work on surface meshes, which have been used pervasively for 3D representation due to their high efficiency for capturing geometry to the fine details.
+
+Patch-based surface CNNs. A series of works extend standard CNNs to curved surface domains by applying convolution operations on localized geodesic patches; they differ mainly in the specific ways of convolution computation. Masci et al. [28] parameterize each geodesic patch in polar coordinates, upon which the convolution operation is computed by rotating the kernel function for a set of discrete angles and convolving it with input features; the convolved features for different angles are further pooled for output. With such an approach, it is hard to capture anisotropic or directional signals. Later Boscaini et al. [3] propose anisotropic CNNs that extend [28] by aligning the convolution kernels to frames of principal curvature directions, thus removing angular pooling and ambiguity, and show improved performances on various tasks. Xu et al. [48] use a similar convolution on $n$ -ring neighboring faces with fixed cardinality for shape segmentation. MoNet [30] extends the geodesic convolutions by modeling the convolution kernel as a mixture of Gaussians whose bases and coefficients are fully trainable rather than functions of fixed parameterizations. TextureNet [16] imposes locally rectangular grids define by 4-directional fields on the geodesic patches, and extract the features for center or corner grid points separately to handle the grid orientation ambiguity. Multi-directional CNNs [32] make the further step of resolving the orientation alignment of geodesic patches by using parallel transport to match the directional convolution responses for different surface points, which enables effective propagation of directional signals. Different from these
+
+
+Figure 1. For patch-based surface CNNs, the key problem is how to align the tangent spaces of different surface points. (a) the parallel transport is path-dependent and maps the vector in $T_x\mathcal{M}$ directly to the blue one in $T_z\mathcal{M}$ but to the red dashed one by going through $T_y\mathcal{M}$ . (b) by building a flat connection encoded by the parallel 4-direction frame field, our approach has path-independent translation as in image domain.
+
+
+
+manifold based works, SplineCNN [11] defines 3D spline convolution kernels for extracting features on surface and is inherently a volumetric approach focusing on handling the irregular sampling of meshes.
+
+Our PFCNN follows the geodesic convolution paradigm, but differs from others in the convolution computation. Indeed, our framework closely relates to the latest parallel transport approach of [32], but we align the tangent spaces with locally flat connections that not only approximate the parallel transport but also induce a locally Euclidean structure suitable for defining convolutions as for images. In addition, the locally flat connections can be adapted to capture salient geometric features like sharp creases, which further improves performance. As a result, our PFCNNs show superior performances than the previous patch-based surface CNNs on diverse tasks (Sec. 6).
+
+Surface CNNs using atlas maps. Another series of works deal with a surface domain by mapping it to a 2D atlas image, on which standard convolutions are applied. Sinha et al. [39] use the geometry image to map a 3D surface of sphere topology to the planar domain and feed the map to CNNs for shape recognition. Maron et al. [27] note the geometry images have gaps between charts of the atlas map and propose to parameterize a surface of sphere topology conformally to the flat image with a toric topology, where standard convolutions with cross boundary cyclic padding are applied. Such convolutions are shown to be conformally translation equivariant but the conformal scaling distortion is uneven for different surface regions. Li et al. [25] handle the gaps of an atlas map by modulating the convolution to jump across the gaps, while the mapping distortion is loosely constrained by subdividing the charts. In comparison, our framework works with surfaces of general topology and automatically preserves the original signals with minimal distortion due to the local patch paradigm.
+
+# 3. Overview
+
+To represent the boundary of a 3D object, we consider a surface mesh $\mathcal{M} = (V,F)$ , with $V = \{v_{i}\}$ the vertices with embedding $\mathbf{v}_i\in \mathbf{R}^3$ , and $F = \{f_i = (v_{i0},v_{i1},v_{i2})\}$ the faces with corners indexing the vertices. Denote the unit
+
+normal vector at vertex $v_{i}$ as $\mathbf{n}_{v_i} \in \mathbf{R}^3$ , and tangent plane as $T_{v_i}\mathcal{M}$ on which we can project the local geodesic patch and apply standard image-like convolutions. As reviewed in Sec. 2, while most patch-based surface CNNs follow this general approach, the key challenge is how to coordinate the convolutions for tangent planes of different vertices (Fig. 1). We resolve this challenge by building locally flat connections that align the tangent planes into locally flat Euclidean domains, thus enabling effective weight sharing and translation equivariance that mimic behavior on 2D images.
+
+In Sec. 4 we briefly review the standard Euclidean convolutions with their translation equivariance property, the notion of connections from differential geometry, locally flat connections encoded by $N$ -direction frame fields and $N$ -cover spaces for organizing convolution and feature maps. In Sec. 5 we present the extended convolution on surfaces using parallel frames that achieves local translation equivariance and handles irregular vertex sampling on meshes, and the new layers that constitute a PFCNN model.
+
+# 4. Background
+
+# 4.1. Convolution on Euclidean domains
+
+The convolution operation of a CNN exploits the translation equivariance of 2D images [22, 23, 4]. Let $f, k: \Omega \subset \mathbf{R}^2 \to \mathbf{R}$ be two functions defined on the image $\Omega$ , and $k$ is the convolution kernel usually with a local spatial support. Define the convolution operator $\star$ as $f \star k(x) = \int_{y \in \Omega} k(y - x)f(y)dy$ . A planar translation of the image-based function by a vector $v \in \mathbf{R}^2$ is $\tau_v(f(x)) = f(x - v)$ . Translation equivariance simply means that the planar translation commutes with convolution, i.e.
+
+$$
+\tau_ {v} (f \star k) = \tau_ {v} (f) \star k. \tag {1}
+$$
+
+CNNs parameterize the convolution kernel with trainable weights, which can be shared for different image regions and therefore lead to less overfitting and more generality. As will be discussed next, on curved surface domains the notion of translation is only locally meaningful, which poses difficulty for effective weight sharing of the convolution kernels.
+
+# 4.2. Connections and locally flat connections
+
+Connections generalize the notion of translation onto curved manifolds with non-Euclidean metric [24]. Intuitively, a (linear) connection $\nabla : T\mathcal{M} \times T\mathcal{M} \to T\mathcal{M}$ measures the linear differentiation of moving tangent plane $T_x\mathcal{M}$ along a vector $v \in T_x\mathcal{M}$ infinitesimally. Therefore, a geodesic curve $\gamma : [0,1] \to \mathcal{M}$ as the "straight line" on a surface has $\nabla_{\dot{\gamma}}\dot{\gamma} = 0$ , i.e. the curve tangent vector moves straightly along itself. Indeed, the patch-based multi-directional geodesic CNN(MDGCNN) [32] connects the convolutions for two surface patches by translating the
+
+tangent planes along the geodesic curve connecting the two patch centers, which provides a natural extension of translation on 2D images.
+
+However, the problem with parallel transporting along the geodesic curves is that the mapping is path dependent. Consider three nearby points $x,y,z\in \mathcal{M}$ , and denote the transport of tangent planes along the geodesic curve between $x,y$ as $\tau_{x,y}:T_x\mathcal{M}\to T_y\mathcal{M}$ . In general, we have $\tau_{y,z}\circ \tau_{x,y}\neq \tau_{x,z}$ , where $\circ$ is composition, with the difference caused by the curvature of the triangular surface patch bounded by the geodesic curves (Fig. 1(a)).
+
+In this paper, we propose to use a construction called locally flat (or trivial) connections [6, 36] to achieve the path-independent tangent space mapping for all surface patches except at a few singular points. The idea of locally flat connections is to concentrate the surface curvature onto a sparse set of singular points and leave the rest majority of surface area with tangent space mappings as in a Euclidean domain, which in turn paves the way for convolutions as on images.
+
+# 4.3. $N$ -direction frame fields and cover space
+
+One way of encoding the locally flat connections for meshes is through $N$ -direction frame fields [36, 45]. An $N$ -direction field at $x \in \mathcal{M}$ gives a frame of $N$ rotationally symmetric directions $\mathbf{u}_x^i \in T_x\mathcal{M}, i = 1, \dots, N$ ; thus two consecutive vectors in the sequence differ by an angle $\frac{2\pi}{N}$ . A transport (or matching) $\tau_{x,y}$ between two tangent planes of $x, y$ can thus be defined by identifying $\mathbf{u}_x^i$ with $\mathbf{u}_y^j$ , which simply amounts to a change of bases. In particular, we use the principal matching which chooses $j$ such that $\| \tau_{x,y}'(\mathbf{u}_x^i) - \mathbf{u}_y^j \|$ is minimal, where $\tau_{x,y}'$ is the parallel transport between $x, y$ along geodesics.
+
+In addition, a vertex $x$ is singular if and only if it has a loop of neighboring vertices $[p_1, \dots, p_n]$ such that $\mathbf{u}_{p_1}^i$ mapped by $\tau_{p_n,p_1} \circ \tau_{p_{n-1},p_n} \circ \dots \circ \tau_{p_1,p_2}$ does not return to itself (Fig. 2(c)). Therefore on a patch containing no singular vertex, the transport $\tau_{x,y}$ remains the same regardless of the path taken between $x,y$ [6] (Fig. 1(b)). On the other hand, the concentrated curvature at a singular vertex can only be multiples of $\frac{2\pi}{N}$ , which explains the usage of $N$ symmetric directions: larger $N$ allows for more flexible singularities and flat connections. We discuss the choice of $N$ later.
+
+By solving for smooth (or parallel) frame fields that deviate minimally from the parallel transport and align to salient geometric features of the underlying surface [36, 6, 45] (see Appendix B for details), we obtain locally flat connections that closely approximate the linear connection while also having consistency among deformed shapes, therefore supporting improved feature learning by the extended surface convolutions.
+
+While now we can translate tangent planes, another challenge unique to a surface domain rather than 2D images is the lack of canonical axes for the tangent planes. By
+
+
+Figure 2. 4-direction frame fields and the corresponding cover spaces. (a)&(b): a field without singular vertex and the four separate sheets of the cover space. (c)&(d): a field with a singular vertex on the cube-corner shaped surface and the four sheets of cover space that are connected and coincide at the singular vertex.
+
+randomly fixing an axis on one tangent plane, we risk significantly biasing the feature learning. Instead, a more robust approach is to sample several directions on the tangent planes as axes, and properly aggregate the learned features for the final output. Fortunately, the $N$ -direction frames provide a uniform sampling of tangent directions, which motivates introducing their associated $N$ -cover space that allows to organize the feature learning over multiple axes.
+
+$N$ -cover space. A frame field induces an $N$ -cover space over the domain surface [18, 9]. Intuitively, the cover space consists of $N$ copies $\mathcal{M}_i$ , $i = 1,\dots ,N$ of the base surface, with each copy $\mathcal{M}_i$ having a unit vector field $\mathbf{u}_x^{\sigma_x(i)}$ , where $\sigma_{x}(i)$ indexes the vector of the $N$ -direction frame at $x$ for the sheet $\mathcal{M}_i$ ; in addition, $\mathbf{u}_x^{\sigma_x(i)}$ and $\mathbf{u}_y^{\sigma_y(i)}$ are connected by $\tau_{x,y}$ the principal matching (Fig. 2). The unit vector field is well-defined everywhere on the cover space, except at singular vertices where different sheets of the cover space coincide. In this paper, we use the vector field as the canonical axes and compute surface convolution on the cover space; around singular vertices, our framework degenerates to a strategy similar to the parallel transport method [32].
+
+# 5. Surface based PFCNN
+
+# 5.1. Surface convolution via parallel frames
+
+Given a surface mesh $\mathcal{M}$ equipped with a parallel $N$ -direction frame field $\mathbf{u}_x^i$ , the surface convolution for a vertex $v_i$ with its feature vector $\mathbf{F}_{v_i}^j, j = 1,\dots ,N$ on the $\sigma_{v_i}^{-1}(j)$ -th cover sheet is computed by the following steps:
+
+1. Choose $\mathbf{u}_{v_i}^j$ as the $x$ -axis of the tangent plane $T_{v_i}\mathcal{M}$ . Thus the local coordinate system is encoded by the $2\times 3$ matrix $F_{v_i}^j = (\mathbf{u}_{v_i}^j,\mathbf{n}_{v_i}\times \mathbf{u}_{v_i}^j)^T$ .
+2. For each vertex $v_{k}$ in the neighboring geodesic patch $\mathcal{N}_{v_i}$ , project it onto the tangent plane as $\mathbf{v}_k^{\prime}$ under coordinate system $F_{v_i}^j$ . Let $\mathbf{u}_{v_k}^l = \tau_{v_i,v_k}(\mathbf{u}_{v_i}^j)$ ; the projected point has feature vector $\mathbf{F}_{v_k}^l$ . Resample the projected feature map into a regular grid, denoted $\mathbf{F}_{\mathcal{N}_{v_i}}^j$ .
+3. Convolve $\mathbf{F}_{\mathcal{N}_{v_i}}^j$ with regular kernels $\mathbf{K}$ defined under $F_{v_i}^j$ . The responses constitute the feature vector of $v_i$ for the next network layer.
+
+Before presenting details for step 2, we remark that translation equivariance in the form of (1) indeed holds locally:
+
+$$
+\tau_ {v _ {i}, v _ {k}} (f \star k) = \tau_ {v _ {i}, v _ {k}} (f) \star k, \tag {2}
+$$
+
+where we assume $f$ is a function defined on the tangent plane $T_{v_i}\mathcal{M}$ , and $k$ is the convolution kernel supported on tangent planes. The equality holds because: on the left hand side, $f\star k$ returns a function on $T_{v_i}\mathcal{M}$ which is then transported by the flat connection $\tau_{v_i,v_k}$ to a function on $T_{v_k}\mathcal{M}$ while on the right hand side $f$ is first transported onto $T_{v_k}\mathcal{M}$ and then convolved with $k$ on $T_{v_k}\mathcal{M}$ ; since the transport $\tau_{v_i,v_k}$ only changes the underlying coordinate system bases, the functions $f,k$ when defined using local coordinates do not change at all by the transport, which makes the equality trivially true. In addition, on a patch without singular vertices, the transport and equation hold regardless of the path taken between two vertices, which is different from the path-dependent parallel transport [32]; for patches with singular vertices, because the transport minimizes deviation from the parallel transport (Sec. 4.3), our convolution closely resembles the parallel transport approach.
+
+Projection to tangent space and resampling. Previous patch-based surface CNNs use various kinds of geodesic curve tracing to impose a polar coordinate system onto the neighborhood patch $\mathcal{N}_{v_i}$ and map each neighboring point onto the tangent plane [28, 3, 30, 32]. We follow a similar approach adapted from [5] that is simpler to compute and works even for point clouds, thus enabling easy extension of our framework to point clouds. In particular, we modulate the geodesic coordinates computation using the local axes $F_{v_i}^j$ , and re-triangulate the projected neighboring points with Delaunay triangulation to avoid flipped triangles, over which a regular grid in the shape of convolution kernels is then resampled and feature vectors interpolated. The operation is encoded by a sparse tensor $S$ that is precomputed for a surface mesh and can be applied efficiently with standard NN libraries. See Appendix C for details.
+
+# 5.2. PFCNN structures
+
+In this section we present the detailed structures of layers specific to PFCNNs. These layers can be combined with standard CNN layers and stacked into networks such as U-Net [38] and ResNet [14].
+
+Input layers. The PFConv takes as input a group of $N$ feature maps corresponding to the $N$ cover sheets. These features can be constructed by simply duplicating the original input for $N$ copies, i.e. $|V|\times C_{in}\to |V|\times N\times C_{in}$ where $C_{in}$ is the input per-vertex feature length, or can be computed by further utilizing the local coordinate systems for different cover sheets. Indeed, we find that for tasks on deformable domains, e.g. non-rigid shape classification, segmentation and registration, a simple but effective input
+
+feature that is invariant to global rigid transformations is the normal vector and height from tangent plane in local coordinates, i.e. $\mathbf{F}_{v_k}^l = \left(F_{v_i}^j\mathbf{n}_{v_k},\mathbf{n}_{v_i}^T\mathbf{n}_{v_k},\mathbf{n}_{v_i}^T (\mathbf{v}_k - \mathbf{v}_i)\right)$ for each patch vertex $v_{k}\in \mathcal{N}_{v_{i}}$ . In this case, the input layer constructs an expanded $|V|\times N\times H\times W\times C_{in}$ feature map directly by sampling the local features with regular grids (Sec. 5.1), where $H\times W$ is the spatial shape of the subsequent convolution kernel to be applied.
+
+Output layers. For the final per-vertex output we need to reduce the grouped feature maps to an aggregation, i.e. $|V| \times N \times C \rightarrow |V| \times C$ . The reduction operation can be in different forms, e.g. taking the maximum or average among $N$ parallel channels, or being learned implicitly by a standard $1 \times 1$ convolution. The outputs can be further aggregated over all vertices into a single output for the whole shape, as in classification tasks.
+
+Convolution layers. Given an input feature map $\mathbf{F}_{in}$ of shape $|V|\times N\times C_{in}$ , the convolution layer first vectorizes it into $\mathrm{vec}(\mathbf{F}_{in})$ , multiplies with the sparse matrix $S$ of shape $(|V|\times N\times H\times W, |V|\times N)$ that does the feature map resampling (Sec. 5.1), and reshapes the result vector into a tensor of shape $|V|\times N\times H\times W\times C_{in}$ ; it then multiplies with the convolution kernel of shape $H\times W\times C_{in}\times C_{out}$ to obtain the output feature map $|V|\times N\times C_{out}$ . In case the input layer provides an expanded feature map with local features as discussed above, the convolution is a simple multiplication with the kernel. In addition, the special case of $1\times 1$ convolution on each cover sheet through a $C_{in}\times C_{out}$ kernel skips the feature resampling step and is directly multiplied with $\mathbf{F}_{in}$ to obtain the output. Note the same convolution kernel is shared for all $N$ cover sheets of feature maps, as the different cover sheets effectively sample the canonical axes over the surface domain.
+
+Pooling/Unpooling layers. Pooling and unpooling layers effectively change the spatial resolution of learned features. For surface meshes the different domain resolutions can be built through a hierarchy of simplified meshes $\mathcal{M}_i$ with $\mathcal{M}_1 = \mathcal{M}$ and each coarse vertex $v\in V_{i + 1}$ corresponding to a subset of dense vertices $\{v_k^{\prime}\} \subset V_i$ using e.g. [12, 15]. We adapt the simplification process so that their $N$ -direction frames are also mapped, i.e. $F_{v}^{j}$ corresponds to $F_{v_k'}^l$ the closest axes by rotation. Pooling is then defined as $\mathbf{F}_v^j = \mathrm{Pool}(\{\mathbf{F}_{v_k'}^l\})$ , where $\mathrm{Pool}(\cdot)$ takes channel-wise maximum or average; the layer has a signature of $|V_{i}|\times N\times C\to |V_{i + 1}|\times N\times C$ in terms of feature map shapes. Unpooling is the inverse operation of pooling.
+
+Throughout the paper we assume batch size one, although using larger batch size is trivial as long as each mesh of a batch has the same number of vertices on every domain resolution. We have implemented the above layers with Tensorflow; the code is publicly available1.
+
+Table 1. Results on SHREC'15 non-rigid shape classification. $\mathrm{PN + }$ is PointNet++[35]; "raw" means using spatial coordinates as input, "en" means using an ensemble of intrinsic shape descriptors. MDG is MDGCNN[32] using SHOT features as input.
+
+ | PN+(raw) | PN+(en) | MDG | Ours |
| Accu.(%) | 60.18 | 96.09 | 99.5 | 99.5 |
+
+Table 2. Results on human body segmentation. Our method outperforms MDGCNN on both original data and the remeshed data.
+
+ | Original | Remeshed |
| Method | MDGCNN | Ours | MDGCNN | Ours |
| Accu.(%) | 88.2 | 91.45 | 89.53 | 91.79 |
+
+# 6. Experiments
+
+We test the PFCNN framework and compare it mainly with the state-of-the-art MDGCNN [32] on deformable domain tasks involving shape classification, segmentation and registration where MDGCNN achieves uniformly superior performances than other methods, and with the state-of-the-art TextureNet [16] on the scene semantic segmentation task which has a rigid underlying domain. We further do ablation study on the impact of parallel frames, cover space grouped feature maps and layer normalization, etc.
+
+# 6.1. Deformable domain tasks
+
+For fair comparison, we use $5 \times 5$ convolution kernel for PFCNN and a larger $4(\mathrm{radial}) \times 8(\mathrm{angular})$ kernel for MDGCNN, and the same network structure for both methods in each task, except for registration where the same number of convolution layers are adopted. Network and training details are provided in Appendix D.
+
+Classification. The SHREC'15 non-rigid shape classification challenge [26] has 1200 shapes represented by surface meshes that belong to 50 categories. We use a network with three levels of resolution and the localized normal vectors as input features (Sec. 5.2) for PFCNN. As shown in Table. 1, our results outperform PointNet++ [35] even when it uses an ensemble of sophisticated input features, e.g. WKS and HKS, that are agnostic to non-rigid deformations. We are on par with MDGCNN that uses as input the SHOT descriptor [44] which is rotation invariant and more sophisticated than our raw input.
+
+Human body segmentation. The human body segmentation dataset proposed by [27] contains labeled meshes of diverse human identities and poses from various sources, split by 381/18 for training and testing. The meshes have very different scales which we normalize first. The mesh resolutions are also very different, with the number of vertices varying from 3k to 12k, yet our network works well on the these data without remeshing. The network is a U-Net like structure with three levels of domain resolutions.
+
+To compare with MDGCNN, we test on both the original meshes and the resampled meshes generated with its open sourced code. Testing results are reported in Table 2
+
+
+Figure 3. Results of human body segmentation. (i) the groundtruth labeling; (ii) the results of MDGCNN; (iii) our results.
+
+and visualized in Fig. 3. Note that the ground truth labeling for different samples are not always consistent, which hinders the possibility of achieving very high accuracy. For example, in Fig. 3 the third column GT mistakenly labels the shank to thigh. But our method correctly segments this part and has better coverage than MDGCNN. Still for some shapes which are dissimilar to the training data, e.g. the first column in Fig. 3 which has exceptional hair, both methods fail to segment the hair properly, although our method captures the face better.
+
+Human body registration by vertex classification. We test with the non-rigid human body registration task proposed by the FAUST dataset [2]. In one scenario, the registration is achieved by classifying each input mesh vertex of a body shape into its corresponding vertex on the template mesh, as done in previous works [28, 3, 11]. We use a simple network consisting of a sequence of convolutions in the same level-of-detail for PFCNN, and a two-level network for MDGCNN, following their original setting.
+
+The meshes in the FAUST dataset have the same topology with the template, which may be exploited unfairly to learn correspondences. Following MDGCNN, we remesh them to 5k vertices and different topologies. Using the nearest vertex as the correspondence between original meshes and the remeshed ones, we can get the ground truth vertex correspondence to the remeshed template, to supervise the registration task by classifying each vertex to 5k classes.
+
+We achieved $92.01\%$ accuracy on the remeshed data, as compared to $94.5\%$ accuracy on the original meshes. To fully compare with MDGCNN, we also test variations of their networks with more radial bins and angular directions and different normalizations (more discussions in Sec. 6.3). The accuracies within bounded geodesic errors are plotted in Fig. 4; our results have even better zero-error accuracy than their best with $4\times 16$ kernels and instance normalization. The visual results are shown in Fig. 5; we can see that our results have a smoother mapping to the template shape.
+
+
+Figure 4. Accuracy within given geodesic error for the non-rigid registration by vertex classification.
+
+
+Figure 5. Visual comparison of our method and MDGCNN on non-rigid registration. (i) the ground truth mapping; (ii) the best results of MDGCNN with 4 bins, 16 directions; (iii) our result.
+
+In Appendix E, we test with a more challenging scenario of non-rigid registration by regression on noisy real scans with diverse and high genus meshes, where our results are again considerably better and more robust than MDGCNN.
+
+To summarize, compared with the parallel transport based convolution by MDGCNN, using parallel frames that induce locally path-independent transport and the alignment to salient geometric features enables more efficient feature learning for our convolution; the difference is more obvious for finer scale tasks like segmentation and registration.
+
+# 6.2. Semantic scene segmentation
+
+In this section, we evaluate on a widely used indoor scene semantic segmentation task provided by the ScanNet dataset [7]. While indoor scenes generally have rigid geometry dominated by flat walls and floors, PFCNN is still shown to achieve good performances, improving over the state-of-the-art TangentConv [42] and TextureNet [16] that use tangential and local patch convolutions.
+
+We use a network with U-Net structure and three levels of domain resolutions. We follow [16] to prepare the training data by cropping small chunks from a whole scene and
+
+Table 3. Results on ScanNet segmentation task. mIoU is the class mean intersection over union. mA is the class mean accuracy. oA is the overall accuracy, which is significantly biased toward floors and walls that are dominant in scenes. Ours* uses a network with more convolution layers.
+
+ | [42] | [16] | Ours | Ours* |
| mIoU | 0.49 | 0.58 | 0.632 | 0.662 |
| mA(%) | 61.4 | 74.4 | 75.7 | 77.92 |
| oA(%) | 77.9 | 80.38 | 85.01 | 86.26 |
+
+
+
+
+(i)
+
+
+
+
+(ii)
+
+
+
+
+(iii)
+Figure 6. Example indoor scenes of ScanNet segmented by comparing methods. (i) is the ground truth segmentation; (ii) is the results of [16]; (iii) shows our results. Our results have more regular boundaries separating regions of larger consistency.
+
+training on these chunks which are randomly rotated around the upright direction for augmentation. For network input, we follow [42] to include the height above ground, normal vector, color and distance from the local tangent plane for each mesh vertex of a surface patch, rather than the localized normal vector as discussed in Sec. 5.2, while [16] uses additional high resolution texture images as input. For fair comparison, we have used a network with similar amount of trainable parameters to [16]; we also explore the effect of increasing the network size and report a better performance.
+
+The result statistics of comparing methods and ours on validation sets are shown in Table 3; our results have much better mean IoU and mean accuracy than theirs, which shows our network can better distinguish smaller objects than just the dominant segments like floors and walls. Fig. 6 show some visual results. The black regions in (i) are unlabeled data; our method predicts reasonable labels for these regions. The boundaries separating different objects in our results are cleaner than [16], like the boundary between windows and the wall in the first row and the door and wall in the third row; our segments are also more regular and consistent. See Appendix E for more detailed data and visual results on both validation and test sets.
+
+Considering that all three methods use tangent space convolutions, the results demonstrate that our locally translation equivariant convolution as the key difference is more effective in learning features.
+
+Table 4. Testing accuracy of different convolution methods on the non-rigid registration task by vertex classification. PCF means using the principle curvature directions as tangent plane axes. PCF as FF means using the principal directions as the 4-direction frame field for our PFCNN framework.
+
+ | PCF | PCF as FF | Ours |
| Accu.(%) | 83.29 | 89.80 | 92.01 |
+
+Table 5. Accuracy and runtime cost of different frame field symmetry orders $N$ , on the non-rigid registration task by vertex classification. The costs are measured on an RTX2080 GPU.
+
+| N | 1 | 2 | 4 | 6 | 8 |
| Accuracy(%) | 83.11 | 91.81 | 92.01 | 92.45 | 93.35 |
| Time(ms) | 56.81 | 87.57 | 139.10 | 183.91 | 227.72 |
| Memory(MB) | 148.67 | 156.15 | 205.81 | 371.45 | 409.18 |
+
+# 6.3. Ablation study
+
+In this section, we evaluate how the core constructions and hyper parameters of PFCNNs affect performance. We also study the impact of normalization on deformable domain tasks, as well as the behavior around singular vertices.
+
+Using frames and grouped features. We evaluate the performances of different configurations that add components of the PFCNN construction one-by-one onto a baseline model. The evaluations are done on the task of human body registration by vertex classification (Sec. 6.1).
+
+- Baseline model. When using principal curvature frames as coordinate frames of the tangent plane, we have a baseline model similar to a bunch of recent previous works [3, 30, 48, 42]. Using the network structure similar to PFCNN but without aligning the tangent planes by flat connections or feature map grouping by cover sheets, the trainable convolution kernel parameters are actually 16 times of PFCNN. However, the accuracy for this baseline configuration is $83.29\%$ (Table 4), much lower than PFCNN.
+- Principle curvature frames as 4-direction field. As a modification to the baseline model, we regard the principal curvature frames as a 4-direction frame field and apply the PFCNN network. The result accuracy is $89.8\%$ (Table 4), much higher than the baseline model, while using only 1/16 trainable parameters. The improvement demonstrates that even if the frame field is not globally optimized to be smooth or aligned to salient features, by using its encoded flat connections that enable local translation equivariance and its induced cover space feature maps that sample tangent directions, the feature learning is significantly improved.
+- Full PFCNN model. By additionally optimizing for a parallel frame field that aligns to geometric features, the PFCNN framework further improves to $92.01\%$ registration accuracy (Table 4).
+
+Frame symmetry order. As discussed in Sec. 4.3, when the rotational symmetry order $N$ of the frame field gets
+
+Table 6. Classification accuracy with different normalization.
+
+ | Ours | MDGCNN |
| Normalization | BN | IN | BN | IN |
| Accuracy(%) | 11 | 99.5 | 14.0 | 99.5 |
+
+larger, the frame field has more flexibility to achieve both smoothness and alignment to salient features. However, an increased $N$ also leads to larger computational cost, as the size of feature maps to compute increases too.
+
+We tested the different $N$ values again with the registration by vertex classification task, but modified the network structure to make sure each group of the feature map has the same size (i.e. 64), so that for different $N$ the amount of trainable convolution kernel parameters remains the same. The performances for different $N$ are shown in Table 5. We can see that the choice of $N = 4$ strikes a balance between accuracy and computational overhead: for $N < 4$ the accuracy is notably lower due to the limited field smoothness, and for $N > 4$ the computational cost is higher, with the extra runtime roughly in proportion to the number of axes sampled. We have used $N = 4$ for all the other experiments in this paper.
+
+Normalization. It is well known that normalization can speed up the training procedure and make it more stable. Here we study the impact of different normalizations on surface based CNNs more closely. For the registration by classification task, we test our method and MDGCNN with batch normalization (BN) and instance normalization (IN). Note that since the batch size is one, the difference between BN and IN is that, the channel wise statistics of moving mean and average are used in testing stage for BN but not IN. The result is shown in Fig. 4. We find that with IN both our method and MDGCNN achieve better performances. We repeat the experiments on the shape classification task (Sec 6.1); the result is shown in Table 6. From all these experiments, we can see that IN is better than BN for these tasks on deformable domains. We argue that this is because the diversely deformed shapes do not share common statistics of channel-wise mean and variance, akin to the observation in image style transfer [31, 10, 17] that these statistics encode styles rather than content.
+
+Frame field singularity. As discussed in Sec. 5.1, near singularities the translation equivariance is no longer path-independent, but our scheme degenerates to being similar to MDGCNN using parallel transport. To find the relationship between the singularity of vertices and prediction error, we compare the distribution of singular vertices and the error map of geodesic distance between predicted vertex and the ground truth correspondence vertex. The distribution is shown in Fig. 7; we can see that the singular vertices mainly distribute on the nose, fingers or toes but the error maps of different shapes do not reflect these similarity. We also compare the accuracy of singular vertices and all ver
+
+
+(i)
+Figure 7. (i) shows the singular vertices in red and (ii) shows the prediction error map. There is no clear correlation between the singular vertices and the erroneous predictions.
+
+tices in the registration by classification task. In particular, on the original dataset and the remeshed dataset, the registration accuracy of singular vertices versus that of all vertices are, $93.4\% / 94.5\%$ and $90.2\% / 92.2\%$ , indicating no clear correlation of singular vertices and prediction errors. Such robustness can be attributed to the degenerated convolution with path-dependent translation equivariance, the consistency of singularities across shapes (see Appendix B) and the capability of learned filters.
+
+# 7. Conclusion
+
+We have presented a surface mesh based PFCNN framework that closely mimics the standard image based CNNs and has local translation equivariance for convolutions. It is enabled by using parallel $N$ -direction frames that both encode flat connections on the surface to define path-independent translation, and sample tangent plane canonical axes to organize the convolutions by the $N$ -cover spaces. The PFCNNs are shown to be more effective at fine-scale feature learning than previous surface based CNNs. In the future, we would like to investigate how the PFCNN framework can handle surface generation tasks, where the frame field also needs to be generated rather than precomputed.
+
+# References
+
+[1] Matan Atzmon, Haggai Maron, and Yaron Lipman. Point convolutional neural networks by extension operators. ACM Trans. Graph., 37(4):71:1-71:12, July 2018. 2
+[2] Federica Bogo, Javier Romero, Matthew Loper, and Michael J. Black. FAUST: Dataset and evaluation for 3D mesh registration. In CVPR, June 2014. 6
+[3] Davide Boscaini, Jonathan Masci, Emanuele Rodolà, and Michael Bronstein. Learning shape correspondence with anisotropic convolutional neural networks. In NIPS, pages 3189-3197. 2016. 1, 2, 4, 6, 7
+
+[4] M. M. Bronstein, J. Bruna, Y. LeCun, A. Szlam, and P. Vandergheynst. Geometric deep learning: Going beyond euclidean data. IEEE Signal Processing Magazine, 34(4):18-42, July 2017. 1, 3
+[5] Max Budninskiy, Gloria Yin, Leman Feng, Yiying Tong, and Mathieu Desbrun. Parallel transport unfolding: A connection-based manifold learning approach. SIAM J. Appl. Algebra Geom., 3:266-291, 2018. 4
+[6] Keenan Crane, Mathieu Desbrun, and Peter Schröder. Trivial connections on discrete surfaces. Computer Graphics Forum, 29(5):1525-1533, 2010. 3
+[7] Angela Dai, Angel X. Chang, Manolis Savva, Maciej Halber, Thomas Funkhouser, and Matthias Nießner. Scannet: Richly-annotated 3D reconstructions of indoor scenes. In CVPR, 2017. 6
+[8] Olga Diamanti, Amir Vaxman, Daniele Panozzo, and Olga Sorkine-Hornung. Designing n-polyvector fields with complex polynomials. Computer Graphics Forum, 33(5):1-11, Aug. 2014. 11
+[9] Boris A Dubrovin, Anatolij Timofeevich Fomenko, and Sergei Novikov. Modern geometry—methods and applications: Part II: The geometry and topology of manifolds. 1, 4
+[10] Vincent Dumoulin, Jonathon Shlens, and Manjunath Kudlur. A learned representation for artistic style. *ArXiv*, abs/1610.07629, 2016. 8
+[11] Matthias Fey, Jan Eric Lenssen, Frank Weichert, and Heinrich Müller. SplineCNN: Fast geometric deep learning with continuous B-spline kernels. In CVPR, 2018. 2, 6
+[12] Michael Garland and Paul S. Heckbert. Surface simplification using quadric error metrics. In SIGGRAPH, pages 209-216, 1997. 5
+[13] Ian Goodfellow, Yoshua Bengio, and Aaron Courville. Deep Learning. MIT Press, 2016. http://www.deeplearningbook.org.1
+[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. 4
+[15] Hugues Hoppe. Progressive meshes. In SIGGRAPH, pages 99-108, 1996. 5
+[16] Jingwei Huang, Haotian Zhang, Li Yi, Thomas Funkhouser, Matthias Niessner, and Leonidas J. Guibas. Texturenet: Consistent local parametrizations for learning from high-resolution signals on meshes. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2, 5, 6, 7, 13, 15
+[17] Xun Huang and Serge Belongie. Arbitrary style transfer in real-time with adaptive instance normalization. In Proceedings of the IEEE International Conference on Computer Vision, pages 1501-1510, 2017. 8
+[18] Felix Kälberer, Matthias Nieser, and Konrad Polthier. Quadcover - surface parameterization using branched coverings. Computer Graphics Forum, 26(3):375-384, 2007. 4
+[19] Vladimir Kim, Yaron Lipman, and Thomas Funkhouser. Blended intrinsic maps. ACM Trans. Graph. (SIGGRAPH), 30(4), July 2011. 14
+[20] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2014. 12
+
+[21] Felix Knöppel, Keenan Crane, Ulrich Pinkall, and Peter Schröder. Globally optimal direction fields. ACM Trans. Graph. (SIGGRAPH), 32(4):59:1-59:10, 2013. 11
+[22] Y. LeCun, B. Boser, J. S. Denker, D. Henderson, R. E. Howard, W. Hubbard, and L. D. Jackel. Backpropagation applied to handwritten zip code recognition. Neural Computation, 1(4):541-551, 1989. 3
+[23] Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278-2324, Nov 1998. 1, 3
+[24] John M. Lee. Connections. In Riemannian Manifolds, pages 47-64. Springer New York, 1997. 3
+[25] Shiwei Li, Zixin Luo, Mingmin Zhen, Yao Yao, Tianwei Shen, Tian Fang, and Long Quan. Cross-atlas convolution for parameterization invariant learning on textured mesh surface. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6143-6152, 2019. 2
+[26] Z. Lian, J. Zhang, S. Choi, H. ElNaghy, J. El-Sana, T. Furuya, A. Giachetti, R. A. Guler, L. Lai, C. Li, H. Li, F. A. Limberger, R. Martin, R. U. Nakanishi, A. P. Neto, L. G. Nonato, R. Ohbuchi, K. Pevzner, D. Pickup, P. Rosin, A. Sharf, L. Sun, X. Sun, S. Tari, G. Unal, and R. C. Wilson. Non-rigid 3D Shape Retrieval. In Eurographics Workshop on 3D Object Retrieval. The Eurographics Association, 2015. 5
+[27] Haggai Maron, Meirav Galun, Noam Aigerman, Miri Trope, Nadav Dym, Ersin Yumer, Vladimir G. Kim, and Yaron Lipman. Convolutional neural networks on surfaces via seamless toric covers. ACM Trans. Graph. (SIGGRAPH), 36(4):71:1-71:10, July 2017. 2, 5
+[28] J. Masci, D. Boscaini, M. M. Bronstein, and P. Vandergheynst. Geodesic convolutional neural networks on riemannian manifolds. In ICCV, pages 832-840, Dec 2015. 1, 2, 4, 6
+[29] Daniel Maturana and Sebastian Scherer. Voxnet: A 3D convolutional neural network for real-time object recognition. In 2015 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 922-928. IEEE, 2015. 2
+[30] Federico Monti, Davide Boscaini, Jonathan Masci, Emanuele Rodola, Jan Svoboda, and Michael M. Bronstein. Geometric deep learning on graphs and manifolds using mixture model cnns. In CVPR, 2017. 1, 2, 4, 7
+[31] Ethan Perez, Florian Strub, Harm De Vries, Vincent Dumoulin, and Aaron Courville. Film: Visual reasoning with a general conditioning layer. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018. 8
+[32] Adrien Poulenard and Maks Ovsjanikov. Multi-directional geodesic neural networks via equivariant convolution. ACM Trans. Graph. (SIGGRAPH ASIA), 37(6):236:1-236:14, Dec. 2018. 1, 2, 3, 4, 5, 14
+[33] Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. Pointnet: Deep learning on point sets for 3D classification and segmentation. In CVPR, 2017. 2
+[34] Charles R Qi, Hao Su, Matthias Nießner, Angela Dai, Mengyuan Yan, and Leonidas J Guibas. Volumetric and multi-view cnns for object classification on 3D data. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 5648-5656, 2016. 2
+
+[35] 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 NIPS, 2017. 2, 5
+[36] Nicolas Ray, Bruno Vallet, Laurent Alonso, and Bruno Lévy. Geometry Aware Direction Field Processing. ACM Transactions on Graphics, 29(1):Article 1, Dec. 2009. 3
+[37] Gernot Riegler, Ali Osman Ulusoy, and Andreas Geiger. Octnet: Learning deep 3D representations at high resolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3577-3586, 2017. 2
+[38] 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
+[39] Ayan Sinha, Jing Bai, and Karthik Ramani. Deep learning 3D shape surfaces using geometry images. In ECCV, pages 223-240, 2016. 2
+[40] Hang Su, Varun Jampani, Deqing Sun, Subhransu Maji, Evangelos Kalogerakis, Ming-Hsuan Yang, and Jan Kautz. Splatnet: Sparse lattice networks for point cloud processing. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2530-2539, 2018. 2
+[41] Hang Su, Subhransu Maji, Evangelos Kalogerakis, and Erik G. Learned-Miller. Multi-view convolutional neural networks for 3D shape recognition. In ICCV, 2015. 2
+[42] Maxim Tatarchenko, Jaesik Park, Vladlen Koltun, and Qian-Yi Zhou. Tangent convolutions for dense prediction in 3D. In CVPR, 2018. 2, 6, 7, 15
+[43] 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. Proceedings of the IEEE International Conference on Computer Vision, 2019. 2
+[44] Federico Tombari, Samuele Salti, and Luigi Di Stefano. Unique signatures of histograms for local surface description. In European conference on computer vision, pages 356-369. Springer, 2010. 5
+[45] Amir Vaxman, Marcel Campen, Olga Diamanti, Daniele Panozzo, David Bommes, Klaus Hildebrandt, and Mirela Ben-Chen. Directional Field Synthesis, Design, and Processing. Computer Graphics Forum, 2016. 1, 3, 11
+[46] 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 (TOG), 36(4):72, 2017. 2
+[47] Zhirong Wu, Shuran Song, Aditya Khosla, Fisher Yu, Linguang Zhang, Xiaou Tang, and Jianxiong Xiao. 3D shapenets: A deep representation for volumetric shapes. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1912-1920, 2015. 2
+[48] H. Xu, M. Dong, and Z. Zhong. Directionally convolutional networks for 3D shape segmentation. In ICCV, pages 2717-2726, Oct 2017. 2, 7
\ No newline at end of file
diff --git a/pfcnnconvolutionalneuralnetworkson3dsurfacesusingparallelframes/images.zip b/pfcnnconvolutionalneuralnetworkson3dsurfacesusingparallelframes/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..139fde44f44973ae267571e10af2fff581c58746
--- /dev/null
+++ b/pfcnnconvolutionalneuralnetworkson3dsurfacesusingparallelframes/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b3c19736a52549345318bdb84b91537fe8b8e1fda16cdd2d6d20ffdf17b7a13e
+size 308340
diff --git a/pfcnnconvolutionalneuralnetworkson3dsurfacesusingparallelframes/layout.json b/pfcnnconvolutionalneuralnetworkson3dsurfacesusingparallelframes/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..3c37cc2360740cdc6f5827adbf3f1e4403aa4e38
--- /dev/null
+++ b/pfcnnconvolutionalneuralnetworkson3dsurfacesusingparallelframes/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e686c4b6c1e7038cd3095050594120a978a102039d1a14f1859c8657d2b3367c
+size 461521
diff --git a/pfnetpointfractalnetworkfor3dpointcloudcompletion/cee8da11-2b51-42f1-9e53-eb4384aa3457_content_list.json b/pfnetpointfractalnetworkfor3dpointcloudcompletion/cee8da11-2b51-42f1-9e53-eb4384aa3457_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..554d9dfbc7c5c397ecdb6dab67093632fb4ca0bb
--- /dev/null
+++ b/pfnetpointfractalnetworkfor3dpointcloudcompletion/cee8da11-2b51-42f1-9e53-eb4384aa3457_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b99f3f250f3c6fd50f8dab94d714c463a2ed09e947d3aee66e0d2e17cbf9688e
+size 68869
diff --git a/pfnetpointfractalnetworkfor3dpointcloudcompletion/cee8da11-2b51-42f1-9e53-eb4384aa3457_model.json b/pfnetpointfractalnetworkfor3dpointcloudcompletion/cee8da11-2b51-42f1-9e53-eb4384aa3457_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..aed47a6a398ece49ec3f7f2d3d1f692558cd31c6
--- /dev/null
+++ b/pfnetpointfractalnetworkfor3dpointcloudcompletion/cee8da11-2b51-42f1-9e53-eb4384aa3457_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7c4b42ddc7006bc7ea100a7573248310563ef71a431305cb2d6cc62a41b1320f
+size 83373
diff --git a/pfnetpointfractalnetworkfor3dpointcloudcompletion/cee8da11-2b51-42f1-9e53-eb4384aa3457_origin.pdf b/pfnetpointfractalnetworkfor3dpointcloudcompletion/cee8da11-2b51-42f1-9e53-eb4384aa3457_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..f4f061c946ae29212312821228c879d9fbfe4120
--- /dev/null
+++ b/pfnetpointfractalnetworkfor3dpointcloudcompletion/cee8da11-2b51-42f1-9e53-eb4384aa3457_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:19862b1d703731f8e8de9e273aed5e8606bb6253dc882b173064d86031bbb6be
+size 766630
diff --git a/pfnetpointfractalnetworkfor3dpointcloudcompletion/full.md b/pfnetpointfractalnetworkfor3dpointcloudcompletion/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..df77035eb133a15a01bbb593bdefa10239336ba6
--- /dev/null
+++ b/pfnetpointfractalnetworkfor3dpointcloudcompletion/full.md
@@ -0,0 +1,264 @@
+# PF-Net: Point Fractal Network for 3D Point Cloud Completion
+
+Zitian Huang $^{1}$ , Yikuan Yu $^{1,2}$ , Jiawen Xu $^{1}$ , Feng Ni $^{2}$ , Xinyi Le $^{1*}$
+
+$^{1}$ Shanghai Jiao Tong University $^{2}$ SenseTime
+
+lexinyi@sjtu.edu.cn
+
+# Abstract
+
+In this paper, we propose a Point Fractal Network (PF-Net), a novel learning-based approach for precise and high-fidelity point cloud completion. Unlike existing point cloud completion networks, which generate the overall shape of the point cloud from the incomplete point cloud and always change existing points and encounter noise and geometrical loss, PF-Net preserves the spatial arrangements of the incomplete point cloud and can figure out the detailed geometrical structure of the missing region(s) in the prediction. To succeed at this task, PF-Net estimates the missing point cloud hierarchically by utilizing a feature-points-based multi-scale generating network. Further, we add up multi-stage completion loss and adversarial loss to generate more realistic missing region(s). The adversarial loss can better tackle multiple modes in the prediction. Our experiments demonstrate the effectiveness of our method for several challenging point cloud completion tasks.
+
+# 1. Introduction
+
+3D vision has become one of the current research topics recently. Among various types of 3D data description, point cloud has been widely used in 3D data processing due to its small data size but more delicate presenting ability [1-3]. Real-world point cloud data is often captured by using laser scanners, stereo cameras, or low-cost RGB-D scanners. However, due to occlusion, light reflection, transparency of surface material, and limitations of sensor resolution and viewing angle, it will cause a loss of geometric and semantic information, resulting in incomplete point clouds. Therefore, it is an essential task to repair incomplete point clouds for further applications. Since the 3D point cloud is unstructured and unordered, the majority of the deep-learning-based methods for dealing with 3D data transform point cloud to collections of images(e.g., views)
+
+
+Figure 1. Our PF-Net takes the incomplete point cloud as input and directly predicts the missing point cloud. The display of multiscale predictions (indicated by blue, red and yellow) are made by layers from different depths of Point Pyramid Decoder (PPD). The low resolution prediction serves as the center point to generate high resolution prediction, leading to a coarse-to-fine prediction.
+
+or regularly voxel-based representations of 3D data. However, multi-view and voxel-based representation [4-9] leads to unnecessarily voluminous and limits the output resolution of voxels [10, 11].
+
+Thanks to the advent of PointNet [10], learning-based architectures are capable of directly operating on point cloud data. L-GAN [12] introduces the first deep-learning-based network for point cloud completion by utilizing an Encoder-Decoder framework. PCN [11] combines the advantages of L-GAN [12] and FoldingNet [13] which is specialized on repairing incomplete point clouds. Recently, RL-GANNet [14] proposes a reinforcement learning agent controlled GAN for reducing prediction time of point cloud completion.
+
+Previous works for completion take incomplete point cloud as input and aim to output the overall complete models. They pay more attention to learning the general character of a genus/category but not the local details of a specific object. Therefore, they may change the position of known points, and encounter genus-wise distortions [13], which causes noise and detailed geometrical loss. For example, in Fig. 6(3), the reconstruction of a chair in previ
+
+ous works miss the existing cross-bar (under the chair), and fail to generate the hollow back. The reason may be that Auto-Encoders tend to average multiple "chairs" in the prediction. Noticing that most chairs in the training set have fully filled back without cross-bar, as is shown in Fig. 1, the previous networks thus are more likely to generate normal chairs with full filled back other than "special" chairs with hollow back and cross-bars in Fig. 6(3). In this work, we present the Point Fractal Network (PF-Net) for repairing the incomplete point cloud. Different from the existing AutoEncoder architectures, the main features of PF-Net can be summarized as follows:
+
+(1) To preserve the spatial arrangements of the original part, we take the partial point cloud as input and only output the missing part of the point cloud instead of the whole object. This architecture has two benefits: Firstly, it retains the geometric features of the original point cloud after repairing. Secondly, it helps the network focus on perceiving the location and structure of missing parts. The main difficulty of such kind of prediction is that partial known points and points to be inferred are merely related in semantic level and completely different in spatial arrangements.
+
+(2) For better feature extraction of the specific partial point cloud, we first propose a novel Multi-Resolution Encoder (MRE) to extract multi-layer features from the partial point cloud and its low resolution feature points by utilizing a new feature extractor Combined Multi-Layer Perception (CMLP). These multi-scale features contain both local and global features, also low-level and high-level features, enhancing the ability of the network to extract semantic and geometric information.
+
+(3) To tackle the genus-wise distortions problem [13] and generate fine-grained missing region(s), we design a Point Pyramid Decoder (PPD) to generate the missing point cloud hierarchically. PPD is a multi-scale generating network based on feature points. PPD will predict primary, secondary, and detailed points from layers of different depth. Primary points and secondary points will try to match their corresponding feature points and serve as the skeleton center points to propagate the overall geometry information to the final detailed points. Fig. 1 visualizes the process of this hierarchical prediction, which shows excellent performance on generating a high-quality missing region point cloud and restoring the original detailed shape.
+
+In addition, we propose a multi-stage completion loss to guide the prediction of our method. Multi-stage completion loss helps the network pay more attention to the feature points. To further alleviate the distortions problem caused by Auto-Encoder framework, inspired by a renowned 2D context encoder [15], we reduce this burden in the loss function by jointly train our PF-Net to minimize both multi-stage completion loss and adversarial loss. Adversarial loss optimizes our network that enable it to select a specific point
+
+cloud from multiple modes.
+
+# 2. Related Work
+
+# 2.1. Shape Completion and Deep Learning
+
+Currently, 3D shape completion methods are mainly based on the 3D voxel grid and point cloud. For voxel grid-based algorithm, architectures such as 3D-RecGAN [16], 3D-Encoder-Predictor Networks (3D-EPN) [17], and hybrid framework of 3D-ED-GAN and LRCN [18] have been developed to realize the goal of repairing incomplete input data. However, voxel-based methods are restricted by its resolution because the computation cost increases dramatically with resolution.
+
+PointNet [10] solves the problem of processing unordered point sets. Thus, algorithms which can directly conduct shape completion task on unordered point have been significantly developed [19-23]. L-GAN [12] introduces the first deep generative model for the point cloud. Though L-GAN [12] is capable of conducting shape completion tasks to some extent, its architecture is not primarily built to do shape completion task, and thus the performance is not considered ideal. FoldingNet [13] introduces a new decoding operation named Folding, serving as a 2D-to-3D mapping. Later, Point Completion Network (PCN) [11] proposes the first learning-based architecture focusing on shape completion task. PCN [11] applies the Folding operation [13] to approximate a relatively smooth surface and conduct shape completion. Recently, a reinforcement learning agent controlled GAN based network (RL-GAN-Net) [14] is invented for real-time point cloud completion. An RL agent is used in [14] to avoid complex optimization and accelerate prediction process, but it does not focus on enhancing prediction accuracy of the points. 3D point capsule networks [24, 25] surpasses the performance of other methods and becomes the state-of-the-art Auto-Encoder processing point cloud, especially in the domain of point cloud reconstruction.
+
+# 2.2. Context Encoder and Feature Pyramid Network
+
+Context encoder [15] processes images with missing region and trains a convolutional neural network to regress the missing pixel values. This architecture is formed by an encoder capturing the unspoiled content of the image and a decoder to predict the missing image content. In addition, it jointly train reconstruction and adversarial loss for semantic inpainting.
+
+Feature Pyramid Network (FPN) [26] is an efficient method to solve the problem of multi-scale feature extraction. Thanks to the architecture of FPN [26], the final feature map is the fusion of both semantically-rich and locally-rich features [27-31]. It enhances the geometric and seman
+
+
+Figure 2. The architecture of PF-Net. The input of PF-Net is incomplete point cloud and it predicts the missing point cloud by utilizing a multi-scale generating network PPD. IFPS (Section 3.1) samples the input (indicated by yellow) into different scales (indicated by red and blue). Three scales of prediction are indicated by blue, red and yellow (final prediction) in the figure. CMLP (Section 3.2) is our feature extractor. CD (Chamfer Distance in Section 3.4) is applied to evaluate the difference between the prediction and the ground truth.
+
+tic information contained in the final feature map. FPN [26] partially inspires the decoder in our network.
+
+# 3. Method
+
+In this section, we will introduce our PF-Net, which predicts the missing region of the point cloud from its incomplete known configuration. Fig. 2 shows the complete architecture of our PF-Net. The overall architecture of our PF-Net is composed of three fundamental building blocks, named Multi-Resolution Encoder (MRE), Point Pyramid Decoder (PPD), and Discriminator Network.
+
+# 3.1. Feature Points Sampling
+
+In a point cloud, we can only take a small number of points to characterize the shape, which are defined as feature points. In other words, feature points map the skeleton of a point cloud [32]. To extract feature points from a point cloud, we use iterative farthest point sampling (IFPS), which is a sampling strategy applied in Pointnet++ [33] to get a set of skeleton points. IFPS can represent the distribution of the entire point sets better compared to random sampling, and it is more efficient than CNNs [33]. In Fig. 3, we visualize the effect of IFPS. Even if we only extract $6.25\%$ of the points, these points can still describe the configuration of the lamp and the main geometry of the lamp has not been destroyed.
+
+# 3.2. Multi-Resolution Encoder
+
+CMLP We first introduce the feature extractor of our MRE, named as Combined Multi-Layer Perception (CMLP). In most of the previous work, the feature extractor of their encoder is Multi-Layer Perception (MLP). We refer to this as
+
+
+Figure 3. Results of IFPS in different resolutions. The blue lamp has 2048 points. Three purple lamps are sampled from the blue lamp with 512, 256, and 128 points, respectively.
+
+PointNet-MLP, shown in Fig. 4(a). This method maps each point into different dimensions and extracts the maximum value from the final $K$ dimensions to form a global latent vector. However, it does not make good use of low-level and mid-level features that contain rich local information. Also, L-GAN [12] and PointNet [10] show that the performance of this feature extractor is strongly affected by the dimension of the Maxpooling layer, i.e., $K$ . In CMLP, we also use MLP to encode each point into multiple dimensions [64 - 128 - 256 - 512 - 1024]. Different from MLP, we maxpool the output of the last four layers of MLP to obtain multiple dimensional feature vector $\mathbf{f}_i$ , where size $\mathbf{f}_i \coloneqq 128, 256, 512, 1024$ , for $i = 1, \dots, 4$ . All the $\mathbf{f}_i$ are then concatenated, forming the combined latent vector $\mathbf{F}$ . Size $\mathbf{F} \coloneqq 1920$ , and it contains both low-level and high-level feature information.
+
+The input to our Multi-Resolution Encoder is an $N \times 3$ unordered point cloud. We downsample the input point cloud to obtain two more scales in different resolutions (Size: $\frac{N}{k} \times 3$ and $\frac{N}{k^2} \times 3$ ) by using IFPS. We use this data-dependent way to get the feature points of the input point sets, helping the encoder focus on those more representative
+
+
+Figure 4. Comparison of two different feature extractors of 3D point encoders. PointNet-MLP only uses the final single layer to extract the latent vector. Our CMLP maps the combined latent vector by concatenating multiple dimensional latent vectors derived from the last four layers. It can make better use of the high-level and low-level features.
+
+tive points. Three independent CMLPs will be used to map those three scales into three individual combined latent vector $\mathbf{F}_i$ , for $i = 1,2,3$ . Each vector represents the feature extracted from a certain resolution of the point cloud. All the $\mathbf{F}_i$ are then concatenated, forming a latent feature map $\mathbf{M}$ in the size of $1920\times 3$ (i.e., three vectors each in the size of 1920). We then use MLP [3 - 1] to integrate the latent feature map into a final feature vector $\mathbf{V}$ . Size of $\mathbf{V} = 1920$ .
+
+# 3.3. Point Pyramid Decoder
+
+The decoder takes final feature vector $\mathbf{V}$ as input and aims to output $M \times 3$ point cloud, which represents the shape of the missing region. The baseline of our PPD is fully-connected decoder [12]. A fully-connected decoder is good at predicting the global geometry of point cloud. Nevertheless, it always causes loss of local geometric information since it only uses the final layer to predict the shape. Previous works combine fully-connected decoder with a folding-based decoder to reinforce the local geometry of the predicted shape. However, as shown in [13], a folding-based decoder is not good at handling genus-wise distortions and retaining the original detailed geometry if the original surface is relatively complicated. To overcome the limitation, we design our PPD as a hierarchical structure based on feature points, which is inspired by FPN [26]. The details of the PPD are shown in Fig. 5. We first obtain three feature layers $\mathbf{FC}_i$ (size $\mathbf{FC}_i := 1024$ , 512, 256 neurons, for $i = 1, 2, 3$ ) by passing $\mathbf{V}$ through fully-connected layers. Each feature layer is responsible for predicting point cloud in different resolutions. The primary center points $Y_{\mathrm{primary}}$ will be predicted from the deepest $\mathbf{FC}_3$ , having the size of $M_1 \times 3$ . Then, $\mathbf{FC}_2$ will be used to predict the relative coordinates of secondary center points $Y_{\mathrm{secondary}}$ . Each point in $Y_{\mathrm{primary}}$ will serve as center point to generate $\frac{M_2}{M_1}$ points of $Y_{\mathrm{primary}}$ . We implement this process using "Expand" and "Add" operations. Thus, size of $Y_{\mathrm{secondary}}$ is $M_2 \times 3$ . Detailed points $Y_{\mathrm{detail}}$ is the final prediction of PPD. The generation of $Y_{\mathrm{detail}}$ is similar to $Y_{\mathrm{secondary}}$ shown in Fig. 5. Size $Y_{\mathrm{detail}}: M \times 3$ . Meanwhile, $Y_{\mathrm{detail}}$ will try to match the feature points sampled from G.T. Thanks to this multiscale generating architecture, high-level features will affect
+
+the expression of low-level features, and low resolution feature points can propagate the local geometry information to the high resolution prediction. Our experiments show that the prediction of PPD has fewer distortions and can retain the detailed geometry of the original missing point cloud.
+
+
+Figure 5. Details of Point Pyramid Decoder. PPD gives outputs of three joint layers in ascending scales, which are similar both in semantic and geometric level. Intuitively, the architecture of PPD reflects the concept of "Fractal geometry" in mathematics.
+
+# 3.4. Loss Function
+
+The loss function of our PF-Net consists of two parts: multi-stage completion loss and adversarial loss. Completion loss measures the difference between the ground truth of missing point cloud $Y_{\mathrm{gt}}$ and the predicted point cloud. Adversarial loss tries to make the prediction seem more real by optimizing the MRE and PPD. The size of $Y_{\mathrm{gt}}$ is $M \times 3$ which is the same as $Y_{\mathrm{detail}}$ .
+
+Multi-stage Completion Loss Fan et al. [34] has proposed two permutation-invariant metrics to compare unordered point cloud which are Chamfer Distance (CD) and Earth Mover's Distance (EMD). In this work, we choose Chamfer Distance as our completion loss since it is differentiable and more efficient to compute compared to EMD.
+
+$$
+d _ {\mathrm {C D}} \left(S _ {1}, S _ {2}\right) = \frac {1}{S _ {1}} \sum_ {x \in S _ {1}} \min _ {y \in S _ {2}} \| x - y \| _ {2} ^ {2} + \frac {1}{S _ {2}} \sum_ {y \in S _ {2}} \min _ {x \in S _ {1}} \| y - x \| _ {2} ^ {2} \tag {1}
+$$
+
+CD in (1) measures the average nearest squared distance between predicted point cloud $S_{1}$ and the ground truth point cloud $S_{2}$ . Since the Point Pyramid Decoder will predict three point clouds in different resolution, our multi-stage completion loss consists of three terms in (2), $d_{\mathrm{CD_1}}$ , $d_{\mathrm{CD_2}}$ , and $d_{\mathrm{CD_3}}$ , weighted by hyperparameter $\alpha$ . The first term calculates the squared distance between detailed points $Y_{\mathrm{detail}}$ and the ground truth of missing region $Y_{\mathrm{gt}}$ . The second and third term calculate the squared distance between primary center points $Y_{\mathrm{primary}}$ , secondary center points $Y_{\mathrm{secondary}}$ and the subsampled ground truth $Y_{\mathrm{gt}}^{\prime}$ , $Y_{\mathrm{gt}}^{\prime \prime}$ respectively. The subsampled ground truth $Y_{\mathrm{gt}}^{\prime}$ and $Y_{\mathrm{gt}}^{\prime \prime}$ have the same size as $Y_{\mathrm{primary}}$ ( $M_{1} \times 3$ ) and $Y_{\mathrm{secondary}}$ ( $M_{2} \times 3$ ),
+
+respectively. We obtain $Y_{\mathrm{gt}}^{\prime}$ and $Y_{\mathrm{gt}}^{\prime \prime}$ from $Y_{\mathrm{gt}}$ by applying IFPS. They are the feature points of the missing region. The design of the multi-stage completion loss increases the proportion of feature points, leading to better focus on feature points.
+
+$$
+\begin{array}{l} L _ {\mathrm {c o m}} = d _ {\mathrm {C D 1}} \left(Y _ {\text {d e t a i l}}, Y _ {\mathrm {g t}}\right) + \alpha d _ {\mathrm {C D 2}} \left(Y _ {\text {p r i m a r y}}, Y _ {\mathrm {g t}} ^ {\prime}\right) \\ + 2 \alpha d _ {C D 3} \left(Y _ {\text {s e c o n d a r y}}, Y _ {\mathrm {g t}} ^ {\prime \prime}\right) \tag {2} \\ \end{array}
+$$
+
+Adversarial Loss The adversarial loss in this work is inspired by Generative Adversarial Network (GAN) [35]. We first define $\mathrm{F}() \coloneqq \mathrm{PPD}(\mathrm{MRE}())$ , where MRE is Multi-Resolution Encoder and PPD is Point Pyramid Decoder. $F: \mathcal{X} \to \mathcal{Y}'$ will map the partial input $\mathcal{X}$ into predicted missing region $\mathcal{Y}'$ . Then Discriminator $(\mathrm{D}())$ tries to distinguish the predicted missing region $\mathcal{Y}'$ and the real missing region $\mathcal{Y}$ . The discriminator is a classification network with similar structure as CMLP. The specific structure has serial MLP layers $[64 - 64 - 128 - 256]$ and we maxpool the response from the last three layers to obtain feature vector $f_{i}$ , where size $f_{i} \coloneqq 64, 128, 256$ , for $i = 1, 2, 3$ . Concatenate them into a latent vector F. The size of F is 448. F will be passed through fully-connected layers [256,128,16,1] followed by Sigmoid-classifier to obtain predicted value. We now define the adversarial loss:
+
+$$
+L _ {\mathrm {a d v}} = \sum_ {1 \leq i \leq S} \log (D (y _ {i})) + \sum_ {1 \leq j \leq S} \log (1 - D (F (x _ {i}))) \tag {3}
+$$
+
+where $x_{i} \in \mathcal{X}, y_{i} \in \mathcal{Y}, i = 1, \dots, S$ . $S$ is the dataset size of $\mathcal{X}, \mathcal{Y}$ . Both $F$ and $D$ are optimized jointly by using alternating Adam when training.
+
+Joint Loss The joint loss of our network is defined as:
+
+$$
+L = \lambda_ {\mathrm {c o m}} L _ {\mathrm {c o m}} + \lambda_ {\mathrm {a d v}} L _ {\mathrm {a d v}} \tag {4}
+$$
+
+$\lambda_{com}$ and $\lambda_{adv}$ are the weight of completion loss and adversarial loss which satisfy the followed condition: $\lambda_{com} + \lambda_{adv} = 1$
+
+# 4. Experiments
+
+# 4.1. Data Generation and Implementation detail
+
+To train our model, we use 13 categories of different objects in the benchmark dataset Shapenet-Part [36]. The total number of shapes sums to 14473 (11705 for training and 2768 for testing). All input point cloud data is centered at the origin, and their coordinates are normalized to $[-1,1]$ . The ground-truth point cloud data is created by sampling 2048 points uniformly on each shape. The incomplete point cloud data is generated by randomly selecting a viewpoint as a center in multiple viewpoints and removing points within a certain radius from complete data. We control the radius to get a different amount of missing points. When comparing our method against other methods, we set the incomplete point cloud missing $25\%$ of the original data for train and test.
+
+We implement our network on PyTorch. All the three building blocks are trained by using ADAM optimizer alternately with an initial learning rate of 0.0001 and a batch size of 36. We employ batch normalization (BN) and RELU activation units at MRE and Discriminator but only use RELU activation units (except for the last layer) at PPD. In MRE, we set $k = 2$ . In PPD, we set $M_1 = 64$ , $M_2 = 128$ based on the numbers of points of each shape. And we only change $M$ to control the size of the final prediction.
+
+# 4.2. Point Cloud Completion Results
+
+In this subsection, we compare our method against several representative baselines that operate directly on a 3D point cloud, including L-GAN [37], PCN [11], 3D point-Capsule Networks [25]. Since all the existing methods are trained in different datasets, we train and test them in the same dataset in order to evaluate them quantitatively. It should be noted that all the methods are trained in the same way that label information will not be provided. To evaluate the methods mentioned above, we use the evaluation metric by [37, 38]. It contains two indexes: Pred $\rightarrow$ GT (prediction to ground truth) error and GT $\rightarrow$ Pred (ground truth to prediction) error. Pred $\rightarrow$ GT error computes the average squared distance from each point in prediction to its closest in ground truth. It measures how difference the prediction is from the ground truth. GT $\rightarrow$ Pred error computes the average square distance from each point in the ground truth to its closest in prediction. which indicates the degree of the ground truth surface being covered by the shape of the prediction. We first compute Pred $\rightarrow$ GT error and GT $\rightarrow$ Pred error on the whole complete point cloud by concatenating the prediction of our network and the input partial point cloud.
+
+Table 1 shows the result. Our method outperforms other methods in all categories on both Pred $\rightarrow$ GT and GT $\rightarrow$ Pred error. Note that the error of the overall complete point cloud comes from two parts: the prediction error of the missing region and the change of the original partial shape. Since our method takes the partial shape as input and only output the missing region, it does not change the original partial shape. To make sure that our evaluation is reasonable, we also compute Pred $\rightarrow$ GT error and GT $\rightarrow$ Pred error on the missing region. Table 2 shows the results. Our Method outperforms existing methods in 12 out of 13 categories on both Pred $\rightarrow$ GT error and GT $\rightarrow$ Pred error. Furthermore, in terms of the mean of all 13 categories, our method has considerable advantages on both metrics. The result in Table 1 and Table 2 indicate that our method can generate more high-precision point cloud with less distortions both in the overall point cloud and the missing region point cloud.
+
+In Fig. 6 we visualize the output point cloud generated by the methods mentioned above. All of them come from
+
+| Category | LGAN-AE [12] | PCN [11] | 3D-Capsule [25] | PF-Net(vanilla) | PF-Net |
| Airplane | 0.856 / 0.722 | 0.800 / 0.800 | 0.826 / 0.881 | 0.284 / 0.231 | 0.263 / 0.238 |
| Bag | 3.102 / 2.994 | 2.954 / 3.063 | 3.228 / 2.722 | 0.927 / 0.934 | 0.926 / 0.772 |
| Cap | 3.530 / 2.823 | 3.466 / 2.674 | 3.439 / 2.844 | 1.308 / 1.027 | 1.226 / 1.169 |
| Car | 2.232 / 1.687 | 2.324 / 1.738 | 2.503 / 1.913 | 0.616 / 0.431 | 0.599 / 0.424 |
| Chair | 1.541 / 1.473 | 1.592 / 1.538 | 1.678 / 1.563 | 0.472 / 0.420 | 0.487 / 0.427 |
| Guitar | 0.394 / 0.354 | 0.367 / 0.406 | 0.298 / 0.461 | 0.097 / 0.094 | 0.108 / 0.091 |
| Lamp | 3.181 / 1.918 | 2.757 / 2.003 | 3.271 / 1.912 | 1.041 / 0.616 | 1.037 / 0.640 |
| Laptop | 1.206 / 1.030 | 1.191 / 1.155 | 1.276 / 1.254 | 0.309 / 0.244 | 0.301 / 0.245 |
| Motorbike | 1.828 / 1.455 | 1.699 / 1.459 | 1.591 / 1.664 | 0.524 / 0.414 | 0.522 / 0.389 |
| Mug | 2.732 / 2.946 | 2.893 / 2.821 | 3.086 / 2.961 | 0.793 / 0.776 | 0.745 / 0.739 |
| Pistol | 1.113 / 0.967 | 0.968 / 0.958 | 1.089 / 1.086 | 0.270 / 0.237 | 0.252 / 0.244 |
| Skateboard | 0.887 / 1.02 | 0.816 / 1.206 | 0.897 / 1.262 | 0.289 / 0.288 | 0.225 / 0.172 |
| Table | 1.694 / 1.601 | 1.604 / 1.790 | 1.870 / 1.749 | 0.505 / 0.417 | 0.525 / 0.404 |
| Mean | 1.869 / 1.615 | 1.802 / 1.662 | 1.927 / 1.713 | 0.572 / 0.471 | 0.555 / 0.458 |
+
+Table 1. Point cloud completion results of overall point cloud. The training data consists of 13 categories of different objects [36]. The numbers shown are $\left[\mathrm{Pred} \rightarrow \mathrm{GT}\right.$ error / $\left.\mathrm{GT} \rightarrow \mathrm{Pred}\right.$ error], scaled by 1000. We compute the mean values across all categories and show them in the last row of the table. PF-Net (vanilla) is PF-Net without Discriminator.
+
+| Category | LGAN-AE [12] | PCN [11] | 3D-Capsule [25] | PF-Net( vanilla) | PF-Net |
| Airplane | 3.357 / 1.130 | 5.060 / 1.243 | 2.676 / 1.401 | 1.197 / 1.006 | 1.091 / 1.070 |
| Bag | 5.707 / 5.303 | 3.251 / 4.314 | 5.228 / 4.202 | 3.946 / 4.054 | 3.929 / 3.768 |
| Cap | 8.968 / 4.608 | 7.015 / 4.240 | 11.04 / 4.739 | 5.519 / 4.470 | 5.290 / 4.800 |
| Car | 4.531 / 2.518 | 2.741 / 2.123 | 5.944 / 3.508 | 2.537 / 1.848 | 2.489 / 1.839 |
| Chair | 7.359 / 2.339 | 3.952 / 2.301 | 3.049 / 2.207 | 1.998 / 1.828 | 2.074 / 1.824 |
| Guitar | 0.838 / 0.536 | 1.419 / 0.689 | 0.625 / 0.662 | 0.435 / 0.435 | 0.456 / 0.429 |
| Lamp | 8.464 / 3.627 | 11.61 / 7.139 | 9.912 / 5.847 | 5.252 / 3.059 | 5.122 / 3.460 |
| Laptop | 7.649 / 1.413 | 3.070 / 1.422 | 2.129 / 1.733 | 1.291 / 1.013 | 1.247 / 0.997 |
| Motorbike | 4.914 / 2.036 | 4.962 / 1.922 | 8.617 / 2.708 | 2.229 / 1.876 | 2.206 / 1.775 |
| Mug | 6.139 / 4.735 | 3.590 / 3.591 | 5.155 / 5.168 | 3.228 / 3.332 | 3.138 / 3.238 |
| Pistol | 3.944 / 1.424 | 4.484 / 1.414 | 5.980 / 1.782 | 1.267 / 1.012 | 1.122 / 1.055 |
| Skateboard | 5.613 / 1.683 | 3.025 / 1.740 | 11.49 / 2.044 | 1.198 / 1.257 | 1.136 / 1.337 |
| Table | 2.658 / 2.484 | 2.503 / 2.452 | 3.929 / 3.098 | 2.184 / 1.928 | 2.235 / 1.934 |
| Mean | 5.395 / 2.603 | 4.360 / 2.661 | 5.829 / 3.008 | 2.483 / 2.086 | 2.426 / 2.117 |
+
+Table 2. Point cloud completion results of the missing point cloud. The numbers shown are [Pred $\rightarrow$ GT error / GT $\rightarrow$ Pred error], scaled by 1000. In this table, We compute those two metrics in the missing region of point cloud.
+
+the test set. Compared to other methods, the prediction of our PF-Net presents strong spatial continuity with a high level of restoration and less genus-wise distortions. [13].
+
+# 4.3. Quantitative Evaluations of PF-Net
+
+Analysis of Discriminator The function of the Discriminator is to distinguish the predicted shape from the real profile of the missing region and optimize our network to generate a more "realistic" configuration. Table 1 and Table 2 show the result of PF-Net without Discriminator. Compared to PF-Net without Discriminator, PF-Net with Discriminator outperforms in 10 out of 13 categories on the Pred $\rightarrow$ GT error both in Table 1 and Table 2. Furthermore, PF-Net has a considerable margin in terms of mean on the Pred $\rightarrow$ GT
+
+error both in Table 1 and Table 2. The results indicate that PF-Net can help minimize Pred $\rightarrow$ GT error. As is mentioned above, Pred $\rightarrow$ GT error measures how difference the prediction is from the ground truth. Thus, the Discriminator enables PF-Net to generate the point cloud that is more similar to the ground truth.
+
+Analysis of MRE and PPD To demonstrate the effectiveness of CMLP, we train CMLP and other extractors which follow the same linear classification model on ModelNet40 [39] and evaluate their overall classification accuracy on the test set. Results are shown in Table 3. PointNet-MLP has the same parameter as PointNet without TransformNet [10]. PointNet-CMLP replaces MLP of PointNet-MLP by CMLP. Our-CMLP shows the best performance. The re
+
+
+Figure 6. The comparison of completion results between other methods and our network. From top to bottom: Input, L-GAN [12], PCN [11], 3D-Capsule [25], our method, and the ground truth. In (3)(7), the outputs of other methods lose the geometric structure of the cross-bar under the chair and the table. In (3)(4)(6), other methods mistakenly fill in the hollow part of the G.T. (i.e., (3)(6), the back of the chair; (4), the space under the tabletop is mistakenly filled). In (8), others fail to generate a reasonable shape. Correspondingly, ours can generate the missing point cloud accurately with less distortions and high-level restoration. More results of ours are shown in Supplement.
+
+sult also indicates that CMLP has a better understanding of semantic information.
+
+ | PointNet-MLP | PointNet-CMLP | Our-CMLP |
| Acc.(%) | 87.2 | 87.9 | 88.9 |
+
+Table 3. Classification accuracy results of PointNet-MLP, PointNet-CMLP, and Our-CMLP on ModelNet40.
+
+In order to assess the effectiveness of Multi-Resolution Encoder(MRE) and Point Pyramid Decoder(PPD), we further compare our PF-Net(vanilla) with three different baselines: single-resolution MLP, single-resolution CMLP, and multi-resolution CMLP. All the above methods take the incomplete point cloud as input and output the missing point cloud. We conduct this experiment on the models in "Chair" and "Table" class, which are two largest categories in the dataset we generated to discuss. "Chair" has 2658 shapes for training and 704 shapes for testing. "Table" has 3835 shapes for training and 848 shapes for testing. Single-resolution MLP consists of 5 layers MLP
+
+[64,128,256,512,1024] and 2 linear layers [1024,1536], each layer followed by BN and ReLU activation (i.e we find that BN is beneficial in this method). Single-resolution CMLP has the same structure as single-resolution MLP but MLP is changed to CMLP. Multi-resolution CMLP use multi-resolution encoder followed by 2 linear layers [1024, 1536]. We compute their $\mathrm{Pred} \rightarrow \mathrm{GT}$ error and $\mathrm{GT} \rightarrow \mathrm{Pred}$ error of the missing point cloud. Results are shown in Table 4. Note that, in both two categories, CMLP and MR-CMLP are superior to MLP in $\mathrm{Pred} \rightarrow \mathrm{GT}$ error and $\mathrm{GT} \rightarrow \mathrm{Pred}$ error. Their performance boost is between $3\%$ to $10\%$ compared to MLP. However, after using PF-Net, the $\mathrm{Pred} \rightarrow \mathrm{GT}$ error and $\mathrm{GT} \rightarrow \mathrm{Pred}$ error are reduced significantly. This is what we expected. Since CMLP and MR-CMLP strengthen the ability of encoder to extract geometrical and semantic information, but their decoders only focus on generating the overall shape of the missing point cloud.
+
+However, the generation process of PPD is smoother. It can focus on both the overall shape and the detailed feature points. Fig. 7 depicts one example of the "chair" class.
+
+
+
+
+
+
+
+
+Figure 7. A chair predicted by MLP, CMLP, MR-CMLP, and PF-Net(vanilla). PF-Net(vanilla) is our PF-Net without Discriminator. Yellow and red points represent the prediction of PF-Net(vanilla) and others. It can be found that the middle of the chair in the G.T. is hollow. The prediction of MLP, CMLP, and MR-CMLP all lose this detailed structure. Our PF-Net(vanilla) retains this structure, and the prediction has less noise and distortions.
+
+
+
+
+Figure 8. Examples of repairing results when the input has different extent of incompleten. (1), (2), (3) lose $25\%$ $50\%$ $75\%$ points of the original point cloud respectively. Yellow represents the prediction. Grey denotes the undamaged point cloud.
+
+| Category | MLP | CMLP | MR-CMLP | PF-Net(vanilla) |
| Chair | 2.692 / 2.384 | 2.587 / 2.306 | 2.521 / 2.275 | 1.772 / 1.432 |
| Table | 2.429 / 2.734 | 2.250 / 2.693 | 2.299 / 2.696 | 1.891 / 1.664 |
+
+Robustness Test We conduct all the robustness test experiments on the "Airplane" class. In the first robustness test, we change $M$ in the PPD to control the number of the output points of our network and train it to repairing incomplete shape with different extent of incompleteness, respectively. The experiment results are shown in Table 5: $25\%$ , $50\%$ and $75\%$ mean that three incomplete inputs lose $25\%$ , $50\%$ and $75\%$ of the original points respectively compared to the ground truth. Note that the Pred $\rightarrow \mathrm{GT}$ error and GT $\rightarrow \mathrm{Pred}$ error of three partial inputs are basically the same, which implies that our network has strong robustness when dealing with incomplete inputs with different extent of missing. Fig. 8 shows the performance of our network in the test set. Our network accurately "identified" different types of airplane and retain the geometric details of the original point cloud even in the case of large-scale incompleteness. In the second robustness test, we train our network to complete the partial shape that lose more than one pieces of points in different positions. One of the example in test set is shown in Fig. 9. It can be found that PF-Net still predict the correct missing point cloud in the right places.
+
+
+(1)
+
+
+(3)
+
+
+G.T.
+
+Table 4. [Pred $\rightarrow$ GT error / GT $\rightarrow$ Pred error] given by MLP, CMLP, MR-CMLP and our PF-Net(vanilla) of the missing point cloud.
+
+| Missing Ratio | 25% | 50% | 75% |
| PF-Net | 0.727 / 0.542 | 0.727 / 0.520 | 0.748 / 0.623 |
+
+Table 5. [Pred $\rightarrow$ GT error / GT $\rightarrow$ Pred error] given by our PF-Net of the missing point cloud. The incomplete point cloud lose $25\%$ , $50\%$ , $75\%$ respectively compared to the original point cloud.
+
+
+(1)
+Figure 9. Repairing results when the original point cloud loses different numbers of points in two random positions. Yellow represents the prediction. Grey denotes the undamaged point cloud.
+
+
+(2)
+
+
+(3)
+
+
+G.T.
+
+# 5. Conclusion
+
+We have presented a new approach to shape completion using a partial point cloud only to generate the missing point cloud. Our architecture enables the network to generate the target point cloud with both rich semantic profile and detailed character while retaining the existing contour. Our method outperforms the existing methods focusing on shape completion of a point cloud. Noticing that if the training dataset is as large enough, our method has the chance to repair any complex random point cloud delicately. Hence, we can foresee that if this method is applied deeply, the accuracy of 3D recognition can be dramatically improved, bringing new possibilities to the research of autonomous vehicles and 3D reconstruction.
+
+# References
+
+[1] X. Zhang, X. Le, A. Panotopoulou, E. Whiting, and C. C. Wang, "Perceptual models of preference in 3D printing direction," ACM Trans. Graphics, vol. 34, no. 6, pp. 1-12, 2015.
+[2] X. Zhang, X. Le, Z. Wu, E. Whiting, and C. C. Wang, “Data-driven bending elasticity design by shell thickness,” in Computer Graphics Forum, vol. 35, no. 5, 2016, pp. 157–166.
+[3] B. Zhao, X. Le, and J. Xi, “A novel sdass descriptor for fully encoding the information of a 3D local surface,” Information Sciences, vol. 483, pp. 363–382, 2019.
+[4] Y. Liu, B. Fan, S. Xiang, and C. Pan, "Relation-shape convolutional neural network for point cloud analysis," CVPR, 2019.
+[5] Y. Feng, H. You, Z. Zhang, R. Ji, and Y. Gao, “Hypergraph neural networks,” AAAI, 2019.
+[6] T. Yu, J. Meng, and J. Yuan, "Multi-view harmonized bilinear network for 3D object recognition," CVPR, 2018.
+[7] X. He, Y. Zhou, Z. Zhou, S. Bai, and X. Bai, "Triplet-center loss for multi-view 3D object retrieval," CVPR, 2018.
+[8] A. Kanezaki, Y. Matsushita, and Y. Nishida, "RotationNet: Joint object categorization and pose estimation using multiviews from unsupervised viewpoints," CVPR, 2018.
+[9] Y. Zhou and O. Tuzel, "VoxelNet: End-to-end learning for point cloud based 3D object detection," CVPR, 2018.
+[10] C. R. Qi, H. Su, K. Mo, and L. J. Guibas, “Pointnet: Deep learning on point sets for 3D classification and segmentation,” CVPR, 2017.
+[11] W. Yuan, T. Khot, D. Held, C. Mertz, and M. Hebert, “PCN: Point completion network,” 3DV, 2018.
+[12] P. Achlioptas, O. Diamanti, I. Mitliagkas, and L. J. Guibas, "Learning representations and generative models for 3D point clouds," ICML, 2018.
+[13] Y. Yang, C. Feng, Y. Shen, and D. Tian, "Foldingnet: Point cloud auto-encoder via deep grid deformation," CVPR, 2018.
+[14] M. Sarmad, H. Lee, and Y. M. Kim, "RL-GAN-Net: A reinforcement learning agent controlled GAN network for real-time point cloud shape completion," CVPR, 2019.
+[15] D. Pathak, P. Krahenbuhl, J. Donahue, T. Darrell, and A. A. Efros, "Context encoders: Feature learning by inpainting," CVPR, 2016.
+[16] B. Yang, H. Wen, S. Wang, R. Clark, A. Markham, and N. Trigoni, "3D object reconstruction from a single depth view with adversarial learning," ICCV Workshops, 2017.
+[17] A. Dai, C. R. Qi, and M. Niebner, “Shape completion using 3D-Encoder-Predictor CNNs and shape synthesis,” CVPR, 2017.
+[18] W. Wang, Q. Huang, S. You, C. Yang, and U. Neumann, "Shape inpainting using 3D generative adversarial network and recurrent convolutional networks," ICCV, 2017.
+[19] C. Li, M. Zaheer, Y. Zhang, B. Poczos, and R. Salakhutdinov, "Point cloud GAN," ICLR workshops, 2018.
+
+[20] X. Han, .Z. Li, and . H. Huang, "High-resolution shape completion using deep neural networks for global structure and local geometry inference," in ICCV, 2017.
+[21] J. Wu, C. Zhang, T. Xue, W. T. Freeman, and J. B. Tenenbaum, “Learning a probabilistic latent space of object shapes via 3D generative-adversarial modeling,” NeurIPS, 2016.
+[22] Y. Yu, Z. Huang, F. Li, H. Zhang, and X. Le, “Point encoder gan: A deep learning model for 3d point cloud inpainting,” Neurocomputing, 2019.
+[23] L. Yu, X. Li, C. Fu, D. Cohenor, and P. Heng, "PU-Net: Point cloud upsampling network," CVPR, 2018.
+[24] S. Sabour, N. Frosst, and G. E. Hinton, "Dynamic routing between capsules," NeurIPS, 2017.
+[25] Y. Zhao, T. Birdal, H. Deng, and F. Tombari, “3D point capsule networks,” CVPR, 2018.
+[26] T. Y. Lin, P. Dollar, R. Girshick, K. He, B. Hariharan, and S. Belongie, “Feature pyramid networks for object detection,” CVPR, 2017.
+[27] K. Chen, J. Pang, J. Wang, Y. Xiong, X. Li, S. Sun, W. Feng, Z. Liu, J. Shi, W. Ouyang et al., "Hybrid task cascade for instance segmentation," CVPR, 2019.
+[28] Z. Tian, C. Shen, H. Chen, and T. He, “Fcos: Fully convolutional one-stage object detection,” CVPR, 2019.
+[29] J. Pang, K. Chen, J. Shi, H. Feng, W. Ouyang, and D. Lin, "Libra R-CNN: Towards balanced learning for object detection," CVPR, 2019.
+[30] Z. Cai and N. Vasconcelos, "Cascade R-CNN: Delving into high quality object detection," CVPR, 2018.
+[31] A. Kirillov, R. Girshick, K. He, and P. Dollr, “Panoptic feature pyramid networks,” CVPR, 2019.
+[32] T. Birdal and S. Ilic, “A point sampling algorithm for 3D matching of irregular geometries,” IROS, 2017.
+[33] C. R. Qi, L. Yi, H. Su, and L. J. Guibas, “Pointnet++: Deep hierarchical feature learning on point sets in a metric space,” NeurIPS, 2017.
+[34] H. Fan, S. Hao, and L. Guibas, “A point set generation network for 3D object reconstruction from a single image,” CVPR, 2017.
+[35] I. Goodfellow, J. Pougetabadie, M. Mirza, B. Xu, D. Wardefarley, S. Ozair, A. Courville, and Y. Bengio, "Generative adversarial nets," NeurIPS, 2014.
+[36] L. Yi, V. G. Kim, D. Ceylan, I. Shen, M. Yan, H. Su, C. Lu, Q. Huang, A. Sheffer, and L. J. Guibas, “A scalable active framework for region annotation in 3D shape collections,” ACM Trans. on Graphics, vol. 35, no. 6, pp. 210:1-210:12, 2016.
+[37] C. Lin, C. Kong, and S. Lucey, “Learning efficient point cloud generation for dense 3D object reconstruction,” AAAI, 2018.
+[38] M. Gadelha, R. Wang, and S. Maji, "Multiresolution tree networks for 3D point cloud processing," ECCV, 2018.
+[39] Z. Wu, S. Song, A. Khosla, F. Yu, L. Zhang, X. Tang, and J. Xiao, "3D shapenets: A deep representation for volumetric shapes," CVPR, 2015.
\ No newline at end of file
diff --git a/pfnetpointfractalnetworkfor3dpointcloudcompletion/images.zip b/pfnetpointfractalnetworkfor3dpointcloudcompletion/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..aa5e984859dd9c2eaa1ab3efa16e4b01787c68ed
--- /dev/null
+++ b/pfnetpointfractalnetworkfor3dpointcloudcompletion/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8dcb502f76b2f20523e983c4ebaa755e9a8759f2a893d688ae6fc18d0553a527
+size 758710
diff --git a/pfnetpointfractalnetworkfor3dpointcloudcompletion/layout.json b/pfnetpointfractalnetworkfor3dpointcloudcompletion/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..aba591fdcea1b88ae29c6d0f289a916f773317a8
--- /dev/null
+++ b/pfnetpointfractalnetworkfor3dpointcloudcompletion/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a92e73e1104266dff38c2603309e26b1cd7a9d60b102852dc32fe90d3d7f8059
+size 392106
diff --git a/pfrlposefreereinforcementlearningfor6dposeestimation/f1a408c5-7555-4d20-aa2e-f5e042545c8b_content_list.json b/pfrlposefreereinforcementlearningfor6dposeestimation/f1a408c5-7555-4d20-aa2e-f5e042545c8b_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..008f5246fa5d579e1929498247e7866ecefc8027
--- /dev/null
+++ b/pfrlposefreereinforcementlearningfor6dposeestimation/f1a408c5-7555-4d20-aa2e-f5e042545c8b_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ed3b535a12752be4b11757a75ea9170d163f0f4548f81366421f0ce2a6913f4c
+size 77310
diff --git a/pfrlposefreereinforcementlearningfor6dposeestimation/f1a408c5-7555-4d20-aa2e-f5e042545c8b_model.json b/pfrlposefreereinforcementlearningfor6dposeestimation/f1a408c5-7555-4d20-aa2e-f5e042545c8b_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..7e6cf32772d7c658cfc3173254c82a01fbabcc6d
--- /dev/null
+++ b/pfrlposefreereinforcementlearningfor6dposeestimation/f1a408c5-7555-4d20-aa2e-f5e042545c8b_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6aeb0c64e3f4ea490c97237cf03782f84852709b64aa30a63796efb111197d69
+size 93299
diff --git a/pfrlposefreereinforcementlearningfor6dposeestimation/f1a408c5-7555-4d20-aa2e-f5e042545c8b_origin.pdf b/pfrlposefreereinforcementlearningfor6dposeestimation/f1a408c5-7555-4d20-aa2e-f5e042545c8b_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..b9560bce8fe6c6dc2a04c4892451fd3937e295a6
--- /dev/null
+++ b/pfrlposefreereinforcementlearningfor6dposeestimation/f1a408c5-7555-4d20-aa2e-f5e042545c8b_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f1549635d319500900688004a1178159a064745a92cf50ba825437591ce4f67b
+size 5553428
diff --git a/pfrlposefreereinforcementlearningfor6dposeestimation/full.md b/pfrlposefreereinforcementlearningfor6dposeestimation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..fa6bf32ce6f8413aaca0b9c4aa714186a0ff3e9f
--- /dev/null
+++ b/pfrlposefreereinforcementlearningfor6dposeestimation/full.md
@@ -0,0 +1,319 @@
+# PFRL: Pose-Free Reinforcement Learning for 6D Pose Estimation
+
+Jianzhun Shao Yuhang Jiang Gu Wang Zhigang Li Xiangyang Ji Department of Automation and BNRist, Tsinghua University Beijing, China
+
+$\{sjz18,jiangyh19,wangg16,lzg15\} \text{}@$ mails.tsinghua.edu.cn xyji@tsinghua.edu.cn
+
+# Abstract
+
+6D pose estimation from a single RGB image is a challenging and vital task in computer vision. The current mainstream deep model methods resort to 2D images annotated with real-world ground-truth 6D object poses, whose collection is fairly cumbersome and expensive, even unavailable in many cases. In this work, to get rid of the burden of 6D annotations, we formulate the 6D pose refinement as a Markov Decision Process and impose on the reinforcement learning approach with only 2D image annotations as weakly-supervised 6D pose information, via a delicate reward definition and a composite reinforced optimization method for efficient and effective policy training. Experiments on LINEMOD and T-LESS datasets demonstrate that our Pose-Free approach is able to achieve state-of-the-art performance compared with the methods without using real-world ground-truth 6D pose labels.
+
+# 1. Introduction
+
+6D pose estimation aims to localize the 3D location and the 3D orientation of the object from a single image. It plays a crucial role in real-world applications including robot manipulation [5, 43], augmented reality [21] and self-driving cars [4, 19]. For instance, when a robot tries to grab an object, it is a prerequisite to accurately estimate the 6D object poses from the image captured by the equipped camera.
+
+This problem was traditionally regarded as a geometric problem and can be solved with Perspective-n-Point (PnP) [14] algorithms by matching features between the 2D image and the 3D object model. Since rich textures are indispensable for feature matching, they cannot effectively handle the texture-less cases. With the rise of deep learning, considerable learning-based approaches are proposed for various perception cases (e.g., RGB-only, RGB-D) and have greatly promoted the evolvement of this field. Some people [24, 29, 25] followed the conventional way to build the 2D-3D correspondences and subsequently solve the pose via
+
+
+Figure 1. The sketch of Pose-Free Reinforcement Learning (PFRL). We formulate the pose refining procedure as a sequential decision-making process and exploit a composite reinforced optimization approach to tackle it. We calculate the reward using the similarity measurement of mask information to avoid the annotations of pose labels.
+
+PnP. Others [12, 38] instead trained the deep model in an end-to-end manner to directly derive the pose from the image. Compared with traditional ones, these approaches can achieve remarkable performance even in challenging situations such as texture-less, clutter, occlusion, etc. A common way to further improve the pose accuracy is pose refinement. DeepIM [15] is able to predict the 6D pose difference between the current estimation and the ground-truth by comparing the rendered object with the observed one in 2D space. A similar idea is also explored by [20, 40].
+
+Real-world pose annotations are essential for current approaches to achieve excellent performance. Unfortunately, acquisition of the 2D images annotated with real-world ground-truth 6D object poses is fairly cumbersome and expensive compared with that in 2D space (e.g. instance 2D mask), which greatly restricts the popularization of these approaches. Alternatively, some researchers [12, 33, 40] turned to getting rid of this problem by training on synthetic data only. However, the domain gap is prone to degrade pose estimation performance in real-world cases.
+
+In this work, we focus on 6D pose estimation from RGB images only without requiring real-world pose annotations
+
+and avoiding the domain gap caused by training the model on synthetic-only data.
+
+To achieve this goal, we introduce reinforcement learning by formulating the 6D pose refinement problem as a Markov Decision Process (MDP). Given an initial pose estimate, our approach learns to rotate and translate the 3D object model sequentially to align it to the observation. To train the model, we design a 2D mask-based reward which is computed only from the rendered and the target 2D masks. For each episode, the accumulated rewards are maximized, resulting in a policy that can approach the target smoothly and quickly (Fig. 1). We also propose a composite reinforced optimization method to learn the operation policy efficiently and effectively. Compared with existing supervised approaches, our method utilizes a sequential decision-making process to optimize a delayed accumulated reward from the weakly-supervised mask similarity instead of the supervised loss from the ground-truth 6D pose. Since no ground-truth 6D pose information is involved, we call our proposed approach a Pose-Free Reinforcement Learning (PFRL) approach for 6D pose estimation.
+
+Experiments on LINEMOD [9] and T-LESS [10] datasets demonstrate that our approach is able to achieve state-of-the-art performance compared with existing methods without using ground-truth 6D pose labels. Our work makes the following main contributions: i) We formulate the 6D pose estimation problem as a Markov Decision Process and propose a Pose-Free Reinforced Learning solution, which is able to exploit 2D image annotations as weakly supervised information and reward-based sequential decision making for 6D pose refinement. ii) We design a low-cost reward strategy based on the 2D mask and propose a composite reinforced optimization method for efficient and effective policy training. iii) On LINEMOD and T-LESS datasets we achieve state-of-the-art performance compared to the methods without using real-world ground-truth 6D pose labels.
+
+# 2. Related Work
+
+RGB-based 6D Object Pose Estimation. Traditionally, the pose estimation was considered as a geometric problem and solved with Perspective-n-Point (PnP) [14] algorithms by matching the features between the 2D image and the 3D model. However, they rely heavily on the textures and cannot handle the textures-less cases. Recently, the deep learning technique has significantly advanced the development of pose estimation. Some works followed the traditional way by training the model to build the 2D-3D correspondences by 1) detecting the pre-defined keypoints from image [24, 29, 36, 41] or 2) predicting the 3D coordinates for object pixels [2, 37, 40, 16]. For the former, the sparse 2D-3D correspondences make the estimator sensitive to the occlusion. For the latter, RANSAC [23] is necessary
+
+to solve the pose from the dense correspondences, which remarkably increase the computational complexity of the inference. Different from these PnP-based approaches, others trained the deep model in an end-to-end manner to predict the pose directly from an image. [12] trained a viewpoint classifier on the SSD [17] by discretizing the 3D rotation space into some bins. The translation was calculated from the 2D bounding box. [33] leveraged an Augmented AutoEncoder (AAE) to encode features for each discrete rotation to build a dictionary. During test, the rotation is retrieved by matching the feature with the dictionary. [38] developed a CNN-based network to regress the quaternions from image directly. These direct approaches can enjoy fast inference speed, but they typically suffer from inferior performance when compared to PnP-based approaches.
+
+Current RGB-based pose estimation approaches rely heavily on real-world annotated training data. For instance, with the aid of real data, the pose estimation precision of DPOD [40] can be improved from $50\%$ to $82.98\%$ on metric ADD. Without real training samples, the performance of current approaches is far from satisfactory. Unfortunately, the pose annotations of real data are quite expensive and time-consuming. We propose Pose-Free Reinforced Learning (PFRL) framework, which can significantly improve the pose estimation accuracy only based on the relatively low-cost 2D real-data annotations (i.e. segmentation masks).
+
+6D Object Pose Refinement. To further promote the performance of 6D pose refinement, numerous approaches leveraged depth by ICP [1]. As a result, additional depth sensor is required and may be restricted by its the frame rate, resolution, depth range and light illumination, etc. For RGB-based pose refinement, a promising way is to train a pose refiner. For instance, DeepIM [15] was proposed to compare the rendered objects (accompanied with mask) with the observed ones, which can iteratively predict the relative transformation between the current pose estimation and the ground-truth. [20] and [40] developed the similar idea by introducing the parallel branches to extract features. These approaches can achieve remarkable pose estimation performance by utilizing the ground-truth pose annotations to provide fully-supervised training signals. More recently, [26] attempted to train a 6D object pose refiner without real 6D pose labels via an approximated differentiable renderer, however the utilization of the differentiable renderer was non-trivial, since they required an additional representation learning step where real 6D pose annotations were still needed.
+
+Reinforcement Learning for Vision Tasks. Recently, deep reinforcement learning [35] has been successfully applied to a wide range of computer vision tasks, such as object detection [22], semantic segmentation [42], visual object tracking [34, 39, 30], vision-based robotic grasping [28], etc. Several works also try to solve 6D object pose
+
+
+Figure 2. The PFRL framework. At each time step $k$ , we use the cropped observed image, ground-truth bounding box, rendered image and rendered mask to form state $\mathbf{s}_k$ . The policy network (detailed in Sec. 3.4) takes $\mathbf{s}_k$ as input and generates disentangled action $\mathbf{a}_k$ , which represents the relative SE(3) transformation for current pose (detailed in Sec. 3.1). The environment (i.e. renderer) then renders a new image according to the new pose, calculating the reward from current mask and the ground-truth mask (detailed in Sec. 3.2). Finally the composite policy optimization is executed using the reward (detailed in Sec. 3.3).
+
+estimation related tasks via reinforcement learning. For instance, [13] proposes a policy gradient based method to save the inference budget for an existing 6D object pose estimation system. [32] selects the strategy of camera movements by policy gradient method, directing the camera's attention to the most uncertain object.
+
+Different from them, we propose a novel approach to learn the 6D pose refinement in a Pose-Free fashion without the need of real-world 6D pose annotations via reinforcement learning. By formulating the problem under the reinforcement learning framework, the information from the non-differentiable rasterization-based renderer can be better exploited during optimization. It enjoys both Pose-Free 2D annotations and pose refinement prediction capability.
+
+# 3. Methodology
+
+The overview of our framework is depicted in Fig. 2. In following sections, we first present the formulation of Reinforcement Learning (RL) for solving the 6D pose estimation problem in Sec. 3.1. We then introduce a 2D mask-based reward function in Sec. 3.2. Further, a composite reinforced optimization is proposed for the task-specific 6D pose estimation problem in Sec. 3.3. Finally, we discuss our policy network architecture in Sec. 3.4.
+
+# 3.1. Problem Formulation
+
+To achieve accurate 6D pose estimation, our core idea is to align the 2D projection of 3D object with its appearance observed in 2D image. We propose the PFRL framework to
+
+tackle the problem by reinforcement learning. We hypothesize that the decision made by the agent at each time step will be only based on the current state and not be affected by previous states, which can be formulated as an MDP. The goal is to maximize the expected sum of future discounted rewards $V^{\pi}(\mathbf{s}) = \mathbb{E}\left[\sum_{k\geq 0}\gamma^{k}r_{k}\right]$ [27], where $\gamma \in [0,1)$ is the discount factor, $r_k = r(\mathbf{s}_k,\mathbf{a}_k)$ is immediate reward at time $k$ , $\mathbf{s}_k$ is the state at time $k$ and $\mathbf{a}_k \sim \pi (\cdot |\mathbf{s}_k)$ is the action generated by following some policy $\pi$ conditioned on $\mathbf{s}_k$ . The state and action space of our framework are defined as follows:
+
+State: The state which encodes the knowledge of the environment should be instrumental for the agent to decide how to rotate and translate the 3D model. At current time step $k$ , the state $s_k$ is formed by a rendered RGB image and a projected mask of the 3D object model specified by the current pose, and the observed RGB image as well as the ground-truth 2D bounding box of the object. These four images are concatenated together as the input of the policy network. During test, since the ground-truth bounding box is not available, we then exploit it by projecting the object with the initial pose instead.
+
+Action: Action is the relative SE(3) transformation the agent performs at each time step, which will affect the state of the environment. We exploit the same representation of $\Delta p$ as in [15] for its characteristics of disentangled rotation and translation, i.e., the actions of rotation and translation are not mutually affected. The rotation and translation actions are chosen stochastically from the two distributions parameterized by policy network. Different from con
+
+ventional reinforcement learning approaches, we measure a single policy value for the two distributions by concatenating the features of rotation and translation together (Sec. 3.4). We evaluate continuous and discrete distributions for the policy model respectively:
+
+$$
+\mathbf {a} _ {R} \sim \mathcal {N} \left(\boldsymbol {\mu} _ {R} (\theta), \boldsymbol {\sigma} _ {R} ^ {2}\right), \mathbf {a} _ {t} \sim \mathcal {N} \left(\boldsymbol {\mu} _ {t} (\theta), \boldsymbol {\sigma} _ {t} ^ {2}\right), \tag {1}
+$$
+
+and
+
+$$
+\mathbf {a} _ {R} \sim \mathcal {C} \left(\zeta_ {R} (\theta)\right), \mathbf {a} _ {t} \sim \mathcal {C} \left(\zeta_ {t} (\theta)\right). \tag {2}
+$$
+
+Eq. 1 is the continuous distributions for rotation and translation actions. $\mathcal{N}(\cdot)$ represents multivariate Gaussian distribution. $\mu_R(\theta)$ and $\mu_t(\theta)$ represent the mean values of rotation (i.e. quaternion) and translation from the policy network respectively. Accordingly, $\sigma_R$ and $\sigma_t$ are the variance matrices. We assume the dimensions are independent of each other for simplicity and without loss of representation ability, hence both of $\sigma_R$ and $\sigma_t$ are diagonal matrices.
+
+Eq. 2 indicates the discrete distribution for rotation and translation actions. $\mathcal{C}(\cdot)$ represents Categorical distribution, where $\zeta_R(\theta)$ and $\zeta_t(\theta)$ are the probabilities produced by the policy network.
+
+We handcraft 13 operations for rotation and translation actions, where each of them includes rotating (or translating) 3D model along $\pm x, \pm y, \pm z$ with a fixed small and large degree (or step) as well as no rotation/translation action. See Sec. 1 of the supplementary material for more details.
+
+Each operation for rotation and translation is encoded with a quaternion and a direction vector. The final form sampled from the continuous and discrete distribution is the same.
+
+# 3.2. 2D Mask-based Reward
+
+After rotating and translating the 3D model, the agent needs a reward signal $r_A$ for policy update. Under the Pose-Free situation, we propose a 2D mask-based reward, which includes three components: IoU (Intersection over Union) Difference Reward $r_I$ , Goal Reached Reward $r_G$ , and Centralization Reward $r_C$ , which are purely computed from the rendered and ground-truth masks in 2D space.
+
+We denote the IoU Difference Reward $r_{I}$ as:
+
+$$
+r _ {I} = f _ {\phi} (\mathrm {I o U} _ {k + 1}) - f _ {\phi} (\mathrm {I o U} _ {k}), \tag {3}
+$$
+
+where
+
+$$
+f _ {\phi} (x) = \left\{ \begin{array}{l l} x, & x < X _ {\text {t h r}} \\ \alpha x ^ {2} - \beta x, & x \geq X _ {\text {t h r}} \end{array} \right.. \tag {4}
+$$
+
+Let $M_R$ and $M_G$ represent the rendered mask at current state and the ground-truth mask respectively. In Eq. 3 $\mathrm{IoU}_k = \frac{S(M_{R_k} \cap M_G)}{S(M_{R_k} \cup M_G)}$ measures their IoU. $f_\phi$ is a mapping function, whose shape is controlled by $\alpha, \beta$ , and a threshold $X_{\mathrm{thr}}$ . The motivation is that if the mask of an object without
+
+high symmetry has a perfect overlap with the ground-truth mask, it is very likely for the object to be in the actual localization and orientation. Therefore the pose estimation problem can be converted into a 2D mask matching problem. Our objective is to maximize the IoU at the last image frame. Therefore, we design $r_I$ in the form of IoU difference in adjacent frames corresponding to the RL objective: maximizing the cumulative reward $\sum_{0}^{k_{\mathrm{end}}}r_k$ . The mapping function $f_{\phi}$ is designed to give a larger reward when IoU is closer to 1. Sharper changes of reward at frames with large IoUs (e.g., 0.8 to 1.0), which is the most common situation during training, help the agent learn the objective much easier.
+
+In practice, when the IoU reaches some threshold $\mathrm{IoU}_{\mathrm{thr}}$ , we expect the environment to give the reward feedback immediately and stop refining. Thus we define an additional Goal Reached Reward $r_G$ as:
+
+$$
+r _ {G} = \left\{ \begin{array}{l l} 1, & \mathrm {I o U} _ {k} \geq \mathrm {I o U} _ {\text {t h r}} \\ 0, & \mathrm {I o U} _ {k} < \mathrm {I o U} _ {\text {t h r}} \end{array} \right.. \tag {5}
+$$
+
+Such reward gives the agent an evident arrival signal, which saves the budget in real-world applications.
+
+In case of the object locating far away from the true position, which might happen if the network is not well initialized, we further add a Centralization Reward $r_C$ to give an explicit constraint on the estimate of translation. $r_C$ is denoted as:
+
+$$
+r _ {C} = \min \left(\left\| c _ {r} - c _ {g} \right\| _ {2} ^ {- \frac {1}{2}}, 1\right), \tag {6}
+$$
+
+where $c_{r}$ and $c_{g}$ are the center of the rendered mask and the ground-truth mask, respectively.
+
+Above all, the final reward $r_A$ can be summarized as:
+
+$$
+r _ {A} = r _ {I} + \sigma_ {C} r _ {C} + \sigma_ {G} r _ {G}, \tag {7}
+$$
+
+where $\sigma_{C}$ and $\sigma_{G}$ are weights of $r_{C}$ and $r_{G}$ .
+
+Note that if an object exhibits some symmetry, naively training a pose estimator is problematic and unstable since the similar appearances in RGB can show different 6D poses and lead to distinct loss values [18]. Our design of mask-based reward can implicitly avoid this problem and work well on symmetric objects, similar to the idea in [33].
+
+# 3.3. Composite Reinforced Optimization
+
+The high dimensional state space brings high variance and instability for training the policy network. In usual, millions of samples are required to fully exploit the power of reinforcement learning model. However, in the 6D pose estimation, it is difficult to render such tremendous amount of the images. In this section, we propose a task-specific composite reinforced optimization method for 6D pose estimation. We combine the on-policy and off-policy strategies together to fully utilize the rendered images.
+
+We use $\theta$ and $\phi$ to denote the current policy network and value function parameters. Given the tuple $(\mathbf{s}_k, \mathbf{a}_k, r_k)$ , we use $\theta_{\mathrm{old}}$ to denote the parameters of the policy network where $\mathbf{a}_k$ samples before $\theta$ . The corresponding policies are denoted as $\pi_\theta(\mathbf{a}_k | \mathbf{s}_k)$ and $\pi_{\theta_{\mathrm{old}}}(\mathbf{a}_k | \mathbf{s}_k)$ . The on-policy optimization refers to learning the value $V_\phi(\mathbf{s}_k)$ of the policy $\pi_\theta(\mathbf{a}_k | \mathbf{s}_k)$ being carried out by the agent with corresponding $\mathbf{a}_k$ . In this paper, we employ the Proximal Policy Optimization (PPO) algorithm [31] for the on-policy optimization. The loss function of PPO is defined as:
+
+$$
+L _ {\text {o n}} = L _ {\text {c l i p}} + \lambda_ {v} L _ {\text {v a l u e}} + \lambda_ {e} L _ {\text {e n t r o p y}}. \tag {8}
+$$
+
+In Eq. 8, $L_{\mathrm{clip}}$ is the clipped surrogate objective measuring minimum of clipped and original importance-weighted advantage value function. $\lambda_v$ and $\lambda_e$ are trade-off parameters. $L_{\mathrm{value}}$ measures an approximated squared-error loss between value function and cumulative reward. $L_{\mathrm{entropy}}$ is the entropy bonus of policy. For further details of the loss function, we refer readers to [31].
+
+After updating policy network, the tuple $(\mathbf{s}_k,\mathbf{a}_k,r_k)$ are no longer associated with the $\pi_{\theta}$ , i.e., $\mathbf{a}_k$ was sampled by a previous policy network $\pi_{\theta_{\mathrm{old}}}$ . Therefore the tuple $(\mathbf{s}_k,\mathbf{a}_k,r_k)$ can not be used for on-policy optimization. In order to further fully utilize "outdated" data samples and take advantage of data efficiency, we introduce an off-policy value update strategy similar to [7] to assist the on-policy optimization to accelerate the training process. We set up a priority queue replay buffer to store the "outdated" data samples. We then update the value function $V_{\phi}(\mathbf{s}_k)$ with off-policy loss using samples from the replay buffer:
+
+$$
+L _ {\text {o f f}} = \left(V _ {\phi} \left(\mathbf {s} _ {k}\right) - V _ {\text {t r a c e}}\right) ^ {2}. \tag {9}
+$$
+
+Definitions of $V_{\mathrm{trace}}$ in Eq. 9 can be found in [7]. The overall procedure of the composite reinforced optimization is summarized Algorithm 1.
+
+Algorithm 1: Composite Reinforced Optimization
+Initialize policy network $\pi_{\theta}$ and value function $V_{\phi}$ Initialize replay buffer $R$
+for episode $= 1,M$ do Generate trajectories $T = (\mathbf{s}_0,\mathbf{a}_0,r_0,\mathbf{s}_1,\dots)$ Update $\pi_{\theta}$ and $V_{\phi}$ with $L_{\mathrm{on}}$ using $T$ Store $T$ into $R$ Sample $B = (\mathbf{s},\mathbf{a},r)$ pairs from $R$ Compute V-trace target $V_{\mathrm{trace}}$ using $B$ Update $V_{\phi}$ with $L_{\mathrm{off}}$
+end
+
+# 3.4. Disentangled Policy Architecture
+
+Fig. 3 depicts the disentangled policy network structure. The backbone consists of the first 11 convolutional layers
+
+
+Figure 3. Disentangled Policy Architecture. The observed image, ground-truth bounding box, rendered image, rendered mask are concatenated and zoomed together as input. Branches for rotation and translation are separated and actions are sampled from continuous or discrete distributions. 'C3' and 'C4' denote the continuous distribution for translation and rotation while the double 'D13' denote the discrete distribution. The value function is computed together.
+
+of FlowNet-S [6]. Similar to [15], the input images and masks are zoomed-in before feeding to the backbone. As discussed in Sec. 3.1, two separate branches are used to predict the distribution of the disentangled rotation and translation. Both branches contain 2 fully-connected (FC) layers with 256 hidden units, and are followed by one additional FC layer. Compared with [15], our network is lightweight both in training and inference, since we do not use the heavily computational flow and mask branches. The last FC layers of both branches are concatenated together followed by 2 FC layers to produce the value function. In this manner, the value function shares the same parameters as actions, and can be used for optimization of both actions.
+
+# 4. Experiments
+
+# 4.1. Data Preparation
+
+We conduct our experiments on LINEMOD [9] and T-LESS [10] dataset. We split the LINEMOD dataset following [3], including about $15\%$ for training and $85\%$ for test, i.e., around 200 images per object for the training set. Note that no 6D pose annotations are directly used during training and testing. They are only used to generate ground-truth masks. Under the case that 6D pose is hard or impossible to obtain, we can get the ground-truth mask by semantic segmentation or manual annotation.
+
+On LINEMOD dataset, we use results from AAE [33] and PoseCNN [38] as our initial pose for test. Random Gaussian noise with zero mean is added to each dimen
+
+| Train data | Pose-Free Init | +Pose-Free Refine | Gt Pose Init | +Pose-Free Refine |
| Object | AAE[33] ADD | DPOD-SYN[40] ADD | SSD6D[12] ADD | DPOD-SYN+Refine ADD | AAE+ours ADD | YOLO6D[36] ADD | PoseCNN[38] ADD | PoseCNN+DeepIM-SYN[15] Proj.2D | ADD | PoseCNN+ours Proj.2D |
| Ape | 3.96 | 37.22 | - | 55.23 | 65.4 | 21.6 | 27.8 | 81.7 | 23.9 | 95.6 |
| Benchvise | 20.92 | 66.76 | - | 72.69 | 84.5 | 81.8 | 68.9 | 92.2 | 93.1 | 94.7 |
| Camera | 30.47 | 24.22 | - | 34.76 | 41.5 | 36.6 | 47.5 | 97.0 | 84.7 | 95.0 |
| Can | 35.87 | 52.57 | - | 83.59 | 80.9 | 68.8 | 71.4 | 89.6 | 91.5 | 93.1 |
| Cat | 17.90 | 32.36 | - | 65.10 | 80.4 | 41.8 | 56.7 | 96.1 | 79.5 | 99.3 |
| Driller | 23.99 | 66.60 | - | 73.32 | 77.6 | 63.5 | 65.4 | 85.9 | 82.3 | 94.8 |
| Duck | 4.86 | 26.12 | - | 50.04 | 52.5 | 27.2 | 42.8 | 92.6 | 24.0 | 98.2 |
| Eggbox | 81.01 | 73.35 | - | 89.05 | 96.1 | 69.6 | 98.3 | 90.8 | 88.3 | 97.8 |
| Glue | 45.49 | 74.96 | - | 84.37 | 76.7 | 80.0 | 95.6 | 81.2 | 96.9 | 97.1 |
| Holepuncher | 17.60 | 24.50 | - | 35.35 | 44.9 | 42.6 | 50.9 | 78.0 | 20.6 | 96.7 |
| Iron | 32.03 | 85.02 | - | 98.78 | 67.3 | 75.0 | 65.6 | 59.3 | 85.1 | 81.6 |
| Lamp | 60.47 | 57.26 | - | 74.27 | 91.1 | 71.1 | 70.3 | 75.6 | 85.5 | 96.0 |
| Phone | 33.79 | 29.08 | - | 46.98 | 52.7 | 47.7 | 54.6 | 88.3 | 66.1 | 91.0 |
| Mean | 31.41 | 50.0 | 34.1 | 66.43 | 70.1 | 56.0 | 62.7 | 85.3 | 70.9 | 94.7 |
+
+Table 1. Comparison with state-of-the-art Pose-Free methods on LINEMOD with metrics ADD and Proj. 2D. Left part is results of initial pose trained on synthetic data + Pose-Free refiner, and right part is results of initial pose trained on ground-truth labels + Pose-Free refiner. PFRL (ours) outperforms the state-of-the-art method DPOD trained with synthetic data, despite that we use a much worse initialization method provided by AAE. When using the same initial pose from PoseCNN, PFRL outperforms DeepIM trained on synthetic data.
+
+sion of the rotation and translation as initial pose for training. The variance is $(15^{\circ})^{2}$ for each rotation axis and $[2^{2}, 2^{2}, 5^{2}](cm)^{2}$ for translation $[x, y, z]$ . A noise is resampled if one of the rotation axis exceeds 45 degrees.
+
+On T-LESS dataset we initialize our method with results from AAE [33], the current state-of-the-art RGB-only method on T-LESS. No real images are available for training, so we render objects with random poses and light conditions on random background images from PASCAL VOC [8]. We perturb the ground-truth poses with the same noise used for LINEMOD as initial poses. Since the camera intrinsic matrix of each real image differs only in the principal points slightly, we translate and crop the images such that they have the same intrinsic matrix for ease of use.
+
+# 4.2. Evaluation Metrics
+
+In our experiments, we use three common metrics for evaluation: Proj. 2D, ADD and VSD. For Proj. 2D metric, a pose is regarded as correct if the average Proj. 2D distance (Eq.(10)) of the model points is less than 5 pixels:
+
+$$
+\mathbf {P r o j .} 2 \mathbf {D} = \frac {1}{m} \sum_ {x \in \mathcal {M}} \| \mathbf {K} (\mathbf {R x} + \mathbf {t}) - \mathbf {K} (\hat {\mathbf {R x}} + \hat {\mathbf {t}}) \|. \tag {10}
+$$
+
+For ADD metric, a pose is regarded as correct if the average distance of model points is less than $10\%$ of the model diameter [9] (Eq.(11)). For symmetric objects, the distance is calculated by the closest model point (Eq.(12)).
+
+$$
+\mathbf {A D D} = \frac {1}{m} \sum_ {x \in \mathcal {M}} \| (\mathbf {R x} + \mathbf {t}) - (\hat {\mathbf {R x}} + \hat {\mathbf {t}}) \|, \tag {11}
+$$
+
+$$
+\mathbf {A D D} - \mathbf {S} = \frac {1}{m} \sum_ {\mathbf {x} _ {1} \in \mathcal {M}} \min _ {\mathbf {x} _ {2} \in \mathcal {M}} \| (\mathbf {R x} _ {1} + \mathbf {t}) - (\hat {\mathbf {R}} \mathbf {x} _ {2} + \hat {\mathbf {t}}) \| \tag {12}
+$$
+
+Visible Surface Discrepancy (VSD) [11] is an ambiguity-invariant metric that depends on the visible surface, which can account for the symmetry better. The parameters used for VSD metric are the same as [33].
+
+# 4.3. Results on LINEMOD
+
+Table 1 shows the results of our method and some recent well-performed RGB-based methods. We achieve state-of-the-art on Pose-Free methods. Most Pose-Free methods like DPOD [40] and AAE [33] render objects on random backgrounds such as images from PASCAL VOC dataset [8] and train on synthetic data. When the initial pose estimation and the refiner are both Pose-Free, our method achieves average ADD $70.1\%$ with initial pose estimated by AAE (ADD $31.41\%$ ), surpassing the previous state-of-the-art method DPOD's ADD $66.43\%$ with initial pose ADD $50.0\%$ . And on 10 of 13 objects we get a higher score than DPOD despite the relatively lower initial pose score. We bring on average 38.7 percentages ADD improvement on AAE.
+
+To evaluate our method with better initial poses, we also use the results of PoseCNN [38] trained with real 6D pose labels as initial poses. We bring 17.0 percentages improvement on PoseCNN. Our method also surpasses DeepIM-SYN [15], the DeepIM trained with pure synthetic data and initialized with PoseCNN results during test, on both metrics overall. We can also see that on Proj. 2D metric, our method performs better on 12 of 13 objects, which demonstrates the advantage of our design of the 2D mask based reward. We also provide results with DPOD initialization in Sec. 3 of the supplementary material.
+
+# 4.4. Results on T-LESS
+
+To evaluate our method on synthetic-only cases, we train on objects 19-23 of T-LESS dataset. We use AAE [33] with
+
+
+Figure 4. Curve of different reward styles.
+
+ground-truth bounding box as our initial pose for testing. Objects 19-23 are the only objects trained with texture-less models for AAE. Since T-LESS dataset has no real images for training, we use synthetic data for training similar to AAE. The results are shown in Table 2.
+
+| Method Metric | AAE[33] | AAE+Ours |
| Proj. 2D | VSD | Proj. 2D | VSD |
| 19 | 30.65 | 49.95 | 32.79 | 57.39 |
| 20 | 23.51 | 41.87 | 25.40 | 45.29 |
| 21 | 56.55 | 59.06 | 60.58 | 62.50 |
| 22 | 42.99 | 46.08 | 44.78 | 48.02 |
| 23 | 21.88 | 40.38 | 29.32 | 44.44 |
| Mean | 35.12 | 47.47 | 38.57 | 51.53 |
+
+On texture-less objects without real training images, the improvement of metric recall is not as obvious as in LINEMOD due to the large domain gap. However we still get 3.5 percentages improvement on Proj. 2D and 4.1 percentages on the more widely used metric VSD. We believe further improvement can be achieved with the availability of real images with mask annotations, which is much cheaper to obtain than 6D pose annotations.
+
+# 4.5. Ablation study
+
+We do ablation study on the reward style, action style, testing speed and optimization strategy. For each ablation we use several objects from LINEMOD [9] for training and testing. We set batch size to 256, $X_{\mathrm{thr}} = 0.5$ , IoUthr = 0.98, $\alpha = 3.8$ , $\beta = 1.8$ , $\sigma_C = 1$ , $\sigma_G = 2$ , $\lambda_v = 0.5$ , $\lambda_e = 0.001$ . All hyper-parameters are fixed unless otherwise stated.
+
+Reward style. Our basic reward is the IoU Difference Reward $r_I$ . We train on object Iron with the same parameters and training steps using $r_I$ and the additional Goal Reached Reward $r_G$ and the Centralization Reward $r_C$ . Fig. 4 shows the comparison of four reward styles in four eval
+
+uation metrics. Although we can not see obvious difference from the average rotation and translation error since rewards are designed from the mask information, the IoU of $r_{I} + r_{G} + r_{C}$ increases fastest and maintains the highest level, while it has the lowest Proj. 2D error. Comparing $r_{I} + r_{C}$ with $r_{I}$ , $r_{C}$ brings obvious acceleration on the IoU improvement. Although adding $r_{G}$ to $r_{I}$ independently seems bad, it performs well when combined with $r_{C}$ . Therefore in the rest part of our experiment, we all use reward $r_{I} + r_{G} + r_{C}$ .
+
+Table 2. Results on the T-LESS dataset. Accuracy in the left side is calculated from the models provided by the author of AAE [33] and is slightly better than the original reported results.
+
+| Action Style Metric | Continuous | Discrete |
| Proj. 2D | ADD | Proj. 2D | ADD |
| Initial | 14.2 | 35.6 | 14.2 | 35.6 |
| Epoch: 800 | 37.6 | 43.8 | 58.9 | 52.8 |
| Epoch:1600 | 45.7 | 46.7 | 63.3 | 55.4 |
| Epoch:2400 | 57.5 | 56.2 | 75.3 | 70.7 |
| Epoch:3200 | 60.4 | 60.9 | 80.6 | 79.2 |
+
+Table 3. Ablation on action style.
+
+Action style. We train 2 models on the same conditions except that the action styles are continuous and discrete separately and test on the Benchvise object. Table 3 shows the results for different training epochs on the test set. We can tell that discrete action space outperforms continuous one for the whole training procedure, and performs around $20\%$ better in convergence. Discretization makes great contribution to our method.
+
+Effect of refining steps and testing speed. Our experiments were conducted on a desktop with an Intel Core i7 3.60GHz CPU and a NVIDIA GeForce RTX 2080 Ti GPU. We set episode length to 50 for one pose estimation process during training. We find that the object usually gets very close to the target pose in a few steps and keeps motionless in the next steps. Therefore we plot the curve of Proj. 2D accuracy with respect to refining steps in Fig. 6. Curves include 3 objects (Ape, Benchvise, Can) with 2 kinds of initial poses (AAE, PoseCNN). We can see that all objects reach their best accuracy at step 15-20. We summarize the
+
+
+Figure 5. Qualitative results of AAE initial poses [33] and our refined poses on the LINEMOD dataset. The red and green lines represent the contours of the initial poses and our refined poses respectively.
+
+
+Figure 6. The Proj. 2D accuracy with respect to test episode length curves of 3 objects: Ape, Benchvise, Can.
+
+accuracy and test speed(ms per frame) with respect to the episode length using AAE [33] as initial pose in Table 4. Our method is flexible in terms of accuracy and refining
+
+| Ep Length | Ape | Benchvise | Can |
| A | P | A | P | A | P |
| Acc (%) | 0 | 39.0 | 83.1 | 14.2 | 50.0 | 16.8 | 69.6 |
| 5 | 87.0 | 92.0 | 48.2 | 78.4 | 59.8 | 84.8 |
| 10 | 93.0 | 93.4 | 66.1 | 83.9 | 71.6 | 87.5 |
| 20 | 95.2 | 94.0 | 78.4 | 88.9 | 77.7 | 90.0 |
| 50 | 96.9 | 94.2 | 85.1 | 92.7 | 82.6 | 91.1 |
| Time (ms) | 5 | 62 | 64 | 67 | 65 | 68 | 68 |
| 10 | 110 | 114 | 126 | 121 | 128 | 127 |
| 20 | 218 | 220 | 243 | 234 | 245 | 243 |
| 50 | 529 | 534 | 588 | 578 | 588 | 584 |
+
+Table 4. Accuracy and testing time with respect to episode length. 'A' and 'P' denote initial poses from AAE [33] and PoseCNN [38], respectively.
+
+steps. We find that a relatively good pose can be estimated in 20 steps, that is, in about $240\mathrm{ms}$ per frame.
+
+Optimization strategy. We compare the composite optimization strategy with the pure on-policy optimization strategy on objects Ape and Lamp under the same number of samples in Fig. 7. The 4 curves in each figure represent 2 objects with 2 optimization strategies separately. We use the same learning rate $10^{-4}$ for on-policy and off-policy update. The on-policy and off-policy update times are 4:1.
+
+
+Figure 7. Composite optimization strategy (solid line) versus on-policy optimization strategy (dashed line).
+
+
+
+The left and right shows the change of IoU and Proj. 2D error with the number of updated samples. We can tell that for the same object and the same update samples, mixed update rule has higher IoU and lower Proj. 2D error than on-policy update rule, which demonstrates that extra updates on value functions help the policy get an accurate value earlier without more samples acquired from the environment.
+
+For more experiment results such as generalization ability and class-agnostic training, we kindly refer readers to supplementary material.
+
+# 5. Conclusion
+
+In this work we formulate the RGB-based 6D pose estimation problem as an MDP and introduce PFRL framework in a Pose-Free fashion without the need of real-world 6D pose annotations. We design a task-specified 2D mask-based reward which is purely computed from the object mask information and employ a composite reinforced optimization rule to learn the operation policy efficiently and effectively. The experiments demonstrate that our approach is able to achieve the state-of-the-art performance compared with the methods without using real-world ground-truth 6D pose labels on LINEMOD and T-LESS dataset.
+
+# 6. Acknowledgement
+
+This work was supported by the National Key R&D Program of China under Grant 2018AAA0102800 and 2018AAA0102801.
+
+# References
+
+[1] Paul J Besl and Neil D McKay. Method for registration of 3-d shapes. In Sensor fusion IV: control paradigms and data structures, volume 1611, pages 586-606. International Society for Optics and Photonics, 1992.
+[2] 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.
+[3] Eric Brachmann, Frank Michel, Alexander Krull, Michael Ying Yang, Stefan Gumhold, et al. Uncertainty-driven 6d pose estimation of objects and scenes from a single rgb image. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3364-3372, 2016.
+[4] Xiaozhi Chen, Huimin Ma, Ji Wan, Bo Li, and Tian Xia. Multi-view 3d object detection network for autonomous driving. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1907-1915, 2017.
+[5] Alvaro Collet, Manuel Martinez, and Siddhartha S Srinivasa. The moped framework: Object recognition and pose estimation for manipulation. The International Journal of Robotics Research, 30(10):1284-1306, 2011.
+[6] Alexey Dosovitskiy, Philipp Fischer, Eddy Ilg, Philip Hausser, Caner Hazirbas, Vladimir Golkov, Patrick Van Der Smagt, Daniel Cremers, and Thomas Brox. Flownet: Learning optical flow with convolutional networks. In Proceedings of the IEEE international conference on computer vision, pages 2758-2766, 2015.
+[7] Lasse Espeholt, Hubert Soyer, Remi Munos, Karen Simonyan, Volodymyr Mnih, Tom Ward, Yotam Doron, Vlad Firoiu, Tim Harley, Iain Dunning, et al. Impala: Scalable distributed deep-rl with importance weighted actor-learner architectures. In International Conference on Machine Learning, pages 1406–1415, 2018.
+[8] 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.
+[9] 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, pages 548-562. Springer, 2012.
+[10] Tomás Hodan, Pavel Haluza, Štepan Obdržálek, Jiri Matas, Manolis Lourakis, and Xenophon Zabulis. T-less: An rgb-d dataset for 6d pose estimation of texture-less objects. In 2017 IEEE Winter Conference on Applications of Computer Vision (WACV), pages 880-888. IEEE, 2017.
+[11] Tomás Hodań, Jiří Matas, and Štepan Obdržálek. On evaluation of 6d object pose estimation. In European Conference on Computer Vision, pages 606-619. Springer, 2016.
+[12] 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.
+[13] Alexander Krull, Eric Brachmann, Sebastian Nowozin, Frank Michel, Jamie Shotton, and Carsten Rother. Poseagent: Budget-constrained 6d object pose estimation via reinforcement learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6702-6710, 2017.
+[14] Vincent Lepetit, Francesc Moreno-Noguer, and Pascal Fua. Epnp: An accurate o (n) solution to the pnp problem. International journal of computer vision, 81(2):155, 2009.
+[15] 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.
+[16] Zhigang Li, Gu Wang, and Xiangyang Ji. Cdpn: Coordinates-based disentangled pose network for real-timergb-based 6-dof object pose estimation. In The IEEE International Conference on Computer Vision (ICCV), October 2019.
+[17] Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, and Alexander C Berg. Ssd: Single shot multibox detector. In European conference on computer vision, pages 21-37. Springer, 2016.
+[18] Fabian Manhardt, Diego Martin Arroyo, Christian Rupprecht, Benjamin Busam, Tolga Birdal, Nassir Navab, and Federico Tombari. Explaining the ambiguity of object detection and 6d pose from visual data. In Proceedings of the IEEE International Conference on Computer Vision, pages 6841-6850, 2019.
+[19] Fabian Manhardt, Wadim Kehl, and Adrien Gaidon. Roi10d: Monocular lifting of 2d detection to 6d pose and metric shape. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2069-2078, 2019.
+[20] Fabian Manhardt, Wadim Kehl, Nassir Navab, and Federico Tombari. Deep model-based 6d pose refinement in rgb. In Proceedings of the European Conference on Computer Vision (ECCV), pages 800-815, 2018.
+[21] Eric Marchand, Hideaki Uchiyama, and Fabien Spindler. Pose estimation for augmented reality: a hands-on survey. IEEE transactions on visualization and computer graphics, 22(12):2633-2651, 2015.
+[22] Stefan Mathe, Aleksis Pirinen, and Cristian Sminchisescu. Reinforcement learning for visual object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2894-2902, 2016.
+[23] David Nister. Preemptive ransac for live structure and motion estimation. Machine Vision and Applications, 16(5):321-329, 2005.
+[24] Georgios Pavlakos, Xiaowei Zhou, Aaron Chan, Konstantinos G Derpanis, and Kostas Daniilidis. 6-dof object pose from semantic keypoints. In 2017 IEEE International Conference on Robotics and Automation (ICRA), pages 2011-2018. IEEE, 2017.
+[25] Sida Peng, Yuan Liu, Qixing Huang, Xiaowei Zhou, and Hu-jun Bao. Pynet: Pixel-wise voting network for 6dof pose estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4561-4570, 2019.
+
+[26] Arul Selvam Periyasamy, Max Schwarz, and Sven Behnke. Refining 6d object pose predictions using abstract render-and-compare. In IEEE-RAS International Conference on Humanoid Robots (Humanoids), 2019.
+[27] Martin L Puterman. Markov Decision Processes.: Discrete Stochastic Dynamic Programming. John Wiley & Sons, 2014.
+[28] Deirdre Quillen, Eric Jang, Ofir Nachum, Chelsea Finn, Julian Ibarz, and Sergey Levine. Deep reinforcement learning for vision-based robotic grasping: A simulated comparative evaluation of off-policy methods. In 2018 IEEE International Conference on Robotics and Automation (ICRA), pages 6284-6291. IEEE, 2018.
+[29] 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 Proceedings of the IEEE International Conference on Computer Vision, pages 3828-3836, 2017.
+[30] Liangliang Ren, Xin Yuan, Jiwen Lu, Ming Yang, and Jie Zhou. Deep reinforcement learning with iterative shift for visual tracking. In Proceedings of the European Conference on Computer Vision (ECCV), pages 684-700, 2018.
+[31] John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
+[32] Juil Sock, Guillermo Garcia-Hernando, and Tae-Kyun Kim. Active 6d multi-object pose estimation in cluttered scenarios with deep reinforcement learning, 2019.
+[33] Martin Sundermeyer, Zoltan-Csaba Marton, Maximilian Durner, Manuel Brucker, and Rudolph Triebel. Implicit 3d orientation learning for 6d object detection from rgb images. In Proceedings of the European Conference on Computer Vision (ECCV), pages 699-715, 2018.
+[34] James Supancic III and Deva Ramanan. Tracking as online decision-making: Learning a policy from streaming videos with reinforcement learning. In Proceedings of the IEEE International Conference on Computer Vision, pages 322-331, 2017.
+[35] Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. 2011.
+[36] 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.
+[37] 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 Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2642-2651, 2019.
+[38] Yu Xiang, Tanner Schmidt, Venkatraman Narayanan, and Dieter Fox. PoseCNN: A convolutional neural network for 6D object pose estimation in cluttered scenes. Robotics: Science and Systems (RSS), 2018.
+[39] Sangdoo Yun, Jongwon Choi, Youngjoon Yoo, Kimin Yun, and Jin Young Choi. Action-decision networks for visual tracking with deep reinforcement learning. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2711-2720, 2017.
+
+[40] Sergey Zakharov, Ivan Shugurov, and Slobodan Ilic. Dpod: 6d pose object detector and refiner. In Proceedings of the IEEE International Conference on Computer Vision, pages 1941-1950, 2019.
+[41] Xingyi Zhou, Arjun Karpur, Linjie Luo, and Qixing Huang. Starmap for category-agnostic keypoint and viewpoint estimation. In Proceedings of the European Conference on Computer Vision (ECCV), pages 318–334, 2018.
+[42] Yizhou Zhou, Xiaoyan Sun, Zheng-Jun Zha, and Wenjun Zeng. Context-reinforced semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4046-4055, 2019.
+[43] Menglong Zhu, Konstantinos G Derpanis, Yinfei Yang, Samarth Brahmbhatt, Mabel Zhang, Cody Phillips, Matthieu Lecce, and Kostas Daniilidis. Single image 3d object detection and pose estimation for grasping. In 2014 IEEE International Conference on Robotics and Automation (ICRA), pages 3936-3943. IEEE, 2014.
\ No newline at end of file
diff --git a/pfrlposefreereinforcementlearningfor6dposeestimation/images.zip b/pfrlposefreereinforcementlearningfor6dposeestimation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..491d2c097fce53c4631582a94b849903d55580c4
--- /dev/null
+++ b/pfrlposefreereinforcementlearningfor6dposeestimation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:608c64f70ffe50f72ba72cd562bb19f15e3e6938004d82164fca0b21fcbd6788
+size 564865
diff --git a/pfrlposefreereinforcementlearningfor6dposeestimation/layout.json b/pfrlposefreereinforcementlearningfor6dposeestimation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..1af61e54692dbe2ae0a0242ce0015e30cf870c63
--- /dev/null
+++ b/pfrlposefreereinforcementlearningfor6dposeestimation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:67dab2f7a74dd4c46f7dde4c11a5a724d6ff8073b1717b10a7ad2f66d6ee1538
+size 399245
diff --git a/phaseconsistentecologicaldomainadaptation/5bba3240-e193-4c7a-a171-584800a49dfc_content_list.json b/phaseconsistentecologicaldomainadaptation/5bba3240-e193-4c7a-a171-584800a49dfc_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..b927696a86c8cb6f1b485fdc0d1fc514954e9179
--- /dev/null
+++ b/phaseconsistentecologicaldomainadaptation/5bba3240-e193-4c7a-a171-584800a49dfc_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dbec1131d85fe767984a0781c03401ef58c441e58d007a82af33f9e4b55faeaa
+size 84740
diff --git a/phaseconsistentecologicaldomainadaptation/5bba3240-e193-4c7a-a171-584800a49dfc_model.json b/phaseconsistentecologicaldomainadaptation/5bba3240-e193-4c7a-a171-584800a49dfc_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..f9a1ba6c9744c1e092c7e249e729025d2453624b
--- /dev/null
+++ b/phaseconsistentecologicaldomainadaptation/5bba3240-e193-4c7a-a171-584800a49dfc_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4f26c25cd417b5f42c16a3bf7320bb833f010d4a93caeb83661869e24ae3714c
+size 102311
diff --git a/phaseconsistentecologicaldomainadaptation/5bba3240-e193-4c7a-a171-584800a49dfc_origin.pdf b/phaseconsistentecologicaldomainadaptation/5bba3240-e193-4c7a-a171-584800a49dfc_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..a022ef275487393cf6815fab6ae56dc59e1b55df
--- /dev/null
+++ b/phaseconsistentecologicaldomainadaptation/5bba3240-e193-4c7a-a171-584800a49dfc_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c3858934d334550f273e3cc8d3bcb098c336b29ffa2be8dd625e24a834f77542
+size 1829123
diff --git a/phaseconsistentecologicaldomainadaptation/full.md b/phaseconsistentecologicaldomainadaptation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..8d714033f834f6ca95a96a4a50ad1b7fd5a3864b
--- /dev/null
+++ b/phaseconsistentecologicaldomainadaptation/full.md
@@ -0,0 +1,315 @@
+# Phase Consistent Ecological Domain Adaptation
+
+Yanchao Yang*
+UCLA Vision Lab
+
+Dong Lao* KAUST
+
+Ganesh Sundaramoorthi
+KAUST & UTRC
+
+Stefano Soatto
+UCLA Vision Lab
+
+# Abstract
+
+We introduce two criteria to regularize the optimization involved in learning a classifier in a domain where no annotated data are available, leveraging annotated data in a different domain, a problem known as unsupervised domain adaptation. We focus on the task of semantic segmentation, where annotated synthetic data are aplenty, but annotating real data is laborious. The first criterion, inspired by visual psychophysics, is that the map between the two image domains be phase-preserving. This restricts the set of possible learned maps, while enabling enough flexibility to transfer semantic information. The second criterion aims to leverage ecological statistics, or regularities in the scene which are manifest in any image of it, regardless of the characteristics of the illuminant or the imaging sensor. It is implemented using a deep neural network that scores the likelihood of each possible segmentation given a single unannotated image. Incorporating these two priors in a standard domain adaptation framework improves performance across the board in the most common unsupervised domain adaptation benchmarks for semantic segmentation.1
+
+# 1. Introduction
+
+Unsupervised domain adaptation (UDA) aims to leverage an annotated "source" dataset in designing learning schemes for a "target" dataset for which no ground-truth is available. This problem arises when annotations are easy to obtain in one domain (e.g., synthetic images) but expensive in another (e.g., real images), and is exacerbated in tasks where the annotation is laborious, as in semantic segmentation where each pixel in an image is assigned one of $K$ labels. If the two datasets are sampled from the same distribution, this is a standard semi-supervised learning problem. The twist in UDA is that the distributions from which source and target data are drawn differ enough that a model trained on the former performs poorly, out-of-the-box, on the latter.
+
+Typical domain adaptation work employing deep neu
+
+
+Figure 1. Semantic content is mainly carried by the phase component of the Fourier Transform. Replacing the amplitude component of the image depicting a panda by the amplitude from other images within a wide range, will not prevent us from recognizing a panda in the images generated by the inverse Fourier Transform.
+
+ral networks (DNNs) proceeds by either learning a map that aligns the source and target (marginal) distributions, or by training a backbone to be insensitive to the domain change through an auxiliary discrimination loss for the domain variable. Either way, these approaches operate on the marginal distributions, since the labels are not available in the target domain. However, the marginals could be perfectly aligned, yet the labels could be scrambled: Trees in one domain could map to houses in another, and vice-versa. Since we want to transfer information about the classes, ideally we would want to align the class-conditional distributions, which we do not have. Recent improvements in UDA, for instance cycle-consistency, only enforce the invertibility of the map, but not preservation of semantic information such as the class identity, see Fig. 2. Since the problem is ill-posed, constraints or prior have to be enforced in UDA.
+
+We introduce two priors or constraints, one on the map between the domains, the other on the classifier in the target domain, both unknown at the outset.
+
+For the map between domains, we know from visual psychophysics that semantic information in images tends to be associated with the phase of its Fourier transform. Changes in the amplitude of the Fourier transform can significantly alter the appearance but not the interpretation of the image.
+
+This suggests placing an incentive for the transformation between domains to be phase-preserving. Indeed, we show from ablation studies that imposing phase consistency improves the performance of current UDA models.
+
+For the classifier in the target domain, even in the absence of annotations, a target image informs the set of possible hypotheses (segmentations), due to the statistical regularities of natural scenes (ecological statistics, [3, 11]). Semantic segments are unlikely to straddle many boundaries in the image plane, and their shape is unlikely to be highly irregular due to the regularity of the shape of objects in the scene. Such generic priors, informed by each single un-annotated images, could be learned from other (annotated) images and transfer across image domains, since they arise from properties of the scene they portray. We use a Conditional Prior Network [42] to learn a data-dependent prior on segmentations that can be imposed in an end-to-end framework when learning a classifier in the target domain in UDA.
+
+These two priors yield improvement in UDA benchmarks. We conduct ablation studies to quantify the effect of each prior on the overall performance of learned classifiers (segmentation networks).
+
+In the next section, we describe current approaches to UDA and then describe our method, which is summarized in Sect. 2.5, before testing it empirically in Sect. 3.
+
+# 1.1. Related Work
+
+Early works on UDA mainly focus on image classification [15, 12, 1], by minimizing a discrepancy measure between two domains [14]. Recent methods apply adversarial learning [13, 39] for classification, by instantiating a discriminator that encourages the alignment in feature space [33, 23, 35]. Unfortunately, none of these methods achieves the same success on semantic segmentation tasks.
+
+Recent progress in image-to-image transformation techniques [46, 25] aligns domains in image space, with some benefit to semantic segmentation [20, 19]. [20] is the first UDA semantic segmentation method utilizing both global and categorical adaptation techniques. CyCADA [19] adapts representations in both image and feature space while enforcing cycle-consistency to regularize the image transformation network. [32] also applies image alignment by projecting the learned intermediate features into the image space. [45] proposes curriculum learning to gradually minimize the domain gap using anchor points. [41] reduces domain shift at both image and feature levels by aligning statistics in each channel of CNN feature maps in order to preserve spatial structures. [16] generates a sequence of intermediate shifted domains from source to target to further improve the transferability by providing multi-style translations. [26] introduces a category-level adversarial network to prevent the degeneration of well-aligned categories dur
+
+ing global alignment. [21] conditions on both source images and random noise to produce samples that appear similar to the target. Despite the difficulty in training the domain discriminators, generally, the alignment criteria provided by the domain discriminators do not guarantee consistency of the semantic content between the original and transformed images. In addition to cycle-consistency, [24, 8] propose using the segmentation network on the target domain to encourage better semantic consistency. However, this will make the performance depend highly on the employed surrogate network.
+
+In psychophysics, [28] demonstrates that certain phase modifications can hinder or prevent the recognition of visual scenes. [27] shows that many important features of a signal can be preserved by the phase component of the Fourier Transform, and under some conditions a signal can be completely reconstructed with only the phase. Moreover, [17] shows psychophysically that the Fourier phase spectrum plays a critical role in human vision. The concurrent work [43] shows that swapping the amplitude component of an image with one from the other domain preserves the semantic content while aligning the two domains. With all these observations, we propose to use phase to provide an effective semantic consistency constraint that does not depend on any surrogate networks.
+
+Besides discriminators applied to the image or in feature space, [37, 38] find that adaptation on the structured output space is also beneficial for semantic segmentation. [7] proposes spatially-aware adaptation along with target guided distillation using activation supervision with a pretrained classification network. Further, [6] proposes a geometrically guided adaptation aided with depth in a multitask learning framework. [4] extracts the domain invariant structure from the image to disentangle images into domain invariant structure and domain-specific variations. [47] performs iterative class-balanced self-training as well as refinement of the generated pseudo-labels using a spatial prior. A similar strategy is also applied in [24, 38]. [40] approaches UDA for semantic segmentation by entropy minimization of the pixel-wise predictions. An adversarial loss on the entropy map is also used to introduce regularity in the output space. However, none of them explicitly models the scene compatibility that regularizes the training of the target domain segmentation network.
+
+# 2. Method
+
+We first describe general image translation for unsupervised domain adaptation (UDA) and how it is used in semantic segmentation. We point to some drawbacks as inspiration for the two complementary constraints, which we introduce in Sect. 2.3 and 2.4, and incorporate into a model of UDA for semantic segmentation in Sect. 2.5, which we validate empirically in Sect. 3.
+
+
+Image
+Cycle Consistency
+Phase Consistency
+Figure 2. Cycle consistency does not guarantee semantic consistency, but phase does. Note the sky is transformed to trees (1st row), the cloud is transformed to a mountain (2nd row), and the buildings are also transformed to trees (3rd row) even if cycle consistency is enforced. Phase consistency enforces the semantic information to be preserved and provides enough flexibility to align the two domains.
+
+# 2.1. Preliminaries: Image Translation for UDA
+
+We consider two probabilities, a source $P^s$ and a target $P^\tau$ , which are generally different (covariate shift), as measured by the Kullbach-Liebler divergence $KL(P^s ||P^\tau)$ . In UDA, we are given ground-truth annotation in the source domain only. So, if $x \in \mathbb{R}^{H \times W \times 3}$ are color images, and $y \in [1, \dots, K]^{H \times W}$ are segmentation masks where each pixel has an associated label, we have images and segmentations in the source domain, $D^s = \{(x_i^s, y_i^s) \sim P^s(x, y)\}_{i=1}^{N_s}$ but only images in the target domain, $\{x_i^\tau \sim P^\tau(x)\}_{i=1}^{N_\tau}$ . The goal of UDA for semantic segmentation is to train a model $\phi^\tau$ , for instance a deep neural network (DNN), that maps target images to estimated segmentations, $x^\tau \mapsto \hat{y}^\tau = \arg \max_y \phi^\tau(x^\tau)_y$ , leveraging source domain annotations. Because of the covariate shift, simply applying to the target data a model trained on the source generally yields disappointing results. As observed in [2], the upper bound on the target domain risk can be minimized by reducing the gap between two distributions. Any invertible map $T$ between samples in the source and target domains, for instance $x^s \mapsto T(x^s)$ induces a (pushforward) map between their distributions $P^s \mapsto T_*P^s$ where $T_*P^s(x^\tau) = P^s(T^{-1}(x^\tau))$ . The map can be implemented by a "transformer" network, and the target domain risk is minimized by the cross-entropy loss, whose empirical approximation is:
+
+$$
+\mathcal {L} _ {c e} \left(\phi^ {\tau}, T; D ^ {s}\right) = \sum_ {\left(x _ {i}, y _ {i}\right) \in D ^ {s}} - \log \left[ \phi^ {\tau} \left(T \left(x _ {i}\right)\right) \right] _ {y _ {i}} \tag {1}
+$$
+
+where $T$ maps data sampled from the source distribution to the target domain. The gap is measured by $KL(P^{\tau}||T_{*}P^{s})$ , and can be minimized by (adversarily) maximizing the domain confusion, as measured by a domain discriminator
+
+$\theta$ that maps each image into the probability of it coming from the source or target domains:
+
+$$
+\mathcal {L} _ {D} (\theta , T; x _ {i} ^ {s}) = - \log [ \theta (T (x _ {i} ^ {s})) ]. \tag {2}
+$$
+
+Ideally, $\theta$ returns 1 for images drawn from the target $P^{\tau}$ , and 0 otherwise.
+
+# 2.2. Limitations and Challenges
+
+Ideally, jointly minimizing the two previous equations would yield a segmentation model that operates in the target domain, producing estimated segmentations $y^{\tau} = \phi (x^{\tau})$ . Unfortunately, a transformation network $T$ trained by minimizing Eq. (2) does not yield a good target domain classifier, as $T$ is only asked by Eq. (2) to match the marginals, which it could do while scrambling all labels (images of class $i$ in the source can be mapped to images of class $j$ in the target). In other words, the transformation network can match the image statistics, but there is nothing that encourages it to match semantics. Cycle-consistency [46, 19] does not address this issue, as it only enforces the invertibility of $T$ :
+
+$$
+\mathcal {L} _ {c y c} (T, T ^ {- 1}; x _ {i} ^ {s}) = \left\| x _ {i} ^ {s} - T ^ {- 1} \circ T \left(x _ {i} ^ {s}\right) \right\| _ {1}. \tag {3}
+$$
+
+Even after imposing this constraint, buildings in the source domain could be mapped to trees in the target domain, and vice-versa (Fig. 2). Ideally, if $\phi^s$ is a model trained on the source, and $\phi^\tau$ the one operating on the target, we would like:
+
+$$
+\phi^ {s} \left(x _ {i} ^ {s}\right) = \phi^ {\tau} \left(T \left(x _ {i} ^ {s}\right)\right), \forall i. \tag {4}
+$$
+
+Unfortunately, training $\phi^{\tau}$ would require ground-truth in the target domain, which is unknown. We could use $\phi^s$ as a surrogate, apply $\phi^s$ on the target domain, and penalize the discrepancy between the two sides in Eq. (4) with respect to the unknowns. Absent any regularization, this yields the trivial result where $T(x) = x$ and $\phi^{\tau} = \phi^{s}$ . While Eq. (4) is useless in providing information on $T$ and $\phi^{\tau}$ , it can be seen as a vehicle to transfer prior information from one (e.g., $T$ ) onto the other (e.g., $\phi^{\tau}$ ). In the next two sections we discuss additional constraints and priors that can be imposed on $T$ (Sect. 2.3) and $\phi^{\tau}$ (Sect. 2.4) that make the above constraint non-trivial, and usable in the context of UDA.
+
+# 2.3. Phase Consistency
+
+It is well known in perceptual psychology that manipulating the spectrum of an image can lead to different effects: Changes in the amplitude of the Fourier transform alters the image but does not affect its interpretation, whereas altering the phase produces uninterpretable images [22, 28, 27, 17]. This is illustrated in Fig. 1, where the amplitude of the Fourier transform of an image of a panda is replaced with the amplitude from an image of a bear, a tourist landmark and a landscape, yet the reconstructed images portray a panda. In other words, it appears that semantic information
+
+is included in the phase, not the amplitude, of the spectrum. This motivates us to hypothesize that the transformation $T$ should be phase-preserving.
+
+To this end, let $\mathcal{F}:\mathbb{R}^{H\times W}\to \mathbb{R}^{H\times W\times 2}$ be the Fourier Transform. Phase consistency, for a transformation $T$ , for a single channel image $x$ , is obtained by minimizing:
+
+$$
+\mathcal {L} _ {p h} (T; x) = - \sum_ {j} \frac {\langle \mathcal {F} (x) _ {j} , \mathcal {F} (T (x)) _ {j} \rangle}{\| \mathcal {F} (x) _ {j} \| _ {2} \cdot \| \mathcal {F} (T (x)) _ {j} \| _ {2}} \tag {5}
+$$
+
+where $\langle ,\rangle$ is the dot-product, and $\| \cdot \| _2$ is the $L_{2}$ norm. Note that Eq. (5) is the negative cosine of the difference between the original and the transformed phases, thus, by minimizing Eq. (5) we can directly minimize their difference and increase phase consistency. We demonstrate the effectiveness of phase consistency in the ablation studies in Sect. 3.
+
+# 2.4. Prior on Scene Compatibility
+
+While target images have no ground-truth labeling, not all semantic segmentations are equally likely at the outset. Given an unlabeled image, we may not know what classes $\{1,\dots ,K\}$ may interest a user, but we do know that objects in the scene have certain regularities, so it is unlikely that photometrically homogeneous regions are segmented into many pieces, or that a class segment straddles many image boundaries. It is also unlikely that the segmented map is highly irregular. These characteristics inform the probability of a segmentation given the image in the target domain, $Q(\phi (x)|x)$ . $Q$ can be thought of as a function that scores each hypothesis $\phi (x)$ based on the plausibility of the resulting segmentation given the input image $x$ . The function can be learned using images for which the ground-truth segmentation is given, for instance the source dataset $D^{s}$ , and then used at inference time as a scoring function. Such a scoring function can be implemented by a Conditional Prior Network (CPN) [42]. However, note that $D^{s} = \{(x_{i}^{s},y_{i}^{s})\}$ is sampled from $P^{s}(x,y)$ . Simply training a CPN with $D^{s}$ will make $Q(y|x)$ approximate $P^{s}(y|x)^{2}$ , making the exercise moot. The CPN would capture both the domain-related unary prediction term and the domain irrelevant pairwise term that depends on the image structure. To make this point explicit, we can decompose $P^{s}(y|x)$ as follows:
+
+$$
+P ^ {s} (y | x) \approx \prod_ {j} P ^ {s} \left(y _ {j} | x\right) \prod_ {m < n} P \left(y _ {m} = y _ {n} | x\right) \tag {6}
+$$
+
+where we omit higher-order terms for simplicity. The unary terms $P^{s}(y_{j}|x)$ measure the likelihood of the semantic label of a single pixel given the image; e.g., pixels in a white region indicate sky in the source domain, which depends highly on the domains. The pairwise terms $P(y_{m} = y_{n}|x)$
+
+
+Figure 3. CPN Architecture. To reconstruct the segmentation map that is encoded into a narrow bottleneck, the decoder needs to leverage structural information from the image. The CPN reconstructs better the prediction $\phi(x)$ with higher compatibility with $x$ . Labels are randomly permuted during training to avoid overfitting to the domain dependent unary prediction terms in Eq. (6).
+
+measure the labeling compatibility between pixels, which would depend much less on the domain; $e.g.$ , pixels in a white region may not be sky in the target domain, but they should be labeled the same. Absent at least binary terms, the unary terms would lead to overfitting the source domain. To prevent this, we randomly permute the labels in $y^{s}$ according to a uniform distribution:
+
+$$
+y ^ {s} \mid_ {y ^ {s} = i} = \mathrm {P M} ^ {K} (i) \tag {7}
+$$
+
+where $\mathrm{PM}^K$ is a random permutation of the class ID's for $K$ classes, and we denote the permuted semantic segmentation masks as $\hat{y}^{s}$ , which scales the original dataset up in size by a factor of $K!$ . We denote the new source dataset with permuted ground-truth masks as $\hat{D}^{s}$ , which will render the conditional distribution invariant to the domain-dependent unaries, i.e.:
+
+$$
+\hat {P} ^ {s} (y | x) \approx \prod_ {m < n} P \left(y _ {m} = y _ {n} \mid x\right) \tag {8}
+$$
+
+Note, $\hat{P}^s (y|x)$ only evaluates the compatibility based on the segmentation layout but not the semantic meanings. Thus, we train a CPN $Q$ using the following training loss [42] with an information capacity constraint:
+
+$$
+\min _ {Q} \mathbb {E} _ {x} K L \left(\hat {P} ^ {s} (y | x), Q (y | x)\right) + \beta \mathbb {I} \left(y, Q ^ {e} (y)\right) \tag {9}
+$$
+
+where $\mathbb{I}$ denotes the mutual information between $y$ and its CPN encoding $Q^{e}(y)$ . Then, we obtain a compatibility function
+
+$$
+Q (y | x) \approx \prod_ {m < n} P \left(y _ {m} = y _ {n} \mid x\right) \tag {10}
+$$
+
+The proposed CPN architecture is illustrated in Fig. 3 and the training details, including the encoding metric, is described in Sect. 3. We now summarize the overall training loss, that exploits regularities implied by each constraint.
+
+| Architecture | SSL | CPN | road | sidewalk | building | wall | fence | pole | light | sign | vegetation | terrain | sky | person | rider | car | truck | bus | train | motorcycle | bicycle | mIoU |
| A | | | 88.2 | 41.3 | 83.2 | 28.8 | 21.9 | 31.7 | 35.2 | 28.2 | 83.0 | 26.2 | 83.2 | 57.6 | 27.0 | 77.1 | 27.5 | 34.6 | 2.5 | 28.3 | 36.1 | 44.3 |
| A | | ✓ | 91.4 | 47.2 | 82.9 | 29.2 | 22.9 | 31.4 | 33.3 | 30.2 | 80.8 | 27.8 | 81.3 | 59.1 | 27.7 | 84.4 | 31.5 | 40.9 | 3.2 | 30.2 | 24.5 | 45.3 |
| A | | ✓ | 91.2 | 46.1 | 83.9 | 31.6 | 20.6 | 29.9 | 36.4 | 31.9 | 85.0 | 39.7 | 84.7 | 57.5 | 29.6 | 83.1 | 38.8 | 46.9 | 2.5 | 27.5 | 38.2 | 47.6 |
| A | | ✓ | 91.3 | 48.2 | 85.0 | 39.4 | 26.1 | 32.4 | 37.4 | 40.7 | 84.9 | 41.9 | 83.0 | 59.8 | 30.2 | 83.6 | 40.0 | 46.1 | 0.1 | 31.7 | 43.3 | 49.7 |
| B | | | 86.4 | 39.5 | 79.2 | 27.4 | 24.3 | 23.4 | 29.0 | 18.0 | 80.5 | 33.2 | 70.1 | 47.2 | 18.1 | 75.4 | 20.6 | 23.3 | 0.0 | 16.1 | 5.4 | 37.7 |
| B | | ✓ | 86.0 | 39.9 | 80.6 | 32.3 | 21.9 | 21.6 | 29.5 | 23.9 | 83.1 | 37.5 | 75.9 | 53.2 | 24.4 | 79.3 | 22.8 | 32.4 | 0.9 | 13.9 | 18.9 | 40.9 |
| B | | ✓ | 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 |
| B | | ✓ | 90.1 | 44.7 | 81.0 | 29.3 | 26.4 | 20.9 | 33.7 | 34.3 | 83.4 | 37.4 | 71.2 | 54.0 | 27.4 | 79.9 | 23.7 | 39.6 | 1.1 | 18.5 | 22.6 | 43.1 |
| C | | | 79.1 | 33.1 | 77.9 | 23.4 | 17.3 | 32.1 | 33.3 | 31.8 | 81.5 | 26.7 | 69.0 | 62.8 | 14.7 | 74.5 | 20.9 | 25.6 | 6.9 | 18.8 | 20.4 | 39.5 |
| C | | ✓ | 89.1 | 41.4 | 81.2 | 22.2 | 15.3 | 34.0 | 35.0 | 37.1 | 84.8 | 32.1 | 76.2 | 61.7 | 12.5 | 82.1 | 20.8 | 25.2 | 7.3 | 15.6 | 18.9 | 41.7 |
+
+Table 1. The learned Scene Compatibility improves segmentation accuracy. Training the segmentation model with the learned scene compatibility $Q$ improves segmentation accuracy under all experimental settings, with different network backbones: A: ResNet-101, B: VGG-16, C: DRN-26. SSL: Self-supervised Learning. Note that whenever $Q$ is added in the training loss while the other terms are fixed, the overall semantic segmentation performance gets improved.
+
+# 2.5. Overall Training Loss
+
+Combining the adversarial losses and our novel constraints for both phase consistency and scene compatibility, we have the overall training loss for the proposed domain adaptation method for training the image transformation networks $T$ , $T^{-1}$ and the target domain segmentation network $\phi^{\tau}$ :
+
+$$
+\begin{array}{l} \mathcal {L} \left(\phi^ {\tau}, T, T ^ {- 1}; \theta^ {s}, \theta^ {\tau}, x _ {i} ^ {s}, y _ {i} ^ {s}, x _ {i} ^ {\tau}\right) = \\ \lambda_ {D} \left(\mathcal {L} _ {D} \left(\theta^ {\tau}, T; x _ {i} ^ {s}\right) + \mathcal {L} _ {D} \left(\theta^ {s}, T ^ {- 1}; x _ {i} ^ {\tau}\right)\right) \\ + \lambda_ {c y c} \left(\mathcal {L} _ {c y c} \left(T, T ^ {- 1}; x _ {i} ^ {s}\right) + \mathcal {L} _ {c y c} \left(T ^ {- 1}, T; x _ {i} ^ {\tau}\right)\right) \\ + \lambda_ {p h} \left(\mathcal {L} _ {p h} (T; x _ {i} ^ {s}) + \mathcal {L} _ {p h} \left(T ^ {- 1}; x _ {i} ^ {\tau}\right)\right) \\ \mathcal {L} _ {c e} \left(\phi^ {\tau}, T; x _ {i} ^ {s}, y _ {i} ^ {s}\right) - \lambda_ {c p n} \log \left[ Q \left(\phi^ {\tau} \left(x _ {i} ^ {\tau}\right) \mid x _ {i} ^ {\tau}\right) \right] \tag {11} \\ \end{array}
+$$
+
+with $\lambda$ 's the corresponding weights on each term (hyperparameters), whose values will be reported in Sect.3. Note when training $\phi^{\tau}$ using Eq. (11), we do not permute its output to evaluate the scene compatibility term. And the scene compatibility $Q$ is fixed after it is trained using Eq. (9). We follow the standard procedure in [19, 24] to train the domain discriminators.
+
+# 3. Experiments
+
+We evaluate the proposed UDA method on synthetic-to-real semantic segmentation tasks, where the source images (GTA5 [9] and Synthia [31]) and corresponding annotations are generated using graphics engines, and the adapted segmentation models are tested on real-world images. We use average intersection-over-union score (mIoU) across semantic classes as the evaluation metric in all experiments. Moreover, the frequency weighted IoU (fwIoU), which is the sum of the IoUs of different classes but weighted by how frequent a certain class appears in the dataset, is calculated and compared in the GTA5-to-Cityscapes experiments.
+
+We first describe the data used for training and the implementation details, followed by a comprehensive ablation study demonstrating the effectiveness of each proposed component in our method. Then we show quantitative and qualitative comparisons against the state-of-the-art methods, using networks with different backbones, on the GTA5-to-Cityscapes and Synthia-to-Cityscapes benchmarks.
+
+# 3.1. Datasets
+
+Cityscapes [9] is a real-world semantic segmentation dataset containing 2975 street view training images and 500 validation images with original resolution $2048 \times 1024$ , which is resized to $1024 \times 512$ for training. The images are collected during the day in multiple European cities and densely annotated. We train the image transformation network and the adapted segmentation network using the training set, and report the result on the validation set.
+
+GTA5 [29] contains 24966 synthesized images from the Grand Theft Auto game with resolution $1914 \times 1052$ . It exhibits a wide range of variations including weather and illumination. We resize the images to $1280 \times 720$ and use the 19 compatible classes for the training and evaluation.
+
+Synthia [31] is a synthetic dataset focusing on driving scenarios rendered from a virtual city. We use the SYNTHIA-RAND-CITYSCAPES subset as source data, which contains 9400 images with the resolution of $1280 \times 760$ for training the 16 common classes with Cityscapes, and we evaluate the trained network using both the 16 classes or a subset of 13 classes following previous works [37, 24, 10].
+
+# 3.2. Implementation Details
+
+Image Transformation Network: We adapt the public CycleGAN [46] framework, and use the "cycle-gan" model therein. We set $\lambda_{D} = 1.0$ , $\lambda_{cyc} = 10.0$ and $\lambda_{ph} = 5.0$ for training the image transformation networks $T, T^{-1}$ . Images
+
+| Method | Surrogate | Output Space | mIoU |
| CyCADA [19] | ✓ | | 43.5 |
| ✓ | ✓ | 43.1 |
| AdaptSegNet [37] | ✓ | | 36.6 |
| ✓ | ✓ | 39.3 |
| ✓ | ✓ | 42.4 |
| BDL [24] | ✓* | ✓ | 41.1 |
| ✓† | ✓ | 42.7 |
| ✓ | 44.4 |
| Ours | | ✓ | 44.8 |
| | | 45.3 |
+
+Table 2. Phase consistency (ours) achieves better performance.
+
+Note our model trained only with the phase consistency outperforms other methods that utilize a surrogate network to impose semantic consistency (Surrogate), or employ output space regularization (Output Space). \* and $\dagger$ : first and second round of improved image transformation using a self-trained surrogate network.
+
+from source and target domains are resized to $1024 \times 512$ and then cropped to $452 \times 452$ before feeding into the network. We set the batch-size to 1.0 and use "resnet_9blocks" as the backbone.
+
+Conditional Prior Network: We adopt the standard UNet [30] architecture, and add the segmentation encoder branch. We instantiate 6 convolutional layers, whose channel numbers are \{16, 32, 64, 128, 256, 256\}, to encode the image. Each of the first five layers is followed by $2 \times 2$ max pooling, similarly, for semantic segmentation maps. Encoded image and segmentation are stacked at the bottleneck, then passed through a 6-layer decoder with channel numbers \{512, 256, 128, 64, 32, 16\}, followed by a fully connected layer for class prediction. Skip connections are enabled between the image encoder and the decoder. The network is trained with batch size four by ADAM optimizer with initial learning rate 1e-4. The learning rate is reduced by a factor of 10 after every 30000 iterations.
+
+During training, the network aims at reconstructing the encoded $\hat{y}^s$ , which is the randomly permutated ground-truth segmentation, by utilizing image information, leading to the training loss:
+
+$$
+\mathcal {L} _ {c p n} (Q; \hat {y} ^ {s}, x ^ {s}) = \operatorname {N L L} \left(Q \left(\hat {y} ^ {s} \mid x ^ {s}\right), \hat {y} ^ {s}\right) \tag {12}
+$$
+
+where NLL denotes the negative log likelihood loss derived from the KL-divergence term in the CPN training loss Eq. (9). Lower indicates better scene compatibility i.e. higher $Q(y|x)$ . Note the information capacity constraint in Eq. (9) is implemented by a structural bottleneck as in [42].
+
+Semantic Segmentation Network: We experiment with different segmentation network backbones. Due to memory constraint, we choose to train the segmentation network after the transformation networks are trained. We first train from scratch the segmentation network using transformed source images and the corresponding annotations using Eq. (11). We fix $\lambda_{cpn} = 0.5$ for all the experiments. Fi
+
+
+Image w/o CPN w/ CPN Ground-truth
+Figure 4. The learned scene compatibility prior imposes regularity on the predictions. When the scene compatibility is added, the segmentation network yields predictions better aligned with object boundaries, and are more consistent within the objects.
+
+nally, we apply the self-supervised training technique as in [24, 38] to further improve the performance on the target domain. We accept the high confidence $(>0.9)$ predictions as the pseudo labels. All networks are trained using the ADAM optimizer, with learning rate $2.5\mathrm{e - }4$ 1e-5,and 1e-4 for ResNet-101,VGG-16,and DRN-26,respectively.
+
+# 3.3. Ablation Study
+
+Here we carry out an ablation study to investigate the effectiveness and robustness of the proposed priors.
+
+Phase Consistency: Here we train the segmentation network Deeplab-V2 [5] on the transformed source dataset with phase consistency. To make the comparison fair, all competing methods also use the same segmentation network as ours. The results of [37] and [24] are reported by the original papers. We retrain [19] and report its best performance with hyperparameter tuning. The result is presented in Tab. 2. Without any surrogate semantic consistency provided by a surrogate semantic segmentation network, our segmentation model achieves higher accuracy. Note that introducing surrogate semantic consistency for regularizing the transformation networks will also incur more memory cost. Moreover, several rounds of training to improve the performance of the surrogate network can also be time-consuming. However, our phase consistency can be implemented at low computational overhead (see Sect. 3.5).
+
+Interestingly, output space regularization, which aligns the marginal distributions of the segmentations, occasionally leads to worse performance in some settings, including [19] and ours. This is somewhat reasonable since aligning the marginal distributions does not guarantee the conditional alignment given the observations.
+
+Scene Compatibility: To better understand the performance gain from the scene compatibility prior, we compare to competing methods on the same transformed source images. We collect the scores for all the other methods using the same setting as ours, if needed, we retrain their model.
+
+| Method | Architecture | road | sidewalk | building | wall | fence | pole | light | sign | vegetation | terrain | sky | person | rider | car | truck | bus | train | motorcycle | bicycle | mIoU | twIoU |
| AdaptSegNet [37] | A | 86.5 | 25.9 | 79.8 | 22.1 | 20.0 | 23.6 | 33.1 | 21.8 | 81.8 | 25.9 | 75.9 | 57.3 | 26.2 | 76.3 | 29.8 | 32.1 | 7.2 | 29.5 | 32.5 | 41.4 | 75.5 |
| DCAN [41] | A | 85.0 | 30.8 | 81.3 | 25.8 | 21.2 | 22.2 | 25.4 | 26.6 | 83.4 | 36.7 | 76.2 | 58.9 | 24.9 | 80.7 | 29.5 | 42.9 | 2.5 | 26.9 | 11.6 | 41.7 | 76.2 |
| CyCADA [19] | A | 88.3 | 40.9 | 81.4 | 26.9 | 19.7 | 31.3 | 31.8 | 31.9 | 81.6 | 22.3 | 77.1 | 56.3 | 25.1 | 80.8 | 33.4 | 38.6 | 0.0 | 24.6 | 35.5 | 43.6 | 77.9 |
| SSF-DAN [10] | A | 90.3 | 38.9 | 81.7 | 24.8 | 22.9 | 30.5 | 37.0 | 21.2 | 84.8 | 38.8 | 76.9 | 58.8 | 30.7 | 85.7 | 30.6 | 38.1 | 5.9 | 28.3 | 36.9 | 45.4 | 79.6 |
| BDL [24] | A | 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 | 81.1 |
| Ours | A | 91.0 | 49.2 | 85.6 | 37.2 | 29.7 | 33.7 | 38.1 | 39.2 | 85.4 | 35.4 | 85.1 | 61.1 | 32.8 | 84.1 | 45.6 | 46.9 | 0.0 | 34.2 | 44.5 | 50.5 | 82.0 |
| AdaptSegNet [37] | B | 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 | 74.9 |
| CyCADA [19] | B | 85.2 | 37.2 | 76.5 | 21.8 | 15.0 | 23.8 | 22.9 | 21.5 | 80.5 | 31.3 | 60.7 | 50.5 | 9.0 | 76.9 | 17.1 | 28.2 | 4.5 | 9.8 | 0.0 | 35.4 | 73.8 |
| DCAN [41] | B | 82.3 | 26.7 | 77.4 | 23.7 | 20.5 | 20.4 | 30.3 | 15.9 | 80.9 | 25.4 | 69.5 | 52.6 | 11.1 | 79.6 | 24.9 | 21.2 | 1.3 | 17.0 | 6.7 | 36.2 | 72.9 |
| SSF-DAN [10] | B | 88.7 | 32.1 | 79.5 | 29.9 | 22.0 | 23.8 | 21.7 | 10.7 | 80.8 | 29.8 | 72.5 | 49.5 | 16.1 | 82.1 | 23.2 | 18.1 | 3.5 | 24.4 | 8.1 | 37.7 | 76.3 |
| BDL [24] | B | 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 | 78.4 |
| Ours | B | 90.2 | 44.7 | 82.0 | 28.4 | 28.4 | 24.4 | 33.7 | 35.6 | 83.7 | 40.5 | 75.1 | 54.4 | 28.2 | 80.3 | 23.8 | 39.4 | 0.0 | 22.8 | 30.8 | 44.6 | 79.3 |
| CyCADA [19] | C | 79.1 | 33.1 | 77.9 | 23.4 | 17.3 | 32.1 | 33.3 | 31.8 | 81.5 | 26.7 | 69.0 | 62.8 | 14.7 | 74.5 | 20.9 | 25.6 | 6.9 | 18.8 | 20.4 | 39.5 | 72.7 |
| Ours | C | 90.7 | 49.8 | 81.9 | 23.4 | 18.5 | 37.3 | 35.5 | 34.3 | 82.9 | 36.5 | 75.8 | 61.8 | 12.4 | 83.2 | 19.2 | 26.1 | 4.0 | 14.3 | 21.8 | 42.6 | 79.7 |
+
+Table 3. Quantitative Evaluation on the GTA5-to-Cityscapes benchmark. Our method achieves the best mIoU and fwIoU using different segmentation architectures: A (ResNet-101), B (VGG-16), C (DRN-26).
+
+| Method | Architecture | road | sidewalk | building | wall* | fence* | pole* | light | sign | vegetation | sky | person | rider | car | bus | motorcycle | bicycle | mIoU | mIoU* |
| AdaptPatch [38] | A | 82.4 | 38.0 | 78.6 | 8.7 | 0.6 | 26.0 | 3.9 | 11.1 | 75.5 | 84.6 | 53.5 | 21.6 | 71.4 | 32.6 | 19.3 | 31.7 | 40.0 | 46.5 |
| AdaptSegNet [37] | A | 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 |
| SSF-DAN [10] | A | 84.6 | 41.7 | 80.8 | - | - | - | 11.5 | 14.7 | 80.8 | 85.3 | 57.5 | 21.6 | 82.0 | 36.0 | 19.3 | 34.5 | - | 50.0 |
| BDL [24] | A | 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 |
| Ours | A | 85.9 | 44.6 | 80.8 | 9.0 | 0.8 | 32.1 | 24.8 | 23.1 | 79.5 | 83.1 | 57.2 | 29.3 | 73.5 | 34.8 | 32.4 | 48.2 | 46.2 | 53.6 |
| AdaptSegNet [37] | B | 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 |
| AdaptPatch [38] | B | 72.6 | 29.5 | 77.2 | 3.5 | 0.4 | 21.0 | 1.4 | 7.9 | 73.3 | 79.0 | 45.7 | 14.5 | 69.4 | 19.6 | 7.4 | 16.5 | 33.7 | 39.6 |
| DCAN [41] | B | 79.9 | 30.4 | 70.8 | 1.6 | 0.6 | 22.3 | 6.7 | 23.0 | 76.9 | 73.9 | 41.9 | 16.7 | 61.7 | 11.5 | 10.3 | 38.6 | 35.4 | 41.7 |
| BDL [24] | B | 72.0 | 30.3 | 74.5 | 0.1 | 0.3 | 24.6 | 10.2 | 25.2 | 80.5 | 80.0 | 54.7 | 23.2 | 72.7 | 24.0 | 7.5 | 44.9 | 39.0 | 46.1 |
| Ours | B | 79.7 | 35.2 | 78.7 | 1.4 | 0.6 | 23.1 | 10.0 | 28.9 | 79.6 | 81.2 | 51.2 | 25.1 | 72.2 | 24.1 | 16.7 | 50.4 | 41.1 | 48.7 |
+
+Table 4. Quantitative Evaluation on the Synthia-to-Cityscapes Benchmark. mIoU and mIoU* are the mean IoU computed on the 16 classes and the 13 subclasses respectively (* excluded). Our method achieves the best performance using different segmentation network backbones: A (ResNet-101), B(VGG-16).
+
+In Tab. 1, we show that under all experimental settings, scene compatibility prior improves accuracy for most of the semantic classes as well as the overall average. The performance gain is preserved during self-supervised learning. We present qualitative comparisons in Fig. 4, showing that the scene compatibility prior provides strong spatial regularity to align segmentation to the object boundaries. Incorporating the scene compatibility prior into the training process significantly improves the overall segmentation smoothness and integrity, resulting in more consistent label prediction within each object.
+
+# 3.4. Benchmark Results
+
+To recall, feature space alignment has been explored by DCAN [41] and CyCADA [19]. CyCADA also applies image level domain alignment by training cross-domain cycle consistent image transformation. Output space alignment methods include AdaptSegNet [37], AdaptPatch [38] and SSF-DAN [10], in which various ways of adversarial learning to the segmentation output are applied for better domain
+
+confusion. BDL [24] propagates information from semantic segmentation back to the image transformation network as semantic consistent regularization.
+
+We apply ResNet-101 [18] based Deeplab-V2 [5] and VGG-16 [36] based FCN-8s [34] for the segmentation network to compare with [37, 41, 24, 40, 10] under the same experimental setting. To better understand the robustness to different neural network settings, We also apply our method to the retrain the DRN-26 [44] model from [19].
+
+The result on the GTA5-to-Cityscapes benchmark is summarized in Tab. 3. Our method achieves state-of-the-art performance with all network backbones in terms of mIoU and fwIoU. Moreover, across different settings, our method achieves the best score for most of the classes, indicating that the proposed priors improve the segmentation accuracy consistently across different semantic categories. We also present a qualitative comparison in Fig. 5. Our proposed method outputs more spatially regularized predictions, which are also consistent with the scene structures. We relatively achieve $4.1\%$ and $8.0\%$ improvement over
+
+
+Figure 5. Qualitative comparison with state-of-the-art methods. Our method outputs more spatially regularized segmentations align well with the underlying scene structure. All visualized models are based on DeepLab-V2 with ResNet-101 under the same setting. Phase: trained with phase consistency only; Full: our full model.
+
+the second-best method with the backbone ResNet-101 and VGG-16, respectively.
+
+The result on the Synthia-to-Cityscapes benchmark can be found in Tab. 4. The mIoUs of either 13 or 16 classes are evaluated according to the evaluation protocol in the literature. Our method outperforms competing methods on both sets. It also achieves the best result on most of the semantic categories. Again, we relatively achieve $4.3\%$ and $5.4\%$ improvement over the second-best using different backbones.
+
+# 3.5. Computational Cost
+
+All networks are trained using a single Nvidia Titan Xp GPU. Enforcing the phase consistency will incur a $< 0.001s$ overhead for a $1024\times 512$ image, which is negligible. Training the CPN for scene compatibility takes 2.5 seconds to process a batch of 4 images, given the images are cropped to $1280\times 768$ . Incorporating CPN into segmentation training adds 1.5 seconds overhead to each iteration. Note that CPN is not required at the time of inference to segment target images.
+
+# 4. Discussion
+
+It is empirically shown in Sect. 3 that the proposed priors improve UDA semantic segmentation accuracy under different settings, however, how to impose semantic consistency and ecological statistics priors to general UDA tasks besides semantic segmentation remains an open problem.
+
+Analysis of the CPN is another unsolved task. Currently, the capacity of the CPN bottleneck is chosen empirically.
+
+In order to estimate the optimal bottleneck capacity for specific tasks, quantitative measurement of the information that CPN leverages from the image is necessary, which requires future exploration.
+
+Unsupervised domain adaptation is key for semantic segmentation, where dense annotation in real images is costly and rare, but comes automatically in rendered images. UDA is a form of transfer learning that hinges on regularities and assumptions or priors on the relationship between the distributions from which the source and target data are sampled. We introduce two assumptions, and the corresponding priors and variational renditions that are integrated into end-to-end differential learning. One is that the transformations mapping one domain to another only affect the magnitude, but not the phase, of their spectrum. This is motivated by empirical evidence that image semantics, as perceived by the human visual system, go with the phase but not the magnitude of the spectrum. The other is a prior meant to capture the ecological statistics, that are characteristics of the images induced by regularities in the scene, and therefore shared across different imaging modalities and domains. We show that the resulting priors improve performance in UDA benchmarks, and quantify their impact through ablation studies.
+
+# Acknowledgements
+
+Research supported by ARO W911NF-17-1-0304 and ONR N00014-19-1-2066. Dong Lao is supported by KAUST through the VCC Center Competitive Funding.
+
+# References
+
+[1] Mahsa Baktashmotlagh, Mehrtash T Harandi, Brian C Lovell, and Mathieu Salzmann. Unsupervised domain adaptation by domain invariant projection. In Proceedings of the IEEE International Conference on Computer Vision, pages 769-776, 2013.
+[2] Shai Ben-David, John Blitzer, Koby Crammer, Alex Kulesza, Fernando Pereira, and Jennifer Wortman Vaughan. A theory of learning from different domains. Machine learning, 79(1-2):151-175, 2010.
+[3] Egon Brunswik and Joe Kamiya. Ecological cue-validity of 'proximity' and of other gestalt factors. The American journal of psychology, 66(1):20-32, 1953.
+[4] 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.
+[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, 2017.
+[6] Yuhua Chen, Wen Li, Xiaoran Chen, and Luc Van Gool. Learning semantic segmentation from synthetic data: A geometrically guided input-output adaptation approach. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1841-1850, 2019.
+[7] Yuhua Chen, Wen Li, and Luc Van Gool. Road: Reality oriented adaptation for semantic segmentation of urban scenes. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7892-7901, 2018.
+[8] Yun-Chun Chen, Yen-Yu Lin, Ming-Hsuan Yang, and Jia-Bin Huang. Crdoco: Pixel-level domain transfer with cross-domain consistency. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
+[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 Proc. of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016.
+[10] Liang Du, Jingang Tan, Hongye Yang, Jianfeng Feng, Xiangyang Xue, Qibao Zheng, Xiaqing Ye, and Xiaolin Zhang. Ssf-dan: Separated semantic feature based domain adaptation network for semantic segmentation. In The IEEE International Conference on Computer Vision (ICCV), October 2019.
+[11] James H Elder and Richard M Goldberg. Ecological statistics of gestalt laws for the perceptual organization of contours. Journal of Vision, 2(4):5-5, 2002.
+[12] Basura Fernando, Amaury Habrard, Marc Sebban, and Tinne Tuytelaars. Unsupervised visual domain adaptation using subspace alignment. In Proceedings of the IEEE international conference on computer vision, pages 2960-2967, 2013.
+
+[13] Yaroslav Ganin and Victor Lempitsky. Unsupervised domain adaptation by backpropagation. In International Conference on Machine Learning, pages 1180-1189, 2015.
+[14] Bo Geng, Dacheng Tao, and Chao Xu. Daml: Domain adaptation metric learning. IEEE Transactions on Image Processing, 20(10):2980-2989, 2011.
+[15] Xavier Glorot, Antoine Bordes, and Yoshua Bengio. Domain adaptation for large-scale sentiment classification: A deep learning approach. In Proceedings of the 28th international conference on machine learning (ICML-11), pages 513–520, 2011.
+[16] 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.
+[17] Bruce C Hansen and Robert F Hess. Structural sparseness and spatial phase alignment in natural scenes. JOSA A, 24(7):1873-1885, 2007.
+[18] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 770-778, 2015.
+[19] Judy Hoffman, Eric Tzeng, Taesung Park, Jun-Yan Zhu, Phillip Isola, Kate Saenko, Alexei Efros, and Trevor Darrell. Cycada: Cycle-consistent adversarial domain adaptation. In International Conference on Machine Learning, pages 1989-1998, 2018.
+[20] Judy Hoffman, Dequan Wang, Fisher Yu, and Trevor Darrell. Fcts in the wild: Pixel-level adversarial and constraint-based adaptation. arXiv preprint arXiv:1612.02649, 2016.
+[21] Weixiang Hong, Zhenzhen Wang, Ming Yang, and Junsong Yuan. Conditional generative adversarial network for structured domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1335-1344, 2018.
+[22] Dorian Kermisch. Image reconstruction from phase information only. JOSA, 60(1):15-17, 1970.
+[23] Abhishek Kumar, Prasanna Sattigeri, Kahini Wadhawan, Leonid Karlinsky, Rogerio Feris, Bill Freeman, and Gregory Wornell. Co-regularized alignment for unsupervised domain adaptation. In Advances in Neural Information Processing Systems, pages 9345–9356, 2018.
+[24] 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.
+[25] Ming-Yu Liu, Thomas Breuel, and Jan Kautz. Unsupervised image-to-image translation networks. In Advances in neural information processing systems, pages 700-708, 2017.
+[26] 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.
+[27] Alan V Oppenheim and Jae S Lim. The importance of phase in signals. Proceedings of the IEEE, 69(5):529-541, 1981.
+
+[28] Leon N Piotrowski and Fergus W Campbell. A demonstration of the visual importance and flexibility of spatial-frequency amplitude and phase. Perception, 11(3):337-346, 1982.
+[29] Stephan R. Richter, Vibhav Vineet, Stefan Roth, and Vladlen Koltun. Playing for data: Ground truth from computer games. In Bastian Leibe, Jiri Matas, Nicu Sebe, and Max Welling, editors, European Conference on Computer Vision (ECCV), volume 9906 of LNCS, pages 102-118. Springer International Publishing, 2016.
+[30] O. Ronneberger, P.Fischer, and T. Brox. U-net: Convolutional networks for biomedical image segmentation. In Medical Image Computing and Computer-Assisted Intervention (MICCAI), volume 9351 of LNCS, pages 234-241. Springer, 2015. (available on arXiv:1505.04597 [cs.CV]).
+[31] German Ros, Laura Sellart, Joanna Materzynska, David Vazquez, and Antonio Lopez. The SYNTHIA Dataset: A large collection of synthetic images for semantic segmentation of urban scenes. In CVPR, 2016.
+[32] Swami Sankaranarayanan, Yogesh Balaji, Arpit Jain, Ser Nam Lim, and Rama Chellappa. Learning from synthetic data: Addressing domain shift for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3752-3761, 2018.
+[33] Ozan Sener, Hyun Oh Song, Ashutosh Saxena, and Silvio Savarese. Learning transferrable representations for unsupervised domain adaptation. In Advances in Neural Information Processing Systems, pages 2110-2118, 2016.
+[34] Evan Shelhamer, Jonathan Long, and Trevor Darrell. Fully convolutional networks for semantic segmentation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 39:640-651, 2014.
+[35] Rui Shu, Hung H Bui, Hirokazu Narui, and Stefano Ermon. A dirt-t approach to unsupervised domain adaptation. In Proc. 6th International Conference on Learning Representations, 2018.
+[36] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. CoRR, abs/1409.1556, 2014.
+[37] 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.
+[38] Yi-Hsuan Tsai, Kihyuk Sohn, Samuel Schulter, and Manmohan Chandraker. Domain adaptation for structured output via discriminative patch representations. In Proceedings of the IEEE International Conference on Computer Vision, pages 1456-1465, 2019.
+[39] Eric Tzeng, Judy Hoffman, Kate Saenko, and Trevor Darrell. Adversarial discriminative domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7167-7176, 2017.
+[40] 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.
+[41] 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.
+[42] Yanchao Yang and Stefano Soatto. Conditional prior networks for optical flow. In Proceedings of the European Conference on Computer Vision (ECCV), pages 271-287, 2018.
+[43] Yanchao Yang and Stefano Soatto. Fda: Fourier domain adaptation for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2020.
+[44] Fisher Yu, Vladlen Koltun, and Thomas Funkhouser. Dilated residual networks. In Computer Vision and Pattern Recognition (CVPR), 2017.
+[45] Yang Zhang, Philip David, and Boqing Gong. Curriculum domain adaptation for semantic segmentation of urban scenes. In Proceedings of the IEEE International Conference on Computer Vision, pages 2020-2030, 2017.
+[46] Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In Computer Vision (ICCV), 2017 IEEE International Conference on, 2017.
+[47] 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/phaseconsistentecologicaldomainadaptation/images.zip b/phaseconsistentecologicaldomainadaptation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..3e425a4cbb0e87fd909b541933ac6742c788766c
--- /dev/null
+++ b/phaseconsistentecologicaldomainadaptation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c695309486a9313381608e355cf35e96a85358ca84db40fca40f224ae60038d3
+size 760895
diff --git a/phaseconsistentecologicaldomainadaptation/layout.json b/phaseconsistentecologicaldomainadaptation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..668909405bdec3ba37e53801e80055ccaf9c1b1a
--- /dev/null
+++ b/phaseconsistentecologicaldomainadaptation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:07a4d85e38bccb358d028e97c0ef8180abc30477e5d0ca75eda835d761084c3f
+size 389012
diff --git a/photometricstereoviadiscretehypothesisandtestsearch/b4fd6cbf-ab67-4737-9b7a-d7ce0d729cf8_content_list.json b/photometricstereoviadiscretehypothesisandtestsearch/b4fd6cbf-ab67-4737-9b7a-d7ce0d729cf8_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..129533a8344c08a938e91c98512a41a2dbc2bc5d
--- /dev/null
+++ b/photometricstereoviadiscretehypothesisandtestsearch/b4fd6cbf-ab67-4737-9b7a-d7ce0d729cf8_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6994ae07e4d53a91dd83ba911bd5f2f322e5ed517eeff5aba2efe9416dbc296e
+size 72291
diff --git a/photometricstereoviadiscretehypothesisandtestsearch/b4fd6cbf-ab67-4737-9b7a-d7ce0d729cf8_model.json b/photometricstereoviadiscretehypothesisandtestsearch/b4fd6cbf-ab67-4737-9b7a-d7ce0d729cf8_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..79b68178949a970d224ab71d2e4c0999557db0f4
--- /dev/null
+++ b/photometricstereoviadiscretehypothesisandtestsearch/b4fd6cbf-ab67-4737-9b7a-d7ce0d729cf8_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e23e982405b132f97bda741701fd46af02e2bf59fbb0ed90b78e526110b228d7
+size 85945
diff --git a/photometricstereoviadiscretehypothesisandtestsearch/b4fd6cbf-ab67-4737-9b7a-d7ce0d729cf8_origin.pdf b/photometricstereoviadiscretehypothesisandtestsearch/b4fd6cbf-ab67-4737-9b7a-d7ce0d729cf8_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..782a05005a7ff020f25550a53513cd9442eb6758
--- /dev/null
+++ b/photometricstereoviadiscretehypothesisandtestsearch/b4fd6cbf-ab67-4737-9b7a-d7ce0d729cf8_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e03859d2c94a49eb4a968cc4725d81ae3e6febacef935c0c0205baf28f7a2465
+size 709630
diff --git a/photometricstereoviadiscretehypothesisandtestsearch/full.md b/photometricstereoviadiscretehypothesisandtestsearch/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..899388e7920315b9f59be72ce058d585ac814ba4
--- /dev/null
+++ b/photometricstereoviadiscretehypothesisandtestsearch/full.md
@@ -0,0 +1,319 @@
+# Photometric Stereo via Discrete Hypothesis-and-Test Search
+
+Kenji Enomoto1 Michael Waechter1 Kiriakos N. Kutulakos2 Yasuyuki Matsushita1
+1Osaka University 2University of Toronto
+
+# Abstract
+
+In this paper, we consider the problem of estimating surface normals of a scene with spatially varying, general BRDFs observed by a static camera under varying, known, distant illumination. Unlike previous approaches that are mostly based on continuous local optimization, we cast the problem as a discrete hypothesis-and-test search problem over the discretized space of surface normals. While a naive search requires a significant amount of time, we show that the expensive computation block can be precomputed in a scene-independent manner, resulting in accelerated inference for new scenes. It allows us to perform a full search over the finely discretized space of surface normals to determine the globally optimal surface normal for each scene point. We show that our method can accurately estimate surface normals of scenes with spatially varying different reflectances in a reasonable amount of time.
+
+# 1. Introduction
+
+Photometric stereo recovers fine surface details in the form of surface normals from images taken by a static camera under varying lightings. While traditional photometric stereo methods [25] assume Lambertian reflectance or simplified parametric reflectance models, it is understood that their deviation from real-world reflectances introduces errors in surface normal estimates. In the past, other studies used more sophisticated reflectance models [1, 15, 21, 13, 4] for more accurate surface normal recovery; however, they generally encounter an issue of non-convex optimization in determining the surface normals. The problem is rooted in the fact that these methods frame the estimation problem as a continuous optimization problem.
+
+In this paper, we cast surface normal estimation as a discrete hypothesis-and-test search problem. Instead of treating surface normals to be estimated as a continuous quantity, our method finely discretizes the space of surface normals and finds the best surface normal by a hypothesis-and-test search. Since a surface normal vector has only two degrees of freedom (a unit 3D vector) represented by its azimuth and elevation angles in a hemisphere, discretization
+
+
+Figure 1: An overview of our approach. We hypothesize a surface normal and test whether it can explain the target measurements. By conducting the hypothesis-and-test for all possible surface normals, our method is able to find a globally optimal surface normal.
+
+results in a relatively small number of surface normal candidates. For example, even if we discretize the angles in one-degree intervals, it results in 32, $400 = 360 \times 90$ normal candidates. Our method uses each surface normal candidate as hypothesis and tests its suitability to the image formation model; thus, we call it a hypothesis-and-test search strategy. In this manner, our method searches for the globally optimal surface normal from all (discretized) possible ones.
+
+To alleviate the issue of computing cost in our discrete search, we developed a precomputation method that performs expensive computations in a scene-independent manner prior to the inference for a new scene. To deal with a diverse set of reflectances, we use a non-parametric, discrete table of bidirectional reflectance distribution functions (BRDFs), whose axes are the space of surface normals, light directions, and materials, for a fixed viewing direction. The table of BRDFs, which we call a BRDF tensor, can contain an arbitrary number of materials, and importantly, the number of reference materials considered in the BRDF tensor does not influence the computation time during inference.
+
+Our method is motivated by the success of example-based [9] and virtual exemplar-based [11] approaches. However, unlike example-based methods, we do not require
+
+placing a reference object in the scene. Also, unlike the virtual exemplar-based method that performs a continuous local search using a non-convex objective function, we treat the problem as a discrete search problem and perform an exhaustive search over the discretized space. It enables us to find a globally optimal surface normal within the bounds of our objective function.
+
+The chief contributions of this paper are twofold. First, we propose a discrete hypothesis-and-test search strategy for photometric stereo. By finely discretizing the space of surface normals, our method finds the globally optimal surface normal through exhaustive search. Second, we show that expensive computation can be performed prior to the surface normal estimation, allowing the global hypothesis-and-test search to work in a reasonable amount of time. We assess the accuracy of the proposed method using both synthetic and real-world data and show its favorable performance in determining surface normals of a scene. In particular, the proposed method achieves a stable estimate, i.e., superior average/variance of mean angular error over a diverse set of materials.
+
+# 2. Related work
+
+Calibrated photometric stereo methods for diverse materials can be roughly divided into three categories; model-based, learning-based, and example-based approaches. In the following, we discuss the corresponding related works.
+
+Model-based photometric stereo Model-based approaches use parametric expressions for BRDFs and the model parameters including the surface normal are estimated, typically, via optimization. Key for these model-based methods is the choice of a parametric BRDF model. Woodham's original work [25] assumed Lambertian reflectance, which allows using convex least-squares optimization to determine surface normals and albedos. Parametric modeling of non-Lambertian BRDFs is actively studied, particularly in the graphics community. For example, the Blinn-Phong model [23], the Torrance-Sparrow model [7], the Ward model [6], the specular spike model [5, 26], and a microfacet BRDF with ellipsoidal normal distributions [4] have been developed. However, each of these models is limited to a class of materials, and such models are highly nonlinear, resulting in non-convex photometric stereo problems. Thus, some recent methods use a bivariate function instead. For representing low-frequency reflectances, Shi et al. [21] use a bi-polynomial function and Ikehata and Aizawa [13] use a sum of lobes with unknown center directions. Although these model-based approaches can be used in a relatively wide range of materials, there are always problematic materials.
+
+Learning-based photometric stereo Recently, deep learning-based photometric stereo methods have been proposed. They learn a mapping from measured intensities under known lightings to surface normals using a neural network [19, 3, 13]. These methods showed promising results on various scenes owing to the network being trained with diverse shapes and materials. Santo et al. [19] and Chen et al. [3] created a training dataset by rendering the Blobby [14] and Sculpture [24] shape datasets with 100 BRDFs from the MERL dataset [16]. Ikehata [12] also introduced a training dataset for calibrated photometric stereo, called CyclesPS dataset, containing several objects with a diverse set of materials rendered using Disney's principled BSDF [2]. Learning-based methods require a large number of shapes & BRDFs for training. When they are applied to new scenes with shapes & BRDFs that are very different from the training data, it is necessary to do costly re-training of the network.
+
+Example-based photometric stereo Example-based photometric stereo relies on the concept of orientation-consistency [9], i.e., two surfaces with the same surface normal and BRDF will have the same appearance under the same illumination. An early work along this direction is found in Horn and Ikeuchi [10]. In example-based approaches, a reference object with known surface normals is placed in a target scene. Further, the BRDF of the reference object is assumed to be the same as that of the target object. Then, a surface normal is recovered for each point of the target object by searching the corresponding pixel intensity of the reference object that best matches the target's appearance. To relax the assumption of identical BRDF between reference and target, Hertzmann and Seitz [9] introduced two reference objects, a diffuse and a specular sphere, placed in the target scene, and approximate the target BRDF by a non-negative linear combination of the reference BRDFs. Although this approach makes example-based photometric stereo applicable to more diverse materials, it is still inaccurate to approximate a diverse set of materials by a linear combination of two BRDFs. In addition, in many practical applications it is undesirable to place reference objects in a target scene.
+
+Hui and Sankaranarayanan [11] introduced virtual exemplar-based photometric stereo that performs example-based photometric stereo without actually introducing reference objects into a target scene. They render virtual reference spheres under the target scene illumination with MERL BRDFs [16] and assume that the target BRDF lies in the non-negative span of the MERL BRDFs. In the virtual exemplar-based approach, however, there are many time-consuming processes such as rendering virtual spheres, an iterative optimization for solving a non-negative least squares problem, and searching over all possible surface
+
+normals. To reduce the computation cost, they proposed an efficient search algorithm which however eliminates the guarantee of finding the optimal solution.
+
+Our method shares the assumption that the target BRDF can be represented by a combination of several reference BRDFs. However, we cast the problem as a discrete hypothesis-and-test search problem, which gives a guarantee of reaching the globally optimal solution within the bound of the objective function. Additionally, our method enables search all surface normal candidates in reasonable time owing to an efficient precomputation.
+
+# 3. Image formation and problem statement
+
+Suppose a surface point with a unit surface normal $\mathbf{n} \in S^2 \subset \mathbb{R}^3$ is illuminated by an incoming directional light $1 \in S^2$ , without ambient lighting or global illumination effects such as cast shadows or inter-reflections. When this surface point is observed by a camera with linear response, the measured intensity $m \in \mathbb{R}_+$ can be written as
+
+$$
+m \propto \rho (\mathbf {n}, \mathbf {l}) \max \left(\mathbf {n} ^ {\top} \mathbf {l}, 0\right), \tag {1}
+$$
+
+where $\rho (\mathbf{n},\mathbf{l})\colon S^2\times S^2\to \mathbb{R}_+$ is a general isotropic bidirectional reflectance distribution function (BRDF).
+
+In calibrated photometric stereo, a static camera records multiple, say $L'$ , measurements $\{m_1, \ldots, m_{L'}\}$ for each surface point under various light directions $\{1_1, \ldots, 1_{L'}\}$ . Then, Eq. (1) can be written in matrix form as
+
+$$
+\underbrace {\left( \begin{array}{c} m _ {1} \\ \vdots \\ m _ {L ^ {\prime}} \end{array} \right)} _ {\mathbf {m}} \propto \underbrace {\left( \begin{array}{c c c} \max (\mathbf {n} ^ {\top} \mathbf {l} _ {1} , 0) & & \mathbf {0} \\ & \ddots & \\ \mathbf {0} & & \max (\mathbf {n} ^ {\top} \mathbf {l} _ {L ^ {\prime}} , 0) \end{array} \right)} _ {\mathbf {E}} \underbrace {\left( \begin{array}{c} \rho (\mathbf {n} , \mathbf {l} _ {1}) \\ \vdots \\ \rho (\mathbf {n} , \mathbf {l} _ {L ^ {\prime}}) \end{array} \right)} _ {\rho},
+$$
+
+where $\mathbf{m}$ is a measurement vector, $\mathbf{E}$ is a diagonal irradiance matrix, and $\rho$ is a reflectance vector. We model the reflectance $\rho$ by a linear combination of BRDF basis vectors in a similar manner to Hertzmann et al. [9], and Hui and Sankaranarayanan [11]. By stacking $M$ known BRDF basis vectors in a BRDF basis matrix $\mathbf{B}$ , $\rho$ can be written as
+
+$$
+\boldsymbol {\rho} = \underbrace {\left( \begin{array}{c c c} \rho_ {1} (\mathbf {n} , \mathbf {l} _ {1}) & \ldots & \rho_ {M} (\mathbf {n} , \mathbf {l} _ {1}) \\ \vdots & \ddots & \vdots \\ \rho_ {1} (\mathbf {n} , \mathbf {l} _ {L ^ {\prime}}) & \ldots & \rho_ {M} (\mathbf {n} , \mathbf {l} _ {L ^ {\prime}}) \end{array} \right)} _ {\mathbf {B}} \mathbf {c},
+$$
+
+where $\mathbf{c} = [c_1,\dots ,c_M]^\top$ is a BRDF coefficient vector. With this, the image formation model can be simplified to
+
+$$
+\mathbf {m} = \mathbf {E B c}. \tag {2}
+$$
+
+Problem statement Our goal is to find the optimal surface normal $\mathbf{n}$ and BRDF coefficients $\mathbf{c}$ for each surface
+
+
+Figure 2: Starting from the BRDF tensor $\mathcal{T}$ that represents reflectances for a comprehensive set of light directions, surface normals and materials (BRDFs), we slice out a sampled BRDF matrix $\mathbf{B}_i$ for a set of known light directions and a hypothesized surface normal $\mathbf{n}_i$ . The column space of $\mathbf{B}_i$ is the space of reflectances over all possible materials for the hypothesized normal under the known light directions.
+
+point, given observations $\mathbf{m}$ and associated light directions $\{\mathbf{l}_1,\dots \mathbf{l}_{L'}\}$ based on the model of Eq. (2). The irradiance matrix $\mathbf{E}$ and BRDF matrix $\mathbf{B}$ are functions of the surface normal $\mathbf{n}$ .
+
+# 4. Proposed method
+
+Our method casts the photometric stereo problem as a discrete search where the space of surface normals is discretized. We hypothesize a surface normal $\mathbf{n}$ and test whether it (approximately) satisfies the image formation model of Eq. (2). By conducting this hypothesis-and-test for all possible surface normals, our method is able to find a globally optimal surface normal $\mathbf{n}$ and the associated BRDF coefficients $\mathbf{c}$ that best satisfy Eq. (2).
+
+# 4.1. Hypothesis-and-test strategy
+
+Let $\mathcal{N} = \{\mathbf{n}_i\mid i = 1,\dots ,N\}$ be the discretized space of surface normals, which we call a set of surface normal candidates. We prepare a tensor representation for diverse BRDFs whose axes are (1) surface normals, (2) light directions, and (3) materials. Suppose the spaces of surface normals and light directions are discretized into $N$ and $L$ bins, respectively, and there are $M$ distinct BRDFs. Then, the BRDF tensor $\mathcal{T}$ can be defined as $\mathcal{T}\in \mathbb{R}_{+}^{N\times L\times M}$ (see the left of Fig. 2).
+
+For simplicity, let us assume that the BRDF tensor contains the actual light directions of the observed scene. If we hypothesize a certain surface normal $\mathbf{n}_i\in \mathcal{N}$ for a scene point, using $L^{\prime}\leq L$ known light directions, we can slice a sampled BRDF matrix $\mathbf{B}_i\in \mathbb{R}_{+}^{L'\times M}$ from the BRDF tensor $\mathcal{T}$ along the hypothesized surface normal $\mathbf{n}_i$ and a set of $L^{\prime}$ known light directions as illustrated in Fig. 2. We can also
+
+form an irradiance matrix $\mathbf{E}_i$ for the hypothesized surface normal $\mathbf{n}_i$ . Using $\mathbf{B}_i$ and $\mathbf{E}_i$ instead of $\mathbf{B}$ and $\mathbf{E}$ , Eq. (2) becomes
+
+$$
+\mathbf {m} \simeq \mathbf {E} _ {i} \mathbf {B} _ {i} \mathbf {c} \stackrel {\mathrm {d e f}} {=} \mathbf {D} _ {i} \mathbf {c},
+$$
+
+where $\mathbf{D}_i(= \mathbf{E}_i\mathbf{B}_i)\in \mathbb{R}^{L'\times M}$ . For the overdetermined case $L^{\prime} > M$ , the least-squares solution for the BRDF coefficients $\mathbf{c}$ that best explains the measurements, is
+
+$$
+\mathbf {c} ^ {*} = \left(\mathbf {D} ^ {\top} \mathbf {D}\right) ^ {- 1} \mathbf {D} ^ {\top} \mathbf {m} = \mathbf {D} _ {i} ^ {\dagger} \mathbf {m},
+$$
+
+where $\mathbf{D}_i^\dagger$ is $\mathbf{D}_i$ 's pseudo-inverse. The estimated BRDF coefficients $\mathbf{c}^*$ are least-squares optimal for the hypothesized normal $\mathbf{n}_i$ and the space of sampled BRDFs $\mathbf{B}_i$ . We can test the validity of the hypothesized $\mathbf{n}_i$ by evaluating the $\ell_2$ reconstruction error as
+
+$$
+e _ {i} = \left\| \mathbf {m} - \mathbf {D} _ {i} \mathbf {c} ^ {*} \right\| _ {2} ^ {2}. \tag {3}
+$$
+
+Therefore, the optimal surface normal $\mathbf{n}^*$ can be found as the minimizer of the following objective
+
+$$
+\mathbf {n} ^ {*} = \mathbf {n} _ {i ^ {*}}, \quad i ^ {*} = \underset {i \in \{1, \dots , N \}} {\operatorname {a r g m i n}} e _ {i}. \tag {4}
+$$
+
+A naive implementation may require a significant computation effort for solving this problem. We therefore introduce an efficient precomputation strategy now.
+
+# 4.2. Precomputation
+
+The reconstruction error $e_i$ for the hypothesized surface normal $\mathbf{n}_i$ in Eq. (3) can be further simplified as
+
+$$
+\begin{array}{l} e _ {i} = \left\| \mathbf {m} - \mathbf {D} _ {i} \mathbf {c} ^ {*} \right\| _ {2} ^ {2} = \left\| \mathbf {m} - \mathbf {D} _ {i} \mathbf {D} _ {i} ^ {\dagger} \mathbf {m} \right\| _ {2} ^ {2} \\ = \left\| \left(\mathbf {I} - \mathbf {D} _ {i} \mathbf {D} _ {i} ^ {\dagger}\right) \mathbf {m} \right\| _ {2} ^ {2} \stackrel {\text {d e f}} {=} \| \mathbf {Z} _ {i} \mathbf {m} \| _ {2} ^ {2}, \tag {5} \\ \end{array}
+$$
+
+where $\mathbf{Z}_i(= \mathbf{I} - \mathbf{D}_i\mathbf{D}_i^\dagger)\in \mathbb{R}^{L'\times L'}$ is uniquely determined given a hypothesized normal $\mathbf{n}_i$ . We can precompute a set of $\{\mathbf{Z}_i\}$ for all normal candidates in $\mathcal{N}$ and at test time we simply need to assess the magnitude of $\mathbf{Z}_i\mathbf{m}$ for all $i$ .
+
+This precomputation happens only once and the result can be used for any new scene as long as the light configuration is unchanged.
+
+# 4.3. Dimensionality reduction of $\mathbf{D}_i$
+
+In principle, minimizing Eq. (4) gives us a correct solution for the surface normal $\mathbf{n}$ . In practice, however, we need to pay attention to the dimension and range of matrix $\mathbf{D}_i \in \mathbb{R}^{L' \times M}$ . Specifically, when $L' < M$ or $\mathbf{m} \in \mathrm{ran}(\mathbf{D}_i)$ (the range of $\mathbf{D}_i$ ) for all $\mathbf{D}_i$ , there exists one or more BRDF coefficient vectors $\mathbf{c}^*$ that makes all reconstruction errors $\{e_i\}$ zero.
+
+
+Figure 3: Geometric interpretation of the reconstruction error. The reconstruction error of measurements $\| \mathbf{Z}_i\mathbf{m}\| _2^2$ can be seen as distance between the measurement vector $\mathbf{m}$ and the subspace spanned by $\mathbf{D}_i$ in the $L^{\prime}$ -dimensional space $\Omega$ .
+
+As illustrated in Fig. 3, a measurement vector $\mathbf{m}$ exists in an $L^{\prime}$ -dimensional space $\Omega$ . The column vectors of $\mathbf{D}_i$ span a $\mathrm{rank}(\mathbf{D}_i)$ -dimensional subspace in $\Omega$ , and the measurement reconstructions $\mathbf{D}_i\mathbf{c}^* = \mathbf{D}_i\mathbf{D}_i^\dagger\mathbf{m}$ reside in this subspace. Thus, geometrically, the reconstruction error $\| \mathbf{Z}_i\mathbf{m}\|_2^2$ can be considered as the distance between the measurement vector $\mathbf{m}$ and the subspace spanned by $\mathbf{D}_i$ . From this perspective, if $\mathrm{rank}(\mathbf{D}_i) = L'$ , the columns of $\mathbf{D}_i$ span the entire $\Omega$ ; therefore, the reconstruction error becomes always zero regardless of the correctness of the hypothesized surface normal $\mathbf{n}$ .
+
+To avoid such a situation, we reduce the column dimension of $\mathbf{D}_i$ from $M$ to $M' < L'$ if $L' < M$ . Specifically, we apply singular value decomposition (SVD) to $\mathbf{D}_i$ as
+
+$$
+\mathbf {D} _ {i} = \mathbf {U S V} ^ {\top},
+$$
+
+and reduce the dimensionality of $\mathbf{D}_i$ using the first $M^{\prime}$ singular vectors / values as
+
+$$
+\mathbf {D} _ {i} \leftarrow \mathbf {U} _ {M ^ {\prime}} \mathbf {S} _ {M ^ {\prime}} \mathbf {V} _ {M ^ {\prime}} ^ {\top},
+$$
+
+where $\mathbf{U}_{M^{\prime}}$ , $\mathbf{S}_{M^{\prime}}$ , and $\mathbf{V}_{M^{\prime}}^{\top}$ are the truncated singular vectors / values.
+
+We empirically found that the proper value of $M'$ is related to the noise level in the observations. In Sec. 5.4, we examine the accuracy of surface normal estimation with varying $M'$ and discuss the choices for $M'$ .
+
+# 5. Experiments
+
+This section describes the results of experiments with synthetic and real-world data. We further discuss the computation time, the effect of dimensionality reduction and the discretization of the space of light directions. We begin with describing the construction of the BRDF tensor and the synthetic and real-world datasets that we use for evaluation.
+
+BRDF tensor: The BRDF tensor is constructed from three components; materials, surface normal candidates, and light directions. As materials, we used the MERL BRDF dataset [16] which consists of 100 distinct BRDFs
+
+
+Figure 4: Evaluation on the MERL sphere dataset. We compared our method against a model-based method [13] and a CNN-based method [12]. The average/variance of the mean angular errors over all materials are as follows: Ours: 2.23/3.24, model-based method [13]: 4.31/29.43, CNN-based method [12]: 3.15/9.19.
+
+including diffuse, specular, and metallic materials. For surface normal candidate sampling we followed Hui's method [11] and obtained 20001 candidates by $0.5^{\circ}$ equiangular sampling over the hemisphere [8]. In all experiments of this paper, we assume that the BRDF tensor contains the known light directions.
+
+MERL sphere: We created a MERL sphere dataset, which is synthetic data rendered with 100 isotropic BRDFs from the MERL BRDF database [16]. We generated images of a sphere object illuminated from 20, 40, 60, 80, 100 different known directions $^{1}$ , respectively. We also created a noisy MERL sphere dataset by adding signal-independent and signal-dependent noise [17] to the MERL sphere dataset. The noise model is $\tilde{m} = m + (\mu + \lambda \sqrt{m})X$ where $\tilde{m}$ and $m$ are image signals with and without noise, $\mu$ and $\lambda$ are weighting factors for signal-independent and signal-dependent noise, respectively, and $X$ is a $\mathcal{N}(0,1)$ -distributed random variable.
+
+MERL bunny: We rendered the Stanford bunny with spatially varying materials using 11 distinct MERL BRDFs as test BRDFs and 80 different known light directions.
+
+Real-world benchmark: We took an existing real-world dataset, the DiLiGenT dataset [20], which contains 10 real objects of general reflectance illuminated from 96 different known directions. This dataset provides ground truth surface normal maps for all objects measured by high-precision laser scanning, enabling quantitative evaluation.
+
+# 5.1. Evaluation on synthetic data
+
+We performed experiments on synthetic data to confirm that our method works with diverse materials. Since there is no global illumination in the MERL sphere & bunny dataset, we can evaluate only the ability of our method to adapt to diverse materials. To support that our method is applicable to a more diverse set of materials than existing methods, we compared it against a model-based [13], a CNN-based [12], and a dictionary-based method [11]. Additionally, we investigated the accuracy of our method with varying surface normal candidates and lights, and compared it to the dictionary-based method [11]. All following experiments were performed in the 80 lights setting unless otherwise specified.
+
+MERL sphere: We performed a comparative experiment between our method, the model-based method [13], and the CNN-based method [12], and verified that our method is more accurate and stable on diverse material data. For the materials we used a leave-one-out scheme, testing it on one MERL BRDF while constructing the BRDF tensor from the remaining 99 BRDFs. $^{2}$
+
+The results are shown in Fig. 4. The average/variance of the mean angular errors over all materials are $2.23 / 3.24$ for our method, $4.31 / 29.43$ for the model-based method [13], and $3.15 / 9.19$ for the CNN-based method [12]. This result suggests that our method is more accurate and stable than existing methods on most materials in the MERL database.
+
+
+
+
+Ground truth & observation
+
+
+
+
+Ours
+CNN-based [12]
+
+
+
+
+2.16/4.07
+Figure 5: Visual comparison for the Stanford bunny with spatially varying materials. We show estimated normals and angular error maps of our and 3 comparison methods. Values under the error maps indicate the mean/variance of angular errors.
+
+
+
+
+4.98/36.13
+Model-based [13]
+
+
+
+
+1.37/2.39
+Dictionary-based [11]
+
+MERL bunny: We evaluated our method, the model-based [13], the CNN-based [12], and the dictionary-based method [11] on the Stanford bunny with spatially varying materials. Our BRDF tensor and the BRDF dictionary of the dictionary-based method are constructed from 80 MERL BRDFs that do not include the 11 test BRDFs mentioned above.
+
+In Fig. 5 we show each method's estimated surface normals and angular error map. The values under the error maps indicate the mean/variance of their angular errors. This result suggests that our method can be applied to materials that are difficult for the CNN-based and the model-based method. Additionally, from the low variance of angular errors we can see that our method is more stable than the existing methods on diverse materials.
+
+Varying number of surface normal candidates and lights: We investigate the angular errors of the estimated surface normals for varying numbers of surface normal candidates and lights, and compare our method to the existing search-based method [11]. In the experiment with a varying number of surface normal candidates, we use 20001, 10001, 1501, 251 surface normal candidates yielded by $0.5^{\circ}, 1^{\circ}, 3^{\circ}, 5^{\circ}$ equiangular sampling, respectively. In the experiment with a varying number of lights, we use the MERL sphere dataset with 20, 40, 60, 80, 100 lights. Due to the high computational costs of the existing dictionary-based method [11], we perform a 5-fold cross-validation, using 80 BRDFs for computing our method's BRDF tensor and the dictionary method's material dictionary [11], and testing on the MERL sphere dataset with the remaining 20 BRDFs.
+
+Table 1: Mean angular errors for estimated surface normals in degrees for varying numbers of normal candidates.
+
+ | number of normal candidates N |
| 20001 | 10001 | 1501 | 251 |
| Ours | 2.25 | 2.31 | 2.86 | 4.62 |
| HS17 [11] | 2.34 | 2.41 | 3.00 | 4.68 |
+
+Table 2: Mean angular errors for estimated surface normals in degrees for varying numbers of lights.
+
+ | number of lights L' |
| 100 | 80 | 60 | 40 | 20 |
| Ours | 2.22 | 2.25 | 2.28 | 2.35 | 2.69 |
| HS17 [11] | 2.30 | 2.34 | 2.39 | 2.49 | 2.81 |
+
+Tables 1 and 2 show the experimental results for varying numbers of surface normal candidates and lights, respectively. Both results suggest that our method consistently estimates surface normals more accurately than the existing method. One of the reasons is a difference in the search strategies. Hui and Sankaranarayanan [11] proposed a search strategy that avoids searching parts of the surface normal space since their method is computationally expensive due to iterative optimization. In contrast, our method searches over all surface normal candidates in reasonable computation time facilitated by the precomputation.
+
+# 5.2. Evaluation on real-world data
+
+We show quantitative comparisons on the DiLiGenT dataset in Tab. 3 where we compare our method with existing methods in terms of mean angular error. Here, our
+
+Table 3: Comparisons on the DiLiGenT dataset. We apply a least-squares method as baseline. The values represent mean angular error (MAE).
+
+ | Ball | Bear | Buddha | Cat | Cow | Goblet | Harvest | Pot1 | Pot2 | Reading | Avg. |
| Ours | 1.58 | 6.38 | 13.69 | 6.30 | 7.80 | 11.42 | 18.74 | 6.67 | 7.26 | 15.49 | 9.53 |
| SI18 [12] | 2.20 | 4.10 | 7.90 | 4.60 | 7.90 | 7.30 | 13.90 | 5.40 | 6.00 | 12.60 | 7.20 |
| HS18 [11] | 1.33 | 5.58 | 8.48 | 4.88 | 8.23 | 7.57 | 15.80 | 5.16 | 6.41 | 12.08 | 7.55 |
| CH18 [3] | 2.80 | 7.60 | 7.90 | 6.20 | 7.30 | 8.60 | 15.90 | 7.10 | 7.30 | 13.30 | 8.40 |
| TM18 [22] | 1.47 | 5.79 | 10.36 | 5.44 | 6.32 | 11.47 | 22.59 | 6.09 | 7.76 | 11.03 | 8.83 |
| ST14 [21] | 1.74 | 6.12 | 10.60 | 6.21 | 13.90 | 10.10 | 25.40 | 6.51 | 8.78 | 13.60 | 10.30 |
| IA14 [13] | 3.34 | 7.11 | 10.50 | 6.74 | 13.10 | 9.71 | 26.00 | 6.64 | 8.77 | 14.20 | 10.60 |
| Baseline | 4.10 | 8.39 | 14.90 | 8.41 | 25.60 | 18.50 | 30.60 | 8.89 | 14.70 | 19.80 | 15.40 |
+
+
+Figure 6: Visual comparison for the non-convex objects Cat and Reading. We show estimated normals and angular error maps of our method and a state-of-the-art CNN-based method [12].
+
+method does not achieve the best results. This is considered to be due to factors not modeled in our method, namely cast shadows or inter-reflections. Figure 6 shows visual comparisons between our method and Ikehata's CNN-based method [12] for two non-convex objects with cast shadows and inter-reflections. Our method causes a large angular error in pixels where cast shadows or inter-reflections are likely to occur. However, in convex parts our method outperforms the CNN-based state-of-the-art method and estimates the surface normals well for the Reading object's complex specular material. We show more visual comparisons in the supplementary material.
+
+# 5.3. Computation cost
+
+For inference, our method evaluates the reconstruction error $\| \mathbf{Z}_i\mathbf{m}\| _2^2$ in Eq. (5) for each surface normal candidate $\mathbf{n}_i\in \mathcal{N}$ . All matrices $\mathbf{Z}_i$ are precomputed; therefore, at inference time we only need to evaluate the reconstruction error of each $\mathbf{n}_i$ and find the minimizer. The dimension of matrix $\mathbf{Z}_i\in \mathbb{R}^{L'\times L'}$ only depends on the number of lights $L^{\prime}$ , but not the number of materials. Table 4 summarizes
+
+Table 4: Computation time in seconds for surface normal estimation of one pixel with 20001 surface normal candidates, measured on one core of an Intel Xeon CPU E5-2680 v4 @ 2.40GHz.
+
+ | number of lights L' |
| 100 | 80 | 60 | 40 | 20 |
| Time [sec.] | 0.31 | 0.21 | 0.15 | 0.062 | 0.024 |
+
+the computation time per pixel for 20001 surface normal candidates and a varying number of lights $L'$ . The computation is highly parallelizable, e.g., by pixel-wise or normal candidate-wise parallelization.
+
+# 5.4. Choice of dimension $M^{\prime}$ for noisy data
+
+It is difficult to avoid imaging noise in real-world data and it must therefore always be considered. We empirically observed that $M'$ is related to our method's robustness towards noise. Thus, we determine an optimal $M'$ by a validation on the noisy MERL sphere dataset.
+
+Table 5: Surface normal estimation with varying $M^{\prime}$ on the noisy MERL sphere dataset under three sets of lights, (a) 60 lights, (b) 80 lights, and (c) DiLiGenT's 96 lights. Values indicate mean angular errors in degrees.
+(a)
+
+| M' | μ/λ |
| 0/0 | 5/30 | 30/5 | 30/30 |
| 3 | 2.21 | 3.99 | 3.65 | 4.37 |
| 5 | 1.83 | 4.10 | 3.52 | 4.50 |
| 10 | 1.71 | 4.29 | 3.53 | 4.71 |
| 20 | 1.75 | 4.95 | 3.84 | 5.33 |
+
+(b)
+
+| M' | μ/λ |
| 0/0 | 5/30 | 30/5 | 30/30 |
| 3 | 2.18 | 3.99 | 3.83 | 4.43 |
| 5 | 1.76 | 4.12 | 3.71 | 4.57 |
| 10 | 1.62 | 4.30 | 3.72 | 4.77 |
| 20 | 1.62 | 4.68 | 3.88 | 5.12 |
+
+(c)
+
+| M' | μ/λ |
| 0/0 | 5/30 | 30/5 | 30/30 |
| 3 | 2.59 | 5.60 | 5.15 | 6.22 |
| 5 | 2.38 | 6.19 | 5.20 | 6.75 |
| 10 | 2.33 | 7.08 | 5.39 | 7.62 |
| 20 | 2.37 | 8.07 | 5.70 | 8.65 |
+
+Setup: We apply 5-fold cross-validation on the MERL BRDFs; the 100 MERL BRDFs are divided into 80 BRDFs for the BRDF tensor and 20 BRDFs for testing. We test varying $M' = \{3, 5, 10, 20\}$ and varying noise $\mu / \lambda = \{0/0, 5/30, 30/5, 30/30\}$ under three sets of lights: 60 lights, 80 lights, and DiLiGenT's 96 lights.
+
+Results: Table 5 shows mean angular errors of estimated surface normals in degrees for varying $M'$ . In the noiseless cases ( $\mu = \lambda = 0$ ), a larger $M'$ performs better. Contrarily, in most of the noisy cases, $M' = 3$ produces lower angular errors, indicating that $M' = 3$ is most robust to noise. For this reason, we apply $M' = 3$ in all following experiments.
+
+# 5.5. Discretized light directions
+
+In all experiments so far, we assumed that the BRDF tensor contains the known light directions. In practice, the BRDF tensor rarely contains all of the known light directions and we should use pre-defined light directions closest to the known light directions instead. Here, we examine how the surface normal estimation accuracy is affected by the discretization of light directions.
+
+Setup: As pre-defined light directions in the BRDF tensor we used 20001 discretized directions from a $0.5^{\circ}$ equiangular sampling over the hemisphere. When a set of known light directions is given, as illustrated in Fig. 2, we can slice out a sampled BRDF matrix for a hypothesized surface normal and the set of light directions that are closest to the known light direction in terms of cosine distance. We can then follow the same estimation process used so far. We performed this experiments with 20, 40, 60, 80, 100 known lights. We used the MERL sphere dataset and performed 5-fold cross-validation over the BRDFs.
+
+Results: Table 6 shows surface normal estimation results for exactly known and for discretized light directions in the BRDF tensor. We observe that there are only slight differences between both cases ( $< 0.1^{\circ}$ in the mean angular errors), which suggests that it is sufficient to precompute a BRDF tensor for sufficiently finely discretized light directions and there is no need to recalculate the BRDF tensor
+
+Table 6: The effect of discretizing the light directions and picking the directions closest to a set of known directions. The values indicate mean angular error in degrees.
+
+ | number of lights L' |
| 100 | 80 | 60 | 40 | 20 |
| Using known lights | 2.15 | 2.18 | 2.21 | 2.31 | 2.69 |
| Using discretized lights | 2.16 | 2.19 | 2.22 | 2.33 | 2.73 |
+
+with known light directions each time one works with a new light setup.
+
+# 6. Discussion
+
+In this paper, we have presented a photometric stereo method based on discrete hypothesis-and-test search. The proposed method can work with a diverse set of BRDFs that are represented in a BRDF tensor and can determine surface normals of a scene with spatially varying general BRDFs. By putting most of the computation into a precomputation step, we enabled a full search over all surface normal candidates, leading to a solution guaranteed to be optimal within the bounds of the objective function and the discretization. The approach is also supported by the fact that with the continuing increase of computation power, memory size, and the availability of many-core processors, the applicability of the full search strategy is expanding. We are interested in seeing more applications along the direction.
+
+One interesting question to investigate in the future would be how many BRDFs are needed to fully represent real-world materials. Our BRDF tensor can hold an arbitrary number of BRDFs; therefore, we are interested in increasing the number of BRDFs in the tensor to study this question, while it may only be empirically understood.
+
+# Acknowledgements
+
+This work was supported by JSPS KAKENHI Grant Number JP19H01123. Michael Waechter was supported through a postdoctoral fellowship by the Japan Society for the Promotion of Science (JP17F17350). Kiriakos N. Kutulakos was supported by the Natural Sciences and Engineering Research Council of Canada under the RGPIN program.
+
+# References
+
+[1] Neil Alldrin, Todd Zickler, and David Kriegman. Photometric stereo with non-parametric and spatially-varying reflectance. In Computer Vision and Pattern Recognition (CVPR), 2008. 1
+[2] Brent Burley. Physically-based shading at Disney. In SIGGRAPH, 2012. 2
+[3] Guanying Chen, Kai Han, and Kwan-Yee Kenneth Wong. PS-FCN: A flexible learning framework for photometric stereo. In European Conference on Computer Vision (ECCV), 2018. 2, 7
+[4] Lixiong Chen, Yinqiang Zheng, Boxin Shi, Art Subpa-Asa, and Imari Sato. A microfacet-based reflectance model for photometric stereo with highly specular surfaces. In Computer Vision and Pattern Recognition (CVPR), 2017. 1, 2
+[5] Tongbo Chen, Michael Goesele, and Hans-Peter Seidel. Mesostructure from specularity. In Computer Vision and Pattern Recognition (CVPR), 2006. 2
+[6] Hin-Shun Chung and Jiaya Jia. Efficient photometric stereo on glossy surfaces with wide specular lobes. In Computer Vision and Pattern Recognition (CVPR), 2008. 2
+[7] Athinodoros S. Georgiades. Incorporating the Torrance and Sparrow model of reflectance in uncalibrated photometric stereo. In International Conference on Computer Vision (ICCV), 2003. 2
+[8] Radoslav Harman and Vladimír Lacko. On decompositional algorithms for uniform sampling from n-spheres and n-balls. Journal of Multivariate Analysis, 101(10):2297-2304, 2010. 5
+[9] Aaron Hertzmann and Steven M. Seitz. Example-based photometric stereo: Shape reconstruction with general, varying BRDFs. Transactions on Pattern Analysis and Machine Intelligence (PAMI), 27(8):1254-1264, 2005. 1, 2, 3
+[10] Berthold KP Horn and Katsushi Ikeuchi. The mechanical manipulation of randomly oriented parts. Scientific American, 251(2):100-113, 1984. 2
+[11] Zhuo Hui and Aswin C. Sankaranarayanan. Shape and spatially-varying reflectance estimation from virtual exemplars. Transactions on Pattern Analysis and Machine Intelligence (PAMI), 39(10):2060-2073, 2017. 1, 2, 3, 5, 6, 7
+[12] Satoshi Ikehata. CNN-PS: CNN-based photometric stereo for general non-convex surfaces. In European Conference on Computer Vision (ECCV), 2018. 2, 5, 6, 7
+[13] Satoshi Ikehata and Kiyoharu Aizawa. Photometric stereo using constrained bivariate regression for general isotropic surfaces. In Computer Vision and Pattern Recognition (CVPR), 2014. 1, 2, 5, 6, 7
+[14] Micah K. Johnson and Edward H. Adelson. Shape estimation in natural illumination. In Computer Vision and Pattern Recognition (CVPR), 2011. 2
+[15] Feng Lu, Xiaowu Chen, Imari Sato, and Yoichi Sato. SymPS: BRDF symmetry guided photometric stereo for shape and light source estimation. Transactions on Pattern Analysis and Machine Intelligence (PAMI), 40(1):221-234, 2018. 1
+
+[16] Wojciech Matusik, Hanspeter Pfister, Matt Brand, and Leonard McMillan. A data-driven reflectance model. Transactions on Graphics (TOG), 22(3):759-769, 2003. 2, 4, 5
+[17] Netanel Ratner and Yoav Y. Schechner. Illumination multiplexing within fundamental limits. In Computer Vision and Pattern Recognition (CVPR), 2007. 5
+[18] Edward B. Saff and Arno Kuijlaars. Distributing many points on a sphere. The Mathematical Intelligencer, 19(1):5-11, 1997. 5
+[19] Hiroaki Santo, Masaki Samejima, Yusuke Sugano, Boxin Shi, and Yasuyuki Matsushita. Deep photometric stereo network. In Workshops of the International Conference on Computer Vision (ICCVW), 2017. 2
+[20] Boxin Shi, Zhipeng Mo, Zhe Wu, Dinglong Duan, Sai-Kit Yeung, and Ping Tan. A benchmark dataset and evaluation for non-Lambertian and uncalibrated photometric stereo. Transactions on Pattern Analysis and Machine Intelligence (PAMI), 41(2):271-284, 2019. 5
+[21] Boxin Shi, Ping Tan, Yasuyuki Matsushita, and Katsushi Ikeuchi. Bi-polynomial modeling of low-frequency reflectances. Transactions on Pattern Analysis and Machine Intelligence (PAMI), 36(6):1078-1091, 2014. 1, 2, 7
+[22] Tatsunori Taniai and Takanori Maehara. Neural inverse rendering for general reflectance photometric stereo. In International Conference on Machine Learning (ICML), 2018. 7
+[23] Silvia Tozza, Roberto Mecca, Marti Duocastella, and Alessio Del Bue. Direct differential photometric stereo shape recovery of diffuse and specular surfaces. Journal of Mathematical Imaging and Vision, 56(1):57-76, 2016. 2
+[24] Olivia Wiles and Andrew Zisserman. SilNet: Single- and multi-view reconstruction by learning from silhouettes. British Machine Vision Conference (BMVC), 2017. 2
+[25] Robert J. Woodham. Photometric method for determining surface orientation from multiple images. Optical Engineering, 19(1):139-144, 1980. 1, 2
+[26] Sai-Kit Yeung, Tai-Pang Wu, Chi-Keung Tang, Tony F. Chan, and Stanley J. Osher. Normal estimation of a transparent object using a video. Transactions on Pattern Analysis and Machine Intelligence (PAMI), 37(4):890-897, 2014. 2
\ No newline at end of file
diff --git a/photometricstereoviadiscretehypothesisandtestsearch/images.zip b/photometricstereoviadiscretehypothesisandtestsearch/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..5e4c074c8efa93bc736d143f18bbfeffd1da017d
--- /dev/null
+++ b/photometricstereoviadiscretehypothesisandtestsearch/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:25dd6b41b6073af07d16cef69ed57f248f868b37a7b3c71b04939a493238369e
+size 609683
diff --git a/photometricstereoviadiscretehypothesisandtestsearch/layout.json b/photometricstereoviadiscretehypothesisandtestsearch/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..7a41f938ebc38c85a9285fa7ec39b181d0f22c9c
--- /dev/null
+++ b/photometricstereoviadiscretehypothesisandtestsearch/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:db947212e3a6a213f3f61a7c5f38e42db1baf20b4ce0b6588329ceff3bbe0351
+size 407651
diff --git a/phrasecutlanguagebasedimagesegmentationinthewild/60f13641-8bfa-47e1-a044-59279f388e6b_content_list.json b/phrasecutlanguagebasedimagesegmentationinthewild/60f13641-8bfa-47e1-a044-59279f388e6b_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..a8bfed202d19c6df4611c642ffa4a3579fcf7609
--- /dev/null
+++ b/phrasecutlanguagebasedimagesegmentationinthewild/60f13641-8bfa-47e1-a044-59279f388e6b_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:010c80b082c13c18add17c61e9d07e7fc7079002102616b50925e13960cd3219
+size 76503
diff --git a/phrasecutlanguagebasedimagesegmentationinthewild/60f13641-8bfa-47e1-a044-59279f388e6b_model.json b/phrasecutlanguagebasedimagesegmentationinthewild/60f13641-8bfa-47e1-a044-59279f388e6b_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..2743aee838a0273faa852e1cd2a1c34917ccd4ec
--- /dev/null
+++ b/phrasecutlanguagebasedimagesegmentationinthewild/60f13641-8bfa-47e1-a044-59279f388e6b_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:96595f6b3378e5f5417a5d2023f3799191a3cdfef16bcda26ad8bb1acb88346d
+size 94969
diff --git a/phrasecutlanguagebasedimagesegmentationinthewild/60f13641-8bfa-47e1-a044-59279f388e6b_origin.pdf b/phrasecutlanguagebasedimagesegmentationinthewild/60f13641-8bfa-47e1-a044-59279f388e6b_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..186bebe40e1a4b338df6a5b4daef8034b1bb80f7
--- /dev/null
+++ b/phrasecutlanguagebasedimagesegmentationinthewild/60f13641-8bfa-47e1-a044-59279f388e6b_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7211d6402f8228c541966203a3f6d3d103e5beec8b499c973e80953b9b47d236
+size 1265391
diff --git a/phrasecutlanguagebasedimagesegmentationinthewild/full.md b/phrasecutlanguagebasedimagesegmentationinthewild/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..55ca8d5a5ef9b3fe9c1268d77df81b336c3a9246
--- /dev/null
+++ b/phrasecutlanguagebasedimagesegmentationinthewild/full.md
@@ -0,0 +1,297 @@
+# PhraseCut: Language-based Image Segmentation in the Wild
+
+Chenyun Wu1 Zhe Lin2 Scott Cohen2 Trung Bui2 Subhransu Maji1
+1University of Massachusetts Amherst 2Adobe Research
+
+{chenyun,smaji}@cs.umass.edu, {zlin,scohen,bui}@adobe.com
+
+# Abstract
+
+We consider the problem of segmenting image regions given a natural language phrase, and study it on a novel dataset of 77,262 images and 345,486 phrase-region pairs. Our dataset is collected on top of the Visual Genome dataset and uses the existing annotations to generate a challenging set of referring phrases for which the corresponding regions are manually annotated. Phrases in our dataset correspond to multiple regions and describe a large number of object and stuff categories as well as their attributes such as color, shape, parts, and relationships with other entities in the image. Our experiments show that the scale and diversity of concepts in our dataset poses significant challenges to the existing state-of-the-art. We systematically handle the long-tail nature of these concepts and present a modular approach to combine category, attribute, and relationship cues that outperforms existing approaches.
+
+# 1. Introduction
+
+Modeling the interplay of language and vision is important for tasks such as visual question answering, automatic image editing, human-robot interaction, and more broadly towards the goal of general Artificial Intelligence. Existing efforts on grounding language descriptions to images have achieved promising results on datasets such as Flickr30Entities [30] and Google Referring Expressions [26]. These datasets, however, lack the scale and diversity of concepts that appear in real-world applications.
+
+To bridge this gap we present the VGPHRASECUT dataset and an associated task of grounding natural language phrases to image regions called PhraseCut (Figure 1 and 2). Our dataset leverages the annotations in the Visual Genome (VG) dataset [18] to generate a large set of referring phrases for each image. For each phrase, we annotate the regions and instance-level bounding boxes that correspond to the phrase. Our dataset contains 77,262 images and 345,486 phrase-region pairs, with some examples shown in Figure 2. VGPHRASECUT contains a significantly longer tail of concepts and has a unified treatment of stuff and object cat
+
+
+Figure 1. Our task and approach. PhraseCut is the task of segmenting image regions given a natural language phrase. Each phrase is templated into words corresponding to categories, attributes, and relationships. Our approach combines these cues in a modular manner to estimate the final output.
+
+egories, unlike prior datasets. The phrases are structured into words that describe categories, attributes, and relationships, providing a systematic way of understanding the performance on individual cues as well as their combinations.
+
+The PhraseCut task is to segment regions of an image given a templatd phrase. As seen in Figure 1, this requires connecting natural language concepts to image regions. Our experiments show that the task is challenging for state-of-the-art referring approaches such as MattNet [40] and RMI [21]. We find that the overall performance is limited by the performance on rare categories and attributes. To address these challenges we present (i) a modular approach for combining visual cues related to categories, attributes, and relationships, and (ii) a systematic approach to improving the performance on rare categories and attributes by leveraging predictions on more frequent ones. Our category and attribute modules are based on detection models, whose instance-level scores are projected back to the image and further processed using an attention-based model driven by the query phrase. Finally, these are combined with
+
+
+
+
+
+
+short deer
+walking people
+
+
+
+
+wipers on trains
+
+
+zebra lying on savanna
+
+
+black shirt
+
+
+hatchback car
+Figure 2. Example annotations from the VGPHRASECUT dataset. Colors (blue, red, green) of the input phrases correspond to words that indicate attributes, categories, and relationships respectively.
+
+
+mark on chicken
+
+
+glass bottles
+
+
+blonde hair
+
+
+pedestrian crosswalk
+
+relationship scores to estimate the segmentation mask (see Figure 1). Objects and stuff categories are processed in a unified manner and the modular design, after the treatment of rare categories, outperforms existing end-to-end models trained on the same dataset.
+
+Using the dataset we present a systematic analysis of the performance of the models on different subsets of the data. The main conclusions are: (i) object and attribute detection remains poor on rare and small-sized categories, (ii) for the task of image grounding, rare concepts benefit from related but frequent ones (e.g., the concept "policeman" could be replaced by "man" if there were other distinguishing attributes such as the color of the shirt), and (iii) attributes and relationship models provide the most improvements on rare and small-sized categories. The performance on this dataset is far from perfect and should encourage better models of object detection and semantic segmentation in the computer vision community. The dataset and code is available at: https://people.cs.umass.edu/~chenyun/phrasecut.
+
+# 2. Related Work
+
+The language and vision community has put significant effort into relating words and images. Our dataset is closely related to datasets for the visual grounding of referring expressions. We also describe recent approaches for grounding natural language to image regions.
+
+Visual grounding datasets Table 1 shows a comparison of various datasets related to grounding referring expressions to images. The ReferIt dataset [17] was collected on images from ImageCLEF using a ReferItGame between two players. Mao et al. [26] used the same strategy to collect a significantly larger dataset called Google RefExp, on images from the MS COCO dataset [20]. The referring phrases describe objects and refer to boxes inside the image across 80 categories, but the descriptions are long and perhaps re
+
+dundant. Yu et al. [41] instead collect referring expressions using a pragmatic setting where there is limited interaction time between the players to generate and infer the referring object. They collected two versions of the data: RefCOCO that allows location descriptions such as "man on the left", and RefCOCO+ which forbids location cues forcing a focus on other visual clues. One drawback is that Google RefExp, RefCOCO and RefCOCO+ are all collected on MS-COCO objects, limiting their referring targets to 80 object categories. Moreover, the target is always one single instance, and there is no treatment of stuff categories.
+
+Another related dataset is the Flickr30K Entities [30]. Firstly entities are mined and grouped (co-reference resolution) from captions by linking phrases that describe the same entity and then the corresponding bounding-boxes are collected. Sentence context is often needed to ground the entity phrases to image regions. While there are a large number of categories (44,518), most of them have very few examples (average 6.2 examples per category) with a significant bias towards human-related categories (their top 7 categories are "man", "woman", "people", "shirt", "girl", "boy", "men"). The dataset also does not contain segmentation masks. nor phrases that describe multiple instances.
+
+Our dataset is based on the Visual Genome (VG) dataset [18]. VG annotates each image as a "scene graph" linking descriptions of individual objects, attributes, and their relationships to other objects in the image. The dataset is diverse, capturing various object and stuff categories, as well as attribute and relationship types. However, most descriptions do not distinguish one object from other objects in the scene, i.e., they are not referring expressions. Also, VG object boxes are very noisy. We propose a procedure to mine descriptions within the scene graph that uniquely identifies the objects, thereby generating phrases that are more suitable for the referring task. Finally, we collect segmentation annotations of corresponding regions for these phrases.
+
+| Dataset | ReferIt [17] | Google RefExp [26] | RefCOCO [41] | Flickr30K Entities [30] | Visual Genome [18] | VGPHRASECUT |
| # images | 19,894 | 26,711 | 19,994 | 31,783 | 108,077 | 77,262 |
| # instances | 96,654 | 54,822 | 50,000 | 275,775 | 1,366,673 | 345,486 |
| # categories | - | 80 | 80 | 44,518 | 80,138 | 3103 |
| multi-instance | No | No | No | No | No | Yes |
| segmentation | Yes | Yes | Yes | No | No | Yes |
| referring phrase | short phrases | long descriptions | short phrases | entities in captions | region descriptions | templated phrases |
+
+Table 1. Comparison of visual grounding datasets. The proposed VGPHRASECUT dataset has a significantly higher number of categories than RefCOCO and Google RefExp, while also containing multiple instances.
+
+Approaches for grounding language to images Techniques for localizing regions in an image given a natural language phrase can be broadly categorized into two groups: single-stage segmentation-based techniques and two-stage detection-and-ranking based techniques.
+
+Single-stage methods [6, 15, 19, 21, 27, 33, 38, 39] predict a segmentation mask given a natural language phrase by leveraging techniques used in semantic segmentation. These methods condition a feed-forward segmentation network, such as a fully-convolutional network or U-Net, on the encoding of the natural language (e.g., LSTM over words). The advantage is that these methods can be directly optimized for the segmentation performance and can easily handle stuff categories as well as different numbers of target regions. However, they are not as competitive on small-sized objects. We compare a strong baseline of RMI [21] on our dataset.
+
+More state-of-the-art methods are based on a two-stage framework of region proposal and ranking. Significant innovations in techniques have been due to the improved techniques for object detection (e.g., Mask R-CNN [11]) as well as language comprehension. Some earlier works [7, 16, 23, 25, 26, 28, 29, 31, 34, 41] adopt a joint image-language embedding model to rank object proposals according to their matching scores to the input expressions. More recent works improve the proposal generation [7, 42], introduce attention mechanisms [1, 9, 39] for accurate grounding, or leverage week supervision from captions [8, 36].
+
+The two-stage framework has also been further extended to modular comprehension inspired by neural module networks [2]. For example, Hu et al. [14] introduce a compositional modular network for better handling of attributes and relationships. Yu et al. [40] propose a modular attention network (MattNet) to factorize the referring task into separate ones for the noun phrase, location, and relationships. Liu et al. [24] improves MattNet by removing easy and dominant words and regions to learn more challenging alignments. Several recent works [3,4,10,22,35,37,43] also apply reasoning on graphs or trees for more complicated phrases. These approaches have several appealing properties such as more detailed modeling of different aspects of language descriptions. However, these techniques have been primarily evaluated on datasets with a closed set of categories, and often with ground-truth instances provided.
+
+Sadhu et al. [32] proposes zero-shot grounding to handle phrases with unseen nouns. Our work emphasizes further on the large number of categories, attributes and relationships, providing supervision over these long-tailed concepts and more detailed and straightforward evaluation.
+
+# 3. The VGPHRASECUT Dataset
+
+In this section, we describe how the VGPHRASECUT dataset was collected, the statistics of the final annotations, and the evaluation metrics. Our annotations are based on images and scene-graph annotations from the Visual Genome (VG) dataset. We briefly describe each step in the data-collection pipeline illustrated in Figure 3, deferring to the supplemental material Section 1.1 for more details.
+
+Step 1: Box sampling Each image in VG dataset contains 35 boxes on average, but they are highly redundant. We sample an average of 5 boxes from each image in a stratified manner by avoiding boxes that are highly overlapping or are from a category that already has a high number of selected boxes. We also remove boxes that are less than $2\%$ or greater than $90\%$ of the image size.
+
+Step 2: Phrase generation Each sampled box has several annotations of category names (e.g., "man" and "person"), attributes (e.g., "tall" and "standing") and relationships with other entities in the image (e.g., "next to a tree" and "wearing a red shirt"). We generate one phrase for one box at a time, by adding categories, attributes and relationships that allow discrimination with respect to other VG boxes by the following set of heuristics:
+
+1. We first examine if one of the provided categories of the selected box is unique. If so we add this to the phrase and tack on to it a randomly sampled attribute or relationship description of the box. The category name uniquely identifies the box in this image.
+2. If the box is not unique in terms of any of its category names, we look for a unique attribute of the box that distinguishes it from boxes of the same category. If such an attribute exists we combine it with the category name as the generated phrase.
+3. If no such an attribute exists, we look for a distinguishing relationship description (a relationship predicate plus a category name for the supporting object). If such a relationship exists we combine it with the category name as the generated phrase.
+
+
+Step 1: Box Sampling
+Step 2: Phrase Generation
+blue | colored car on road
+$\rightarrow$ "blue car" (There are many "car" boxes, but only one of them is "blue
+"license plate on car " red vehicle"
+"white building"...
+
+
+Step 3: Region Annotation
+Step 4: Worker Verification
+Figure 3. Illustrations of our VGPHRASECUT dataset collection pipeline. Step 1: blue boxes are the sampling result; red boxes are ignored. Step 2: Phrase generation example in the previous image. Step 3: User interface for collecting region masks. Step 4: Example annotations from trusted and excluded annotators. Step 5: Instance label refinement examples. Blue boxes are final instance boxes, and red boxes are corresponding ones from Visual Genome annotations.
+
+
+Trusted Workers
+Excluded Workers
+
+
+
+
+
+
+Step 5: Instance Labeling
+
+
+
+
+
+
+
+4. If all of the above fail, we combine all attributes and relationships on the target box and randomly choose a category from the provided list of categories for the box to formulate the phrase. In this case, the generated phrase is more likely to correspond to more than one instance within the image.
+
+The attribute and relationship information may be missing if the original box does not have any, but there is always a category name for each box. Phrases generated in this manner tend to be concise but do not always refer to a unique instance in the image.
+
+Step 3: Region annotation We present the images and generated phrases from the previous steps to human annotators on Amazon Mechanical Turk, and ask them to draw polygons around the regions that correspond to provided phrases. Around $10\%$ of phrases are skipped by workers when the phrases are ambiguous.
+
+Step 4: Automatic annotator verification Based on manual inspection over a subset of annotators, we design an automatic mechanism to identify trusted annotators based on the overall agreement of their annotations with the VG boxes. Only annotations from trusted annotators are included in our dataset. $9.27\%$ phrase-region pairs are removed in this step.
+
+Step 5: Automatic instance labeling As a final step we generate instance-level boxes and masks. In most cases, each polygon drawn by the annotators is considered an instance. It is further improved by a set of heuristics to merge multiple polygons into one instance and to split one polygon into several instances leveraging the phrase and VG boxes.
+
+# 3.1. Dataset statistics
+
+Our final dataset consists of 345,486 phrases across 77,262 images. This roughly covers $70\%$ of the images in Visual Genome. We split the dataset into 310,816 phrases (71,746 images) for training, 20,316 (2,971 images) for validation, and 14,354 (2,545 images) for testing. There is no overlap of COCO trainval images with our test split so that models pre-trained on COCO can be fairly used and evaluated. Figure 4 illustrates several statistics of the dataset. Our dataset contains 1,272 unique category phrases, 593
+
+unique attribute phrases, and 126 relationship phrases with frequency over 20, as seen by the word clouds. Among the distribution of phrases (bottom left bar plot), one can see that $68.2\%$ of the instances can be distinguished by category alone ( $category+$ ), while $11.8\%$ of phrases require some treatment of attributes to distinguish instances ( $attributes+$ ). Object sizes and their frequency vary widely. While most annotations refer to a single instance, $17.6\%$ of phrases refer to two or more instances. These aspects of the dataset make the PhraseCut task challenging. In Supplementary Section 1.2, we further demonstrate the long-tailed distribution of concepts and how attributes and relationships vary in different categories.
+
+# 3.2. Evaluation metrics
+
+The PhraseCut task is to generate a binary segmentation of the input image given a referring phrase. We assume that the input phrase is parsed into attribute, category, and relationship descriptions. For evaluation we use the following intersection-over-union (IoU) metrics:
+
+- cumulative IoU: cum-IoU = $(\sum_{t} I_{t}) / (\sum_{t} U_{t})$ , and
+- mean IoU: mean-IoU = $\frac{1}{N} \sum_{t} I_t / U_t$ .
+
+Here $t$ indexes over the phrase-region pairs in the evaluation set, $I_{t}$ and $U_{t}$ are the intersection and union area between predicted and ground-truth regions, and $N$ is the size of the evaluation set. Notice that, unlike cum-IoU, mean-IoU averages the performance across all image-region pairs and thus balances the performance on small and large objects.
+
+We also report the precision when each phrase-region task is considered correct if the IoU is above a threshold. We report results with IoU thresholds at 0.5, 0.7, 0.9 as $\mathsf{Pr} @ 0.5, \mathsf{Pr} @ 0.7, \mathsf{Pr} @ 0.9$ respectively.
+
+All these metrics can be computed on different subsets of the data to obtain a better understanding of the strengths and failure modes of the model.
+
+# 4. A Modular Approach to PhraseCut
+
+We propose Hierarchical Modular Attention Network (HULANet) for the PhraseCut task, as illustrated in Figure 5. The approach is based on two design principles. First,
+
+
+
+
+Figure 4. Statistics of the VGPHRASECUT dataset. Top row: Word clouds of categories (left), attributes (center), and relationship descriptions (right) in the dataset. The size of each phrase is proportional to the square root of its frequency in the dataset. Bottom row: breakdowns of the dataset into different subsets including contents in phrases (first), category frequency (second), size of target region relative to the image size (third), number of target instances per query phrase (fourth), and types of category (last). The leftmost bar chart shows the breakdown of phrases into those that have category annotation (cat) and those that can be distinguished by category information alone ( $\mathrm{cat+}$ ), and similarly for attributes and relationships.
+
+
+Figure 5. Architecture of HULANet. The architecture consists of modules to obtain attribute, category, and relation predictions given a phrase and an image. The attribute and category scores are obtained from Mask-RCNN detections and projected back to the image. The scores across categories and attributes are combined using a module-specific attention model. The relationship module is a convolutional network that takes as input the prediction mask of the related category and outputs a spatial mask given the relationship predicate. The modules are activated based on their presence in the query phrase and combined using an attention mechanism guided by the phrase.
+
+we design individual modules for category, attribute and relationship sub- phrases. Each module handles the long-tail distribution of concepts by learning to aggregate information across concepts using a module-specific attention mechanism. Second, instance-specific predictions are projected onto the image space and combined using an attention mechanism driven by the input phrase. This allows the model to handle stuff and object categories, as well as mul
+
+tiple instances in a unified manner. Details of each module are described next.
+
+Backbone encoders We use the Mask-RCNN [11] detector and bi-directional LSTMs [13] as our backbone encoders for images and phrases respectively. The Mask-RCNN (with ResNet101 [12] backbone) is trained to detect instances and predict category scores for the 1,272 categories that have a frequency over 20 on our dataset. Different from instance detection tasks on standard benchmarks, we allow relatively noisy instance detections by setting a low threshold on objectness scores and by allowing at most 100 detections per image to obtain a high recall. For phrase encoding, we train three separate bi-directional LSTMs to generate embeddings for categories, attributes and relationship phrases. They share the same word embeddings initialized from FastText [5] as the input to the LSTM, and have mean pooling applied on the LSTM output of the corresponding words as the encoded output.
+
+Category module The category module takes as input the phrase embedding of the category and detected instance boxes (with masks) from Mask-RCNN, and outputs a score-map of corresponding regions in the image. We first construct the category channels $C \in \mathbb{R}^{N \times H \times W}$ by projecting the Mask-RCNN predictions back to the image. Here $N = 1272$ is the number of categories and $H \times W$ is set to $1/4 \times$ the input image size. Concretely, for each instance $i$ detected by Mask R-CNN as category $c_i$ with score $s_i$ , we project its predicted segmentation mask to image as a binary mask $m_{i,H \times W}$ , and update the category channel score at the corresponding location as $C[c_i, m_i] := \max(s_i, C[c_i, m_i])$ . Finally, each category channel is passed through a "layer-norm" which scales the mean and variance of each channel.
+
+To compute the attention over the category channels, the phrase embedding $e_{cat}$ is passed through a few linear layers $f$ with sigmoid activation at the end to predict the attention weights over the category channels $A = \sigma(f(e_{cat}))$ . We calculate the weighted sum of the category channels guided by the attention weights $S_{H \times W} = \sum_{c} A_{c} \cdot C_{c}$ , and apply a learned affine transformation plus sigmoid to obtain the category module prediction heat-map $P_{H \times W} = \sigma(a \cdot S_{H \times W} + b)$ . This attention scheme enables the category module to leverage predictions from good category detectors to improve performance on more difficult categories. We present other baselines for combining category scores in the ablation studies in Section 5.
+
+Attribute module The attribute module is similar to the category module except for an extra attribute classifier. On top of the pooled ResNet instance features from Mask-RCNN, we train a two-layer multi-label attribute classifier. To account for significant label imbalance we weigh the positive instances more when training attribute classifiers with the binary cross-entropy loss. To obtain attribute score channels we take the top 100 detections and project their top 20 predicted attributes back to the image. Identical with the category module, we use the instance masks from the Mask-RCNN, update the corresponding channels with the predicted attribute scores, and finally apply the attention scheme guided by the attribute embedding from the phrase to obtain the final attribute prediction score heat-map.
+
+Relationship module Our simple relationship module uses the category module to predict the locations of the supporting object. The down-scaled $(32 \times 32)$ score of the supporting object is concatenated with the embedding of the relationship predicate. This is followed by two dilated convolutional layers with kernel size 7 applied on top, achieving a large receptive field without requiring many parameters. Finally, we apply an affine transformation followed by sigmoid to obtain the relationship prediction scores. The convolutional network can model coarse spatial relationships by learning filters corresponding to each spatial relation. For example, by dilating the mask one can model the relationship "near", and by moving the mask above one can model the relationship "on".
+
+Combining the modules The category, attribute, and relation scores $P_{c}, P_{a}, P_{r}$ obtained from individual modules are each represented as a $H \times W$ image, $1/4$ the image size. To this we append channels of quadratic interactions $P_{i} \circ P_{j}$ for every pair of channels (including $i = j$ ), obtained using elementwise product and normalization, and a bias channel of all ones, to obtain a 10-channel scoremap $F$ ( $3 + 6 + 1$ channels). Phrase embeddings of category, attribute and relationship are concatenated together and then encoded into 10-dimensional "attention" weights $w$ through linear layers with LeakyReLU and DropOut followed by normalization. When there is no attribute or relationship in the input
+
+| Model | mean-IoU | cum-IoU | Pr@0.5 | Pr@0.7 | Pr@0.9 |
| HULANet | | | | | |
| cat | 39.9 | 48.8 | 40.8 | 25.9 | 5.5 |
| cat+att | 41.3 | 50.8 | 42.9 | 27.8 | 5.9 |
| cat+rel | 41.1 | 49.9 | 42.3 | 26.6 | 5.6 |
| cat+att+rel | 41.3 | 50.2 | 42.4 | 27.0 | 5.7 |
| Mask-RCNN self | 36.2 | 45.9 | 37.2 | 22.9 | 4.1 |
| Mask-RCNN top | 39.4 | 47.4 | 40.9 | 25.8 | 4.8 |
| RMI | 21.1 | 42.5 | 22.0 | 11.6 | 1.5 |
| MattNet | 20.2 | 22.7 | 19.7 | 13.5 | 3.0 |
+
+Table 2. Comparison of various approaches on the entire test set of VGPHRASECUT. We compare different combinations of modules in our approach (HULANet) against baseline approaches: Mask-RCNN, RMI and MattNet.
+
+phrase, the corresponding attention weights are set to zero and the attention weights are re-normalized to sum up to one. The overall prediction is the attention-weighted sum of the linear and quadratic feature interactions: $O = \sum_{t} F_{t} w_{t}$ . Our experiments show a slight improvement of $0.05\%$ on validation mean-IoU with the quadratic features.
+
+Training details The Mask-RCNN is initialized with weights pre-trained on the MS-COCO dataset [20] and fine-tuned on our dataset. It is then fixed for all the experiments. The attribute classifier is trained on ground-truth instances and their box features pooled from Mask-RCNN with a binary cross-entropy loss specially weighted according to attribute frequency. These are also fixed during the training of the referring modules. On top of the fixed Mask-RCNN and the attribute classifier, we separately train the individual category and attribute modules. When combining the modules we initialize the weights from individual ones and fine-tune the whole model end-to-end. We apply a pixel-wise binary cross-entropy loss on the prediction score heat-map from each module and also on the final prediction heat-map. To account for the evaluation metric (mean-IoU), we increase the weights on the positive pixels and average the loss over referring phrase-image pairs instead of over pixels. All our models are trained on the training set. For evaluation, we require a binary segmentation mask which is obtained by thresholding on prediction scores. These thresholds are set based on mean-IoU scores on the validation set. In the next section, we report results on the test set.
+
+# 5. Results and Analysis
+
+# 5.1. Comparison to baselines
+
+Table 2 shows the overall performance of our model and its ablated versions with two baselines: RMI [21] and MattNet [40]. They yield near state-of-the-art performance on datasets such as RefCOCO [17].
+
+RMI is a single-stage visual grounding method. It extracts spatial image features through a convolutional encoder, introduces convolutional multi-modal LSTM for jointly modeling of visual and language clues in the bottle-neck, and predicts the segmentation through an upsampling
+
+| Model | all | coco | 1-100 | 101-500 | 500+ |
| HULANet | | | | | |
| cat | 39.9 | 46.5 | 46.8 | 31.8 | 25.2 |
| cat+att | 41.3 | 48.3 | 48.2 | 33.6 | 26.6 |
| cat+rel | 41.1 | 47.9 | 47.8 | 33.6 | 26.6 |
| cat+att+rel | 41.3 | 47.8 | 47.8 | 33.8 | 27.1 |
| Mask-RCNN self | 36.2 | 44.9 | 45.5 | 27.9 | 10.1 |
| Mask-RCNN top | 39.4 | 46.1 | 46.4 | 31.6 | 23.2 |
| RMI | 21.1 | 23.7 | 28.4 | 12.7 | 5.5 |
| MattNet | 20.2 | 19.3 | 24.9 | 14.8 | 10.6 |
+
+Table 3. The mean-IoU on VGPHRASECUT test set for various category subsets. The column coco refers to the subset of data corresponding to the 80 coco categories, while the remaining columns show the performance on the top 100, 101-500 and $500+$ categories in the dataset sorted by frequency.
+
+| Model | all | att | att+ | rel | rel+ | stuff | obj |
| HULANet | | | | | | | |
| cat | 39.9 | 37.6 | 37.4 | 32.3 | 33.0 | 47.2 | 33.9 |
| cat+att | 41.3 | 39.1 | 38.8 | 33.7 | 33.8 | 48.4 | 35.5 |
| cat+rel | 41.1 | 38.8 | 38.4 | 33.8 | 34.0 | 48.1 | 35.4 |
| cat+att+rel | 41.3 | 39.0 | 38.5 | 34.1 | 33.9 | 48.3 | 35.6 |
| Mask-RCNN self | 36.2 | 34.5 | 34.7 | 29.0 | 30.8 | 44.4 | 29.5 |
| Mask-RCNN top | 39.4 | 37.3 | 36.6 | 31.9 | 32.6 | 46.4 | 33.6 |
| RMI | 21.1 | 19.0 | 21.0 | 11.6 | 12.2 | 31.1 | 13.0 |
| MattNet | 20.2 | 19.0 | 18.9 | 15.6 | 15.1 | 25.5 | 16.0 |
| Model | all | single | multi | many | small | mid | large |
| HULANet | | | | | | | |
| cat | 39.9 | 41.2 | 37.0 | 34.3 | 15.1 | 40.3 | 67.6 |
| cat+att | 41.3 | 42.6 | 38.6 | 35.9 | 17.1 | 42.0 | 68.0 |
| cat+rel | 41.1 | 42.5 | 38.2 | 35.5 | 17.1 | 41.5 | 68.2 |
| cat+att+rel | 41.3 | 42.6 | 38.4 | 35.7 | 17.3 | 41.7 | 68.2 |
| Mask-RCNN self | 36.2 | 37.2 | 34.1 | 29.9 | 17.0 | 35.7 | 59.4 |
| Mask-RCNN top | 39.4 | 40.6 | 36.8 | 33.4 | 18.5 | 39.3 | 63.6 |
| RMI | 21.1 | 23.1 | 16.9 | 12.7 | 1.2 | 18.6 | 49.5 |
| MattNet | 20.2 | 22.2 | 15.9 | 12.6 | 6.1 | 18.9 | 39.5 |
+
+Table 4. The mean-IoU on VGPHRASECUT test set for additional subsets. att/rel: the subset with attributes/relationship annotations; $att+/rel+$ : the subset which requires attributes or relationships to distinguish the target from other instances of the same category; single/multi/many: subsets that contain different number of instances referred by a phrase; small/mid/large: subsets with different sizes of the target region.
+
+decoder. We use the RMI model with ResNet101 [12] as the image encoder. We initialized the ResNet with weights pretrained on COCO [20], trained the whole RMI model on our training data of image region and referring phrase pairs following the default setting as in their public repository, and finally evaluated it on our test set.
+
+RMI obtains high cum-IoU but low mean-IoU scores because it handles large targets well but fails on small ones (see Table 4 "small/mid/large" subsets). cum-IoU is dominated by large targets while our dataset many small targets: $20.2\%$ of our data has the target region smaller than $2\%$ of the image area, while the smallest target in RefCOCO is $2.4\%$ of the image. Figure 6 also shows that RMI predicts empty masks on challenging phrases and small targets.
+
+MattNet focuses on ranking the referred box among candidate boxes. Given a box and a phrase, it calculates the subject, location, and relationship matching scores with
+
+three separate modules, and predicts attention weights over the three modules based on the input phrase. Finally, the three scores are combined with weights to produce an overall matching score, and the box with the highest score is picked as the referred box.
+
+We follow the training and evaluation setup described in their paper. We train the Mask-RCNN detector on our dataset, and also train MattNet to pick the target instance box among ground-truth instance boxes in the image. Note that MattNet training relies on complete annotations of object instances in an image, which are used not only as the candidate boxes but also as the context for further reasoning. The objects in our dataset are only sparsely annotated, hence we leverage the Visual Genome boxes instead as context boxes. At test time the top 50 Mask-RCNN detections from all categories are used as input to the MattNet model.
+
+While this setup works well on RefCOCO, it is problematic on VGPHRASECUT because detection is more challenging in the presence of thousands of object categories. MattNet is able to achieve mean-IoU = 42.4% when the ground-truth instance boxes are provided in evaluation, but its performance drops to mean-IoU = 20.2% when MaskRCNN detections are provided instead. If we only input the detections of the referred category to MattNet, mean-IoU improves to 34.7%, approaching the performance of MaskRCNN self, but it still performs poorly on rare categories.
+
+Our modular approach for computing robust category scores from noisy detections alone (HULANet cat) outperforms both baselines by a significant margin. Example results using various approaches are shown in Figure 6. Heatmaps from submodules and analysis of failure cases are included in Supplemental Section 3.
+
+# 5.2. Ablation studies and analysis
+
+Table 3 shows that the performance is lower for rare categories. Detection of thousands of categories is challenging, but required to support open-vocabulary natural language descriptions. However, natural language is also redundant. In this section we explore if a category can leverage scores from related categories to improve performance, especially when it is rare.
+
+First we evaluate Mask-RCNN as a detector, by using the mask of the top-1 detected instance from the referred category as the predicted region. The result is shown as the row "Mask-RCNN self" in Table 3. The row below "Mask-RCNN top" shows the performance of the model where each category is matched to a single other category based on the best mean-IoU on the training set. For example, a category "pedestrian" may be matched to "person" if the person detector is more reliable. Supplemental Section 2 shows the full matching between source and target categories. As one can see in Table 3, the performance on the tail categories jumps significantly (10.1% → 23.2% on the 500+ subset.) In general the tail category detectors are poor
+
+
+Figure 6. Prediction results on VGPHRASECUT dataset. Rows from top to down are: (1) input image; (2) ground-truth segmentation and instance boxes; (3) MattNet baseline; (4) RMI baseline; (5) HULANet (cat + att + rel). See more results in the supplemental material.
+
+and rarely used. This also points to a curious phenomenon in referring expression tasks where even though the named category is specific, one can get away with a coarse category detector. For example, if different animal species never appear together in an image, one can get away with a generic animal detector to resolve any animal species.
+
+This also explains the performance of the category module with the category-level attention mechanism. Compared to the single category picked by the Mask-RCNN top model, the ability of aggregating multiple category scores using the attention model provides further improvements for the tail categories. Although not included here, we find a similar phenomenon with attributes, where a small number of base attributes can support a larger, heavy-tailed distribution over the attribute phrases. It is reassuring that the number of visual concepts to be learned grows sub-linearly with the number of language concepts. However, the problem is far from solved as the performance on tail categories is still significantly lower.
+
+Table 4 shows the results on additional subsets of the test data. Some high-level observations are that: (i) Object categories are more difficult than stuff categories. (ii) Small objects are extremely difficult. (iii) Attributes and relationships provide consistent improvements across different subsets. Remarkably, the improvements from attributes and re
+
+relationships are more significant on rare categories and small target regions where the category module is less accurate.
+
+# 6. Conclusion
+
+We presented a new dataset, VGPHRASECUT, to study the problem of grounding natural language phrases to image regions. By scaling the number of categories, attributes, and relations we found that existing approaches that rely on high-quality object detections show a dramatic reduction in performance. Our proposed HULANet performs significantly better, suggesting that dealing with long-tail object categories via modeling their relationship to other categories, attributes, and spatial relations is a promising direction of research. Another take away is that decoupling representation learning and modeling long-tails might allow us to scale object detectors to rare categories, without requiring significant amount of labelled visual data. Nevertheless, the performance of the proposed approach is still significantly below human performance which should encourage better modeling of language and vision.
+
+Acknowledgements The project is supported in part by NSF Grants 1749833 and 1617917, and Faculty awards from Adobe. Our experiments were performed on the UMass GPU cluster obtained under the Collaborative Fund managed by the Massachusetts Technology Collaborative.
+
+# References
+
+[1] Hassan Akbari, Svebor Karaman, Surabhi Bhargava, Brian Chen, Carl Vondrick, and Shih-Fu Chang. Multi-level multimodal common semantic space for image-phrase grounding. In Computer Vision and Pattern Recognition (CVPR), 2019.
+[2] Jacob Andreas, Marcus Rohrbach, Trevor Darrell, and Dan Klein. Neural module networks. In Computer Vision and Pattern Recognition (CVPR), 2016.
+[3] Mohit Bajaj, Lanjun Wang, and Leonid Sigal. GraphGround: Graph-Based Language Grounding. In International Conference on Computer Vision (ICCV), 2019.
+[4] Mohit Bajaj, Lanjun Wang, and Leonid Sigal. GraphGround: Graph-Based Language Grounding. In International Conference on Computer Vision (ICCV), 2019.
+[5] Piotr Bojanowski, Edouard Grave, Armand Joulin, and Tomas Mikolov. Enriching word vectors with subword information. Transactions of the Association for Computational Linguistics, 5:135-146, 2017.
+[6] Ding-Jie Chen, Songhao Jia, Yi-Chen Lo, Hwann-Tzong Chen, and Tyng-Luh Liu. See-through-text grouping for referring image segmentation. In International Conference on Computer Vision (ICCV), 2019.
+[7] Kan Chen, Rama Kovvuri, and Ram Nevatia. Query-guided regression network with context policy for phrase grounding. In International Conference on Computer Vision (ICCV), 2017.
+[8] Samyak Datta, Karan Sikka, Anirban Roy, Karuna Ahuja, Devi Parikh, and Ajay Divakaran. Align2ground: Weakly supervised phrase grounding guided by image-caption alignment. In International Conference on Computer Vision (ICCV), 2019.
+[9] Chaorui Deng, Qi Wu, Qingyao Wu, Fuyuan Hu, Fan Lyu, and Mingkui Tan. Visual grounding via accumulated attention. In Computer Vision and Pattern Recognition (CVPR), 2018.
+[10] Pelin Dogan, Leonid Sigal, and Markus Gross. Neural sequential phrase grounding (seqGROUND). In Computer Vision and Pattern Recognition (CVPR), 2019.
+[11] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross B. Girshick. Mask R-CNN. In International Conference on Computer Vision ICCV, 2017.
+[12] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Conference on Computer Vision and Pattern Recognition (CVPR), 2016.
+[13] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735-1780, 1997.
+[14] Ronghang Hu, Marcus Rohrbach, Jacob Andreas, Trevor Darrell, and Kate Saenko. Modeling relationships in referential expressions with compositional modular networks. In Conference on Computer Vision and Pattern Recognition (CVPR), 2017.
+[15] Ronghang Hu, Marcus Rohrbach, and Trevor Darrell. Segmentation from natural language expressions. In European Conference on Computer Vision (ECCV), 2016.
+[16] Ronghang Hu, Huazhe Xu, Marcus Rohrbach, Jiashi Feng, Kate Saenko, and Trevor Darrell. Natural language object
+
+retrieval. Computer Vision and Pattern Recognition (CVPR), 2016.
+[17] Sahar Kazemzadeh, Vicente Ordonez, Mark Matten, and Tamara Berg. Referitagame: Referring to objects in photographs of natural scenes. In Empirical methods in natural language processing (EMNLP), 2014.
+[18] Ranjay Krishna, Yuke Zhu, Oliver Groth, Justin Johnson, Kenji Hata, Joshua Kravitz, Stephanie Chen, Yannis Kalantidis, Li-Jia Li, David A Shamma, Michael Bernstein, and Li Fei-Fei. Visual genome: Connecting language and vision using crowdsourced dense image annotations. 2016.
+[19] Ruiyu Li, Kai-Can Li, Yi-Chun Kuo, Michelle Shu, Xiaojuan Qi, Xiaoyong Shen, and Jiaya Jia. Referring image segmentation via recurrent refinement networks. In Computer Vision and Pattern Recognition (CVPR), 2018.
+[20] 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 (ECCV), 2014.
+[21] Chenxi Liu, Zhe Lin, Xiaohui Shen, Jimei Yang, Xin Lu, and Alan Yuille. Recurrent multimodal interaction for referring image segmentation. In International Conference on Computer Vision (ICCV), 2017.
+[22] Daqing Liu, Hanwang Zhang, Feng Wu, and Zheng-Jun Zha. Learning to assemble neural module tree networks for visual grounding. In International Conference on Computer Vision (ICCV), 2019.
+[23] Jingyu Liu, Liang Wang, and Ming-Hsuan Yang. Referring expression generation and comprehension via attributes. In International Conference on Computer Vision (ICCV), 2017.
+[24] Xihui Liu, Zihao Wang, Jing Shao, Xiaogang Wang, and Hongsheng Li. Improving referring expression grounding with cross-modal attention-guided erasing. In Computer Vision and Pattern Recognition (CVPR), 2019.
+[25] Ruotian Luo and Gregory Shakhnarovich. Comprehension-guided referring expressions. Computer Vision and Pattern Recognition (CVPR), 2017.
+[26] Junhua Mao, Jonathan Huang, Alexander Toshev, Oana Camburu, Alan Yuille, and Kevin Murphy. Generation and comprehension of unambiguous object descriptions. In Computer Vision and Pattern Recognition (CVPR), 2016.
+[27] Edgar Margffoy-Tuay, Juan C Pérez, Emilio Botero, and Pablo Arbeláez. Dynamic multimodal instance segmentation guided by natural language queries. In European Conference on Computer Vision (ECCV), 2018.
+[28] Varun K. Nagaraja, Vlad I. Morariu, and Larry S. Davis. Modeling context between objects for referring expression understanding. In ECCV, 2016.
+[29] Bryan A Plummer, Paige Kordas, M Hadi Kiapour, Shuai Zheng, Robinson Piramuthu, and Svetlana Lazebnik. Conditional image-text embedding networks. In European Conference on Computer Vision (ECCV), 2018.
+[30] Bryan A. Plummer, Liwei Wang, Chris M. Cervantes, Juan C. Caicedo, Julia Hockenmaier, and Svetlana Lazebnik. Flickr30k entities: Collecting region-to-phrase correspondences for richer image-to-sentence models. International Journal of Computer Vision, 123(1):74-93, 2017.
+
+[31] Anna Rohrbach, Marcus Rohrbach, Ronghang Hu, Trevor Darrell, and Bernt Schiele. Grounding of textual phrases in images by reconstruction. In European Conference on Computer Vision (ECCV), 2016.
+[32] Arka Sadhu, Kan Chen, and Ram Nevatia. Zero-shot grounding of objects from natural language queries. In International Conference on Computer Vision (ICCV), 2019.
+[33] Hengcan Shi, Hongliang Li, Fanman Meng, and Qingbo Wu. Key-word-aware network for referring expression image segmentation. In European Conference on Computer Vision (ECCV), 2018.
+[34] Liwei Wang, Yin Li, and Svetlana Lazebnik. Learning deep structure-preserving image-text embeddings. Computer Vision and Pattern Recognition (CVPR), 2016.
+[35] Peng Wang, Qi Wu, Jiewei Cao, Chunhua Shen, Lianli Gao, and Anton van den Hengel. Neighbourhood watch: Referring expression comprehension via language-guided graph attention networks. In Computer Vision and Pattern Recognition (CVPR), 2019.
+[36] Fanyi Xiao, Leonid Sigal, and Yong Jae Lee. Weakly-supervised visual grounding of phrases with linguistic structures. In Computer Vision and Pattern Recognition (CVPR), 2017.
+[37] Sibei Yang, Guanbin Li, and Yizhou Yu. Dynamic graph attention for referring expression comprehension. In International Conference on Computer Vision (ICCV), 2019.
+[38] Zhengyuan Yang, Boqing Gong, Liwei Wang, Wenbing Huang, Dong Yu, and Jiebo Luo. A fast and accurate one-stage approach to visual grounding. In International Conference on Computer Vision (ICCV), 2019.
+[39] Linwei Ye, Mrigank Rochan, Zhi Liu, and Yang Wang. Cross-modal self-attention network for referring image segmentation. In Computer Vision and Pattern Recognition (CVPR), 2019.
+[40] Licheng Yu, Zhe Lin, Xiaohui Shen, Jimei Yang, Xin Lu, Mohit Bansal, and Tamara L Berg. MattNet: Modular attention network for referring expression comprehension. In Computer Vision and Pattern Recognition (CVPR), 2018.
+[41] Licheng Yu, Patrick Poirson, Shan Yang, Alexander C Berg, and Tamara L Berg. Modeling context in referring expressions. In European Conference on Computer Vision, 2016.
+[42] Zhou Yu, Jun Yu, Chenchao Xiang, Zhou Zhao, Qi Tian, and Dacheng Tao. Rethinking diversified and discriminative proposal generation for visual grounding. CoRR, abs/1805.03508, 2018.
+[43] Hanwang Zhang, Yulei Niu, and Shih-Fu Chang. Grounding referring expressions in images by variational context. In Computer Vision and Pattern Recognition (CVPR), 2018.
\ No newline at end of file
diff --git a/phrasecutlanguagebasedimagesegmentationinthewild/images.zip b/phrasecutlanguagebasedimagesegmentationinthewild/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..be998be98669b891251dcd1ff89845f41ef39d4c
--- /dev/null
+++ b/phrasecutlanguagebasedimagesegmentationinthewild/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c87ced55527f9c5947cee32a19eb399e7205924b3d60168b50c929e5afef1d7b
+size 770846
diff --git a/phrasecutlanguagebasedimagesegmentationinthewild/layout.json b/phrasecutlanguagebasedimagesegmentationinthewild/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..96334daf05e95a2250552e28fb7685bd3f4b95d7
--- /dev/null
+++ b/phrasecutlanguagebasedimagesegmentationinthewild/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6281dcb82c00feddac34fa12df532a0e1c417ec12ef4e2d7546a79faa7888c8b
+size 358158
diff --git a/physgangeneratingphysicalworldresilientadversarialexamplesforautonomousdriving/c8035f70-0d5d-43ab-9432-6ce23ac38f39_content_list.json b/physgangeneratingphysicalworldresilientadversarialexamplesforautonomousdriving/c8035f70-0d5d-43ab-9432-6ce23ac38f39_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..cb2a5c46633132b8f8c72316921f4dd862c6bbf4
--- /dev/null
+++ b/physgangeneratingphysicalworldresilientadversarialexamplesforautonomousdriving/c8035f70-0d5d-43ab-9432-6ce23ac38f39_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:31d6a49dd9a386ef6a5f302a3cbf2683494a151d5f1561aeb4d0e8535ac53526
+size 75234
diff --git a/physgangeneratingphysicalworldresilientadversarialexamplesforautonomousdriving/c8035f70-0d5d-43ab-9432-6ce23ac38f39_model.json b/physgangeneratingphysicalworldresilientadversarialexamplesforautonomousdriving/c8035f70-0d5d-43ab-9432-6ce23ac38f39_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..aef4e7a5c621e625444cf772e6361f735bf259e1
--- /dev/null
+++ b/physgangeneratingphysicalworldresilientadversarialexamplesforautonomousdriving/c8035f70-0d5d-43ab-9432-6ce23ac38f39_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b01cedb55627bb8a4c3fb48b8fce67159a8cd5cb7b1b6abe0eb71ac6cd9cd728
+size 89964
diff --git a/physgangeneratingphysicalworldresilientadversarialexamplesforautonomousdriving/c8035f70-0d5d-43ab-9432-6ce23ac38f39_origin.pdf b/physgangeneratingphysicalworldresilientadversarialexamplesforautonomousdriving/c8035f70-0d5d-43ab-9432-6ce23ac38f39_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..5132d1b17739aa284390138cf0c83f755a2eb4ad
--- /dev/null
+++ b/physgangeneratingphysicalworldresilientadversarialexamplesforautonomousdriving/c8035f70-0d5d-43ab-9432-6ce23ac38f39_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2d6ad70c703f270acf1eb91f379f4eb38ae512bffe18322eae101d3dad7278eb
+size 2106211
diff --git a/physgangeneratingphysicalworldresilientadversarialexamplesforautonomousdriving/full.md b/physgangeneratingphysicalworldresilientadversarialexamplesforautonomousdriving/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..5c9eb57dd4d688d57fd4ce29568c9b1cc8d611b8
--- /dev/null
+++ b/physgangeneratingphysicalworldresilientadversarialexamplesforautonomousdriving/full.md
@@ -0,0 +1,290 @@
+# PhysGAN: Generating Physical-World-Resilient Adversarial Examples for Autonomous Driving
+
+Zelun Kong†, Junfeng Guo†, Ang Li‡,* and Cong Liu†
+
+†The University of Texas at Dallas
+
+‡The University of Maryland, College Park
+
+# Abstract
+
+Although Deep neural networks (DNNs) are being pervasively used in vision-based autonomous driving systems, they are found vulnerable to adversarial attacks where small-magnitude perturbations into the inputs during test time cause dramatic changes to the outputs. While most of the recent attack methods target at digital-world adversarial scenarios, it is unclear how they perform in the physical world, and more importantly, the generated perturbations under such methods would cover a whole driving scene including those fixed background imagery such as the sky, making them inapplicable to physical world implementation. We present PhysGAN, which generates physical-world-resilient adversarial examples for misleading autonomous driving systems in a continuous manner. We show the effectiveness and robustness of PhysGAN via extensive digital- and real-world evaluations. We compare PhysGAN with a set of state-of-the-art baseline methods, which further demonstrate the robustness and efficacy of our approach. We also show that PhysGAN outperforms state-of-the-art baseline methods. To the best of our knowledge, PhysGAN is probably the first technique of generating realistic and physical-world-resilient adversarial examples for attacking common autonomous driving scenarios.
+
+# 1. Introduction
+
+While deep neural networks (DNNs) have established the fundamentals of vision-based autonomous driving systems, they are still vulnerable to adversarial attacks and exhibit erroneous fatal behaviors. Recent works on adversarial machine learning research have shown that DNNs are rather vulnerable to intentional adversarial inputs with perturbations focusing on classification problems [4, 12, 19, 22, 25]. To address the safety issues in autonomous driving systems, techniques were proposed to automatically generate adversarial examples, which add small-magnitude pertur
+
+
+
+
+
+
+Figure 1: Illustration of an adversarial roadside advertising sign (top-right) visually indistinguishable from the original sign (top-left) and its deployment in the physical world (bottom).
+
+bations to inputs to evaluate the robustness of DNN-based autonomous driving systems [12, 8, 27].
+
+However, these techniques mostly focus on generating digital adversarial examples, e.g., changing image pixels, which can never happen in real world [12]. They may not be applicable to realistic driving scenarios, as the perturbations generated under such techniques would cover the whole scene including fixed background imagery such as the sky. Very recently, a few works took the first step in studying physical-world attacking/testing of static physical objects [2, 17], human objects [24, 7], traffic signs [23, 18, 8]. Although they are shown effective under the targeted scenarios and certain assumptions, they focus on studying a static physical-world scene (e.g., a single snapshot of a stop sign [8, 23]), which prevent themselves to be applied in practice as real-world driving is a continuous process where dynamically changes are encountered (e.g., viewing angles and distances). Moreover, their generated adversarial examples are visually unrealistic (e.g., driver-noticeable black and white stickers pasted onto a stop sign which is easily noticeable for attack purposes [8]). Most of these methods also have a focus on classification models different from our studied steering model which is a regression model. Also note that directly extending the existing digital per
+
+turbation generation techniques (e.g., FGSM) to physical world settings, i.e., inputting just the targeted roadside sign into such techniques would output a corresponding adversarial example, may be ineffective. The resulting attack efficacy may dramatically decrease (proved in our evaluation as well) as the process of generating perturbations has not considered any potential background imagery in the physical world (e.g., the sky) which would be captured by any camera during driving.
+
+We aim at generating a realistic single adversarial example which can be physically printed out to replace the corresponding original roadside object, as illustrated in Fig. 1. Since the target vehicle observes this adversarial printout continuously, a major challenge herein is how to generate a single adversarial example which can continuously mislead the steering model at every frame during the driving process. Additionally, for a practical physical-world deployment, any generated adversarial example shall be visually indistinguishable from its original sign (the one already deployed in the physical world).
+
+To address these challenges, we propose a novel GAN-based framework called PhysGAN1 which generates a single adversarial example by observing multiple frames captured during driving while preserving resilience to certain physical-world conditions. Our architecture contains an encoder (i.e., the CNN part of the target autonomous driving model) that extracts features from frames during driving and transforms them into a vector serving as the input to the generator. By considering all factors extracted from the frames, this design ensures that the generator could generate adversarial examples that have attack effect. Without this encoder, the efficacy would dramatically decrease. To generate an adversarial example that can continuously mislead the steering model, PhysGAN takes a 3D tensor as input. This enhances the resilience of the generated example against certain physical world dynamics, as using video slices makes it more likely to capture such dynamics.
+
+We demonstrate the effectiveness and robustness of PhysGAN through conducting extensive digital- and real-world experiments using a set of state-of-the-art steering models and datasets. Digital experimental results show that PhysGAN is effective for various steering models and scenarios, being able to mislead the average steering angle by up to 21.85 degrees. Physical case studies further demonstrate that PhysGAN is sufficiently resilient in generating physical-world adversarial examples, which is able to mislead the average steering angle by up to 19.17 degrees. Such efficacy is also demonstrated through comparisons against a comprehensive set of baseline methods.
+
+To the best of our knowledge, PhysGAN is the first technique of generating realistic and physical-world-resilient adversarial examples for attacking common autonomous
+
+steering systems. Our contributions can be summarized in three folds as follows.
+
+- We propose a novel GAN-based framework PhysGAN which can generate physical-world-resilient adversarial examples corresponding to any roadside traffic/advertising sign and mislead autonomous driving steering model with the generated visually indistinguishable adversarial examples.
+- We propose a GAN architecture using 3D tensor as input in optimizing the generator, which resolves a key technical challenge in physical-world deployment of using a single adversarial example to continuously mislead steering during the entire driving process.
+- We conduct extensive digital and physical-world evaluations with several metrics, which shows the superior attack performance of PhysGAN over state-of-the-art methods. We believe PhysGAN could contribute to future safety research in autonomous driving.
+
+# 2. Related Works
+
+Adversarial Attacks. Many works have recently been proposed to generate adversarial examples for attacking in the white-box setting [21], where the adversary knows the network's parameters. The fast gradient sign method (FGSM) [11] represents the pioneer among such methods, which performs a one-step gradient update along the direction of the sign of gradient at each pixel. FGSM is further extended in [13] to a targeted attack strategy through maximizing the probability of the target class, which is referred as the OTCM attack. Optimization-based approaches [26, 14, 4, 5, 29] have also been proposed. GAN was recently introduced in [10], implemented by a system of two neural networks competing with each other in a zero-sum game framework. GAN achieves visually appealing results in both face generation [16] and manipulation [30]. [29] presents AdvGAN, which leverages GAN to produce adversarial examples with high attack success rate on classification problems. These methods focus on applying perturbations to the entire input and consider only digital-world attacking scenarios. It is hard to apply them to the real world because it is impossible to use some of the generated perturbations to replace the real-world background (e.g., the sky).
+
+Generating Physical Adversarial Examples. To the best of our knowledge, only a very recent set of works [15, 8] started working on generating physical attacks. [15] focuses on the understanding of static physical adversarial examples. [8] explicitly designs perturbations to be effective in the presence of diverse real-world conditions. Their method mainly focuses on the classification of physical road sign under dynamic distance and angle of the viewing camera. Unfortunately, these works focus on static attacking scenarios (e.g., maximizing the adversarial effectiveness
+
+
+Figure 2: Overview of the PhysGAN framework.
+
+w.r.t. to a single snapshot of the physical example) and thus do not require to resolve the one-to-many challenge.
+
+Different from these works, PhysGAN is able to generate physical-world-resilient adversarial examples only corresponding to the roadside traffic/advertising sign; no perturbations will be generated on areas other than the street sign. PhysGAN addresses the one-to-many challenge which continuously attack the steering model, and generates realistic adversarial examples that are resilient to various physical world conditions and visually indistinguishable from the original roadside sign.
+
+# 3. Our Approach: PhysGAN
+
+The goal of PhysGAN is to generate an adversarial example that is visually indistinguishable from any common roadside object (e.g., roadside traffic or advertising signs) to continuously mislead the steering angle model (target model) of a drive-by autonomous driving vehicle by physically replacing the roadside board with the adversarial example. When an autonomous driving vehicle drives by the roadside sign, the steering angle model would be fooled and make incorrect decision.
+
+# 3.1. Problem Definition
+
+We define our problem and notations in this section. Let $\mathcal{X} = \{X_i\}$ be the video slice set such that $\mathcal{X} \subseteq \mathbb{R}^{n \times w \times h}$ , where $n$ is the number of frames in the video slice, $w$ and $h$ is the width and height of a frame, respectively. Let $\mathcal{Y} = \{Y_i\}$ be the ground truth steering angle set, $\mathcal{Y} \subseteq \mathbb{R}^n$ . Suppose $(X_i, Y_i)$ is the $i^{th}$ sample in the dataset, which is composed of video slice $X_i \in \mathcal{X}$ and $Y_i \in \mathcal{Y}$ , each element of which denotes the ground truth steering angle corresponding to its frame. The pre-trained target steering model (e.g., Nvidia Dave-2, Udacity Cg23 and Rambo) learns a mapping $f: \mathcal{X} \to \mathcal{Y}$ from the video slice set $\mathcal{X}$ to the ground truth steering angle set $\mathcal{Y}$ during training phase.
+
+Given an instance $(X_{i},Y_{i})$ , the goal of PhysGAN is to produce an adversarial roadside sign $S_{adv}$ , which aims to
+
+mislead the target autonomous driving model $f$ as $f(X_{i}) \neq Y_{i}$ and maximize $\sum_{i}|f(X_{i}) - Y_{i}|$ . To achieve the goal, PhysGAN needs to generate an adversarial roadside sign $S_{adv}$ to replace original roadside sign $S_{orig}$ in digital- or physical-world. The adversarial roadside sign $S_{adv}$ is supposed to be close to the original roadside sign $S_{orig}$ in terms of $\ell^2$ -norm distance metrics, which implies that adversarial roadside sign $S_{adv}$ and original roadside sign $S_{orig}$ are almost visually indistinguishable.
+
+# 3.2. Physical World Challenges
+
+Physical attacks on an object must be able to survive changing conditions and remain effective at fooling the steering angle model. We structure our decision of these conditions around the common drive-by scenarios (i.e., the vehicle drives towards the roadside sign).
+
+The "One-to-Many" challenge. A key technical challenge is to resolve the "one-to-many" challenge, i.e., generating a single adversarial sample to continuously mislead the steering angle decision of a vehicle throughout the entire driving process. Considering multiple frames in generating an adversarial sample is challenging because the vehicle-to-board distance, view angle, and even subtle pixels on each frame could be different. An effective adversarial sample must be able to exhibit maximum overall attack effect among all the frames. To achieve this goal, the adversarial sample needs to be resilient to the changing conditions exhibited on each frame. To resolve this problem, PhysGAN applies a novel GAN-based framework and consider the entire drive-by video slice, rather than a single frame, as the input in the generation process (see Sec. 3.5).
+
+Limited manipulated area. Unlike most digital-world adversarial methods which add perturbations to the entire input image, techniques focused on physical-world scenarios are constrained to add perturbations only to a fragment of an image, i.e., the fragmented area corresponding to the original physical object. Moreover, the underlying assumption of a static image background does not hold in physical attacks since the background can consistently change over the driving process.
+
+# 3.3. PhysGAN Overview
+
+Fig. 2 illustrates the overall architecture of PhysGAN, which mainly consists of four components: an encoder $\mathcal{E}$ , a generator $\mathcal{G}$ , a discriminator $\mathcal{D}$ and the target autonomous driving model $f$ . The encoder $\mathcal{E}$ represents the convolutional layers of target autonomous driving model $f$ , which takes 3D tensors as inputs and is used to extract features of a video (of both original and perturbed ones). To resolve the challenge of generating only a single example which continuously impacts the driving process, we introduce a novel idea of considering 3D tensors as inputs in the GAN-based framework. 2D tensors often represent images while 3D
+
+tensors are used to represent a small slice of video, which typically contains hundreds of frames.
+
+As seen in Fig. 2, the extracted features of original video slice $X_{orig}$ are used as the input fed to the generator to generate an adversarial roadside sign $S_{adv}$ . Doing so allows us to take into account the fact that different original video slice $X_{orig}$ may have different influence on the generated adversarial roadside sign $S_{adv}$ , thus ensuring the generator $\mathcal{G}$ to generate the best adversarial roadside sign $S_{adv}$ corresponding to a certain original video slice $X_{orig}$ . The adversarial roadside sign $S_{adv}$ and original roadside sign $S_{orig}$ are sent to the discriminator $\mathcal{D}$ , which is used to distinguish the adversarial roadside sign $S_{adv}$ and the original roadside sign $S_{orig}$ . The discriminator $\mathcal{D}$ represents a loss function, which measures the visual distinction between adversarial roadside sign $S_{adv}$ and original roadside sign $S_{orig}$ , and also encourages the generator to generate an example visually indistinguishable to the original sign.
+
+# 3.4. Training GAN Along With the Target Model
+
+In order to ensure the adversarial roadside sign $S_{adv}$ to have adversarial effect on the target autonomous driving model $f$ , we introduce the following loss function:
+
+$$
+\mathcal {L} _ {A D V} ^ {f} = \beta \exp \left(- \frac {1}{\beta} \cdot l _ {f} \left(f \left(X _ {\text {o r i g}}\right), f \left(X _ {\text {a d v}}\right)\right)\right) \tag {1}
+$$
+
+where $\beta$ is a sharpness parameter, $l_{f}$ denotes the loss function used to train the target autonomous driving model $f$ , such as MSE-loss or $\ell^1$ -loss, $X_{orig}$ denotes the original video slice $X_{orig}$ , and $X_{adv}$ represents the adversarial video slice $X_{adv}$ , which is generated by mapping the adversarial roadside sign $S_{adv}$ into every frame of the original video slice $X_{orig}$ . By minimizing $\mathcal{L}_{ADV}^{f}$ , the distance between the prediction and the ground truth will be maximized, which ensures the adversarial effectiveness.
+
+To compute $\mathcal{L}_{ADV}^{f}$ , we obtain the adversarial video slice $X_{adv}$ by substituting the original roadside sign $S_{orig}$ with the generated adversarial roadside sign $S_{adv}$ . Note that the generated adversarial roadside sign $S_{adv}$ is a rectangular image and the original roadside sign $S_{orig}$ in the video slice may exhibit an arbitrary quadrilateral shape which could vary among different frames. We leverage a classical perspective mapping method [1] to resolve this mismatch. We first get the four coordinates of the original roadside sign $S_{orig}$ within each frame, and then map the generated adversarial roadside sign $S_{adv}$ onto the corresponding quadrilateral area inside each frame (details can be found in supplementary material).
+
+The final objective of PhysGAN is expressed as:
+
+$$
+\mathcal {L} = \mathcal {L} _ {G A N} + \lambda \mathcal {L} _ {A D V} ^ {f}, \tag {2}
+$$
+
+where $\lambda$ denotes a co-efficient to balance the tradeoff between the two terms and $\mathcal{L}_{GAN}$ is the classic GAN loss,
+
+Algorithm 1 Optimization for PhysGAN
+Require: $I$ -Iteration numbers;
+Require: $f$ -Target model with fixed parameters;
+1: while $i < I$ : do
+2: $S_{adv} = \mathcal{G}(\mathcal{E}(X_{orig}))$ .
+3: $\mathcal{L}_{GAN} = \log \mathcal{D}(S_{orig}) + \log (1 - \mathcal{D}(S_{adv}))$ .
+4: // fix the parameters of $\mathcal{G}$
+5: do back-propagation to optimize arg max $\mathcal{D}$ $\mathcal{L}_{GAN}$ ..
+6: $S_{adv} = \mathcal{G}(\mathcal{E}(X_{orig}))$
+7: $\mathcal{L}_{GAN} = \log \mathcal{D}(S_{orig}) + \log (1 - \mathcal{D}(S_{adv}))$ .
+8: // fix the parameters of $\mathcal{D}$
+9: for each frame in the input video slice, perform perspective mapping to substitute the original roadside sign $S_{orig}$ using the adversarial roadside sign $S_{adv}$
+10: do back-propagation to optimize arg min $\mathcal{G}$ $\mathcal{L}_{GAN}$ ..
+11: $\mathcal{L}_{ADV} = \beta \exp (-\frac{1}{\beta}\cdot l_f(f(X_{orig})))$ .
+12: do back-propagation to optimize arg min $\mathcal{G}$ $\mathcal{L}_{ADV}$ ..
+13: end while
+
+which can be represented as
+
+$$
+\begin{array}{l} \mathcal {L} _ {G A N} = \mathbb {E} _ {S _ {o r i g} \sim p _ {S _ {o r i g}}} [ \log \mathcal {D} (S _ {o r i g}) ] \tag {3} \\ + \mathbb {E} _ {S _ {a d v} \sim p _ {S _ {a d v}}} \left[ \log (1 - \mathcal {D} (S _ {a d v})) \right]. \\ \end{array}
+$$
+
+To interpret this objective function, $\mathcal{L}_{GAN}$ encourages the adversarial roadside sign $S_{adv}$ to be visually similar to the original roadside sign $S_{orig}$ , while $\mathcal{L}_{ADV}^{f}$ is leveraged to generate adversarial video slice $X_{adv}$ which maximizes attack effectiveness. We obtain the encoder $\mathcal{E}$ , the generator $\mathcal{G}$ , and the discriminator $\mathcal{D}$ by solving:
+
+$$
+\underset {\mathcal {G}} {\arg \min } \underset {\mathcal {D}} {\max } \mathcal {L}. \tag {4}
+$$
+
+# 3.5. Attacks with PhysGAN
+
+We assume that the target autonomous driving model $f$ was pre-trained and the parameters of target autonomous driving model $f$ are fixed, and the generator $\mathcal{G}$ of PhysGAN can only access the parameters of the target autonomous driving model $f$ during training. Our algorithm to train PhysGAN is illustrated in Algorithm 1, which consists of two phases. As seen in Algorithm 1, the first phase is to train the discriminator $\mathcal{D}$ , which is used later to form a part of the $\mathcal{L}_{GAN}$ (Line 2 - 5); the second phase is to train generator $\mathcal{G}$ with two loss functions, $\mathcal{L}_{ADV}^{f}$ and $\mathcal{L}_{GAN}$ , which encourages the generator $\mathcal{G}$ to generate a visually indistinguishable adversarial sample and make the generated sample be adversarial for the target autonomous driving model $f$ , respectively (Line 6 - 11). The encoder $\mathcal{E}$ , which is the CNN part of the target autonomous driving model $f$ , aims at extracting features from all the observed frames during driving and transforms them into a vector input to the generator. This design ensures that the generator could gener
+
+ate visually indistinguishable examples with an attack effect through considering all useful features extracted from the video slice. For physical world deployment, the attacker shall print the adversarial example of the same size as the target roadside sign to ensure visual indistinguishability.
+
+# 4. Experiments
+
+We evaluate PhysGAN via both digital and physical-world evaluations using widely-studied CNN-based steering models and popular datasets.
+
+# 4.1. Experiment Setup
+
+Steering models. We evaluate PhysGAN on several popular and widely-studied [6, 28, 3] CNN-based steering models, like NVIDIA Dave-2 $^{2}$ , Udacity Cg23 $^{3}$ and Udacity Rambo $^{4}$ . Notably, since the original models apply 2D CNNs which is trained with individual images, we adapt the 2D CNN into a 3D CNN, and train the 3D-CNNs with a set of 20-frame video slices.
+
+Datasets. The datasets used in our digital experiments include (1) Udacity automatic driving car challenge dataset $^{5}$ , which contains 101396 training images captured by a dashboard mounted camera of a driving car and the simultaneous steering wheel angle applied by a human driver for each image; (2) DAVE-2 testing dataset [20] $^{6}$ , which contains 45,568 images to test the NVIDIA DAVE-2 model; (3) Kitti [9] dataset which contains 14,999 images from six different scenes captured by a VW Passat station wagon equipped with four video cameras; and (4) custom datasets for physical-world evaluation, which contain more than 20000 frames used to train PhysGAN in physical cases.
+
+For physical-world experiments, we first perform color augmentation to improve the image contrast, making the adversarial example be more robust against varying light illumination conditions. Then, we print out the generated example under each evaluated approach, and paste it on the selected roadside object. We drive a vehicle by this object and perform offline analysis using the captured driving videos. To understand how PhysGAN would perform on actual autonomous vehicles, we have also done online driving testing which mimics a realistic driving process when facing with such an adversarial roadside object.
+
+Video slice selection criteria. Our driving scene selection criteria is that the roadside traffic or advertising signs should appear entirely in the first frame of a driving video
+
+| Scenes | Images | Size | min | max |
| Dave-straight1 | 20 | 455 × 256 | 21 × 22 | 41 × 49 |
| Dave-curve1 | 20 | 455 × 256 | 29 × 32 | 51 × 49 |
| Udacity-straight1 | 20 | 640 × 480 | 48 × 29 | 66 × 35 |
| Udacity-curve1 | 20 | 640 × 480 | 51 × 51 | 155 × 156 |
| Kitti-straight1 | 20 | 455 × 1392 | 56 × 74 | 121 × 162 |
| Kitti-straight2 | 20 | 455 × 1392 | 80 × 46 | 247 × 100 |
| Kitti-curve1 | 20 | 455 × 1392 | 64 × 74 | 173 × 223 |
+
+Table 1: Scenes evaluated in the experiment.
+
+with more than 400 pixels and partially disappear in the last frame. We select 7 scenes from the aforementioned datasets, and evaluate on all selected scenes. The selected scenes in each dataset cover both straight and curved lane scenarios. Since all these datasets do not contain coordinates of roadside signs, we have to label the four corners of the signs in every frame of the selected scenes. We use the motion tracker functionality of Adobe After Effects to automatically track the movement of the signs four corners among consecutive frames. Table 1 show the attributes of the scenes we selected.
+
+Baseline methods. We compare PhysGAN with several baseline approaches:
+
+- Original sign. The first baseline is to simply test the original roadside sign. This comparison is important as it verifies whether steering angle errors are due to PhysGAN but not the original sign. We include this baseline in both digital and physical evaluations.
+- FGSM. FGSM [11] is remarkably powerful and it is designed to attack neural networks by leveraging the gradients. In our problem context, we directly apply FGSM to generate perturbations given a captured input frame. We only include FGSM in our digital evaluation, as it is impossible to apply the generated perturbations which covers the entire image frame (e.g., the sky) in physical world.
+- PhysFGSM. In order to apply FGSM in a physical-world setting, we develop a new method called PhysFGSM as an additional baseline, which is based on FGSM and only generate perturbations for the targeted roadside sign in an input image. Doing so allows us to print the perturbed image and paste it onto the corresponding sign. We include PhysFGSM in both digital and physical evaluations. Since the video slice contains multiple frames, PhysFGSM generate perturbations based upon the middle frame.
+- $RP2$ . We also compare PhysGAN to a physical-world baseline, RP2 [8], which is an optimization approach that generated perturbations for a single input scene. The original RP2 method focuses on classification
+
+ | Dave | Udacity | Kitti |
| Straight1 | Curve1 | Straight1 | Curve1 | Straight1 | Straight2 | Curve1 |
| Apple | | | | | | | |
| McDonald's | | | | | | | |
+
+Table 2: The original and the generated adversarial fragments and the corresponding image frames under various scenes.
+
+
+(a) Dave Straight1
+
+
+(b) Dave Curve1
+
+
+(c) Udacity Straight1
+
+
+(d) Udacity Curve1
+
+
+(e) Kitti Straight1
+
+
+(f) Kitti Straight2
+
+
+(g)Kitti Curve1
+Figure 3: The illustration of Steering angle error variations along the timeline on steering model Nvidia Dave-2.
+
+problems, so we extend it to be applicable to the steering module by substituting the classification loss with the regression loss.
+
+- Random Noise. We also print an image perturbed with random noise and paste it on top of the roadside sign.
+
+Evaluation metrics. In our experiments, we use two metrics to evaluate the efficacy of PhysGAN: steering angle mean square error (denoted steering angle MSE), and max steering angle error (MSAE). Steering angle MSE measures the average of the squares of the error between the predicted steering angle and the ground truth, and MSAE denotes the maximum steering angle error observed among all frames belonging to a video slice. A large steering angle MSE and MSAE implies better attack efficacy.
+
+In addition, we perform online driving testing case studies where we manually control the steering angle in each frame (approximately) according to the real-time calculation of the resulting steering angle error under each evaluated approach. We use the metric time-to-curb herein to measure the attack efficacy, which measures the amount of time an actual autonomous driving vehicle would take to drive onto the roadside curb. Please be advised that all the
+
+results are relative to the ground truth steering angle.
+
+# 4.2. Results
+
+We first report the overall efficacy under PhysGAN in both digital and physical-world scenarios. A complete set of results is given in the supplementary document.
+
+Results on digital scenarios. Table 2 shows a representative frame of each scene where the signs are replaced with adversarial examples generated from PhysGAN (using the targeted steering model NVIDIA Dave-2). Each column of Table 2 represents a specific scene. It is observed that PhysGAN can generate rather realistic adversarial samples, visually indistinguishable from the original objects. The targeted roadside signs in the original video slices are replaced by our selected McDonald and Apple Watch signs, and the modified video slices are used in all experiments. This is because the roadside signs in the original video slices have a low resolution, which makes it hard to verify whether our generated roadside signs are visually distinguishable.
+
+Fig. 3 shows the results on steering angle error along the timeline in each frame scene, where the size of the adversarial image increases nearly monotonically over time. Each sub-figure in Fig. 3 indicates a specific scene, where the
+
+
+
+Table 3: Illustration of physical-world adversarial scenarios under different approaches.
+
+| Frame # | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| Original Apple Sign | 0.36 | -0.51 | 0.82 | 0.45 | 0.10 | -0.16 | 0.84 | -1.38 | -2.16 | -0.86 | 0.60 | -1.11 | 0.21 | -0.49 | -0.55 | -0.56 | 0.10 | -0.51 | 0.49 | -1.00 |
| PhysGAN (Apple) | 0.17 | 0.89 | 1.68 | 7.94 | 1.93 | 4.79 | 2.87 | 6.34 | 2.08 | 3.54 | 9.06 | 8.37 | 5.93 | 12.51 | 13.43 | 11.37 | 12.75 | 11.74 | 13.63 | 13.44 |
| Original McDonald's Sign | -0.17 | -0.42 | -1.49 | -1.34 | -0.51 | -0.08 | 0.60 | -0.35 | 0.70 | -0.75 | -0.43 | -0.35 | 0.59 | -0.89 | 1.49 | 0.61 | 0.94 | -0.99 | 1.13 | -0.00 |
| PhysGAN (McDonald's) | -1.24 | -1.37 | -0.02 | -0.30 | -2.48 | -0.17 | -1.06 | -0.80 | -0.01 | -5.37 | -1.60 | -2.62 | -2.45 | -4.68 | -11.71 | -10.85 | -9.83 | -8.74 | -11.35 | -19.17 |
+
+Table 4: Per-frame steering angle error under physical-world experiments. Rows 2 and 4 (rows 3 and 5) show the steering angle error when the original signs (corresponding adversarial signs generated by PhysGAN) are deployed.
+
+x-axis represents the frame index along the timeline, and the y-axis represents the steering angle error. We clearly observe that PhysGAN leads to noticeable angle error for almost all frames, even for earlier frames in which the adversarial sample is relatively small compared to the background.
+
+Results on physical-world scenarios. We perform physical-world experiments as follows. We first record training videos of driving a vehicle towards the original roadside sign and use these videos to train the Dave-2 model. We then train PhysGAN following the same configuration as the digital-world evaluation to generate adversarial samples. The generated adversarial samples was then printed and pasted on the original roadside sign. We then recorded testing videos of the same drive-by process but with the adversarial sample. The steering angle error are then obtained by analyzing these testing videos. Specifically, for both training and testing video slices, we start recording at 70 ft away and stop recording when the vehicle physically passes the advertising sign. For training videos, the driving speed is set to be $10mph$ to capture sufficient images. The speed for the testing video is set to be $20mph$ to reflect ordinary on-campus driving speed limit. The physical case studies are performed on a straight lane due to safety reasons. The size of the roadside advertising board used in our experiment is $48' \times 72'$ .
+
+Table 3 shows the original sign and the corresponding adversarial examples generated under different methods as well as a camera-captured scenes for each example. To clearly interpret the results, we list the per-frame steering angle error due to PhysGAN and using the original sign
+
+in Table 4 (additional comparison results are detailed in Sec. 4.3). As seen in Table 4, PhysGAN is able to generate a single printable physical-world-resilient adversarial example which could mislead the driving model for continuous frames during the entire driving process. An interesting observation herein is that the steering angle error tends to increase along with the increased frame index. This is because, with a larger frame index, the size of the adversarial sample occupies a relatively large space in the entire frame, so being able to more negatively impact the steering model. Also, we observe that with the original roadside sign, the steering angle error is almost negligible under all frames.
+
+# 4.3. Comparison against Baseline Approaches
+
+Digital Baselines. For each steering model, we compare our approach with four other baselines including FGSM, PhysFGSM, random noise, and original sign. Table 5 shows the results on seven different scenes. These results suggest the following observations: (1) although FGSM achieves the highest attacking effect, it needs to apply perturbations to the entire scene, which is not applicable to the physical world; (2) the attacking effectiveness of our approach is much better than PhysFGSM, implying that once considering physical world implementation constraints, PhysGAN would outperform direct extensions of existing approaches. (3) each steering model is reasonably robust as the angle errors under random noise and original sign are trivial.
+
+Physical Baselines. For physical-world scenarios, we compare PhysGAN against PhysFGSM, random noise, and original sign. The results are shown in Table 6. We observe that both random noise and original sign have negligible im
+
+| Steering Model | Approach | Dave | Udacity | Kitti |
| Straight1 | Curve1 | Straight1 | Curve1 | Straight1 | Straight2 | Curve1 |
| Nvidia Dave-2 | PhysGAN | 106.69 / 15.61 | 66.79 / 11.63 | 81.76 / 17.04 | 114.13 / 14.64 | 108.76 / 17.72 | 150.00 / 17.34 | 95.87 / 15.83 |
| FGSM | 115.91 / 17.41 | 199.27 / 19.47 | 141.23 / 16.17 | 192.19 / 21.23 | 156.16 / 17.84 | 217.52 / 19.50 | 103.38 / 14.54 |
| PhysFGSM | 15.88 / 6.42 | 4.73 / 4.87 | 13.91 / 5.74 | 3.08 / 2.89 | 15.17 / 8.04 | 8.67 / 4.54 | 13.12 / 7.24 |
| Random Noise | 3.00 / 2.01 | 2.25 / 2.37 | 2.36 / 2.60 | 1.77 / 3.10 | 3.15 / 3.16 | 1.60 / 0.96 | 5.92 / 4.41 |
| Original Sign | 4.17 / 3.15 | 4.35 / 2.40 | 3.84 / 1.79 | 1.09 / 0.72 | 4.20 / 2.98 | 3.06 / 1.23 | 2.86 / 1.30 |
| Udacity Cg23 | PhysGAN | 91.85 / 13.80 | 113.41 / 14.78 | 50.61 / 10.43 | 78.56 / 15.46 | 46.53 / 11.72 | 62.64 / 11.64 | 71.09 / 18.14 |
| FGSM | 203.34 / 19.70 | 157.98 / 14.67 | 171.92 / 19.89 | 96.74 / 17.75 | 136.08 / 14.00 | 162.35 / 18.53 | 89.75 / 16.71 |
| PhysFGSM | 58.53 / 11.86 | 36.44 / 10.68 | 30.72 / 9.41 | 46.74 / 8.88 | 28.89 / 11.37 | 22.63 / 7.61 | 61.23 / 10.95 |
| Random Noise | 5.32 / 3.67 | 3.75 / 2.72 | 4.05 / 2.52 | 4.20 / 2.26 | 5.31 / 4.49 | 6.54 / 1.98 | 6.10 / 3.68 |
| Original Sign | 4.17 / 3.15 | 4.35 / 2.40 | 3.84 / 1.79 | 4.09 / 2.72 | 4.20 / 2.98 | 3.06 / 1.23 | 2.30 / 1.86 |
| Udacity Rambo | PhysGAN | 61.87 / 11.28 | 113.78 / 15.29 | 87.68 / 13.90 | 42.71 / 12.55 | 56.41 / 12.42 | 58.67 / 10.42 | 145.66 / 21.85 |
| FGSM | 209.81 / 21.78 | 147.28 / 16.43 | 151.14 / 15.28 | 166.50 / 16.27 | 169.17 / 18.57 | 126.14 / 14.19 | 175.28 / 19.36 |
| PhysFGSM | 16.43 / 8.95 | 14.24 / 8.34 | 5.32 / 3.73 | 14.82 / 6.11 | 16.58 / 7.78 | 13.89 / 7.93 | 29.58 / 19.18 |
| Random Noise | 1.90 / 2.55 | 3.49 / 5.79 | 6.06 / 5.00 | 1.92 / 3.98 | 3.82 / 5.42 | 2.09 / 3.05 | 1.52 / 1.91 |
| Original Sign | 3.93 / 2.01 | 6.30 / 4.46 | 1.80 / 1.28 | 6.54 / 2.52 | 5.06 / 3.52 | 5.75 / 4.03 | 4.95 / 2.07 |
+
+Table 5: Steering angle MSE (left) and MSAE (right) under all evaluated approaches. Although FGSM produces the maximal attacks, it modifies the whole image observation and is not applicable to the real world. Among all physical-world attack approaches, our approach PhysGAN produces the best performance.
+
+ | PhysGAN | RP2 | Random Noise | Original Sign |
| Nvidia Dave-2 | 73.94 / 13.63 | 23.48 / 6.52 | 2.48 / 1.02 | 2.12 / 1.56 |
| Udacity Cg23 | 99.23 / 14.56 | 25.15 / 7.86 | 2.56 / 2.11 | 2.15 / 1.73 |
| Udacity Rambo | 87.56 / 17.60 | 32.54 / 7.51 | 1.51 / 1.15 | 3.12 / 2.48 |
+
+pact on the steering models, which indicate the pre-trained steering models (without being attacked) are sufficiently robust in physical world settings. As seen in Table 6, PhysGAN significantly outperforms RP2 and can achieve very high attack efficacy under all steering models, which may lead to dangerous driving actions in the real world.
+
+Table 6: Steering angle MSE (left) and MSAE (right) under PhysGAN, RP2, random noise, and original sign.
+
+ | PhysGAN | RP2 | Random Noise | Original |
| Time-to-curb | 10s | - | - | - |
| Distance-to-center | 1.5m | 1.09m | 0.29m | 0.47m |
+
+Table 7: Online driving testing results. The second row shows the time-to-curb result and the third row shows the maximum distance that the vehicle deviates from the correct path (i.e., driving straight).
+
+# 4.4. Online Driving Case Studies
+
+The above evaluations are off-policy where the driving trajectory was not affected by the adversarial signs. In this section, we further conduct on-policy evaluation, i.e., online driving case studies mimicking the actual driving scenario to learn how would PhysGAN impact the steering decision by an actual autonomous vehicle. In these case studies, we manually control steering in a real-time fashion within each frame according to the calculated steering angle error under each approach with the steering model Nvidia Dave-2. We ask a human driver to drive the vehicle at $5mph$ for 1 second to reflect one frame and a corresponding manual steering action. We note that this online evaluation setup is a proxy of
+
+real autonomous vehicle and provides proper evaluation of an attack system. We do not use virtual simulators for evaluation because they normally causes sim-to-real transfer issues. So the evaluation results on a simulator would not reflect the models capability in the physical world. As seen in Table 7, PhysGAN outperforms the other baselines under the two metrics. Also, only the adversarial sign generated under PhysGAN leads the vehicle to drive onto the roadside curb, which takes 10s (given the very low driving speed due to safety concerns). This online driving case study further demonstrates the dangerous steering action an autonomous vehicle would take due to PhysGAN, indicating its effectiveness when applied to actual autonomous vehicles.
+
+# 5. Conclusion
+
+We present PhysGAN, which generates physical-world-resilient adversarial examples for misleading autonomous steering systems. We proposed a novel GAN-based framework for generating a single adversarial example that continuously misleads the driving model during the entire trajectory. The generated adversarial example is visually indistinguishable from the original roadside object. Extensive digital and physical-world experiments show the efficacy and robustness of PhysGAN. We hope our work could inspire future research on safe and robust machine learning for autonomous driving.
+
+# References
+
+[1] Perspectives mapping, https://www.geometrictools.com/Documentation/PerspectiveMappings.pdf.4
+[2] Anish Athalye, Logan Engstrom, Andrew Ilyas, and Kevin Kwok. Synthesizing robust adversarial examples. arXiv preprint arXiv:1707.07397, 2017. 1
+[3] Alberto Broggi, Michele Buzzoni, Stefano Debattisti, Paolo Grisleri, Maria Chiara Laghi, Paolo Medici, and Pietro Versari. Extensive tests of autonomous driving technologies. IEEE Transactions on Intelligent Transportation Systems, 14(3):1403-1415, 2013. 5
+[4] Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In 2017 IEEE Symposium on Security and Privacy (SP), pages 39-57. IEEE, 2017. 1, 2
+[5] Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In 2017 IEEE Symposium on Security and Privacy (SP), pages 39-57. IEEE, 2017. 2
+[6] Chenyi Chen, Ari Seff, Alain Kornhauser, and Jianxiong Xiao. Deepdriving: Learning affordance for direct perception in autonomous driving. In Proceedings of the IEEE International Conference on Computer Vision, pages 2722-2730, 2015. 5
+[7] Gamaeldin Elsayed, Shreya Shankar, Brian Cheung, Nicolas Papernot, Alexey Kurakin, Ian Goodfellow, and Jascha Sohl-Dickstein. Adversarial examples that fool both computer vision and time-limited humans. In Advances in Neural Information Processing Systems, pages 3914-3924, 2018. 1
+[8] Kevin Eykholt, Ivan Evtimov, Earlence Fernandes, Bo Li, Amir Rahmati, Chaowei Xiao, Atul Prakash, Tadayoshi Kohno, and Dawn Song. Robust physical-world attacks on deep learning visual classification. In CVPR, pages 1625-1634, 2018. 1, 2, 5
+[9] Andreas Geiger, Philip Lenz, Christoph Stiller, and Raquel Urtasun. Vision meets robotics: The kitti dataset. The International Journal of Robotics Research, 32(11):1231-1237, 2013. 5
+[10] Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In NIPS, pages 2672–2680. 2014. 2
+[11] Ian Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In ICLR, 2015. 2, 5
+[12] Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial examples in the physical world. arXiv preprint arXiv:1607.02533, 2016. 1
+[13] Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial machine learning at scale. *ICLR*, 2017. 2
+[14] Yanpei Liu, Xinyun Chen, Chang Liu, and Dawn Song. Delving into transferable adversarial examples and black-box attacks. *ICLR*, 2017. 2
+[15] Jiajun Lu, Hussein Sibai, Evan Fabry, and David Forsyth. No need to worry about adversarial examples in object detection in autonomous vehicles. arXiv preprint arXiv:1707.03501, 2017. 2
+
+[16] Yongyi Lu, Yu-Wing Tai, and Chi-Keung Tang. Conditional cyclegan for attribute guided face image generation. arXiv preprint arXiv:1705.09966, 2017. 2
+[17] Jan Hendrik Metzen, Mummadi Chaithanya Kumar, Thomas Brox, and Volker Fischer. Universal adversarial perturbations against semantic image segmentation. In 2017 IEEE International Conference on Computer Vision (ICCV), pages 2774-2783. IEEE, 2017. 1
+[18] Andreas Mogelmose, Mohan Manubhai Trivedi, and Thomas B Moeslund. Vision-based traffic sign detection and analysis for intelligent driver assistance systems: Perspectives and survey. IEEE Transactions on Intelligent Transportation Systems, 13(4):1484-1497, 2012. 1
+[19] Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, and Pascal Frossard. Deepfool: a simple and accurate method to fool deep neural networks. In CVPR, pages 2574–2582, 2016. 1
+[20] Xinlei Pan, Yurong You, Ziyan Wang, and Cewu Lu. Virtual to real reinforcement learning for autonomous driving. arXiv preprint arXiv:1704.03952, 2017. 5
+[21] 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. 2
+[22] Nicolas Papernot, Patrick McDaniel, Somesh Jha, Matt Fredrikson, Z Berkay Celik, and Ananthram Swami. The limitations of deep learning in adversarial settings. In 2016 IEEE European Symposium on Security and Privacy (EuroS&P), pages 372-387. IEEE, 2016. 1
+[23] Pierre Sermanet and Yann LeCun. Traffic sign recognition with multi-scale convolutional networks. In IJCNN, pages 2809-2813, 2011. 1
+[24] 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
+[25] 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
+[26] Thomas Tanay and Lewis Griffin. A boundary tilting perspective on the phenomenon of adversarial examples. arXiv preprint arXiv:1608.07690, 2016. 2
+[27] Yuchi Tian, Kexin Pei, Suman Jana, and Baishakhi Ray. Deeptest: Automated testing of deep-neural-network-driven autonomous cars. In ICSE, pages 303-314. ACM, 2018. 1
+[28] Yuchi Tian, Kexin Pei, Suman Jana, and Baishakhi Ray. Deeptest: Automated testing of deep-neural-network-driven autonomous cars. In Proceedings of the 40th international conference on software engineering, pages 303-314. ACM, 2018. 5
+[29] Chaowei Xiao, Bo Li, Jun-Yan Zhu, Warren He, Mingyan Liu, and Dawn Song. Generating adversarial examples with adversarial networks. *IJCAI*, 2018. 2
+
+[30] Jun-Yan Zhu, Philipp Krahenbuhl, Eli Shechtman, and Alexei A Efros. Generative visual manipulation on the natural image manifold. In ECCV, pages 597-613. Springer, 2016. 2
\ No newline at end of file
diff --git a/physgangeneratingphysicalworldresilientadversarialexamplesforautonomousdriving/images.zip b/physgangeneratingphysicalworldresilientadversarialexamplesforautonomousdriving/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..65ffb98d858462a5812eb2c561927051a87dec8f
--- /dev/null
+++ b/physgangeneratingphysicalworldresilientadversarialexamplesforautonomousdriving/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a78327f98017d3b9ed1502e8efd4e48f951b69ef51f6a06936dea7e8bfa3450c
+size 672321
diff --git a/physgangeneratingphysicalworldresilientadversarialexamplesforautonomousdriving/layout.json b/physgangeneratingphysicalworldresilientadversarialexamplesforautonomousdriving/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..25fb2c5a1f9e28405dcc963a53ec56e06f1c89ea
--- /dev/null
+++ b/physgangeneratingphysicalworldresilientadversarialexamplesforautonomousdriving/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:702f8a6241dcb746ce00f80cd8855dafe9a104cbac25c8467b34a3d1dae5ab61
+size 384095
diff --git a/physicallyrealizableadversarialexamplesforlidarobjectdetection/2c086f65-f7e9-4acd-a7a7-d703a29dcd70_content_list.json b/physicallyrealizableadversarialexamplesforlidarobjectdetection/2c086f65-f7e9-4acd-a7a7-d703a29dcd70_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..249eb67db5646acf46ba7b7218d8c0afa6b563ec
--- /dev/null
+++ b/physicallyrealizableadversarialexamplesforlidarobjectdetection/2c086f65-f7e9-4acd-a7a7-d703a29dcd70_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4f7cff4c5938e38a66eb870a4fe505cb913bc4e7f3ef0df5d8802af3d686c2b5
+size 73647
diff --git a/physicallyrealizableadversarialexamplesforlidarobjectdetection/2c086f65-f7e9-4acd-a7a7-d703a29dcd70_model.json b/physicallyrealizableadversarialexamplesforlidarobjectdetection/2c086f65-f7e9-4acd-a7a7-d703a29dcd70_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..71ce54184de99f9a22522b4d94ae11dce0fe798c
--- /dev/null
+++ b/physicallyrealizableadversarialexamplesforlidarobjectdetection/2c086f65-f7e9-4acd-a7a7-d703a29dcd70_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4fcfe8de7eef136066b504dc81083fdb4fecf7012eff2a1c86cbf3d92ca2d03d
+size 91317
diff --git a/physicallyrealizableadversarialexamplesforlidarobjectdetection/2c086f65-f7e9-4acd-a7a7-d703a29dcd70_origin.pdf b/physicallyrealizableadversarialexamplesforlidarobjectdetection/2c086f65-f7e9-4acd-a7a7-d703a29dcd70_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..d806dc0b17f0ac9be9b028f67c4010aafc0f4d0d
--- /dev/null
+++ b/physicallyrealizableadversarialexamplesforlidarobjectdetection/2c086f65-f7e9-4acd-a7a7-d703a29dcd70_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:59d449d521386d47ddc4f8f6196973e78c2b01dbc922ba5b0587ed4f02aa2920
+size 2052415
diff --git a/physicallyrealizableadversarialexamplesforlidarobjectdetection/full.md b/physicallyrealizableadversarialexamplesforlidarobjectdetection/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..b5aa149dc6cdcfea1d10eeb183c5ef56189a4315
--- /dev/null
+++ b/physicallyrealizableadversarialexamplesforlidarobjectdetection/full.md
@@ -0,0 +1,335 @@
+# Physically Realizable Adversarial Examples for LiDAR Object Detection
+
+James Tu1 Mengye Ren1,2 Siva Manivasagam1,2 Ming Liang1 Bin Yang1,2 Richard Du3 Frank Cheng1,2 Raquel Urtasun1,2
+
+{james.tu,mren3,manivasagam,ming.liang,byang10,frank.cheng,urtasun}@uber.com
+
+rdu@princeton.edu
+
+$^{1}$ Uber ATG $^{2}$ University of Toronto $^{3}$ Princeton University
+
+# Abstract
+
+Modern autonomous driving systems rely heavily on deep learning models to process point cloud sensory data; meanwhile, deep models have been shown to be susceptible to adversarial attacks with visually imperceptible perturbations. Despite the fact that this poses a security concern for the self-driving industry, there has been very little exploration in terms of 3D perception, as most adversarial attacks have only been applied to 2D flat images. In this paper, we address this issue and present a method to generate universal 3D adversarial objects to fool LiDAR detectors. In particular, we demonstrate that placing an adversarial object on the rooftop of any target vehicle to hide the vehicle entirely from LiDAR detectors with a success rate of $80\%$ . We report attack results on a suite of detectors using various input representation of point clouds. We also conduct a pilot study on adversarial defense using data augmentation. This is one step closer towards safer self-driving under unseen conditions from limited training data.
+
+# 1. Introduction
+
+Modern autonomous driving systems use deep neural networks (DNNs) to process LiDAR point clouds in order to perceive the world [20, 34, 45]. Despite introducing significant performance improvements, DNNs have been previously found to be vulnerable to adversarial attacks when using image inputs [35, 15, 18, 2], where a small perturbation in the input pixels can cause drastic changes in the output predictions. The potential vulnerabilities, in conjunction with the safety-critical nature of self-driving, motivate us to investigate the possibility of disrupting autonomous driving systems with adversarial attacks.
+
+Image perturbations alone however, are not enough for modern autonomous driving systems, which are typically equipped with LiDAR sensors producing point clouds as the primary main sensory input. Several previous works have shown successful attacks [36, 39, 43] with point cloud perturbations, generating salient modifications by adding, re
+
+
+
+
+Figure 1: In this work we produce a physically realizable adversarial object that can make vehicles "invisible". After placing the object on the rooftop of a target vehicle, the vehicle will no longer be detected by a LiDAR detector.
+
+
+
+
+
+moving, and modifying points. Although these attacks work in theory, arbitrary to point clouds are not always physically realizable. For instance, a given point cloud may be impossible to generate from a LiDAR sensor due to the lasers' fixed angular frequencies and light projection geometry.
+
+Towards generating physically realizable attacks, Cao et al. [7] propose to learn an adversarial mesh capable of generating adversarial point clouds with a LiDAR renderer. However, their work only considers learning an adversarial mesh for a few specific frames. As a result, the learned 3D object is not universal and may not be reused in other 3D scenes. Moreover, they have only evaluated their attack on a very small in-house dataset that contains around a few hundred frames.
+
+In contrast to [7], we aim to learn a universal and physically realizable adversary. Furthermore, we craft 3D objects in a novel setting where they are placed on top of vehicles as rooftop cargo. Such objects can be used in any scene and on any types of small vehicles, and can hide the entire host vehicle from a strong LiDAR detector [41] with a success rate
+
+of $80\%$ at IoU 0.7. By comparison, placing a random object on the rooftop only produces a small drop in detection accuracy. We evaluated our learned adversarial object on a suite of common LiDAR detector architectures that take in various kinds of input representations, and we also report transferability of attacks across these models. Lastly, we conduct a pilot study on adversarial defense using data augmentation and adversarial training. Applying defense mechanisms significantly decreases the likelihood of missing detections of vehicles with strange roof-top cargo, which is a rare-seen but practical scenario for self-driving cars.
+
+The contributions of this paper can be summarized as follows:
+
+1. We propose a universal adversarial attack on LiDAR detectors with physically realizable 3D meshes.
+2. We present a novel setting where the adversarial object makes the target vehicle invisible when placed on the vehicle rooftop.
+3. We report a thorough evaluation across different detector, each using different input representations.
+4. We present a successful defense mechanism via training with data augmentation.
+
+In the following, we first review prior literature on adversarial attacks and in particular point cloud and 3D physical attacks. Next we present details of our proposed method to generate a physically realizable adversarial object, followed by empirical evaluations of our attack and defense on several LiDAR object detectors.
+
+# 2. Related Work
+
+Despite the impressive performance of deep learning models, they are surprisingly vulnerable to minuscule perturbations. Adversarial attacks add visually imperceptible noise to the input to drastically alters a neural network's output and produce false predictions.
+
+Image attacks: Adversarial examples were first discovered in the context of image classification networks [35]. These vulnerabilities were later discovered in networks performing image detection and semantic segmentation as well [40]. Attacks can either be white box [15, 28, 26], where the target model's weights are available, or black box [4, 29, 10], where the adversary can only query the outputs of the target model. Various defense mechanisms, including adversarial training [15, 26], denoiser [21], Bayes classifier [33], certified defense [37, 32] have been proposed, and shown effective on a certain range of attack types.
+
+Point cloud attacks: With the rise of LiDAR sensors in robotics applications such as self-driving, point cloud data has become a popular input representation. Some recent research demonstrated the possibility of adversarial attacks on networks that take point cloud data as input. [42] proposed
+
+to add, remove, or perturb points; whereas [39] added clusters of adversarial points. [44, 36] proposed saliency-based approaches for removing points. Several structured methods have been also introduced to perturb point clouds with the goal of preserving physical fidelity [23].
+
+Physical world attacks: Perturbing image pixels or point locations alone may not guarantee that the attack can happen in the physical world. To address this issue, several works have produced physical adversaries and expose real world threats. [18] studies whether the image pixel perturbations can be realized by a physical printer. [5] produces a universal and robust adversarial sticker. When placed on any image with any pose, the sticker induces a targeted false classification. [13] proposes to train the attack with different view angles and distances to make it robust. [2] synthesizes robust adversarial 3D objects capable of fooling image classifiers when rendered into an image from any angle. [43, 24] consider perturbing other photo-realistic properties such as shape normal and lighting, using a differentiable renderer. Nevertheless, in these approaches, the final outputs are still projected to 2D image space.
+
+In the context of self-driving and LiDAR perception, [7] propose LidarAdv, a method to learn adversarial meshes to fool LiDAR detectors. Our work is different from theirs in several important ways. First, LidarAdv only considers one frame during learning and hence is input specific; whereas we train our adversary on all frames and all vehicles, creating a universal adversary. Second, our adversary can be placed on a vehicle roof to hide it, whereas their adversarial object does not interact with other real world objects. Lastly, we are the first to conduct a thorough evaluation of a physically realizable adversarial attack on a suite of detectors and on a public large scale LiDAR benchmark. Besides learning a physical mesh, [6] proposes to use laser devices to spoof LiDAR points. These laser devices, however, are more difficult to set up and it is not trivial to create consistent point clouds as the sensor moves.
+
+# 3. Physically Realizable Adversarial Examples
+
+In this section, we present our method for learning an adversarial object to attack LiDAR detectors. There are many possible ways to place an object in a scene for an adversarial effect, as explored in [7]. For example, one can hide the inserted adversarial object or change the object label (e.g., making the detector believe that the adversarial object is a pedestrian). In this paper, we instead focus on a novel setting, where we place the object on the rooftop of a vehicle and hide the vehicle from the detector, hence creating an "invisible" car, illustrated in Figure 2. Such a procedure can be easily reproduced in the real world and is also plausible even without the presence of a malicious attacker, since cars occasionally carry pieces of furniture or sports equipment on their rooftops.
+
+
+Figure 2: Overall adversarial example generation pipeline. We start from a mesh representation, and use a LiDAR renderer to obtain the point clouds. By using roof approximation techniques, we attach the adversarial point cloud on top of the target vehicle, and we modify the mesh vertices so that the detection confidence score of the target vehicle is minimized.
+
+For the rest of this section, we first describe the 3D representation of the adversarial example and how to render it into a point clouds. We then present our adversarial example generation algorithms. Lastly, a simple defense algorithm based on data augmentation is presented.
+
+# 3.1. Surface Parameterization
+
+Many parameterizations exist for 3D objects, including voxels, meshes, and implicit surfaces [16]. Voxels are easy to compute but require significantly more memory than the alternatives to produce a high level of detail. Implicit surfaces, on the other hand, provide compact representations but are harder to render since they require solving for the numerical roots of the implicit functions. In this paper, we choose to represent our adversary with a mesh since it benefits from compact representations and allows for efficient and precise rendering. Given a mesh, we can compute the exact intersections of rays analytically and in a differentiable manner. The latter is important since it allows us to take gradients efficiently for white box attacks. Furthermore, meshes have previously demonstrated high-fidelity shape generation results on faces and human bodies [3, 22].
+
+During the learning of the adversarial mesh, following prior literature [25, 17], we deform a template mesh by adding local learnable displacement vectors $\Delta \mathbf{v}_i\in \mathbb{R}^3$ for each vertex and a global transformation for the entire mesh,
+
+$$
+\mathbf {v} _ {i} = \mathbf {R} \left(\mathbf {v} _ {i} ^ {0} + \Delta \mathbf {v} _ {i}\right) + \mathbf {t}, \tag {1}
+$$
+
+where $\mathbf{v}_i^0$ is the initial vertex position, and $\mathbf{R} \in SO(3)$ is a global rotation matrix, and $\mathbf{t} \in \mathbb{R}^3$ is a global translation vector. To ensure physical feasibility, box constraints are applied to the mesh vertices as well as the global translation.
+
+In the experiments where we initialize the mesh from an
+
+isotropic sphere, $\mathbf{R}$ is fixed to be the identity matrix, since the sphere is rotation invariant. In the experiments where we deform common objects, we constrain $\mathbf{R}$ to be rotations on the $x - y$ plane:
+
+$$
+R = \left[ \begin{array}{c c c} \cos \theta & - \sin \theta & 0 \\ \sin \theta & \cos \theta & 0 \\ 0 & 0 & 1 \end{array} \right], \tag {2}
+$$
+
+where $\theta$ is the learnable rotation angle.
+
+# 3.2. LiDAR Simulation
+
+We aim to add an adversarial mesh $Z$ into the scene in a realistic manner and choose the roof of vehicles as the location for placement, as placing objects on top is easier due to gravity and does not interfere with adjacent traffic. Furthermore, objects on top of vehicles are less prone to occlusion, whereas areas like the front hood or trunk top may be blocked by another vehicle. Finally, this is a realistic scenario as it common to strap furniture, canoes, bicycles, and other large items on top of vehicles. In this section we first describe how to render a mesh into LiDAR points. Next we introduce a technique to locate the rooftop region from a vehicle point cloud, where we can place the adversary.
+
+LiDAR point rendering: We then use location of the mesh in the scene to sample nearby rays $\gamma$ with the same angular frequencies as the LiDAR sensor used to generate the original LiDAR scene. Given rays $\gamma$ and mesh $Z$ , the adversarial points are rendered with a differentiable raycaster $R$ . We compute the intersection of rays and mesh faces with the Moller-Trumbore intersection algorithm [27]. We refer readers to the supplementary materials for more details on this. Then, we take the union of the rendered adversarial points and the original points to create the modified scene.
+
+
+Figure 3: Approximating rooftop from vehicle point clouds. We build a low dimensional representation of our vehicle object bank using PCA, and embed the target vehicle point clouds by optimizing the latent code. The top $0.2\mathrm{m}$ is then cropped to be the rooftop region.
+
+Rooftop fitting: To approximate the center of a vehicle's roof from its point cloud, as illustrated in Figure 3, we first fit a CAD model to the point cloud. Inspired by [12], we represent our internal collection of vehicle models as signed distance functions (SDFs), denoting as $F(\cdot ;\theta)$ , and project this library of vehicles into a latent space using PCA. Since SDFs implicitly represent 3D surfaces as its zero level-set, we optimize the latent code $z$ such that all ground truth vehicle points evaluate as close to 0 as possible. Concretely, given a vehicle bounding box $(x,y,w,h,\alpha)$ , and a set of points $P = \{p:p\in \mathbb{R}^3\}$ within the box, we find the optimal latent code $z^{*}$ such that
+
+$$
+z ^ {*} = \underset {z} {\arg \min } \sum_ {p \in P} F (p; \theta (z)) ^ {2}. \tag {3}
+$$
+
+We then apply marching cubes [16] on $F(\cdot; \theta(z^{*}))$ to obtain a fitted CAD model. Lastly, we use vertices within the top $0.2\mathrm{m}$ vertical range of the CAD model to approximate the roof region.
+
+During the attack, we place the adversarial mesh $Z$ with a fixed pose relative to the roof center of a target vehicle. Given a vehicle bounding box $(x,y,w,h,\alpha)$ , we compute the roof center $(r_x,r_y,r_z)$ and apply transformation matrix
+
+$$
+T = \left[ \begin{array}{c c c c} \cos \alpha & - \sin \alpha & 0 & r _ {x} \\ \sin \alpha & \cos \alpha & 0 & r _ {y} \\ 0 & 0 & 1 & r _ {z} \\ 0 & 0 & 0 & 1 \end{array} \right] \tag {4}
+$$
+
+on the adversarial object.
+
+# 3.3. Adversarial Example Generation
+
+In this section, we first introduce the objective function being optimized to learn adversarial examples. Both white box and black box attack algorithms are presented next.
+
+# 3.3.1 Objective
+
+The overall loss function is a combination of the adversarial loss and the Laplacian loss for mesh smoothness:
+
+$$
+\mathcal {L} = \mathcal {L} _ {\mathrm {a d v}} + \lambda \mathcal {L} _ {\mathrm {l a p}}. \tag {5}
+$$
+
+To generate an adversarial example, we search for vertex perturbation $\mathbf{v}$ and global transformation parameters $(\mathbf{R},\mathbf{t})$ that minimize the loss function.
+
+For the adversarial loss, following prior work [40], we also find it necessary to suppress all relevant bounding box proposals. A proposal is relevant if 1) its confidence score is greater than 0.1 and 2) if its IoU with the ground truth bounding box is also greater than 0.1.
+
+Our adversarial objective minimizes the confidence of the relevant candidates:
+
+$$
+\mathcal {L} _ {\mathrm {a d v}} = \sum_ {y, s \in \mathcal {Y}} - \operatorname {I o U} \left(y ^ {*}, y\right) \log (1 - s), \tag {6}
+$$
+
+where $\mathcal{V}$ is the set of relevant bounding box proposals and each proposal $y$ has a confidence score $s$ . We use binary cross entropy to minimize the confidence score of the relevant proposals, weighed by the IoU with the ground truth bounding box $y^{*}$ . Here, we choose to target negative classification labels instead of other bounding box parameters because missing detections are the most problematic.
+
+In addition, a Laplacian loss [25] is applied to regularize mesh geometry and maintain surface smoothness:
+
+$$
+\mathcal {L} _ {\mathrm {l a p}} = \sum_ {i} \| \delta_ {i} \| _ {2} ^ {2}, \tag {7}
+$$
+
+where $\delta_{i}$ is the distance from $v_{i}$ to the centroid of its immediate neighbors $N(i)$ :
+
+$$
+\delta_ {i} = v _ {i} - \frac {1}{\| N (i) \|} \sum_ {j \in N (i)} v _ {j}. \tag {8}
+$$
+
+# 3.3.2 Attack Algorithms
+
+In this section we provide details for both white box and black box attacks for learning mesh vertices.
+
+White box attack: In a white box setting, we simulate the addition of the adversary in a differentiable manner, and hence can take the gradient from the objective $\mathcal{L}$ to the mesh vertices. In addition, we re-parameterize local and global displacement vectors to apply box constraints, as [8] have demonstrated issues with other alternatives. Specifically, since clipping parameters during projected gradient descent
+
+creates a disparity between parameter updates and momentum updates, we instead re-parameterize mesh vertices to inherently obey box constraints:
+
+$$
+\mathbf {v} _ {i} = \mathbf {R} (\mathbf {b} \odot \operatorname {s i g n} (\tilde {\mathbf {v}} _ {i} ^ {0}) \odot \sigma (| \tilde {\mathbf {v}} _ {i} ^ {0} | + \Delta \tilde {\mathbf {v}} _ {i})) + \mathbf {c} \odot \tanh (\tilde {\mathbf {t}}),
+$$
+
+where $\odot$ denotes element-wise multiplication, $\sigma$ denotes the sigmoid function, $\mathbf{b} \in \mathbb{R}^3$ define limits on size, and $\mathbf{c} \in \mathbb{R}^3$ define limits on translation. $\sigma(\tilde{\mathbf{v}}_i^0) = \mathbf{v}_i^0 / \mathbf{b}$ is the normalized initial position of vertex and $\tanh(\tilde{t}) = \mathbf{t} / \mathbf{c}$ is the normalized global translation. The sign function constrains each vertex to stay in its initial quadrant.
+
+Black box attack: A gradient-based attack is not always feasible in point cloud perception due to non-differentiable preprocessing stages that are common in modern point cloud detection models [41, 19]. For example, models like pixOR [41] represent the input as occupancy voxels, preventing gradients from reaching the point cloud. To address this problem, we employ a genetic algorithm [1] to update the mesh parameters. Here, a population of candidates meshes are evolved to maximize the fitness score $-\mathcal{L}$ . At every iteration, the candidate with the highest fitness is preserved while the rest are replaced. New candidates are generated by sampling mesh parameters from a pair of old candidates, with sampling probability proportional to fitness score. We then add gaussian noise to some new candidates sampled with a mutation probability. To jointly optimize over all samples, we perform inference on multiple examples and take the average fitness score at each iteration. In this black box setting, we find re-parameterization unnecessary for gradient-free optimization.
+
+# 3.4. Defense Mechanisms
+
+Given that rooftop objects are rarely observed in the training distribution and that our attack produces examples that are heavily out-of-distribution, we first propose random data augmentation as a simple defense mechanism. Next, we consider adversarial training [8] for a stronger defense against adversarial attacks.
+
+Data augmentation: When training with data augmentation, in every frame we generate a random watertight mesh and place it on a random vehicle using the methods presented previously. This method is not specific to the type of optimization employed by the attacker (e.g. white box or black box) and hence may generalize better when compared to regular adversarial training [15].
+
+To generate a random watertight mesh, we first sample a set of $N$ vertices $V \in \mathbb{R}^{N \times 3}$ from a Gaussian $\mathcal{N}(0, \sigma)$ and apply incremental triangulation to obtain a set of connected tetrahedrons $Q$ . We then stochastically remove $M$ boundary tetrahedrons that do not disconnect $Q$ into separate components. Finally, we take the remaining boundary faces of $Q$ to obtain a watertight surface.
+
+Adversarial training: While adversarial training has empirically been found to be robust, it is expensive and infeasible when the cost of training an adversary is high. Thus, we employ a method similar to [38] and take one mesh update step per model update instead of a full optimization cycle. During training, the adversary is randomly re-initialized every $k$ steps using the same mesh generation method.
+
+# 4. Experiments
+
+In this section, we first discuss the datasets and models used in our experiments in Section 4.1 and 4.2, and the experimental setup in Section 4.3. We then present experimental results on 1) white box and black box attacks, 2) attacks and transferability on various detection backbones, 3) common object attacks, and 4) adversarial defense using data augmentation training.
+
+# 4.1. Datasets
+
+We use the KITTI dataset [14] for training and evaluation of our attacks. KITTI contains LiDAR point clouds and 3D bounding box labels for objects seen by the front camera of the autonomous vehicle. For our experiments, we focus on the "Car" class only and consider each object in a scene as a separate sample. Since our method relies on fitting meshes to point clouds, we discard all samples with less than 10 points. This results in 6864 vehicles in the training set and 6544 vehicles in the validation set. We do not use the test set as labels are not publicly available. For evaluation we only consider bounding boxes from a bird's eye view.
+
+# 4.2. Target LIDAR Detector Models
+
+In this work, we attack detector models that process point clouds exclusively without any auxiliary inputs, since we only learn the shape of the adversarial mesh. We cover a variety of detector architectures with different input representations of the point cloud. Specifically we consider the following models:
+
+- **PIXOR** [41] is a detection network that processes input point clouds into occupancy voxels and generates bounding boxes in a bird's eye view.
+- **PIXOR (density)** is a variant of **PIXOR** using density voxels as inputs. The value of each voxel is calculated from bilinear interpolation of nearby points' distance to the voxel center: $\sum_{p}(1 - |p_x - v_x|)(1 - |p_y - v_y|)(1 - |p_z - v_z|)$ . The density variant allows us to compute gradients to point clouds easier.
+- PointRCNN [34] does not voxelize and instead processes the raw point cloud directly using a PointNet++ [31] backbone.
+- PointPillar [19] groups input points into discrete bins from BEV and uses PointNet [30] to extract features for each pillar.
+
+
+Figure 4: Visualization of our universal adversarial object hiding different car instances at various orientations and locations.
+
+| TargetSource | PIXOR-1 | PIXOR-2 |
| PIXOR-1 | 77.3% | 53.9% |
| PIXOR-2 | 73.5% | 72.1% |
+
+Table 1: Attack transferability between two PIxOR models with different seeds.
+
+| Target Source | PIXOR | PIXOR (d) | PointRCNN | PointPillar |
| PIXOR [41] | 77.3% | 66.0% | 20.1% | 8.2% |
| PIXOR (density) [41] | 66.4% | 80.9% | 20.0% | 7.7% |
| PointRCNN [34] | 33.3% | 33.7% | 32.3% | 20.5% |
| PointPillar [19] | 54.9% | 38.4% | 28.4% | 57.5% |
+
+Table 2: Attack transferability among different detector models.
+
+Since we limit to the scope of learning the mesh shape only, we use the version of the above detectors that do not take LiDAR intensity as input.
+
+# 4.3. Experimental Setup
+
+Implementation details: In our experiments, we initialize the adversarial mesh to be a unit isotropic sphere with 162 vertices and 320 faces and scale it by $\mathbf{b} = (b_x, b_y, b_z) = (0.7\mathrm{m}, 0.7\mathrm{m}, 0.5\mathrm{m})$ . Maximum global offset is $0.1\mathrm{m}$ on the $x, y$ direction and no offset is allowed on the $z$ direction to prevent the mesh from moving into the vehicle or hovering in mid air. For the Laplacian loss, we set $\lambda = 0.001$ . During simulation, rays are sampled according to specs of the Velodyne HDL-64E sensor used to generate the datasets.
+
+For the gradient-based optimization in white box attacks, we use Adam with learning rate 0.005. For the genetic algorithm in black box attacks, we initialize mutation std at 0.05, mutation probability at 0.01, use a population size of 16, and average 100 queries to compute fitness. We decay the mutation std and probability by a factor of 0.5 if the running fitness has not improved in 100 generations.
+
+# 4.4. Evaluation Metrics
+
+We consider the following two metrics for attack quality:
+
+- Attack success rate: Attack success rate measures the percentage at which the target vehicle is successfully detected originally and but not detected after the attack. We consider a vehicle successfully detected if the output IoU is greater than 0.7.
+- Recall-IoU curve: Since attack success rate depends on the IoU threshold, we also plot the recall percentage at a range of IoU threshold to get a more thorough measure of attack quality.
+
+
+Figure 5: Visualization of detection recall across range of IoUs for FIXOR with density voxels. Difference between white box and black box attacks is very small. Initial mesh does not affect detection as much as adversarial mesh.
+
+# 4.5. Results and Discussion
+
+Comparison of White Box and Black Box We conduct a white box and black box attack on a variant of FIXOR with density voxels. We visualize the IoU-recall curve for both experiments in Figure 5. and show that the attacks significantly drop the recall. When we use the initial icosphere mesh as a baseline, it has little impact on detection even though it is of the same size as the adversary. We further compare our black box attack against the white box alternative and show that they achieve similar performance.
+
+Transferability Across Identical Architectures We investigate the transferability of adversarial examples across similar models. To this end, we train two variations of the original pixOR model using different seeds and learn adversarial meshes for each model separately. We then evaluate transferability between the pair of models using attack success rate as the metric. Results are summarized in Table 1 and there is a high degree of transferability between models with identical architecture. This allows strong transfer attacks with only knowledge of model architecture. [29].
+
+
+Figure 6: IoU-Recall curve for black box attacks on different detector architectures.
+
+
+
+
+
+
+
+
+Figure 7: Bird's eye view visualization of attack success rate at various locations in the scene using different detector models.
+
+
+
+
+
+
+
+Transferability Across Input Representations In this section we attack four models described in Section 4.2, and use only black box attacks due to non-differentiable layers in some models. We provide IoU-Recall curves in Figure 6. Again, transferability between the models is considered and results are shown in Table 2.
+
+First, our attack is able to hide objects with high probability on the FIXOR models and PointPillar but is significantly weaker on PointRCNN. We hypothesize that this is because PointRCNN treats every point as a bounding box anchor. Therefore, vehicles close to the sensor register significantly more LiDAR points and proposals, making it extremely difficult to suppress all proposals. We verify this hypothesis by visualizing the attack success rate at various locations across the scene in Figure 7. The success rate on attacking PointRCNN is close to 0 near the LiDAR sensor but grows substantially higher as the distance to the sensor increases and the number of points decreases.
+
+In terms of transferability, the occupancy and density variants of PILXOR can share a significant portion of adversarial examples. The attacks generated from PointPillar and PointRCNN can also be used to attack PILXOR, but not vice versa. This suggests that additional layers of point-level reasoning before aggregating on the $z$ -dimension probably make the model more robust to rooftop objects.
+
+In addition, two variations of PINOR have different vulnerable regions even though they share the same backbone. Specifically, we note that vehicles close to the LiDAR sensor are the easiest targets when using a density voxel input representation. In contrast, vehicles closeby are the most robust to attacks when using occupancy voxels. We spec-
+
+ulate that this is an effect of the input precision. For density voxels, the number of points is significantly higher near the LiDAR sensor, contributing to higher input precision, whereas occupancy voxels can only show a binary indicator whether a voxel contains a point or not.
+
+
+Figure 8: We perform our attack on two similar models. FIXOR converts the input point cloud to occupancy voxels and $\mathrm{PIXOR}^*$ separates points into columns and extracts features with a pointnet backbone. Although the models have the same backbone architecture, $\mathrm{PIXOR}^*$ is significantly more robust due to the input representation.
+
+Based on the above observations, we conclude that the choice of input representation and detection scheme may have significant implications on robustness to adversarial examples. For a more concrete comparison, we consider a variant of pixOR using PointPillar's pillar representation instead of voxelization and keep the backbone architecture identical. We compare this variant, $\mathrm{PIXOR}^*$ against pixOR and show the results in Figure 8. Here, we can see that
+
+| Object | Initial | Success | Classification | Adversarial | Success | Classification | Dimensions |
| Couch | | 23.3% | 93.1 % | | 68.6% | 93.8 % | 1.69m x 0.85m x 0.94m |
| Canoe | | 26.9% | 99.6 % | | 59.5% | 99.9 % | 3.51m x 0.81m x 0.68m |
| Table | | 18.9% | 99.8 % | | 48.0% | 99.7 % | 1.57m x 0.83m x 0.86m |
| Cabinet | | 20.7% | 93.4 % | | 54.1% | 94.2 % | 1.29m x 0.91m x 0.76m |
| Chair | | 14.1% | 99.9 % | | 23.3% | 99.9 % | 1.42m x 0.64m x 0.71m |
| Bike | | 19.6% | 94.4 % | | 32.4% | 92.3 % | 1.70m x 0.76m x 1.08m |
+
+Table 3: Adversaries resembling common objects that could appear on the rooftop. Attack success rates on the initial and adversarial configurations are shown. A ShapeNet classifier stably recognizes our adversaries as the correct object class.
+
+ | Arbitrary | Couch | Canoe | Table | Cabinet | Chair | Bike | AP |
| Original | 77.3% | 68.6% | 59.5% | 48.0% | 54.1% | 23.3% | 32.4% | 74.37 |
| Augmentation | 14.4% | 12.4% | 19.6% | 11.5% | 7.3% | 6.6% | 14.0% | 74.92 |
| Adv Train | 10.8% | 5.6% | 18.7% | 4.9% | 5.3% | 6.3% | 11.4% | 73.97 |
+
+Table 4: Attack success rates before and after applying defense training on PINOR. In the final column, we evaluate the models on the standard KITTI validation set and show the average precision (AP) at 0.7 IoU.
+
+with even with identical backbones and training routines, $\mathrm{PIXOR^{*}}$ is significantly more robust to our attack purely due to a different input representation.
+
+Common Objects In this section, to make attacks more realistic, we learn adversaries that resemble common objects that may appear on top of a vehicle in the real world. Instead of deforming an icosphere, we initialize from a common object mesh and deform the vertices while constraining the maximum perturbation distances. We choose couch, chair, table, bike, and canoe as six common object classes, and we take the object meshes from ShapeNet [9]. We apply uniform mesh re-sampling in meshlab [11] to reduce the number of faces and produce regular geometry prior to deformation. In these experiments we limit the maximum vertex perturbation to $0.03\mathrm{m}$ so that the adversary will resemble the common object, and limit translation to $0.1\mathrm{m}$ , and allow free rotation. In Table 3, we present the visualizations, results, and dimensions of the common objects. Moreover, the identity of the adversarial objects are unambiguous to a human, and we also verify that a PointNet [31] classifier trained on ShapeNet [9] is also able to correctly classify our perturbed objects. This confirms the possibility that the placement of common objects can also hurt LiDAR detectors.
+
+Adversarial Defense We employ our proposed defense methods by retraining a FIXOR model with random data augmentation and adversarial training. To generate random meshes for data augmentation, we uniformly sample $N$ from $[50, 200]$ , $M$ from $[0, 300]$ , and we sample vertices from Gaussian $\mathcal{N}(0, 0.5)$ . If all tetrahedrons are removed by decimation, the sampling process restarts. During training, for every scene we sample one vehicle at random for data augmentation. We only augment vehicles with at least
+
+10 points in the scene, otherwise it is too difficult to fit a mesh for roof approximation. During adversarial training, we set $k = 30$ and alternate between updating the mesh and the model.
+
+For evaluation, we re-train an adversarial mesh on the defended model and observe that the attack success rate is reduced significantly, as shown in Table 4. In addition, we also launch attacks with common objects on the defended model and observe similar findings. Furthermore, for the standard detection task, our defended models achieve similar or better performance when evaluated on the KITTI validation set. Nevertheless, the defense is not yet perfect since there is still $5 - 20\%$ attack success rate remaining. With more computational resources, full adversarial training could possibly close this gap.
+
+# 5. Conclusion
+
+We propose a robust, universal, and physical realizable adversarial example capable of hiding vehicles from LiDAR detectors. An attacker can 3D print the mesh and place it on any vehicle to make it "invisible" without prior knowledge of the scene. The attack will consistently cause target vehicles to disappear, severely impeding downstream tasks in autonomous driving systems. Even without any malicious intent, we show that problematic shapes can coincidentally appear with common objects such as a sofa. We further show that training with data augmentation using random meshes can significantly improve the robustness, but unfortunately still not $100\%$ secure against our attack. By demonstrating the vulnerability of LiDAR perception against universal 3D adversarial objects, we emphasize the need for more robust models in safety-critical robotics applications like self-driving.
+
+# References
+
+[1] Moustafa Alzantot, Yash Sharma, Supriyo Chakraborty, Huan Zhang, Cho-Jui Hsieh, and Mani B Srivastava. Genattack: Practical black-box attacks with gradient-free optimization. In Proceedings of the Genetic and Evolutionary Computation Conference, pages 1111-1119, 2019. 5
+[2] Anish Athalye, Logan Engstrom, Andrew Ilyas, and Kevin Kwok. Synthesizing robust adversarial examples. 2018. 1, 2
+[3] Timur Bagautdinov, Chenglei Wu, Jason Saragih, Pascal Fua, and Yaser Sheikh. Modeling facial geometry using compositional vaes. In CVPR, 2018. 3
+[4] Wieland Brendel, Jonas Rauber, and Matthias Bethge. Decision-based adversarial attacks: Reliable attacks against black-box machine learning models. In ICLR, 2018. 2
+[5] Tom B Brown, Dandelion Mane, Aurko Roy, Martin Abadi, and Justin Gilmer. Adversarial patch. arXiv preprint arXiv:1712.09665, 2017. 2
+[6] Yulong Cao, Chaowei Xiao, Benjamin Cyr, Yimeng Zhou, Won Park, Sara Rampazzi, Qi Alfred Chen, Kevin Fu, and Z. Morley Mao. Adversarial sensor attack on lidar-based perception in autonomous driving. In CCS, 2019. 2
+[7] Yulong Cao, Chaowei Xiao, Dawei Yang, Jing Fang, Ruigang Yang, Mingyan Liu, and Bo Li. Adversarial objects against lidar-based autonomous driving systems. arXiv preprint arXiv:1907.05418, 2019. 1, 2
+[8] Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In SP, 2017. 4, 5
+[9] 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. 8
+[10] Pin-Yu Chen, Huan Zhang, Yash Sharma, Jinfeng Yi, and Cho-Jui Hsieh. ZOO: zeroth order optimization based black-box attacks to deep neural networks without training substitute models. In AISC@CCS, 2017. 2
+[11] Paolo Cignoni, Marco Callieri, Massimiliano Corsini, Matteo Dellepiane, Fabio Ganovelli, and Guido Ranzuglia. MeshLab: an Open-Source Mesh Processing Tool. In Vittorio Scarano, Rosario De Chiara, and Ugo Erra, editors, Eurographics Italian Chapter Conference. The Eurographics Association, 2008. 8
+[12] Francis Engelmann, Jörg Stuckler, and Bastian Leibe. SAMP: shape and motion priors for 4d vehicle reconstruction. In WACV, pages 400-408, 2017. 4
+[13] Kevin Eykholt, Ivan Evtimov, Earlence Fernandes, Bo Li, Amir Rahmati, Chaowei Xiao, Atul Prakash, Tadayoshi Kohno, and Dawn Song. Robust physical-world attacks on deep learning visual classification. In CVPR, 2018. 2
+[14] Andreas Geiger, Philip Lenz, and Raquel Urtasun. Are we ready for autonomous driving? the kitti vision benchmark suite. In CVPR, 2012. 5
+[15] Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. ICLR, 2015. 1, 2, 5
+[16] John F. Hughes, Andries Van Dam, Morgan McGuire, DAvid F. Sklar, James D. Foley, Steven K. Feiner, and Kurt
+
+Akeley. Computer graphics: principles and practice, volume 12110. Addison-Wesley Professional, 1996. 3, 4
+[17] Hiroharu Kato, Yoshitaka Ushiku, and Tatsuya Harada. Neural 3d mesh renderer. In CVPR, 2018. 3
+[18] Alexey Kurakin, Ian J. Goodfellow, and Samy Bengio. Adversarial examples in the physical world. In ICLR Workshop, 2017. 1, 2
+[19] 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, 2019. 5, 6
+[20] Ming Liang, Bin Yang, Yun Chen, Rui Hu, and Raquel Urtasun. Multi-task multi-sensor fusion for 3d object detection. In CVPR, 2019. 1
+[21] Fangzhou Liao, Ming Liang, Yinpeng Dong, Tianyu Pang, Xiaolin Hu, and Jun Zhu. Defense against adversarial attacks using high-level representation guided denoiser. In CVPR, 2018. 2
+[22] Or Litany, Alex Bronstein, Michael Bronstein, and Ameesh Makadia. Deformable shape completion with graph convolutional autoencoders. In CVPR, 2018. 3
+[23] Daniel Liu, Ronald Yu, and Hao Su. Adversarial point perturbations on 3d objects. arXiv preprint arXiv:1908.06062, 2019. 2
+[24] Hsueh-Ti Derek Liu, Michael Tao, Chun-Liang Li, Derek Nowrouzezahrai, and Alec Jacobson. Beyond pixel normballs: Parametric adversaries using an analytically differentiable renderer. In ICLR, 2019. 2
+[25] Shichen Liu, Weikai Chen, Tianye Li, and Hao Li. Soft rasterizer: Differentiable rendering for unsupervised single-view mesh reconstruction. 2019. 3, 4
+[26] Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In ICLR, 2018. 2
+[27] Tomas Möller and Ben Trumbore. Fast, minimum storage ray-triangle intersection. J. Graph. Tools, 2(1):21-28, Oct. 1997. 3
+[28] Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, and Pascal Frossard. Deepfool: A simple and accurate method to fool deep neural networks. In CVPR, 2016. 2
+[29] Nicolas Papernot, Patrick D. McDaniel, Ian J. Goodfellow, Somesh Jha, Z. Berkay Celik, and Ananthram Swami. Practical black-box attacks against machine learning. In AsiaCCS, 2017. 2, 6
+[30] Charles Ruizhongtai Qi, Hao Su, Kaichun Mo, and Leonidas J. Guibas. Pointnet: Deep learning on point sets for 3d classification and segmentation. In CVPR, 2017. 5
+[31] Charles Ruizhongtai Qi, Li Yi, Hao Su, and Leonidas J Guibas. Pointnet++: Deep hierarchical feature learning on point sets in a metric space. In NIPS, 2017. 5, 8
+[32] Aditi Raghunathan, Jacob Steinhardt, and Percy Liang. Certified defenses against adversarial examples. In ICLR, 2018. 2
+[33] Lukas Schott, Jonas Rauber, Matthias Bethge, and Wieland Brendel. Towards the first adversarially robust neural network model on MNIST. In ICLR, 2019. 2
+[34] Shaoshuai Shi, Xiaogang Wang, and Hongsheng Li. Pointr-cnn: 3d object proposal generation and detection from point cloud. In CVPR, 2019. 1, 5, 6
+
+[35] Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. *ICLR*, 2014. 1, 2
+[36] Matthew Wicker and Marta Kwiatkowska. Robustness of 3d deep learning in an adversarial setting. In CVPR, 2019. 1, 2
+[37] Eric Wong and J. Zico Kolter. Provable defenses against adversarial examples via the convex outer adversarial polytope. In ICML, 2018. 2
+[38] Eric Wong, Leslie Rice, and J. Zico Kolter. Fast is better than free: Revisiting adversarial training. In International Conference on Learning Representations, 2020. 5
+[39] Chong Xiang, Charles R. Qi, and Bo Li. Generating 3d adversarial point clouds. In CVPR, 2019. 1, 2
+[40] Cihang Xie, Jianyu Wang, Zhishuai Zhang, Yuyin Zhou, Lingxi Xie, and Alan Yuille. Adversarial examples for semantic segmentation and object detection. In ICCV, 2017. 2, 4
+[41] Bin Yang, Wenjie Luo, and Raquel Urtasun. Pixor: Realtime 3d object detection from point clouds. In CVPR, 2018, 1, 5, 6
+[42] Jiancheng Yang, Qiang Zhang, Rongyao Fang, Bingbing Ni, Jinxian Liu, and Qi Tian. Adversarial attack and defense on point sets. arXiv preprint arXiv:1902.10899, 2019. 2
+[43] Xiaohui Zeng, Chenxi Liu, Yu-Siang Wang, Weichao Qiu, Lingxi Xie, Yu-Wing Tai, Chi-Keung Tang, and Alan L. Yuille. Adversarial attacks beyond the image space. In CVPR, 2019. 1, 2
+[44] Tianhang Zheng, Changyou Chen, Junsong Yuan, Bo Li, and Kui Ren. Pointcloud saliency maps. In ICCV, 2019. 2
+[45] Yin Zhou and Oncel Tuzel. Voxelnet: End-to-end learning for point cloud based 3d object detection. In CVPR, 2018. 1
\ No newline at end of file
diff --git a/physicallyrealizableadversarialexamplesforlidarobjectdetection/images.zip b/physicallyrealizableadversarialexamplesforlidarobjectdetection/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..da9101b4fe875858e96b2b74215d3c4625901f0c
--- /dev/null
+++ b/physicallyrealizableadversarialexamplesforlidarobjectdetection/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c48b3dac02745470c6c400a46053d4bc5a3d15872c88ae58a9bf1f5f838065ae
+size 552437
diff --git a/physicallyrealizableadversarialexamplesforlidarobjectdetection/layout.json b/physicallyrealizableadversarialexamplesforlidarobjectdetection/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..dd0686f3604cfdbc2fc10a3d532a190adc022c28
--- /dev/null
+++ b/physicallyrealizableadversarialexamplesforlidarobjectdetection/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:47968dc82f44afd673cc2da221250b11312bdec61081aa0e77705af9104983fa
+size 373330
diff --git a/pifuhdmultilevelpixelalignedimplicitfunctionforhighresolution3dhumandigitization/fa8f1a01-ef90-4e56-808d-3634e7ba0767_content_list.json b/pifuhdmultilevelpixelalignedimplicitfunctionforhighresolution3dhumandigitization/fa8f1a01-ef90-4e56-808d-3634e7ba0767_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..9802621e30410ec37e7fce18ded5af372f2044c6
--- /dev/null
+++ b/pifuhdmultilevelpixelalignedimplicitfunctionforhighresolution3dhumandigitization/fa8f1a01-ef90-4e56-808d-3634e7ba0767_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5c0e78c0333bded3cc3faf523494ab87af330019a70181fcfbc524c4e0225214
+size 84019
diff --git a/pifuhdmultilevelpixelalignedimplicitfunctionforhighresolution3dhumandigitization/fa8f1a01-ef90-4e56-808d-3634e7ba0767_model.json b/pifuhdmultilevelpixelalignedimplicitfunctionforhighresolution3dhumandigitization/fa8f1a01-ef90-4e56-808d-3634e7ba0767_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..eb6cc6dc4c991f6928d4a23d8ac1b7531ea7dedc
--- /dev/null
+++ b/pifuhdmultilevelpixelalignedimplicitfunctionforhighresolution3dhumandigitization/fa8f1a01-ef90-4e56-808d-3634e7ba0767_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0e2eb71bc8df939f889aac10895c6adf5ec52eb058b4ecfaba91066985505e5e
+size 99915
diff --git a/pifuhdmultilevelpixelalignedimplicitfunctionforhighresolution3dhumandigitization/fa8f1a01-ef90-4e56-808d-3634e7ba0767_origin.pdf b/pifuhdmultilevelpixelalignedimplicitfunctionforhighresolution3dhumandigitization/fa8f1a01-ef90-4e56-808d-3634e7ba0767_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..e9aab9e85272813fe93a7d7015cba48e41616dd2
--- /dev/null
+++ b/pifuhdmultilevelpixelalignedimplicitfunctionforhighresolution3dhumandigitization/fa8f1a01-ef90-4e56-808d-3634e7ba0767_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:085afc98caacdb509b8262d1ee646cde6cd04ae00fabb1143b5e6f38d22787ea
+size 6978464
diff --git a/pifuhdmultilevelpixelalignedimplicitfunctionforhighresolution3dhumandigitization/full.md b/pifuhdmultilevelpixelalignedimplicitfunctionforhighresolution3dhumandigitization/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..be1db14a1cdcddc555ebff1f36faca7abbcce061
--- /dev/null
+++ b/pifuhdmultilevelpixelalignedimplicitfunctionforhighresolution3dhumandigitization/full.md
@@ -0,0 +1,386 @@
+# PIFuHD: Multi-Level Pixel-Aligned Implicit Function for High-Resolution 3D Human Digitization*
+
+Shunsuke Saito $^{1,3}$ Tomas Simon $^{2}$ Jason Saragih $^{2}$ Hanbyul Joo $^{3}$ $^{1}$ University of Southern California $^{2}$ Facebook Reality Labs $^{3}$ Facebook AI Research
+
+# Abstract
+
+Recent advances in image-based 3D human shape estimation have been driven by the significant improvement in representation power afforded by deep neural networks. Although current approaches have demonstrated the potential in real world settings, they still fail to produce reconstructions with the level of detail often present in the input images. We argue that this limitation stems primarily from two conflicting requirements; accurate predictions require large context, but precise predictions require high resolution. Due to memory limitations in current hardware, previous approaches tend to take low resolution images as input to cover large spatial context, and produce less precise (or low resolution) 3D estimates as a result. We address this limitation by formulating a multi-level architecture that is end-to-end trainable. A coarse level observes the whole image at lower resolution and focuses on holistic reasoning. This provides context to an fine level which estimates highly detailed geometry by observing higher-resolution images. We demonstrate that our approach significantly outperforms existing state-of-the-art techniques on single image human shape reconstruction by fully leveraging 1k-resolution input images.
+
+# 1. Introduction
+
+High-fidelity human digitization is the key to enabling a myriad of applications from medical imaging to virtual reality. While metrically accurate and precise reconstructions of humans is now possible with multi-view systems [12, 26], it has remained largely inaccessible to the general community due to its reliance on professional capture systems with strict environmental constraints (e.g., high number of cameras, controlled illuminations) that are prohibitively expensive and cumbersome to deploy. Increasingly, the community has turned to using high capacity deep learning models that have shown great promise in acquiring reconstructions from even a single image [19, 42, 30, 1]. However, the performance
+
+
+Figure 1: Given a high-resolution single image of a person, we recover highly detailed 3D reconstructions of clothed humans at $1\mathrm{k}$ resolution.
+
+of these methods currently remains significantly lower than what is achievable with professional capture systems.
+
+The goal of this work is to achieve high-fidelity 3d reconstruction of clothed humans from a single image at a resolution sufficient to recover detailed information such as fingers, facial features and clothing folds (see Fig. 1). Our observation is that existing approaches do not make full use of the high resolution (e.g., 1k or larger) imagery of humans that is now easily acquired using commodity sensors on mobile phones. This is because the previous approaches rely on holistic reasoning to map between the 2D appearance of an imaged human and their 3D shape, where, in practice, down-sampled images are used due to the prohibitive memory requirements [19, 42]. Although local image patches have important cues for detailed 3D reconstruction, these are rarely leveraged in the full high-resolution inputs due to the memory limitations of current graphics hardware.
+
+Approaches that aim to address this limitation can be categorized into one of two camps. In the first camp, the problem is decomposed in a coarse-to-fine manner, where high-frequency details are embossed on top of low-fidelity surfaces. In this approach, a low image resolution is used
+
+to obtain a coarse shape. Then, fine details represented as surface normal [51] or displacements [3] are added by either a post-process such as Shape From Shading [14] or composition within neural networks. The second camp employs high-fidelity models of humans (e.g., SCAPE [5]) to hallucinate plausible detail. Although both approaches result in reconstructions that appear detailed, they often do not faithfully reproduce the true detail present in the input images.
+
+In this work, we introduce an end-to-end multi-level framework that infers 3D geometry of clothed humans at an unprecedentedly high 1k image resolution in a pixel-aligned manner, retaining the details in the original inputs without any post-processing. Our method differs from the coarse-to-fine approaches in that no explicit geometric representation is enforced in the coarse levels. Instead, implicitly encoded geometrical context is propagated to higher levels without making an explicit determination about geometry prematurely. We base our method on the recently introduced Pixel-Aligned Implicit Function (PIFu) representation [35]. The pixel-aligned nature of the representation allows us to seamlessly fuse the learned holistic embedding from coarse reasoning with image features learned from the high-resolution input in a principled manner. Each level incrementally incorporates additional information missing in the coarse levels, with the final determination of geometry made only in the highest level.
+
+Finally, for a complete reconstruction, the system needs to recover the backside, which is unobserved in any single image. As with low resolution input, missing information that is not predictable from observable measurements will result in overly smooth and blurred estimates. We overcome this problem by leveraging image-to-image translation networks to produce backside normals, similar to [30, 11, 39]. Conditioning our multi-level pixel-aligned shape inference with the inferred back-side surface normal removes ambiguity and significantly improves the perceptual quality of our reconstructions with a more consistent level of detail between the visible and occluded parts.
+
+The main contributions in this work consists of:
+
+- an end-to-end trainable coarse-to-fine framework for implicit surface learning for high-resolution 3D clothed human reconstruction at 1k image resolution.
+- a method to effectively handle uncertainty in unobserved regions such as the back, resulting in complete reconstructions with high detail.
+
+# 2. Related Work
+
+Single-View 3D Human Digitization Single-view 3D human reconstruction is an ill-posed problem due to the fundamental depth ambiguity along camera rays. To overcome such ambiguity, parametric 3D models [5, 27, 18, 33]
+
+are often used to restrict estimation to a small set of model parameters, constraining the solution space to a specifically chosen parametric body model [7, 22, 20, 46, 33, 47]. However, the expressiveness of the resulting models is limited by using a single template mesh as well as by the data on which the model is built (often comprised mainly of minimally clothed people). While using a separate parametric model can alleviate the limited shape variation [6], large deformations and topological changes are still non-trivial to handle with these shape representations.
+
+Researchers have also proposed methods that do not use parametric models, but rather directly regress "freeform" 3D human geometry from single views. These approaches vary their directions based on the input and output representation that each algorithm uses. Some methods represent the 3D output world via a volumetric representation [42]. Of particular relevance to this work is the DeepHuman [49] approach of Zheng et al., where a discretized volumetric representation is produced by the network in increasing resolution and detail. Additional details using surface normals are embossed at the final level. While this method obtains impressive results, the cubic memory requirement imposed by the discrete voxel representation prevents obtaining high resolution simply by naively scaling the input resolution. Alternative methods consider additional free-form deformation on top of a parametric model space [1], and there exist also multiple approaches that predict depth maps of the target people as output [40, 11, 39].
+
+The recently introduced Pixel-Aligned Implicit Function (PIFu) [35] does not explicitly discretize the output space representation but instead regresses a function which determines the occupancy for any given 3D location. This approach shows its strength in reconstructing high-fidelity 3D geometry without having to keep a discretized representation of the entire output volume in memory simultaneously. Furthermore, unlike implicit surface representations using a global feature vector [29, 32, 10], PIFu utilizes fully convolutional image features, retaining local details present in an input image.
+
+High-Resolution Synthesis in Texture Space A number of recent approaches pursue reconstructing high-quality 3D texture or geometry by making use of a texture map representation [48, 41, 23] on which to estimate geometric or color details. Particularly, the Tex2Shape approach of Alldieck et al. [3] aims to reconstruct high quality 3D geometry by regressing displacements in an unwrapped UV space. However, this type of approach is ultimately limited by the topology of the template mesh (exhibiting problems when representing different topologies, such as required by different hair styles or skirts) and the topology chosen for the UV parameterization (e.g., visible seam artifacts
+
+around texture seams). Recent approaches leverage neural network models to predict intermediate texture or depth representations that are then used to reconstruct final 3D geometry output [36, 49].
+
+Our work is also related to approaches that produce high quality or high resolution synthetic human images. Recent methods consider producing high quality synthetic faces to overcome limitations of original GAN-based approaches [43, 21]. Similar trade-offs are pursued in semantic segmentation tasks [8, 9].
+
+# 3. Method
+
+Our method builds on the recently introduced Pixel-aligned Implicit Function (PIFu) framework of [35], which takes images with resolution of $512 \times 512$ as input and obtains low-resolution feature embeddings $(128 \times 128)$ . To achieve higher resolution outputs, we stack an additional pixel-aligned prediction module on top of this framework, where the fine module takes as input higher resolution images $(1024 \times 1024)$ and encodes into high-resolution image features $(512 \times 512)$ . The second module takes the high-resolution feature embedding as well as the 3D embeddings from the first module to predict an occupancy probability field. To further improve the quality and fidelity of the reconstruction, we first predict normal maps for the front and back sides in image space, and feed these to the network as additional input. See Fig. 2 for an overview of the method.
+
+# 3.1. Pixel-Aligned Implicit Function
+
+We briefly describe the foundation of PIFu introduced in [35], which constitutes the coarse level of our method (upper half in Fig. 2). The goal of 3D human digitization can be achieved by estimating the occupancy of a dense 3D volume, which determines whether a point in 3D space is inside the human body or not. In contrast to previous approaches, where the target 3D space is discretized and algorithms focus on estimating the occupancy of each voxel explicitly (e.g., [51]), the goal of PIFu is to model a function, $f(\mathbf{X})$ which predicts the binary occupancy value for any given 3D position in continuous camera space $\mathbf{X} = (\mathbf{X}_x, \mathbf{X}_y, \mathbf{X}_z) \in \mathbb{R}^3$ :
+
+$$
+f (\mathbf {X}, \mathbf {I}) = \left\{ \begin{array}{l l} 1 & \text {i f} \mathbf {X} \text {i s i n s i d e m e s h s u r f a c e} \\ 0 & \text {o t h e r w i s e ,} \end{array} \right. \tag {1}
+$$
+
+where $\mathbf{I}$ is a single RGB image. Since no explicit 3D volume is stored in memory during training, this approach is memory efficient, and more importantly, no discretization is needed for the target 3D volume, which is important in obtaining high-fidelity 3D geometry for the target human subjects. PIFu [35] models the function $f$ via a neural network architecture that is trained in an end-to-end manner.
+
+Specifically, the function $f$ first extracts a image feature embedding from the projected 2D location at $\pi (\mathbf{X}) = \mathbf{x}\in \mathbb{R}^2$ , which we denote by $\Phi (\mathbf{x},\mathbf{I})$ . Orthogonal projection is used for $\pi$ , and thus $\mathbf{x} = \pi (\mathbf{X}) = (\mathbf{X}_x,\mathbf{X}_y)$ . Then, it estimates the occupancy of the query 3D point $\mathbf{X}$ , and thus:
+
+$$
+f (\mathbf {X}, \mathbf {I}) = g (\Phi (\mathbf {x}, \mathbf {I}), Z), \tag {2}
+$$
+
+where $Z = \mathbf{X}_z$ is the depth along the ray defined by the 2D projection $\mathbf{x}$ . Note that all 3D points along the same ray have exactly the same image features $\Phi(\mathbf{x}, I)$ from the same projected location $\mathbf{x}$ , and thus the function $g$ should focus on the varying input depth $Z$ to disambiguate the occupancy of 3D points along the ray. In [35], a Convolutional Neural Network (CNN) architecture is used for the 2D feature embedding function $\Phi$ and a Multilayer Perceptron (MLP) for the function $g$ .
+
+A large scale dataset [34] synthetically generated by rendering hundreds of high quality scanned 3D human mesh models is used to train the function $f$ in an end-to-end fashion. Unlike voxel-based methods, PIFu does not produce a discretized volume as output, so training can be performed by sampling 3D points and computing the occupancy loss at the sampled locations, without generating 3D meshes. During inference, 3D space is uniformly sampled to infer the occupancy and the final iso-surface is extracted with a threshold of 0.5 using marching cubes [28].
+
+Limitations: The input size as well as the image feature resolution of PIFu and other existing work are limited to at most $512 \times 512$ and $128 \times 128$ in resolution respectively, due to memory limitations in existing graphics hardware. Importantly, the network should be designed such that its receptive field covers the entire image so that it can employ holistic reasoning for consistent depth inference—thus, a repeated bottom-up and top-down architecture with intermediate supervision [31] plays an important role to achieve robust 3D reconstruction with generalization ability. This prevents the method from taking higher resolution images as input and keeping the resolution in the feature embeddings, even though this would potentially allow the network to leverage cues about detail present only at those higher resolutions. We found that while in theory the continuous representation of PIFu can represent 3D geometry at an arbitrary resolution, the expressiveness of the representation is bounded by the feature resolution in practice. Thus, we need an effective way of balancing robustness stemming from long-range holistic reasoning and expressiveness by higher feature embedding resolutions.
+
+# 3.2. Multi-Level Pixel-Aligned Implicit Function
+
+We present a multi-level approach towards higher fidelity 3D human digitization that takes $1024 \times 1024$ resolution images as input. Our method is composed of two levels
+
+
+Figure 2: Overview of our framework. Two levels of pixel-aligned predictors produce high-resolution 3D reconstructions. The coarse level (top) captures global 3D structure, while high-resolution detail is added by the fine level.
+
+of PIFu modules: (1) a coarse level similar to PIFu [35], focusing on integrating global geometric information by taking the downsampled $512 \times 512$ image as input, and producing backbone image features of $128 \times 128$ resolution, and (2) a fine level that focuses on adding more subtle details by taking the original $1024 \times 1024$ resolution image as input, and producing backbone image features of $512 \times 512$ resolution (four times higher resolution than the implementation of [35]). Notably, the fine level module takes 3D embedding features extracted from the coarse level instead of the absolute depth value. Our coarse level module is defined similar to PIFu, but as a modification (Sect 3.3) it also takes predicted frontside and backside normal maps:
+
+$$
+f ^ {L} (\mathbf {X}) = g ^ {L} \left(\Phi^ {L} \left(\mathbf {x} _ {L}, \mathbf {I} _ {L}, \mathbf {F} _ {L}, \mathbf {B} _ {L},\right), Z\right), \qquad (3)
+$$
+
+where $\mathbf{I}_L$ is the lower resolution input and $\mathbf{F}_L$ and $\mathbf{B}_L$ are predicted normal maps at the same resolution. $\mathbf{x}_L\in \mathbb{R}^2$ is the projected 2d location of $\mathbf{X}$ in the image space of $\mathbf{I}_L$ . The fine level is denoted as
+
+$$
+f ^ {H} (\mathbf {X}) = g ^ {H} \left(\Phi^ {H} \left(\mathbf {x} _ {H}, \mathbf {I} _ {H}, \mathbf {F} _ {H}, \mathbf {B} _ {H},\right), \Omega (\mathbf {X})\right), \quad (4)
+$$
+
+where $\mathbf{I}_H, \mathbf{F}_H, \mathbf{B}_H$ are the input image, frontal normal map, and backside normal map respectively at a resolution of $1024 \times 1024$ . $\mathbf{x}_H \in \mathbb{R}^2$ is the 2d projection location at high resolution, and thus in our case $\mathbf{x}_H = 2\mathbf{x}_L$ . The function $\Phi^H$ encodes the image features from the high-resolution input and has structure similar to the low-resolution feature extractor $\Phi^L$ . A key difference is that the receptive field of $\Phi^H$ does not cover the entire image, but owing to its fully convolutional architecture, a network can be trained with a random sliding window and infer at the original image resolution (i.e., $1024 \times 1024$ ). Finally, $\Omega(\mathbf{X})$ is a 3D embedding extracted from the coarse level network, where we take the output features from an intermediate layer of $g^L$ .
+
+Because the fine level takes these features from the first pixel-aligned MLP as a 3d embedding, the global reconstruction quality should not be degraded, and should improve
+
+if the network design can properly leverage the increased image resolution and network capacity. Additionally, the fine network doesn't need to handle normalization (i.e., producing a globally consistent 3D depth) and therefore doesn't need to see the entire image, allowing us to train it with image crops. This is important to allow high-resolution image inputs without being limited by memory.
+
+# 3.3. Front-to-Back Inference
+
+Predicting the accurate geometry of the back of people is an ill-posed problem because it is not directly observed in the images. The backside must therefore be inferred entirely by the MLP prediction network and, due to the ambiguous and multimodal nature of this problem, the 3D reconstruction tends to be smooth and featureless. This is due in part to the occupancy loss (Sect. 3.4) favoring average reconstructions under uncertainty, but also because the final MLP layers need to learn a complex prediction function.
+
+We found that if we instead shift part of this inference problem into the feature extraction stage, the network can produce sharper reconstructed geometry. To do this, we predict normal maps as a proxy for 3D geometry in image space, and provide these normal maps as features to the pixel-aligned predictors. The 3D reconstruction is then guided by these maps to infer a particular 3D geometry, making it easier for the MLPs to produce details. We predict the backside and frontal normals in image space using a pix2pixHD [44] network, mapping from RGB color to normal maps. Similarly to recent approaches [30, 11, 39], we find that this produces plausible outputs for the unseen backside for sufficiently constrained problem domains, such as clothed humans.
+
+# 3.4. Loss Functions and Surface Sampling
+
+The specifics of the loss functions used can have a strong effect on the details recovered by the final model. Rather than use an average L1 or L2 loss as in [35], we use an
+
+extended Binary Cross Entropy (BCE) loss [51] at a set of sampled points,
+
+$$
+\begin{array}{l} \mathcal {L} _ {o} = \sum_ {\mathbf {X} \in \mathcal {S}} \lambda f ^ {*} (\mathbf {X}) \log f ^ {\{L, H \}} (\mathbf {X}) \tag {5} \\ + (1 - \lambda) \left(1 - f ^ {*} (\mathbf {X})\right) \log \left(1 - f ^ {\{L, H \}} (\mathbf {X})\right), \\ \end{array}
+$$
+
+where $S$ denotes the set of samples at which the loss is evaluated, $\lambda$ is the ratio of points outside surface in $S$ , $f^{*}(\cdot)$ denotes the ground truth occupancy at that location, and $f^{\{L,H\}}(\cdot)$ are each of the pixel-aligned implicit functions of Sect. 3.2. As in [35], we sample points using a mixture of uniform volume samples and importance sampling around the surface using Gaussian perturbation around uniformly sampled surface points. We found that this sampling scheme produces sharper results than sampling points proportionally to the inverse of distance from the surface. In fact, a mixture of Gaussian balls on the surface has higher sampling density near regions with high curvature (up to the inverse of Gaussian ball radius). Since curvature is the second-order derivative of surface geometry, importance sampling based on curvature significantly enhances details and fidelity.
+
+# 4. Experimental Results
+
+Datasets. To obtain high-fidelity 3D geometry and corresponding images, we use RenderPeople data [35], which consists of commercially available 500 high-resolution photogrammetry scans. We split the dataset into a training set of 450 subjects and a test set of 50 subjects and render the meshes with precomputed radiance transfer [38] using 163 second-order spherical harmonics from HDRI Haven1. Each subject is rendered from every other degree in yaw axis with an elevation fixed with $0^{\circ}$ . Unlike [35], where clean segmentation mask is required, we augment random background images using COCO [24] dataset, removing the need of segmentation as pre-process.
+
+Implementation Details. The image encoders for both the low-resolution and high-resolution levels use a stacked hourglass network [31] with 4 and 1 stacks respectively, using the modification suggested by [16] and batch normalization replaced with group normalization [45]. Note that the fine image encoder removes one downsampling operation to achieve large feature embedding resolution. The feature dimensions are $128 \times 128 \times 256$ in the coarse level and $512 \times 512 \times 16$ in the fine level. The MLP for the coarse-level image encoder has the number of neurons of (257, 1024, 512, 256, 128, 1) with skip connections at third, fourth, fifth layers. The MLP for the fine-level image encoder has the number of neurons of (272, 512, 256, 128, 1) with skip connections at second and third layers. Note
+
+
+(a) Input
+
+
+(b) Sliding window wo/ 3D context
+(c) Sliding window w/ 3D context
+
+
+Figure 3: Sliding window without 3D-aware context information, shown in (b), fails to learn plausible 3D geometry.
+
+| Methods | RenderPeople | Buff |
| Normal | P2S | Chamfer | Normal | P2S | Chamfer |
| Fine module only | 0.213 | 4.15 | 2.77 | 0.229 | 3.63 | 2.67 |
| Fine module + Global image feature | 0.165 | 2.92 | 2.13 | 0.183 | 2.767 | 2.24 |
| Single PIFu | 0.109 | 1.45 | 1.47 | 0.134 | 1.68 | 1.76 |
| Ours (ML-PIFu, end-to-end) | 0.117 | 1.66 | 1.55 | 0.147 | 1.88 | 1.81 |
| Ours (ML-PIFu, alternate) | 0.111 | 1.41 | 1.44 | 0.133 | 1.63 | 1.73 |
| Ours with normals | 0.107 | 1.37 | 1.43 | 0.134 | 1.63 | 1.75 |
+
+Table 1: Quantitative evaluation on RenderPeople and BUFF datasets for single-view reconstruction. Units for point-to-surface and Chamfer distance are in cm.
+
+that the second MLP takes the output of the fourth layer in the first MLP as 3D embedding $\Omega \in \mathbb{R}^{256}$ instead of absolute depth value together with high-resolution image features $\Phi^H (\mathbf{x}_H,\mathbf{I}_H,\mathbf{F}_H,\mathbf{B}_H)\in \mathbb{R}^{16}$ , resulting in the input channel size of 272 in total. The coarse PIFu module is pre-trained with the input image resized to $512\times 512$ and a batch size of 8. The fine PIFu is trained with a batch size of 8 and a random window crop of size $512\times 512$ . We use RMSProp with weight decay by a factor of 0.1 every 10 epochs. Following [35], we use 8000 sampled points with the mixture of uniform sampling and importance sampling around surface with standard deviations of $5\mathrm{cm}$ and $3\mathrm{cm}$ for the coarse and fine levels respectively.
+
+The surface normal inference uses a network architecture proposed by [17], consisting of 9 residual blocks with 4 downsampling layers. We train two networks that predict frontside and backside normals individually with the following objective functions:
+
+$$
+\mathcal {L} _ {N} = \mathcal {L} _ {V G G} + \lambda_ {l 1} \mathcal {L} _ {l 1}, \tag {6}
+$$
+
+where $\mathcal{L}_{VGG}$ is the perceptual loss proposed by Johnson et al. [17], and $\mathcal{L}_{l1}$ is the $l1$ distance between the prediction and ground truth normals. The relative weight $\lambda_{l1}$ is set to 5.0 in our experiments. We use the aforementioned 450 RenderPeople training set to generate synthetic ground truth front and backside normals together with the corresponding input images. We use Adam optimizer with learning rate of $2.0 \times 10^{-4}$ until the convergence.
+
+
+(a) Input
+
+
+(b) Fine module only
+
+
+(c) Fine module + Global image feature
+
+
+Figure 4: Qualitative evaluation of our multi-level pixel-aligned implicit function on samples from RenderPeople and BUFF [50] datasets. We compare the results of our method with the results of other alternative designs.
+
+
+
+
+(d) Single-level PIFu
+
+
+
+
+(e) Multi-level PIFu
+
+
+
+
+(a) Input
+Figure 5: Conditioning 3D inference with the predicted backside surface normal improves fidelity of the missing region.
+
+
+(b)PIFu
+
+
+(c) Ours wo/ normal
+
+
+(d) Ours w/ normal
+
+# 4.1. Evaluations
+
+Ablation Study. We evaluate our multi-level pixel aligned implicit functions with several alternatives to assess the factors that contribute to achieving high-fidelity reconstructions. First, we assess the importance of 3D embedding that accounts for holistic context for high-resolution inference. To support larger input resolution at inference time, we train the network with random cropping of $512 \times 512$ from $1024 \times 1024$ images, similar to 2D computer vision tasks (e.g., semantic segmentation). We found that if our fine level module is conditioned on the absolute depth value instead of the learned 3D embedding, training with sliding window significantly degrades both training and test accuracy (see Fig. 3). This illustrates that 3D reconstruction using high-resolution features without holistic reasoning severely suffers from depth ambiguity and is unable to generalize with input size discrepancy between training and inference. Thus, the combination of holistic reasoning and
+
+high-resolution images features is essential for high-fidelity 3D reconstruction.
+
+Second, we evaluate our design choice from both robustness and fidelity perspective. To achieve high-resolution reconstruction, it is important to keep feature resolution large enough while maintaining the ability to reason holistically. In this experiment, we implement 1) a pixel-aligned implicit function using only our fine-level image encoder by processing the full resolution as input during training, 2) conditioning 1) with jointly learned global feature using ResNet34 [13] as a global feature encoder in spirit to [15], 3) a single PIFu (i.e., our coarse-level image encoder) by resizing input to $512 \times 512$ , 4) our proposed multi-level PIFu (two levels) by training all networks jointly (ML-PIFu, end-to-end), and 5) ours with alternate training of the coarse and fine modules (ML-PIFu, alternate).
+
+Figure 4 and Table 1 show our qualitative and quantitative evaluation using RenderPeople and BUFF [50] dataset. We compute point-to-surface distance, Chamfer distance, and surface normal consistency using ground truth geometry. Large spatial resolution of feature embeddings $(512 \times 512)$ greatly enhance local details compared with a single-level PIFu whose backbone feature resolution $(128 \times 128)$ is spatially 4 times smaller. On the other hand, due to the limited design choices for high resolution input, using local feature suffers from overfitting and robustness and generalization becomes challenging. While adding global context helps a network reason more precise geometry, resulting in sharper reconstruction, lack of precise spatial information in the global feature deteriorates the robustness. This problem becomes more critical in case of non-rigid articulated objects [35]. Also, we found that alternatively
+
+
+(a) Input
+
+
+(b) Ours (Multi-level PIFu)
+
+
+Figure 6: We qualitatively compare our method with state-of-the-art methods, including (c) Tex2shape [3], (d) PIFu [35], and (e) DeepHuman [51], on the People Snapshot dataset [2]. By fully leveraging high-resolution image inputs, (b) our method can reconstruct higher resolution geometry compared to the existing methods.
+
+i-level PIFu)
+
+
+
+
+(c) Tex2Shape
+
+
+
+
+(d)PIFu
+
+
+
+
+(e) DeepHuman
+
+pHuman
+
+training the coarse and fine modules results in higher accuracy than jointly training them in an end-to-end manner.
+
+We also evaluate the importance of inferring backside normal to recover detail on the occluded region. Figure 5 shows that PIFu that takes only input image suffers from blurred reconstruction on the missing regions due to ambiguity. On the other hand, directly providing guidance by facilitating image-to-image translation networks significantly improves the reconstruction accuracy on both front and back side with more realistic wrinkles. Since the pixel-aligned implicit functions are computationally expensive to differentiably render on a image plane, solving sub-problems in the image domain is a practical solution to address the completion task with plausible details.
+
+# 4.2. Comparisons
+
+We qualitatively compare our method with state-of-the-art 3D human reconstruction methods with various shape representations on the publicly available People Snapshot dataset [2]. The shape representations include multi-scale voxel (DeepHuman) [51], pixel-aligned implicit function (PIFu) [35], and a human parametric model with texture mapping using displacements and surface normals (Tex2shape) [3]. While Tex2shape and DeepHuman adopt a coarse-to-fine strategy, the results show that the effect of refinement is marginal due to the limited representation power of the base shapes (See Fig. 6). More specifically, a voxel representation limits spatial resolution, and a template-based approach has difficulty handling varying topology and large deformations. Although the template-based approach [3] retains some distinctive shapes such as wrinkles, the resulting shapes lose the fidelity of the input subject due to the imperfect mapping
+
+from image space to the texture parameterization using the off-the-shelf human dense correspondences map [4]. In contrast, our method fully leverages the expressive shape representation for both base and refined shapes and directly predicts 3D geometry at a pixel-level, retaining all the details that are present in the input image. More qualitative results can be found in Figure 7.
+
+# 5. Discussion and Future Work
+
+We present a multi-level framework that performs joint reasoning over holistic information and local details to arrive at high-resolution 3D reconstructions of clothed humans from a single image without any additional post processing or side information. Our multi-level Pixel-Aligned Implicit Function achieves this by incrementally propagating global context through a scale pyramid as an implicit 3D embedding. This avoids making premature decisions about explicit geometry that has limited prior approaches. Our experiments demonstrate that it is important to incorporate such 3D-aware context for accurate and precise reconstructions. Furthermore, we show that circumventing ambiguity in the image-domain greatly increases the consistency of 3D reconstruction detail in occluded regions.
+
+Since the multi-level approach relies on the success of previous stages in extracting 3D embeddings, improving the robustness of our baseline model is expected to directly merit our overall reconstruction accuracy. Future work may include incorporating human specific priors (e.g., semantic segmentations, pose, and parametric 3D face models) and adding 2D supervision of implicit surface [37, 25] to further support in-the-wild inputs.
+
+
+
+
+
+
+
+
+Input
+
+
+
+
+
+
+
+
+
+
+Reconstructed geometry
+
+
+
+
+
+
+
+
+
+
+Figure 7: Qualitative results on Internet photos. These results demonstrate that our model trained by synthetically generated data can successfully reconstruct high-fidelity 3D from the humans in real world data.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Input
+
+
+
+
+
+
+
+
+
+
+Reconstructed geometry
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# References
+
+[1] T. Alldieck, M. Magnor, B. L. Bhatnagar, C. Theobalt, and G. Pons-Moll. Learning to reconstruct people in clothing from a single RGB camera. In IEEE Conference on Computer Vision and Pattern Recognition, pages 1175-1186, 2019.
+[2] T. Alldieck, M. A. Magnor, W. Xu, C. Theobalt, and G. Pons-Moll. Video based reconstruction of 3d people models. In IEEE Conference on Computer Vision and Pattern Recognition, pages 8387-8397, 2018.
+[3] T. Alldieck, G. Pons-Moll, C. Theobalt, and M. Magnor. Tex2shape: Detailed full human body geometry from a single image. In The IEEE International Conference on Computer Vision (ICCV), October 2019.
+[4] R. Alp Güler, N. Neverova, and I. Kokkinos. Densepose: Dense human pose estimation in the wild. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7297-7306, 2018.
+[5] D. Anguelov, P. Srinivasan, D. Koller, S. Thrun, J. Rodgers, and J. Davis. SCAPE: shape completion and animation of people. ACM Transactions on Graphics, 24(3):408-416, 2005.
+[6] B. L. Bhatnagar, G. Tiwari, C. Theobalt, and G. Pons-Moll. Multi-garment net: Learning to dress 3d people from images. In Proceedings of the IEEE International Conference on Computer Vision, pages 5420-5430, 2019.
+[7] F. Bogo, A. Kanazawa, C. Lassner, P. Gehler, J. Romero, and M. J. Black. Keep it SMPL: Automatic estimation of 3D human pose and shape from a single image. In European Conference on Computer Vision, pages 561-578, 2016.
+[8] L.-C. Chen, G. Papandreou, I. Kokkinos, K. Murphy, and A. L. Yuille. Deep convolutional nets, atrous convolution, and fully connected crfs. IEEE transactions on pattern analysis and machine intelligence, 40(4):834-848, 2017.
+[9] L.-C. Chen, Y. Zhu, G. Papandreou, F. Schroff, and H. Adam. Encoder-decoder with atrous separable convolution for semantic image segmentation. In ECCV, 2018.
+[10] Z. Chen and H. Zhang. Learning implicit fields for generative shape modeling. In IEEE Conference on Computer Vision and Pattern Recognition, pages 5939-5948, 2019.
+[11] V. Gabeur, J.-S. Franco, X. MARTIN, C. Schmid, and G. Rogez. Moulding Humans: Non-parametric 3D Human Shape Estimation from Single Images. In ICCV 2019 - International Conference on Computer Vision, pages 1-10, Seoul, South Korea, Oct. 2019.
+[12] K. Guo, P. Lincoln, P. Davidson, J. Busch, X. Yu, M. Whalen, G. Harvey, S. Orts-Escalano, R. Pandey, J. Dourgarian, et al. The relighttables: volumetric performance capture of humans with realistic relighting. ACM Transactions on Graphics (TOG), 2019.
+[13] 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.
+[14] B. K. Horn. Shape from shading: A method for obtaining the shape of a smooth opaque object from one view. 1970.
+
+[15] S. Iizuka, E. Simo-Serra, and H. Ishikawa. Globally and locally consistent image completion. ACM Transactions on Graphics (ToG), 36(4):107, 2017.
+[16] A. S. Jackson, C. Manafas, and G. Tzimiropoulos. 3D Human Body Reconstruction from a Single Image via Volumetric Regression. In ECCV Workshop Proceedings, PeopleCap 2018, pages 0–0, 2018.
+[17] J. Johnson, A. Alahi, and L. Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. In European Conference on Computer Vision, pages 694–711. Springer, 2016.
+[18] H. Joo, T. Simon, and Y. Sheikh. Total capture: A 3d deformation model for tracking faces, hands, and bodies. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8320-8329, 2018.
+[19] A. Kanazawa, M. J. Black, D. W. Jacobs, and J. Malik. End-to-end recovery of human shape and pose. In IEEE Conference on Computer Vision and Pattern Recognition, pages 7122-7131, 2018.
+[20] A. Kanazawa, M. J. Black, D. W. Jacobs, and J. Malik. End-to-end recovery of human shape and pose. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7122-7131, 2018.
+[21] T. Karras, T. Aila, S. Laine, and J. Lehtinen. Progressive growing of gans for improved quality, stability, and variation. arXiv preprint arXiv:1710.10196, 2017.
+[22] C. Lassner, J. Romero, M. Kiefel, F. Bogo, M. J. Black, and P. V. Gehler. Unite the people: Closing the loop between 3d and 2d human representations. In IEEE Conference on Computer Vision and Pattern Recognition, pages 6050-6059, 2017.
+[23] V. Lazova, E. Insafutdinov, and G. Pons-Moll. 360-degree textures of people in clothing from a single image. In International Conference on 3D Vision (3DV), sep 2019.
+[24] T.-Y. Lin, M. Maire, S. Belongie, J. Hays, P. Perona, D. Ramanan, P. Dollar, and C. L. Zitnick. Microsoft coco: Common objects in context. In ECCV, pages 740-755, 2014.
+[25] S. Liu, S. Saito, W. Chen, and H. Li. Learning to infer implicit surfaces without 3d supervision. arXiv preprint arXiv:1911.00767, 2019.
+[26] S. Lombardi, J. Saragih, T. Simon, and Y. Sheikh. Deep appearance models for face rendering. ACM Transactions on Graphics (TOG), 37(4):68, 2018.
+[27] M. Loper, N. Mahmood, J. Romero, G. Pons-Moll, and M. J. Black. SMPL: A skinned multi-person linear model. ACM Transactions on Graphics, 34(6):248, 2015.
+[28] W. E. Lorensen and H. E. Cline. Marching cubes: A high resolution 3d surface construction algorithm. In ACM siggraph computer graphics, volume 21, pages 163-169. ACM, 1987.
+[29] L. Mescheder, M. Oechsle, M. Niemeyer, S. Nowozin, and A. Geiger. Occupancy networks: Learning 3d reconstruction in function space. arXiv preprint arXiv:1812.03828, 2018.
+[30] R. Natsume, S. Saito, Z. Huang, W. Chen, C. Ma, H. Li, and S. Morishima. Siclope: Silhouette-based clothed people. In IEEE Conference on Computer Vision and Pattern Recognition, pages 4480-4490, 2019.
+
+[31] A. Newell, K. Yang, and J. Deng. Stacked hourglass networks for human pose estimation. In European Conference on Computer Vision, pages 483-499, 2016.
+[32] J. J. Park, P. Florence, J. Straub, R. Newcombe, and S. Lovegrove. Deepsdf: Learning continuous signed distance functions for shape representation. arXiv preprint arXiv:1901.05103, 2019.
+[33] G. Pavlakos, V. Choutas, N. Ghorbani, T. Bolkart, A. A. Osman, D. Tzionas, and M. J. Black. Expressive body capture: 3d hands, face, and body from a single image. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 10975-10985, 2019.
+[34] Renderpeople, 2018. https://renderpeople.com/3d-people.
+[35] S. Saito, Z. Huang, R. Natsume, S. Morishima, A. Kanazawa, and H. Li. Pifu: Pixel-aligned implicit function for high-resolution clothed human digitization. In ICCV, 2019.
+[36] M. Sela, E. Richardson, and R. Kimmel. Unrestricted facial geometry reconstruction using image-to-image translation. In Proceedings of the IEEE International Conference on Computer Vision, pages 1576-1585, 2017.
+[37] V. Sitzmann, M. Zollhöfer, and G. Wetzstein. Scene representation networks: Continuous 3d-structure-aware neural scene representations. arXiv preprint arXiv:1906.01618, 2019.
+[38] P.-P. Sloan, J. Kautz, and J. Snyder. Precomputed radiance transfer for real-time rendering in dynamic, low-frequency lighting environments. In ACM Transactions on Graphics, volume 21, pages 527-536, 2002.
+[39] D. Smith, M. Loper, X. Hu, P. Mavroidis, and J. Romero. Facsimile: Fast and accurate scans from an image in less than a second. In The IEEE International Conference on Computer Vision (ICCV), October 2019.
+[40] S. Tang, F. Tan, K. Cheng, Z. Li, S. Zhu, and P. Tan. A neural network for detailed human depth estimation from a single image. In Proceedings of the IEEE International Conference on Computer Vision, pages 7750-7759, 2019.
+[41] A. T. Tran, T. Hassner, I. Masi, E. Paz, Y. Nirkin, and G. G. Medioni. Extreme 3d face reconstruction: Seeing through occlusions.
+[42] G. Varol, D. Ceylan, B. Russell, J. Yang, E. Yumer, I. Laptev, and C. Schmid. BodyNet: Volumetric inference of 3D human body shapes. In European Conference on Computer Vision, pages 20-36, 2018.
+[43] T.-C. Wang, M.-Y. Liu, J.-Y. Zhu, A. Tao, J. Kautz, and B. Catanzaro. High-resolution image synthesis and semantic manipulation with conditional gans. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 8798-8807, 2018.
+[44] T.-C. Wang, M.-Y. Liu, J.-Y. Zhu, A. Tao, J. Kautz, and B. Catanzaro. High-resolution image synthesis and semantic manipulation with conditional gans. In IEEE Conference on Computer Vision and Pattern Recognition, pages 8798-8807, 2018.
+[45] Y. Wu and K. He. Group normalization. In European Conference on Computer Vision, pages 3-19, 2018.
+[46] D. Xiang, H. Joo, and Y. Sheikh. Monocular total capture: Posing face, body, and hands in the wild. In Proceedings
+
+of the IEEE Conference on Computer Vision and Pattern Recognition, pages 10965-10974, 2019.
+[47] Y. Xu, S.-C. Zhu, and T. Tung. Denserac: Joint 3d pose and shape estimation by dense render-and-compare. In Proceedings of the IEEE International Conference on Computer Vision, pages 7760-7770, 2019.
+[48] S. Yamaguchi, S. Saito, K. Nagano, Y. Zhao, W. Chen, K. Olszewski, S. Morishima, and H. Li. High-fidelity facial reflectance and geometry inference from an unconstrained image. ACM Transactions on Graphics, 37(4):162, 2018.
+[49] X. Zeng, X. Peng, and Y. Qiao. Df2net: A dense-finefiner network for detailed 3d face reconstruction. In The IEEE International Conference on Computer Vision (ICCV), October 2019.
+[50] C. Zhang, S. Pujades, M. Black, and G. Pons-Moll. Detailed, accurate, human shape estimation from clothed 3D scan sequences. In IEEE Conference on Computer Vision and Pattern Recognition, pages 4191-4200, 2017.
+[51] Z. Zheng, T. Yu, Y. Wei, Q. Dai, and Y. Liu. Deephuman: 3d human reconstruction from a single image. In The IEEE International Conference on Computer Vision (ICCV), October 2019.
\ No newline at end of file
diff --git a/pifuhdmultilevelpixelalignedimplicitfunctionforhighresolution3dhumandigitization/images.zip b/pifuhdmultilevelpixelalignedimplicitfunctionforhighresolution3dhumandigitization/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..6e0fbf80e6709be7cf053b616fc0cb63732ffd35
--- /dev/null
+++ b/pifuhdmultilevelpixelalignedimplicitfunctionforhighresolution3dhumandigitization/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2c395d1a479d2097442bc47be3ca786d26e6657e4d771be1507853a1d4e1d99c
+size 686610
diff --git a/pifuhdmultilevelpixelalignedimplicitfunctionforhighresolution3dhumandigitization/layout.json b/pifuhdmultilevelpixelalignedimplicitfunctionforhighresolution3dhumandigitization/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..3cf501ddabdf75ec2824f539b0922e861ecd02c3
--- /dev/null
+++ b/pifuhdmultilevelpixelalignedimplicitfunctionforhighresolution3dhumandigitization/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b24ad20162c98a989230990b848a27ce1e0c1443c041f4a7f057ebc64033c61a
+size 456883
diff --git a/pixelconsensusvotingforpanopticsegmentation/4a5373cd-0f05-4fb5-a6ae-98b38b151408_content_list.json b/pixelconsensusvotingforpanopticsegmentation/4a5373cd-0f05-4fb5-a6ae-98b38b151408_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..cec002f93b5e429fbdd4194f3a6795541bba9ad0
--- /dev/null
+++ b/pixelconsensusvotingforpanopticsegmentation/4a5373cd-0f05-4fb5-a6ae-98b38b151408_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:95d3db575fffb4334110d9cbeed3ca61b2d37d438f77f17b91db46bb03c66ed2
+size 85197
diff --git a/pixelconsensusvotingforpanopticsegmentation/4a5373cd-0f05-4fb5-a6ae-98b38b151408_model.json b/pixelconsensusvotingforpanopticsegmentation/4a5373cd-0f05-4fb5-a6ae-98b38b151408_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..244871dc4d5f91a15aa17060f98818adb86b4d67
--- /dev/null
+++ b/pixelconsensusvotingforpanopticsegmentation/4a5373cd-0f05-4fb5-a6ae-98b38b151408_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f75d25f6f050b69a7770b25990d0818eee58e753de7724a46478ef8d57432cf4
+size 103444
diff --git a/pixelconsensusvotingforpanopticsegmentation/4a5373cd-0f05-4fb5-a6ae-98b38b151408_origin.pdf b/pixelconsensusvotingforpanopticsegmentation/4a5373cd-0f05-4fb5-a6ae-98b38b151408_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..cfe967d0bcf03f450b4ab5dc5f5bb894d5de1a82
--- /dev/null
+++ b/pixelconsensusvotingforpanopticsegmentation/4a5373cd-0f05-4fb5-a6ae-98b38b151408_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:953ce220b1253a1fe0b0ddd57dfd08a552e4f407c3d5c3bdc6f13eb7bea59b42
+size 917926
diff --git a/pixelconsensusvotingforpanopticsegmentation/full.md b/pixelconsensusvotingforpanopticsegmentation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..2d7e9863a05b23efaa1f04d7462368630b43a620
--- /dev/null
+++ b/pixelconsensusvotingforpanopticsegmentation/full.md
@@ -0,0 +1,357 @@
+# Pixel Consensus Voting for Panoptic Segmentation
+
+Haochen Wang
+Carnegie Mellon University
+
+whcw@cmu.edu
+
+Ruotian Luo
+TTI-Chicago
+
+rluo@ttic.edu
+
+Michael Maire
+University of Chicago
+
+mmaire@uchicago.edu
+
+Greg Shakhnarovich
+TTI-Chicago
+
+greg@ttic.edu
+
+# Abstract
+
+The core of our approach, Pixel Consensus Voting, is a framework for instance segmentation based on the Generalized Hough transform. Pixels cast discretized, probabilistic votes for the likely regions that contain instance centroids. At the detected peaks that emerge in the voting heatmap, backprojection is applied to collect pixels and produce instance masks. Unlike a sliding window detector that densely enumerates object proposals, our method detects instances as a result of the consensus among pixel-wise votes. We implement vote aggregation and backprojection using native operators of a convolutional neural network. The discretization of centroid voting reduces the training of instance segmentation to pixel labeling, analogous and complementary to FCN-style semantic segmentation, leading to an efficient and unified architecture that jointly models things and stuff. We demonstrate the effectiveness of our pipeline on COCO and Cityscapes Panoptic Segmentation and obtain competitive results. Code will be open-sourced.
+
+# 1. Introduction
+
+The development of visual recognition algorithms has followed the evolution of recognition benchmarks. PASCAL VOC [13] standardizes the task of bounding box object detection and the associated IoU/Average Precision metrics. At the time, the approaches defining the state-of-the-art, DPM [14] and later the R-CNN family [17, 48], address object detection by reasoning about densely enumerated box proposals, following the sliding window classification approach of earlier detectors [52, 51]. SDS [19] expands the scope of object detection to include instance mask segmentation, and introduces early versions of the $\mathrm{mAP^{box}}$ and $\mathrm{mAP^{mask}}$ , subsequently popularized by the COCO dataset [35]. Bounding boxes, however, remain the primary vehicle for object reasoning.
+
+The more recently introduced task of panoptic segmentation [24] removes the notion of boxes altogether. It treats both "things" and "stuff" in a unified format, in which ground truth and predictions are expressed as labelled segment masks: instance and category for objects ("things"),
+
+and category only for "stuff" [5].
+
+Our work focuses on this particular framework of image understanding. We propose an approach, Pixel Consensus Voting (PCV), that in line with this updated task definition, elevates pixels to first class citizen status. Every pixel contributes evidence for the presence, identity, and location of an object to which it may belong, as well as for an object or stuff category label. PCV aggregates and backprojects this evidence, in a Hough transform-like framework, so that detections emerge from the consensus among pixels that vote for consistent object hypotheses. Figure 1 summarizes our approach.
+
+Notably, and in contrast to the currently dominant line of detection work derived from the R-CNN family [17, 48, 20, 7], our approach does not involve reasoning about bounding boxes. It can be seen as a descendant of early Hough-based methods such as the Implicit Shape Model (ISM) [27, 28]. Such methods traditionally have been referred to as "bottom-up". Different from earlier work, PCV leverages the power of convolutional networks to extract rich image features. Since these features have large receptive fields and presumably capture high-level semantic concepts, it is unclear whether the bottom-up designation remains appropriate. Another distinction from prior attempts to use voting is in our representation of those votes. Traditional methods treat voting as offset regression, and suffers from the problem of "regressing to the mean", where prediction is conflated with uncertainty. In PCV, we treat voting for object location as classification over discretized spatial cells. This allows for the representation of uncertainty and for "abstention" votes by non-object pixels. It also lends itself to efficient vote aggregation and backprojection using (dilated [56]) convolutional mechanisms.
+
+Despite its simplicity, PCV achieves competitive quantitative results on COCO and Cityscapes panoptic segmentation benchmarks. On COCO, PCV outperforms all existing proposal-free or single-stage detection methods. Our work revisits a classic idea from a modern perspective, and we expect that future research extending our approach will yield major performance gains and novel insights.
+
+
+Discretization & Classification
+
+
+Voting as (Transposed) Convolution
+Figure 1: An overview of PCV. Left: A large region around each pixel is discretized into spatial cells according to a Voting Filter, with cells whose size increases the farther they are from the pixel. A classification convnet casts votes for the location of the instance to which the pixel belongs, in the form of a probability of a cell containing the instance centroid; a pixel can also vote for "abstaining" (not belonging to any instance). Middle: The votes from each pixel are aggregated into a voting heatmap, using an efficient dilated deconvolution (transposed conv.) mechanism. Peak Regions of the heatmap are treated as initial instance detection hypotheses. Right: A Query Filter, the spatial inversion of the Voting Filter, is convolved with each peak region, backprojecting from the vote map to produce a pixel-wise instance mask for that peak. Not shown: the semantic segmentation branch assigns categories to things and stuff, and filters out spurious detection on the left. See also Fig. 7.
+
+
+Backprojection as Filtering
+
+# 2. Related work
+
+Sliding window detection Over the last two decades, most approaches to object detection and instance segmentation have followed the general methodology of sliding window classification. Early work on densely evaluating windows was later refined to enumerating and evaluating select proposals. This is by far the most prevalent approach today. In a typical pipeline, a large number of candidate regions are sampled from an input image and a predictor (usually a convolutional network) scores each region's likelihood to intersect with objects. For highly ranked proposals, the network also predicts their categories, bounding box coordinates, and optionally generates instance masks. Two stage methods, such as Faster/Mask R-CNN [48, 20] use regional feature pooling as an attention mechanism to enhance prediction accuracy, while single stage methods, includingYOLO [46], RetinaNet [34] and SSD [37], combine all network decisions in a single feedforward pass.
+
+Instances from pixels Many attempts have been made to establish a direct connection between image pixels and instance segmentations. A natural idea to group pixels into instances is to obtain some measure of pixel affinity for clustering. In [10, 42], a network is trained to produce pixel embeddings that are similar within and different across instances, and an off-the-shelf clustering algorithm is used for grouping. RPE [26] integrates the clustering step into the learning process by formulating mean-shift clustering as a recurrent neural network. AdaptIS [50] further improves the training of discriminative embeddings by a novel scheme
+
+that provides end-to-end supervision. In addition, exploiting the sparsity in pairwise pixel affinity makes it possible to instantiate the clustering step as a graph-cut. Learning the sparse pixel affinity can be formulated as boundary detection [25], or a richer multi-hop dilated connectivity prediction [16, 38]. Alternatively, instances may be generated sequentially using a recurrent neural network [47, 49], or treated as watershed basins through a learned boundary distance transform [2].
+
+Detections via Generalized Hough transform The Hough transform [12] frames the task of detecting analytical shapes as identifying peaks in a dual parametric space; this idea can be generalized [3] to arbitrary objects. The gist of the Generalized Hough transform is to collect local evidence as votes cast for the likely location, scale, and pose of potential instances. Works in this vein such as Implicit Shape Models [27] rely on memorized mapping from image patches to offsets, and is later improved by the use of more advanced learning techniques [40, 15]. It has been applied to a variety of problems including pose estimation [18, 4], tracking [15] and 3D object detection [45]. Our work can be seen as a descendant of these earlier efforts.
+
+Some recent work follows broadly similar philosophy, but differs from ours in many ways. Most [41, 44, 55] treat learning to vote for object centroids as a regression task, followed by clustering votes represented as points in parameter space. Our work avoids potential limitations of offset regression and uses discretized region classification to capture pixel-level uncertainty. We design convolutional mechanisms for efficient vote aggregation and backprojec
+
+tion under this classification setting.
+
+To our knowledge, the only prior work using transposed convolution i.e. deconv for classification-based pixel voting is [32], applied to single person pose estimation. We take inspiration from their work, but differ in motivation and implementation.
+
+Panoptic Segmentation Most existing work address panoptic segmentation by merging the outputs from specialized components designed for instance [20] and semantic segmentation [57, 6] with greedy heuristics [24]. PFPN [23] establishes a strong single network baseline by sharing the FPN [33] feature for Mask R-CNN [20] and FCN [39] sub-branches. [54, 29, 30, 36] improve the segment overlap resolution with learned modules. [53, 11] trade off the performance for speed by using single-stage object detectors. Proposal-free methods [50, 16, 55, 8] provide novel perspectives that directly model instances from pixels, but in general lag behind the performance of those leveraging mature engineering solutions, with an especially large gap on the challenging COCO [35] benchmark.
+
+# 3. Pixel Consensus Voting
+
+Given an input image, PCV starts with a convolutional neural network extracting a shared representation (feature tensor) that is fed to two independent sub-branches (Fig. 2). The semantic segmentation branch predicts the category label for every pixel. The instance voting branch predicts for every pixel whether the pixel is part of an instance mask, and if so, the relative location of the instance mask centroid. This prediction is framed as classification over a set of grid cells around a pixel according to the Voting Filter. Both branches are trained with standard cross-entropy loss.
+
+The predictions from the voting branch are aggregated into a voting heatmap (accumulator array in the Hough transform terminology). A key technical innovation in PCV is a dilated convolution mechanism that implements this efficiently. Local maxima of the heatmap are detection candidates. At each peak region, we convolve a Query Filter to backproject the pixels that favor this particular peak above all others. These pixels together form a category-agnostic instance segmentation mask. Finally, we merge the instance and semantic segmentation masks using a simple greedy strategy, yielding a complete panoptic segmentation output.
+
+# 3.1. Backbone and Feature Extraction
+
+Our work develops a meta architecture to model and segment instances. To this end, PCV reduces the training of instance recognition to pixel labelling, which can be tackled by various descendants of Fully Convolutional Networks [39]. We follow the design of UPSNet [54], which repurposes a Feature Pyramid Network (FPN) [33] with a ResNet
+
+
+Figure 2: Network architecture for PCV. FPN serves as a shared extractor for the semantic segmentation branch and instance voting branch. Each branch predicts output at every pixel, and is trained with a per-pixel cross entropy loss.
+
+backbone [21] for semantic segmentation. Features from each stage of FPN, respectively at $1/32$ , $1/16$ , $1/8$ and $1/4$ of input resolution, first go through a shared deformable convolution module before being upsampled to a uniform size of $1/4$ of the input scale. Channel dimensions of the feature maps are reduced from 256 to 128 with $1 \times 1$ conv before channel-wise concatenation. On top of this, we apply a $1 \times 1$ conv, softmax and $4 \times$ nearest neighbor upsampling to generate per-pixel labels. Note that we apply softmax first, before upsampling, since it is faster to produce instance masks at a lower resolution. The semantic segmentation branch predicts the labels for all categories, and is different from PFPN [23], which lumps all "thing" classes into a single category.
+
+# 3.2. Region Discretization
+
+Consider an instance mask consisting of a set of pixels $\{p_i | p_i \in \mathbb{R}^2\}_{i=1}^N$ , and the instance center of mass $c = \frac{1}{N} \sum p_i$ . Predicting the relative offset $\delta_i = c - p_i$ from a pixel is typically treated as offset regression [31, 41, 55, 43]. But a direct regression limits the ability of the system to represent uncertainty, and suffers from the typical problem of "regressing to the mean". A pixel unsure about its instance centroid location might hedge by pointing between multiple candidates, creating spurious peaks and false positives. Moreover, it is impossible to attribute such pixels to object hypotheses during backprojection. We instead frame voting as classification among possible spatial cells where the centroid may reside. The probability histogram produces an explicit distribution for downstream reasoning.
+
+Voting Filter Unlike YOLO [46], which divides up the entire image into a grid of regularly tiled patches, we consider a discretization of the region centered around each pixel. See Fig. 1 (left) for a visual illustration. Consider-
+
+
+Voting filter
+
+
+Instance Mask
+
+
+Ground Truth Assignment
+Figure 3: Voting Filter and ground truth assignment. Left: a toy Voting Filter mapping a $M \times M$ , $M = 9$ region around a pixel to $K = 17$ indices. The discretization is coarser on the periphery, using $3 \times 3$ cells. Middle: an instance mask where the red pixel is the mask centroid. We need to discretize the offset from the blue pixel to the centroid. Right: overlaying the Voting Filter on top of the blue pixel, one sees that the ground truth voting index for the blue pixel is 16.
+
+ing a particular pixel $p_i$ , we map each of the $M \times M$ pixels centered around $p_i$ to $K$ discrete indices. This mapping can be naturally recorded with a translation invariant lookup table of size $M \times M$ . By overlaying the lookup table on top of $p_i$ , the ground truth index for classification can be directly read off from the spatial cell into which the instance centroid falls. We refer to this lookup table as the Voting Filter. Fig. 3 shows a toy example. For stuff pixels that do not belong to any instances, we create an "abstention" label as an extra class, and hence there are in total $K + 1$ classes for the instance voting branch. If the instance centroid falls outside the extent of the Voting Filter, i.e. the pixel is too far away from the centroid, we ignore it during training.
+
+Scale vs. Accuracy Discretization implies a loss of spatial accuracy, but we argue that knowing the exact location of the centroid is not necessary for accurate instance segmentations. What matters is the consensus among pixels that enables backprojection. Large instances can naturally tolerate coarser predictions than small objects, as seen in Fig. 5. We construct the Voting Filter so that the farther the distance from the instance centroid, the larger the spatial cell. A naive evenly spaced grid would have to either be too fine, introducing too many classes for the network to learn and converge, or too coarse to allow accurate predictions for smaller objects. Based on these considerations, we propose a grid of square cells whose size expands radially outward, as shown in Fig. 4. It involves $K = 233$ cells over a region of $M = 243$ pixels applied to images at $1/4$ input resolution, thus covering up to $972 \times 972$ at full resolution.
+
+# 3.3. Voting as Transposed Convolution
+
+The instance voting branch yields a tensor of size $[H, W, K + 1]$ , where $K + 1$ is the number of distinct voting possibilities, including abstention by stuff pixels. We
+
+
+Figure 4: The grid structure of our voting and query filters. It covers $243 \times 243$ pixel area and consists of 233 bins ranging in size of 1, 3, 9, 27 from center to the periphery.
+
+
+
+
+Pixels of a large object need only a rough estimate
+Figure 5: Illustration of voting behavior. The white dot indicates a pixel whose votes we inspect. The cell receiving its highest vote is shown as a white box, second highest as a yellow box. Left: pixels distant from the object center (like the front skier's foot) can afford more slack/spatial uncertainty, voting for larger cells near grid perimeter. Right: pixels closer to object center (and in particular any pixel of a small object, like the far away skier) need more spatial accuracy, voting for small cells near the grid center.
+
+
+Pixels of a small object need to be precise
+
+
+
+use dilated deconvolution and average pooling to aggregate the probabilistic votes to their intended spatial locations.
+
+Recall our toy example in Fig. 3. Say the blue pixel predicts a probability of 0.9 for its instance centroid to fall into cell 16, which consists of 9 pixels. Voting involves two steps: 1) transfer the probability 0.9 to cell 16, and 2) share the vote evenly among the 9 constituent pixels, with each pixel receiving 0.1. We implement step 1 with dilated deconvolution (deconv), and step 2 with average pooling.
+
+Transposed convolution, or deconvolution by convention, can be understood as the backward pass of convolution. A conv kernel aggregates spatial information to a single point, whereas a deconv kernel spreads a point signal across multiple spatial locations. It is most often used for feature upsampling, where the parameters of the kernel are learned. For the purpose of vote aggregation, however, we fix the deconv kernel parameters to 1-hot across each channel that marks the target location. Dilation in this case enables a pixel to cast its vote to faraway points.
+
+Our toy Voting Filter in Fig. 3 discretizes the $9 \times 9$ region into inner $3 \times 3$ cells of side length 1, encircled by outer $3 \times 3$ cells of side length 3, hence $K = 9 + 8 = 17$ voting classes. At step 1, after discarding abstention votes, we split the $[H, W, 17]$ tensor along channels into two components of size $[H, W, 9]$ and $[H, W, 8]$ , and apply two deconv kernels of size $[C_{\mathrm{in}} = 9, C_{\mathrm{out}} = 1, H = 3, W = 3]$ with dilation 1
+
+
+
+
+Figure 6: Query Filter and backprojection. Top: The Query Filter is a spatial inversion of the Voting Filter, and the indices of the two filters are symmetric about the center (highlighted here for a few corresponding pairs of cells in the two filters). The Voting Filter captures the spatial relationship between a pixel and the surrounding centroid, whereas the Query Filter represents the dual relationship between a centroid and surrounding pixels; Bottom: The Query Filter is convolved within each peak region to produce instance masks. For simplicity a peak region here is a single red point, but is in general a connected component of pixels, and hence the need for convolving the Query Filter. -1 denotes pixels whose argmax voting decision is abstention i.e. "stuff" pixels. Votes that are not cast for a peak region (where the votes and the Query Filter disagree) are ignored.
+
+
+
+and $[C_{\mathrm{in}} = 8, C_{\mathrm{out}} = 1, H = 3, W = 3]$ with dilation 3 to produce two heatmaps $H_{dilate1}, H_{dilate3}$ , both of size $[H, W, 1]$ .
+
+After step 1, all the votes have been sent to the center of each spatial cell. At step 2, we smooth out the votes evenly within each cell. Smoothing in this particular case is exactly equivalent to average pooling. We apply $3 \times 3$ average pooling on $H_{dilate3}$ , and $1 \times 1$ average pooling on $H_{dilate1}$ (an identity operation). The two heatmaps are then summed together to complete the final voting heatmap. The voting process for other instantiations of a Voting Filter can be done analogously.
+
+Peaks in the voting heatmap correspond to consensus detections, and we use a simple strategy of thresholding followed by connected components to locate the peaks. We define a peak region, which identifies a hypothesized instance, as a connected component of pixels that survive after thresholding the voting heatmap. We set the threshold value to 4.0 for both COCO and Cityscapes. See Fig. 7.
+
+# 3.4. Backprojection as Filtering
+
+Backprojection aims to determine for every peak region the pixels that favor that particular maximum above all others. To do this we make use of the Query Filter. Recall that the Voting Filter records the class label a pixel aligned at the center of the filter should predict given possible centroid locations in the surrounding region. The query filter is the spatial inversion of the Voting Filter. It records the class
+
+labels the surrounding pixels should have predicted in order to have voted for the instance centroid being at the center of the filter placement. This dual relationship is shown in the top row of Fig. 6.
+
+During backprojection, we first obtain the argmax voting index at each pixel. This is a tensor of size $[H, W, 1]$ . Then, within a peak region, we convolve the Query Filter and perform equality comparison against the argmax voting indices to pick up all the pixels whose strongest vote falls within this peak region. See Fig. 6, bottom row. This operation is parallelizable and can be implemented to run on a GPU. In practice, we extend the equality comparison to top 3 votes rather than just the argmax vote, so that a pixel whose argmax decision is wrong is not completely abandoned. If a single pixel is contested by multiple peaks, the pixel is assigned to the peak region whose total vote count is the highest. In the edge case where multiple peaks are within the same spatial cell with respect to the pixel, the pixel goes to the spatially nearest peak (this distance is measured from the center of the enclosing bounding box of the peak region to the pixel).
+
+# 3.5. Segment Loss Normalization
+
+Training a network to solve pixel labeling problems such as ours usually involves averaging the per-pixel cross entropy loss over an image [39]. Each pixel contributes equally to the training and the notion of instance is absent. This is often the case for semantic segmentation, since the annotations specify only the categories. For Panoptic Segmentation, however, each instance segment is given equal weight during evaluation and training with the default pixel-averaged loss would put emphasis primarily on large instances, neglecting small objects that are numerous and critical. Therefore, we need to design an objective function that balances the loss across instances. Let $a_{i}$ denote the area of the mask segment to which a pixel $p_i$ belongs. The training losses for both semantic and voting branches are normalized to be
+
+$$
+L = \frac {1}{\sum_ {i} w _ {i}} \sum_ {i} w _ {i} \log p \left(y _ {i} \mid p _ {i}\right) \tag {1}
+$$
+
+where $y_{i}$ is the ground truth semantic/voting label, and $w_{i} = \frac{1}{a_{i}^{\lambda}}$ . $\lambda$ controls the strength of normalization. When $\lambda = 0$ , $w_{i} = 1$ , we get back the default pixel-averaged loss. When $\lambda = 1$ , we divide the summed loss from each segment by the segment area, so that all segments would contribute equally to the training. $\lambda = 0.5$ could be interpreted as a length-based normalization that strikes a middle ground between pixel-averaged loss and full segment normalized loss. Note that stuff and thing segments are treated identically. The final loss is the sum of semantic segmentation loss and voting loss $L_{\mathrm{total}} = L_{\mathrm{sem}} + L_{\mathrm{vote}}$ . In Sec. 4, we demonstrate through ablation experiments that segment
+
+loss normalization significantly improves performance on both COCO and Cityscapes.
+
+# 3.6. Determining Object Categories
+
+Once an instance mask is obtained from backprojection, we predict its category by taking the majority decision made by the semantic segmentation branch in the masked region. This strategy is similar to the one used by [55].
+
+# 4. Experiments
+
+We report results on COCO [35] and Cityscapes [9] Panoptic Segmentation. Since PCV formulates centroid prediction as region classification rather than offset regression, it trades off the upper bound on prediction accuracy for a richer representation. We first conduct oracle experiments to understand the potential of our system. Then we compare our model performance on COCO and Cityscapes validation sets against prior and concurrent works. Ablations focus on the use of different discretization schemes and segment loss normalizations.
+
+# 4.1. Setup
+
+COCO Panoptic Segmentation consists of 80 thing and 53 stuff categories. We use the 2017 split with 118k training images and report results on val and test-dev. Cityscapes includes images of urban street scenes. We use standard train/val split, including 2975 and 500 images, respectively. There are 19 categories, 11 stuff and 8 things. We measure performance by Panoptic Quality (PQ) [24]. PQ can be interpreted as a generalized F1-score that reflects both recognition quality RQ and segmentation quality SQ. In addition to the overall PQ, we include $\mathrm{PQ}^{th}$ and $\mathrm{PQ}^{st}$ and focus in particular on thing category performance.
+
+# 4.2. Oracles
+
+There are no learnable parameters in the vote aggregation and backprojection steps of PCV, and so once the pixelwise classification decisions are made by the backbone net
+
+ | PQ | SQ | RQ | PQth | SQth | RQth | PQst |
| COCO | 1/4 gt | 92.5 | 93.2 | 99.2 | 90.6 | 91.6 | 98.8 | 95.3 |
| default grid | 90.1 | 93.0 | 96.8 | 86.6 | 91.3 | 94.8 | 95.3 |
| simple grid | 79.2 | 92.6 | 85.1 | 68.6 | 90.7 | 75.4 | 95.3 |
| uniform grid | 67.1 | 95.8 | 70.1 | 49.4 | 96.0 | 51.5 | 93.8 |
| Cityscapes | 1/4 gt | 89.4 | 89.8 | 99.6 | 87.1 | 87.7 | 99.4 | 91.0 |
| default grid | 88.6 | 89.7 | 98.8 | 85.4 | 87.4 | 97.6 | 91.0 |
| simple grid | 83.0 | 89.3 | 92.8 | 72.1 | 86.6 | 83.4 | 91.0 |
| uniform grid | 66.1 | 92.6 | 71.8 | 31.8 | 94.3 | 33.4 | 91.0 |
+
+Table 1: Oracle inference on COCO and Cityscapes val using ground truth voting and semantic classification label. '1/4 gt' is the performance upper bound when the output is at 1/4 of input resolution, and the default discretization is behind by a small gap.
+
+work, the subsequent inference is deterministic. Therefore we perform oracle experiments that feed into the inference pipeline ground truth classification labels for both the voting and semantic branches. As seen in Table 1, given our default discretization scheme, PCV oracle achieves performance close to the upper bound on both COCO and Cityscapes validation sets. The remaining gaps in PQ are mostly due to small instances of extremely high occlusion and instances with colliding centroids. We also show 2 more oracle results: a simple radially expanding grid with 41 voting classes performs worse than the default grid with 233 voting classes. A uniform grid with evenly-spaced bins of size 15 and total Voting Filter side length 225 does the worst. Even though it has roughly the same number of voting classes as our default grid, the even spacing severely degrades performance on small instances.
+
+# 4.3. Main Results and Ablations
+
+For Cityscapes training we use batch size 16 over 8 GPUs and crop input images to a uniform size of $1536 \times 1024$ . We apply random horizontal flipping and randomly scale the size of the crops from 0.5 to 2. The model is trained for 65 epochs (12k iterations) with learning rate set initially at 0.01, dropped by 10x at 9000 iterations. We use SGD with momentum 0.9 and weight decay set to 1e-4.
+
+For COCO, we use standard Mask R-CNN $1 \times$ training schedule and hyperparameters. Input images are resized to have length 800 on the shorter side and length not exceeding 1333 on the longer. Resizing is consistent for both training and testing. Left-right flipping is the only data augmentation used. We use SGD with momentum 0.9 and set the initial learning rate at 0.0025, weight decay at 0.0001. The model is trained on 8 GPUs with batch size of 16 for a total of around 13 epochs (90k iterations). Learning rate decays by a factor of 10 at 60k and 80k iterations. BatchNorm [22] layers in ResNet are frozen in our current setup.
+
+Following [23, 54], for stuff predictions we filter out small predicted segments to reduce false positives. The thresholds are set at areas of 4096 pixels for COCO and 2048 pixels for Cityscapes.
+
+Main Results We compare the performance of PCV against representative methods using different approaches. On both COCO and Cityscapes, PCV still lags behind leading methods that leverage Mask RCNN for instance segmentation. On the challenging COCO benchmark, PCV outperforms all other proposal free methods as well as [53] which uses RetinaNet for object detection. Results on Cityscapes are shown in Table 4. Qualitative results are displayed in Fig 8 and 9.
+
+Ablation: discretization We explore the influence of discretization by comparing a model using a simple 40-cell
+
+
+
+
+
+
+
+
+Figure 7: Illustration of instance mask inference in PCV. Left to right: input image, voting heatmap, detected peak regions (random colors assigned to each peak); six masks resulting from backprojection from color-matching regions.
+
+
+
+
+
+ | PQ | SQ | RQ | PQth | SQth | RQth | PQst |
| λ=0 | 32.9 | 77.2 | 40.5 | 33.0 | 78.0 | 40.3 | 32.6 |
| λ=0.5 | 37.5 | 77.7 | 47.2 | 40.0 | 78.4 | 50.0 | 33.7 |
| λ=1.0 | 31.8 | 74.7 | 41.3 | 33.9 | 75.1 | 44.0 | 28.6 |
+
+(a) Segment Loss Normalization: results on COCO val with various $\lambda$ that controls the normalization strength. $\lambda = 0.5$ improves $\mathrm{PQ}^{th}$ by 7 points over the commonly used pixel-averaged loss.
+
+ | PQ | SQ | RQ | PQth | SQth | RQth | PQst |
| default grid | 37.5 | 77.7 | 47.2 | 40.0 | 78.4 | 50.0 | 33.7 |
| simple grid | 33.3 | 77.2 | 41.8 | 32.8 | 77.4 | 40.9 | 34.1 |
+
+(b) Impact of Discretization: consistent with oracle results in Table 1, the simple grid is too coarse for accurate localizations and the default grid leads on $\mathrm{PQ^{th}}$ by 7.17 points on COCO val.
+
+Table 2: Ablations on segment loss normalization and impact of discretization.
+
+ | Methods | Backbone | Split | PQ | SQ | RQ | \( PQ^{th} \) | \( SQ^{th} \) | \( RQ^{th} \) | \( PQ^{st} \) | \( SQ^{st} \) | \( RQ^{st} \) |
| Mask R-CNN | PFPN [23] (1x) | ResNet 50 | val | 39.4 | 77.8 | 48.3 | 45.9 | 80.9 | 55.4 | 29.6 | 73.3 | 37.7 |
| PFPN [23] (3x) | ResNet 50 | val | 41.5 | 79.1 | 50.5 | 48.3 | 82.2 | 57.9 | 31.2 | 74.4 | 39.4 |
| UPSNet [54] (1x) | ResNet 50 | val | 42.5 | 78.0 | 52.5 | 48.6 | 79.4 | 59.6 | 33.4 | 75.9 | 41.7 |
| Single Stage Detection | SSPS [53] | ResNet 50 | val | 32.4 | - | - | 34.8 | - | - | 28.6 | - | - |
| SSPS [53] | ResNet 50 | test-dev | 32.6 | 74.3 | 42.0 | 35.0 | 74.8 | 44.8 | 29.0 | 73.6 | 37.7 |
| Proposal-Free | AdaptIS [50] | ResNet 50 | val | 35.9 | - | - | 40.3 | - | - | 29.3 | - | - |
| DeeperLab [55] | Xception 71 | val | 33.8 | - | - | - | - | - | - | - | - |
| DeeperLab [55] | Xception 71 | test-dev | 34.3 | 77.1 | 43.1 | 37.5 | 77.5 | 46.8 | 29.6 | 76.4 | 37.4 |
| SSAP [16] | ResNet 101 | val | 36.5 | - | - | - | - | - | - | - | - |
| SSAP [16] | ResNet 101 | test-dev | 36.9 | 80.7 | 44.8 | 40.1 | 81.6 | 48.5 | 32.0 | 79.4 | 39.3 |
| Ours (1x) | ResNet 50 | val | 37.5 | 77.7 | 47.2 | 40.0 | 78.4 | 50.0 | 33.7 | 76.5 | 42.9 |
| Ours (1x) | ResNet 50 | test-dev | 37.7 | 77.8 | 47.3 | 40.7 | 78.7 | 50.7 | 33.1 | 76.3 | 42.0 |
+
+Table 3: Comparisons on COCO. PCV outperforms proposal-free and single-state detection methods.
+
+ | PQ | \( PQ^{th} \) | \( PQ^{st} \) | mIoU |
| DIN [1] | 53.8 | 42.5 | 62.1 | 80.1 |
| UPSNet [54] | 59.3 | 54.6 | 62.7 | 75.2 |
| PFPN [23] | 58.1 | 52.0 | 62.5 | 75.7 |
| AdaptIS [50] | 59.0 | 55.8 | 61.3 | 75.3 |
| SSAP [16] | 58.4 | 50.6 | - | - |
| Ours | 54.2 | 47.8 | 58.9 | 74.1 |
+
+Table 4: Results on Cityscapes val using ResNet 50
+
+ | Input Size | Backbone | Voting | Backproj. | Total |
| COCO | 800 × 1333 | 93.4 | 1.3 | 81.8 | 176.5 |
| Cityscapes | 1024 × 2048 | 115.6 | 2.8 | 64.4 | 182.8 |
+
+Table 5: runtime benchmark using GTX 1080 Ti (unit: ms)
+
+grid against the default model using a 233-cell grid. The results on COCO val set are presented in Table 2b. The full grid outperforms the simplistic grid and this agrees with our observation made earlier for the oracle experiments. The
+
+simple grid might make the learning easier but sacrifices the prediction accuracy due to coarse discretization.
+
+Ablation: segment loss normalization We hypothesize that the contribution from each pixel to the final training loss should be normalized by a function of the segment area so that large instances would not eclipse the attention paid to small objects. We train PCV on COCO with $\lambda$ set at 0, 0.5, 1. As expected, pixel-averaged loss with $\lambda = 0$ dilutes the focus on small objects and drags down PQ things, while a full area based segment normalization with $\lambda = 1$ causes severe degradation on stuff PQ. Length-based normalization with $\lambda$ set at 0.5 achieves the best performance on both things and stuff.
+
+Timing Table 5 examines PCV runtime, benchmarked on a GTX 1080 Ti and averaged over Cityscapes and COCO val. Backprojection filtering relies on an unoptimized indexing implementation. PCV runs at a competitive 5fps.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 8: Results of PCV on Cityscapes val and COCO test-dev.
+
+
+
+
+
+
+
+
+
+
+Figure 9: Results of PCV on images from COCO val2017.
+
+
+
+
+
+
+
+
+
+# 5. Conclusion
+
+We propose a novel approach to panoptic segmentation that is entirely pixel-driven. Different from region-based top-down object detection approaches, Pixel Consensus Voting elevates pixels to a first-class role; each pixel provides evidence for presence and location of object(s) it may belong to. It affords efficient inference, thanks to our filtering-based mechanism for vote aggregation and backprojection. PCV is an alternative to region-based methods, that can be trained efficiently using only per-pixel classification losses. It is significantly simpler than current, highly engineered state-of-the-art panoptic segmentation models.
+
+On Cityscapes and COCO panoptic segmentation benchmarks, PCV achieves competitive results, both qualitatively and on standard panoptic segmentation metrics. This is promising given the engineering effort that, since the introduction of R-CNN [17], has been poured into regionproposal driven systems over the past five years. Weighting the scientific potential of a new approach against a backdrop of a highly engineered and optimized established technique is not a task for which benchmarks alone suffice.
+
+Our results demonstrate that the Generalized Hough transform, a historical competitor to the sliding window detection paradigm, is again viable once combined with deep
+
+neural networks. This should be a call for future research exploring new ways of interconnecting traditional computer vision techniques with deep learning. For PCV specifically, there is clear potential to explore improved voting and inference protocols. This includes voting in higher dimensions (e.g., scale-space) and alternative models of interaction between instance detection and category assignments.
+
+# 6. Acknowledgements
+
+We would like to thank Deva Ramanan for discussions and feedback. The work was in part supported by the DARPA L2M award FA8750-18-2-0126, the DARPA GARD award HR00112020003, and AFOSR award FF9950-18-1-0166 (MADlab).
+
+# References
+
+[1] Anurag Arnab and Philip HS Torr. Pixelwise instance segmentation with a dynamically instantiated network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 441-450, 2017.
+[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.
+
+[3] Dana H Ballard. Generalizing the hough transform to detect arbitrary shapes. Pattern recognition, 13(2):111-122, 1981.
+[4] Lubomir Bourdev and Jitendra Malik. Poselets: Body part detectors trained using 3d human pose annotations. In 2009 IEEE 12th International Conference on Computer Vision, pages 1365-1372. IEEE, 2009.
+[5] Holger Caesar, Jasper Uijlings, and Vittorio Ferrari. Cocosstuff: Thing and stuff classes in context. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1209-1218, 2018.
+[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. IEEE transactions on pattern analysis and machine intelligence, 40(4):834-848, 2017.
+[7] Xinlei Chen, Ross Girshick, Kaiming He, and Piotr Dólar. Tensormask: A foundation for dense object segmentation. arXiv preprint arXiv:1903.12174, 2019.
+[8] Bowen Cheng, Maxwell D. Collins, Yukun Zhu, Ting Liu, Thomas S. Huang, Hartwig Adam, and Liang-Chieh Chen. Panoptic-deeplab, 2019.
+[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, pages 3213-3223, 2016.
+[10] Bert De Brabandere, Davy Neven, and Luc Van Gool. Semantic instance segmentation with a discriminative loss function. arXiv preprint arXiv:1708.02551, 2017.
+[11] Daan de Geus, Panagiotis Meletis, and Gijs Dubbelman. Fast panoptic segmentation network. arXiv preprint arXiv:1910.03892, 2019.
+[12] Richard O Duda and Peter E Hart. Use of the hough transformation to detect lines and curves in pictures. Technical report, Sri International Menlo Park Ca Artificial Intelligence Center, 1971.
+[13] 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.
+[14] Pedro F Felzenszwalb, Ross B Girshick, David McAllester, and Deva Ramanan. Object detection with discriminatively trained part-based models. IEEE transactions on pattern analysis and machine intelligence, 32(9):1627-1645, 2009.
+[15] Juergen Gall, Angela Yao, Nima Razavi, Luc Van Gool, and Victor Lempitsky. Hough forests for object detection, tracking, and action recognition. IEEE transactions on pattern analysis and machine intelligence, 33(11):2188-2202, 2011.
+[16] Naiyu Gao, Yanhu Shan, Yupei Wang, Xin Zhao, Yinan Yu, Ming Yang, and Kaiqi Huang. Ssap: Single-shot instance segmentation with affinity pyramid. In Proceedings of the IEEE International Conference on Computer Vision, pages 642-651, 2019.
+[17] Ross Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Rich feature hierarchies for accurate object detection
+
+and semantic segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 580-587, 2014.
+[18] Ross Girshick, Jamie Shotton, Pushmeet Kohli, Antonio Criminisi, and Andrew Fitzgibbon. Efficient regression of general-activity human poses from depth images. In 2011 International Conference on Computer Vision, pages 415–422. IEEE, 2011.
+[19] 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.
+[20] 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.
+[21] 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.
+[22] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015.
+[23] Alexander Kirillov, Ross Girshick, Kaiming He, and Piotr Dólar. Panoptic feature pyramid networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6399-6408, 2019.
+[24] Alexander Kirillov, Kaiming He, Ross Girshick, Carsten Rother, and Piotr Dollar. Panoptic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9404-9413, 2019.
+[25] 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.
+[26] Shu Kong and Charless C Fowlkes. Recurrent pixel embedding for instance grouping. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9018-9028, 2018.
+[27] Bastian Leibe, Ales Leonardis, and Bernt Schiele. Combined object categorization and segmentation with an implicit shape model. In Workshop on statistical learning in computer vision, ECCV, volume 2, page 7, 2004.
+[28] Bastian Leibe, Ales Leonardis, and Bernt Schiele. Robust object detection with interleaved categorization and segmentation. International journal of computer vision, 77(1-3):259-289, 2008.
+[29] Jie Li, Allan Raventos, Arjun Bhargava, Takaaki Tagawa, and Adrien Gaidon. Learning to fuse things and stuff. arXiv preprint arXiv:1812.01192, 2018.
+[30] Yanwei Li, Xinze Chen, Zheng Zhu, Lingxi Xie, Guan Huang, Dalong Du, and Xingang Wang. Attention-guided unified network for panoptic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7026-7035, 2019.
+[31] 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, 2017.
+[32] Ita Lifshitz, Ethan Fetaya, and Shimon Ullman. Human pose estimation using deep consensus voting. In European Conference on Computer Vision, pages 246-260. Springer, 2016.
+[33] 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, pages 2117-2125, 2017.
+[34] 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, pages 2980-2988, 2017.
+[35] 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.
+[36] Huanyu Liu, Chao Peng, Changqian Yu, Jingbo Wang, Xu Liu, Gang Yu, and Wei Jiang. An end-to-end network for panoptic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6172-6181, 2019.
+[37] Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, and Alexander C Berg. Ssd: Single shot multibox detector. In European conference on computer vision, pages 21-37. Springer, 2016.
+[38] 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.
+[39] 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.
+[40] Subhransu Maji and Jitendra Malik. Object detection using a max-margin hough transform. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pages 1038-1045. IEEE, 2009.
+[41] Davy Neven, Bert De Brabandere, Marc Proesmans, and Luc Van Gool. Instance segmentation by jointly optimizing spatial embeddings and clustering bandwidth. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8837-8845, 2019.
+[42] Alejandro Newell, Zhiao Huang, and Jia Deng. Associative embedding: End-to-end learning for joint detection and grouping. In Advances in Neural Information Processing Systems, pages 2277-2287, 2017.
+[43] David Novotny, Samuel Albanie, Diane Larlus, and Andrea Vedaldi. Semi-convolutional operators for instance segmentation. In Proceedings of the European Conference on Computer Vision (ECCV), pages 86–102, 2018.
+[44] George Papandreou, Tyler Zhu, Liang-Chieh Chen, Spyros Gidaris, Jonathan Tompson, and Kevin Murphy. Personlab: Person pose estimation and instance segmentation with a
+
+bottom-up, part-based, geometric embedding model. In Proceedings of the European Conference on Computer Vision (ECCV), pages 269-286, 2018.
+[45] Charles R Qi, Or Litany, Kaiming He, and Leonidas J Guibas. Deep hough voting for 3d object detection in point clouds. arXiv preprint arXiv:1904.09664, 2019.
+[46] Joseph Redmon and Ali Farhadi. Yolo9000: better, faster, stronger. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 7263-7271, 2017.
+[47] Mengye Ren and Richard S Zemel. End-to-end instance segmentation with recurrent attention. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6656-6664, 2017.
+[48] 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.
+[49] Bernardino Romera-Paredes and Philip Hilaire Sean Torr. Recurrent instance segmentation. In European conference on computer vision, pages 312-329. Springer, 2016.
+[50] Konstantin Sofiuk, Olga Barinova, and Anton Konushin. Adaptis: Adaptive instance selection network. In Proceedings of the IEEE International Conference on Computer Vision, pages 7355-7363, 2019.
+[51] Régis Vaillant, Christophe Monrocq, and Yann Le Cun. Original approach for the localisation of objects in images. IEE Proceedings-Vision, Image and Signal Processing, 141(4):245-250, 1994.
+[52] Paul Viola, Michael Jones, et al. Rapid object detection using a boosted cascade of simple features. CVPR (1), 1(511-518):3, 2001.
+[53] Mark Weber, Jonathon Luiten, and Bastian Leibe. Single-shot panoptic segmentation. arXiv preprint arXiv:1911.00764, 2019.
+[54] Yuwen Xiong, Renjie Liao, Hengshuang Zhao, Rui Hu, Min Bai, Ersin Yumer, and Raquel Urtasun. Upsnet: A unified panoptic segmentation network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8818-8826, 2019.
+[55] Tien-Ju Yang, Maxwell D Collins, Yukun Zhu, Jyh-Jing Hwang, Ting Liu, Xiao Zhang, Vivienne Sze, George Papandreou, and Liang-Chieh Chen. Deeperlab: Single-shot image parser. arXiv preprint arXiv:1902.05093, 2019.
+[56] Fisher Yu and Vladlen Koltun. Multi-scale context aggregation by dilated convolutions. arXiv preprint arXiv:1511.07122, 2015.
+[57] 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.
\ No newline at end of file
diff --git a/pixelconsensusvotingforpanopticsegmentation/images.zip b/pixelconsensusvotingforpanopticsegmentation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..307f86b9e9c7852cf39ea5686dbb06eadd236db7
--- /dev/null
+++ b/pixelconsensusvotingforpanopticsegmentation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d1af4a478d3aff7929a30ef35266a462a975c6d084abaeb6c6d5dfd60c48bd72
+size 696700
diff --git a/pixelconsensusvotingforpanopticsegmentation/layout.json b/pixelconsensusvotingforpanopticsegmentation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..0e9f7c235c220399c44fac34b8a172497e35b810
--- /dev/null
+++ b/pixelconsensusvotingforpanopticsegmentation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a34b6a900ce41d6a85674e5bb852031ed071c6a19315c333320bb544bea935b0
+size 420950
diff --git a/plugandplayalgorithmsforlargescalesnapshotcompressiveimaging/3d3cc22a-0478-4fa4-94dd-c7543524e04b_content_list.json b/plugandplayalgorithmsforlargescalesnapshotcompressiveimaging/3d3cc22a-0478-4fa4-94dd-c7543524e04b_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..758625a91e5bc5460264bf0c6ff57d19d09167ea
--- /dev/null
+++ b/plugandplayalgorithmsforlargescalesnapshotcompressiveimaging/3d3cc22a-0478-4fa4-94dd-c7543524e04b_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e130ddfac47fafe73283730435cb60e6fdb3e64366fee8dc0a65fa51784f1f71
+size 98363
diff --git a/plugandplayalgorithmsforlargescalesnapshotcompressiveimaging/3d3cc22a-0478-4fa4-94dd-c7543524e04b_model.json b/plugandplayalgorithmsforlargescalesnapshotcompressiveimaging/3d3cc22a-0478-4fa4-94dd-c7543524e04b_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..b647a67a362f2d033e5d45dea2f61fc91092355f
--- /dev/null
+++ b/plugandplayalgorithmsforlargescalesnapshotcompressiveimaging/3d3cc22a-0478-4fa4-94dd-c7543524e04b_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:69191f8a07b822aae0faf0ea547f3fd54efbaf18f8e6f99968c44efdcc9b68e5
+size 128427
diff --git a/plugandplayalgorithmsforlargescalesnapshotcompressiveimaging/3d3cc22a-0478-4fa4-94dd-c7543524e04b_origin.pdf b/plugandplayalgorithmsforlargescalesnapshotcompressiveimaging/3d3cc22a-0478-4fa4-94dd-c7543524e04b_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..974f413d61f542089a7aa87f8d3855c38658fa04
--- /dev/null
+++ b/plugandplayalgorithmsforlargescalesnapshotcompressiveimaging/3d3cc22a-0478-4fa4-94dd-c7543524e04b_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b390914c5acc3afcb838544cb88cc0b0c4dd15003d5a1a196eb5628f06b01423
+size 6019849
diff --git a/plugandplayalgorithmsforlargescalesnapshotcompressiveimaging/full.md b/plugandplayalgorithmsforlargescalesnapshotcompressiveimaging/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..a330565a805056975cd57e782a41958d06ad8fad
--- /dev/null
+++ b/plugandplayalgorithmsforlargescalesnapshotcompressiveimaging/full.md
@@ -0,0 +1,528 @@
+# Plug-and-Play Algorithms for Large-scale Snapshot Compressive Imaging
+
+Xin Yuan
+
+Bell Labs
+
+NJ USA
+
+xyuan@bell-labs.com
+
+Yang Liu
+
+MIT
+
+MA USA
+
+yliu12@mit.edu
+
+Jinli Suo
+
+Qionghai Dai
+
+Dept. of Automation & Institute for Brain and
+
+Cognitive Sciences, Tsinghua Univ., Beijing China
+
+{jlsuo, daiqh}@tsinghua.edu.cn
+
+# Abstract
+
+Snapshot compressive imaging (SCI) aims to capture the high-dimensional (usually 3D) images using a 2D sensor (detector) in a single snapshot. Though enjoying the advantages of low-bandwidth, low-power and low-cost, applying SCI to large-scale problems (HD or UHD videos) in our daily life is still challenging. The bottleneck lies in the reconstruction algorithms; they are either too slow (iterative optimization algorithms) or not flexible to the encoding process (deep learning based end-to-end networks). In this paper, we develop fast and flexible algorithms for SCI based on the plug-and-play (PnP) framework. In addition to the widely used PnP-ADMM method, we further propose the PnP-GAP (generalized alternating projection) algorithm with a lower computational workload and prove the global convergence of PnP-GAP under the SCI hardware constraints. By employing deep denoising priors, we first time show that PnP can recover a UHD color video $(3840\times 1644\times 48$ with PNSR above 30dB) from a snapshot 2D measurement. Extensive results on both simulation and real datasets verify the superiority of our proposed algorithm.
+
+# 1. Introduction
+
+Computational imaging [1, 31] constructively combines optics, electronics and algorithms for optimized performance [4, 6, 32] or to provide new abilities [5, 25, 35, 43] to imaging systems. One important branch of computational imaging with promising applications is snapshot compressive imaging (SCI) [23, 45], which utilized a two-dimensional (2D) camera to capture 3D video or spectral data. Different from conventional cameras, such imaging systems adopt sampling on a set of consecutive images—video frames (e.g., CACTI [23, 60]) or spectral channels (e.g., CASSI [46])—in accordance with the sensing matrix and integrating these sampled signals along time or spectrum to obtain the final compressed measurements. With this technique, SCI systems [12, 15, 36, 42, 45, 46, 60] can capture the high-speed motion [40, 41, 61, 62, 68, 70] and
+
+high-resolution spectral information [28, 69, 37] but with low memory, low bandwidth, low power and potentially low cost. In this work, we focus on video SCI reconstruction.
+
+In parallel to the hardware development, various algorithms have been employed and developed for SCI reconstruction. In addition to the widely used TwIST [2], Gaussian Mixture Model (GMM) in [49, 50] based algorithms model the pixels within a spatial-temporal patch by a GMM. GAP-TV [53] adopts the idea of total variance minimization under the generalized alternating projection (GAP) [21] framework. Most recently, DeSCI proposed in [22] has led to state-of-the-art results. However, the slow speed of DeSCI precludes its real applications, especially to the HD $(1280 \times 720)$ , FHD $(1920 \times 1080)$ or UHD $(3840 \times 1644$ in Fig. 1 and $3840 \times 2160$ in Fig. 5) videos, which are getting popular in our daily life. Recall that DeSCI needs more than one hour to reconstruct a $256 \times 256 \times 8$ video from a snapshot measurement. GAP-TV, by contrast, as a fast algorithm, cannot provide good reconstruction to be used in real applications (in general, this needs the PSNR $\geq 30\mathrm{dB}$ ). An alternative solution is to train an end-to-end network [26, 34] to reconstruct the videos for the SCI system. On one hand, this approach can finish the task within seconds and by appropriate design of multiple GPUs, an end-to-end sampling and reconstruction framework can be built. On the other hand, this method loses the robustness of the network since whenever the sensing matrix (encoding process) changes, a new network has to be re-trained. Moreover, it cannot be readily used in adaptive sensing [70].
+
+Therefore, it is desirable to devise an efficient and flexible algorithm for SCI reconstruction, especially for large-scale problems. This will pave the way of applying SCI in our daily life. In order to solve the trilemma of speed, accuracy and flexibility for SCI reconstruction, this paper makes the following contributions:
+
+- Inspired by the plug-and-play (PnP) alternating direction method of multiplier (ADMM) [9] framework, we extend PnP-ADMM to SCI and show that PnP-ADMM converges to a fixed point by considering the hardware constraints and the special structure of the sensing matrix [18] in SCI.
+
+
+Snapshot Bayer measurement
+
+
+Snapshot Bayer RGB/grayscale measurement
+
+
+GAP-TV (25.08 dB, 0.8475)
+
+
+Ground truth (frame #46/48)
+
+
+PnP-FFDNet (32.49 dB, 0.9252)
+Figure 1. Sensing process of video SCI (left) and the reconstruction results using the proposed PnP-FFDNet (bottom-right). The captured image (middle-top) size is UHD $(3840 \times 1644)$ and 48 frames are recovered from a snapshot measurement. GAP-TV (top-right) takes 180 mins and PnP-FFDNet takes 55 mins for the reconstruction. All other methods are too slow (more than 12 hours) to be used.
+
+- We propose an efficient PnP-GAP algorithm by using various bounded denoisers (Fig. 2) into the GAP [21], which has a lower computational workload than PnP-ADMM. In addition to the fixed point convergence, we further prove that, under proper assumptions, the solution of PnP-GAP will converge to the true signal. To our best knowledge, this is the first global convergence results for SCI and this also holds under the additive white Gaussian noise.
+- By integrating the deep image denoiser, e.g., the fast and flexible FFDNet [74] into PnP-GAP, we show that a FHD video $(1920 \times 1080 \times 24)$ can be recovered from a snapshot measurement (Fig. 5) within 2 minutes with PSNR close to $30\mathrm{dB}$ using a single GPU plus a normal computer. Compared with an end-to-end network [26], dramatic resources have been saved (no re-training is required). This further makes the UHD compression using SCI to be feasible (a $3840 \times 1644 \times 48$ video is reconstructed with PSNR above $30\mathrm{dB}$ in Fig. 1). To our best knowledge, this is the first time that SCI is used in these large-scale problems.
+- We apply our developed PnP algorithms to extensive simulation and real datasets (captured by real SCI cameras) to verify the efficiency and robustness of our proposed algorithms. We show that the proposed algorithm can obtain results on-par with DeSCI but with a significant reduction of computational time.
+
+The rest of this paper is organized as follows. Sec. 2 reviews the mathematical model of video SCI. Sec. 3 develops the PnP-ADMM under the SCI hardware constraints and shows that PnP-ADMM converges to a fixed point. Sec. 4 develops the PnP-GAP algorithm and proves its global convergence. Sec. 5 integrates various denoisers into the PnP framework for SCI reconstruction. Extensive results of both (benchmark and large-scale) simulation and real data are presented in Sec. 6 and Sec. 7 concludes the paper.
+
+
+Performance of plug-and-play denoisers for SCI
+Figure 2. Trade-off of quality and speed of various plug-and-play denoising algorithms for SCI reconstruction.
+
+Related Work SCI systems have been developed to capture 3D spectral images [8, 37, 69], videos [15, 33, 23, 25, 36, 40, 41, 43, 60, 67], high dynamic range [52], depth [24, 58, 66] and polarization [44] images, etc. From the algorithm side, in addition to sparsity [55, 65, 57, 59, 63, 54, 75, 71, 72] based algorithms, GMM [49, 50, 56] and GAP-TV [53] have been proposed. As mentioned above, DeSCI [22] has led to state-of-the-art results. Inspired by deep learning on image restoration [73], researchers have started using deep learning in computational imaging [16, 19, 20, 30, 39, 29, 64]. Some networks have been proposed for SCI reconstruction [26, 28, 34, 51]. Different from these methods, in this work, we integrate various denoisers into PnP framework [9, 38] for SCI reconstruction, thus to provide efficient and flexible algorithms for SCI. Our PnP algorithms can not only provide excellent results but also are robust to different coding process and thus can be used in adaptive sensing.
+
+# 2. Mathematical Model of SCI
+
+As depicted in Fig. 1, in the video SCI system (e.g., CACTI) [23], consider that a $B$ -frame video $\mathbf{X} \in \mathbb{R}^{n_x \times n_y \times B}$ is modulated and compressed by $B$ sensing matrices (masks) $\mathbf{C} \in \mathbb{R}^{n_x \times n_y \times B}$ , and the measurement frame $\mathbf{Y} \in \mathbb{R}^{n_x \times n_y}$ can be expressed as [23, 60]
+
+$$
+\boldsymbol {Y} = \sum_ {b = 1} ^ {B} \boldsymbol {C} _ {b} \odot \boldsymbol {X} _ {b} + \boldsymbol {Z}, \tag {1}
+$$
+
+where $Z \in \mathbb{R}^{n_x \times n_y}$ denotes the noise; $C_b = C(:, :, b)$ and $X_b = X(:, :, b) \in \mathbb{R}^{n_x \times n_y}$ represent the $b$ -th sensing matrix (mask) and the corresponding video frame, respectively; $\odot$ denotes the Hadamard (element-wise) product. Mathematically, the measurement in (1) can be expressed by
+
+$$
+\boldsymbol {y} = \boldsymbol {H} \boldsymbol {x} + \boldsymbol {z}, \tag {2}
+$$
+
+where $\pmb{y} = \operatorname{Vec}(\pmb{Y}) \in \mathbb{R}^{n_x n_y}$ and $\pmb{z} = \operatorname{Vec}(\pmb{Z}) \in \mathbb{R}^{n_x n_y}$ . Correspondingly, the video signal $\pmb{x} \in \mathbb{R}^{n_x n_y B}$ is
+
+$$
+\boldsymbol {x} = \operatorname {V e c} (\boldsymbol {X}) = \left[ \operatorname {V e c} \left(\boldsymbol {X} _ {1}\right) ^ {\top}, \dots , \operatorname {V e c} \left(\boldsymbol {X} _ {B}\right) ^ {\top} \right] ^ {\top}. \tag {3}
+$$
+
+Unlike traditional compressive sensing [7, 11], the sensing matrix $\pmb{H} \in \mathbb{R}^{n_x n_y \times n_x n_y B}$ in video SCI is sparse and is a concatenation of diagonal matrices
+
+$$
+\boldsymbol {H} = \left[ \boldsymbol {D} _ {1}, \dots , \boldsymbol {D} _ {B} \right]. \tag {4}
+$$
+
+where $D_{b} = \mathrm{diag}(\mathrm{Vec}(C_{b}))\in \mathbb{R}^{n\times n}$ with $n = n_x n_y$ , for $b = 1,\ldots B$ . Consequently, the sampling rate here is equal to $1 / B$ . It has been proved recently in [17, 18] that the reconstruction error of SCI is bounded even when $B > 1$ .
+
+In the color video case, as shown in Figs. 1, 5 and 7, the raw data captured by the generally used Bayer pattern sensors have "RGGB" channels. Since the mask is imposed on each pixel, the generated measurement can be treated as a grayscale image as in Fig. 6 and when it is shown in color, the demosaicing procedure cannot generate the right color due to mask modulation (Fig. 5). Therefore, during reconstruction, we first recover each of these four channels independently and then perform demosaicing in the reconstructed videos. The final demosaiced RGB video is the desired signal [60].
+
+# 3. Plug-and-Play ADMM for SCI
+
+The inversion problem of SCI can be modeled as
+
+$$
+\hat {\boldsymbol {x}} = \underset {\boldsymbol {x}} {\operatorname {a r g m i n}} f (\boldsymbol {x}) + \lambda g (\boldsymbol {x}), \tag {5}
+$$
+
+where $f(\pmb{x})$ can be seen as the loss of the forward imaging model, i.e., $\| \pmb{y} - \pmb{H}\pmb{x}\|_2^2$ and $g(\pmb{x})$ is a prior being used. This prior is usually playing the role of a regularizer.
+
+# 3.1. Review the Plug-and-Play ADMM in [9]
+
+Via using the ADMM framework [3], by introducing an auxiliary parameter $\pmb{v}$ , the unconstrained optimization in Eq. (5) can be converted into
+
+$$
+(\hat {\boldsymbol {x}}, \hat {\boldsymbol {v}}) = \underset {\boldsymbol {x}, \boldsymbol {v}} {\operatorname {a r g m i n}} f (\boldsymbol {x}) + \lambda g (\boldsymbol {v}), \text {s u b j e c t} \boldsymbol {x} = \boldsymbol {v}. \tag {6}
+$$
+
+This minimization can be solved by the following sequence of sub-problems
+
+$$
+\boldsymbol {x} ^ {(k + 1)} = \operatorname {a r g m i n} _ {\boldsymbol {x}} f (\boldsymbol {x}) + \frac {\rho}{2} \| \boldsymbol {x} - \left(\boldsymbol {v} ^ {(k)} - \frac {1}{\rho} \boldsymbol {u} ^ {(k)}\right) \| _ {2} ^ {2}, \tag {7}
+$$
+
+$$
+\boldsymbol {v} ^ {(k + 1)} = \operatorname {a r g m i n} _ {\boldsymbol {v}} \lambda g (\boldsymbol {v}) + \frac {\rho}{2} \| \boldsymbol {v} - \left(\boldsymbol {x} ^ {(k)} + \frac {1}{\rho} \boldsymbol {u} ^ {(k)}\right) \| _ {2} ^ {2}, \tag {8}
+$$
+
+$$
+\boldsymbol {u} ^ {(k + 1)} = \boldsymbol {u} ^ {(k)} + \rho \left(\boldsymbol {x} ^ {(k + 1)} - \boldsymbol {v} ^ {(k + 1)}\right), \tag {9}
+$$
+
+where the superscript $(k)$ denotes the iteration number.
+
+While in SCI and other inversion problems, $f(\pmb{x})$ is usually a quadratic form and there are various solutions to Eq. (7). In PnP-ADMM, the solution of Eq. (8) is replaced by an off-the-shelf denoising algorithm, to yield
+
+$$
+\boldsymbol {v} ^ {(k + 1)} = \mathcal {D} _ {\sigma} \left(\boldsymbol {x} ^ {(k)} + \frac {1}{\rho} \boldsymbol {u} ^ {(k)}\right). \tag {10}
+$$
+
+where $\mathcal{D}_{\sigma}$ denotes the denoiser being used with $\sigma$ being the standard deviation of the assumed additive white Gaussian noise. In [9], the authors proposed to update the $\rho$ in each iteration by $\rho_{k + 1} = \gamma_k\rho_k$ with $\gamma_{k}\geq 1$ and setting $\sigma_{k} = \sqrt{\lambda / \rho_{k}}$ for the denoiser. In this manner, the author defined the bounded denoiser and proved the fixed point convergence of the PnP-ADMM.
+
+Definition 1. (Bounded Denoiser [9]): A bounded denoiser with a parameter $\sigma$ is a function $\mathcal{D}_{\sigma}:\mathbb{R}^n\to \mathbb{R}^n$ such that for any input $\pmb {x}\in \mathbb{R}^n$
+
+$$
+\frac {1}{n} \| \mathcal {D} _ {\sigma} (\boldsymbol {x}) - \boldsymbol {x} \| _ {2} ^ {2} \leq \sigma^ {2} C, \tag {11}
+$$
+
+for some universal constant $C$ independent of $n$ and $\sigma$ .
+
+With this definition (constraint on the denoiser) and the assumption of $f:[0,1]^n\to \mathbb{R}$ having bounded gradient, which is for any $\pmb {x}\in [0,1]^n$ , there exists $L < \infty$ such that $\| \nabla f(\pmb {x})\| _2 / \sqrt{n}\leq L$ , the authors of [9] have proved that: the iterates of the PnP-ADMM demonstrates a fixed-point convergence. That is, there exists $(\pmb{x}^{*},\pmb{v}^{*},\pmb{u}^{*})$ such that $\| \pmb{x}^{(k)} - \pmb{x}^{*}\|_{2}\rightarrow 0,\| \pmb{v}^{(k)} - \pmb{v}^{*}\|_{2}\rightarrow 0$ , and $\| \pmb{u}^{(k)} - \pmb{u}^{*}\|_{2}\rightarrow 0$ as $k\to \infty$ .
+
+# 3.2. PnP-ADMM for SCI
+
+In SCI, with the model stated in Eq. (2), $\pmb{x} \in \mathbb{R}^{nB}$ , and we consider the loss function $f(\pmb{x})$ as
+
+$$
+f (\boldsymbol {x}) = \frac {1}{2} \| \boldsymbol {y} - \boldsymbol {H} \boldsymbol {x} \| _ {2} ^ {2}. \tag {12}
+$$
+
+Consider all the pixel values are normalized into $[0,1]$ .
+
+Lemma 1. In SCI, the function $f(\pmb{x}) = \frac{1}{2} \| \pmb{y} - \pmb{H}\pmb{x} \|_2^2$ has bounded gradients, i.e. $\| \nabla f(\pmb{x}) \|_2 \leq B \| \pmb{x} \|_2$ .
+
+Proof. The full proof is in the Supplementary Material (SM). Here, we show the key steps. The gradient of $f(x)$ is
+
+$$
+\nabla f (\boldsymbol {x}) = \boldsymbol {H} ^ {\top} \boldsymbol {H} \boldsymbol {x} - \boldsymbol {H} ^ {\top} \boldsymbol {y}, \tag {13}
+$$
+
+where $\pmb{H}$ is a block diagonal matrix of size $n\times nB$ as defined in Eq. (4). $\pmb{H}^{\top}\pmb{y}$ is non-negative due to the fact that both the measurement $\pmb{y}$ and the mask are non-negative in nature, and $\pmb{H}^{\top}\pmb {H}\pmb{x}$ is the weighted sum of the $\pmb{x}$ and $\| H^{\top}H\boldsymbol {x}\|_{2}\leq BC_{\max}\| \boldsymbol {x}\|_{2}$ , where $C_\mathrm{max}$ is the maximum value in the sensing matrix. Usually, the sensing matrix is normalized to [0, 1] and this leads to $C_\mathrm{max} = 1$ and therefore $\| H^{\top}H\pmb {x}\|_{2}\leq B\| \pmb {x}\|_{2}$ .
+
+Furthermore, if the mask element $D_{i,j}$ is drawn from a binary distribution with entries $\{0,1\}$ with a probability of $p_1 \in (0,1)$ being 1, then $\| H^\top H x \|_2 \leq p_1 B \| x \|_2$ with a high probability; usually, $p_1 = 0.5$ and thus $\| H^\top H x \|_2 \leq 0.5 B \| x \|_2$ . $\| H^\top H x \|_2 \leq B \sigma^2 \| x \|_2 \stackrel{\sigma=1}{=} B \| x \|_2$ In the following, we only consider the non-negative mask being normalized to $[0,1]$ in practical systems.
+
+Recall that in (4), $\{D_i\}_{i=1}^B$ is a diagonal matrix and we denote its diagonal elements by
+
+$$
+\boldsymbol {D} _ {i} = \operatorname {d i a g} \left(D _ {i, 1}, \dots , D _ {i, n}\right). \tag {14}
+$$
+
+Thereby, in $\mathrm{SCI}$ , $HH^{\top}$ is diagonal matrix, i.e.
+
+$$
+\boldsymbol {R} = \boldsymbol {H} \boldsymbol {H} ^ {\top} = \operatorname {d i a g} \left(R _ {1}, \dots , R _ {n}\right), \tag {15}
+$$
+
+where $R_{j} = \sum_{b = 1}^{B}D_{i,j}^{2},\forall j = 1,\ldots ,n.$ We define
+
+$$
+R _ {\max } \stackrel {\text {d e f}} {=} \max \left(R _ {1}, \dots , R _ {n}\right) = \lambda_ {\max } \left(\boldsymbol {H} \boldsymbol {H} ^ {\top}\right), \tag {16}
+$$
+
+$$
+R _ {\min } \stackrel {\text {d e f}} {=} \min \left(R _ {1}, \dots , R _ {n}\right) = \lambda_ {\min } \left(\boldsymbol {H} \boldsymbol {H} ^ {\top}\right), \tag {17}
+$$
+
+where $\lambda_{\min}(\cdot)$ and $\lambda_{\max}(\cdot)$ represent the minimum and maximum eigenvalues of the ensured matrix.
+
+Assumption 1. We assume that $\{R_j\}_{j=1}^n > 0$ . This means for each spatial location $j$ , the $B$ -frame modulation masks at this location have at least one non-zero entries. We further assume $R_{\max} > R_{\min}$ .
+
+This assumption makes senses in hardware as we expect at least one out of the $B$ frames is captured for each pixel during the sensing process. Lemma 1 along with the bounded denoiser in Definition 1 give us the following Corollary.
+
+Corollary 1. Consider the sensing model of SCI in (2) and further assume the elements in the sensing matrix satisfying Assumption 1. Given $\{\pmb{H},\pmb{y}\}$ , $\pmb{x}$ is solved iteratively via PnP-ADMM with bounded denoiser, then $\pmb{x}^{(k)}$ and $\pmb{\theta}^{(k)}$ will converge to a fixed point.
+
+Proof. See SM.
+
+
+
+# 4. Plug-and-Play GAP for SCI
+
+In this section, following the GAP algorithm [21] and the above conditions on PnP-ADMM, we propose PnP-GAP for SCI, which as mentioned before, has a lower computational workload (and thus faster) than PnP-ADMM.
+
+# Algorithm 1 Plug-and-Play GAP
+
+Require: $H, y$ .
+
+1: Initial $\pmb{v}^{(0)},\lambda_0,\xi < 1$
+2: while Not Converge do
+3: Update $x$ by Eq. (19).
+4: Update $\pmb{v}$ by denoiser $\pmb{v}^{(k + 1)} = \mathcal{D}_{\sigma_k}(\pmb{x}^{(k + 1)})$
+5: if $\Delta_{k + 1}\geq \eta \Delta_k$ then
+6: $\lambda_{k + 1} = \xi \lambda_{k}$
+7: else
+8: $\lambda_{k + 1} = \lambda_k$
+9: end if
+10: end while
+
+# 4.1. Algorithm
+
+Different from the ADMM in Eq. (6), GAP solves SCI by the following problem
+
+$$
+(\hat {\boldsymbol {x}}, \hat {\boldsymbol {v}}) = \underset {\boldsymbol {x}, \boldsymbol {v}} {\operatorname {a r g m i n}} \frac {1}{2} \| \boldsymbol {x} - \boldsymbol {v} \| _ {2} ^ {2} + \lambda g (\boldsymbol {v}), \text {s . t .} \boldsymbol {y} = \boldsymbol {H} \boldsymbol {x}. \tag {18}
+$$
+
+Similarly to ADMM, the minimizer in Eq. (18) is solved by a sequence of (now 2) subproblems and we again let $k$ denotes the iteration number.
+
+- Solving $\pmb{x}$ : given $\pmb{v}$ , $\pmb{x}^{(k + 1)}$ is updated via an Euclidean projection of $\pmb{v}^{(k)}$ on the linear manifold $\mathcal{M}: \pmb{y} = \pmb{H}\pmb{x}$ ,
+
+$$
+\boldsymbol {x} ^ {(k + 1)} = \boldsymbol {v} ^ {(k)} + \boldsymbol {H} ^ {\top} \left(\boldsymbol {H} \boldsymbol {H} ^ {\top}\right) ^ {- 1} (\boldsymbol {y} - \boldsymbol {H} \boldsymbol {v} ^ {(k)}), \tag {19}
+$$
+
+where as defined in (15), $(\boldsymbol{H}\boldsymbol{H}^{\top})^{-1}$ is fortunately a diagonal matrix and this has been observed and used in a number of SCI inversion problems.
+
+- Solving $\mathbf{v}$ : given $\mathbf{x}$ , updating $\mathbf{v}$ can be seen as an denoising problem and
+
+$$
+\boldsymbol {v} ^ {(k + 1)} = \mathcal {D} _ {\sigma} (\boldsymbol {x} ^ {(k + 1)}). \tag {20}
+$$
+
+Here, various denoiser can be used with $\sigma = \sqrt{\lambda}$ .
+
+We can see that in each iteration, the only parameter to be tuned is $\lambda$ and we thus set $\lambda_{k + 1} = \xi_k\lambda_k$ with $\xi_{k}\leq 1$ . Inspired by the PnP-ADMM, we update $\lambda$ by the following two rules:
+
+a) Monotone update by setting $\lambda_{k + 1} = \xi \lambda_k$ , with $\xi < 1$
+b) Adaptive update by considering the relative residue:
+
+$$
+\Delta_ {k + 1} = \frac {1}{\sqrt {n B}} \left(\| \boldsymbol {x} ^ {(k + 1)} - \boldsymbol {x} ^ {(k)} \| _ {2} + \| \boldsymbol {v} ^ {(k + 1)} - \boldsymbol {v} ^ {(k)} \| _ {2}\right).
+$$
+
+For any $\eta \in [0,1)$ and let $\xi < 1$ be a constant, $\lambda_{k}$ is conditionally updated according to the following settings:
+
+i) If $\Delta_{k + 1}\geq \eta \Delta_k$ , then $\lambda_{k + 1} = \xi \lambda_{k}$
+ii) If $\Delta_{k + 1} < \eta \Delta_k$ , then $\lambda_{k + 1} = \lambda_k$
+
+With this adaptive updating of $\lambda_{k}$ , the full PnP-GAP algorithm for SCI is exhibited in Algorithm 1.
+
+# 4.2. Fixed-point Convergence
+
+In the following, we first prove the fixed point convergence of PnP-GAP and then prove the global convergence in the next subsection. From Eq. (19), we have
+
+$$
+\begin{array}{l} \boldsymbol {H} \boldsymbol {x} ^ {(k + 1)} = \boldsymbol {H} \boldsymbol {v} ^ {(k)} + \boldsymbol {H} \boldsymbol {H} ^ {\top} \left(\boldsymbol {H} \boldsymbol {H} ^ {\top}\right) ^ {- 1} (\boldsymbol {y} - \boldsymbol {H} \boldsymbol {v} ^ {(k)}) \\ = \boldsymbol {H} \boldsymbol {v} ^ {(k)} + \boldsymbol {y} - \boldsymbol {H} \boldsymbol {v} ^ {(k)} (21) \\ = \mathbf {y}. (22) \\ \end{array}
+$$
+
+Similarly, $\pmb{y} = \pmb{H}\pmb{x}^{(k)}$ and this is the key property of GAP and the main difference between GAP and ADMM.
+
+From (19), we have
+
+$$
+\boldsymbol {x} ^ {(k + 1)} - \boldsymbol {x} ^ {(k)} = \boldsymbol {v} ^ {(k)} - \boldsymbol {x} ^ {(k)} + \boldsymbol {H} ^ {\top} (\boldsymbol {H} \boldsymbol {H} ^ {\top}) ^ {- 1} (\boldsymbol {y} - \boldsymbol {H} \boldsymbol {v} ^ {(k)}).
+$$
+
+Following this,
+
+$$
+\begin{array}{l} \left\| \boldsymbol {x} ^ {(k + 1)} - \boldsymbol {x} ^ {(k)} \right\| _ {2} ^ {2} \\ = \left\| \boldsymbol {v} ^ {(k)} + \boldsymbol {H} ^ {\top} \left(\boldsymbol {H} \boldsymbol {H} ^ {\top}\right) ^ {- 1} (\boldsymbol {y} - \boldsymbol {H} \boldsymbol {v} ^ {(k)}) - \boldsymbol {x} ^ {(k)} \right\| _ {2} ^ {2} (23) \\ = \| (\boldsymbol {I} - \boldsymbol {H} ^ {\top} (\boldsymbol {H} \boldsymbol {H} ^ {\top}) ^ {- 1} \boldsymbol {H}) (\boldsymbol {v} ^ {(k)} - \boldsymbol {x} ^ {(k)}) \| _ {2} ^ {2} (24) \\ = \| \boldsymbol {v} ^ {(k)} - \boldsymbol {x} ^ {(k)} \| _ {2} ^ {2} - \| \boldsymbol {R} ^ {- \frac {1}{2}} \boldsymbol {H} (\boldsymbol {v} ^ {(k)} - \boldsymbol {x} ^ {(k)}) \| _ {2} ^ {2} (25) \\ \leq \left(1 - \frac {R _ {\operatorname* {m i n}}}{R _ {\operatorname* {m a x}}}\right) \| \boldsymbol {v} ^ {(k)} - \boldsymbol {x} ^ {(k)} \| _ {2} ^ {2}, (26) \\ \end{array}
+$$
+
+where the last two equations following the results of Lemmas 1 and 2 in the SM. This leads to the convergence result below.
+
+Theorem 1. Consider the sensing model of SCI in (2) and further assume the element in the sensing matrix satisfying Assumption 1. Given $\{\pmb{H},\pmb{y}\}$ , $\pmb{x}$ is solved iteratively via PnP-GAP with bounded denoisers, then $\pmb{x}^{(k)}$ and $\pmb{v}^{(k)}$ will converge to a fixed point.
+
+Proof. The full proof is in the SM and it follows Eq. (26) and one key result is
+
+$$
+\left\| \boldsymbol {\theta} ^ {(k + 1)} - \boldsymbol {\theta} ^ {(k)} \right\| _ {2} ^ {2} \leq 7 n B C \lambda_ {0} \xi^ {k - 1}, \tag {27}
+$$
+
+where $\pmb{\theta}^{(k)} = (\pmb{x}^{(k)},\pmb{v}^{(k)})$ . The other steps follow the proof of Corollary 1.
+
+Remark 1. The above convergence result of PnP-GAP also fits the noisy measurement. In fact, the proof is independent of the noise. This is because the update equation of $\pmb{x}^{(k)}$ always satisfying $\pmb{y} = \pmb{H}\pmb{x}^{(k)}$ . Consider the noisy measurement, i.e., $\pmb{y} = \pmb{H}\pmb{x}^{*} + \pmb{z}$ , where $z \in \mathbb{R}^n$ denotes the measurement noise. Though hereby the measurement $\pmb{y}$ is different from the noise free case, we still enforce $\pmb{y} = \pmb{H}\pmb{x}^{(k)}$ in each iteration.
+
+It is worth noting that we have proved the fixed point convergence but $\pmb{x}^{(k)}$ may not converge to the true signal $\pmb{x}^*$ . We show that this global convergence can be proved for PnP-GAP below while it is challenging for PnP-ADMM.
+
+# 4.3. Global Convergence of Plug-and-Play GAP
+
+We first make the following assumption.
+
+Assumption 2. There is only a single true signal $\mathbf{x}^*$ satisfying the measurement model $\mathbf{y} = \mathbf{H}\mathbf{x}^*$ in SCI.
+
+We understand that in real cases, there might be more than one signal satisfying $\mathbf{y} = \mathbf{H}\mathbf{x}$ and this forward model might be an (linear) approximation of the physical imaging system. By using this assumption, we have the following global convergence result of PnP-GAP.
+
+Theorem 2. [Global convergence of PnP-GAP] Consider the sensing model of SCI in (2) and further assume the element in the sensing matrix satisfying Assumption 1. Consider the true signal $\mathbf{y} = \mathbf{H}\mathbf{x}^{*}$ . Given $\{\mathbf{H},\mathbf{y}\}$ , $\hat{\mathbf{x}}$ is solved iteratively via PnP-GAP with bounded denoisers. For a constant $C_g > 0$ and $0 < \varphi < 1$
+
+$$
+\left\| \boldsymbol {x} ^ {(k + 1)} - \boldsymbol {x} ^ {*} \right\| _ {2} \leq \sqrt {1 - \frac {R _ {\operatorname* {m i n}}}{R _ {\operatorname* {m a x}}}} \left\| \boldsymbol {x} ^ {(k)} - \boldsymbol {x} ^ {*} \right\| _ {2} + C _ {g} \varphi^ {k}. \tag {28}
+$$
+
+Proof. Let us start from (19); we have
+
+$$
+\begin{array}{l} \boldsymbol {x} ^ {(k + 1)} - \boldsymbol {x} ^ {*} = \boldsymbol {v} ^ {(k)} - \boldsymbol {x} ^ {*} + \boldsymbol {H} ^ {\top} (\boldsymbol {H} \boldsymbol {H} ^ {\top}) ^ {- 1} (\boldsymbol {y} - \boldsymbol {H} \boldsymbol {v} ^ {(k)}) \\ = \boldsymbol {v} ^ {(k)} - \boldsymbol {x} ^ {*} + \boldsymbol {H} ^ {\top} \left(\boldsymbol {H} \boldsymbol {H} ^ {\top}\right) ^ {- 1} \boldsymbol {H} \left(\boldsymbol {x} ^ {*} - \boldsymbol {v} ^ {(k)}\right). \tag {29} \\ \end{array}
+$$
+
+Following the derivation in (25), we have
+
+$$
+\begin{array}{l} \left\| \boldsymbol {x} ^ {(k + 1)} - \boldsymbol {x} ^ {*} \right\| _ {2} ^ {2} = \left\| \boldsymbol {v} ^ {(k)} - \boldsymbol {x} ^ {*} \right\| _ {2} ^ {2} - \left\| \boldsymbol {R} ^ {- \frac {1}{2}} \boldsymbol {H} (\boldsymbol {v} ^ {(k)} - \boldsymbol {x} ^ {*}) \right\| _ {2} ^ {2} \\ \leq \left(1 - \frac {R _ {\operatorname* {m i n}}}{R _ {\operatorname* {m a x}}}\right) \| \boldsymbol {v} ^ {(k)} - \boldsymbol {x} ^ {*} \| _ {2} ^ {2}. \tag {30} \\ \end{array}
+$$
+
+This is
+
+$$
+\begin{array}{l} \left\| \boldsymbol {x} ^ {(k + 1)} - \boldsymbol {x} ^ {*} \right\| _ {2} \leq \sqrt {1 - \frac {R _ {\operatorname* {m i n}}}{R _ {\operatorname* {m a x}}}} \left\| \boldsymbol {v} ^ {(k)} - \boldsymbol {x} ^ {*} \right\| _ {2} (31) \\ \leq \sqrt {1 - \frac {R _ {\operatorname* {m i n}}}{R _ {\operatorname* {m a x}}}} \left(\| \boldsymbol {v} ^ {(k)} - \boldsymbol {x} ^ {(k)} \| _ {2} + \| \boldsymbol {x} ^ {(k)} - \boldsymbol {x} ^ {*} \| _ {2}\right) (32) \\ \leq \sqrt {1 - \frac {R _ {\operatorname* {m i n}}}{R _ {\operatorname* {m a x}}}} \| \boldsymbol {x} ^ {(k)} - \boldsymbol {x} ^ {*} \| _ {2} + \sqrt {n B C \sigma_ {k - 1} \left(1 - \frac {R _ {\operatorname* {m i n}}}{R _ {\operatorname* {m a x}}}\right)} (33) \\ = \sqrt {1 - \frac {R _ {\operatorname* {m i n}}}{R _ {\operatorname* {m a x}}}} \| \boldsymbol {x} ^ {(k)} - \boldsymbol {x} ^ {*} \| _ {2} + \lambda_ {0} \sqrt {n B C (1 - \frac {R _ {\operatorname* {m i n}}}{R _ {\operatorname* {m a x}}})} \xi^ {\frac {k - 1}{4}}, (34) \\ \end{array}
+$$
+
+where Eqs. (33)-(34) are from the proof of Theorem 1 in the SM. Note that since $\sqrt{1 - \frac{R_{\mathrm{min}}}{R_{\mathrm{max}}}} < 1$ and $\xi < 1$ and therefore, when $k \to \infty$ ,
+
+$$
+\lambda_ {0} \sqrt {n B C \left(1 - \frac {R _ {\operatorname* {m i n}}}{R _ {\operatorname* {m a x}}}\right)} \xi^ {\frac {k - 1}{4}} \rightarrow 0. \tag {35}
+$$
+
+In (28), we have defined
+
+$$
+C _ {g} = \lambda_ {0} \sqrt {n B C \left(1 - \frac {R _ {\operatorname* {m i n}}}{R _ {\operatorname* {m a x}}}\right)} \xi^ {- \frac {1}{4}}, \quad \varphi = \xi^ {\frac {1}{4}}. \tag {36}
+$$
+
+The desired global convergence results follow.
+
+
+
+Note that we have assumed $R_{\mathrm{min}} < R_{\mathrm{max}}$ in Assumption 1. Otherwise, Theorem 2 leads to $\| \pmb{x}^{(k + 1)} - \pmb{x}^*\| _2 = 0$
+
+Theorem 3. [Stable convergence of PnP-GAP] Consider the same conditions in Theorem 2 but now the noisy measurement $\pmb{y} = \pmb{H}\pmb{x}^{*} + \pmb{z}$ and $\| z\| _2\leq \epsilon$ . Given $\{\pmb {H},\pmb {y}\}$ , $\hat{\pmb{x}}$ is solved iteratively via PnP-GAP with bounded denoisers. For a constant $C_g > 0$ and $0 < \varphi < 1$
+
+$$
+\| \boldsymbol {x} ^ {(k + 1)} - \boldsymbol {x} ^ {*} \| _ {2} \leq \sqrt {1 - \frac {R _ {\operatorname* {m i n}}}{R _ {\operatorname* {m a x}}}} \| \boldsymbol {x} ^ {(k)} - \boldsymbol {x} ^ {*} \| _ {2} + C _ {g} \varphi^ {k} + \frac {\epsilon}{\sqrt {R _ {\operatorname* {m i n}}}}.
+$$
+
+Proof. Different from (29), where $\mathbf{y} = \mathbf{H}\mathbf{x}^{*}$ was used, now we have (full details in the SM)
+
+$$
+\begin{array}{l} \boldsymbol {x} ^ {(k + 1)} - \boldsymbol {x} ^ {*} = [ \boldsymbol {I} - \boldsymbol {H} ^ {\top} (\boldsymbol {H} \boldsymbol {H} ^ {\top}) ^ {- 1} \boldsymbol {H} ] (\boldsymbol {x} ^ {*} - \boldsymbol {v} ^ {(k)}) \\ + \boldsymbol {H} ^ {\top} \left(\boldsymbol {H} \boldsymbol {H} ^ {\top}\right) ^ {- 1} \boldsymbol {z}. \tag {37} \\ \end{array}
+$$
+
+Taking $\ell_2$ -norm on both sides and using the results of (30) with some derivations,
+
+$$
+\| \boldsymbol {x} ^ {(k + 1)} - \boldsymbol {x} ^ {*} \| _ {2} ^ {2} \leq \left(1 - \frac {R _ {\operatorname* {m i n}}}{R _ {\operatorname* {m a x}}}\right) \| \boldsymbol {v} ^ {(k)} - \boldsymbol {x} ^ {*} \| _ {2} ^ {2} + \frac {1}{R _ {\operatorname* {m i n}}} \| \boldsymbol {z} \| _ {2} ^ {2}.
+$$
+
+Using the result of (34) and $\sqrt{a + b} \leq \sqrt{a} + \sqrt{b}$ ,
+
+$$
+\begin{array}{l} \| \boldsymbol {x} ^ {(k + 1)} - \boldsymbol {x} ^ {*} \| _ {2} \leq \sqrt {1 - \frac {R _ {\operatorname* {m i n}}}{R _ {\operatorname* {m a x}}}} \| \boldsymbol {x} ^ {(k)} - \boldsymbol {x} ^ {*} \| _ {2} \\ + \lambda_ {0} \sqrt {n B C \left(1 - \frac {R _ {\operatorname* {m i n}}}{R _ {\operatorname* {m a x}}}\right)} \xi^ {\frac {k - 1}{4}} + \frac {\epsilon}{\sqrt {R _ {\operatorname* {m i n}}}}. \tag {38} \\ \end{array}
+$$
+
+The final result follows.
+
+
+
+It is worth noting that by assuming WNNM being a bounded denoiser, DeSCI [22], which is GAP-WNNM, is a special case of our PnP-GAP.
+
+# 4.4. PnP-ADMM vs. PnP-GAP
+
+Comparing PnP-GAP in Eqs (19)-(20) and PnP-ADMM in Eqs (7)-(9), we can see that PnP-GAP only has two subproblems (rather than three as in PnP-ADMM) and thus the computation is faster. It was pointed out in [22] that in the noise-free case, ADMM and GAP perform the same and this has been mathematically proved. However, in the noisy case, ADMM usually performs better since it considered noise in the model and below we give a geometrical explanation.
+
+As shown in Fig. 3, where we used a two-dimensional sparse signal as an example, we can see that since GAP imposes $\pmb{y} = \pmb{H}\hat{\pmb{x}}$ , the solution of GAP $\hat{\pmb{x}}$ is always on the dash-green line (due to noise, this line might be deviated from the solid green line where the true single lies on). However, the solution of ADMM does not have this constraint but to minimize $\| \pmb{y} - \pmb{H}\pmb{x}\|_2^2$ , which can be in the dash-red circle or the yellow-dash circle depending on the initialization. In the noise-free case, both GAP and ADMM will have a large chance to converge to the true signal $\pmb{x}^*$ . However, in the noisy case, the Euclidean distance between GAP solution and the true signal $(\|\hat{\pmb{x}} - \pmb{x}^*\|_2)$ might be larger than that of ADMM. Again, the final solution of ADMM depends on the initialization and it is not guaranteed to be more accurate than that of GAP.
+
+
+Figure 3. Demonstration of the solution of ADMM (within the dashed circle or dash-yellow circle depending on the initialization) and GAP $(\hat{x})$ under the noisy case. The difference is that the solution of GAP always lies on $\mathbf{y} = \mathbf{H}\hat{\mathbf{x}}$ .
+
+# 5. Integrate Various Denoisers into PnP for SCI Reconstruction
+
+It can be seen from Eq. (28) in Theorem 2 that the reconstruction error term depends on $C_g \varphi^k$ , and from (35), we observe that while $\{n, B, R_{\min}, R_{\max}\}$ are fixed, and $\{\lambda_0, \xi\}$ are pre-set or tuned, only $C$ depends on the bounded denoising algorithm. In other words, a better denoiser with a smaller $C$ can provide a reconstruction result closer to the true signal. Various denoising algorithms exist for different tasks based on speed and quality. Usually, a faster denoiser e.g., TV, is very efficient, but cannot provide high-quality results. The middle class algorithms e.g., BM3D [10] can provide decent results with a longer running time. More advanced denoising algorithm, e.g., WNNM [14, 13] can provide better results [22], but even slower. Another line of emerging denoising approaches is based on deep learning [48, 73], which can provide decent results within a short time after training, but they are usually not robust to noise levels and in high noisy cases, the results are not good. Different from conventional denoising problems, in SCI reconstruction, the noise level in each iteration is usually from large to small and the dynamic range can from 150 to 1, considering the pixel values within $\{0, 1, \dots, 255\}$ . Fortunately, FFDNet [74] has provided us a fast and flexible solution under various noise levels.
+
+By integrating these denoising algorithms into PnP-GAP/ADMM, we can have different algorithms (Table 1 and Fig. 2) with different results. It is worth noting that DeSCI can be seen as PnP-WNNM, and its best results are achieved by exploiting the correlation across different video frames. On the other hand, most existing deep denoising priors are still based on images. Therefore, it is expected that the results of PnP-GAP/ADMM-FFDNet are not as good as DeSCI. We anticipate that with the advances of deep denoising priors, better video denoising method will boost the our PnP-based SCI reconstruction results. In addition, these different denoisers can be used in parallel, i.e., one after each other in one GAP/ADMM iteration or used sequentially, i.e., the first $K_{1}$ iterations using FFDNet and the next $K_{2}$ iterations using WNNM to achieve better results.
+
+Table 1. The average results of PSNR in dB (left entry in each cell) and SSIM (right entry in each cell) and run time per measurement/shot in minutes by different algorithms on 6 benchmark datasets.
+
+| Algorithm | Kobe | Traffic | Runner | Drop | Crash | Aerial | Average | Run time (min) |
| GAP-TV | 26.46, 0.8848 | 20.89, 0.7148 | 28.52, 0.9092 | 34.63, 0.9704 | 24.82, 0.8383 | 25.05, 0.8281 | 26.73, 0.8576 | 0.07 |
| DeSCI (GAP-WNNM) | 33.25, 0.9518 | 28.71, 0.9250 | 38.48, 0.9693 | 43.10, 0.9925 | 27.04, 0.9094 | 25.33, 0.8603 | 32.65, 0.9347 | 103.0 |
| PnP-VBM4D | 30.60, 0.9260 | 26.60, 0.8958 | 30.10, 0.9271 | 26.58, 0.8777 | 25.30, 0.8502 | 26.89, 0.8521 | 27.68, 0.8882 | 7.9 |
| PnP-FFDNet | 30.50, 0.9256 | 24.18, 0.8279 | 32.15, 0.9332 | 40.70, 0.9892 | 25.42, 0.8493 | 25.27, 0.8291 | 29.70, 0.8924 | 0.05 (GPU) |
| PnP-WNNM-TV | 33.00, 0.9520 | 26.76, 0.9035 | 38.00, 0.9690 | 43.27, 0.9927 | 26.25, 0.8972 | 25.53, 0.8595 | 32.14, 0.9290 | 40.8 |
| PnP-WNNM-VBM4D | 33.08, 0.9537 | 28.05, 0.9191 | 33.73, 0.9632 | 28.82, 0.9289 | 26.56, 0.8874 | 27.74, 0.8852 | 29.66, 0.9229 | 25.0 |
| PnP-WNNM-FFDNet | 32.54, 0.9511 | 26.00, 0.8861 | 36.31, 0.9664 | 43.45, 0.9930 | 26.21, 0.8930 | 25.83, 0.8618 | 31.72, 0.9252 | 17.9 |
+
+
+Figure 4. Reconstructed frames of PnP-GAP algorithms (GAP-TV, PnP-FFDNet, DeSCI (GAP-WNNM), PnP-WNNM-FFDNet) on six simulated benchmark video SCI datasets.
+
+# 6. Results
+
+We applied the proposed PnP algorithms to both simulation [22, 26] and real datasets captured by the SCI cameras [23, 60]. Conventional denoising algorithms include TV [53], VBM4D [27] and WNNM [14] are used. For the deep learning based denoiser, we have tried various algorithms and found that FFDNet [74] provides the best results.
+
+Simulation: Benchmark Data We follow the simulation setup in [22] using the six datasets, i.e., Kobe, Traffic, Runner, Drop, crash, and aerial [26], where $B = 8$ video frames are compressed into a single measurement. Table 1 summarizes the PSNR and SSIM [47] results of these 6 benchmark data using various denoising algorithms, where DeSCI can be categorized as GAP-WNNM, and PnP-WNNM-FFDNet used 50 iterations FFDNet and then 60 iterations WNNM, similar for GAP-WNNM-VBM4D. It can be observed that: i) By using GPU, PnP
+
+FFDNet is now the fastest algorithm1; it is even faster than GAP-TV, meanwhile providing about 3dB higher PSNR than GAP-TV. Therefore, PnP-FFDNet can be used as an efficient baseline in SCI reconstruction. Since the average PSNR is close to 30dB, it is applicable in real cases. This will be further verified in the following subsection on large-scale datasets. ii) DeSCI still provides the best results on average; however, by combing other algorithms with WNNM, comparable results (e.g. PnP-WNNM-FFDNet) can be achieved by only using 1/6 computational time. Fig. 4 plots selected frames of the six datasets using different algorithms. It can be seen that though GAP-WNNM still leads to best results, the difference between PnP-FFDNet and DeSCI is very small and in most cases, they are close to each other.
+
+Simulation: Large-scale Data We hereby show the results of large-scale data results in Fig. 5, where all videos (in SM) are reconstructed from a snapshot with sizes from $1920 \times 1080 \times 24$ to $3840 \times 1644 \times 48$ . It is worth noting that only GAP-TV and PnP-FFDNet can be used as all other algorithms are too slow (more than 10 hours) to run2. In general, PnP-FFDNet provides more than 4dB higher PSNR than GAP-TV. Please pay attention to the details recovered by PnP-FFDNet. These results along with the high speed can lead to real applications of SCI in our daily life videos.
+
+Real Data Lastly, we apply the proposed PnP framework to real data captured by SCI cameras to verify the robustness of the algorithms. Figs. 6-7 show the results of different compression ratios and different sizes. It can be observed that in most cases, PnP-FFDNet can provide comparable or even better (chopper wheel) results than DeSCI but again with a significant saving on computational time. The running time of these data using different algorithms is shown in Table 2, where we can see that PnP-FFDNet provides results around 12 seconds even for a $512 \times 512 \times 22$ large-scale video.
+
+
+Figure 5. Reconstructed frames of PnP-GAP algorithms (GAP-TV and PnP-FFDNet) on four simulated large-scale video SCI datasets.
+
+
+Figure 6. Real data: chopper wheel $(256 \times 256 \times 14)$ .
+
+
+Figure 7. Real data: hammer color video SCI $(512\times 512\times 22)$
+
+Table 2. Running time (second) of real data using different a rithms. Visual results of labs and UCF are shown in the SM.
+
+| Real dataset | Pixel resolution | GAP-TV | DeSCI | PnP-FFDNet | PnP-WNNM-FFDNet |
| chopperwheels | 256 × 256 × 14 | 11.6 | 3185.8 | 2.7 | 1754.7 |
| labs | 484 × 248 × 10 | 36.9 | 6471.3 | 4.5 | 3226.5 |
| hammer color | 512 × 512 × 22 | 94.5 | 4791.0 | 12.6 | 1619.4 |
| UCF | 1100 × 850 × 10 | 300.8 | 2938.8* | 12.5 | 1504.5* |
+
+* WNNM is performed in a frame-wise manner for large-scale datasets.
+
+# 7. Conclusions
+
+We proposed plug-and-play algorithms for the reconstruction of snapshot compressive video imaging systems. By integrating deep denoisers into the PnP framework, we not only get excellent results on both simulation and real datasets, but also provide reconstruction in a short time with sufficient flexibility. Convergence results of PnP-GAP are proved and we first time show that SCI can be used in large-scale (HD, FHD and UHD) daily life videos. This paves the way of practical applications of SCI.
+
+Regarding the future work, one direction is to train a better video (rather than image) denoising network and apply it to the proposed PnP framework to further improve the reconstruction results. The other direction is to build a real large-scale video SCI system to be used in advanced cameras [4].
+
+Acknowledgments. The work of Jinli Suo and Qionghai Dai is partially supported by NSFC 61722110, 61931012, 61631009 and Beijing Municipal Science & Technology Commission (BMSTC) (No. Z181100003118014).
+
+# References
+
+[1] Yoann Altmann, Stephen McLaughlin, Miles J Padgett, Vivek K Goyal, Alfred O Hero, and Daniele Faccio. Quantum-inspired computational imaging. Science, 361(6403), 2018.
+[2] José M Bioucas-Dias and Mário AT Figueiredo. A new twist: Two-step iterative shrinkage/thresholding algorithms for image restoration. IEEE Transactions on Image processing, 16(12):2992-3004, 2007.
+[3] Stephen Boyd, Neal Parikh, Eric Chu, Borja Peleato, and Jonathan Eckstein. Distributed optimization and statistical learning via the alternating direction method of multipliers. Foundations and Trends in Machine Learning, 3(1):1-122, January 2011.
+[4] D. J. Brady, M. E. Gehm, R. A. Stack, D. L. Marks, D. S. Kittle, D. R. Golish, E. M. Vera, and S. D. Feller. Multiscale gigapixel photography. Nature, 486(7403):386-389, 2012.
+[5] David J. Brady, Alex Mrozack, Ken MacCabe, and Patrick Llull. Compressive tomography. Advances in Optics and Photonics, 7(4):756, 2015.
+[6] David J. Brady, Wubin Pang, Han Li, Zhan Ma, Yue Tao, and Xun Cao. Parallel cameras. Optica, 5(2), 2018.
+[7] E. Candés, J. Romberg, and T. Tao. Signal recovery from incomplete and inaccurate measurements. Comm. Pure Appl. Math, 59(8):1207-1223, 2005.
+[8] Xun Cao, Tao Yue, Xing Lin, Stephen Lin, Xin Yuan, Qionghai Dai, Lawrence Carin, and David J Brady. Computational snapshot multispectral cameras: Toward dynamic capture of the spectral world. IEEE Signal Processing Magazine, 33(5):95-108, 2016.
+[9] Stanley H. Chan, Xiran Wang, and Omar A. Elgendy. Plug-and-play ADMM for image restoration: Fixed-point convergence and applications. IEEE Transactions on Computational Imaging, 3:84-98, 2017.
+[10] K. Dabov, A. Foi, V. Katkovnik, and K. Egiazarian. Image denoising by sparse 3d transform-domain collaborative filtering. IEEE Transactions on Image Processing, 16(8):2080-2095, August 2007.
+[11] David L Donoho et al. Compressed sensing. IEEE Transactions on information theory, 52(4):1289-1306, 2006.
+[12] M. E. Gehm, R. John, D. J. Brady, R. M. Willett, and T. J. Schulz. Single-shot compressive spectral imaging with a dual-disperser architecture. Optics Express, 15(21):14013-14027, 2007.
+[13] Shuhang Gu, Qi Xie, Deyu Meng, Wangmeng Zuo, Xiangchu Feng, and Lei Zhang. Weighted nuclear norm minimization and its applications to low level vision. International Journal of Computer Vision, 121(2):183-208, 2017.
+[14] Shuhang Gu, Lei Zhang, Wangmeng Zuo, and Xiangchu Feng. Weighted nuclear norm minimization with application to image denoising. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2862-2869, 2014.
+[15] Yasunobu Hitomi, Jinwei Gu, Mohit Gupta, Tomoo Mitsunaga, and Shree K Nayar. Video from a single coded exposure photograph using a learned over-complete dictionary. In 2011 International Conference on Computer Vision, pages 287-294. IEEE, 2011.
+[16] Michael Iliadis, Leonidas Spinoulas, and Aggelos K. Katsaggelos. Deep fully-connected networks for video compressive sensing. Digital Signal Processing, 72:9-18, 2018.
+
+[17] Shirin Jalali and Xin Yuan. Compressive imaging via one-shot measurements. In IEEE International Symposium on Information Theory (ISIT), 2018.
+[18] Shirin Jalali and Xin Yuan. Snapshot compressed sensing: Performance bounds and algorithms. IEEE Transactions on Information Theory, 65(12):8005-8024, Dec 2019.
+[19] Kyong Hwan Jin, Michael T McCann, Emmanuel Froustey, and Michael Unser. Deep convolutional neural network for inverse problems in imaging. IEEE Transactions on Image Processing, 26(9):4509-4522, Sept 2017.
+[20] Kuldeep Kulkarni, Suhas Lohit, Pavan Turaga, Ronan Kerviche, and Amit Ashok. Reconnet: Non-iterative reconstruction of images from compressively sensed random measurements. In CVPR, 2016.
+[21] X. Liao, H. Li, and L. Carin. Generalized alternating projection for weighted- $\ell_{2,1}$ minimization with applications to model-based compressive sensing. SIAM Journal on Imaging Sciences, 7(2):797-823, 2014.
+[22] Yang Liu, Xin Yuan, Jinli Suo, David Brady, and Qionghai Dai. Rank minimization for snapshot compressive imaging. IEEE Transactions on Pattern Analysis and Machine Intelligence, 41(12):2990-3006, Dec 2019.
+[23] Patrick Llull, Xuejun Liao, Xin Yuan, Jianbo Yang, David Kittle, Lawrence Carin, Guillermo Sapiro, and David J Brady. Coded aperture compressive temporal imaging. Optics Express, 21(9):10526-10545, 2013.
+[24] Patrick Llull, Xin Yuan, Lawrence Carin, and David J Brady. Image translation for single-shot focal tomography. Optica, 2(9):822-825, 2015.
+[25] P. Llull, X. Yuan, X. Liao, J. Yang, D. Kittle, L. Carin, G. Sapiro, and D. J. Brady. Compressed Sensing and its Applications: MATHEON Workshop 2013, chapter Temporal Compressive Sensing for Video, pages 41-74. Springer International Publishing, 2015.
+[26] Jiawei Ma, Xiaoyang Liu, Zheng Shou, and Xin Yuan. Deep tensor admm-net for snapshot compressive imaging. In IEEE/CVF Conference on Computer Vision (ICCV), 2019.
+[27] M. Maggioni, G. Boracchi, A. Foi, and K. O. Egiazarian. Video denoising, deblocking, and enhancement through separable 4-d nonlocal spatiotemporal transforms. IEEE Transactions on Image Processing, 21:3952-3966, 2012.
+[28] Xin Miao, Xin Yuan, Yunchen Pu, and Vassilis Athitsos. $\lambda$ -net: Reconstruct hyperspectral images from a snapshot measurement. In IEEE/CVF Conference on Computer Vision (ICCV), 2019.
+[29] Xin Miao, Xin Yuan, and Paul Wilford. Deep learning for compressive spectral imaging. In Digital Holography and Three-Dimensional Imaging 2019, page M3B.3. Optical Society of America, 2019.
+[30] Ali Mousavi and Richard G Baraniuk. Learning to invert: Signal recovery via deep convolutional networks. In 2017 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 2272-2276, March 2017.
+[31] Joseph N. Mait, Gary W. Euliss, and Ravindra A. Athale. Computational imaging. Adv. Opt. Photon., 10(2):409-483, Jun 2018.
+[32] Wei Ouyang, Andrey I. Aristov, Mickael Lelek, Xian Feng Hao, and Christophe Zimmer. Deep learning massively accelerates super-resolution localization microscopy. Nature
+
+Biotechnology, 36:460-468, 2018.
+[33] Mu Qiao, Xuan Liu, and Xin Yuan. Snapshot spatial-temporal compressive imaging. Opt. Lett., 2020.
+[34] Mu Qiao, Ziyi Meng, Jiawei Ma, and Xin Yuan. Deep learning for video compressive sensing. APL Photonics, 5(3):030801, 2020.
+[35] Mu Qiao, Yangyang Sun, Xuan Liu, Xin Yuan, and Paul Wilford. Snapshot optical coherence tomography. In Digital Holography and Three-Dimensional Imaging 2019, page W4B.3. Optical Society of America, 2019.
+[36] Dikpal Reddy, Ashok Veeraraghavan, and Rama Chellappa. P2C2: Programmable pixel compressive camera for high speed imaging. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 329-336.
+[37] Francesco Renna, Liming Wang, Xin Yuan, Jianbo Yang, Galen Reeves, Robert Calderbank, Lawrence Carin, and Miguel RD Rodrigues. Classification and reconstruction of high-dimensional signals from low-dimensional features in the presence of side information. IEEE Transactions on Information Theory, 62(11):6459-6492, Nov 2016.
+[38] Ernest K. Ryu, Jialin Liu, Sicheng Wang, Xiaohan Chen, Zhangyang Wang, and Wotao Yin. Plug-and-play methods provably converge with properly trained denoisers. In ICML, 2019.
+[39] Ayan Sinha, Justin Lee, Shuai Li, and George Barbastathis. Lensless computational imaging through deep learning. Optica, 4(9):1117-1125, Sep 2017.
+[40] Yangyang Sun, Xin Yuan, and Shuo Pang. High-speed compressive range imaging based on active illumination. Optics Express, 24(20):22836-22846, Oct 2016.
+[41] Yangyang Sun, Xin Yuan, and Shuo Pang. Compressive high-speed stereo imaging. Opt Express, 25(15):18182-18190, 2017.
+[42] T.H. Tsai, P. Llull, X. Yuan, L Carin, and D.J. Brady. Coded aperture compressive spectral-temporal imaging. In Computational Optical Sensing and Imaging (COSI), pages 1-3, 2015.
+[43] Tsung-Han Tsai, Patrick Llull, Xin Yuan, Lawrence Carin, and David J Brady. Spectral-temporal compressive imaging. Optics Letters, 40(17):4054-4057, Sep 2015.
+[44] Tsung-Han Tsai, Xin Yuan, and David J Brady. Spatial light modulator based color polarization imaging. Optics Express, 23(9):11912-11926, May 2015.
+[45] Ashwin Wagadarikar, Renu John, Rebecca Willett, and David Brady. Single disperser design for coded aperture snapshot spectral imaging. Applied Optics, 47(10):B44-B51, 2008.
+[46] Ashwin A Wagadarikar, Nikos P Pitsianis, Xiaobai Sun, and David J Brady. Video rate spectral imaging using a coded aperture snapshot spectral imager. Optics Express, 17(8):6368-6388, 2009.
+[47] 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.
+[48] Junyuan Xie, Linli Xu, and Enhong Chen. Image denoising and inpainting with deep neural networks. In F. Pereira, C. J. C. Burges, L. Bottou, and K. Q. Weinberger, editors, Advances in Neural Information Processing Systems 25, pages 341-349. Curran Associates, Inc., 2012.
+
+[49] Jianbo Yang, Xuejun Liao, Xin Yuan, Patrick Llull, David J Brady, Guillermo Sapiro, and Lawrence Carin. Compressive sensing by learning a Gaussian mixture model from measurements. IEEE Transaction on Image Processing, 24(1):106-119, January 2015.
+[50] J. Yang, X. Yuan, X. Liao, P. Llull, G. Sapiro, D. J. Brady, and L. Carin. Video compressive sensing using Gaussian mixture models. IEEE Transaction on Image Processing, 23(11):4863-4878, November 2014.
+[51] Michitaka Yoshida, Akihiko Torii, Masatoshi Okutomi, Kenta Endo, Yukinobu Sugiyama, Rin-ichiro Taniguchi, and Hajime Nagahara. Joint optimization for compressive video sensing and reconstruction under hardware constraints. In The European Conference on Computer Vision (ECCV), September 2018.
+[52] Xin Yuan. Compressive dynamic range imaging via Bayesian shrinkage dictionary learning. Optical Engineering, 55(12):123110, 2016.
+[53] Xin Yuan. Generalized alternating projection based total variation minimization for compressive sensing. In 2016 IEEE International Conference on Image Processing (ICIP), pages 2539-2543, Sept 2016.
+[54] Xin Yuan. Adaptive step-size iterative algorithm for sparse signal recovery. Signal Processing, 152:273-285, 2018.
+[55] X. Yuan and R. Haimi-Cohen. Image compression based on compressive sensing: End-to-end comparison with JPEG. IEEE Transactions on Multimedia, pages 1-1, 2020.
+[56] X. Yuan, H. Jiang, G. Huang, and P. Wilford. Compressive sensing via low-rank Gaussian mixture models. arXiv:1508.06901, 2015.
+[57] X. Yuan, H. Jiang, G. Huang, and P. Wilford. SLOPE: Shrinkage of local overlapping patches estimator for lensless compressive imaging. IEEE Sensors Journal, 16(22):8091-8102, November 2016.
+[58] Xin Yuan, Xuejun Liao, Patrick Llull, David Brady, and Lawrence Carin. Efficient patch-based approach for compressive depth imaging. Applied Optics, 55(27):7556-7564, Sep 2016.
+[59] Xin Yuan, Patrick Llull, David J Brady, and Lawrence Carin. Tree-structure bayesian compressive sensing for video. arXiv:1410.3080, 2014.
+[60] Xin Yuan, Patrick Llull, Xuejun Liao, Jianbo Yang, David J. Brady, Guillermo Sapiro, and Lawrence Carin. Low-cost compressive sensing for color video and depth. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3318-3325, 2014.
+[61] Xin Yuan and Shuo Pang. Compressive video microscope via structured illumination. In 2016 IEEE International Conference on Image Processing (ICIP), pages 1589-1593, Sept 2016.
+[62] Xin Yuan and Shuo Pang. Structured illumination temporal compressive microscopy. Biomedical Optics Express, 7:746-758, 2016.
+[63] X. Yuan and Y. Pu. Convolutional factor analysis inspired compressive sensing. In 2017 IEEE International Conference on Image Processing (ICIP), pages 550-554, Sept 2017.
+[64] Xin Yuan and Yunchen Pu. Parallel lensless compressive imaging via deep convolutional neural networks. Optics Express, 26(2):1962-1977, Jan 2018.
+
+[65] X. Yuan, V. Rao, S. Han, and L. Carin. Hierarchical infinite divisibility for multiscale shrinkage. IEEE Transactions on Signal Processing, 62(17):4363-4374, Sep. 1 2014.
+[66] Xin Yuan, Yangyang Sun, and Shuo Pang. Compressive temporal stereo-vision imaging. In Computational Optical Sensing and Imaging (COSI), 2016.
+[67] Xin Yuan, Yangyang Sun, and Shuo Pang. Compressive temporal rgb-d imaging. In Imaging and Applied Optics 2017 (3D, AIO, COSI, IS, MATH, pcAOP), page CTh1B.3. Optical Society of America, 2017.
+[68] X. Yuan, Y. Sun, and S. Pang. Compressive video sensing with side information. Appl. Opt., 56(10):2697-2704, 2017.
+[69] Xin Yuan, Tsung-Han Tsai, Ruoyu Zhu, Patrick Llull, David Brady, and Lawrence Carin. Compressive hyperspectral imaging with side information. IEEE Journal of Selected Topics in Signal Processing, 9(6):964-976, September 2015.
+[70] Xin Yuan, Jianbo Yang, Patrick Llull, Xuejun Liao, Guillermo Sapiro, David J Brady, and Lawrence Carin. Adaptive temporal compressive sensing for video. IEEE International Conference on Image Processing, pages 1-4, 2013.
+[71] Z. Zha, X. Yuan, B. Wen, J. Zhou, J. Zhang, and C. Zhu. From rank estimation to rank approximation: Rank residual constraint for image restoration. IEEE Transactions on Image Processing, 29:3254-3269, 2020.
+[72] Zhiyuan Zha, Xinggan Zhang, Yuehua Wu, Qiong Wang, Xin Liu, Lan Tang, and Xin Yuan. Non-convex weighted p nuclear norm based admm framework for image restoration. Neurocomputing, 311:209-224, 2018.
+[73] 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(7):3142-3155, 2017.
+[74] Kai Zhang, Wangmeng Zuo, and Lei Zhang. FFDNet: Toward a fast and flexible solution for CNN-based image denoising. IEEE Trans. Image Processing, 27(9):4608-4622, 2018.
+[75] Xinyuan Zhang, Xin Yuan, and Lawrence Carin. Nonlocal low-rank tensor factor analysis for image restoration. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3318-3325, 2018.
\ No newline at end of file
diff --git a/plugandplayalgorithmsforlargescalesnapshotcompressiveimaging/images.zip b/plugandplayalgorithmsforlargescalesnapshotcompressiveimaging/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..953eb93141ad5d57135ef014a0ff2e37e6b5ffcf
--- /dev/null
+++ b/plugandplayalgorithmsforlargescalesnapshotcompressiveimaging/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6eaf1af75f081f76a535140a5b0b3e7e3f9079180ed5d9a9a59297b268b7dea1
+size 921994
diff --git a/plugandplayalgorithmsforlargescalesnapshotcompressiveimaging/layout.json b/plugandplayalgorithmsforlargescalesnapshotcompressiveimaging/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..fe4072837768ac543c51d98e1918e29b5c90f288
--- /dev/null
+++ b/plugandplayalgorithmsforlargescalesnapshotcompressiveimaging/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c6e5b5fd279664570c12250f9454feeb75e946b65098f47632ae4cfabd1080d7
+size 604429
diff --git a/pnetsdeeppolynomialneuralnetworks/31848459-0d23-44d6-a093-c451dc8d388f_content_list.json b/pnetsdeeppolynomialneuralnetworks/31848459-0d23-44d6-a093-c451dc8d388f_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..5deddcb1e9fdc7ee456e6bfdb6264a0ab20e820e
--- /dev/null
+++ b/pnetsdeeppolynomialneuralnetworks/31848459-0d23-44d6-a093-c451dc8d388f_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6db2fdbde736a8957b1df0f3737fe8cf0cbeebd21a6aa0cab8ca5ee09bd1ab4e
+size 82335
diff --git a/pnetsdeeppolynomialneuralnetworks/31848459-0d23-44d6-a093-c451dc8d388f_model.json b/pnetsdeeppolynomialneuralnetworks/31848459-0d23-44d6-a093-c451dc8d388f_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..8b38743daf5be0014c382cf2b929f88c0709e04b
--- /dev/null
+++ b/pnetsdeeppolynomialneuralnetworks/31848459-0d23-44d6-a093-c451dc8d388f_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d2511aa4a611f7916a54d15eb857c7da9d02873d8d559e4f8cf82cfdf0fe82c3
+size 105630
diff --git a/pnetsdeeppolynomialneuralnetworks/31848459-0d23-44d6-a093-c451dc8d388f_origin.pdf b/pnetsdeeppolynomialneuralnetworks/31848459-0d23-44d6-a093-c451dc8d388f_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..738c747ab9547b57533bd3cf60fb1078f5e27904
--- /dev/null
+++ b/pnetsdeeppolynomialneuralnetworks/31848459-0d23-44d6-a093-c451dc8d388f_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:47ffcd207bc411387d72cfab607cb13fdc54aa6c8f7078b5492f418ca8686d8d
+size 416755
diff --git a/pnetsdeeppolynomialneuralnetworks/full.md b/pnetsdeeppolynomialneuralnetworks/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..934a412ea6d77732a658bf2eef24d87383c18e6b
--- /dev/null
+++ b/pnetsdeeppolynomialneuralnetworks/full.md
@@ -0,0 +1,326 @@
+# II-nets: Deep Polynomial Neural Networks
+
+Grigorios G. Chrysos1, Stylianos Moschoglou1,2, Giorgos Bouritsas1, Yannis Panagakis3, Jiankang Deng1,2, Stefanos Zafeiriou1,2
+
+1 Department of Computing, Imperial College London, UK
+
+2 Facesoft.io
+
+3 Department of Informatics and Telecommunications, University of Athens, GR
+
+{[first letter].[surname]}@imperial.ac.uk
+
+# Abstract
+
+Deep Convolutional Neural Networks (DCNNs) is currently the method of choice both for generative, as well as for discriminative learning in computer vision and machine learning. The success of DCNNs can be attributed to the careful selection of their building blocks (e.g., residual blocks, rectifiers, sophisticated normalization schemes, to mention but a few). In this paper, we propose $\Pi$ -Nets, a new class of DCNNs. $\Pi$ -Nets are polynomial neural networks, i.e., the output is a high-order polynomial of the input. $\Pi$ -Nets can be implemented using special kind of skip connections and their parameters can be represented via high-order tensors. We empirically demonstrate that $\Pi$ -Nets have better representation power than standard DCNNs and they even produce good results without the use of non-linear activation functions in a large battery of tasks and signals, i.e., images, graphs, and audio. When used in conjunction with activation functions, $\Pi$ -Nets produce state-of-the-art results in challenging tasks, such as image generation. Lastly, our framework elucidates why recent generative models, such as StyleGAN, improve upon their predecessors, e.g., ProGAN.
+
+# 1. Introduction
+
+Representation learning via the use of (deep) multilayered non-linear models has revolutionised the field of computer vision the past decade [32, 17]. Deep Convolutional Neural Networks (DCNNs) [33, 32] have been the dominant class of models. Typically, a DCNN is a sequence of layers where the output of each layer is fed first to a convolutional operator (i.e., a set of shared weights applied via the convolution operator) and then to a non-linear activation function. Skip connections between various layers allow deeper representations and improve the gradient flow while training the network [17, 54].
+
+In the aforementioned case, if the non-linear activation
+
+
+
+
+Figure 1: In this paper we introduce a class of networks called $\Pi$ -nets, where the output is a polynomial of the input. The input in this case, $z$ , can be either the latent space of Generative Adversarial Network for a generative task or an image in the case of a discriminative task. Our polynomial networks can be easily implemented using a special kind of skip connections.
+
+functions are removed, the output of a DCNN degenerates to a linear function of the input. In this paper, we propose a new class of DCNNs, which we coin $\Pi$ -nets, where the output is a polynomial function of the input. We design $\Pi$ -nets for generative tasks (e.g., where the input is a small dimensional noise vector) as well as for discriminative tasks (e.g., where the input is an image and the output is a vector with dimensions equal to the number of labels). We demonstrate that these networks can produce good results without the use of non-linear activation functions. Furthermore, our extensive experiments show, empirically, that $\Pi$ -nets can consistently improve the performance, in both generative and discriminative tasks, using, in many cases, significantly fewer parameters.
+
+DCNNs have been used in computer vision for over 30 years [33, 50]. Arguably, what brought DCNNs again in mainstream research was the remarkable results achieved by the so-called AlexNet in the ImageNet challenge [32]. Even
+
+though it is only seven years from this pioneering effort the field has witnessed dramatic improvement in all data-dependent tasks, such as object detection [21] and image generation [37, 15], just to name a few examples. The improvement is mainly attributed to carefully selected units in the architectural pipeline of DCNNs, such as blocks with skip connections [17], sophisticated normalization schemes (e.g., batch normalisation [23]), as well as the use of efficient gradient-based optimization techniques [28].
+
+Parallel to the development of DCNN architectures for discriminative tasks, such as classification, the notion of Generative Adversarial Networks (GANs) was introduced for training generative models. GANs became instantly a popular line of research but it was only after the careful design of DCNN pipelines and training strategies that GANs were able to produce realistic images [26, 2]. ProGAN [25] was the first architecture to synthesize realistic facial images by a DCNN. StyleGAN [26] is a follow-up work that improved ProGAN. The main addition of StyleGAN was a type of skip connections, called ADAIN [22], which allowed the latent representation to be infused in all different layers of the generator. Similar infusions were introduced in [42] for conditional image generation.
+
+Our work is motivated by the improvement of StyleGAN over ProGAN by such a simple infusion layer and the need to provide an explanation1. We show that such infusion layers create a special non-linear structure, i.e., a higher-order polynomial, which empirically improves the representation power of DCNNs. We show that this infusion layer can be generalized (e.g. see Fig. 1) and applied in various ways in both generative, as well as discriminative architectures. In particular, the paper bears the following contributions:
+
+- We propose a new family of neural networks (called $\Pi$ -nets) where the output is a high-order polynomial of the input. To avoid the combinatorial explosion in the number of parameters of polynomial activation functions [27] our $\Pi$ -nets use a special kind of skip connections to implement the polynomial expansion (please see Fig. 1 for a brief schematic representation). We theoretically demonstrate that these kind of skip connections relate to special forms of tensor decompositions.
+- We show how the proposed architectures can be applied in generative models such as GANs, as well as discriminative networks. We showcase that the resulting architectures can be used to learn high-dimensional distributions without non-linear activation functions.
+- We convert state-of-the-art baselines using the proposed II-nets and show how they can largely improve the
+
+expressivity of the baseline. We demonstrate it conclusively in a battery of tasks (i.e., generation and classification). Finally, we demonstrate that our architectures are applicable to many different signals such as images, meshes, and audio.
+
+# 2. Related work
+
+Expressivity of (deep) neural networks: The last few years, (deep) neural networks have been applied to a wide range of applications with impressive results. The performance boost can be attributed to a host of factors including: a) the availability of massive datasets [4, 35], b) the machine learning libraries [57, 43] running on massively parallel hardware, c) training improvements. The training improvements include a) optimizer improvement [28, 46], b) augmented capacity of the network [53], c) regularization tricks [11, 49, 23, 58]. However, the paradigm for each layer remains largely unchanged for several decades: each layer is composed of a linear transformation and an element-wise activation function. Despite the variety of linear transformations [9, 33, 32] and activation functions [44, 39] being used, the effort to extend this paradigm has not drawn much attention to date.
+
+Recently, hierarchical models have exhibited stellar performance in learning expressive generative models [2, 26, 70]. For instance, the recent BigGAN [2] performs a hierarchical composition through skip connections from the noise $z$ to multiple resolutions of the generator. A similar idea emerged in StyleGAN [26], which is an improvement over the Progressive Growing of GANs (ProGAN) [25]. As ProGAN, StyleGAN is a highly-engineered network that achieves compelling results on synthesized 2D images. In order to provide an explanation on the improvements of StyleGAN over ProGAN, the authors adopt arguments from the style transfer literature [22]. We believe that these improvements can be better explained under the light of our proposed polynomial function approximation. Despite the hierarchical composition proposed in these works, we present an intuitive and mathematically elaborate method to achieve a more precise approximation with a polynomial expansion. We also demonstrate that such a polynomial expansion can be used in both image generation (as in [26, 2]), image classification, and graph representation learning.
+
+Polynomial networks: Polynomial relationships have been investigated in two specific categories of networks: a) self-organizing networks with hard-coded feature selection, b) pi-sigma networks.
+
+The idea of learnable polynomial features can be traced back to Group Method of Data Handling (GMDH) $[24]^2$ . GMDH learns partial descriptors that capture quadratic correlations between two predefined input elements. In [41],
+
+more input elements are allowed, while higher-order polynomials are used. The input to each partial descriptor is predefined (subset of the input elements), which does not allow the method to scale to high-dimensional data with complex correlations.
+
+Shin et al. [51] introduce the pi-sigma network, which is a neural network with a single hidden layer. Multiple affine transformations of the data are learned; a product unit multiplies all the features to obtain the output. Improvements in the pi-sigma network include regularization for training in [66] or using multiple product units to obtain the output in [61]. The pi-sigma network is extended in sigma-pi-sigma neural network (SPSNN) [34]. The idea of SPSNN relies on summing different pi-sigma networks to obtain each output. SPSNN also uses a predefined basis (overlapping rectangular pulses) on each pi-sigma sub-network to filter the input features. Even though such networks use polynomial features or products, they do not scale well in high-dimensional signals. In addition, their experimental evaluation is conducted only on signals with known ground-truth distributions (and with up to 3 dimensional input/output), unlike the modern generative models where only a finite number of samples from high-dimensional ground-truth distributions is available.
+
+# 3. Method
+
+Notation: Tensors are symbolized by calligraphic letters, e.g., $\mathcal{X}$ , while matrices (vectors) are denoted by uppercase (lowercase) boldface letters e.g., $\mathbf{X}$ , $(\mathbf{x})$ . The mode- $m$ vector product of $\mathcal{X}$ with a vector $\mathbf{u} \in \mathbb{R}^{I_m}$ is denoted by $\mathcal{X} \times_{m} \mathbf{u}$ .3
+
+We want to learn a function approximator where each element of the output $x_{j}$ , with $j\in [1,o]$ , is expressed as a polynomial4 of all the input elements $z_{i}$ , with $i\in [1,d]$ . That is, we want to learn a function $G:\mathbb{R}^d\to \mathbb{R}^o$ of order $N\in \mathbb{N}$ , such that:
+
+$$
+\begin{array}{l} x _ {j} = G (\boldsymbol {z}) _ {j} = \beta_ {j} + \boldsymbol {w} _ {j} ^ {[ 1 ] ^ {T}} \boldsymbol {z} + \boldsymbol {z} ^ {T} \boldsymbol {W} _ {j} ^ {[ 2 ]} \boldsymbol {z} + \\ \boldsymbol {\mathcal {W}} _ {j} ^ {[ 3 ]} \times_ {1} \boldsymbol {z} \times_ {2} \boldsymbol {z} \times_ {3} \boldsymbol {z} + \dots + \boldsymbol {\mathcal {W}} _ {j} ^ {[ N ]} \prod_ {n = 1} ^ {N} \times_ {n} \boldsymbol {z} \tag {1} \\ \end{array}
+$$
+
+where $\beta_{j}\in \mathbb{R}$ , and $\{\mathcal{W}_j^{[n]}\in \mathbb{R}^{\prod_{m = 1}^n\times_m d}\}_{n = 1}^N$ are parameters for approximating the output $x_{j}$ . The correlations (of the input elements $z_{i}$ ) up to $N^{th}$ order emerge in (1). A more compact expression of (1) is obtained by vectorizing the outputs:
+
+$$
+\boldsymbol {x} = G (\boldsymbol {z}) = \sum_ {n = 1} ^ {N} \left(\boldsymbol {\mathcal {W}} ^ {[ n ]} \prod_ {j = 2} ^ {n + 1} \times_ {j} \boldsymbol {z}\right) + \boldsymbol {\beta} \tag {2}
+$$
+
+where $\beta \in \mathbb{R}^o$ and $\{\mathcal{W}^{[n]}\in \mathbb{R}^{o\times \prod_{m = 1}^{n}\times_{m}d}\}_{n = 1}^{N}$ are the learnable parameters. This form of (2) allows us to approximate any smooth function (for large $N$ ), however the parameters grow with $\mathcal{O}(d^{N})$ .
+
+A variety of methods, such as pruning [8, 16], tensor decompositions [29, 52], special linear operators [6] with reduced parameters, parameter sharing/prediction [67, 5], can be employed to reduce the parameters. In contrast to the heuristic approaches of pruning or prediction, we describe below two principled ways which allow an efficient implementation. The first method relies on performing an off-the-shelf tensor decomposition on (2), while the second considers the final polynomial as the product of lower-degree polynomials.
+
+The tensor decompositions are used in this paper to provide a theoretical understanding (i.e., what is the order of the polynomial used) of the proposed family of II-nets. Implementation-wise the incorporation of different II-net structures is as simple as the incorporation of a skip-connection. Nevertheless, in II-net different skip connections lead to different kinds of polynomial networks.
+
+# 3.1. Single polynomial
+
+A tensor decomposition on the parameters is a natural way to reduce the parameters and to implement (2) with a neural network. Below, we demonstrate how three such decompositions result in novel architectures for a neural network training. The main symbols are summarized in Table 1, while the equivalence between the recursive relationship and the polynomial is analyzed in the supplementary.
+
+Model 1: CCP: A coupled CP decomposition [29] is applied on the parameter tensors. That is, each parameter tensor, i.e. $\mathcal{W}^{[n]}$ for $n\in [1,N]$ , is not factorized individually, but rather a coupled factorization of the parameters is defined. The recursive relationship is:
+
+$$
+\boldsymbol {x} _ {n} = \left(\boldsymbol {U} _ {[ n ]} ^ {T} \boldsymbol {z}\right) * \boldsymbol {x} _ {n - 1} + \boldsymbol {x} _ {n - 1} \tag {3}
+$$
+
+for $n = 2,\ldots ,N$ with $\pmb{x}_1 = \pmb{U}_{[1]}^T\pmb{z}$ and $\pmb {x} = \pmb {C}\pmb{x}_N + \beta$ The parameters $\pmb {C}\in \mathbb{R}^{o\times k}$ $U_{[n]}\in \mathbb{R}^{d\times k}$ for $n = 1,\dots ,N$ are learnable. To avoid overloading the diagram, a schematic assuming a third order expansion $(N = 3)$ is illustrated in Fig. 2.
+
+
+Figure 2: Schematic illustration of the CCP (for third order approximation). Symbol * refers to the Hadamard product.
+
+Model 2: NCP: Instead of defining a flat CP decomposition, we can utilize a joint hierarchical decomposition on the
+
+Table 1: Nomenclature
+
+| Symbol | Dimension(s) | Definition |
| n, N | N | Polynomial term order, total approximation order. |
| k | N | Rank of the decompositions. |
| z | Rd | Input to the polynomial approximator, i.e., generator. |
| C,β | Rθ×k, Ro | Parameters in all decompositions. |
| A[n], S[n], B[n] | Rd×k, Rk×k, Rw×k | Matrix parameters in the hierarchical decomposition. |
| ⊙, * | - | Khatri-Rao product, Hadamard product. |
+
+polynomial parameters. A nested coupled CP decomposition (NCP), which results in the following recursive relationship for $N^{th}$ order approximation is defined:
+
+$$
+\boldsymbol {x} _ {n} = \left(\boldsymbol {A} _ {[ n ]} ^ {T} \boldsymbol {z}\right) * \left(\boldsymbol {S} _ {[ n ]} ^ {T} \boldsymbol {x} _ {n - 1} + \boldsymbol {B} _ {[ n ]} ^ {T} \boldsymbol {b} _ {[ n ]}\right) \tag {4}
+$$
+
+for $n = 2,\ldots ,N$ with $\pmb{x}_1 = \left(\pmb{A}_{[n]}^T\pmb {z}\right)*\left(\pmb{B}_{[n]}^T\pmb {b}_{[n]}\right)$ and $\pmb {x} = \pmb {C}\pmb{x}_N + \pmb{\beta}$ . The parameters $\pmb {C}\in \mathbb{R}^{o\times k},\pmb{A}_{[n]}\in$ $\mathbb{R}^{d\times k},S_{[n]}\in \mathbb{R}^{k\times k},B_{[n]}\in \mathbb{R}^{\omega \times k},b_{[n]}\in \mathbb{R}^{\omega}$ for $n =$ $1,\dots ,N$ , are learnable. The explanation of each variable is elaborated in the supplementary, where the decomposition is derived.
+
+
+Figure 3: Schematic illustration of the NCP (for third order approximation). Symbol * refers to the Hadamard product.
+
+Model 3: NCP-Skip: The expressiveness of NCP can be further extended using a skip connection (motivated by CCP). The new model uses a nested coupled decomposition and has the following recursive expression:
+
+$$
+\boldsymbol {x} _ {n} = \left(\boldsymbol {A} _ {[ n ]} ^ {T} \boldsymbol {z}\right) * \left(\boldsymbol {S} _ {[ n ]} ^ {T} \boldsymbol {x} _ {n - 1} + \boldsymbol {B} _ {[ n ]} ^ {T} \boldsymbol {b} _ {[ n ]}\right) + \boldsymbol {x} _ {n - 1} \quad (5)
+$$
+
+for $n = 2,\ldots ,N$ with $\pmb{x}_1 = \left(\pmb{A}_{[n]}^T\pmb {z}\right)*\left(\pmb{B}_{[n]}^T\pmb{b}_{[n]}\right)$ and $\pmb {x} = \pmb {C}\pmb{x}_N + \pmb{\beta}$ . The learnable parameters are the same as in NCP, however the difference in the recursive form results in a different polynomial expansion and thus architecture.
+
+Comparison between the models: All three models are based on a polynomial expansion, however their recursive forms and employed decompositions differ. The CCP has a simpler expression, however the NCP and the NCP-Skip relate to standard architectures using hierarchical composition that have recently yielded promising results in both generative and discriminative tasks. In the remainder of the
+
+
+Figure 4: Schematic illustration of the NCP-Skip (for third order approximation). The difference from Fig. 3 is the skip connections added in this model.
+
+paper, for comparison purposes we use the NCP by default for the image generation and NCP-Skip for the image classification. In our preliminary experiments, CCP and NCP share a similar performance based on the setting of Sec. 4. In all cases, to mitigate stability issues that might emerge during training, we employ certain normalization schemes that constrain the magnitude of the gradients. An in-depth theoretical analysis of the architectures is deferred to a future version of our work.
+
+# 3.2. Product of polynomials
+
+Instead of using a single polynomial, we express the function approximation as a product of polynomials. The product is implemented as successive polynomials where the output of the $i^{th}$ polynomial is used as the input for the $(i + 1)^{th}$ polynomial. The concept is visually depicted in Fig. 5; each polynomial expresses a second order expansion. Stacking $N$ such polynomials results in an overall order of $2^{N}$ . Trivially, if the approximation of each polynomial is $B$ and we stack $N$ such polynomials, the total order is $B^{N}$ . The product does not necessarily demand the same order in each polynomial, the expressivity and the expansion order of each polynomial can be different and dependent on the task, e.g. for generative tasks that the resolution increases progressively, the expansion order could increase in the last polynomials. In all cases, the final order will be the product of each polynomial.
+
+There are two main benefits of the product over the single polynomial: a) it allows using different decompositions (e.g. like in Sec. 3.1) and expressive power for each polynomial; b) it requires much less parameters for achieving the same
+
+order of approximation. Given the benefits of the product of polynomials, we assume below that a product of polynomials is used, unless explicitly mentioned otherwise. The respective model of product polynomials is called ProdPoly.
+
+
+Order $2^{N}$
+Figure 5: Abstract illustration of the ProdPoly. The input variable $z$ on the left is the input to a $2^{nd}$ order expansion; the output of this is used as the input for the next polynomial (also with a $2^{nd}$ order expansion) and so on. If we use $N$ such polynomials, the final output $G(z)$ expresses a $2^{N}$ order expansion. In addition to the high order of approximation, the benefit of using the product of polynomials is that the model is flexible, in the sense that each polynomial can be implemented as a different decomposition of Sec. 3.1.
+
+# 3.3. Task-dependent input/output
+
+The aforementioned polynomials are a function $x = G(z)$ , where the input/output are task-dependent. For a generative task, e.g. learning a decoder, the input $z$ is typically some low-dimensional noise, while the output is a high-dimensional signal, e.g. an image. For a discriminative task the input $z$ is an image; for a domain adaptation task the signal $z$ denotes the source domain and $x$ the target domain.
+
+# 4. Proof of concept
+
+In this Section, we conduct motivational experiments in both generative and discriminative tasks to demonstrate the expressivity of II-nets. Specifically, the networks are implemented without activation functions, i.e. only linear operations (e.g. convolutions) and Hadamard products are used. In this setting, the output is linear or multi-linear with respect to the parameters.
+
+# 4.1. Linear generation
+
+One of the most popular generative models is Generative Adversarial Nets (GAN) [12]. We design a GAN, where the generator is implemented as a product of polynomials (using the NCP decomposition), while the discriminator of [37] is used. No activation functions are used in the generator, but a single hyperbolic tangent $(\tanh)$ in the image space5.
+
+
+Figure 6: Linear interpolation in the latent space of ProdPoly (when trained on fashion images [64]). Note that the generator does not include any activation functions in between the linear blocks (Sec. 4.1). All the images are synthesized; the image on the leftmost column is the source, while the one in the rightmost is the target synthesized image.
+
+
+Figure 7: Linear interpolation in the latent space of ProdPoly (when trained on facial images [10]). As in Fig. 6, the generator includes only linear blocks; the image on the leftmost column is the source, while the one in the rightmost is the target image.
+
+Two experiments are conducted with a polynomial generator (Fashion-Mnist and YaleB). We perform a linear interpolation in the latent space when trained with Fashion-Mnist [64] and with YaleB [10] and visualize the results in Figs. 6, 7, respectively. Note that the linear interpolation generates plausible images and navigates among different categories, e.g. trousers to sneakers or trousers to t-shirts. Equivalently, it can linearly traverse the latent space from a fully illuminated to a partly dark face.
+
+# 4.2. Linear classification
+
+To empirically illustrate the power of the polynomial, we use ResNet without activations for classification. Residual Network (ResNet) [17, 54] and its variants [21, 62, 65, 69,
+
+
+Figure 8: Image classification accuracy with linear residual blocks6. The schematic on the left is on CIFAR10 classification, while the one on the right is on CIFAR100 classification.
+
+[68] have been applied to diverse tasks including object detection and image generation [14, 15, 37]. The core component of ResNet is the residual block; the $t^{th}$ residual block is expressed as $z_{t+1} = z_t + Cz_t$ for input $z_t$ .
+
+We modify each residual block to express a higher order interaction, which can be achieved with NCP-Skip. The output of each residual block is the input for the next residual block, which makes our ResNet a product of polynomials. We conduct a classification experiment with CIFAR10 [31] (10 classes) and CIFAR100 [30] (100 classes). Each residual block is modified in two ways: a) all the activation functions are removed, b) it is converted into an $i^{th}$ order expansion with $i \in [2,5]$ . The second order expansion (for the $t^{th}$ residual block) is expressed as $z_{t+1} = z_t + Cz_t + (Cz_t)*z_t$ ; higher orders are constructed similarly by performing a Hadamard product of the last term with $z_t$ (e.g., for third order expansion it would be $z_{t+1} = z_t + Cz_t + (Cz_t)*z_t + (Cz_t)*z_t$ ). The following two variations are evaluated: a) a single residual block is used in each 'group layer', b) two blocks are used per 'group layer'. The latter variation is equivalent to ResNet18 without activations.
+
+Each experiment is conducted 10 times; the mean accuracy5 is reported in Fig. 8. We note that the same trends emerge in both datasets6. The performance remains similar irrespective of the amount of residual blocks in the group layer. The performance is affected by the order of the expansion, i.e. higher orders cause a decrease in the accuracy. Our conjecture is that this can be partially attributed to overfitting (note that a $3^{rd}$ order expansion for the 2222 block - in total 8 res. units - yields a polynomial of $3^8$ power), however we defer a detailed study of this in a future version of our work. Nevertheless, in all cases without activations the accuracy is close to the original ResNet18 with activation functions.
+
+Table 2: IS/FID scores on CIFAR10 [31] generation. The scores of [14, 15] are added from the respective papers as using similar residual based generators. The scores of [7, 19, 36] represent alternative generative models. ProdPolyoutperform the compared methods in both metrics.
+
+| Image generation on CIFAR10 |
| Model | IS (↑) | FID (↓) |
| SNGAN | 8.06 ± 0.10 | 19.06 ± 0.50 |
| NCP(Sec. 3.1) | 8.30 ± 0.09 | 17.65 ± 0.76 |
| ProdPoly | 8.49 ± 0.11 | 16.79 ± 0.81 |
+
+| CSGAN-[14] | 7.90 ± 0.09 | - |
| WGAN-GP-[15] | 7.86 ± 0.08 | - |
| CQFG-[36] | 8.10 | 18.60 |
| EBM [7] | 6.78 | 38.2 |
| GLANN [19] | - | 46.5 ± 0.20 |
+
+# 5. Experiments
+
+We conduct three experiments against state-of-the-art models in three diverse tasks: image generation, image classification, and graph representation learning. In each case, the baseline considered is converted into an instance of our family of II-nets and the two models are compared.
+
+# 5.1. Image generation
+
+The robustness of ProdPoly in image generation is assessed in two different architectures/datasets below.
+
+SNGAN on CIFAR10: In the first experiment, the architecture of SNGAN [37] is selected as a strong baseline on CIFAR10 [31]. The baseline includes 3 residual blocks in the generator and the discriminator.
+
+The generator is converted into a $\Pi$ -net, where each residual block is a single order of the polynomial. We implement two versions, one with a single polynomial (NCP) and one with product of polynomials (where each polynomial uses NCP). In our implementation $A_{[n]}$ is a thin FC layer, $(B_{[n]})^T b_{[n]}$ is a bias vector and $S_{[n]}$ is the transformation of the residual block. Other than the aforementioned modifications, the hyper-parameters (e.g. discriminator, learning rate, optimization details) are kept the same as in [37].
+
+Each network has run for 10 times and the mean and variance are reported. The popular Inception Score (IS) [48] and the Frechet Inception Distance (FID) [18] are used for quantitative evaluation. Both scores extract feature representations from a pre-trained classifier (the Inception network [56]).
+
+The quantitative results are summarized in Table 2. In addition to SNGAN and our two variations with polynomials, we have added the scores of [14, 15, 7, 19, 36] as reported in the respective papers. Note that the single polynomial already outperforms the baseline, while the ProdPoly boosts the performance further and achieves a substantial improvement over the original SNGAN.
+
+
+Figure 9: Samples synthesized from ProdPoly (trained on FFHQ).
+
+StyleGAN on FFFQ: StyleGAN [26] is the state-of-the-art architecture in image generation. The generator is composed of two parts, namely: (a) the mapping network, composed of 8 FC layers, and (b) the synthesis network, which is based on ProGAN [25] and progressively learns to synthesize high quality images. The sampled noise is transformed by the mapping network and the resulting vector is then used for the synthesis network. As discussed in the introduction StyleGAN is already an instance of the $\Pi$ -net family, due to AdaIN. Specifically, the $k^{th}$ AdaIN layer is $\pmb{h}_k = (\pmb{A}_k^T\pmb{w}) * n(c(\pmb{h}_{k-1}))$ , where $n$ is a normalization, $c$ is a convolution and $\pmb{w}$ is the transformed noise $\pmb{w} = MLP(\pmb{z})$ (mapping network). This is equivalent to our NCP model by setting $\pmb{S}_{[k]}^T$ as the convolution operator.
+
+In this experiment we illustrate how simple modifications, using our family of products of polynomials, further improve the representation power. We make a minimal modification in the mapping network, while fixing the rest of the hyperparameters. In particular, we convert the mapping network into a polynomial (specifically a NCP), which makes the generator a product of two polynomials.
+
+The Flickr-Faces-HQ Dataset (FFHQ) dataset [26] which includes 70,000 images of high-resolution faces is used. All the images are resized to $256 \times 256$ . The best FID scores of the two methods (in $256 \times 256$ resolution) are 6.82 for ours and 7.15 for the original StyleGAN, respectively. That is, our method improves the results by $5\%$ . Synthesized samples of our approach are visualized in Fig. 9.
+
+# 5.2. Classification
+
+We perform two experiments on classification: a) audio classification, b) image classification.
+
+Audio classification: The goal of this experiment is twofold: a) to evaluate ResNet on a distribution that differs from that of natural images, b) to validate whether higher-order blocks make the model more expressive. The core assumption is that we can increase the expressivity of our model, or equivalently we can use less residual blocks of higher-order to achieve performance similar to the baseline.
+
+The performance of ResNet is evaluated on the Speech Commands dataset [63]. The dataset includes 60,000 audio files; each audio contains a single word of a duration of one second. There are 35 different words (classes) with each word having $1,500 - 4,100$ recordings. Every audio file is converted into a mel-spectrogram of resolution $32 \times 32$ .
+
+The baseline is a ResNet34 architecture; we use second-order residual blocks to build the Prodpoly-ResNet to match the performance of the baseline. The quantitative results are added in Table 3. The two models share the same accuracy, however Prodpoly-ResNet includes $38\%$ fewer parameters. This result validates our assumption that our model is more expressive and with even fewer parameters, it can achieve the same performance.
+
+Table 3: Speech classification with ResNet. The accuracy of the compared methods is similar, but Prodpoly-ResNet has $38\%$ fewer parameters. The symbol $\#$ par' abbreviates the number of parameters (in millions).
+
+| Speech Commands classification with ResNet |
| Model | # blocks | # par | Accuracy |
| ResNet34 | [3, 4, 6, 3] | 21.3 | 0.951 ± 0.002 |
| Prodpoly-ResNet | [3, 3, 3, 2] | 13.2 | 0.951 ± 0.002 |
+
+Image classification: We perform a large-scale classification experiment on ImageNet [47]. We choose float16 instead of float32 to achieve $3.5 \times$ acceleration and reduce the GPU memory consumption by $50\%$ . To stabilize the training, the second order of each residual block is normalized with a hyperbolic tangent unit. SGD with momentum 0.9, weight decay $10^{-4}$ and a mini-batch size of 1024 is used. The initial learning rate is set to 0.4 and decreased by a factor of 10 at 30, 60, and 80 epochs. Models are trained for 90 epochs from scratch, using linear warm-up of the learning rate during first five epochs according to [13]. For other batch sizes due to the limitation of GPU memory, we linearly scale the learning rate (e.g. 0.1 for batch size 256).
+
+The Top-1 error throughout the training is visualized in Fig. 10, while the validation results are added in Table 4. For a fair comparison, we report the results from our training in both the original ResNet and Prodpoly-ResNet7. Prodpoly-ResNet consistently improves the performance with an extremely small increase in computational complexity and model size. Remarkably, Prodpoly-ResNet50 achieves a single-crop Top-5 validation error of $6.358\%$ , exceeding ResNet50 $(6.838\%)$ by $0.48\%$ .
+
+# 5.3. 3D Mesh representation learning
+
+Below, we evaluate higher order correlations in graph related tasks. We experiment with 3D deformable meshes of fixed topology [45], i.e. the connectivity of the graph $\mathcal{G} = \{\mathcal{V},\mathcal{E}\}$ remains the same and each different shape is defined as a different signal $\pmb{x}$ on the vertices of the graph: $\pmb {x}:\mathcal{V}\rightarrow \mathbb{R}^d$ . As in the previous experiments, we extend a state-of-the-art operator, namely spiral convolutions [1], with the ProdPoly formulation and test our method on the
+
+Table 4: Image classification (ImageNet) with ResNet. "Speed" refers to the inference speed (images/s) of each method.
+
+| ImageNet classification with ResNet |
| Model | # Blocks | Top-1 error (%) | Top-5 error (%) | Speed | Model Size |
| ResNet50 | [3,4,6,3] | 23.570 | 6.838 | 8.5K | 50.26 MB |
| Prodpoly-ResNet50 | [3,4,6,3] | 22.875 | 6.358 | 7.5K | 68.81 MB |
+
+
+Figure 10: Top-1 error on ResNet50 and Prodpoly-ResNet50. Note that Prodpoly-ResNet performs consistently better during the training; the improvement is also reflected in the validation performance.
+
+ | error (mm) (↓) | speed (ms) (↓) |
| GAT [59] | 0.732 | 11.04 |
| FeastNet [60] | 0.623 | 6.64 |
| MoNet [38] | 0.583 | 7.59 |
| SpiralGNN [1] | 0.635 | 4.27 |
| ProdPoly (simple) | 0.530 | 4.98 |
| ProdPoly (simple - linear) | 0.529 | 4.79 |
| ProdPoly (full) | 0.476 | 5.30 |
| ProdPoly (full - linear) | 0.474 | 5.14 |
+
+Table 5: ProdPoly vs 1st order graph learnable operators for mesh autoencoding. Note that even without using activation functions the proposed methods significantly improve upon the state-of-the-art.
+
+task of autoencoding 3D shapes. We use the existing architecture and hyper-parameters of [1], thus showing that ProdPoly can be used as a plug-and-play operator to existing models, turning the aforementioned one into a Spiral II-Net. Our implementation uses a product of polynomials, where each polynomial is a specific instantiation of (4): $\pmb{x}_n = \left(\pmb{S}_{[n]}^T\pmb{x}_{n - 1}\right)*\left(\pmb{S}_{[n]}^T\pmb{x}_{n - 1}\right) + \pmb{S}_{[n]}^T\pmb{x}_{n - 1},\pmb {x} = \pmb{x}_n + \beta$ where $\pmb{S}$ is the spiral convolution operator written in matrix form. We use this model (ProdPoly simple) to showcase how to increase the expressivity without adding new blocks in the architecture. This model can be also re-interpreted as a learnable polynomial activation function as in [27]. We
+
+also show the results of our complete model (ProdPoly full), where $\mathbf{A}_{[n]}$ is a different spiral convolution.
+
+In Table 5 we compare the reconstruction error of the autoencoder and the inference time of our method with the baseline spiral convolutions, as well as with the best results reported in [1] that other (more computationally involved - see inference time in table 5) graph learnable operators yielded. Interestingly, we manage to outperform all previously introduced models even when discarding the activation functions across the entire network. Thus, expressivity increases without having to increase the depth or the width of the architecture, as usually done by ML practitioners, and with small sacrifices in terms of inference time.
+
+# 6. Discussion
+
+In this work, we have introduced a new class of DCNNs, called II-Nets that perform function approximation using a polynomial neural network. Our II-Nets can be efficiently implemented via a special kind of skip connections that lead to high-order polynomials, naturally expressed with tensorial factors. The proposed formulation extends the standard compositional paradigm of overlaying linear operations with activation functions. We motivate our method by a sequence of experiments without activation functions that showcase the expressive power of polynomials, and demonstrate that II-Nets are effective in both discriminative, as well as generative tasks. Trivially modifying state-of-the-art architectures in image generation, image and audio classification and mesh representation learning, the performance consistently improves. In the future, we aim to explore the link between different decompositions and the resulting architectures and theoretically analyse their expressive power.
+
+# 7. Acknowledgements
+
+We are thankful to Nvidia for the hardware donation and Amazon web services for the cloud credits. The work of GC, SM, and GB was partially funded by an Imperial College DTA. The work of JD was partially funded by Imperial President's PhD Scholarship. The work of SZ was partially funded by the EPSRC Fellowship DEFORM: Large Scale Shape Analysis of Deformable Models of Humans (EP/S010203/1) and a Google Faculty Award. An early version with single polynomials for the generative settings can be found in [3].
+
+# References
+
+[1] Giorgos Bouritsas, Sergiy Bokhnyak, Stylianos Ploumpis, Michael Bronstein, and Stefanos Zafeiriou. Neural 3d morphable models: Spiral convolutional networks for 3d shape representation learning and generation. In International Conference on Computer Vision (ICCV), 2019. 7, 8
+[2] Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale gan training for high fidelity natural image synthesis. In International Conference on Learning Representations (ICLR), 2019. 2
+[3] Grigorios Chrysos, Stylianos Moschoglou, Yannis Panagakis, and Stefanos Zafeiriou. Polygon: High-order polynomial generators. arXiv preprint arXiv:1908.06571, 2019. 8
+[4] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In Conference on Computer Vision and Pattern Recognition (CVPR), pages 248–255, 2009. 2
+[5] Misha Denil, Babak Shakibi, Laurent Dinh, Marc'Aurelio Ranzato, and Nando De Freitas. Predicting parameters in deep learning. In Advances in neural information processing systems (NeurIPS), pages 2148-2156, 2013. 3
+[6] Caiwen Ding, Siyu Liao, Yanzhi Wang, Zhe Li, Ning Liu, Youwei Zhuo, Chao Wang, Xuehai Qian, Yu Bai, Geng Yuan, et al. Circnn: accelerating and compressing deep neural networks using block-circulant weight matrices. In Proceedings of the 50th Annual IEEE/ACM International Symposium on Microarchitecture, pages 395-408, 2017. 3
+[7] Yilun Du and Igor Mordatch. Implicit generation and generalization in energy-based models. In Advances in neural information processing systems (NeurIPS), 2019. 6
+[8] Jonathan Frankle and Michael Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. In International Conference on Learning Representations (ICLR), 2019. 3
+[9] Kunihiko Fukushima. Neocognitron: A self-organizing neural network model for a mechanism of pattern recognition unaffected by shift in position. Biological cybernetics, 36(4):193–202, 1980. 2
+[10] Athinodoros S Georgiades, Peter N Belhumeur, and David J Kriegman. From few to many: Illumination cone models for face recognition under variable lighting and pose. IEEE Transactions on Pattern Analysis and Machine Intelligence (T-PAMI), (6):643-660, 2001. 5
+[11] Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In International Conference on Artificial Intelligence and Statistics (AISTATS), pages 249-256, 2010. 2
+[12] 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. 5
+[13] Priya Goyal, Piotr Dolkar, Ross Girshick, Pieter Noordhuis, Lukasz Wesolowski, Aapo Kyrola, Andrew Tulloch, Yangqing Jia, and Kaiming He. Accurate, large minibatch sgd: Training imagenet in 1 hour. arXiv:1706.02677, 2017. 7
+
+[14] Guillermo L Grinblat, Lucas C Uzal, and Pablo M Granitto. Class-splitting generative adversarial networks. arXiv preprint arXiv:1709.07359, 2017. 6
+[15] Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron C Courville. Improved training of wasserstein gans. In Advances in neural information processing systems (NeurIPS), pages 5767-5777, 2017. 2, 6
+[16] Song Han, Jeff Pool, John Tran, and William Dally. Learning both weights and connections for efficient neural network. In Advances in neural information processing systems (NeurIPS), pages 1135-1143, 2015. 3
+[17] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Conference on Computer Vision and Pattern Recognition (CVPR), pages 770-778, 2016. 1, 2, 5, 7
+[18] 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 (NeurIPS), pages 6626-6637, 2017. 6
+[19] Yedid Hoshen, Ke Li, and Jitendra Malik. Non-adversarial image synthesis with generative latent nearest neighbors. In Conference on Computer Vision and Pattern Recognition (CVPR), pages 5811-5819, 2019. 6
+[20] Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In Conference on Computer Vision and Pattern Recognition (CVPR), pages 7132-7141, 2018. 7
+[21] Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Conference on Computer Vision and Pattern Recognition (CVPR), pages 4700-4708, 2017. 2, 6
+[22] Xun Huang and Serge Belongie. Arbitrary style transfer in real-time with adaptive instance normalization. In International Conference on Computer Vision (ICCV), pages 1501-1510, 2017. 2
+[23] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning (ICML), 2015. 2
+[24] Alexey Grigorevich Ivakhnenko. Polynomial theory of complex systems. transactions on Systems, Man, and Cybernetics, (4):364-378, 1971. 2
+[25] 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 (ICLR), 2018. 2, 7
+[26] Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 2, 7
+[27] Joe Kileel, Matthew Trager, and Joan Bruna. On the expressive power of deep polynomial neural networks. In Advances in neural information processing systems (NeurIPS), 2019. 2, 8
+[28] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations (ICLR), 2015. 2
+
+[29] Tamara G Kolda and Brett W Bader. Tensor decompositions and applications. SIAM review, 51(3):455-500, 2009. 3
+[30] Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. Cifar-100 (canadian institute for advanced research). 6
+[31] Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. The cifar-10 dataset. online: http://www.cs.toronto.edu/kriz/cifar.html, 55, 2014. 6
+[32] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems (NeurIPS), pages 1097-1105, 2012. 1, 2
+[33] Yann LeCun, Léon Bottou, Yoshua Bengio, Patrick Haffner, et al. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278-2324, 1998. 1, 2
+[34] Chien-Kuo Li. A sigma-pi-sigma neural network (spsnn). Neural Processing Letters, 17(1):1-19, 2003. 3
+[35] Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaou Tang. Deep learning face attributes in the wild. In International Conference on Computer Vision (ICCV), pages 3730-3738, 2015. 2
+[36] Thomas Lucas, Konstantin Shmelkov, Karteek Alahari, Cordelia Schmid, and Jakob Verbeek. Adversarial training of partially invertible variational autoencoders. arXiv preprint arXiv:1901.01091, 2019. 6
+[37] Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks. In International Conference on Learning Representations (ICLR), 2018. 2, 5, 6
+[38] Federico Monti, Davide Boscaini, Jonathan Masci, Emanuele Rodola, Jan Svoboda, and Michael M Bronstein. Geometric deep learning on graphs and manifolds using mixture model cnns. In Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 8
+[39] Vinod Nair and Geoffrey E Hinton. Rectified linear units improve restricted boltzmann machines. In Proceedings of the 27th international conference on machine learning (ICML-10), pages 807–814, 2010. 2
+[40] S.M. Nikol'skii. Analysis III: Spaces of Differentiable Functions. Encyclopaedia of Mathematical Sciences. Springer Berlin Heidelberg, 2013. 3
+[41] Sung-Kwun Oh, Witold Pedrycz, and Byoung-Jun Park. Polynomial neural networks architecture: analysis and design. Computers & Electrical Engineering, 29(6):703-725, 2003. 2
+[42] Taesung Park, Ming-Yu Liu, Ting-Chun Wang, and Jun-Yan Zhu. Semantic image synthesis with spatially-adaptive normalization. In Conference on Computer Vision and Pattern Recognition (CVPR), pages 2337-2346, 2019. 2
+[43] 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 Workshops, 2017. 2
+[44] Prajit Ramachandran, Barret Zoph, and Quoc V Le. Searching for activation functions. arXiv preprint arXiv:1710.05941, 2017.2
+
+[45] Anurag Ranjan, Timo Bolkart, Soubhik Sanyal, and Michael J Black. Generating 3d faces using convolutional mesh autoencoders. In European Conference on Computer Vision (ECCV), pages 704-720, 2018. 7
+[46] Sashank J Reddi, Satyen Kale, and Sanjiv Kumar. On the convergence of adam and beyond. In International Conference on Learning Representations (ICLR), 2018. 2
+[47] 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. International Journal of Computer Vision (IJCV), 115(3):211-252, 2015. 7
+[48] Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training gans. In Advances in neural information processing systems (NeurIPS), pages 2234-2242, 2016. 6
+[49] Andrew M Saxe, James L McClelland, and Surya Ganguli. Exact solutions to the nonlinear dynamics of learning in deep linear neural networks. In International Conference on Learning Representations (ICLR), 2014. 2
+[50] Jürgen Schmidhuber. Deep learning in neural networks: An overview. Neural networks, 61:85-117, 2015. 1, 2
+[51] Yoan Shin and Joydeep Ghosh. The pi-sigma network: An efficient higher-order neural network for pattern classification and function approximation. In International Joint Conference on Neural Networks, volume 1, pages 13-18, 1991. 3
+[52] Nicholas D Sidiropoulos, Lieven De Lathauwer, Xiao Fu, Kejun Huang, Evangelos E Papalexakis, and Christos Faloutsos. Tensor decomposition for signal processing and machine learning. IEEE Transactions on Signal Processing, 65(13):3551-3582, 2017. 3
+[53] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In International Conference on Learning Representations (ICLR), 2015. 2
+[54] Rupesh Kumar Srivastava, Klaus Greff, and Jürgen Schmidhuber. Highway networks. arXiv preprint arXiv:1505.00387, 2015. 1, 5
+[55] Marshall H Stone. The generalized weierstrass approximation theorem. Mathematics Magazine, 21(5):237-254, 1948. 3
+[56] Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Conference on Computer Vision and Pattern Recognition (CVPR), pages 1-9, 2015. 6
+[57] Seiya Tokui, Kenta Oono, Shohei Hido, and Justin Clayton. Chainer: a next-generation open source framework for deep learning. In NeurIPS Workshops, 2015. 2
+[58] Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. Instance normalization: The missing ingredient for fast stylization. arXiv preprint arXiv:1607.08022, 2016. 2
+[59] Petar Velicković, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Liò, and Yoshua Bengio. Graph attention networks. International Conference on Learning Representations (ICLR), 2018. 8
+[60] Nitika Verma, Edmond Boyer, and Jakob Verbeek. Feast-net: Feature-steered graph convolutions for 3d shape analysis.
+
+In Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 8
+[61] Christodoulos Voutriaridis, Yiannis S Boutalis, and Basil G Mertzios. Ridge polynomial networks in pattern recognition. In EURASIP Conference focused on Video/Image Processing and Multimedia Communications, volume 2, pages 519-524, 2003. 3
+[62] Wenhai Wang, Xiang Li, Jian Yang, and Tong Lu. Mixed link networks. In International Joint Conferences on Artificial Intelligence (IJCAI), 2018. 6
+[63] Pete Warden. Speech commands: A dataset for limited-vocabulary speech recognition. arXiv preprint arXiv:1804.03209, 2018.7
+[64] Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017. 5
+[65] Saining Xie, Ross Girshick, Piotr Dolkar, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1492-1500, 2017. 6
+[66] Yan Xiong, Wei Wu, Xidai Kang, and Chao Zhang. Training pi-sigma network by online gradient algorithm with penalty for small weight update. Neural computation, 19(12):3356-3368, 2007. 3
+[67] Chen Yunpeng, Jin Xiaojie, Kang Bingyi, Feng Jiashi, and Yan Shuicheng. Sharing residual units through collective tensor factorization in deep neural networks. In International Joint Conferences on Artificial Intelligence (IJCAI), 2018. 3
+[68] Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016. 6
+[69] Ke Zhang, Miao Sun, Tony X Han, Xingfang Yuan, Liru Guo, and Tao Liu. Residual networks of residual networks: Multilevel residual networks. IEEE Transactions on Circuits and Systems for Video Technology, 28(6):1303-1314, 2017. 6
+[70] Shengjia Zhao, Jiaming Song, and Stefano Ermon. Learning hierarchical features from deep generative models. In International Conference on Machine Learning (ICML), pages 4091-4099, 2017. 2
\ No newline at end of file
diff --git a/pnetsdeeppolynomialneuralnetworks/images.zip b/pnetsdeeppolynomialneuralnetworks/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..38c39d01ce49cff2cf683214162d01dc0d373a1d
--- /dev/null
+++ b/pnetsdeeppolynomialneuralnetworks/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3654a37882c83f4c128e764eac1cd82c88c1347fade5c69713ad47c1fc448ae7
+size 436177
diff --git a/pnetsdeeppolynomialneuralnetworks/layout.json b/pnetsdeeppolynomialneuralnetworks/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..e12b01de04e9e9c6c0dba9858ebd21ef9b028dc8
--- /dev/null
+++ b/pnetsdeeppolynomialneuralnetworks/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:575ad18f7fc8c3a27eee1d1ad2bac9083a87a8a69d923c9ed4363e5c9bfb0848
+size 446321
diff --git a/pnpnetendtoendperceptionandpredictionwithtrackingintheloop/1fed93bd-2e38-4dd1-a6c4-66b7b0303278_content_list.json b/pnpnetendtoendperceptionandpredictionwithtrackingintheloop/1fed93bd-2e38-4dd1-a6c4-66b7b0303278_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..fb5f1ce77815f68f1b95fe603a071900313fc378
--- /dev/null
+++ b/pnpnetendtoendperceptionandpredictionwithtrackingintheloop/1fed93bd-2e38-4dd1-a6c4-66b7b0303278_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3d6457555d1b07b14f59b00d801bcb5cdb86515711035d98504574fcf1d79976
+size 76407
diff --git a/pnpnetendtoendperceptionandpredictionwithtrackingintheloop/1fed93bd-2e38-4dd1-a6c4-66b7b0303278_model.json b/pnpnetendtoendperceptionandpredictionwithtrackingintheloop/1fed93bd-2e38-4dd1-a6c4-66b7b0303278_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..4a29722b6573d8c064b8529987ccb02b395e5d9d
--- /dev/null
+++ b/pnpnetendtoendperceptionandpredictionwithtrackingintheloop/1fed93bd-2e38-4dd1-a6c4-66b7b0303278_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e5044058b1a9d425951ce6e3bfb4f6cefe504ca9ba7e6176b73a83b8f8ed2bf4
+size 93137
diff --git a/pnpnetendtoendperceptionandpredictionwithtrackingintheloop/1fed93bd-2e38-4dd1-a6c4-66b7b0303278_origin.pdf b/pnpnetendtoendperceptionandpredictionwithtrackingintheloop/1fed93bd-2e38-4dd1-a6c4-66b7b0303278_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..061380be62fea9354fdb9db95dfbfaafb79dd722
--- /dev/null
+++ b/pnpnetendtoendperceptionandpredictionwithtrackingintheloop/1fed93bd-2e38-4dd1-a6c4-66b7b0303278_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:08b888561ef39ffccfc8e345b0de86ccd5888d08fdc72a0e48d3c59e7e3f76b6
+size 997873
diff --git a/pnpnetendtoendperceptionandpredictionwithtrackingintheloop/full.md b/pnpnetendtoendperceptionandpredictionwithtrackingintheloop/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..1c3d624021f333cf152f16967209bb10afc1a74d
--- /dev/null
+++ b/pnpnetendtoendperceptionandpredictionwithtrackingintheloop/full.md
@@ -0,0 +1,316 @@
+# PnPNet: End-to-End Perception and Prediction with Tracking in the Loop
+
+Ming Liang $^{1*}$ Bin Yang $^{1,2*}$
+Wenyuan Zeng $^{1,2}$ Yun Chen $^{1}$ Rui Hu $^{1}$ Sergio Casas $^{1,2}$ Raquel Urtasun $^{1,2}$ $^{1}$ Uber Advanced Technologies Group $^{2}$ University of Toronto
+
+{ming.liang, byang10, wenyuan, yun.chen, rui.hu, sergio.casas, urtasun}@uber.com
+
+# Abstract
+
+We tackle the problem of joint perception and motion forecasting in the context of self-driving vehicles. Towards this goal we propose PnPNet, an end-to-end model that takes as input sequential sensor data, and outputs at each time step object tracks and their future trajectories. The key component is a novel tracking module that generates object tracks online from detections and exploits trajectory level features for motion forecasting. Specifically, the object tracks get updated at each time step by solving both the data association problem and the trajectory estimation problem. Importantly, the whole model is end-to-end trainable and benefits from joint optimization of all tasks. We validate PnPNet on two large-scale driving datasets, and show significant improvements over the state-of-the-art with better occlusion recovery and more accurate future prediction.
+
+# 1. Introduction
+
+We focus on the task of joint perception and prediction (motion forecasting) in the context of self-driving vehicles. This is a crucial task as in order to plan a safe maneuver, anticipating the future decisions of surrounding agents is as important as estimating their current state.
+
+Different paradigms have been proposed to solve the perception and prediction problem, which are compared in Figure 1. Traditional self-driving autonomy stacks [2, 9, 16] decompose the problem into three subtasks: object detection, object tracking, and motion forecasting, and rely on independent components that perform these subtasks sequentially. However, as each component is developed separately, this paradigm makes compromises in each module in order to meet the computing budget. Furthermore, the interface between these modules is very compact (typically the object's position, velocity, acceleration, and their uncertainty estimates), which prevents downstream tasks from correcting the mistakes made by upstream ones.
+
+
+Figure 1. Three paradigms for perception and prediction. Traditional approach (a) adopts the modular design that decomposes the stack into subtasks and solves them with individual models. End-to-end method like [28] (b) uses a joint model to solve detection and prediction simultaneously, but performs tracking as post-processing. As a result, the full temporal history contained in tracks is not used by detection and prediction. Our approach (c) brings tracking into the loop so that all tasks benefit from rich temporal context.
+
+Recently, models that solve the detection and prediction tasks jointly with a single neural network have been proposed [28], resulting in more efficient computation and improved accuracy. This paradigm is later extended to further solve the driver intention [8] and motion planning [50] by adding the corresponding modules on top of the shared backbone network. These approaches, however, suffer from limited use of temporal history because object tracking is not included in the loop and thus only leverage up to 1 second of past sensor data due to limited model capacity. This may cause problems when dealing with occluded actors and may produce temporal inconsistency in predictions.
+
+In this paper we argue that leveraging the past is key for sequential decision making process like motion forecasting. Towards this goal we propose $PnPNet$ , a new paradigm that combines ideas from multi-object tracking and joint perception and prediction models. While the detection module processes sequential sensor data and generates object detections at each time step, the tracking module associates these estimates across time for better understanding of ob-
+
+ject states (e.g., occlusion reasoning, trajectory smoothing), which in turn provides richer information for the prediction module to produce accurate future trajectories. Importantly, all modules share computation as there is a single backbone network, and the full model can be trained end-to-end.
+
+We make two main technical contributions in PnPNet. First, we propose a novel object trajectory representation defined on a sequence of object detections to fully capture the temporal characteristics of the actors. In particular, for each object we first extract its inferred motion (from past detection estimates) and raw observations (from sensor features) at each time step, and then model its dynamics using a recurrent network. Importantly, this trajectory representation is utilized in both tracking and prediction modules. Second, we propose a multi-object tracker that solves both the discrete problem of data association and the continuous problem of trajectory estimation [33] via learnable functions that can handle object occlusion, new birth of trajectories and false positive detections.
+
+We validate PnPNet on two large-scale driving datasets, and demonstrate its effectiveness with both modular metrics (standard benchmark for each subtask) and system metrics (end-to-end performance under the real-world setting). Experiments show that PnPNet achieves significant improvements over previous state-of-the-art paradigms in both perception and prediction tasks. Specifically, PnPNet recovers objects from occlusion, produces more complete object trajectories, and outputs more accurate future predictions.
+
+# 2. Related Work
+
+In this section we review works that tackle the tasks of 3D object detection, tracking, and motion forecasting separately, followed by approaches that tackle these jointly.
+
+3D Object Detection: While several approaches [11, 10, 41] try to perform 3D object detection from images, the inherent depth ambiguity hinders them from being applied in safety-critical applications. Methods that exploit depth sensors (e.g. LiDAR) achieve superior performance with various representations of point clouds [48, 52, 46, 38, 49, 32]. Recently sensor fusion methods [12, 44, 27, 34, 47, 26, 31] further push the performance by exploiting complementary information from cameras and/or maps. For efficiency and accuracy, PnPNet utilizes the bird's eye view representation of LiDAR and maps and performs single shot detection.
+
+Multi-Object Tracking: Most approaches mainly follow the tracking-by-detection paradigm [5], which comprise the discrete problem of data association and continuous problem of trajectory estimation [33]. Many frameworks have been proposed to solve the data association problem: e.g., Markov Decision Processes [43], min-cost flow [24, 17, 36],
+
+linear assignment problem [37, 42] and graph cut [30, 40]. To handle object occlusion when there's no detection available, hand-crafted heuristics [19] or single-object tracking approach [45, 14] has been explored. Apart from the association paradigm, different representations are used to compute the affinity. While [42] exploits the 3D motion clues only, approaches that extract sensor features [51, 14] typically limit the temporal history to 3 time steps. In contrast, PnPNet solves both discrete and continuous problems, with a long-term trajectory representation that captures both sensor observation and motion clue of actors.
+
+Motion Forecasting: Various approaches have been proposed to model the multi-agent interactions and multimodal behaviors in motion forecasting. DESIRE [23] uses a variational auto-encoder to generate trajectory proposals and refines them based on semantic scene context and interactions between agents. To better model the interactions, game theory is used to formulate the problem [29]. Social-LSTM [1] introduces social pooling to model nearby agents' trajectory patterns, while Social-GAN [18] further improves the performance by adding adversarial training. In parallel to different predictive models, various input representations are also explored. Besides the past states of actors, sensor features are also explored to provide more context [23, 25, 35]. However, these methods are typically developed on ground-truth object labels, and have generalization issues when applied to noisy detections [35]. In self-driving domain, raster representation in bird's eye view that encodes both the perception output and map information is widely used [2, 9, 16, 15]. In contrast, the prediction module in PnPNet directly reuses the perception features for rich scene context, and also extracts object states explicitly from past object tracks.
+
+Joint Models for Perception and Prediction: FAF [28] proposes to jointly reason about 3D object detection and motion forecasting by exploiting temporal features from multi-sweep LiDAR point clouds. An efficient bird's eye view representation and network architecture are utilized for real-time inference. IntentNet [8] extends the approach by adding the prediction of high-level intentions of each agent from semantic HD maps. SpAGNN [7] leverages graph neural networks with spatial reasoning to model multi-agent interactions. NeuralMP [50] takes one step further by sharing the feature for motion planning with perception and prediction, leading to an end-to-end motion planner. While all these approaches share the sensor features for detection and prediction, they fail to exploit the rich information of actors along the time dimension. PnPNet addresses this by incorporating online tracking and extracting trajectory-level actor representation to encode long-term history, which in turn improves all tasks.
+
+
+Figure 2. The proposed PnPNet for end-to-end perception and prediction. The model consists of three modules that perform 3D object detection, discrete-continuous tracking, and motion forecasting sequentially. To extract trajectory level actor representations used for tracking and prediction, we also equip the model with two explicit memories: one for global sensor feature maps, and one for past object trajectories. Both memories get updated at each time step with up-to-date sensor features and tracking results.
+
+# 3. End-to-End Perception and Prediction
+
+We introduce $PnPNet$ (Figure 2), an end-to-end model designed for efficient and accurate joint perception and prediction in the context of autonomous driving. Instead of designing individual models for each subtask like the traditional engineering stack, we follow the recent advances of joint modeling with shared feature computation [28, 8]. However, the main weakness of this paradigm is the limited exploitation of history information. Since these approaches do not have explicit tracking in the loop, to perform motion forecasting the object's motion history has to be estimated from the raw sensor data, which can be particularly difficult for occluded objects. As a result, the performance of the model usually saturates with fewer than 1 second of sensor data [28, 50]. Furthermore, these approaches cannot track through occlusions longer than the input time horizon, as there's no evidence. All these drawbacks hinder the performance of these approaches in the task of motion forecasting.
+
+In contrast, PnPNet addresses the issue with two key components: a novel trajectory level representation that captures the rich temporal characteristics of actors, and a new online discrete-continuous tracking module that generates such trajectories from detections across time. In the remainder we first present the three modules that perform detection, tracking and prediction sequentially, and then show how the full model can be trained end-to-end.
+
+# 3.1. Object Detection Module
+
+We adopt a 3D object detector that takes multi-sweep Li-DAR point clouds (up to 0.5 second) and an HD map as input, and outputs object detections in bird's eye view (BEV).
+
+We use a voxel based representation of LiDAR data in BEV, and combine multiple sweeps by concatenating along the height dimension (similar to [8], with the ego motion compensated for the previous sweeps). We follow [47] to encode the geometric and semantic information of the HD map (if available) into the voxel representation. We apply a 2D convolutional neural network (CNN) based backbone with multi-scale feature fusion to create our intermediate feature representation that will be later used for tracking and motion forecasting
+
+$$
+\mathcal {F} _ {\mathrm {b e v}} ^ {t} \left(\mathbf {x} ^ {t}\right) = \operatorname {C N N} _ {\mathrm {b e v}} \left(\mathbf {x} ^ {t}\right) \tag {1}
+$$
+
+where $\mathbf{x}^t$ is our input composed of multiple LiDAR sweeps (up to frame $t$ ) and the HD map. Following the single stage detector [48] we then use a convolutional detection header to output dense detections, each parameterized as $(u_i^t,v_i^t,w_i,l_i,\theta_i^t)$ representing its position, size and orientation in the ego-centric BEV space at frame $t$ . Thus
+
+$$
+\mathcal {D} ^ {t} = \mathrm {C N N} _ {\det } \left(\mathcal {F} _ {\text {b e v}} ^ {t}\right) \tag {2}
+$$
+
+where the number of detections $N_{t} = |\mathcal{D}^{t}|$ varies per frame. While the detection module generates object detections at each frame independently, the tracking module links them through time, which we review next.
+
+# 3.2. Discrete-Continuous Tracking Module
+
+There exist two distinct challenges in multi-object tracking: the discrete problem of data association and the continuous problem of trajectory estimation [33]. While previous methods mostly focus on the discrete problem, we argue
+
+
+Figure 3. The proposed trajectory level object representation. Given an object trajectory, we first extract its sensor observation and motion features at each time step, and then apply an LSTM network to model the temporal dynamics.
+
+that the continuous problem is as important in our application. From the tracking perspective, it helps to prevent association errors (i.e., identity switches) from accumulating through time. From the prediction perspective, it reduces the variance in motion history caused by the localization error of detections. Towards this goal, we propose a two-stage tracking framework, where the first stage solves the association problem between previous tracks and current detections, and the second stage refines the associated new tracks to generate smoother trajectories.
+
+Trajectory level object representation: We now show how to learn rich and concise representations for the tracking and prediction tasks. We formulate the representation learning as a sequence modeling problem (Figure 3) and exploit a Long Short-Term Memory (LSTM) network to capture the relevant information. Key to the success of the LSTM is to have informed input features. For the task at hand, these features should contain both the object's observation as well as information about its motion. Given an object track $\mathcal{P}_i^t = \mathcal{D}_i^{t_0\dots t}$ from frame $t_0$ to frame $t$ , let $f_{i}^{\mathrm{bev},t}$ and $f_{i}^{\mathrm{velocity},t}$ be features representing the observation and motion of each object
+
+$$
+f _ {i} ^ {\text {b e v , t}} = \operatorname {B i l i n e a r I n t e r p} \left(\mathcal {F} _ {\text {b e v}} ^ {t}, \left(u _ {i} ^ {t}, v _ {i} ^ {t}\right)\right) \tag {3}
+$$
+
+$$
+f _ {i} ^ {\text {v e l o c i t y}, t} = \left(\dot {x} _ {i} ^ {t}, \dot {x} _ {\mathrm {e g o}} ^ {t}, \dot {\theta} _ {\mathrm {e g o}} ^ {t}\right) \tag {4}
+$$
+
+where $\mathcal{F}_{\mathrm{bev}}^t$ is the BEV feature map from the backbone network, $\dot{x}_i$ and $\dot{x}_{\mathrm{ego}}$ are the 2-dimensional velocities of the $i$ -th object and the ego-car respectively, and $\dot{\theta}_{\mathrm{ego}}$ is the angular velocity of the ego-car. Note that we estimate the velocities by finite differences over positions, and we use the velocities of each object and the ego car so that we can estimate the absolute velocities. For newborn objects we initialize its velocity to 0. For angular velocity of ego car we parameterize it as its cosine and sine values. We then combine the two features into a single feature representation
+
+$$
+f \left(\mathcal {D} _ {i} ^ {t}\right) = \operatorname {M L P} _ {\text {m e r g e}} \left(f _ {i} ^ {\text {b e v}, t}, f _ {i} ^ {\text {v e l o c i t y}, t}\right) \tag {5}
+$$
+
+The combined object feature is computed for each frame from $t_0$ to $t$ , and they are fed to an LSTM network to pro
+
+duce the trajectory level representation
+
+$$
+h \left(\mathcal {P} _ {i} ^ {t}\right) = \operatorname {L S T M} \left(f \left(\mathcal {D} _ {i} ^ {t _ {0} \dots t}\right)\right) \tag {6}
+$$
+
+We use an LSTM as our sequence model due to its capability to handle varying input length and capture long term dependencies. Note that PnPNet exploits the learned trajectory level representation to perform both tracking and prediction tasks.
+
+Data association: Given $N_{t}$ detections in the current frame and $M_{t-1}$ object tracks in the previous frame, the discrete tracker needs to determine the association between the previous tracks and the current detections. In practice we find that the association problem eases when given 3D motion clues. However, properly handling newborn objects and occluded objects can be challenging. Unfortunately both cases happen frequently in driving scenarios. To handle these two challenges we propose a hybrid approach that exploits the best of multi-object tracking and single-object tracking approaches.
+
+We first determine the identities of the $N_{t}$ detections by associating them with all $M_{t - 1}$ existing tracks. The association problem is formulated as a bipartite matching problem so that exclusive track-to-detection correspondence is guaranteed. Newborn objects are handled by adding $N_{t}$ virtual candidates to the $M_{t - 1}$ tracks. Note that the result of the association will be fully determined given the affinity matrix that captures the similarity between each detection and track. Here, we exploit the learned object representation to compute the affinity matrix $C\in \mathbb{R}^{N_t\times (M_{t - 1} + N_t)}$ as follows
+
+$$
+C _ {i, j} = \left\{ \begin{array}{l l} \mathrm {M L P} _ {\text {p a i r}} \left(f \left(\mathcal {D} _ {i} ^ {t}\right), h \left(\mathcal {P} _ {j} ^ {t - 1}\right)\right) & \text {i f} 1 \leq j \leq M _ {t - 1}, \\ \mathrm {M L P} _ {\text {u n a r y}} \left(f \left(\mathcal {D} _ {i} ^ {t}\right)\right) & \text {i f} j = M _ {t - 1} + i, \\ - \inf & \text {o t h e r w i s e} \end{array} \right. \tag {7}
+$$
+
+where $f$ and $h$ are the aforementioned single-frame object feature (Eq. 5) and trajectory level object feature (Eq. 6) respectively. $\mathrm{MLP}_{\mathrm{pair}}$ computes the affinity score of any detection-track pair, and $\mathrm{MLP}_{\mathrm{unary}}$ estimates the score of any detection being a new instance. We optimally solve the
+
+bipartite matching problem defined by $C$ with the Hungarian algorithm [21].
+
+Note that dealing with occluded objects via Hungarian matching is very difficult since it is unclear what object estimations should be added to the detection set of the bipartite graph as they are missed by the detector. To handle such cases we take advantage of single-object tracking (SOT) that is performed on the unmatched tracks (which means the object exists in the past but fails to find a matched observation at current frame). Our SOT design inherits the philosophy of the Siamese tracker [4], but replaces the correlation filter with a learnable MLP. Specifically, for each unmatched track $\mathcal{P}_j^{t - 1}$ , we define its detection candidates $\tilde{\mathcal{D}}_i^t$ as voxels within a local neighborhood $\Omega_{j}$ centered at $(\tilde{u}_j^t,\tilde{v}_j^t)$ (estimated by transforming $(u_j^{t - 1},v_j^{t - 1})$ to current frame $t$ with ego motion compensation). We find the best detection candidate $\tilde{\mathcal{D}}_k^t$ by solving for the best match
+
+$$
+k = \underset {i \in \Omega_ {j}} {\operatorname {a r g m a x}} \mathbf {M L P} _ {\text {p a i r}} \left(f \left(\tilde {\mathcal {D}} _ {i} ^ {t}\right), h \left(\mathcal {P} _ {j} ^ {t - 1}\right)\right) \tag {8}
+$$
+
+In practice, we set the neighborhood size according to the prior knowledge of the object's maximum velocity (110 km/h for vehicles in our case). Compared with method [42] that predicts the position of occluded object with a motion model, our SOT approach exploits additional observation (such as map context) to get a more precise estimation.
+
+Combining the results from bipartite matching and SOT gives us the final set of tracks $\mathcal{P}^t$ , which has $N_{t} + K_{t}$ instances, where $K_{t}$ is the number of unmatched tracks that are processed by our single-object tracker. Note that all affinity scores in data association are predicted from learnable representations and matching functions, which can learn from data to capture the complex correlations in temporal motion and appearance clues for long-term tracking.
+
+Trajectory estimation: The goal of this module is to re-estimate each object track (in terms of the confidence score and trajectory waypoints) given the new observation at current frame, which helps to eliminate false positives from the detector and reduce the localization error coming from either detection or association. Specifically, for each object track we update its LSTM representation according to the current association, and estimate its confidence score and center position offsets for the most recent $T_{0}$ frames
+
+$$
+\operatorname {s c o r e} _ {i}, \Delta u _ {i} ^ {t - T _ {0} + 1: t}, \Delta v _ {i} ^ {t - T _ {0} + 1: t} = \mathrm {M L P} _ {\text {r e f i n e}} \left(h \left(\mathcal {P} _ {i} ^ {t}\right)\right) \tag {9}
+$$
+
+$T_{0}$ is typically shorter than the full trajectory horizon, as near-term history is more relevant to the current frame. After applying the refinement to all tracks, we perform Non-Maximum Suppression (NMS) on current frame estimations ranked by the new scores and keep top $M_{t}$ tracks to remove false positives and duplicates.
+
+| Methods | AP↑ | AP@0.5m | @1m | @2m | @4m |
| Mapillary [39] | 47.9 | 10.2 | 36.2 | 64.9 | 80.1 |
| PointPillars [22] | 70.5 | 55.5 | 71.8 | 76.1 | 78.6 |
| Megvii [53] | 82.3 | 72.9 | 82.5 | 85.9 | 87.7 |
| PnPNet, det only | 82.7 | 73.7 | 83.3 | 86.2 | 87.5 |
+
+Table 1. Evaluation of 3D object detection (car) on nuScenes.
+
+# 3.3. Motion Forecasting Module
+
+While previous joint perception and prediction models [28, 8] make the prediction module another convolutional header on top of the detection backbone network, which shares the same features with the detection header, in PnPNet we put the prediction module after explicit object tracking, with the object trajectory representation as input
+
+$$
+\Delta u _ {i} ^ {t: t + \Delta T}, \Delta v _ {i} ^ {t: t + \Delta T} = \mathrm {M L P} _ {\text {p r e d i c t}} \left(h \left(\mathcal {P} _ {i} ^ {t}\right)\right) \tag {10}
+$$
+
+where $\Delta T$ is the length of the prediction horizon.
+
+# 3.4. End-to-End Learning
+
+We train our PnPNet end-to-end with a multi-task loss of detection, tracking and prediction:
+
+$$
+\mathcal {L} = \mathcal {L} _ {\text {d e t e c t}} + \mathcal {L} _ {\text {t r a c k}} + \mathcal {L} _ {\text {p r e d i c t}} \tag {11}
+$$
+
+For detection, we use a cross-entropy loss with hard negative mining for classification and sum of smooth $\ell_1$ losses over the bounding box regression terms: size, position and orientation. For discrete-continuous tracking, we propose to use the max-margin loss on the affinity matrix (Eq. 7), SOT matching scores (Eq. 8) and trajectory scores (Eq. 9) respectively:
+
+$$
+\mathcal {L} _ {\text {t r a c k}} = \mathcal {L} _ {\text {s c o r e}} ^ {\text {a f f i n i t y}} + \mathcal {L} _ {\text {s c o r e}} ^ {\text {s o t}} + \mathcal {L} _ {\text {s c o r e}} ^ {\text {r e f i n e}} + \mathcal {L} _ {\text {r e g}} ^ {\text {r e f i n e}} \tag {12}
+$$
+
+$$
+\mathcal {L} _ {\text {s c o r e}} = \frac {1}{N _ {i , j}} \sum_ {i \in \text {p o s}, j \in \text {n e g}} \max (0, m - \left(a _ {i} - a _ {j}\right)) \tag {13}
+$$
+
+where $a_{i}$ is the score of $i$ -th positive sample, $a_{j}$ is the score of $j$ -th negative sample, $m$ is the margin threshold, and $N_{i,j}$ denotes the number of positive-negative pairs. For $\mathcal{L}_{\mathrm{score}}^{\mathrm{affinity}}$ and $\mathcal{L}_{\mathrm{score}}^{\mathrm{sot}}$ , we use the pairs of the positive match and each negative matches. For $\mathcal{L}_{\mathrm{score}}^{\mathrm{refine}}$ , we use all object pairs (ordered) in which the first object has a larger IoU with the corresponding ground-truth. In this way, the refine score is trained to be ordered by their IoU with the ground-truth. NMS based on this refine score enables higher quality tracks to be kept when there are duplicates. We set the margin to 0.2 for all scores. We use smooth $\ell_{1}$ loss for both trajectory refinement (Eq. 9) and motion forecasting (Eq. 10).
+
+Optimizing PnPNet is nontrivial due to the complex dependencies of the intermediate results across tasks and time. Normal training technique for sequence models like "teacher forcing" brings exposure bias to the model and leads to severe over-fitting. To address this, we fully emulate the testing phase by sampling a mini-batch of video
+
+| Methods | AMOTA↑ | AMOTP↓ | RECALL↑ | MOTA↑ | MOTP↓ | MT↑ | ML↓ | FP↓ | IDS↓ | FRAG↓ | TID↓ | LGD↓ |
| StanfordIPRL-TRI [13] | 73.5% | 0.53 | 73.8% | 62.3% | 0.26 | 1978 | 1053 | 6340 | 367 | 341 | 0.79 | 1.08 |
| PnPNet, KF tracker | 76.1% | 0.52 | 79.1% | 64.8% | 0.24 | 2351 | 745 | 7555 | 802 | 628 | 0.51 | 0.97 |
| PnPNet | 81.5% | 0.44 | 81.6% | 69.7% | 0.26 | 2518 | 804 | 6771 | 152 | 310 | 0.30 | 0.57 |
+
+Table 2. Evaluation of multi-object tracking (car) on nuScenes. Besides standard MOT metrics [3], four new metrics are added: AMOTA/AMOTP: MOTA/MOTP averaged over different recall thresholds; TID: average track initialization duration in seconds; LGD: average longest gap duration in seconds.
+
+ | Perception Metrics ↑ | Prediction Metrics ↓ |
| AP (%) | Max. Recall (%) | ADE (m) | FDE (m) |
| 0.1 IoU | 0.5 IoU | 0.1 IoU | 0.5 IoU | 60% TP | 90% TP | 60% TP | 90% TP |
| nuScenes cars |
| PnPNet, w/o track | 84.9 | 79.8 | 90.9 | 84.6 | 0.69 | 0.75 | 1.09 | 1.14 |
| PnPNet | 87.1 (+2.2) | 82.1 (+2.3) | 95.3 (+4.4) | 88.4 (+3.8) | 0.58 (-15%) | 0.68 (-9%) | 0.93 (-14%) | 1.04 (-8%) |
| ATG4D vehicles |
| PnPNet, w/o track | 93.9 | 90.0 | 97.5 | 93.4 | 0.69 | 0.77 | 1.12 | 1.21 |
| PnPNet | 95.8 (+2.0) | 92.2 (+2.2) | 99.1 (+1.6) | 95.4 (+2.1) | 0.55 (-20%) | 0.65 (-16%) | 0.92 (-18%) | 1.03 (-15%) |
| ATG4D pedestrians |
| PnPNet, w/o track | 77.7 | 69.0 | 88.3 | 78.5 | 0.39 | 0.41 | 0.57 | 0.60 |
| PnPNet | 79.5 (+1.8) | 70.9 (+1.9) | 91.0 (+2.7) | 81.0 (+2.5) | 0.34 (-13%) | 0.36 (-11%) | 0.51 (-11%) | 0.54 (-10%) |
+
+Table 3. Evaluation of end-to-end perception and prediction on nuScenes and ATG4D. The baseline model (PnPNet, w/o track) follows the paradigm of [28], which performs joint detection and prediction without tracking in the loop.
+
+clips during training. At each frame, the tracking and prediction modules take as input the online estimations from either previous modules or previous frames, and the ground-truth labels are only used in computing the multi-task loss.
+
+We use Adam optimizer [20] to train PnPNet, with a frame rate of $10\mathrm{Hz}$ . At each frame we maintain at most $M = 50$ tracks and $N = 50$ detections per class. The NMS threshold on detections and tracks is 0.1 IoU. We refine the most recent $T_0 = 4$ frames and predict future $\Delta T = 3$ seconds with 0.5 second interval. For real-time efficiency, we limit the track length to $T = 16$ frames.
+
+# 4. Experiments
+
+We demonstrate the effectiveness of PnPNet on two large-scale real-world driving datasets. We focus on modular metrics on detection and tracking, as well as system metrics on end-to-end perception and prediction. While modular metrics compare our method with other state-of-the-arts under the constrained setting, system metrics reveal the model performance under the real-world setting. We show that with the proposed trajectory representation and discrete-continuous tracking, results on each subtask as well as the whole system improve significantly. We also provide ablation study of each component and qualitative results of the model.
+
+# 4.1. Datasets and Metrics
+
+nuScenes [6]: This dataset contains 1000 20-second log snippets, with 32-beam LiDAR sweeps at $20\mathrm{Hz}$ and corresponding 3D object labels (linearly interpolated from 2 Hz annotations). Due to version mismatch between maps and logs, some log snippets have very large localization er
+
+ror, we therefore do not use maps. We train a LiDAR only PnPNet model and evaluate on the car class following the official train/val split.
+
+ATG4D: Although nuScenes dataset contains 1000 snippets, they come from 84 unique driving journeys only. The object labels are also constrained to be within 50 meters range, with $63.5\%$ of the cars being parked. In order to better evaluate the real-world performance, especially in urban areas, we evaluate also on the more challenging driving dataset ATG4D [48]. Specifically, ATG4D contains $\sim 5000$ log snippets from $\sim 1000$ unique journeys in North America. Each snippet has 64-beam LiDAR sweeps at $10\mathrm{Hz}$ with corresponding HD maps (drivable area, lane graph, and ground height) and 3D object labels within 100 meters range ( $48.1\%$ of the cars are parked). We split 500 snippets out for evaluation without journey overlap with the training data. We train a LiDAR+map PnPNet model and evaluate on the vehicle and pedestrian classes.
+
+Modular metrics: We simply follow the detection and tracking metrics defined by nuScenes [6] for a fair comparison with other state-of-the-arts. Specifically, we use Average Precision (AP) for detection and MOT metrics [3] for tracking. Metrics are computed under the constrained setting, where we only evaluate on visible objects (with at least 1 LiDAR point observation).
+
+System metrics: We define system metrics to evaluate the performance of end-to-end perception and prediction, where prediction is conducted on detections instead of ground-truth labels. Specifically, for perception we use AP
+
+
+Figure 4. Ablation study on object track length $T$ . Longer track achieves similar perception results but better prediction results. We use $T = 16$ in PnPNet.
+
+and maximum object recall, and for prediction we use Average Displacement Error (ADE) over 3 seconds (with 1 second interval) and Final Displacement Error (FDE) at 3 seconds. Prediction metrics are computed on True Positive (TP) detections at $0.5\mathrm{IoU}$ . To mimic real-world setting, we evaluate on all objects (including totally occluded ones, which are critical for safety on a self-driving vehicle).
+
+# 4.2. Main Results
+
+3D object detection: We evaluate the detection module of PnPNet on nuScenes, in comparison with other state-of-the-art 3D detectors. Table 1 shows that our detector outperforms the 1st-rank approach Megvii [53] in most metrics, with larger gains at higher localization precision (0.8% AP improvement at 0.5 meter threshold).
+
+Multi-object tracking: We evaluate the detection and tracking modules of PnPNet on nuScenes, in comparison with the 1st-rank tracker [13] (with Megvii detections [53]) on the leaderboard. We also add another tracking baseline that replaces our tracking module with a self-implemented Kalman Filtering based tracker (denoted as "PnPNet, KF tracker"). Table 2 shows that while our KF tracker baseline surpasses [13] by $2.6\%$ in the ranking metric AMOTA, the proposed PnPNet outperforms [13] by $8.0\%$ . In terms of fine-grained metrics, PnPNet has more complete trajectories (fewer identity switches and fragmentations), quicker occlusion recovery (smaller track initialization duration and gap duration), and more precise trajectories (smaller AMOTP).
+
+End-to-end perception and prediction: Now we evaluate PnPNet in terms of end-to-end perception and prediction on both nuScenes and ATG4D datasets with system metrics under the real-world setting (including totally occluded objects), with an evaluation frame rate of $10\mathrm{Hz}$ . We compare with the baseline model that also performs end-to-end perception and prediction, but without tracking in the loop (i.e., we remove the tracking module, and add the predic
+
+| Module removed | AP (%) ↑ @0.5IoU | MaxRec. (%) ↑ @0.1IoU | ADE (m) ↓ 90%TP | FDE (m) ↓ 90%TP |
| motion feature | -0.2 | -0.1 | +6.2% | +5.5% |
| single object track | -1.7 | -1.7 | +2.0% | +2.0% |
| trajectory rescore | -7.9 | -0.4 | +4.7% | +4.8% |
| trajectory refine | -2.1 | -1.6 | +4.8% | +4.7% |
| whole track module | -2.2 | -1.6 | +18% | +17% |
+
+Table 4. Ablation study on discrete-continuous tracking. We remove one module from the full PnPNet with other modules unchanged and report the relative performance change.
+
+tion header on top of the detection backbone network). We denote this baseline as "PnPNet, w/o track", which can be considered as a re-implementation of [28]. By comparing with this baseline we can measure the effectiveness of the two main contributions of PnPNet, namely the trajectory representation and the discrete-continuous tracking.
+
+Table 3 shows that PnPNet consistently outperforms the baseline in all system metrics on two object classes and two datasets, achieving up to $2\%$ AP gain (note that AP of PnPNet here is evaluated on tracks), up to $4\%$ recall gain, and up to $20\%$ prediction improvement. The consistent improvements in different object classes and sensor configurations showcase the generality of the proposed method. More specifically, perception-wise, PnPNet is able to recover from long-term occlusion thanks to the proposed tracking module, which is revealed by up to $4\%$ boost in recall at 0.1 IoU. Besides occlusion recovery, PnPNet also benefits from trajectory estimation (for both confidence scores and waypoints), suggested by around $2\%$ absolute gain in AP at 0.5 IoU. Prediction-wise, PnPNet achieves $8\%$ to $20\%$ relative improvements, which mainly come from two aspects: better perception results from tracking, and stronger object representation at trajectory level. In particular, the gain becomes larger at lower recall ( $60\%$ TP) when the perception results are more confident and precise, and still remains significant at $90\%$ TP where the perception results are noisy. We also observe larger gains on ATG4D dataset compared with nuScenes due to larger proportion of moving objects.
+
+# 4.3. Ablation Study
+
+We conduct ablation studies on two key components of PnPNet: the object trajectory representation and the discrete-continuous tracker. Note that all ablations are evaluated on ATG4D vehicles with system metrics.
+
+Object track length: We compare PnPNet using different lengths of object track in Figure 4. From the results we see the history length does not affect perception performance much, suggesting that perception relies more on short-term observations. However, longer track does achieve lower prediction errors, which indicates that long-term history is helpful to future prediction. Prediction performance
+
+
+
+
+
+
+
+
+Figure 5. Qualitative results of PnPNet on ATG4D. We visualize the perception and prediction results of vehicles and pedestrians up to 100 meters far away, where the ego car is located at the middle left of each frame heading to the right.
+
+
+
+
+
+plateaus at around 16 frames (1.6 seconds), as real-world traffic changes often.
+
+Importance of explicit motion: One strong finding of PnPNet that was not exploited in previous joint models [28, 8] is the fact that exploiting motion from explicit object trajectories is more accurate than inferring motion from the features computed from the raw sensor data. We verify this by removing the motion feature from the trajectory representation of PnPNet, with other components unchanged. As shown in Table 4, the detection performance remains almost the same, but the prediction error increases significantly ( $\sim 6\%$ ). This suggests that the explicit motion history obtained from tracking is helpful for prediction.
+
+Single-object tracking for occlusion recovery: PnPNet recovers from object occlusion by tracking existing tracks through time. We implement this with a single-object tracker so that current frame's information (e.g., map context) is leveraged as well. If this capability is removed from PnPNet, we observe a performance drop in both perception and prediction (see Table 4). In particular, in the absence of the single-object tracker the recall drops by $1.7\%$ due to object occlusion, and prediction errors increase by $2\%$ due to incomplete motion history.
+
+Effect of trajectory estimation: In addition to solving the data association problem in multi-object tracking, PnPNet also re-estimates the trajectory by re-scoring it and refining its waypoints. While re-scoring does not affect the maximum object recall, it determines the order of object trajectories from multiple sources (newborn objects, matched
+
+tracks, and tracks through occlusion) and therefore affects the order-dependent metrics. From the results shown in Table 4 we can see that, without re-scoring the detection AP drops significantly. Similar performance drop happens in the prediction metric as well. For trajectory refinement, since it reduces the localization error of online generated perception results, it helps establish a smoother and more accurate motion history. From the results we see that without the trajectory refinement all metrics degrade.
+
+# 4.4. Qualitative Results
+
+In Figure 5 we showcase some qualitative results of the proposed model, which illustrate that by learning trajectory representations and explicitly solving multi-object tracking, PnPNet is able to recover from long-term object occlusion, and generate more accurate future trajectories.
+
+# 5. Conclusion
+
+In this paper we proposed PnPNet, an end-to-end model for perception and prediction in autonomous driving. Instead of designing individual models for each subtask like the traditional engineering stack, we follow the recent advances of joint modeling with shared feature computation, and further improve upon the paradigm with a novel multi-object tracker that generates object trajectories online from detections and exploits trajectory level features for motion forecasting. We validate PnPNet on two large-scale driving datasets, and show significant improvements in both perception and prediction metrics. In the future we plan to apply our approach to more complex downstream tasks like multi-agent behavior prediction and motion planning.
+
+# References
+
+[1] Alexandre Alahi, Kratarth Goel, Vignesh Ramanathan, Alexandre Robicquet, Li Fei-Fei, and Silvio Savarese. Social lstm: Human trajectory prediction in crowded spaces. In CVPR, 2016. 2
+[2] Mayank Bansal, Alex Krizhevsky, and Abhijit Ogale. Chauffeurnet: Learning to drive by imitating the best and synthesizing the worst. arXiv preprint arXiv:1812.03079, 2018. 1, 2
+[3] Keni Bernardin, Alexander Elbs, and Rainer Stiefelhagen. Multiple object tracking performance metrics and evaluation in a smart room environment. In Sixth IEEE International Workshop on Visual Surveillance, in conjunction with ECCV, 2006. 6
+[4] Luca Bertinetto, Jack Valmadre, Joao F Henriques, Andrea Vedaldi, and Philip HS Torr. Fully-convolutional siamese networks for object tracking. In ECCV, 2016. 5
+[5] Michael D Breitenstein, Fabian Reichlin, Bastian Leibe, Esther Koller-Meier, and Luc Van Gool. Online multiperson tracking-by-detection from a single, uncalibrated camera. TPAMI, 33(9):1820-1833, 2010. 2
+[6] Holger Caesar, Varun Bankiti, Alex H. Lang, Sourabh Vora, Venice Erin Liong, Qiang Xu, Anush Krishnan, Yu Pan, Giancarlo Baldan, and Oscar Beijbom. nuscenes: A multimodal dataset for autonomous driving. arXiv preprint arXiv:1903.11027, 2019. 6
+[7] Sergio Casas, Cole Gulino, Renjie Liao, and Raquel Urtasun. Spatially-aware graph neural networks for relational behavior forecasting from sensor data. In ICRA, 2020. 2
+[8] Sergio Casas, Wenjie Luo, and Raquel Urtasun. Intentnet: Learning to predict intention from raw sensor data. In CoRL, 2018. 1, 2, 3, 5, 8
+[9] Yuning Chai, Benjamin Sapp, Mayank Bansal, and Dragomir Anguelov. Multipath: Multiple probabilistic anchor trajectory hypotheses for behavior prediction. CoRL, 2019. 1, 2
+[10] Xiaozhi Chen, Kaustav Kundu, Ziyu Zhang, Huimin Ma, Sanja Fidler, and Raquel Urtasun. Monocular 3d object detection for autonomous driving. In CVPR, 2016. 2
+[11] 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, 2015. 2
+[12] Xiaozhi Chen, Huimin Ma, Ji Wan, Bo Li, and Tian Xia. Multi-view 3d object detection network for autonomous driving. In CVPR, 2017. 2
+[13] Hsu-kuang Chiu, Antonio Prioletti, Jie Li, and Jeannette Bohg. Probabilistic 3d multi-object tracking for autonomous driving. arXiv preprint arXiv:2001.05673, 2020. 6, 7
+[14] Peng Chu and Haibin Ling. Famnet: Joint learning of feature, affinity and multi-dimensional assignment for online multiple object tracking. In ICCV, 2019. 2
+[15] Henggang Cui, Vladan Radosavljevic, Fang-Chieh Chou, Tsung-Han Lin, Thi Nguyen, Tzu-Kuo Huang, Jeff Schneider, and Nemanja Djuric. Multimodal trajectory predictions for autonomous driving using deep convolutional networks. In ICRA, 2019. 2
+
+[16] Nemanja Djuric, Vladan Radosavljevic, Henggang Cui, Thi Nguyen, Fang-Chieh Chou, Tsung-Han Lin, Nitin Singh, and Jeff Schneider. Uncertainty-aware short-term motion prediction of traffic actors for autonomous driving. In WACV, 2020. 1, 2
+[17] Davi Frossard and Raquel Urtasun. End-to-end learning of multi-sensor 3d tracking by detection. In ICRA, 2018. 2
+[18] Agrim Gupta, Justin Johnson, Li Fei-Fei, Silvio Savarese, and Alexandre Alahi. Social gan: Socially acceptable trajectories with generative adversarial networks. In CVPR, 2018. 2
+[19] Hasith Karunasekera, Han Wang, and Handuo Zhang. Multiple object tracking with attention to appearance, structure, motion and size. IEEE Access, 7:104423-104434, 2019. 2
+[20] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. *ICLR*, 2014. 6
+[21] Harold W Kuhn. The hungarian method for the assignment problem. Naval research logistics quarterly, 2(1-2):83-97, 1955. 5
+[22] 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, 2019. 5
+[23] Namhoon Lee, Wongun Choi, Paul Vernaza, Christopher B Choy, Philip HS Torr, and Manmohan Chandraker. Desire: Distant future prediction in dynamic scenes with interacting agents. In CVPR, 2017. 2
+[24] Philip Lenz, Andreas Geiger, and Raquel Urtasun. Followme: Efficient online min-cost flow tracking with bounded memory and computation. In ICCV, 2015. 2
+[25] Junwei Liang, Lu Jiang, Juan Carlos Niebles, Alexander Hauptmann, and Li Fei-Fei. Peeking into the future: Predicting future person activities and locations in videos. In CVPR, 2019. 2
+[26] Ming Liang, Bin Yang, Yun Chen, Rui Hu, and Raquel Urtasun. Multi-task multi-sensor fusion for 3d object detection. In CVPR, 2019. 2
+[27] Ming Liang, Bin Yang, Shenlong Wang, and Raquel Urtasun. Deep continuous fusion for multi-sensor 3d object detection. In ECCV, 2018. 2
+[28] Wenjie Luo, Bin Yang, and Raquel Urtasun. Fast and furious: Real time end-to-end 3d detection, tracking and motion forecasting with a single convolutional net. In CVPR, 2018. 1, 2, 3, 5, 6, 7, 8
+[29] Wei-Chiu Ma, De-An Huang, Namhoon Lee, and Kris M Kitani. Forecasting interactive dynamics of pedestrians with fictitious play. In CVPR, 2017. 2
+[30] James Malcolm, Yogesh Rathi, and Allen Tannenbaum. Multi-object tracking through clutter using graph cuts. In ICCV, 2007. 2
+[31] Gregory P Meyer, Jake Charland, Darshan Hegde, Ankit Laddha, and Carlos Vallespi-Gonzalez. Sensor fusion for joint 3d object detection and semantic segmentation. In CVPR Workshops, 2019. 2
+[32] Gregory P Meyer, Ankit Laddha, Eric Kee, Carlos Vallespi-Gonzalez, and Carl K Wellington. Lasernet: An efficient probabilistic 3d object detector for autonomous driving. In CVPR, 2019. 2
+
+[33] Anton Milan, Konrad Schindler, and Stefan Roth. Multi-target tracking by discrete-continuous energy minimization. TPAMI, 38(10):2054-2068, 2015. 2, 3
+[34] 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, 2018. 2
+[35] Nicholas Rhinehart, Rowan McAllister, Kris Kitani, and Sergey Levine. Precog: Prediction conditioned on goals in visual multi-agent settings. In ICCV, 2019. 2
+[36] Samuel Schulter, Paul Vernaza, Wongun Choi, and Manmohan Chandraker. Deep network flow for multi-object tracking. In CVPR, 2017. 2
+[37] 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 ICRA, 2018. 2
+[38] Shaoshuai Shi, Xiaogang Wang, and Hongsheng Li. Pointcnn: 3d object proposal generation and detection from point cloud. In CVPR, 2019. 2
+[39] Andrea Simonelli, Samuel Rota Rota Bulò, Lorenzo Porzi, Manuel López-Antequera, and Peter Kontschieder. Disentangling monocular 3d object detection. In ICCV, 2019. 5
+[40] Siyu Tang, Bjoern Andres, Miykhaylo Andriluka, and Bernt Schiele. Subgraph decomposition for multi-target tracking. In CVPR, 2015. 2
+[41] 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, 2019. 2
+[42] Xinshuo Weng and Kris Kitani. A baseline for 3d multi-object tracking. arXiv preprint arXiv:1907.03961, 2019. 2, 5
+[43] Yu Xiang, Alexandre Alahi, and Silvio Savarese. Learning to track: Online multi-object tracking by decision making. In ICCV, 2015. 2
+[44] Danfei Xu, Dragomir Anguelov, and Ashesh Jain. Pointfusion: Deep sensor fusion for 3d bounding box estimation. In CVPR, 2018. 2
+[45] Xu Yan, Xuqing Wu, Ioannis A. Kakadiaris, and Shishir K. Shah. To track or to detect? an ensemble framework for optimal selection. In ECCV, 2012. 2
+[46] Yan Yan, Yuxing Mao, and Bo Li. Second: Sparsely embedded convolutional detection. Sensors, 18(10):3337, 2018. 2
+[47] Bin Yang, Ming Liang, and Raquel Urtasun. Hdnet: Exploiting hd maps for 3d object detection. In CoRL, 2018. 2, 3
+[48] Bin Yang, Wenjie Luo, and Raquel Urtasun. Pixor: Realtime 3d object detection from point clouds. In CVPR, 2018. 2, 3, 6
+[49] Zetong Yang, Yanan Sun, Shu Liu, Xiaoyong Shen, and Jiaya Jia. Std: Sparse-to-dense 3d object detector for point cloud. In ICCV, 2019. 2
+[50] Wenyuan Zeng, Wenjie Luo, Simon Suo, Abbas Sadat, Bin Yang, Sergio Casas, and Raquel Urtasun. End-to-end interpretable neural motion planner. In CVPR, 2019. 1, 2, 3
+[51] Wenwei Zhang, Hui Zhou, Shuyang Sun, Zhe Wang, Jianping Shi, and Chen Change Loy. Robust multi-modality multi-object tracking. In ICCV, 2019. 2
+
+[52] Yin Zhou and Oncel Tuzel. Voxelnet: End-to-end learning for point cloud based 3d object detection. In CVPR, 2018. 2
+[53] Benjin Zhu, Zhengkai Jiang, Xiangxin Zhou, Zeming Li, and Gang Yu. Class-balanced grouping and sampling for point cloud 3d object detection. arXiv preprint arXiv:1908.09492, 2019. 5, 7
\ No newline at end of file
diff --git a/pnpnetendtoendperceptionandpredictionwithtrackingintheloop/images.zip b/pnpnetendtoendperceptionandpredictionwithtrackingintheloop/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..066fbf4b4b29ff921c22d3598edb37f9b602aeaf
--- /dev/null
+++ b/pnpnetendtoendperceptionandpredictionwithtrackingintheloop/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3e17d5ad217e5579221572e72cd6f29a1604ac2378de2a40ba7d2f15ffd0e42e
+size 596143
diff --git a/pnpnetendtoendperceptionandpredictionwithtrackingintheloop/layout.json b/pnpnetendtoendperceptionandpredictionwithtrackingintheloop/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..26f3b8775fd610464e0aa11d7ee7077cb721eaab
--- /dev/null
+++ b/pnpnetendtoendperceptionandpredictionwithtrackingintheloop/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:36dc2a615d924819aaecb307908e312923dd843b34b8f4175b915561a1f6fb96
+size 371975
diff --git a/pointasnlrobustpointcloudsprocessingusingnonlocalneuralnetworkswithadaptivesampling/b1f3cd20-f804-42dc-800f-6ce6ecfd1eca_content_list.json b/pointasnlrobustpointcloudsprocessingusingnonlocalneuralnetworkswithadaptivesampling/b1f3cd20-f804-42dc-800f-6ce6ecfd1eca_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..c9f514acf15c62ddf335c03a70ac3f4e1ac455fe
--- /dev/null
+++ b/pointasnlrobustpointcloudsprocessingusingnonlocalneuralnetworkswithadaptivesampling/b1f3cd20-f804-42dc-800f-6ce6ecfd1eca_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1145f51c1da647ed2be8e4f2167dc2bb56139999afac33482615f9f0906a691d
+size 77977
diff --git a/pointasnlrobustpointcloudsprocessingusingnonlocalneuralnetworkswithadaptivesampling/b1f3cd20-f804-42dc-800f-6ce6ecfd1eca_model.json b/pointasnlrobustpointcloudsprocessingusingnonlocalneuralnetworkswithadaptivesampling/b1f3cd20-f804-42dc-800f-6ce6ecfd1eca_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..386efdd65fa13ea57acce51d9edc50e1afb8a54d
--- /dev/null
+++ b/pointasnlrobustpointcloudsprocessingusingnonlocalneuralnetworkswithadaptivesampling/b1f3cd20-f804-42dc-800f-6ce6ecfd1eca_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8ee53d5f41ff5af47077e4933aa6d5e9e125ae66502a091894d4625a2a90c6a6
+size 95775
diff --git a/pointasnlrobustpointcloudsprocessingusingnonlocalneuralnetworkswithadaptivesampling/b1f3cd20-f804-42dc-800f-6ce6ecfd1eca_origin.pdf b/pointasnlrobustpointcloudsprocessingusingnonlocalneuralnetworkswithadaptivesampling/b1f3cd20-f804-42dc-800f-6ce6ecfd1eca_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..8fee0b1664360e1233f59d8c71af133be91b10b7
--- /dev/null
+++ b/pointasnlrobustpointcloudsprocessingusingnonlocalneuralnetworkswithadaptivesampling/b1f3cd20-f804-42dc-800f-6ce6ecfd1eca_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a04910b742d8abaee5706de2a56313fb221391eafa1a66808ba5db66f1f79333
+size 4087825
diff --git a/pointasnlrobustpointcloudsprocessingusingnonlocalneuralnetworkswithadaptivesampling/full.md b/pointasnlrobustpointcloudsprocessingusingnonlocalneuralnetworkswithadaptivesampling/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..061f45354c52f6d8cfc5aa473215808275fcb03a
--- /dev/null
+++ b/pointasnlrobustpointcloudsprocessingusingnonlocalneuralnetworkswithadaptivesampling/full.md
@@ -0,0 +1,318 @@
+# PointASNL: Robust Point Clouds Processing using Nonlocal Neural Networks with Adaptive Sampling
+
+Xu Yan $^{1,2}$ Chaoda Zheng $^{2,3}$ Zhen Li $^{1,2,*}$ Sheng Wang $^{4}$ Shuguang Cui $^{1,2}$ $^{1}$ The Chinese University of Hong Kong (Shenzhen), $^{2}$ Shenzhen Research Institute of Big Data South China University of Technology, $^{4}$ Tencent AI Lab
+
+{xuyanl@link., lizhen@, shuguangcui@}cuhk.edu.cn
+
+# Abstract
+
+Raw point clouds data inevitably contains outliers or noise through acquisition from 3D sensors or reconstruction algorithms. In this paper, we present a novel end-to-end network for robust point clouds processing, named PointASNL, which can deal with point clouds with noise effectively. The key component in our approach is the adaptive sampling (AS) module. It first re-weights the neighbors around the initial sampled points from farthest point sampling (FPS), and then adaptively adjusts the sampled points beyond the entire point cloud. Our AS module can not only benefit the feature learning of point clouds, but also ease the biased effect of outliers. To further capture the neighbor and long-range dependencies of the sampled point, we proposed a local-nonlocal (L-NL) module inspired by the nonlocal operation. Such L-NL module enables the learning process insensitive to noise. Extensive experiments verify the robustness and superiority of our approach in point clouds processing tasks regardless of synthesis data, indoor data, and outdoor data with or without noise. Specifically, PointASNL achieves state-of-the-art robust performance for classification and segmentation tasks on all datasets, and significantly outperforms previous methods on real-world outdoor SemanticKITTI dataset with considerate noise. Our code is released through https://github.com/yanx27/PointASNL.
+
+# 1. Introduction
+
+With the popularity of 3D sensors, it's relatively easy for us to obtain more raw 3D data, e.g., RGB-D data, LiDAR data, and MEMS data [44]. Considering point clouds as the fundamental representative of 3D data, the understanding of point clouds has attracted extensive attention for various applications, e.g., autonomous driving [29], robotics [37], and place recognition [23]. Here, a point cloud has two components: the points $\mathcal{P} \in \mathbb{R}^{N \times 3}$ and the features $\mathcal{F} \in \mathbb{R}^{N \times D}$ .
+
+
+Figure 1. PointASNL for robust point clouds processing. The adaptive sampling module adaptively adjusts the sampled point from point clouds with noise. Besides, the local-nonlocal module not only combines the local features in Euclidean space, but also considers the long-range dependency in feature space.
+
+Unlike 2D images, the sparsity and disorder properties make robust point clouds processing a challenging task. Furthermore, the raw data obtained from those 3D sensors or reconstruction algorithms inevitably contain outliers or noise in real-world situations.
+
+In this work, we present a novel end-to-end network for robust point clouds processing, named PointASNL, which can deal with point clouds with noise or outliers effectively. Our proposed PointASNL mainly consists of two general modules: adaptive sampling (AS) module and local-nonlocal (L-NL) module. The AS module is used to adjust the coordinates and features of the sampled points, whereas the L-NL module is used to capture the neighbor and long-range dependencies of the sampled points.
+
+Unlike the cases in 2D images, traditional convolution operations cannot directly work on unstructured point cloud data. Thus, most of the current methods usually use sampling approaches to select points from the original point clouds for conducting local feature learning. Among these sampling algorithms, farthest point sampling (FPS) [25], Poisson disk sampling (PDS) [11], and Gumbel subset sampling (GSS) [48] are proposed in previous works. However, as the most representative one, FPS is rooted in Euclidean distance, which is task-dependent and outliers sen
+
+sitive. PDS, a predefined uniformly sampling method, also cannot solve the problem above in a data-driven way. GSS only performs sampling from a high-dimension embedding space and ignores the spatial distribution of points. Furthermore, the shared key issue in these approaches is that the sampled points are limited to a subset of the original point clouds. Therefore, as shown in the left part of Fig. 1, suppose an outlier point is sampled, it will influence the downstream process inevitably.
+
+To overcome the issues mentioned above, we propose a differentiable adaptive sampling (AS) module to adjust the coordinates of the initial sampled points (e.g., from FPS) via a data-driven way. Such coordinate adjusting facilitates to fit the intrinsic geometry submanifold and further shifts to correct points beyond original point clouds without the influence of outliers. Thus, the AS module can not only benefit point feature learning, but also improve the model robustness to noise.
+
+To further enhance the performance as well enables the learning process insensitive to noise, we proposed a local-nonlocal (L-NL) module for capturing neighbor and long-range dependencies of the sampled points. The underlying reason is that, currently, most appealing methods for feature learning is to query a local group around the each sampled point, and then they construct the graph-based learning [30, 42, 50, 14] or define convolution-like operations [12, 47, 8, 3, 44, 34] (we denote them as Point Local Cell). Nonetheless, such point local cell only considers local information interaction in the neighbor area and then acquires the global context through a hierarchical structure, which usually leads to bottom-up feature learning. Inspired by the success of the Nonlocal network [41], we innovatively design this L-NL module, in which the key component is the Point Nonlocal Cell. In particular, the point nonlocal cell allows the computation of the response of a sampled point as a weighted sum of the influences of the entire point clouds, instead of just within a limited neighbor range. With the learned long-dependency correlation, the L-NL module can provide more precise information for robust point clouds processing. As shown in the right part of Fig. 1, although the sampled points within the lower engine are covered with noise, our L-NL module can still learn the features from the other engine with a different noise distribution.
+
+Our main contribution can be summarized as follows: 1) We propose an end-to-end model for robust point clouds processing, PointASNL, which can effectively ease the influence of outliers or noise; 2) With the proposed adaptive sampling (AS) module, PointASNL can adaptively adjust the coordinates of the initial sampled points, making them more suitable for feature learning with intrinsic geometry and more robust for noisy outliers; and 3) We further design a point nonlocal cell in the proposed local-nonlocal (L-NL)
+
+module, which enhances the feature learning in point local cells. Extensive experiments on classification and segmentation tasks verify the robustness of our approach.
+
+# 2. Related Work
+
+Volumetric-based and Projection-based Methods. Considering the sparsity of point clouds and memory consumption, it is not very effective to directly voxelized point clouds and then use 3D convolution for feature learning. Various subsequent improvement methods have been proposed, e.g., efficient spatial-temporal convolution MinkowskiNet [5], computational effective Submanifold sparse convolution [7], and Oc-tree based neural networks O-CNN [39] and OctNet [27]. Such methods greatly improve the computational efficiency, thus leading to the entire point clouds as input without sampling and superior capacity. There are also other grid-based methods using traditional convolution operations, e.g., projecting 3D data to multi-view 2D images [32] and lattice space [31]. Yet, the convolution operation of these methods lacks the ability to capture nonlocally geometric features.
+
+Point-based Learning Methods. PointNet [24] is the pioneering work directly on sparse and unstructured point clouds, which summarizes global information by using pointwise multi-layer perceptions (MLPs) followed by the max-pooling operation. PointNet++ [25] further applies a hierarchical structure with k-NN grouping followed by max-pooling to capture regional information. Since it aggregates local features simply to the largest activation, regional information is not yet fully utilized. Recently, much effort has been made for effective local feature aggregation. PointCNN [20] transforms neighboring points to the canonical order, which enables traditional convolution to play a normal role. Point2Sequence [21] uses the attention mechanism to aggregate the information of different local regions. Methods [47, 44, 11, 22, 30, 40] directly use the relationship between neighborhoods and local centers to learn a dynamic weight for convolution, where ECC [30] and RS-CNN [22] use ad-hoc defined 6-D and 10-D vectors as edge relationship, PCCN [40] and PointConv [44] project the relative position of two points to a convolution weight. A-CNN [16] uses ring convolution to encode features that have different distances from the local center points, and PointWeb [50] further connects every point pairs in a local region to obtain more representative region features. Still, these methods only focus on local feature aggregation and acquire global context from local features through a hierarchical structure. On the other hand, there are various works for learning the global context from the local features. A-SCN [46] uses a global attention mechanism to aggregate global features but lacks the support of local information, which does not achieve good results. DGCNN [42] proposes the EdgeConv module to generate edge features and search neighbors in
+
+
+(a) Adaptive Sampling (AS) Module
+
+
+(b) Local-NonLocal Module
+Figure 2. Part (a) shows adaptive sampling (AS) module, which firstly updates features of grouping point by reasoning group relationship, then normalized weighs re-weight initial sampled points to achieve new sampled points. Part (b) illustrates the construction of local-nonlocal (L-NL) module, which consists of point local cell and point nonlocal cell. $N_{s}$ stands for sampled point number, $N$ stands for point number of entire point clouds, $D_{l}, D_{mid}$ , and $D_{l+1}$ stand for channel numbers.
+
+features space. LPD-Net [23] further extends DGCNN on both spatial neighbors and features neighbors aggregation. Nonetheless, the neighbors in the feature space are not representative of the global features, and spatial receptive fields of the network gradually become confused without a hierarchical structure.
+
+Outlier Removal and Sampling Strategy. Outliers and noise usually exist in raw point clouds data. Previous robust statistics methods [1] for outlier removal suffer from non-trivial parameter tuning or require additional information [43]. Various data-driven methods [9, 26] are proposed for outlier removal, which first discard some outliers and then projects noisy points to clean surfaces. Yet, such methods cannot inherently merge the robust point cloud feature learning with outlier removal in a joint learning manner. On the other hand, deep learning based point cloud processing methods usually sample points to decrease computational consumption. Though, most sampling methods are limited by noise sensitivity and not driven by data [25, 11], or without the consideration of spatial distribution [48]. SO-Net [19] uses an unsupervised neural network, say self-organizing map (SOM), to utilize spatial distribution of point clouds. It then employs PointNet++ [25] to multiple smaller sampled 'nodes'. However, SO-Net does not belong to online adaptive sampling. Under the assumption of local label consistency, some works use the geometric centers of voxel grids to uniformly represent sampled points [34, 30], which ignores the difference of point distribution influence. Still, these methods are extremely sensitive to noise and cannot learn the spatial distribution of sampled points at the same time.
+
+# 3. Our Method
+
+In this paper, we propose two modules in PointASNL, namely adaptive sampling (AS) module in Sec. 3.1 and local-nonlocal (L-NL) module in Sec. 3.2. In Sec.3.3, we
+
+combine AS and L-NL modules in a hierarchical manner to form our proposed PointASNL model.
+
+# 3.1. Adaptive Sampling (AS) Module
+
+Farthest point sampling (FPS) is widely used in many point cloud framework, as it can generate a relatively uniform sampled points. Therefore, their neighbors can cover all input point clouds as much as possible. Nevertheless, there are two main issues in FPS: (1) It is very sensitive to the outlier points, making it highly unstable for dealing with real-world point clouds data. (2) Sampled points from FPS must be a subset of original point clouds, which makes it challenging to infer the original geometric information if occlusion and missing errors occur during acquisition.
+
+To overcome the above-mentioned issues, we first use FPS to gain the relatively uniform points as original sampled points. Then our proposed AS module adaptively learns shifts for each sampled point. Compared with the similar process widely used in mesh generation [38], the downsampling operation must be taken into account both in spatial and feature space when the number of points is reduced. For the AS module, let $\mathcal{P}_s \in \mathbb{R}^{N_s \times 3}$ as the sampled $N_s$ points from $N$ input points of certain layer, $x_i$ from $\mathcal{P}_s$ and $f_i$ from $\mathcal{F}_s \in \mathbb{R}^{N_s \times D_l}$ as a sampled point and its features. We first search neighbors of sampled points as groups via k-NN query, then use general self-attention mechanism [35] for group features updating.
+
+As shown in Fig. 2 (a), we update group features by using attention within all group members. For $x_{i,1}, \ldots, x_{i,K} \in \mathcal{N}(x_i)$ and their corresponding features $f_{i,1}, \ldots, f_{i,K}$ , where $\mathcal{N}(x_i)$ is $K$ nearest neighbors of sampled point $x_i$ , feature updating of group member $x_{i,k}$ can be written as
+
+$$
+f _ {i, k} = \mathcal {A} \left(\mathcal {R} \left(x _ {i, k}, x _ {i, j}\right) \gamma \left(x _ {i, j}\right), \forall x _ {i, j} \in \mathcal {N} \left(x _ {i}\right)\right), \tag {1}
+$$
+
+where a pairwise function $\mathcal{R}$ computes a high level relationship between group members $x_{i,k}, x_{i,j} \in \mathcal{N}(x_i)$ . The
+
+unary function $\gamma$ change the each group feature $f_{i,j}$ from dimension $D_l$ to another hidden dimension $D'$ and $\mathcal{A}$ is a aggregation function.
+
+For less computation, we consider $\gamma$ in the form of a linear transformation of point features $\gamma (x_{i,j}) = W_{\gamma}f_{i,j}$ and relationship function $\mathcal{R}$ is dot-product similarity of two points as follows,
+
+$$
+\mathcal {R} \left(x _ {i, k}, x _ {i, j}\right) = \operatorname {S o f t m a x} \left(\phi \left(f _ {i, k}\right) ^ {T} \theta \left(f _ {i, j}\right) / \sqrt {D ^ {\prime}}\right), \tag {2}
+$$
+
+where $\phi$ and $\theta$ are independent two linear transformations and can be easily implemented by independent 1D convolution $Conv: \mathbb{R}^{D_l} \mapsto \mathbb{R}^{D'}$ , where $D_l$ and $D'$ are input and output channel, respectively.
+
+After that, point-wise MLPs, i.e., $\sigma_{p}$ and $\sigma_{f}$ with softmax activation function on $K$ group members are used to obtain the corresponding intensity of each point in a group, which can be represented as normalized weights for each coordinate axis and features channel.
+
+$$
+F _ {p} = \left\{\sigma_ {p} \left(f _ {i, k}\right) \right\} _ {k = 1} ^ {K}, \quad W _ {p} = \operatorname {S o f t m a x} \left(F _ {p}\right), \tag {3}
+$$
+
+$$
+F _ {f} = \left\{\sigma_ {f} \left(f _ {i, k}\right) \right\} _ {k = 1} ^ {K}, \quad W _ {f} = \operatorname {S o f t m a x} \left(F _ {f}\right),
+$$
+
+where $F_{p}, F_{f}, W_{p}, W_{f} \in \mathbb{R}^{K \times 1}$ are outputs of point-wise MLPs and normalized weights after softmax function. Finally, a adaptive shifting on both $K$ neighbors' coordinates from $X \in \mathbb{R}^{K \times 3}$ and their features from $F \in \mathbb{R}^{K \times D'}$ are implemented by the weighted sum operation. We obtain a new coordinate of the sampled point $x_{i}^{*}$ and its features $f_{i}^{*}$ by following operations,
+
+$$
+x _ {i} ^ {*} = \begin{array}{c} W _ {p} ^ {T} X, \\ T \end{array} \quad X = \left\{x _ {i, k} \right\} _ {k = 1} ^ {K}, \tag {4}
+$$
+
+$$
+f _ {i} ^ {*} = W _ {f} ^ {T} F, \quad F = \left\{f _ {i, k} \right\} _ {k = 1} ^ {K}.
+$$
+
+# 3.2. Local-Nonlocal (L-NL) Module
+
+Within our L-NL module, there are two cells: point local (PL) cell and point nonlocal (PNL) cell. Specifically, the PL cell can be any appealing algorithms (e.g., PointNet++ [25], PointConv [44]), and the PNL cell innovatively considers the correlations between sampled points and the entire point cloud in multi-scale. Consequently, the contextual learning of the point cloud is enhanced by combining the local and global information (See Fig. 2(b)).
+
+# 3.2.1 Point Local Cell
+
+The local features mining of point clouds often exploits the local-to-global strategy [25], which aggregates local features in each group and gradually increases the receptive field by hierarchical architectures. We adopt such methods in point local (PL) cell. Similar to the previous definition for a local sampled point $x_{i}$ , corresponding feature $f_{i}$ and neighborhoods $\mathcal{N}(x_i)$ , a generalized local aggregation function used in PL can be formulated as
+
+
+Figure 3. Inner structure of point nonlocal (PNL) cell. For the notations $N_{s}, N, D_{l}, D_{mid}$ please refer to the caption of Fig. 2, $D'$ is the intermediate channel numbers.
+
+$$
+f _ {i} ^ {l} = \mathcal {A} \left(\mathcal {L} \left(f _ {n}\right), \forall x _ {n} \in \mathcal {N} \left(x _ {i}\right)\right), \tag {5}
+$$
+
+where $f_{i}^{l}$ is updated features of local center $x_{i}$ , which is updated by local feature transformation function $\mathcal{L}$ and aggregation function $\mathcal{A}$ . For PointNet++ [25], $\mathcal{L}$ is multi-layer perceptions (MLPs) and $\mathcal{A}$ is max-pooling. Recently, more and more works directly design convolution operators on the local regions, which mainly change $\mathcal{L}$ to be a learnable weighted multiply obtained by neighbor relationships. Considering the efficiency and effectiveness of the operation in a compromise, we implement the convolution operation by adaptively projecting the relative position of two points to a convolution weight [40, 44], and aggregate local features,
+
+$$
+\mathcal {L} \left(f _ {n}\right) := g \left(x _ {n} - x _ {i}\right) f _ {n}, \tag {6}
+$$
+
+where $g$ is chosen as MLPs: $\mathbb{R}^3\mapsto \mathbb{R}^{D_l\times D_{mid}}$ , which transfers 3 dimension relative position to $D_{l}\times D_{mid}$ transformation matrix. $D_{l}$ represents the channel of the input features in certain layer and $D_{mid}$ is the channel of the updated features by PL cell.
+
+# 3.2.2 Point Nonlocal Cell
+
+Inspired by nonlocal neural networks [41] in 2D images for long-range dependencies learning, we design a specific point nonlocal (PNL) cell for global context aggregation (Fig. 3). There are two main differences between our point nonlocal cell and component proposed in [41]: (1) We use our sampled points as query points to calculate similarity with entire points in certain layers (say, key points $\mathcal{P}_{\mathrm{k}}$ ). Furthermore, our query points are not limited within a subset of input point clouds, as each sampled point adaptively updates its coordinate and features by the AS module (Sec. 3.1). (2) Our output channel is gradually increased with the down-sampling operation in each layer,
+
+which avoids information loss in the down-sampling encoder. Specifically, similar with Eq. 1, given query point $x_{i}$ and key point from $\mathcal{P}_{\mathrm{k}}$ , the nonlocal operation $\mathcal{NL}$ is defined as:
+
+$$
+\mathcal {N L} \left(x _ {i}, \mathcal {P} _ {\mathrm {k}}\right) := \mathcal {A} \left(\mathcal {R} \left(f _ {i}, f _ {j}\right) \gamma \left(f _ {j}\right), \forall x _ {j} \in \mathcal {P} _ {\mathrm {k}}\right), \tag {7}
+$$
+
+where $\mathcal{P}_k\in \mathbb{R}^{N\times 3}$ stands for the entire $N$ key points in a certain layer. Finally, a single nonlinear convolution layer $\sigma$ fuse the global context and adjust the channel of each point to the same dimension with the output of PL $D_{l + 1}$ (Eq. 5). Hence, for a sampled point $x_{i}$ , its updated feature is computed by PNL with function
+
+$$
+f _ {i} ^ {n l} = \sigma \left(\mathcal {N L} \left(x _ {i}, \mathcal {P} _ {k}\right)\right). \tag {8}
+$$
+
+# 3.2.3 Local-Nonlocal (L-NL) Fusion
+
+By combining PL and PNL, we construct a local-nonlocal module to encode local and global features simultaneously. As shown in Fig. 2 (b), it uses query points and key points as inputs, and exploit k-NN grouping for neighborhoods searching for each query point. Then, the group coordinates and features of each local region are sent through PL for local context encoding. For PNL, it uses whole key points to integrate global information for each query point via an attention mechanism. Finally, for each updated point, a channel-wise sum with a nonlinear convolution $\sigma$ is used to fuse local and global information.
+
+# 3.3. PointASNL
+
+By combining the two components proposed in Sec.3.1 and Sec 3.2 in each layer, we can implement a hierarchical architecture for both classification and segmentation tasks.
+
+For the classification, we designed a three-layer network and down-sample input points at two levels. In particular, the first two layers sample 512 and 124 points. The third layer concatenate global features of former two layers with max pooling, where new features are processed by fully connected layers, dropout, and softmax layer, respectively. The batch normalization layers and the ReLU function are used in each layer. Furthermore, skip connections [10] are used in the first two layers.
+
+For the segmentation (see Fig. 4), each encoder layer is similar with the setting in classification, but network has a deeper structure (1024-256-64-16). In the decoder part, we use 3-nearest interpolation [25] to get the up-sampled features and also use the L-NL Block for better feature learning. Furthermore, skip connections are used to pass the features between intermediate layers of the encoder and the decoder.
+
+# 4. Experiment
+
+We evaluate our PointASNL on various tasks, including synthetic dataset, large-scale indoor and outdoor scene seg
+
+
+Figure 4. Architecture of our PointASNL for point cloud semantic segmentation. The L-NL modules are used in both encoder and decoder.
+
+mentation dataset. In all experiments, we implement the models with Tensorflow on one GTX 1080Ti GPU.
+
+# 4.1. Classification
+
+We evaluate our model on synthetic dataset ModelNet10 and ModelNet40 [45] for classification, where ModelNet40 is composed of 9843 train models and 2468 test models in 40 classes and ModelNet10 is a subset of ModelNet40 that consists of 10 classes with 3991 training and 908 testing objects.
+
+Shape Classification. Training and testing data in classification are provided by [24]. For training, we select 1024 points as the input. The augmentation strategy includes the following components: random anisotropic scaling in range $[-0.8, 1.25]$ , translation in the range $[-0.1, 0.1]$ , and random dropout $20\%$ points. For testing, similar to [24, 25], we apply voting test using random scaling and then average the predictions. In Tab. 1, our method outperforms almost all state-of-the-art methods in 1024 input points except RS-CNN. Note that RS-CNN [22] can achieve $93.6\%$ from $92.9\%$ on uniformly sampling with tricky voting strategy (the best of 300 repeated tests), which is different from normal random sampling and once voting setting.
+
+Shape Classification with Noise. Most of the methods can achieve decent performance on synthetic datasets, as they have stable distribution and do not contain any noise. Though, such a good performance often leads to a lack of robustness of the model. To further verify the robustness of our model, we did the experiments like KC-Net [28] to replace a certain number of randomly picked points with random noise ranging $[-1.0, 1.0]$ during testing. The comparisons with PointNet [24], PointConv [44] and KC-Net [28] are shown in Fig. 5 (b). As shown in this figure, our model is very robust to noise, especially after adding the AS module. It can be seen from (c) and (d) that the adaptive sampling guarantees the proper shape of the sampled point clouds, making the model more robust.
+
+Table 1. Overall accuracy on ModelNet10 (M10) and ModelNet40 (M40) datasets. “pnt” stands for coordinates of point and “nor” stands for normal vector.
+
+| Method | input | #points | M10 | M40 |
| O-CNN [39] | ppt, nor | - | - | 90.6 |
| SO-Net [19] | ppt, nor | 2k | 94.1 | 90.9 |
| Kd-Net [15] | ppt | 32k | 94.0 | 91.8 |
| PointNet++ [25] | ppt, nor | 5k | - | 91.9 |
| SpiderCNN [47] | ppt, nor | 5k | - | 92.4 |
| KPConv [34] | ppt | 7k | - | 92.9 |
| SO-Net [19] | ppt, nor | 5k | 95.7 | 93.4 |
| Pointwise CNN [12] | ppt | 1k | - | 86.1 |
| ECC [30] | graphs | 1k | 90.8 | 87.4 |
| PointNet [24] | ppt | 1k | - | 89.2 |
| PAT [48] | ppt, nor | 1k | - | 91.7 |
| Spec-GCN [36] | ppt | 1k | - | 91.8 |
| PointGrid [18] | ppt | 1k | - | 92.0 |
| PointCNN [20] | ppt | 1k | - | 92.2 |
| DGCNN [42] | ppt | 1k | - | 92.2 |
| PCNN [3] | ppt | 1k | 94.9 | 92.3 |
| PointConv [44] | ppt, nor | 1k | - | 92.5 |
| A-CNN [16] | ppt, nor | 1k | 95.5 | 92.6 |
| Point2Sequence [21] | ppt | 1k | 95.3 | 92.6 |
| RS-CNN [22] | ppt | 1k | - | 93.6 |
| PointASNL | ppt | 1k | 95.7 | 92.9 |
| PointASNL | ppt, nor | 1k | 95.9 | 93.2 |
+
+# 4.2. Segmentation
+
+Indoor Scene Segmentation. Unlike classification on synthetic datasets [45, 49], indoor 3D scene segmentation is a more difficult task, because it is real-world point clouds and contains lots of outliers and noise. We use Stanford 3D Large-Scale Indoor Spaces (S3DIS) [2] and ScanNet v2 (ScanNet) [6] datasets to evaluate our model.
+
+S3DIS dataset is sampled from 3 different buildings, which includes 6 large-scale indoor areas with 271 rooms. Each point in this dataset has a semantic label that belongs to one of the 13 categories. We compare mean per-class IoU (mIoU) on both 6-fold cross-validation over all six areas and Area 5 (see supplementary material). ScanNet dataset contains 1513 scanned indoor point clouds for training and 100 test scans with all semantic labels unavailable. Each point has been labeled with one of the 21 categories. We submitted our results to the official evaluation server to compare against other state-of-the-art methods on the benchmark.
+
+During the training process, we generate training data by randomly sample $1.5m \times 1.5m \times 3m$ cubes with 8192 points from the indoor rooms. $0.1m$ padding of sampled cubes is used to increase the stability of the cube edge prediction, which is not considered in the loss calculation. On both datasets, we use points position and RGB information
+
+Table 2. Segmentation results on indoor S3DIS and ScanNet datasets in mean per-class IoU (mIoU,%).
+
+| Method | S3DIS | ScanNet |
| methods use unspecific number of points as input |
| TangentConv [33] | 52.8 | 40.9 |
| SPGraph [17] | 62.1 | - |
| KPConv [34] | 70.6 | 68.4 |
| methods use fixed number of points as input |
| PointNet++ [25] | 53.4 | 33.9 |
| DGCNN [42] | 56.1 | - |
| RSNet [13] | 56.5 | - |
| PAT [48] | 64.3 | - |
| PointCNN [20] | 65.4 | 45.8 |
| PointWeb [50] | 66.7 | - |
| PointConv [44] | - | 55.6 |
| HPEIN [14] | 67.8 | 61.8 |
| PointASNL | 68.7 | 63.0 |
+
+as features. We did not use the relative position in Point-Net [24] as a feature to train the model in S3DIS, because our model already learns relative position information well. During the evaluation process, we use a sliding window over the entire rooms with $0.5m$ stride to complement 5 voting test.
+
+In Tab. 2, we compare our PointASNL with other state-of-the-art methods under the same training and testing strategy (randomly chopping cubes with a fixed number of points), e.g., PointNet++ [25], PointCNN [20], PointConv [44], PointWeb [50] and HPEIN [14]. We also list results of another kind of methods (using points of unfixed number or entire scene as input), e.g., TangentConv [33]
+
+
+
+
+
+
+Figure 5. (a) Point cloud with some points being replaced with random noise. (b) Classification results of different models with noisy points, where PL, PNL, AS mean point local cell, point nonlocal cell and adaptive sampling, respectively. (c) Farthest point sampling on noisy data. (d) Adaptive sampling on noisy data, which maintain the distribution of the point cloud.
+
+
+
+
+Figure 6. Examples of indoor semantic segmentation on S3DIS and ScanNet datasets.
+
+Table 3. Semantic Segmentation results on SemanticKITTI, where "pnt" stands for coordinates of point and SPGraph [17] uses all of points as input.
+
+| Method | input | mIoU(%) |
| PointNet [24] | 50k pkt | 14.6 |
| SPGraph [17] | - | 17.4 |
| SPLATNet [31] | 50k pkt | 18.4 |
| PointNet++ [25] | 45k pkt | 20.1 |
| TangentConv [33] | 120k pkt | 40.9 |
| PointASNL | 8k pkt | 46.8 |
+
+and KPconv [34]. All methods use only point clouds as input without voxelization.
+
+As shown in Tab. 2, PointASNL outperforms all methods with the same training strategy in both S3DIS and ScanNet. In particular, our result is $8\%$ higher than previous state-of-the-art PointConv [44] on the ScanNet with the same experiment setting, in which the convolution design is similar to our PL cell. Nevertheless, without proper sampling and global information support, it cannot achieve such results with the same network architecture.
+
+On the other hand, training using more points as input can obtain more information. Instead of learning from randomly selected cubes with fixed number, KP-Conv [34] performs grid sampling based on the assumption of local label consistency so that larger shape of the point cloud can be included as input.
+
+The qualitative results are visualized in Fig. 6. Our method can correctly segments objects even in complex scenes.
+
+Outdoor Scene Segmentation. Compared with its indoor counterpart, an outdoor point cloud covers a wider area and has a relatively sparser point distribution with noise. For this reason, it is more challenging to inference from outdoor scenes.
+
+We evaluated our model on SemanticKITTI [4], which is a large-scale outdoor scene dataset, including 43,552 scans captured in the wild. The dataset consists of 22 sequences
+
+(00 to 10 as the training set, and 11 to 21 as the test set), each of which contains a series of sequential laser-scans. Each individual scan is a point clouds generated with a commonly used automotive LiDAR. The whole sequence can be generated by aggregating multiple consecutive scans.
+
+In our experiments, we only evaluated our model under a single scan semantic segmentation. In the single scan experiment [4], sequential relations among scans in the same sequence are not considered. The total number of 19 classes is used for training and evaluation. Specifically, the input data generated from the scan is a list of coordinates of the three-dimensional points along with their remissions.
+
+During training and testing, we use a similar sliding windows based strategy as indoor segmentation. Since point clouds in the outdoor scene are more sparse, we set the size of the cube with $10m \times 10m \times 6m$ and $1m$ padding. In Tab. 3, we compare PointASNL with other state-of-the-art methods. Our approach outperforms others by a large margin. Supplementary material shows that our method achieves the best result in 13 of 19 categories. Furthermore, Fig. 7 illustrates our qualitative visualization of two samples, even if the scene is covered with a lot of noise
+
+
+Figure 7. Example of outdoor SemanticKITTI datasets.
+
+Table 4. Ablation study on ModelNet40 and ScanNet v2 validation set. PL, PNL and AS mean point local cell, point nonlocal cell and adaptive sampling.
+
+| Model | Ablation | ModelNet40 | ScanNet |
| A | PNL only | 90.1 | 45.7 |
| B | PL only | 92.0 | 56.1 |
| C | PL+PNL | 93.2 | 60.8 |
| D | PL+PNL+AS | 93.2 | 63.5 |
| E | PointNet2 [24] | 90.9 | 48.9 |
| F | PointNet2+PNL | 93.0 | 54.6 |
| G | PointNet2+PNL+AS | 92.8 | 55.4 |
| H | DGCNN [42] | 92.2 | 52.7 |
| I | DGCNN+PNL | 92.9 | 56.7 |
| J | DGCNN+PNL+AS | 93.1 | 58.3 |
+
+caused by unmanned collection, our model can still predict perfectly.
+
+# 4.3. Ablation Study
+
+To further illustrate the effectiveness of proposed AS and L-NL module, we designed an ablation study on both the shape classification and the semantic segmentation. The results of the ablation study are summarized in Tab. 4.
+
+We set two baselines: A and B. Model A only encodes global features by PNL, and model B only encodes local features. The baseline model A gets a low accuracy of $90.1\%$ and $45.7\%$ IoU on segmentation, and model B gets $92.0\%$ and $56.1\%$ , respectively. When we combine local and global information (models C), there is a notable improvement in both classification and segmentation. Finally, when we add the AS module, the model will have a significant improvement in the segmentation task ( $93.2\%$ and $63.5\%$ in model D).
+
+Furthermore, our proposed components L-NL module and AS module can directly improve the performance of other architecture. When we use PointNet++ [25] in our PL cell (model F), it will reduce the error of classification and segmentation tasks by $23.1\%$ and $12.6\%$ , respectively, with its original model (model E). It should be noted that the AS module does not increase the accuracy of the classification task, even reduced the accuracy of classification when adding on PointNet++ (model F). This is because the synthetic dataset does not have a lot of noise like scene segmentation, for some simpler local aggregation (e.g., max pool), it may make them unable to adapt the uneven point cloud distribution after using AS. Furthermore, we also use DGCNN [42] as our local aggregation baseline (model H), and fused architecture (model I and J) can largely improve the performance on two datasets.
+
+# 4.4. Robustness for Sparser Point Clouds
+
+To further verify the robustness of the PointASNL model, we take sparser points (i.e., 1024, 512, 256, 128 and
+
+
+(a)
+
+
+(b)
+Figure 8. (a) A sample of input point cloud. (b) A sample of input point cloud after randomly select 64 points (c) Results of testing with sparser points.
+
+
+(c)
+
+64) as the input to various models trained with 1024 points. Then we compare our method with PointNet [24], PointNet++ [25], SO-Net [19] and the recent state-of-the-art RS-CNN [22]. We follow these methods to apply random input dropout during the training.
+
+As can be seen from the Fig .8 (c), PNL can greatly improve the robustness of our model with different density inputs. In particular, when the input contains only 64 points, PNL can even help to improve the accuracy of our model, from $73.9\%$ to $85.2\%$ , which largely exceeds the current state-of-the-art RS-CNN [22] (about $75\%$ ). The experimental results fully demonstrate that the use of local and global learning methods can greatly improve the robustness of the model. As shown in Fig .8 (a) and (b), when the input points reduce to 64, even humans can hardly recognize the airplane, but our model can classify it correctly. Such superior robustness makes our proposed PointASNL model suitable for raw noisy point clouds with limited sampling points, especially for large scale outdoor scenario.
+
+# 5. Conclusion
+
+We have presented the adaptive sampling (AS) and the local-nonlocal (L-NL) module to construct the architecture of PointASNL for robust 3D point cloud processing. By combining local neighbors and global context interaction, we improve traditional methods dramatically on several benchmarks. Furthermore, adaptive sampling is a differentiable sampling strategy to fine-tune the spatial distribution of sampled points, largely improve the robustness of the network. Experiments with our state-of-the-art results on competitive datasets and further analysis illustrate the effectiveness and rationality of our PointASNL.
+
+Acknowledgment. The work was supported by grants No. 2018YFB1800800, NSFC-61902335, No. 2019E0012, No. ZDSYS201707251409055, No. 2017ZT07X152, No. 2018B030338001, and CCF-Tencent Open Fund.
+
+# References
+
+[1] Charu C Aggarwal. Outlier analysis. In Data mining, pages 237-263. Springer, 2015. 3
+[2] Iro Armeni, Ozan Sener, Amir R Zamir, Helen Jiang, Ioannis Brilakis, Martin Fischer, and Silvio Savarese. 3d semantic parsing of large-scale indoor spaces. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1534-1543, 2016. 6
+[3] Matan Atzmon, Haggai Maron, and Yaron Lipman. Point convolutional neural networks by extension operators. arXiv preprint arXiv:1803.10091, 2018. 2, 6
+[4] J. Behley, M. Garbade, A. Milioto, J. Quenzel, S. Behnke, C. Stachniss, and J. Gall. SemanticKITTI: A Dataset for Semantic Scene Understanding of LiDAR Sequences. In Proc. of the IEEE/CVF International Conf. on Computer Vision (ICCV), 2019. 7
+[5] Christopher Choy, JunYoung Gwak, and Silvio Savarese. 4d spatiotemporal convnets: Minkowski convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3075-3084, 2019. 2
+[6] Angela Dai, Angel X Chang, Manolis Savva, Maciej Halber, Thomas Funkhouser, and Matthias Nießner. Scannet: Richly-annotated 3d reconstructions of indoor scenes. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5828-5839, 2017. 6
+[7] Benjamin Graham, Martin Engelcke, and Laurens van der Maaten. 3d semantic segmentation with submanifold sparse convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9224-9232, 2018. 2
+[8] Fabian Groh, Patrick Wieschollek, and Hendrik PA Lensch. Flexconvolution. In Asian Conference on Computer Vision, pages 105-122. Springer, 2018. 2
+[9] Paul Guerrero, Yanir Kleiman, Maks Ovsjanikov, and Niloy J Mitra. Pcnet learning local shape properties from raw point clouds. In Computer Graphics Forum, volume 37, pages 75-85. Wiley Online Library, 2018. 3
+[10] 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
+[11] Pedro Hermosilla, Tobias Ritschel, Pere-Pau Vázquez, Álvar Vinacua, and Timo Ropinski. Monte carlo convolution for learning on non-uniformly sampled point clouds. In SIGGRAPH Asia 2018 Technical Papers, page 235. ACM, 2018. 1, 2, 3
+[12] Binh-Son Hua, Minh-Khoi Tran, and Sai-Kit Yeung. Pointwise convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 984–993, 2018. 2, 6
+[13] Qiangui Huang, Weiyue Wang, and Ulrich Neumann. Recurrent slice networks for 3d segmentation of point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2626-2635, 2018. 6
+[14] Li Jiang, Hengshuang Zhao, Shu Liu, Xiaoyong Shen, Chi-Wing Fu, and Jiaya Jia. Hierarchical point-edge interaction network for point cloud semantic segmentation. 2019. 2, 6
+[15] Roman Klokov and Victor Lempitsky. Escape from cells: Deep kd-networks for the recognition of 3d point cloud models. In Proceedings of the IEEE International Conference on Computer Vision, pages 863-872, 2017. 6
+[16] Artem Komarichev, Zichun Zhong, and Jing Hua. A-cnn: Annually convolutional neural networks on point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7421-7430, 2019. 2, 6
+[17] Loic Landrieu and Martin Simonovsky. Large-scale point cloud semantic segmentation with superpoint graphs. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4558-4567, 2018. 6, 7
+
+[18] Truc Le and Ye Duan. Pointgrid: A deep network for 3d shape understanding. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 9204-9214, 2018. 6
+[19] Jiaxin Li, Ben M Chen, and Gim Hee Lee. So-net: Self-organizing network for point cloud analysis. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 9397–9406, 2018. 3, 6, 8
+[20] Yangyan Li, Rui Bu, Mingchao Sun, Wei Wu, Xinhan Di, and Baoquan Chen. Pointcnn: Convolution on x-transformed points. In Advances in Neural Information Processing Systems, pages 820-830, 2018. 2, 6
+[21] Xinhai Liu, Zhizhong Han, Yu-Shen Liu, and Matthias Zwicker. Point2sequence: Learning the shape representation of 3d point clouds with an attention-based sequence to sequence network. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 8778-8785, 2019. 2, 6
+[22] Yongcheng Liu, Bin Fan, Shiming Xiang, and Chunhong Pan. Relation-shape convolutional neural network for point cloud analysis. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8895-8904, 2019. 2, 5, 6, 8
+[23] Zhe Liu, Shunbo Zhou, Chuanzhe Suo, Peng Yin, Wen Chen, Hesheng Wang, Haoang Li, and Yun-Hui Liu. Lpd-net: 3d point cloud learning for large-scale place recognition and environment analysis. In Proceedings of the IEEE International Conference on Computer Vision, pages 2831-2840, 2019. 1, 3
+[24] 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. 2, 5, 6, 7, 8
+[25] Charles Ruizhongtai Qi, Li Yi, Hao Su, and Leonidas J Guibas. Pointnet++: Deep hierarchical feature learning on point sets in a metric space. In Advances in neural information processing systems, pages 5099-5108, 2017. 1, 2, 3, 4, 5, 6, 7, 8
+[26] Marie-Julie Rakotosaona, Vittorio La Barbera, Paul Guerrero, Niloy J Mitra, and Maks Ovsjanikov. Pointcleannet: Learning to denoise and remove outliers from dense point clouds. In Computer Graphics Forum. Wiley Online Library, 2019. 3
+[27] Gernot Riegler, Ali Osman Ulusoy, and Andreas Geiger. Octnet: Learning deep 3d representations at high resolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3577-3586, 2017. 2
+[28] Yiru Shen, Chen Feng, Yaoqing Yang, and Dong Tian. Mining point cloud local structures by kernel correlation and graph pooling. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4548-4557, 2018. 5
+[29] Shaoshuai Shi, Xiaogang Wang, and Hongsheng Li. Pointcnn: 3d object proposal generation and detection from point cloud. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 770-779, 2019. 1
+[30] Martin Simonovsky and Nikos Komodakis. Dynamic edge-conditioned filters in convolutional neural networks on graphs. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3693-3702, 2017. 2, 3, 6
+[31] Hang Su, Varun Jampani, Deqing Sun, Subhransu Maji, Evangelos Kalogerakis, Ming-Hsuan Yang, and Jan Kautz. Splatnet: Sparse lattice networks for point cloud processing. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2530-2539, 2018. 2, 7
+[32] Hang Su, Subhransu Maji, Evangelos Kalogerakis, and Erik Learned-Miller. Multi-view convolutional neural networks for 3d shape recognition. In Proc. IEEE Int. Conf. Comput. Vision, pages 945-953, 2015. 2
+[33] Maxim Tatarchenko, Jaesik Park, Vladlen Koltun, and Qian-Yi Zhou. Tangent convolutions for dense prediction in 3d. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3887-3896, 2018. 6, 7
+
+[34] 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. arXiv preprint arXiv:1904.08889, 2019. 2, 3, 6, 7
+[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. 3
+[36] Chu Wang, Babak Samari, and Kaleem Siddiqi. Local spectral graph convolution for point set feature learning. In Proceedings of the European Conference on Computer Vision (ECCV), pages 52-66, 2018. 6
+[37] Dominic Zeng Wang and Ingmar Posner. Voting for voting in online point cloud object detection. In Robotics: Science and Systems, volume 1, pages 10-15607, 2015. 1
+[38] Nanyang Wang, Yinda Zhang, Zhuwen Li, Yanwei Fu, Wei Liu, and Yu-Gang Jiang. Pixel2mesh: Generating 3d mesh models from single rgb images. In Proceedings of the European Conference on Computer Vision (ECCV), pages 52-67, 2018. 3
+[39] 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 (TOG), 36(4):72, 2017. 2, 6
+[40] Shenlong Wang, Simon Suo, Wei-Chiu Ma, Andrei Pokrovsky, and Raquel Urtasun. Deep parametric continuous convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2589-2597, 2018. 2, 4
+[41] Xiaolong Wang, Ross Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7794-7803, 2018. 2, 4
+[42] 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 preprint arXiv:1801.07829, 2018. 2, 6, 8
+[43] Katja Wolff, Changil Kim, Henning Zimmer, Christopher Schroers, Mario Botsch, Olga Sorkine-Hornung, and Alexander Sorkine-Hornung. Point cloud noise and outlier removal for image-based 3d reconstruction. In 2016 Fourth International Conference on 3D Vision (3DV), pages 118-127. IEEE, 2016. 3
+[44] Wenxuan Wu, Zhongang Qi, and Li Fuxin. Pointconv: Deep convolutional networks on 3d point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9621-9630, 2019. 1, 2, 4, 5, 6, 7
+[45] Zhirong Wu, Shuran Song, Aditya Khosla, Fisher Yu, Linguuang Zhang, Xiaou Tang, and Jianxiong Xiao. 3d shapenets: A deep representation for volumetric shapes. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1912-1920, 2015. 5, 6
+[46] Saining Xie, Sainan Liu, Zeyu Chen, and Zhuowen Tu. Attentional shapecontextnet for point cloud recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4606-4615, 2018. 2
+[47] Yifan Xu, Tianqi Fan, Mingye Xu, Long Zeng, and Yu Qiao. Spider-cnn: Deep learning on point sets with parameterized convolutional filters. In Proceedings of the European Conference on Computer Vision (ECCV), pages 87-102, 2018. 2, 6
+[48] Jiancheng Yang, Qiang Zhang, Bingbing Ni, Linguo Li, Jinxian Liu, Mengdie Zhou, and Qi Tian. Modeling point clouds with self-attention and gumbel subset sampling. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3323–3332, 2019. 1, 3, 6
+[49] Li Yi, Vladimir G Kim, Duygu Ceylan, I Shen, Mengyan Yan, Hao Su, Cewu Lu, Qixing Huang, Alla Sheffer, Leonidas Guibas, et al. A scalable active framework for region annotation in 3d shape collections. ACM Transactions on Graphics (TOG), 35(6):210, 2016. 6
+
+[50] Hengshuang Zhao, Li Jiang, Chi-Wing Fu, and Jiaya Jia. Pointweb: Enhancing local neighborhood features for point cloud processing. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5565-5573, 2019. 2, 6
\ No newline at end of file
diff --git a/pointasnlrobustpointcloudsprocessingusingnonlocalneuralnetworkswithadaptivesampling/images.zip b/pointasnlrobustpointcloudsprocessingusingnonlocalneuralnetworkswithadaptivesampling/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..bd314157347eddd3b930d0c4a4ec6978e26d956d
--- /dev/null
+++ b/pointasnlrobustpointcloudsprocessingusingnonlocalneuralnetworkswithadaptivesampling/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7677dd2645f1bda5169e63b16a0075fb6f1c88be719f98830bb9acde97fab3f4
+size 606037
diff --git a/pointasnlrobustpointcloudsprocessingusingnonlocalneuralnetworkswithadaptivesampling/layout.json b/pointasnlrobustpointcloudsprocessingusingnonlocalneuralnetworkswithadaptivesampling/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..afc1f2d451f21dbaf54cbbd0ccbceceeb6a19824
--- /dev/null
+++ b/pointasnlrobustpointcloudsprocessingusingnonlocalneuralnetworkswithadaptivesampling/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:112c822aee2b8d79a8ba0747de1e3adbdacfed0c86e0a879de517ca077b34d31
+size 392937
diff --git a/pointaugmentanautoaugmentationframeworkforpointcloudclassification/309862d7-a3ad-496e-9f16-ced6465bda7a_content_list.json b/pointaugmentanautoaugmentationframeworkforpointcloudclassification/309862d7-a3ad-496e-9f16-ced6465bda7a_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..b2852c8ce492028c95a44b14982704bfc30c1f44
--- /dev/null
+++ b/pointaugmentanautoaugmentationframeworkforpointcloudclassification/309862d7-a3ad-496e-9f16-ced6465bda7a_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6fac939ace4fd376211cf574d7fa01b3c776df9c876fec68fb2028da331c2f8f
+size 79344
diff --git a/pointaugmentanautoaugmentationframeworkforpointcloudclassification/309862d7-a3ad-496e-9f16-ced6465bda7a_model.json b/pointaugmentanautoaugmentationframeworkforpointcloudclassification/309862d7-a3ad-496e-9f16-ced6465bda7a_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..ef8bad7d4f1299d0656fe6c44652a271cca3e705
--- /dev/null
+++ b/pointaugmentanautoaugmentationframeworkforpointcloudclassification/309862d7-a3ad-496e-9f16-ced6465bda7a_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3b55360597118103abb29e2b4ae8f18abee528032169b236e2b0b37acc602c00
+size 96950
diff --git a/pointaugmentanautoaugmentationframeworkforpointcloudclassification/309862d7-a3ad-496e-9f16-ced6465bda7a_origin.pdf b/pointaugmentanautoaugmentationframeworkforpointcloudclassification/309862d7-a3ad-496e-9f16-ced6465bda7a_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..e00b09bf6fae104c6dc7fc83a178ea037b7e9c0a
--- /dev/null
+++ b/pointaugmentanautoaugmentationframeworkforpointcloudclassification/309862d7-a3ad-496e-9f16-ced6465bda7a_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9fac446ffe96d3d83a613b907bfb67c5be8f12920dddb1f8fe197cfe5718ffeb
+size 1136033
diff --git a/pointaugmentanautoaugmentationframeworkforpointcloudclassification/full.md b/pointaugmentanautoaugmentationframeworkforpointcloudclassification/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..a834df8967f41b6c9366d7b0eea759b665b95345
--- /dev/null
+++ b/pointaugmentanautoaugmentationframeworkforpointcloudclassification/full.md
@@ -0,0 +1,311 @@
+# PointAugment: an Auto-Augmentation Framework for Point Cloud Classification
+
+Ruihui Li Xianzhi Li Pheng-Ann Heng Chi-Wing Fu
+
+The Chinese University of Hong Kong
+
+{lirh,xzli,pheng,cwfu}@cse.cuhk.edu.hk
+
+# Abstract
+
+We present PointAugment1, a new auto-augmentation framework that automatically optimizes and augments point cloud samples to enrich the data diversity when we train a classification network. Different from existing auto-augmentation methods for 2D images, PointAugment is sample-aware and takes an adversarial learning strategy to jointly optimize an augmentor network and a classifier network, such that the augmentor can learn to produce augmented samples that best fit the classifier. Moreover, we formulate a learnable point augmentation function with a shape-wise transformation and a point-wise displacement, and carefully design loss functions to adopt the augmented samples based on the learning progress of the classifier. Extensive experiments also confirm PointAugment's effectiveness and robustness to improve the performance of various networks on shape classification and retrieval.
+
+# 1. Introduction
+
+In recent years, there has been a growing interest in developing deep neural networks [23, 24, 37, 19, 18] for 3D point cloud processing. To robustly train a network often relies on the availability and diversity of the data. However, unlike 2D image benchmarks such as ImageNet [10] and MS COCO dataset [15], which have over millions of training samples, 3D datasets are typically much smaller in quantity, with relatively small amount of labels and limited diversity. For instance, ModelNet40 [38], one of the most commonly-used benchmark for 3D point cloud classification, only has 12,311 models of 40 categories. The limited data quantity and diversity may cause overfitting problem and further affect the generalization ability of the network.
+
+Nowadays, data augmentation (DA) is a very common strategy to avoid overfitting and improve the network generalization ability by artificially enlarging the quantity and diversity of the training samples. For 3D point clouds, due to
+
+
+Figure 1: Classification accuracy $(\%)$ on ModelNet40 with or without training the networks with our PointAugment. We can see clear improvements on four representative networks. More comparison results are presented in Section 5.
+
+the limited amount of training samples and an immense augmentation space in 3D, conventional DA strategies [23, 24] often simply perturb the input point cloud randomly in a small and fixed pre-defined augmentation range to maintain the class label. Despite its effectiveness for the existing classification networks, this conventional DA approach may lead to insufficient training, as summarized below.
+
+First, existing methods for deep 3D point cloud processing regard the network training and DA as two independent phases without jointly optimizing them, e.g., feedback the training results to enhance the DA. Hence, the trained network could be suboptimal. Second, existing methods apply the same fixed augmentation process with rotation, scaling, and/or jittering, to all input point cloud samples. The shape complexity of the samples is ignored in the augmentation, e.g., a sphere remains the same no matter how we rotate it, but a complex shape may need larger rotations. Hence, conventional DA may be redundant or insufficient for augmenting the training samples [6].
+
+To improve the augmentation of point cloud samples, we formulate PointAugment, a new auto-augmentation framework for 3D point clouds, and demonstrate its effective
+
+ness to enhance shape classification; see Figure 1. Different from the previous works for 2D images, PointAugment learns to produce augmentation functions specific to individual samples. Further, the learnable augmentation function considers both shape-wise transformation and pointwise displacement, which relate to the characteristics of 3D point cloud samples. Also, PointAugment jointly optimizes the augmentation process with the network training, via an adversarial learning strategy to train the augmentation network (augmentor) together with the classification network (classifier) in an end-to-end manner. By taking the classifier losses as feedbacks, the augmentor can learn to enrich the input samples by enlarging the intra-class data variations, while the classifier can learn to combat this by extracting insensitive features. Benefited by such adversarial learning, the augmentor can then learn to generate augmented samples that best fit the classifier in different stages of the training, thus maximizing the capability of the classifier.
+
+As the first attempt to explore auto-augmentation for 3D point clouds, we show by replacing conventional DA with PointAugment, clear improvements in shape classification on ModelNet40 [38] (see Figure 1) and SHREC16 [28] (see Section 5) datasets can be achieved on four representative networks, including PointNet [23], PointNet++ [24], RSCNN [18], and DGCNN [37]. Also, we demonstrate the effectiveness of PointAugment on shape retrieval and evaluate its robustness, loss configuration, and modularization design. More results are presented in Section 5.
+
+# 2. Related Work
+
+Data augmentation on images. Training data plays a very important role for deep neural networks to learn to perform tasks. However, training data usually has limited quantity, compared with the complexity of our real world, so data augmentation is often needed as a means to enlarge the training set and maximize the knowledge that a network can learn from the training data. Instead of randomly transforming the training data samples [42, 41], some works attempted to generate augmented samples from the original data by using image combination [12], generative adversarial network (GAN) [31, 27], Bayesian optimization [35], and image interpolation in the latent space [4, 16, 2]. However, these methods may produce unreliable samples that are different from those in the original data. On the other hand, some image DA techniques [12, 42, 41] apply pixel-by-pixel interpolation for images with regular structures; however, they cannot handle order-invariant point clouds.
+
+Another approach aims to find an optimal combination of predefined transformation functions to augment the training samples, instead of applying the transformation functions based on a manual design or by complete randomness. AutoAugment [3] suggests a reinforcement learning
+
+strategy to find the best set of augmentation functions by alternatively training a proxy task and a policy controller, then applying the learned augmentation function to the input data. Soon after, two other works, FastAugment [14] and PBA [8], explore advanced hyper-parameter optimization methods to more efficiently find the best transformations for the augmentation. Different from these methods, which learn to find a fixed augmentation strategy for all the training samples, PointAugment is sample-aware, meaning that we dynamically produce the transformation functions based on the properties of individual training samples and the network capability during the training process.
+
+Very recently, Tang et al. [33] and Zhang et al. [43] suggested to learn augmentation policies on target tasks using an adversarial strategy. They tend to directly maximize the loss of augmented samples to improve the generalization of image classification networks. Differently, PointAugment enlarges the loss between the augmented point clouds and their original ones by an explicitly-designed boundary (see Section 4.2 for details); it dynamically adjusts the difficulty of the augmented samples, so that the augmented samples can better fit the classifier for different training stages.
+
+Data augmentation on point cloud. In existing points processing networks, data augmentation mainly include random rotation about the gravity axis, random scaling, and random jittering [23, 24]. These handcrafted rules are fixed throughout the training process, so we may not obtain the best samples to effectively train the network. So far, we are not aware of any work that explores auto-augmentation to maximize the network learning with 3D point clouds.
+
+Deep learning on point cloud. Improving on the PointNet architecture [23], several works [24, 17, 18] explored local structures to enhance the feature learning. Some others explored the graph convolutional networks by creating a local graph [36, 37, 29, 45] or geometric elements [11, 22]. Another stream of works [32, 34, 19] projected irregular points into a regular space to allow traditional convolutional neural networks to work on. Different from the above works, our goal is not on designing a new network but on boosting the classification performance of existing networks by effectively optimizing the augmentation of point cloud samples. To this end, we design an augmentor to learn a sample-specific augmentation function and adjust the augmentation based also on the learning progress of the classifier.
+
+# 3. Overview
+
+The main contribution of this work is the PointAugment framework that automatically optimizes the augmentation of the input point cloud samples for more effectively training the classification network. Figure 2 illustrates the design of our framework, which has two deep neural network components: (i) an augmentor $\mathcal{A}$ and (ii) a classifier $\mathcal{C}$ . Given
+
+
+Figure 2: An overview of our PointAugment framework. We jointly optimize the augmentor and classifier in an end-to-end manner with an adversarial learning strategy.
+
+an input training dataset $\{\mathcal{P}_i\}_{i=1}^M$ of $M$ samples, where each sample has $N$ points, before we train classifier $\mathcal{C}$ with sample $\mathcal{P}_i$ , we feed $\mathcal{P}_i$ first to our augmentor $\mathcal{A}$ to generate an augmented sample $\mathcal{P}_i'$ . Then, we feed $\mathcal{P}_i$ and $\mathcal{P}_i'$ separately to classifier $\mathcal{C}$ for training, and further take $\mathcal{C}$ 's results as feedback to guide the training of augmentor $\mathcal{A}$ .
+
+Before elaborating the PointAugment framework, we first discuss our key ideas behind the framework. These are new ideas (not present in previous works [3, 14, 8]) that enable us to efficiently augment the training samples, which are now 3D point clouds instead of 2D images.
+
+- Sample-aware. Rather than finding a universal set of augmentation policy or procedure for processing every input data sample, we aim to regress a specific augmentation function for each input sample by considering the underlying geometric structure of the sample. We call this a sample-aware auto-augmentation.
+- 2D vs. 3D augmentation. Unlike 2D augmentations for images, 3D augmentation involves a more immense and different spatial domain. Accounting for the nature of 3D point clouds, we consider two kinds of transformations on point cloud samples: shape-wise transformation (including rotation, scaling, and their combinations), and point-wise displacement (jittering of point locations), where our augmentor should learn to produce them to enhance the network training.
+- Joint optimization. During the network training, the classifier will gradually learn and become more powerful, so we need more challenging augmented samples to better train the classifier, as the classifier becomes stronger. Hence, we design and train the PointAugment framework in an end-to-end manner, such that we can jointly optimize both the augmentor and classifier. To achieve so, we have to carefully design the loss functions and dynamically adjust the difficulty of the augmented samples, while considering both the input sample and the capacity of the classifier.
+
+# 4. Method
+
+In this section, we first present the network architecture details of the augmentor and classifier (Section 4.1). Then, we present our loss functions formulated for the augmentor (Section 4.2) and classifier (Section 4.3), and introduce
+
+
+
+
+Figure 3: Illustrations of the augmentor and classifier. The augmentor generates augmented sample $\mathcal{P}'$ from $\mathcal{P}$ , and the classifier predicts the class label given $\mathcal{P}'$ or $\mathcal{P}$ as inputs.
+
+
+Figure 4: Our implementation of the augmentor.
+
+our end-to-end training strategy (Section 4.4). Lastly, we present the implementation details (Section 4.5).
+
+# 4.1. Network Architecture
+
+Augmentor. Different from existing works [3, 14, 8], our augmentor is sample-aware, and it learns to generate a specific function for augmenting each input sample. From now on, we drop subscript $i$ for ease of reading, and denote $\mathcal{P}$ as the training sample input to augmentor $\mathcal{A}$ and $\mathcal{P}'$ as the corresponding augmented sample output from $\mathcal{A}$ .
+
+The overall architecture of our augmentor is illustrated in Figure 3 (top). First, we use a per-point feature extraction unit to embed point features $\pmb{F} \in \mathbb{R}^{N \times C}$ for all $N$ points in $\mathcal{P}$ , where $C$ is the number of feature channels. From $\pmb{F}$ , we then regress the augmentation function specific to input sample $\mathcal{P}$ using two separate components in the architecture: (i) shape-wise regression to produce transformation $\mathcal{M} \in \mathbb{R}^{3 \times 3}$ and (ii) point-wise regression to produce displacement $\mathcal{D} \in \mathbb{R}^{N \times 3}$ . Note that, the learned $\mathcal{M}$ is a linear matrix in 3D space, combining mainly rotation and scaling, whereas the learned $\mathcal{D}$ gives point-wise translation and jittering. Using $\mathcal{M}$ and $\mathcal{D}$ , we can then generate the augmented sample $\mathcal{P}'$ as $\mathcal{P} \cdot \mathcal{M} + \mathcal{D}$ .
+
+The design of our proposed framework for the augmentor is generic, meaning that we may use different models to build its components. Figure 4 shows our current im
+
+plementation, for reference. Specifically, similar to Point-Net [23], we first employ a series of shared multi-layer perceptron (MLPs) to extract per-point features $\mathbf{F} \in \mathbb{R}^{N \times C}$ . We then employ max pooling to obtain the per-shape feature vector $\mathbf{G} \in \mathbb{R}^{1 \times C}$ . To regress $\mathcal{M}$ , we generate a $C$ -dimension noise vector based on a Gaussian distribution and concatenate it with $\mathbf{G}$ , and then employ MLPs to obtain $\mathcal{M}$ . Note that the noise vector enables the augmentor to explore more diverse choices in regressing the transformation matrix through the randomness introduced into the regression process. To regress $\mathcal{D}$ , we concatenate $N$ copies of $\mathbf{G}$ with $\mathbf{F}$ , together with an $N \times C$ noise matrix, whose values are randomly and independently generated based on a Gaussian distribution. Lastly, we employ MLPs to obtain $\mathcal{D}$ .
+
+Classifier. Figure 3 (bottom) shows the general architecture of classifier $\mathcal{C}$ . It takes $\mathcal{P}$ and $\mathcal{P}'$ as inputs in two separate rounds and predicts corresponding class labels $y$ and $y'$ . Both $y$ and $y' \in \mathbb{R}^{1 \times K}$ , where $K$ is the total number of classes in the classification problem. In general, $\mathcal{C}$ first extracts per-shape global features $\pmb{F}_g$ or $\pmb{F}_g' \in \mathbb{R}^{1 \times C_g}$ (from $\mathcal{P}$ or $\mathcal{P}'$ ), and then employ fully-connected layers to regress a class label. Also, the choice of implementing $\mathcal{C}$ is flexible. We may employ different classification networks as $\mathcal{C}$ . In Section 5, we shall show that the performance of several conventional classification networks can be further boosted when equipped with our augmentor in the training.
+
+# 4.2. Augmentor loss
+
+To maximize the network learning, augmented sample $\mathcal{P}'$ generated by the augmentor should satisfy two requirements: (i) $\mathcal{P}'$ should be more challenging than $\mathcal{P}$ , i.e., we aim for $L(\mathcal{P}') \geq L(\mathcal{P})$ ; and (ii) $\mathcal{P}'$ should not lose its shape distinctiveness, meaning that it should describe a shape that is not too far (or different) from $\mathcal{P}$ .
+
+To achieve requirement (i), a simple way to formulate the loss function for the augmentor (denoted as $\mathcal{L}_{\mathcal{A}}$ ) is to maximize the difference between the cross entropy losses on $\mathcal{P}$ and $\mathcal{P}'$ , or equivalently, to minimize
+
+$$
+\mathcal {L} _ {\mathcal {A}} = \exp \left[ - \left(L \left(\mathcal {P} ^ {\prime}\right) - L (\mathcal {P})\right) \right], \tag {1}
+$$
+
+where $L(\mathcal{P}) = -\sum_{c=1}^{K} \hat{y}_c \log(y_c))$ is $\mathcal{P}$ 's cross entropy loss; $\hat{y}_c \in \{0,1\}$ denotes the one-hot ground-truth label when $\mathcal{P}$ belongs to the $c$ -th class; and $y_c \in [0,1]$ is the probability of predicting $\mathcal{P}$ as $c$ -th class. Note also that, for $\mathcal{P}'$ to be more challenging than $\mathcal{P}$ , we assume that $L(\mathcal{P}') \geq L(\mathcal{P})$ and a larger $L(\mathcal{P}')$ indicates a larger magnitude of augmentation, which can be defined as $\xi = L(\mathcal{P}') - L(\mathcal{P})$ .
+
+However, if we naively minimize Eq. (1) for $\mathcal{L}_A\to 0$ , we encourage $L(\mathcal{P}^{\prime}) - L(\mathcal{P})\rightarrow \infty$ . So, a simple solution for $\mathcal{P}'$ is an arbitrary sample regardless of $\mathcal{P}$ . Such $\mathcal{P}'$ clearly violates requirement (ii). Hence, we further restrict the augmentation magnitude $\xi$ . Inspired by LS-GAN [25], we first
+
+
+Figure 5: Graph plot of Eq. (2).
+
+introduce a dynamic parameter $\rho$ and re-formulate $\mathcal{L}_A$ as
+
+$$
+\mathcal {L} _ {\mathcal {A}} = | 1. 0 - \exp [ L (\mathcal {P} ^ {\prime}) - \rho L (\mathcal {P}) ] |. \tag {2}
+$$
+
+See Figure 5 for the graph plot of Eq. (2). In this formulation, we want $L(\mathcal{P}')$ to be large (for requirement (i)) but it should not be too large (for requirement (ii)), so we upper-bound $L(\mathcal{P}')$ by $\rho L(\mathcal{P})$ . Hence, we can obtain
+
+$$
+\xi = L \left(\mathcal {P} ^ {\prime}\right) - L (\mathcal {P}) \leq (\rho - 1) L (\mathcal {P}), \tag {3}
+$$
+
+where we denote $\xi_{o} = (\rho -1)L(\mathcal{P})$ as $\xi$ 's upper bound.
+
+Note that, when we train the augmentor, the classifier is fixed (to be presented in Section 4.4), so $L(\mathcal{P})$ is fixed. Hence, $\xi_o$ depends only on $\rho$ . Since it should be nonnegative, we thus ensure $\rho \geq 1$ . Moreover, considering that the classifier is very fragile at the beginning of the training, we pay more attention to training the classifier rather than generating a challenging $\mathcal{P}'$ . Hence, $\xi_o$ should not be too large, meaning that $\mathcal{P}'$ should not be too challenging. Later, when the classifier becomes more powerful, we can gradually enlarge $\xi_o$ to allow the augmentor to generate a more challenging $\mathcal{P}'$ . Therefore, we design a dynamic $\rho$ to control $\xi_o$ with the following formulation:
+
+$$
+\rho = \max \left(1, \exp \left(\sum_ {c = 1} ^ {K} \hat {y} _ {c} \cdot y _ {c}\right)\right), \tag {4}
+$$
+
+where $\max(1, *)$ ensures $\rho \geq 1$ . At the beginning of the network training, the classifier predictions may not be accurate. Hence, the prediction probability $y_{c}$ is generally small, resulting in a small $\rho$ , and $\xi_{o}$ will also be small according to Eq. (3). When the classifier becomes more powerful, $y_{c}$ will increase, and we will have larger $\rho$ and $\xi_{o}$ accordingly.
+
+Lastly, to further ensure the augmented sample $\mathcal{P}'$ to be shape distinctive (for requirement (ii)), we add $L(\mathcal{P}')$ , as a fidelity term, to Eq. (2) to construct the final loss $\mathcal{L}_{\mathcal{A}}$ :
+
+$$
+\mathcal {L} _ {\mathcal {A}} = L \left(\mathcal {P} ^ {\prime}\right) + \lambda | 1. 0 - \exp \left(L \left(\mathcal {P} ^ {\prime}\right) - \rho L (\mathcal {P})\right) |, \tag {5}
+$$
+
+where $\lambda$ is a fixed hyper-parameter to control the relative importance of each term. A small $\lambda$ encourages the augmentor to focus more on the classification with less augmentation on $\mathcal{P}$ , and vice versa. In our implementation (all experiments), we set $\lambda = 1$ to treat the two terms equally.
+
+# 4.3. Classifier loss
+
+The goal of the classifier $\mathcal{C}$ is to correctly predict both $\mathcal{P}$ and $\mathcal{P}'$ . Additionally, $\mathcal{C}$ should also have the ability to learn stable per-shape global features, no matter given $\mathcal{P}$ or $\mathcal{P}'$ as input. We thus formulate the classifier loss $\mathcal{L}_{\mathcal{C}}$ as
+
+$$
+\mathcal {L} _ {\mathcal {C}} = L \left(\mathcal {P} ^ {\prime}\right) + L (\mathcal {P}) + \gamma \| \boldsymbol {F} _ {g} - \boldsymbol {F} _ {g ^ {\prime}} \| _ {2}, \tag {6}
+$$
+
+where $\gamma$ is to balance the importance of the terms (we empirically set $\gamma$ as 10.0), and $\| F_g - F_{g'}\|_2$ helps explicitly penalize the feature difference between the augmented sample and the original one, and stabilize the network training.
+
+# 4.4. End-to-end training strategy
+
+Algorithm 1 summarizes our end-to-end training strategy. Overall, the procedure alternatively optimizes and updates the learnable parameters in augmentor $\mathcal{A}$ and classifier $\mathcal{C}$ , while fixing the other one, during the training. Given input sample $\mathcal{P}_i$ , we first employ $\mathcal{A}$ to generate its augmented sample $\mathcal{P}_i'$ . We then update the learnable parameters in $\mathcal{A}$ by calculating the augmentor loss using Eq. (5). In this step, we keep $\mathcal{C}$ unchanged. After updating $\mathcal{A}$ , we keep $\mathcal{A}$ unchanged, and generate the updated $\mathcal{P}_i'$ . We then feed $\mathcal{P}_i$ and $\mathcal{P}_i'$ to $\mathcal{C}$ one by one to obtain $L(\mathcal{P})$ and $L(\mathcal{P}')$ , respectively, and update the learnable parameters in $\mathcal{C}$ by calculating the classifier loss using Eq. (6). In this way, we can optimize and train $\mathcal{A}$ and $\mathcal{C}$ in an end-to-end manner.
+
+# 4.5. Implementation details
+
+We implement PointAugment using PyTorch [21]. In detail, we set the number of training epochs $S = 250$ with a batch size $B = 24$ . To train the augmentor, we adopt the Adam optimizer with a learning rate of 0.001. To train the classifier, we follow the respective original configuration from the released code and paper. Specifically, for PointNet [23], PointNet++ [24], and RSCNN [18], we use the Adam optimizer with an initial learning rate of 0.001, which is gradually reduced with a decay rate of 0.5 every 20 epochs. For DGCNN [37], we use the SGD solver with a momentum of 0.9 and a base learning rate of 0.1, which decays using a cosine annealing strategy [9].
+
+Note also that, to reduce model oscillation [5], we follow [31] to train PointAugment by using mixed training samples, which contain the original training samples as one half and our previously-augmented samples as the other half, rather than using only the original training samples. Please refer to [31] for more details. Moreover, to avoid overfitting, we set a dropout probability of 0.5 to randomly drop or keep the regressed shape-wise transformation and point-wise displacement. In the testing phase, we follow previous networks [23, 24] to feed the input test samples to the trained classifier to obtain the predicted labels, without any additional computational cost.
+
+Algorithm 1: Training Strategy in PointAugment
+Input: training point sets $\{\mathcal{P}_i\}_{i = 1}^M$ , corresponding ground-truth class labels $\{\hat{y}_i\}_{i = 1}^M$ , and the number of training epochs $S$
+Output: $\mathcal{C}$ and $\mathcal{A}$
+for $s = 1,\dots ,S$ do for $i = 1,\dots ,M$ do // Update augmentor A Generate augmented sample $\mathcal{P}_i^\prime$ from $\mathcal{P}_i$ Calculate the augmentor loss using Eq. (5) Update the learnable parameters in $\mathcal{A}$ // Update classifier C Calculate the classifier loss using Eq. (6) by feeding $\mathcal{P}_i$ and $\mathcal{P}_i^\prime$ alternatively to $\mathcal{C}$ Update the learnable parameters in $\mathcal{C}$
+end
+
+Table 1: Statistics of the ModelNet10 (MN10) [38], ModelNet40 (MN40) [38], and SHREC16 (SR16) [28] datasets, including the number of categories (classes), number of training and testing samples, average number of samples per class, and the corresponding standard deviation value.
+
+| Dataset | #Class | #Training | #Testing | Average | Std. |
| MN10 | 10 | 3991 | 908 | 399.10 | 233.36 |
| MN40 | 40 | 9843 | 2468 | 246.07 | 188.64 |
| SR16 | 55 | 36148 | 5165 | 657.22 | 1111.49 |
+
+# 5. Experiments
+
+We conducted extensive experiments on PointAugment. First, we introduce the benchmark datasets and classifiers employed in our experiments (Section 5.1). We then evaluate PointAugment on shape classification and shape retrieval (Section 5.2). Next, we perform detailed analysis on PointAugment's robustness, loss configuration, and modularization design (Section 5.3). Lastly, we present further discussion and potential future extensions (Section 5.4).
+
+# 5.1. Datasets and Classifiers
+
+Datasets. We employed three 3D benchmark datasets in our evaluations, i.e., ModelNet10 [38], ModelNet40 [38], and SHREC16 [28], for which we denote as MN10, MN40, and SR16, respectively. Table 1 presents statistics about the datasets, showing that, MN10 is a very small dataset with only 10 classes. Though most networks [23, 17] can achieve a high classification accuracy on MN10, they may easily overfit. SR16 is the largest data with over 36,000 training samples. However, the high standard deviation (std.)
+
+Table 2: Comparing the overall shape classification accuracy (\%) on MN40, MN10, and SR16, for various classifiers equipped with conventional DA (first four rows) and with our PA (last four rows); PA denotes PointAugment. We can observe improvements for all datasets and all classifiers.
+
+| Method | MN40 | MN10 | SR16 |
| PointNet [23] | 89.2 | 91.9 | 84.4 |
| PointNet++ [24] | 90.7 | 93.3 | 85.1 |
| RSCNN [18] | 91.7 | 94.2 | 86.6 |
| DGCNN [37] | 92.2 | 94.8 | 87.0 |
| PointNet (+PA) | 90.9 (1.7↑) | 94.1 (2.2↑) | 88.4 (4.0↑) |
| PointNet++ (+PA) | 92.9 (2.2↑) | 95.8 (2.5↑) | 89.5 (4.4↑) |
| RSCNN (+PA) | 92.7 (1.0↑) | 96.0 (1.8↑) | 90.1 (3.5↑) |
| DGCNN (+PA) | 93.4 (1.2↑) | 96.7 (1.9↑) | 90.6 (3.6↑) |
+
+value, i.e., 1111, shows the uneven distribution of training samples among the classes. For example, in SR16, the Table class has 5,905 training samples, while the Cap class has only 39 training samples. For MN40, we directly adopt the data kindly provided by PointNet [23] and follow the same train-test split. For MN10 and SR16, we uniformly sample 1,024 points on each mesh surface and normalize the point sets to fit a unit ball centered at the origin.
+
+Classifiers. As explained in Section 4.1, our overall framework is generic, and we can employ different classification networks as classifier $\mathcal{C}$ . To show that the performance of conventional classification networks can be further boosted when equipped with our augmentor, in the following experiments, we employ several representative classification networks as classifier $\mathcal{C}$ , including (i) PointNet [23], a pioneer network that processes points individually; (ii) PointNet++ [24], a hierarchical feature extraction network; (iii) RSCNN [18], a recently-released enhanced version of PointNet++ with a relation weight inside each local region; and (iv) DGCNN [37], a graph-based feature extraction network. Note that, most existing networks [44, 34, 17] are built and extended from the above networks with various means of adaptation.
+
+# 5.2. PointAugment Evaluation
+
+Shape classification. First, we evaluate our PointAugment on the shape classification task using the classifiers listed in Section 5.1. For comparison, when we train the classifiers without PointAugment, we follow [24] to augment the training samples by random rotation, scaling, and jittering, which are considered as conventional DA.
+
+Table 2 summarizes the quantitative evaluation results for comparison. We report the overall classification accuracy $(\%)$ of each classifier on all the three benchmark datasets, with conventional DA and with our PointAug-
+
+Table 3: Comparing the shape retrieval results (mAP, %) on MN40, for various methods equipped with conventional DA or with our PointAugment. Again, we can observe clear improvements in retrieval accuracy for all the four methods.
+
+| Method | Conventional DA | PointAugment | Change |
| PointNet [23] | 70.5 | 75.8 | 5.2↑ |
| PointNet++ [24] | 81.3 | 86.7 | 5.4↑ |
| RSCNN [18] | 83.2 | 86.6 | 3.4↑ |
| DGCNN [37] | 85.3 | 89.0 | 3.7↑ |
+
+
+Figure 6: Shape retrieval results on MN40. For each query shape on the left, we present two rows of Top-10 retrieval results: the top row uses PointNet [23] and the bottom row uses PointNet+PointAugment. Note that the obviously-wrong retrieval results are marked with red arrows.
+
+ment. From the results we can clearly see that, by employing PointAugment, the shape classification accuracies of all classifier networks can improve for all the three benchmark datasets. Particularly, on MN40, the classification accuracy achieved by DGCNN+PointAugment is $93.4\%$ , which is a very high accuracy value comparable with the very recent works [44, 34, 17]. Moreover, our PointAugment is shown to be more effective on the imbalanced SR16 dataset; see the right-most column in Table 2, showing that PointAugment can alleviate the class size imbalance problem through our sample-aware auto-augmentation strategy to introduce more intra-class variation to the augmented samples.
+
+Shape retrieval. To validate whether PointAugment facilitates the classifiers to learn a better shape signature, we compare the shape retrieval performance on MN40. Specifically, we regard each sample in the testing split as a query, and aim to retrieve the best similar shapes from the testing split by comparing the cosine similarity between their global features $\mathbf{F}_g$ . In this experiment, we employ the mean Average Precision (mAP) as the evaluation metric.
+
+Table 3 presents the evaluation results, which clearly show that PointAugment improves the shape retrieval per
+
+Table 4: Robustness test to compare our PointAugment with conventional DA. Here, we corrupt each input test sample by random jittering (Jitt.) with Gaussian noise in $[-1.0, 1.0]$ , by scaling with a ratio of 0.9 or 1.1, or by a rotation of $90^{\circ}$ or $180^{\circ}$ along the gravity axis. Also, we show the original accuracy (Ori.) without using corrupted samples.
+
+| Method | Ori. | Jitt. | 0.9 | 1.1 | 90° | 180° |
| Without DA | 89.1 | 88.2 | 88.2 | 88.2 | 48.2 | 40.1 |
| Conventional DA | 90.7 | 90.3 | 90.3 | 90.3 | 89.9 | 89.7 |
| PointAugment | 92.9 | 92.8 | 92.8 | 92.8 | 92.7 | 92.6 |
+
+Table 5: Ablation study of PointAugment. D: point-wise displacement, M: shape-wise transformation, DP: dropout, and Mix: mixed training samples (see Section 4.4).
+
+| Model | D | M | DP | Mix | Acc. | Inc.↑ |
| A | | | | | 90.7 | - |
| B | ✓ | | | | 91.7 | 1.0 |
| C | | ✓ | | | 91.9 | 1.2 |
| D | ✓ | ✓ | | | 92.5 | 1.8 |
| E | ✓ | ✓ | ✓ | | 92.8 | 2.1 |
| F | ✓ | ✓ | ✓ | ✓ | 92.9 | 2.2 |
+
+formance for all the four classifier networks. Especially, for PointNet [23] and PointNet++ [24], the percentage of improvement is over $5\%$ . Besides, we show visual results on shape retrieval for three different query models in Figure 6. Compared with the original PointNet [23], which is equipped with conventional DA, the augmented version with PointAugment produces more accurate retrievals.
+
+# 5.3. PointAugment Analysis
+
+Further, we conducted more experiments to evaluate various aspects of PointAugment, including a robustness test (Section 5.3.1), an ablation study (Section 5.3.2), and a detailed analysis on its Augmentor network (Section 5.3.3). Note that, in these experiments, we employ PointNet++ [24] as the classifier and perform experiments on MN40.
+
+# 5.3.1 Robustness Test
+
+We conducted the robustness test by corrupting test samples using the following five settings: (i) adding random jittering with Gaussian noise ranged $[-1.0, 1.0]$ ; (ii, iii) adding uniform scaling with a ratio of 0.9 or 1.1; and (iv, v) adding rotation with $90^{\circ}$ or $180^{\circ}$ along the gravity axis. For each setting, we use three different DA strategies: without DA, conventional DA, and our PointAugment.
+
+Table 4 reports the results, where we show also the original test accuracy (Ori.) without using corrupted test samples as a reference. The results in the first two rows show that
+
+
+Figure 7: Evaluation curves: shape classification accuracy using different versions of $\mathcal{L}_A$ over training epochs.
+
+DA is an efficient way to improve the classification performance. Further, comparing the last two rows in the table, we can see that for all settings, our PointAugment consistently outperforms the conventional DA, which is random-based and may not yield good augmented samples all the time. Particularly, by comparing the results with the original test accuracy, PointAugment is less sensitive to corruption, where the achieved accuracy reduces only slightly. Such a result shows that PointAugment improves the robustness of a network with better shape recognition.
+
+# 5.3.2 Ablation Study
+
+Table 5 summarizes the results of the ablation study. Model A denotes PointNet++ [24] without our augmentor, which gives a baseline classification accuracy of $90.7\%$ . On top of Model A, we employ our augmentor with point-wise displacement $\mathcal{D}$ alone (Model B), with shape-wise transformation $\mathcal{M}$ alone (Model C), or with both (Model D). From the results shown in the first four rows in Table 5, we can see that, each of the augmentation functions contributes to produce more effective augmented samples.
+
+Besides, we also ablate the dropout strategy (DP) for training, and the use of mixed training samples (Mix), as presented in Section 4.5, where we create Models E & F for comparison; see Table 5. By comparing the classification accuracies achieved by Models D, E, and F, we can see that both DP and Mix help to slightly improve the overall results. Note, these strategies are typically for stabilizing the model training and exploring more transformations.
+
+# 5.3.3 Augmentor Analysis
+
+Analysis on $\mathcal{L}_{\mathcal{A}}$ . As described in Section 4.2, we employ $\mathcal{L}_{\mathcal{A}}$ (see Eq. (5)) to guide the training of our augmentor. To demonstrate its superiority, we compare it with (i) a simple version (see Eq. (1)) and (ii) a baseline, i.e., the conventional DA employed in PointNet++ [24]. Figure 7 plots the evaluation accuracy curves in terms of the training epochs.
+
+Table 6: Classification accuracy (%) for diff. $\lambda$ in Eq. (5).
+
+| λ = 0.5 | λ = 1.0 | λ = 2.0 |
| 92.1 | 92.9 | 92.3 |
+
+Table 7: Accuracy (%) with diff. feature extraction units.
+
+| DenseConv | EdgeConv | our |
| 92.5 | 92.7 | 92.9 |
+
+Clearly, the training state achieved by using the simple version is very unstable; see the gray plot. This indicates that simply enlarging the difference between $\mathcal{P}$ and $\mathcal{P}'$ without restriction will create turbulence in the training process, resulting in a worse classification performance, when compared even with the baseline; see the orange plot. Comparing the blue and orange plots in Figure 7, we can see that, at the beginning of the training, since the augmentor is initialized randomly, the accuracy of employing PointAugment is slightly lower than the baseline. However, when the training continues, PointAugment rapidly surpasses the baseline and shows a clear improvement over the baseline, showing the effectiveness of our designed augmentor loss.
+
+Hyper-parameter $\lambda$ in Eq. (5). Table 6 shows the classification accuracy for different choices of $\lambda$ . As we mentioned in Section 4.2, a small $\lambda$ encourages the augmentor to focus more on the classification. However, if it is too small, e.g., 0.5, the augmentor tends to take no actions in the augmentation function, thus leading to a worse classification performance; see the comparisons in the left two columns in Table 6. On the other hand, if we set a larger $\lambda$ , e.g., 2.0, the augmented samples may be too difficult for the classifier. Such a result also hinders the network training; see the right-most column. Hence, in PointAugment, we adopt $\lambda = 1.0$ to equally treat the two components.
+
+Analysis on the augmentor architecture design. As we mentioned in Section 4.1, we employ a per-point feature extraction unit to embed per-point features $\pmb{F}$ given the training sample $\mathcal{P}$ . In our implementation, we use shared MLPs to extract $\pmb{F}$ . In this part, we further explore two other choices of feature extraction units for replacing the MLPs, including DenseConv [17] and EdgeConv [37]. Please refer to their original papers for the detailed methods. Table 7 shows the accuracy comparisons for the three implementations. From the results, we can see that, although using MLPs is a relative simple implementation compared with DenseConv and EdgeConv, it can lead to the best classification performance. We think of the following reasons. The aim of our augmentor is to regress a shape-wise transformation $\mathcal{M} \in \mathbb{R}^{3 \times 3}$ and a point-wise displacement $\mathcal{D} \in \mathbb{R}^{N \times 3}$ from the per-point features $\pmb{F}$ , which is not a very tough task. If we apply a complex unit to extract $\pmb{F}$ , it may easily have overfitting problems. The results shown in Table 7
+
+demonstrate that the MLPs is already enough for our augmentor to regress the augmentation functions.
+
+# 5.4. Discussion and Future work
+
+Overall, the augmentor network learns the sample-level augmentation function in a self-supervised manner, by taking the feedback from the classifier to update its parameters. As a result, the advantage on the classifier network is that by exploring those well-tuned augmented samples, the classifier can enhance its capability and better learn to uncover intrinsic variations among the different classes and discover the intra-class insensitive features.
+
+In the future, we plan to adapt PointAugment for more tasks, such as part segmentation [23, 18], semantic segmentation [20, 45, 1], object detection [39, 30], upsampling [40, 13], denoising [7, 26], etc. However, it is worth to note particularly that different tasks require different considerations. For example, for parts segmentation, it is better for the augmentor to be part-aware and produce distortions on parts without changing the parts semantic; for object detection, the augmentor should be able to generate a richer variety of 3D transformations for various kinds of object instances in 3D scenes, etc. Therefore, one future direction is to explore part-aware or instance-aware auto-augmentation to extend PointAugment for other tasks.
+
+# 6. Conclusion
+
+We presented PointAugment, the first auto-augmentation framework that we are aware of for 3D point clouds, considering both the capability of the classification network and the complexity of the training samples. First, PointAugment is an end-to-end framework that jointly optimizes the aug- mentor and classifier networks, such that the augmentor can learn to improve based on feedback from the classifier and the classifier can learn to process wider variety of training samples. Second, PointAugment is sample-aware with its augmentor learns to produce augmentation functions specific to the input samples, with a shape-wise transformation and a point-wise displacement for handling point cloud samples. Third, we formulate a novel loss function to enable the augmentor to dynamically adjust the augmentation magnitude based on the learning state of the classifier, so that it can generate augmented samples that best fit the classifier in different training stages. In the end, we conducted extensive experiments and demonstrated how PointAugment contributes to improve the performance of four representative networks on the MN40 and SR16 datasets.
+
+Acknowledgments. We thank anonymous reviewers for the valuable comments. The work is supported by the Research Grants Council of the Hong Kong Special Administrative Region (CUHK 14201717 & 14201918), and CUHK Research Committee Direct Grant for Research 2018/19.
+
+# References
+
+[1] Zhutian Chen, Wei Zeng, Zhiguang Yang, Lingyun Yu, ChiWing Fu, and Huamin Qu. LassoNet: Deep Lasso-selection of 3D point clouds. IEEE Trans. Vis. & Comp. Graphics (IEEE Visualization), 26(1):195-204, 2020. 8
+[2] Zitian Cheny, Yanwei Fuy, Yinda Zhang, Yu-Gang Jiang, Xi-angyang Xue, and Leonid Sigal. Multi-level semantic feature augmentation for one-shot learning. IEEE Trans. Image Proc (TIP), 28(9):4594–4605, 2019. 2
+[3] Ekin D. Cubuk, Barret Zoph, Dandelion Mane, Vijay Vasudevan, and Quoc V. Le. AutoAugment: Learning augmentation strategies from data. In IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), pages 113-123, 2019. 2, 3
+[4] Terrance DeVries and Graham W. Taylor. Dataset augmentation in feature space. In Int. Conf. on Learning Representations (ICLR), 2017. 2
+[5] Ian Goodfellow. NeurIPS 2016 tutorial: Generative adversarial networks. arXiv preprint arXiv:1701.00160, 2016. 5
+[6] Benjamin Graham. Fractional max-pooling. arXiv preprint arXiv:1412.6071, 2014. 1
+[7] Pedro Hermosilla, Tobias Ritschel, and Timo Ropinski. Total Denoising: Unsupervised learning of 3D point cloud cleaning. In IEEE Int. Conf. on Computer Vision (ICCV), pages 52-60, 2019. 8
+[8] Daniel Ho, Eric Liang, Ion Stoica, Pieter Abbeel, and Xi Chen. Population Based Augmentation: Efficient learning of augmentation policy schedules. In Int. Conf. on Machine Learning. (ICML), 2019. 2, 3
+[9] Gao Huang, Yixuan Li, Geoff Pleiss, Zhuang Liu, John E. Hopcroft, and Kilian Q. Weinberger. Snapshot ensembles: Train 1, get M for free. In Int. Conf. on Learning Representations (ICLR), 2017. 5
+[10] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. ImageNet classification with deep convolutional neural networks. In Conference and Workshop on Neural Information Processing Systems (NeurIPS), pages 1097-1105, 2012. 1
+[11] Loic Landrieu and Martin Simonovsky. Large-scale point cloud semantic segmentation with superpoint graphs. In IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), pages 4558-4567, 2018. 2
+[12] Joseph Lemley, Shabab Bazrafkan, and Peter Corcoran. Smart augmentation learning an optimal data augmentation strategy. IEEE Access, 5:5858-5869, 2017. 2
+[13] Ruihui Li, Xianzhi Li, Chi-Wing Fu, Daniel Cohen-Or, and Pheng-Ann Heng. PU-GAN: a point cloud upsampling adversarial network. In IEEE Int. Conf. on Computer Vision (ICCV), pages 7203–7212, 2019. 8
+[14] Sungbin Lim, Ildoo Kim, Taesup Kim, Chiheon Kim, and Sungwoong Kim. Fast AutoAugment. In Conference and Workshop on Neural Information Processing Systems (NeurIPS), 2019. 2, 3
+[15] 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 Conf. on Computer Vision (ECCV), pages 740-755, 2014. 1
+
+[16] Bo Liu, Xudong Wang, Mandar Dixit, Roland Kwitt, and Nuno Vasconcelos. Feature space transfer for data augmentation. In IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), pages 9090–9098, 2018. 2
+[17] Yongcheng Liu, Bin Fan, Gaofeng Meng, Jiwen Lu, Shiming Xiang, and Chunhong Pan. DensePoint: Learning densely contextual representation for efficient point cloud processing. In IEEE Int. Conf. on Computer Vision (ICCV), pages 5239-5248, 2019. 2, 5, 6, 8
+[18] Yongcheng Liu, Bin Fan, Shiming Xiang, and Chunhong Pan. Relation-shape convolutional neural network for point cloud analysis. In IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), pages 8895-8904, 2019. 1, 2, 5, 6, 8
+[19] Jiageng Mao, Xiaogang Wang, and Hongsheng Li. Interpolated convolutional networks for 3D point cloud understanding. In IEEE Int. Conf. on Computer Vision (ICCV), pages 1578-1587, 2019. 1, 2
+[20] Hsien-Yu Meng, Lin Gao, Yu-Kun Lai, and Dinesh Manocha. VV-Net: Voxel VAE net with group convolutions for point cloud segmentation. In IEEE Int. Conf. on Computer Vision (ICCV), pages 8500–8508, 2019. 8
+[21] 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 Workshop, 2017. 5
+[22] Sergey Prokudin, Christoph Lassner, and Javier Romero. Efficient learning on point clouds with basis point sets. In IEEE Int. Conf. on Computer Vision (ICCV), pages 4332-4341, 2019. 2
+[23] Charles R. Qi, Hao Su, Kaichun Mo, and Leonidas J. Guibas. PointNet: Deep learning on point sets for 3D classification and segmentation. In IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), pages 652-660, 2017. 1, 2, 4, 5, 6, 7, 8
+[24] 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 Conference and Workshop on Neural Information Processing Systems (NeurIPS), pages 5099–5108, 2017. 1, 2, 5, 6, 7
+[25] Guo-Jun Qi. Loss-sensitive generative adversarial networks on Lipschitz densities. arXiv preprint arXiv:1701.06264, 2017.4
+[26] Marie-Julie Rakotosaona, Vittorio La Barbera, Paul Guerrero, Niloy J. Mitra, and Maks Ovsjanikov. PointCleanNet: Learning to denoise and remove outliers from dense point clouds. Computer Graphics Forum, 2019. To appear. 8
+[27] Alexander J. Ratner, Henry Ehrenberg, Zeshan Hussain, Jared Dunnmon, and Christopher Ré. Learning to compose domain-specific transformations for data augmentation. In Conference and Workshop on Neural Information Processing Systems (NeurIPS), pages 3236-3246, 2017. 2
+[28] Manolis Savva, Fisher Yu, Hao Su, M. Aono, B. Chen, D. Cohen-Or, W. Deng, Hang Su, Song Bai, Xiang Bai, et al. SHREC16' track: largescale 3D shape retrieval from ShapeNet Core55. In Proceedings of the eurographics workshop on 3D object retrieval, pages 89–98, 2016. 2, 5
+
+[29] Yiru Shen, Chen Feng, Yaoqing Yang, and Dong Tian. Mining point cloud local structures by kernel correlation and graph pooling. In IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), pages 4548-4557, 2018. 2
+[30] Shaoshuai Shi, Xiaogang Wang, and Hongsheng Li. PointR-CNN: 3D object proposal generation and detection from point cloud. In IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), pages 770-779, 2019. 8
+[31] Ashish Shrivastava, Tomas Pfister, Oncel Tuzel, Joshua Susskind, Wenda Wang, and Russell Webb. Learning from simulated and unsupervised images through adversarial training. In IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), pages 2107-2116, 2017. 2, 5
+[32] Hang Su, Varun Jampani, Deqing Sun, Subhransu Maji, Evangelos Kalogerakis, Ming-Hsuan Yang, and Jan Kautz. SPLATNet: Sparse lattice networks for point cloud processing. In IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), pages 2530-2539, 2018. 2
+[33] Zhiqiang Tang, Xi Peng, Tingfeng Li, Yizhe Zhu, and Dimitris N. Metaxas. AdaTransform: Adaptive data transformation. In IEEE Int. Conf. on Computer Vision (ICCV), pages 2998-3006, 2019. 2
+[34] 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 IEEE Int. Conf. on Computer Vision (ICCV), pages 6411–6420, 2019. 2, 6
+[35] Toan Tran, Trung Pham, Gustavo Carneiro, Lyle Palmer, and Ian Reid. A Bayesian data augmentation approach for learning deep models. In Conference and Workshop on Neural Information Processing Systems (NeurIPS), pages 2797-2806, 2017. 2
+[36] Chu Wang, Babak Samari, and Kaleem Siddiqi. Local spectral graph convolution for point set feature learning. In European Conf. on Computer Vision (ECCV), pages 52-66, 2018. 2
+[37] 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 Trans. on Graphics, 38(5):146:1-12, 2019. 1, 2, 5, 6, 8
+[38] 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 Conf. on Computer Vision and Pattern Recognition (CVPR), pages 1912-1920, 2015. 1, 2, 5
+[39] Zetong Yang, Yanan Sun, Shu Liu, Xiaoyong Shen, and Jiaya Jia. STD: Sparse-to-dense 3D object detector for point cloud. In IEEE Int. Conf. on Computer Vision (ICCV), pages 1951-1960, 2019. 8
+[40] Lequan Yu, Xianzhi Li, Chi-Wing Fu, Daniel Cohen-Or, and Pheng-Ann Heng. PU-Net: Point cloud upsampling network. In IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), pages 2790–2799, 2018. 8
+[41] 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 IEEE Int. Conf. on Computer Vision (ICCV), pages 6023-6032, 2019. 2
+
+[42] Hongyi Zhang, Moustapha Cisse, Yann N. Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. In Int. Conf. on Learning Representations (ICLR), 2018. 2
+[43] Xinyu Zhang, Qiang Wang, Jian Zhang, and Zhao Zhong. Adversarial AutoAugment. In Int. Conf. on Learning Representations (ICLR), 2020. 2
+[44] Zhiyuan Zhang, Binh-Son Hua, and Sai-Kit Yeung. ShellNet: Efficient point cloud convolutional neural networks using concentric shells statistics. In IEEE Int. Conf. on Computer Vision (ICCV), pages 1607–1616, 2019. 6
+[45] Hengshuang Zhao, Li Jiang, Chi-Wing Fu, and Jiaya Jia. PointWeb: Enhancing local neighborhood features for point cloud processing. In IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), pages 5565-5573, 2019. 2, 8
\ No newline at end of file
diff --git a/pointaugmentanautoaugmentationframeworkforpointcloudclassification/images.zip b/pointaugmentanautoaugmentationframeworkforpointcloudclassification/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..54a9b1ebc9b4118f2d5697f4e3075157a9800bfb
--- /dev/null
+++ b/pointaugmentanautoaugmentationframeworkforpointcloudclassification/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0d7a778b642655f1096a060b70b0be219441c6b8374d9bb3032e3d694825a0bb
+size 310557
diff --git a/pointaugmentanautoaugmentationframeworkforpointcloudclassification/layout.json b/pointaugmentanautoaugmentationframeworkforpointcloudclassification/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..ce9004fa1a542e4c732a914780063336de70cc89
--- /dev/null
+++ b/pointaugmentanautoaugmentationframeworkforpointcloudclassification/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7856382ffba3382fad2144df0023747a2d9caeda00052fc7f93fd6bf3ad1975d
+size 480231
diff --git a/pointcloudcompletionbyskipattentionnetworkwithhierarchicalfolding/573d1373-d645-4ae1-b692-bf9ad645d29e_content_list.json b/pointcloudcompletionbyskipattentionnetworkwithhierarchicalfolding/573d1373-d645-4ae1-b692-bf9ad645d29e_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..6e04806f136b1e562daea7af45dc75e997deec7f
--- /dev/null
+++ b/pointcloudcompletionbyskipattentionnetworkwithhierarchicalfolding/573d1373-d645-4ae1-b692-bf9ad645d29e_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:466edfbb46c78ec3d07c0f2310910715f1be548838f6e01d0d816978424e9202
+size 75777
diff --git a/pointcloudcompletionbyskipattentionnetworkwithhierarchicalfolding/573d1373-d645-4ae1-b692-bf9ad645d29e_model.json b/pointcloudcompletionbyskipattentionnetworkwithhierarchicalfolding/573d1373-d645-4ae1-b692-bf9ad645d29e_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..ae89655358fdc15866c15a0624539d58d3ee7bf2
--- /dev/null
+++ b/pointcloudcompletionbyskipattentionnetworkwithhierarchicalfolding/573d1373-d645-4ae1-b692-bf9ad645d29e_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:58a9303e79e8fa9a0b56c2f0bb0c89bce71f144cd039664abf667346cc8278c8
+size 94146
diff --git a/pointcloudcompletionbyskipattentionnetworkwithhierarchicalfolding/573d1373-d645-4ae1-b692-bf9ad645d29e_origin.pdf b/pointcloudcompletionbyskipattentionnetworkwithhierarchicalfolding/573d1373-d645-4ae1-b692-bf9ad645d29e_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..ea595c49b3a4d71dcf4f870e79bab37121c20c79
--- /dev/null
+++ b/pointcloudcompletionbyskipattentionnetworkwithhierarchicalfolding/573d1373-d645-4ae1-b692-bf9ad645d29e_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:79c9a861f1ef01fb7686b312d142ff029b75bf046bae9c21666097fb910fbeff
+size 3194072
diff --git a/pointcloudcompletionbyskipattentionnetworkwithhierarchicalfolding/full.md b/pointcloudcompletionbyskipattentionnetworkwithhierarchicalfolding/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..96e429462a72d225939da5ff5c83b118131e2de9
--- /dev/null
+++ b/pointcloudcompletionbyskipattentionnetworkwithhierarchicalfolding/full.md
@@ -0,0 +1,285 @@
+# Point Cloud Completion by Skip-attention Network with Hierarchical Folding
+
+Xin Wen $^{1}$ , Tianyang Li $^{1}$ , Zhizhong Han $^{2}$ , Yu-Shen Liu $^{1*}$
+
+$^{1}$ School of Software, BNRist, Tsinghua University, Beijing, China
+
+$^{2}$ Department of Computer Science, University of Maryland, College Park, USA
+
+{x-wen16,lity16}@mails.tsinghua.edu.cn h312h@umd.edu liuyushen@tsinghua.edu.cn
+
+# Abstract
+
+Point cloud completion aims to infer the complete geometries for missing regions of 3D objects from incomplete ones. Previous methods usually predict the complete point cloud based on the global shape representation extracted from the incomplete input. However, the global representation often suffers from the information loss of structure details on local regions of incomplete point cloud. To address this problem, we propose Skip-Attention Network (SA-Net) for 3D point cloud completion. Our main contributions lie in the following two-folds. First, we propose a skip-attention mechanism to effectively exploit the local structure details of incomplete point clouds during the inference of missing parts. The skip-attention mechanism selectively conveys geometric information from the local regions of incomplete point clouds for the generation of complete ones at different resolutions, where the skip-attention reveals the completion process in an interpretable way. Second, in order to fully utilize the selected geometric information encoded by skip-attention mechanism at different resolutions, we propose a novel structure-preserving decoder with hierarchical folding for complete shape generation. The hierarchical folding preserves the structure of complete point cloud generated in upper layer by progressively detailing the local regions, using the skip-attentioned geometry at the same resolution. We conduct comprehensive experiments on ShapeNet and KITTI datasets, which demonstrate that the proposed SA-Net outperforms the state-of-the-art point cloud completion methods.
+
+# 1. Introduction
+
+Recently, point cloud has received an extensive attention as a format of 3D objects, which can be easily accessed by 3D scanning devices and depth cameras. However, the raw point clouds produced by those devices are usually
+
+
+Figure 1. Illustration of the proposed skip-attention. Compared with the previous methods that simply rely on the global shape representation for completing point clouds, our skip-attention mechanism directly searches for informative local regions in input airplane shape, and selectively uses these regions for predicting the missing right wing or reconstructing the similar left wing (red).
+
+sparse, noisy and mostly with serious missing regions due to the limited view angles or occlusion [47], which are difficult to be directly processed by the further shape analysis/ rendering methods. Therefore, raw point cloud preprocessing becomes an important requirement for many real-world 3D computer vision applications. In this paper, we focus on the task of completing the missing regions of 3D shapes represented by point clouds.
+
+The task of point cloud completion can be roughly decomposed into two targets [41, 47]. The first target is to preserve the geometric shape information of the original input point cloud, and the second target is to recover the missing regions according to the given inputs. In order to achieve such two targets, current studies usually followed the paradigm framework to learn a global shape representation from incomplete point clouds, which is further leveraged to estimate the missing geometric information [45, 47, 22]. However, the encoded global shape representation often suffers from the information loss of some structure details on local regions of incomplete point clouds, which should be fully preserved for further inferring the missing geometric information. As shown in Figure 1, to predict the complete wings of an airplane, the network should first preserve the existing left wing in the incomplete point cloud. And then, in order to infer the missing right wing, the network could refer to the existing left wing according to the pattern similarity between the regions of two similar wings.
+
+An intuitive idea to address this problem is to adopt the skip-connection mechanism like U-Net [35], which is widely used for local region reconstruction and reasoning in images. However, there are two problems for directly adopting skip-connection into point cloud completion. First, the previous skip-connection developed in [35] can not be directly applied to unordered inputs, since it concatenates the feature vectors according to the pixel order of 2D grids. Second, in the task of point cloud completion, not all the local region features under each level of resolutions will be of help for shape inferring and reconstruction. Equally revisiting them with skip-connection may introduce the information redundancy, and limit the feature learning ability of the entire network.
+
+Therefore, in order to preserve the information of structure details while addressing the problem of skip-connection, we propose a novel deep neural network for point cloud completion, named Skip-Attention Network (SA-Net). The network is designed in an end-to-end framework, where an encoder-decoder architecture is specially designed for feature extraction and shape completion. The skip-attention refers to the attention based feature pipeline, which reveals completion process in an interpretable way. The skip-attention selectively conveys geometric information from the local regions of incomplete point clouds for the generation of the complete ones at different resolutions. The skip-attention enables the decoder to fully exploit and preserve the structure details on local regions. Compared with the skip-connection, the skip-attention can be generalized to unordered point clouds, since attention mechanism has no pre-requirements on the order of the input features. Moreover, our skip-attention provides an attentional choice for network to revisit the features under different resolutions, which allows the network to selectively incorporate the features encoded with desirable geometric information, and avoid the problem of information redundancy.
+
+In order to fully utilize the selected geometric information from skip-attention at different resolutions, we further propose a structure-preserving decoder with hierarchical folding to generate complete point clouds. The hierarchical folding preserves the structure of point cloud generated in the upper layer, by progressively detailing the local regions using the skip-attentioned geometric information at the same resolution from the encoder. Specifically, the decoder has the same number of resolution levels as the encoder, with the skip-attention connecting each level of encoder to the corresponding level of decoder. In order to hierarchically fold the point clouds through levels, we propose to sample 2D grids with an increasing density from a 2D plane of fixed size. Compared with the decoders in existing point cloud completion methods [47, 41, 45], the proposed structure-preserving decoder can preserve the structure details on local regions under the whole resolution lev
+
+els, which enables the network to predict complete shape that maintains the global shape consistency while capturing more local region information. Our main contributions can be summarized as follows.
+
+- We propose a novel Skip-Attention Network (SA-Net) for the point cloud completion task, which achieves state-of-the-art results. Moreover, the architecture of SA-Net can also be used for improving the performance of shape segmentation, and achieving the state-of-the-art results in unsupervised shape classification.
+- We propose the skip-attention mechanism to fuse the informative local region features from encoder into the point features of decoder at different resolutions, which enables the network to infer the missing regions using more detailed geometry information from incomplete point clouds. In addition, skip-attention reveals the completion process in an interpretable way.
+- We propose a structure-preserving decoder for high quality point cloud generation. It can progressively detail the point clouds at different resolutions with hierarchical folding, which hierarchically preserves the structure of complete shape at different resolutions.
+
+# 2. Related Work
+
+3D computer vision is an active research field in recent year [5, 11, 10, 12, 29, 13, 31], where the studies of 3D shape completion lead to many branches. For examples, geometry based [40, 2, 42, 23] methods exploit the geometric features of surface on the partial input to generate the missing part of 3D shapes, and alignment-based methods [37, 24, 32, 38] maintain a shape database and search for the similar patches to fill the incomplete regions of 3D shapes. Our method belongs to the deep learning based methods, which benefits a lot from the recent development of deep neural network in 3D computer vision [9, 28, 20, 16, 18, 15, 17, 14]. This branch can be further categorized according to the input form of 3D shapes.
+
+Volumetric shape completion. 3D volumetric shape completion is a direction that is benefited a lot from the progress in 2D computer vision. Notable work like 3D-EPN [4] considered a progressive reconstruction of 3D volumetric shapes. And Han et. al [8] combined the inference of global structure with the local geometry refinement to directly generate the complete 3D volumetric shape of high resolution. More recently, the variational auto-encoder was introduced to learn a shape prior for inferring the latent representation of complete shapes [39]. Although fascinating improvements have been made in the research area of 3D volumetric data, the computational cost which is cubic to the resolution of input data makes it difficult to process fine-grained shapes.
+
+
+Figure 2. The overall architecture of SA-Net. SA-Net mainly consists of three modules: the encoder (yellow) aims to extract local region features from the input point clouds; the structure-preserving decoder (green) aims to reconstruct the complete point clouds and preserve the local region details; the skip-attention (sky blue) bridges the local region features in encoder and the point features in decoder.
+
+Point cloud completion. The point cloud based 3D shape completion is a surging research area benefited from the pioneering work of PointNet [33] and PointNet++ [34]. As a compact representation of 3D shapes, point cloud can represent arbitrary detailed structure of 3D shape with a smaller storage cost compared to 3D volumetric data. Recent notable studies like PCN [47], FoldingNet [45] and AtlasNet [7] usually learn a global representation from partial point cloud, and generate the complete shape based on the learned global feature. Following the same practice, a tree-structured decoder was proposed in TopNet [41] for better structure-aware point cloud generation. By combining the reinforcement learning with the adversarial network, RL-GAN-Net [36] and Render4Completion [21] further improved the reality and consistency of the generated complete point cloud with the ground truth. However, most of these studies suffer from the information loss of structure details, as they predict the whole point cloud only from a single global shape representation.
+
+# 3. The Architecture of SA-Net
+
+Figure 2 shows the overall architecture of SA-Net, which consists of an encoder and a structure-preserving decoder. Between the encoder and the decoder, the skip-attention serves as the pipeline that connects the local region features (extracted from different resolutions in encoder) with the point features in the corresponding resolutions of decoder.
+
+# 3.1. Encoder
+
+Given the input point cloud of size $N = 2,048$ with its 3-dimensional coordinates, the encoder of SA-Net aims to extract the features from the incomplete input point clouds. In SA-Net, we adopt the PointNet++ [34] framework as the backbone of our point cloud feature encoder. As shown in Figure 2, there are three levels of feature extraction, with the first level and the second level sampling the input point cloud into the size $N_1^E = 512$ and $N_2^E = 256$ (the superscript $E$ denotes the encoder), and the last level grouping the input point cloud into a global representation. As a result, the encoder generates one global representation, and some lo
+
+
+Figure 3. Illustration of the folding block, which consists of a down-module and two up-modules with self-attention inside. Folding block aims to lift the number of point features and refine the geometric information lying within these features.
+
+cal region features extracted from different resolution levels for the input point clouds, respectively.
+
+# 3.2. Structure-Preserving Decoder
+
+Considering that the encoder extracts the local region features from different resolution levels, it is a natural practice for decoder to generate point features following the same way but with inverse resolution levels. This allows the skip-attention to establish a level-to-level connection between the extracted local region features in encoder and the generated point features in decoder. Inspired by this idea, we propose the structure-preserving decoder, which aims to progressively generate the complete point clouds and preserve the structure details of local regions under all resolution levels. Specifically, as shown in Figure 2, the structure-preserving decoder hierarchically folds the point clouds for three resolution levels, which is equal to the number of resolution levels in the encoder. Each resolution level of decoder consists of a skip-attention to convey the local region features from the same level of encoder, and a folding block to increase the number of point features.
+
+# 3.3. Folding Block
+
+Except for lifting the number of point features, the folding block also concerns the refinement of the expanded point features, which allows the decoder to produce more
+
+consistent geometric details on the local regions of point clouds. Note that, such problem is usually ignored by previous methods, in which they either directly fold the entire point set based on the duplicated global representation [47, 45], or simply produce the point clouds through multilayer perceptrons (MLPs) and reshape operations [41]. In SA-Net, we take the inspiration of the up-down-up framework from [26] to address this problem, which is adopted as the base of our folding block. Figure 3 shows the detailed structure of the folding block in the $i$ -th level of decoder.
+
+The up-module with hierarchical folding. As shown in the yellow part of Figure 3, for the input $N_{i+1}^{D}$ (the superscript $D$ denotes the decoder) point features from the previous level, the up-module first copies the point features by the time of up-sampling ratio $r_i = \frac{N_i^D}{N_{i+1}^D}$ , and concatenates them with the 2D grids. Different from previous folding based decoders [26, 47, 45], which only have one resolution level for point cloud generation, the decoder in SA-Net progressively generates the point clouds for multiple resolution levels. In order to hierarchically fold point clouds through these levels, we propose to sample 2D grids with an increasing density from the 2D plane of fixed size. Specifically, for the $N_i^D$ point features in the $i$ -th level of decoder, the $N_i^D$ 2D grids is evenly sampled from the $46 \times 46$ 2D plane (the smallest number of square greater than 2,048), as illustrated in the up-module of Figure 3. These sampled 2D grids are then concatenated with the point features. After that, the point features with 2D grids are passed through MLPs and transformed into 3-dimensional latent codewords [45]. These 3-dimensional codewords are again concatenated with the point features in the $i$ -th level of decoder.
+
+In order to integrate the semantic and spatial relationships between these point features, we adopt a self-attention module with MLPs to establish the inner links between features, which aims to selectively fuse the similar features together through attention mechanism. This process is shown in the bottom half of Figure 3. Given the $j$ -th point feature $\pmb{p}_j^i$ of $i$ -th level in decoder, the skip-connection first calculates the attention scores $\{a_{j,k}|k = 1,2,\dots,N_i^D\}$ between $\pmb{p}_j^i$ and all of the point features $\{\pmb{p}_k^i|k = 1,2,\dots,N_i^D\}$ in $i$ -th level of decoder as
+
+$$
+a _ {j, k} = \frac {\exp \left(\mathrm {M} \left(\boldsymbol {p} _ {j} ^ {i} \mid \theta_ {h}\right) ^ {\mathrm {T}} \cdot \mathrm {M} \left(\boldsymbol {p} _ {k} ^ {i} \mid \theta_ {l}\right)\right)}{\sum_ {n = 1} ^ {N _ {i}} \exp \left(\mathrm {M} \left(\boldsymbol {p} _ {j} ^ {i} \mid \theta_ {h}\right) ^ {\mathrm {T}} \cdot \mathrm {M} \left(\boldsymbol {p} _ {n} ^ {i} \mid \theta_ {l}\right)\right)} \tag {1}
+$$
+
+where $\mathrm{M}$ denotes the MLPs with parameters $\theta$ , and $\mathrm{T}$ denotes the transposition operation. $h$ and $l$ indicate that two MLPs have different parameters. We take the weighted sum of point features $\{\pmb{p}_k^i\}$ as the final context vector, and fuse it into the point feature $\pmb{p}_j^i$ as follow:
+
+$$
+\boldsymbol {p} _ {j} ^ {i} \leftarrow \boldsymbol {p} _ {j} ^ {i} + \sum_ {k = 1} ^ {N _ {i} ^ {D}} a _ {j, k} \cdot \mathrm {M} \left(\boldsymbol {p} _ {k} ^ {i} \mid \theta_ {g}\right) \tag {2}
+$$
+
+
+Figure 4. Illustration of the skip-attention. The skip-attention calculates the pattern similarity between local regions of complete point cloud (red points in Pred, which is generated by red feature) and the local regions of incomplete one. The similar local regions in the incomplete point clouds is selectively fused into the decoder with attentioned weighted sum.
+
+The down-module. The point features expanded by the up-module actually occupy a small local region in the feature space, which can be aggregated as one local region feature through reshape and feature concatenation. Such aggregated local region feature can be regarded as a refined point feature of higher quality compared with the one in previous levels, since it contains not only the information from previous level of decoder, but also the detailed information produced by the current up-module. Then, followed by the MLPs and another up-module, the aggregated local region feature can be further used to reproduce the new point features with better structure details.
+
+# 3.4. Skip-attention
+
+The skip-attention serves as the pipeline to communicate the local region features extracted by encoder with the point features generated by decoder. It also interprets how the network completes shapes using information from incomplete ones. The skip-attention is designed for two purposes. First, when generating points that are located in the existing region of incomplete inputs, the skip-attention should fuse the feature of the same region from the encoder into the decoder, and guide the decoder to reconstruct more consistent structure details in such region. Second, when generating points that are located at the missing region of input, the skip-attention should search for referable similar regions in the original input point clouds, and guide the decoder to incorporate the shape of these similar regions as reference for inferring the shapes of missing regions. Both of the above purposes are achieved through an attention mechanism, as shown in Figure 4, where the semantic relativeness between point features in decoder and local region features in encoder are measured by attention scores, with the higher scores indicating the more significant pattern similarity (the wings of airplane). Then, the local region features are fused into point feature by weighted sum, and finally used for predicting related regions (also the wings of plane) in the complete point cloud.
+
+There are different possible ways to calculate attentions for the skip-attention pipeline. In this paper, we do not explore the whole space but typically choose two straightfor
+
+ward implementation, which work well in SA-Net. The first one in skip-attention is to directly adopt the learnable attention mechanism as described in the up-module. And the second one is to calculate the cosine similarity as the attention measurement between features. Compare with learnable attention, the unsmoothed (no softmax activation) cosine attention brings in more information from the previous encoder network, which can establish a strong connection between point features in decoder and local region features in encoder. On the other hand, the smoothed learnable attention can preserve more information from the original point features. For learnable attention, the attention score in the $i$ -th resolution level is computed between the point feature $p_j^i$ from decoder and all of the local region features $\{r_k^i | k = 1,2,\dots,N_i^E\}$ from encoder, given as
+
+$$
+a _ {j, k} ^ {\mathrm {L}} = \frac {\exp (\mathrm {M} (\boldsymbol {p} _ {j} ^ {i} | \theta_ {h} ^ {\mathrm {L}}) ^ {\mathrm {T}} \cdot \mathrm {M} (\boldsymbol {r} _ {k} ^ {i} | \theta_ {l} ^ {\mathrm {L}}))}{\sum_ {n = 1} ^ {N _ {i}} \exp (\mathrm {M} (\boldsymbol {p} _ {j} ^ {i} | \theta_ {h} ^ {\mathrm {L}}) ^ {\mathrm {T}} \cdot \mathrm {M} (\boldsymbol {r} _ {n} ^ {i} | \theta_ {l} ^ {\mathrm {L}}))}, \tag {3}
+$$
+
+where the superscript $L$ denotes the word learnable. For cosine distance, the attention score is given as
+
+$$
+a _ {j, k} ^ {\mathrm {C}} = \frac {\left(\boldsymbol {r} _ {k} ^ {i}\right) ^ {\mathrm {T}} \boldsymbol {p} _ {j} ^ {i}}{\| \boldsymbol {r} _ {k} ^ {i} \| _ {2} \| \boldsymbol {p} _ {j} ^ {i} \| _ {2}}, \tag {4}
+$$
+
+where the superscript C denotes the word cosine. Same as the self attention in up-module, we fuse the weighted sum of local region features $\{\pmb{r}_k^i\}$ into the point feature $\pmb{p}_j^i$ using element-wise addition, which is the same as Eq. (2). In ablation study (Sec. 4.2), we will quantitatively compare the performance of these two attentions.
+
+# 3.5. Training
+
+During training, the Chamfer distance (CD) $\mathcal{L}_{CD}$ and the Earth Mover distance (EMD) $\mathcal{L}_{EMD}$ are adopted as the optimization losses. The total loss for training is the weighted sum of the CD and EMD, defined as
+
+$$
+\mathcal {L} _ {\text {t o t a l}} = \mathcal {L} _ {\mathrm {E M D}} + \lambda \mathcal {L} _ {\mathrm {C D}}, \tag {5}
+$$
+
+where $\lambda$ is the weight parameter fixed to 10 for the experiments in our paper. The definition of $\mathcal{L}_{CD}$ and $\mathcal{L}_{EMD}$ will be detailed in Supplementary.
+
+# 4. Experiments
+
+By default, we use the cosine similarity based skip-attention for all experiments. In Sec. 4.2, we compare it with learnable attention. During evaluation, we mainly use Chamfer distance as the measurement to compare the predicted point clouds with the ground truth.
+
+# 4.1. Evaluation of Completion Performance
+
+Datasets. To evaluate the performance of SA-Net, we conduct experiments on two large scale datasets for point
+
+cloud completion. For quantitative comparison, we follow [47] to evaluate our methods on ShapeNet dataset [3], and generate 8 partial point clouds for each object by backprojecting 2.5D depth images from 8 views into 3D. Unlike Render4Completion [21], we follow [41] to evaluate on the sparse input, which is more close to the real-world scenarios. We uniformly sample only 2,048 points on the mesh surfaces for both the complete and partial shapes. We also qualitatively evaluate SA-Net on KITTI dataset [6], since there is no ground truth for the incomplete shape of cars in KITTI.
+
+ShapeNet dataset. We use the per point Chamfer distance as the evaluation metric. In Table 1, SA-Net is compared with two point cloud completion methods PCN [47] and TopNet [41]. The reconstruction based unsupervised representation learning methods FoldingNet [45] and AtlasNet [7] are also included, since their basic encoder-decoder framework can also be generalized to point cloud completion task. The results of the above 4 methods are cited from [41]. The comparison shows that SA-Net outperforms the other methods on 6 out of 8 categories, and also achieves the best average Chamfer distance.
+
+In Figure 5, we show the visualization results of point cloud completion using SA-Net and compare it with the other methods, from which we can find that SA-Net predicts more reasonable shape, while preserving more consistent geometric shapes for the existing parts. For example, in Figure 5(a.2) and 5(a.3), when predicting the missing lamp holders and table legs, the SA-Net generates more realistic shapes compared with the other three methods, and the points generated by SA-Net are arranged more tightly and shaped more close to the ground truth. In Figure 5(a.1) and 5(a.4), the SA-Net preserves the shapes of wings and the beam more consistently compared with the other three methods. The quantitative and qualitative improvements in shape completion task prove the effectiveness of skip-attention for introducing local region features, and the ability of structure-preserving decoder for utilizing the local region features to reconstruct completion point clouds. Moreover, in Table 2, we compare the number of trainable parameters in network of different methods, which shows that SA-Net has the least number of parameters, while achieving significantly better performance.
+
+KITTI dataset. The KITTI dataset is collected from the real-world LiDAR scans, where the ground truth is missing for quantitative evaluation. Therefore, we qualitatively evaluate the performance of SA-Net by the visualization results. The complete cars are predicted using the parameters trained under car category in ShapeNet dataset for all methods in Figure 6. Note that in KITTI dataset, the point number of incomplete car has a large range of variation. In order to obtain a fixed point number of input, for the incomplete cars with more than 2048 points, we randomly choose
+
+Table 1. Point cloud completion comparison on ShapeNet dataset in terms of per point Chamfer distance $\times {10}^{4}$ (lower is better).
+
+| Methods | Average | Plane | Cabinet | Car | Chair | Lamp | Couch | Table | Watercraft |
| AtlasNet [7] | 17.69 | 10.37 | 23.4 | 13.41 | 24.16 | 20.24 | 20.82 | 17.52 | 11.62 |
| PCN [47] | 14.72 | 8.09 | 18.32 | 10.53 | 19.33 | 18.52 | 16.44 | 16.34 | 10.21 |
| FoldingNet [45] | 16.48 | 11.18 | 20.15 | 13.25 | 21.48 | 18.19 | 19.09 | 17.8 | 10.69 |
| TopNet [41] | 9.72 | 5.5 | 12.02 | 8.9 | 12.56 | 9.54 | 12.2 | 9.57 | 7.51 |
| SA-Net(Ours) | 7.74 | 2.18 | 9.11 | 5.56 | 8.94 | 9.98 | 7.83 | 9.94 | 7.23 |
+
+
+(a) Visualized completion comparison on ShapeNet.
+
+
+(b) More completion results of SA-Net on ShapeNet.
+
+Table 2. The number of trainable parameters in each method.
+
+
+Figure 5. Visualization of point cloud completion comparison on ShapeNet dataset. We compare SA-Net with other methods in (a), and in (b) we show more completion results of SA-Net.
+Figure 6. Visualization of the completion results on KITTI dataset.
+
+2,048 points, otherwise, we randomly select points from the input to make up to the 2,048 points. The results are shown in Figure 6, from which we can find that our SA-Net predicts more structure details (car tiers) and shapes of higher quality (car trunks).
+
+# 4.2. Ablation Study
+
+In this subsection, we analysis the effect of important modules and hyper-parameters to SA-Net. All studies are typically conducted on the plane category for convenience.
+
+Effect of attention. We developed three variations of SA-Net to verify the effectiveness of attention in SA-Net: (1) "No-skip" is the variation that removes the skip-attention from the SA-Net. (2) "Skip-L" is the variation that replaces the cosine attention in skip-attention by the learnable attention. (3) "Fold-C" is the variation that replaces the learnable attention by the cosine similarity in the self-attention of folding block. All three variations have the same structure as SA-Net except for the removed/replaced module. The results are shown in Table 3, in which the
+
+original SA-Net achieves the best performance. The experimental results prove the effectiveness of attention used in SA-Net. The performance drop for replacing the attention in skip-attention (Skip-L) and self-attention (Fold-C) can be dedicated to the different design purposes for the two modules. The skip-attention aims to incorporate the local region features, and the unsmoothed cosine similarity allows more information to be fused into decoder. In contrast, the self-attention aims to learn a discriminative point features instead of simply merging the neighborhood features, therefore, smoothed weights (by softmax) in self-attention is more desirable for the network to preserve the original information of the point features. We specially note that, since removing the decoder of multi-resolution levels will also change the linkages of skip-attention, in Sec 4.3, we will instead evaluate the effectiveness of decoder on the task of unsupervised shape classification.
+
+Table 3. The effect of each module to SA-Net (plane category).
+
+| Methods | No-skip | Skip-L | Fold-C | SA-Net |
| CD (×104) | 2.31 | 2.25 | 2.34 | 2.18 |
+
+Effect of optimization loss. To evaluate the effect of EMD loss and CD loss to SA-Net, we developed two variations: (1) "SA-Net-EMD" is the variation of SA-Net that is only trained using EMD loss; (2) "SA-Net-CD" is the variation that is only trained with CD loss. The comparison results are shown in Table 4, which proves that both EMD and CD contribute to the performance of SA-Net.
+
+Table 4. The effect of each optimization loss (plane category).
+
+| Methods | SA-Net-EMD | SA-Net-CD | SA-Net |
| CD (×104) | 2.39 | 2.23 | 2.18 |
| EMD (×102) | 3.06 | 4.58 | 3.02 |
+
+
+Figure 7. Visualization of completion results on different resolutions of input.
+
+Effect of input point number. We analyze the robustness of SA-Net on various resolutions of inputs, especially for the performance on sparse input. In this experiment, we fix the number of output point clouds to 2,048, and evaluate the performance of SA-Net on the input point clouds with resolutions ranging from 256 to 2,048. For the point size less than 2,048, we use the same strategy in KITTI dataset to randomly select points from input, and lift the number of points up to 2,048. The model performance in terms of per point CD is reported in Table 5. In Figure 7, we visualize the completion quality under different point number of incomplete point clouds, in which the SA-Net shows a robust performance on all input resolutions.
+
+Table 5. The effect of input point number (plane category).
+
+| #Points | 2048 | 1024 | 512 | 256 |
| CD (×104) | 2.18 | 2.28 | 2.45 | 3.31 |
+
+Visualization of skip-attention. In Figure 8, we visualize the attention in the second resolution level of decoder, which is to predict a complete plane. We compare the skip-attention learned for generating the empennage and part of the two wings. The points generated by the same point feature are colored by red in the left half of Figure 8(a) and 8(b), and the corresponding attention scores that point feature assigned to the local regions of incomplete point cloud are visualized in the right half. As shown in Figure 8(a), when generating points that belong to the empennage, the skip-attention searches for relative local regions (which is also the empennage) in the input point clouds for prediction. In Figure 8(b), when predicting the points of wings (where the right wing are missing), the skip-attention selects the region of left wing (by assigning higher attention) in incomplete point cloud for predicting the shape of both wings. Similar pattern is also observed on other categories as shown in Figure 8.
+
+Visualization of hierarchical folding. In Figure 9, we visualize the hierarchical folding in decoder. We track the folding process of a specific vector colored by blue, and
+
+
+Figure 8. Visualization of the attention learned in skip-attention.
+
+
+Figure 9. Visualization of the hierarchical folding in each level of decoder. We track the folding and point number expansion process of a specific initial vector colored by blue, and illustratively show the 2D grids sampling process.
+
+denote the points derived from this blue vector with blue rectangular in each level. From a local perspective, we observe that each initial point feature successfully learns to generate a specific region on the plane. And in the case of blue initial point feature, it generates the left wing of the plane. On the other hand, from a global perspective, we can observe that the folding process of SA-Net does not restrictively follow the 2D manifold assumption like FoldingNet [45]. As pointed out by [41], enforcing learning from the 2D manifold structure may not be optimal for training, because the space of possible solutions is constrained. Therefore, the subtle deviation from 2D manifold, which is observed in SA-Net, is more flexible for learning to generate variant shapes and preserve better structure details. Both of the observations prove the effectiveness of hierarchical folding. In addition, we also visualize the folding process under car and table categories in Figure 9.
+
+# 4.3. Model Analysis on Applications
+
+Skip-attention for semantic segmentation. To further verify the effectiveness of skip-attention proposed in Sec 3.4, we conduct the semantic segmentation experiment on the ShapeNet dataset [46], where the dataset splittings follow the previous method of PointNet++ [34]. The segmentation variation (SA-Net-seg) of SA-Net uses exactly the same architecture as PointNet++, except for the skip-attention connecting the local region features in en
+
+
+
+
+PointNet++
+(a) Visualized segmentation comparison on ShapeNet.
+Figure 10. Segmentation visualization on ShapeNet. We compare SA-Net with baseline PointNet and PointNet++ in (a). In (b), we show more segmentation results of SA-Net. Note that there is no correspondence between colors and labels across object categories in (b).
+
+
+PointNet
+
+
+Gt
+
+
+(b) More segmentation results of SA-Net on ShapeNet.
+
+coder with the features in interpolation layers. The comparison in terms of part-averaged intersection over union (pIoU, %) and mean per-class pIoU (mpIoU, %) [27] is shown in Table 6, from which we can find that SA-Net-seg drastically improves the segmentation performance compared with the baseline method of PointNet++. Specifically, the skip-attention improves the performance of backbone PointNet++ by $0.6\%$ in terms of mIoUs. In Figure 10(a), we visualize the segmentation results and compared SA-Net-seg with the baseline PointNet and PointNet++, from which we can find that SA-Net-seg yields more precise prediction of semantic labels. Especially, the SA-Net-seg significantly improves the segmentation accuracy on the tier of the motorcycle, where the body and the tier are heavily overlapped with each other. Such improvement results from the local region features conveyed by skip-attention from the encoder, which helps the interpolation layers make more discriminative prediction in the local regions. Figure 10(b) gives more segmentation results.
+
+Table 6. Semantic segmentation results (%) on ShapeNet.
+
+| Methods | pIoU | mpIoU |
| PointNet [33] | 83.7 | 80.4 |
| PointNet++ [34] | 85.1 | 81.9 |
| SO-Net [25] | 84.9 | 81.0 |
| DGCNN[43] | 85.1 | 82.3 |
| PointCNN [27] | 86.1 | 84.6 |
| SA-Net-seg(Ours) | 85.7 | 83.0 |
+
+Structure-preserving decoder for unsupervised representation learning in shape classification. In order to verify the effectiveness of our structure-preserving decoder, we further conduct unsupervised shape classification experiments on ModelNet40 [44]. The training and test settings on ModelNet40 also follow the PointNet++ [34]. In this experiment, we use a classification variation (SA-Net-cls) of SA-Net, in which we remove the skip-attention from SA-Net. The reason is that we use the global representation for predicting class label by a support vector machine (SVM), and remove the skip-attention can enhance the information embedded in the global representation, since it forces the decoder to decode a whole point cloud only based on the
+
+Table 7. The classification comparison under ModelNet40.
+
+| Methods | Supervised | Accuracy(%) |
| PointNet[33] | Yes | 89.2 |
| PointNet++ [34] | Yes | 90.7 |
| PointCNN[27] | Yes | 92.2 |
| DGCNN[43] | Yes | 92.2 |
| SO-Net[25] | Yes | 90.9 |
| LGAN[1] | No | 85.7 |
| LGAN[1](MN40) | No | 87.3 |
| FoldingNet[45] | No | 88.4 |
| FoldingNet[45](MN40) | No | 84.4 |
| MAP-VAE[19] | No | 90.2 |
| L2G[30] | No | 90.6 |
| SA-Net-cls(Ours) | No | 90.6 |
+
+single global representation. The encoder and decoder are trained by reconstructing itself. In Table 7, we compare the classification performance of SA-Net-cls with counterpart methods, where all results are obtained under 1,024 points input without normal vector. From Table 7 we can find that our SA-Net-cls achieves the best performance in the unsupervised learning methods. The result of SA-Net-cls is also comparable with the supervised methods. Especially, we note that the classification accuracy of our SA-Net-cls is only $0.1\%$ lower than the supervised PointNet++, which is exactly the same backbone used as our encoder.
+
+# 5. Conclusion
+
+We propose a novel Skip-Attention Network (SA-Net) for point cloud completion. Through the proposed skip-attention, SA-Net can effectively utilize the features of local regions in input point clouds for completion task. In order to exploit the local regions at different resolutions, the structure-preserving decoder is further proposed to progressively generate point clouds, and incorporate local region features at different resolutions. The completion experiments on ShapeNet and KITTI prove the effectiveness of SA-Net. The segmentation and classification experiments on ShapeNet and ModelNet40 further demonstrate the effectiveness of skip-attention and structure-preserving decoder, respectively.
+
+# References
+
+[1] Panos Achlioptas, Olga Diamanti, Ioannis Mitliagkas, and Leonidas Guibas. Learning representations and generative models for 3D point clouds. In International Conference on Machine Learning, pages 40-49, 2018.
+[2] Matthew Berger, Andrea Tagliasacchi, Lee Seversky, Pierre Alliez, Joshua Levine, Andrei Sharf, and Claudio Silva. State of the art in surface reconstruction from point clouds. In Proceedings of the Conference of the European Association for Computer Graphics, volume 1, pages 161-185, 2014.
+[3] Angel X Chang, Thomas Funkhouser, Leonidas J 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:1512.03012, 2015.
+[4] Angela Dai, Charles Ruizhongtai Qi, and Matthias Nießner. Shape completion using 3D-encoder-predictor CNNs and shape synthesis. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5868–5877, 2017.
+[5] Ge Gao, Yu-Shen Liu, Meng Wang, Ming Gu, and Jun-Hai Yong. A query expansion method for retrieving online bim resources based on industry foundation classes. Automation in construction, 56:14-25, 2015.
+[6] Andreas Geiger, Philip Lenz, Christoph Stiller, and Raquel Urtasun. Vision Meets Robotics: The KITTI dataset. International Journal of Robotics Research (IJRR), 2013.
+[7] Thibault Groueix, Matthew Fisher, Vladimir Kim, Bryan Russell, and Mathieu Aubry. AtlasNet: A papier-mâché approach to learning 3D surface generation. In CVPR 2018, 2018.
+[8] Xiaoguang Han, Zhen Li, Haibin Huang, Evangelos Kalogerakis, and Yizhou Yu. High-resolution shape completion using deep neural networks for global structure and local geometry inference. In Proceedings of the IEEE International Conference on Computer Vision, pages 85-93, 2017.
+[9] Zhizhong Han, Xinhai Liu, Yu-Shen Liu, and Matthias Zwicker. Parts4Feature: Learning 3D global features from generally semantic parts in multiple views. In International Joint Conference on Artificial Intelligence, 2019.
+[10] Zhizhong Han, Zhenbao Liu, Junwei Han, Chi-Man Vong, Shuhui Bu, and C.L. Philip Chen. Mesh convolutional restricted boltzmann machines for unsupervised learning of features with structure preservation on 3D meshes. IEEE Transactions on Neural Network and Learning Systems, 28(10):2268-2281, 2017.
+[11] Zhizhong Han, Zhenbao Liu, Junwei Han, Chi-Man Vong, Shuhui Bu, and C.L.P. Chen. Unsupervised learning of 3D local features from raw voxels based on a novel permutation voxelization strategy. IEEE Transactions on Cybernetics, 49(2):481-494, 2019.
+[12] Zhizhong Han, Zhenbao Liu, Junwei Han, Chi-Man Vong, Shuhui Bu, and Xuelong Li. Unsupervised 3D local feature learning by circle convolutional restricted boltzmann machine. IEEE Transactions on Image Processing, 25(11):5331-5344, 2016.
+
+[13] Zhizhong Han, Zhenbao Liu, Chi-Man Vong, Yu-Shen Liu, Shuhui Bu, Junwei Han, and CL Philip Chen. BoSCC: Bag of spatial context correlations for spatially enhanced 3D shape representation. IEEE Transactions on Image Processing, 26(8):3707-3720, 2017.
+[14] Zhizhong Han, Zhenbao Liu, Chi-Man Vong, Yu-Shen Liu, Shuhui Bu, Junwei Han, and CL Philip Chen. Deep Spatiality: Unsupervised learning of spatially-enhanced global and local 3D features by deep neural network with coupled softmax. IEEE Transactions on Image Processing, 27(6):3049-3063, 2018.
+[15] Zhizhong Han, Honglei Lu, Zhenbao Liu, Chi-Man Vong, Yu-Shen Liu, Matthias Zwicker, Junwei Han, and C.L. Philip Chen. 3D2SeqViews: Aggregating sequential views for 3D global feature learning by CNN with hierarchical attention aggregation. IEEE Transactions on Image Processing, 28(8):3986-3999, 2019.
+[16] Zhizhong Han, Mingyang Shang, Yu-Shen Liu, and Matthias Zwicker. View inter-prediction GAN: Unsupervised representation learning for 3D shapes by learning global shape memories to support local view predictions. In 33rd AAAI Conference on Artificial Intelligence, 2019.
+[17] Zhizhong Han, Mingyang Shang, Zhenbao Liu, Chi-Man Vong, Yu-Shen Liu, Matthias Zwicker, Junwei Han, and CL Philip Chen. SeqViews2SeqLabels: Learning 3D global features via aggregating sequential views by RNN with attention. IEEE Transactions on Image Processing, 28(2):658-672, 2018.
+[18] Zhizhong Han, Mingyang Shang, Xiyang Wang, Yu-Shen Liu, and Matthias Zwicker. Y2Seq2Seq: Cross-modal representation learning for 3D shape and text by joint reconstruction and prediction of view and word sequences. The Thirty-Third AAAI Conference on Artificial Intelligence (AAAI), 2019.
+[19] Zhizhong Han, Xiyang Wang, Yu-Shen Liu, and Matthias Zwicker. Multi-Angle Point Cloud-VAE: Unsupervised feature learning for 3D point clouds from multiple angles by joint self-reconstruction and half-to-half prediction. In Proceedings of the IEEE International Conference on Computer Vision, pages 10442–10451, 2019.
+[20] Zhizhong Han, Xiyang Wang, Chi-Man Vong, Yu-Shen Liu, Matthias Zwicker, and CL Chen. 3DViewGraph: Learning global features for 3D shapes from a graph of unordered views with attention. In International Joint Conference on Artificial Intelligence, 2019.
+[21] Tao Hu, Zhizhong Han, Abhinav Shrivastava, and Matthias Zwicker. Render4Completion: Synthesizing multi-view depth maps for 3D shape completion. 2019.
+[22] Tao Hu, Zhizhong Han, and Matthias Zwicker. 3D shape completion with multi-view consistent inference. In 34rd AAAI Conference on Artificial Intelligence, 2020.
+[23] Wei Hu, Zeqing Fu, and Zongming Guo. Local frequency interpretation and non-local self-similarity on graph for point cloud inpainting. IEEE Transactions on Image Processing, 28(8):4087-4100, 2019.
+[24] Evangelos Kalogerakis, Siddhartha Chaudhuri, Daphne Koller, and Vladlen Koltun. A probabilistic model for
+
+component-based shape synthesis. ACM Transactions on Graphics, 31(4):55, 2012.
+[25] Jiaxin Li, Ben M Chen, and Gim Hee Lee. SO-Net: Self-organizing network for point cloud analysis. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9397–9406, 2018.
+[26] Ruihui Li, Xianzhi Li, Chi-Wing Fu, Daniel Cohen-Or, and Pheng-Ann Heng. PU-GAN: A point cloud upsampling adversarial network. In Proceedings of the IEEE International Conference on Computer Vision, pages 7203-7212, 2019.
+[27] Yangyan Li, Rui Bu, Mingchao Sun, Wei Wu, Xinhan Di, and Baoquan Chen. PointCNN: Convolution on x-transformed points. In Advances in Neural Information Processing Systems, pages 820-830, 2018.
+[28] Xinhai Liu, Zhizhong Han, Fangzhou Hong, Yu-Shen Liu, and Matthias Zwicker. LRC-Net: Learning discriminative features on point clouds by encoding local region contexts. In The 14th International Conference on Geometric Modeling and Processing, 2020.
+[29] Xinhai Liu, Zhizhong Han, Yu-Shen Liu, and Matthias Zwicker. Point2Sequence: Learning the shape representation of 3D point clouds with an attention-based sequence to sequence network. In 33rd AAAI Conference on Artificial Intelligence, 2019.
+[30] Xinhai Liu, Zhizhong Han, Xin Wen, Yu-Shen Liu, and Matthias Zwicker. L2G Auto-Encoder: Understanding point clouds by local-to-global reconstruction with hierarchical self-attention. In Proceedings of the 27th ACM International Conference on Multimedia, pages 989–997. ACM, 2019.
+[31] Yu-Shen Liu, Karthik Ramani, and Min Liu. Computing the inner distances of volumetric models for articulated shape description with a visibility graph. IEEE Transactions on Pattern Analysis and Machine Intelligence, 33(12):2538-2544, 2011.
+[32] Andelo Martinovic and Luc Van Gool. Bayesian grammar learning for inverse procedural modeling. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 201-208. IEEE, 2013.
+[33] 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, 2017.
+[34] Charles Ruizhongtai Qi, Li Yi, Hao Su, and Leonidas J Guibas. PointNet++: Deep hierarchical feature learning on point sets in a metric space. In In Advances in Neural Information Processing Systems, pages 5099-5108, 2017.
+[35] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-Net: Convolutional networks for biomedical image segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2015.
+[36] Muhammad Sarmad, Hyunjoo Jenny Lee, and Young Min Kim. RL-GAN-Net: A reinforcement learning agent controlled gan network for real-time point cloud shape completion. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5898-5907, 2019.
+[37] Tianjia Shao, Weiwei Xu, Kun Zhou, Jingdong Wang, Dongping Li, and Baining Guo. An interactive approach to seman
+
+tic modeling of indoor scenes with an rgbd camera. ACM Transactions on Graphics, 31(6):136, 2012.
+[38] Chao-Hui Shen, Hongbo Fu, Kang Chen, and Shi-Min Hu. Structure recovery by part assembly. ACM Transactions on Graphics, 31(6):180, 2012.
+[39] David Stutz and Andreas Geiger. Learning 3D shape completion from laser scan data with weak supervision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1955-1964, 2018.
+[40] Minhyuk Sung, Vladimir G Kim, Roland Angst, and Leonidas Guibas. Data-driven structural priors for shape completion. ACM Transactions on Graphics (TOG), 34(6):175, 2015.
+[41] Lyne P Tchapmi, Vineet Kosaraju, Hamid Rezatofighi, Ian Reid, and Silvio Savarese. TopNet: Structural point cloud decoder. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 383-392, 2019.
+[42] Duc Thanh Nguyen, Binh-Son Hua, Khoi Tran, Quang-Hieu Pham, and Sai-Kit Yeung. A field model for repairing 3D shapes. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5676–5684, 2016.
+[43] 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 Transactions on Graphics (TOG), 38(5):1-12, 2019.
+[44] Zhirong Wu, Shuran Song, Aditya Khosla, Fisher Yu, Linguang Zhang, Xiaou Tang, and Jianxiong Xiao. 3D ShapeNets: A deep representation for volumetric shapes. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1912-1920, 2015.
+[45] Yaoqing Yang, Chen Feng, Yiru Shen, and Dong Tian. FoldingNet: Point cloud auto-encoder via deep grid deformation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 206–215, 2018.
+[46] Li Yi, Vladimir G Kim, Duygu Ceylan, Ichao Shen, Mengyan Yan, Hao Su, Cewu Lu, Qixing Huang, Alla Sheffer, and Leonidas J Guibas. A scalable active framework for region annotation in 3D shape collections. In International Conference on Computer Graphics and Interactive Techniques, volume 35, page 210, 2016.
+[47] Wentao Yuan, Tejas Khot, David Held, Christoph Mertz, and Martial Hebert. PCN: Point completion network. In 2018 International Conference on 3D Vision (3DV), pages 728-737. IEEE, 2018.
\ No newline at end of file
diff --git a/pointcloudcompletionbyskipattentionnetworkwithhierarchicalfolding/images.zip b/pointcloudcompletionbyskipattentionnetworkwithhierarchicalfolding/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..b7554b08dc64e82c6e9ffb76d63681f6b2ddebef
--- /dev/null
+++ b/pointcloudcompletionbyskipattentionnetworkwithhierarchicalfolding/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7f604f7495e9dea778e34cf13a0de0fe06127c8f9b49eb916480af9fa064356e
+size 623505
diff --git a/pointcloudcompletionbyskipattentionnetworkwithhierarchicalfolding/layout.json b/pointcloudcompletionbyskipattentionnetworkwithhierarchicalfolding/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..8d7f3820f07cf7de46c2db80e25006e473277278
--- /dev/null
+++ b/pointcloudcompletionbyskipattentionnetworkwithhierarchicalfolding/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:633799e6fff4d40179db49d6b83e4f2379f9ef465bdd329491595ddfb551385e
+size 336699
diff --git a/pointgmmaneuralgmmnetworkforpointclouds/0b21ed97-8ae6-488d-bfa8-700a0175bf43_content_list.json b/pointgmmaneuralgmmnetworkforpointclouds/0b21ed97-8ae6-488d-bfa8-700a0175bf43_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..c7721c6a140c3876f25fa87c8f207d18d5559ee1
--- /dev/null
+++ b/pointgmmaneuralgmmnetworkforpointclouds/0b21ed97-8ae6-488d-bfa8-700a0175bf43_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5cf386aee2416fe99cc574ab8245073285307ef5bf3a9ca0855845c84aabfccb
+size 73665
diff --git a/pointgmmaneuralgmmnetworkforpointclouds/0b21ed97-8ae6-488d-bfa8-700a0175bf43_model.json b/pointgmmaneuralgmmnetworkforpointclouds/0b21ed97-8ae6-488d-bfa8-700a0175bf43_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..30311a39e4acfe8937b9b958f8ed06cc5f4bd6cb
--- /dev/null
+++ b/pointgmmaneuralgmmnetworkforpointclouds/0b21ed97-8ae6-488d-bfa8-700a0175bf43_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d1081c8bac971d559f672417ef155bb881c1e251d35cff33bac86e9f224baa5b
+size 89991
diff --git a/pointgmmaneuralgmmnetworkforpointclouds/0b21ed97-8ae6-488d-bfa8-700a0175bf43_origin.pdf b/pointgmmaneuralgmmnetworkforpointclouds/0b21ed97-8ae6-488d-bfa8-700a0175bf43_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..f0f0de9e6068b8fffec4243150a8d6586f76c705
--- /dev/null
+++ b/pointgmmaneuralgmmnetworkforpointclouds/0b21ed97-8ae6-488d-bfa8-700a0175bf43_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:df395d95fc6bd614f26a70922eec15da5e95fba4d0e75a5f857c8ed6fe49dd61
+size 660178
diff --git a/pointgmmaneuralgmmnetworkforpointclouds/full.md b/pointgmmaneuralgmmnetworkforpointclouds/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..18ab57b8832fc715f89aaff6c5e77364050fee94
--- /dev/null
+++ b/pointgmmaneuralgmmnetworkforpointclouds/full.md
@@ -0,0 +1,314 @@
+# PointGMM: a Neural GMM Network for Point Clouds
+
+Amir Hertz Rana Hanocka Raja Giryes Daniel Cohen-Or
+
+Tel Aviv University
+
+# Abstract
+
+Point clouds are a popular representation for 3D shapes. However, they encode a particular sampling without accounting for shape priors or non-local information. We advocate for the use of a hierarchical Gaussian mixture model (hGMM), which is a compact, adaptive and lightweight representation that probabilistically defines the underlying 3D surface. We present PointGMM, a neural network that learns to generate hGMMs which are characteristic of the shape class, and also coincide with the input point cloud. PointGMM is trained over a collection of shapes to learn a class-specific prior. The hierarchical representation has two main advantages: (i) coarse-to-fine learning, which avoids converging to poor local-minima; and (ii) (an unsupervised) consistent partitioning of the input shape. We show that as a generative model, PointGMM learns a meaningful latent space which enables generating consistent interpolations between existing shapes, as well as synthesizing novel shapes. We also present a novel framework for rigid registration using PointGMM, that learns to disentangle orientation from structure of an input shape.
+
+# 1. Introduction
+
+Point clouds are a common and simple representation of 3D shapes. They can be directly obtained through scanning devices, which sample the surface of a 3D object. A major drawback of the point cloud representation is the inherent dependence on the particular sampling pattern, making it sensitive to occlusions, noise and sparse sampling. Moreover, they are unordered and irregular, and each individual point sample does not carry any non-local information [7, 28, 34, 43].
+
+The Gaussian mixture model (GMM) is an alternative representation for 3D shapes [4, 13]. Unlike the point cloud, which uses an arbitrary specific discrete set of samples, GMMs use a fixed and prescribed number of Gaussians that probabilistically define the underlying 3D surface. GMMs are a compact and lightweight representation, which excel in representing a sparse and non-uniform point cloud. They are inherently adaptive: representing intricate details with
+
+
+Figure 1: Shape interpolation using a PointGMM generative model. The consistent coloring in the hGMM leaf nodes suggests that an interpretable partitioning has been learned, without any supervision.
+
+more Gaussians, while large smooth regions can be represented with a smaller number of Gaussians.
+
+In this work, we present the use of GMMs as an intermediate and compact representation for point cloud processing with a neural network, called PointGMM. PointGMM is trained over a set of shapes to learn a class-specific prior. For a given point cloud, PointGMM learns a set of Gaussians which are characteristic of the shape class, and also coincide with the input point cloud. In other words, PointGMM provides additional geometric information which is otherwise missing from the input point cloud. Moreover, PointGMM is a structured representation, where subsets of Gaussians represent semantic spatial regions of the shape. This provides a means to consistently parse a diverse set of shapes, which is learned without any explicit groundtruth labels (Figure 1). We demonstrate the advantage of a learned GMM representation for the task of partial point cloud registration and shape generation.
+
+We show that a major challenge in training a neural network to directly partition shapes into distinct regions for each GMM is a loosely defined objective, which is highly susceptible to local minima. To alleviate this issue, we learn in a coarse-to-fine manner, through a hierarchical GMM (hGMM) framework. We propose a network which learns to subdivide the input points into distinct groups that are modeled by GMMs at different shape scales. This promotes and encourages more effective learning; since the GMMs at
+
+the bottom of the hierarchy concentrate on learning smaller spatial regions, while the top-level GMMs learn larger regions.
+
+Although the input point cloud is unordered, PointGMM learns to output GMMs in a consistent and meaningful order.
+
+This significant property motivates us to use PointGMM as a generative model trained on collection of shapes. We show that the learned latent space enables generating meaningful interpolations between existing shapes, as well as synthesizing novel shapes. Moreover, we present a novel framework for rigid registration using PointGMM, which learns to disentangle orientation from the input shape. To facilitate registration of partial shapes, we train the network to receive partial shapes, and generate GMMs as if they were complete. This enables PointGMM to perform nontrivial registrations which implicitly considers the overlap between missing regions. We compare to state-of-the-art rigid registration approaches on partial shapes with large rotation angles demonstrating the applicability of PointGMM.
+
+Finally, another important property of the hGMM representation is that it enables a more efficient loss function compared to voxels $\mathcal{O}(n^3)$ or point clouds $\mathcal{O}(n^2)$ which are bound by the resolution of the grid or points, respectively. By contrast, the complexity of a GMM loss function depends on the number $(k)$ of Gaussians $\mathcal{O}(n\cdot k)$ $(k\ll n)$ , and the hGMM loss complexity is $\mathcal{O}(n\cdot \log k)$ [14].
+
+# 2. Related work
+
+Deep networks for irregular 3D shapes. Pointnet [34] first proposed a neural network which operates directly on irregular and unordered point clouds through $1 \times 1$ convolutions followed by global (max) pooling. Several follow-up works proposed incorporating local neighborhood information. For example, Pointnet++ [35] used a hierarchical network to capture local information. PointCNN [28] proposed learning a $\chi$ -transformation on point clouds, without using global pooling. Wang et al. [43] build Euclidean neighborhoods by building a graph from point samples. SPLAT-Net [39] represents points in a high-dimensional lattice. Another class of approaches propose irregular convolution and pooling operators on 3D meshes [21] or treats shapes as a graph [32]. For more details on learning on non-Euclidean data (geometric deep learning) refer to [7].
+
+GMMs for 3D data. Ben-Shabat et al. [4] suggested using GMMs to represent 3D shapes, by pre-defining partitions of the point cloud and calculating the associated GMM. The parameters of the GMM are used as input features to a neural network for the task of classification, which was later extended in [5] for normal estimation. Unlike previous works, PointGMM uses the networks loss function to learn how to best partition the point cloud for the task at hand. Moreover, instead of using the parameters of the
+
+GMM as features, the learned GMMs are used directly as the 3D shape representation.
+
+Eckart et al. [13] also propose using a hierarchical GMM representation for the task of shape registration.
+
+Yet, their hGMM is generated without learning. Thus, unlike our learned hGMM, it does not include any prior of a training set, nor any implicit information about missing parts. Moreover, [13] does not provide a latent space as PointGMM does, which enables shape generation.
+
+Generative models for 3D shapes. In recent years, various works proposed leveraging the power of deep generative models for 3D shape generation. Achlioptas et al. [1] pioneered a deep generative model which directly generated sparse and irregular point clouds. SO-NET [27] used hierarchical feature structures for generative as well as discriminative tasks. A generative adversarial network for point clouds was proposed in [26]. Recently, StructureNet [31] use graph neural networks to jointly learn geometry and inter-part training on a collection of shapes. SDM-NET proposed generating deformable mesh parts using a VAE [18]. Surface Networks [25] propose a generative model for 3D surfaces via a Dirac operator. Although not a generative model, Tulsiani et al. [41] demonstrated that learning to fit primitives to shapes is an effective approach for exploiting visual similarities in the data. Our work proposes a novel approach for shape generation via a learned hGMM partition. The learned GMMs correspond to consistently segmented regions across a diverse set of shapes, without using any explicit correspondence in the loss function.
+
+Shape registration. Shape registration is a well-studied problem with a variety of different techniques proposed over the years. There are two main classes of registration approaches: estimating global (rigid) or local (non-rigid) transformations between two potentially partial shapes. A popular technique for rigid registration is to apply RANSAC to find three matching points [17, 10]. In 4PCS [2] a technique for filtering the number of trials required, greatly improves efficiency. Often, rigid registration is followed by non-rigid registration for additional refinement. A popular approach for local registration is ICP [6, 11] and its many variants [36, 38]; which can also be used to compute a rigid transformation.
+
+Recently, there have been efforts to apply deep neural networks for the task of rigid [40] and non-rigid [20, 19] registration, which can be faster and more robust than classic techniques.
+
+PointNetLK [3] proposed a recurrent PointNet framework for rigid registration, which is more robust to initialization and missing parts compared to ICP.
+
+Instead of learning to align one shape to another, we train PointGMM to orient shapes into a canonical pose, thereby indirectly calculating the transformation between two shapes.
+
+# 3. Method
+
+Our solution aims at representing a point cloud by a set of GMMs. To this end, we design an encoder-decoder based framework that generates a set of GMMs for given a point cloud. The encoder generates a latent vector from the input point cloud, and the decoder reconstructs a GMM from the latent vector. To train the network, we propose a maximum-likelihood based loss function that maximizes the probability that the point cloud was generated by the estimated Gaussians. To improve performance and avoid converging to local minima, we learn a hierarchical GMM (hGMM) instead of a single scale GMM. Our method follows Eckart et al. [14], who demonstrated that hGMM is an effective tool for representing 3D point clouds.
+
+In the following, we describe the hGMM representation (Section 3.1) using the notation of [14], and the PointGMM architecture (Section 3.2). Finally, we describe how PointGMM can be used for shape generation (Section 3.3) and registration (Section 3.4).
+
+# 3.1. Hierarchical GMM
+
+The hGMM can be viewed as a tree of Gaussians where the child of each node are a refined Gaussian mixture of their parent. The first level (root) is composed from a mixture of $J$ (overlapping) weighted 3-dimensional multivariate Gaussians $\Theta_{j}^{l = 1} = \{\pi_{j},\mu_{j},\Sigma_{j}\}$ . Given a point cloud $X$ of size $N$ , its probability of being generated by $\Theta^{l = 1}$ is:
+
+$$
+p \left(X | \Theta^ {l = 1}\right) = \prod_ {i = 1} ^ {N} p \left(X _ {i} | \Theta^ {l = 1}\right) = \prod_ {i = 1} ^ {N} \sum_ {j = 1} ^ {J} \pi_ {j} \mathcal {N} \left(X _ {i} | \Theta_ {j} ^ {l = 1}\right). \tag {1}
+$$
+
+Based on this probability, we define a set of $C$ latent variables $c_{ij}$ that represent the binary associations between a point $X_{i}$ and a Gaussian $\Theta_j^{l = 1}$ in the mixture model. We calculate the posterior for all $c_{ij} \in C$ given $\Theta^{l = 1}$ by
+
+$$
+\gamma_ {i j} ^ {l = 1} \stackrel {\text {d e f}} {=} E \left[ c _ {i j} \right] = \frac {\pi_ {j} p \left(X _ {i} \mid \Theta_ {j} ^ {l = 1}\right)}{\sum_ {j ^ {\prime} = 1} ^ {J} \pi_ {j ^ {\prime}} p \left(X _ {i} \mid \Theta_ {j ^ {\prime}} ^ {l = 1}\right)}. \tag {2}
+$$
+
+The next levels in the hierarchical model are defined recursively. Given a point cloud $X$ , At the root, we calculate the probabilities $p(X_i|\Theta_j^{l=1})$ and the posteriors $\gamma_{ij}^{l=1}$ for each point and Gaussian in the mixture. Each $\Theta_j^{l=1}$ can then be refined as another Gaussian mixture of size $\hat{J}$ :
+
+$$
+p \left(X | \gamma^ {l = 1}, \Theta^ {l = 2}\right) = \prod_ {i = 1} ^ {N} \sum_ {j = 1} ^ {\hat {J}} \pi_ {j} ^ {l = 2 | | 1} p \left(X _ {i} | \Theta_ {j} ^ {l = 2 | | 1}\right) \tag {3}
+$$
+
+where the superscript $l = 2|1$ indicates the selection of Gaussian parameters at level 2 given the parent node at level 1. Each refinement term is a Gaussian mixture that satisfies $\sum_{j=1}^{J} \pi_j^{l=2||1} = 1$ . In the recursive step, we follow a
+
+
+Figure 2: Method Overview. PointGMM learns a hierarchical GMM representation of the input $X$ . Each depth $d$ of the tree corresponds to a group of GMMs (with parameters $\Theta^d$ ) representing the input distribution at different resolutions.
+
+hard partitioning scheme, where we assign each point in the point cloud to a mixture model. For a point with posteriors $\gamma_{ij}^{l = d - 1}$ in level $d - 1$ , the point is assigned to the parent with the highest expectation in level $d - 1$ , i.e., that corresponds to $\arg \max_{i,j}\gamma_{ij}^{l = d - 1}$ .
+
+Log-likelihood. Finally, given a point cloud $X$ , the log-likelihood for each depth in the hierarchy is given by
+
+$$
+\begin{array}{l} \ell_ {h G M M} \left(X | \Theta^ {l = d}\right) = \\ \left\{ \begin{array}{l l} \log p (X | \Theta^ {l = 1}) & \text {i f} d = 1 \\ \log p (X | \gamma^ {l = d - 1}, \Theta^ {l = d}) & \text {e l s e .} \end{array} \right. \tag {4} \\ \end{array}
+$$
+
+hGMM sampling. When sampling from the hGMM, we refer to the leaf nodes of the tree at level $D$ as a single mixture model to sample from. Therefore, each leaf weight is scaled by its ancestors' weights, i.e., the fixed leaf weight becomes
+
+$$
+\hat {\pi} _ {j} = \prod_ {d = 1} ^ {D} \pi_ {j} ^ {l = d | | d - 1}. \tag {5}
+$$
+
+# 3.2. PointGMM
+
+PointGMM proposes a novel encoder-decoder network that builds an hGMM tree from an input point cloud. We demonstrate two different use cases of PointGMM: shape
+
+generation and registration. The encoder architecture is task-specific, and we use the same PointGMM decoder for both tasks.
+
+The PointGMM decoder network is illustrated in Figure 2. First, an input point cloud $X$ goes through an encoder network resulting in a latent vector $Z$ . Then, the embedding is used by the decoder to generate the hGMM representation. Starting at the root (with latent vector $Z$ ), the decoder generates the nodes in the hGMM tree in a top-down splitting process. For each node, the network generates a feature vector, which is used to extract the GMM parameters.
+
+MLP split. For every depth in the tree, the decoder splits each node into children. We apply a multi-layer perceptron (MLP) on each node. The output of the MLP is a feature map which is used later to extract the GMM parameters. Specifically, the MLP creates a feature vector $h$ that represents each Gaussian in the mixture. Starting at the root, the initial latent vector is the encoder output $Z$ .
+
+Attentional split. After the first MLP split, we have the first level in the hGMM that represents a single Gaussian mixture. Since we want to combine information between siblings, i.e., children of the same parent, we utilize a self-attention module [42]. This enables effective information passing between siblings to generate a higher quality mixture. Following the first MLP split into children, each child will split recursively into new children using attentional splits.
+
+To calculate the self-attention, we follow [29, 42], and compute for each node $j$ , its query $Q_{j} \in \mathbb{R}^{d_{k}}$ , key $K_{j} \in \mathbb{R}^{d_{k}}$ and value $V_{j} \in \mathbb{R}^{h}$ . This is done using three fully connected layers such that $Q_{j} = f_{Q}(j)$ , $K_{j} = f_{K}(j)$ , $V_{j} = f_{V}(j)$ , which share the same parameters for all nodes of the same depth. The output of these layers are used for calculating the attention weights between the siblings $Si(j)$ of each node $j$ , which are given by $\hat{\alpha}_{j} = \left\{\frac{Q_{j}^{T} K_{j}}{\sqrt{d_{k}}} \mid \hat{j} \in Si(j)\right\}$ .
+
+As in regular attention, we transform this vector into a distribution by $\alpha_{j} = \text{softmax}(\hat{\alpha}_{j})$ . The node descriptor before splitting is $\sum_{\hat{j}\in S_i(j)}\alpha_{j,\hat{j}}V_{\hat{j}}$ , which is split into its children by a MLP with one hidden layer as described above. We repeat this process of attention followed by a MLP split until reaching the pre-determined depth.
+
+
+
+GMM parameter extraction. The children of each node in the hGMM tree corresponds to a GMM. Each child node $j$ contributes one Gaussian $N(\mu_j,\Sigma_j)$ with weight $\pi_{j}$ to the GMM. We extract the Gaussian parameters from the feature vector $h$ of each node by applying an MLP with one hidden layer. The output of this MLP $\in \mathbb{R}^{16}$ , corresponds to the parameters $\left\{\hat{\pi}_j\in \mathbb{R},\mu_j\in \mathbb{R}^3,\hat{U}_j\in \mathbb{R}^{3\times 3},\sqrt{\lambda_j}\in \mathbb{R}^3\right\}$ , which are used afterwards to create the parameters $\Theta_{j} = \{\pi_{j},\mu_{j},\Sigma_{j}\}$ of each Gaussian in the GMM.
+
+We ensure that the mixture weights sum to probability 1 by applying the softmax function to all the node weights $\pi_{i}$ in the group of siblings. The covariance $\Sigma_{j}$ is calculated from the eigen-decomposition $\Sigma_{j} = U_{j}^{-1}D_{j}U_{j}$ where $D_{j}$ is diagonal with the vector $\lambda_{j}$ as its diagonal and $U_{j}$ is a unitary matrix resulting from applying the Gram-Schmidt orthogonalization process on $\hat{U}_j$ . This decomposition is required since we would like to restrict $\Sigma$ to be a positive definite matrix (PSD). This characteristic is guaranteed as the decomposition is of positive real eigenvalues and their eigenvectors (columns of $U$ ).
+
+hGMM loss. As mentioned above, the loss function for optimizing PointGMM is, naturally, the negative log-likelihood $(\ell_{hGMM})$ of a given point cloud X under the networks output parameters, that is:
+
+$$
+\mathcal {L} _ {h G M M} (X, \Theta) = - \frac {1}{| X |} \sum_ {d = 1} ^ {D} \ell_ {h G M M} (X | \Theta^ {l = d}). \tag {6}
+$$
+
+$\ell_{hGMM}$ are summed over all depths until reaching the the finer level. In this way, the network is restricted to represent the shape by each of the GMMs in each level. This creates a spatial connection between the tree nodes, where children give a finer description of their Gaussian parent.
+
+# 3.3. Shape generation
+
+PointGMM can be trained for shape generation using a variational auto encoder (VAE) framework [24]. In our experiments, we adopt the PointNet architecture [34] for the encoder. PointNet encodes a given point cloud $X \in \mathbb{R}^{N \times d}$ by employing an MLP on each point. PointNet maintains the order invariance property by applying a global max-pooling operator over each dimension resulting in an order invariant embedding $\hat{Z}$ .
+
+This embedding contains the parameters $Z_{\mu}$ and $Z_{\sigma}$ , which are used for generating the latent vector $Z = Z_{\mu} + \epsilon Z_{\sigma}$ , where $\epsilon \sim \mathcal{N}(0, I)$ . This makes our model generative, enabling a smooth latent space which can randomly be sampled.
+
+The encoding $Z$ is the input to the PointGMM decoder described above, which outputs the hGMM parameters. The
+
+
+Figure 3: Registration overview. The input point cloud $X$ (green) is disentangled into two different embeddings: transformation $(Z_{t})$ and the shape $(Z_{c})$ ; via two parallel encoders $E_{t}$ and $E_{c}$ .
+
+shape generation loss is composed of $\mathcal{L}_{hGMM}$ (6) and the KL (Kullback-Leibler) divergence with respect to the Normal distribution to encourage a continuous latent space
+
+$$
+\mathcal {L} _ {g} = \mathcal {L} _ {h G M M} (X, \Theta) + \gamma \mathcal {L} _ {K L} \left[ \mathcal {N} \left(Z _ {\mu}, Z _ {\sigma} ^ {2}\right) \| \mathcal {N} (0, I) \right]. \tag {7}
+$$
+
+To generate novel shapes, we can sample or interpolate vectors from the learned latent distribution. Latent vectors are decoded by PointGMM to generate the hGMM representation. Given the probabilistic representation defined by the hGMM, we can sample the underlying surface of the synthesized shape in any desired resolution.
+
+# 3.4. Shape registration
+
+For the registration task, we would like to find a transformation to align two partial point clouds. The core assumption of our approach is that for each shape in our data, there is a canonical form. Thus, our registration strategy is based on finding the transformation of each given shape with respect to its canonical form.
+
+Data processing. To train our network to learn a canonical position, we use an aligned dataset, ShapeNet [8], for training. We use partially sampled and rotated shapes as an input to our network, generated by the following simple steps. First, we sample the shape surface to get the canonical point cloud $X_{c}$ . Then, the shape is randomly rotated with angle $\phi$ around the $z$ axis, creating $X_{r}$ . The partial point cloud is obtained by sampling a subset of the points. Finally, we translate the point cloud to the center by $v$ resulting in the partial and full point clouds $X$ and $X_{t} = X_{r} + v$ . To summarize, we obtain the input point cloud $X$ together with point clouds $X_{c}, X_{t}$ and transformation $\mathcal{T} = \{\phi, v\}$ , which satisfy $X_{t} = \mathcal{T} \cdot X_{c}$ . These inputs are used as a supervision to our method as detailed below.
+
+Training. Our registration framework (illustrated in Figure 3) aims to disentangle the shape from the transformation of an input point cloud. First, two different encoders $E_{t}$
+
+(transformation) and $E_{c}$ (canonical) process the input point cloud $X$ in parallel. The transformation encoder $E_{t}$ learns to map the Cartesian coordinates of $X$ to a latent vector $Z_{t}$ that is agnostic to the shape. On the other hand, the shape encoder $E_{c}$ learns to embed rotation-invariant features [9] of $X$ to a latent vector $Z_{c}$ , which is agnostic to the orientation. The final latent vector $Z$ is a concatenation of both the shape and rotation vectors $Z = Z_{t} \oplus Z_{c}$ .
+
+The network learns to disentangle the shape and transformation of the input point cloud in two different passes. In the transformation pass, we estimate the (transformed) complete shape $X_{t}$ from the (transformed) partial input $X$ . In this scenario the latent vector $Z$ is a concatenation of the output of the transformation encoder and the shape encoder $Z_{t} \oplus Z_{c}$ . The PointGMM decoder $D$ builds the hGMM of the transformed shape from the latent vector $\Theta_{t} = D(Z_{t} \oplus Z_{c})$ . In addition, the encoding $Z_{t}$ is passed to an MLP with one hidden layers, which generates an estimate $\hat{\mathcal{T}} = \left\{\hat{\phi}, \hat{v}\right\}$ of the transformation $\mathcal{T}$ . Therefore, the loss used for the transformation pass is given by
+
+$$
+\mathcal {L} _ {t} = \mathcal {L} _ {h G M M} \left(X _ {t}, \Theta_ {t}\right) + \mathcal {L} (\hat {\mathcal {T}}, \mathcal {T}). \tag {8}
+$$
+
+The transformation loss $\mathcal{L}\left(\hat{\mathcal{T}},\mathcal{T}\right)$ penalizes differences between translation $v$ using the $L_{1}$ -norm and rotation $\phi$ using cosine similarity. Thus, it is defined as
+
+$$
+\mathcal {L} (\hat {\mathcal {T}}, \mathcal {T}) = \gamma_ {1} \mathcal {L} _ {1} (\hat {v}, v) + \gamma_ {2} \mathcal {L} _ {\cos} (\hat {\phi}, \phi). \tag {9}
+$$
+
+In the shape pass, we estimate the (canonical) complete shape $X_{c}$ from the (transformed) partial input $X$ . Since the input features of $X$ to $E_{c}$ are rotation-invariant, the shape latent vector $Z_{c}$ is agnostic to the orientation. Since we want the network to disentangle the shape from the orientation, we do not use the transformation encoder, which gets Cartesian coordinates to estimate the transformation, and set the transformation latent vector with zeros $\vec{0}$ . This leaves the final latent vector $Z$ to be the output of the shape encoder concatenated with zeros $\vec{0} \oplus Z_{c}$ . The PointGMM decoder $D$ builds the hGMM of the transformed shape from the latent vector $\Theta_{c} = D(\vec{0} \oplus Z_{c})$ . Clearly, in the shape pass, there is no MLP-transformation update. Therefore, the loss for the shape pass is given by
+
+$$
+\mathcal {L} _ {c} = \mathcal {L} _ {h G M M} \left(X _ {c}, \Theta_ {c}\right). \tag {10}
+$$
+
+Our proposed architecture learns to align shapes into a global canonical orientation. Thus, we can easily obtain the alignment between two shapes by inverting the transformation of one and applying it to the other.
+
+# 4. Experiments
+
+In all experiments we train our network on shapes from the Shapenet dataset [8], where each network is trained on
+
+
+
+
+Figure 4: Ablation study. Top: significance of hGMM compared to vanilla GMM. Bottom: impact of using attention.
+
+a single class.
+
+We train each network for 1000 epochs using Adam optimizer [23] with a learning rate (lr) of $10^{-4}$ and lr decay of 0.5 applied in intervals of 200 epochs. The value $V_{j}$ , key $K_{j}$ and query $Q_{j}$ have dimension 512, 64 and 64 respectively. All the networks use the following hGMM tree form: starting with the first split of the root to 8 children, with additional 3 splits to 4 children each. This results in 8, 32, 128 and 512 Gaussian mixtures in each level.
+
+Our PyTorch [33] implementation as well as the pretrained models are available at https://github.com/amirhertz/pointgmm.
+
+# 4.1. Shape generation evaluation
+
+Following the $VAE$ framework (see Section 3.3), we train class-specific networks on the chair, table and airplane datasets. We train with latent vector $Z$ of size 256 and a weight of 1 for the $\mathcal{L}_{KL}$ applied with decay of 0.98 every 100 epochs. We use the trained networks to make interpolations between shapes from the dataset (see Figure 1). In addition, we sample from the latent space to generate new shapes (see Figure 5). Quantitative results based on the protocol of [16] are in the supplementary material, as well as additional qualitative results.
+
+| shape | Baseline | Point Decoder | PointGMM |
| chair | 0.0612 | 0.1185 | 0.0382 |
| car | 0.1514 | 0.2073 | 0.0447 |
| airplane | 0.1688 | 0.1817 | 0.0447 |
+
+Table 1: Decoder ablation. The registration results improve when adding a PointGMM decoder (compared to baseline), and excel compared to a vanilla point decoder.
+
+Ablation Study. We perform an ablation study to highlight the contributions of each component of PointGMM. We use the chair dataset on the shape generation task. First, we examine the influence of the hierarchical architecture compared to a vanilla GMM architecture. In the vanilla GMM setting there is no hierarchy, instead the decoder generates all the GMMs once in the last layer of the network. We plot the log-likelihood of the hGMM and vanilla GMM nodes vs. epochs in Figure 4a for $k = 32$ , 128 and 512 respectively. Observe the use of hGMM is crucial in preventing getting caught in a local minima. Namely, notice that the vanilla GMM with $k = 32$ Gaussians was able to learn something, indicating the solution is indeed a coarse-to-fine learning procedure. Moreover, as we increase the number of Gaussians, the hGMM network improves, while the vanilla GMM becomes even more susceptible to local minima (performance decreases). This phenomenon is also common in image GANs, where a coarse to fine methodology was found useful to help stabilize training [15].
+
+We also verify the importance of the attention module within our network architecture by conducting the experiments for the different depths as before while the attention modules are disabled. We can see in Figure 4b that adding attention does improve the log-likelihood during training, especially in the shallower cases (fewer Gaussians). This shows that when the number of Gaussians is limited, it is even more crucial to enable information passing across the hGMM nodes using the attention module.
+
+# 4.2. Shape registration evaluation
+
+In the registration experiments, we assume the direction of gravity is known (a common feature of real scanning devices), resulting in partial point clouds in any position or orientation around the $z$ axis.
+
+We test our registration approach (see Section 3.4) by training three class-specific networks on chairs, airplanes and cars. We replace the tables class due to symmetry which makes the registration evaluation ambiguous. We use weights of 20 and 10 for the translation $\mathcal{L}_1$ and rotation $\mathcal{L}_{cos}$ losses respectively. The dimensions of $Z_{c}$ and $Z_{t}$ are 256 and 128, respectively. In all the training scenarios, the input point clouds are uniformly sampled from only $30\%$ to $80\%$ of the underlying shape area and are randomly rotated
+
+
+Figure 5: Randomly sampled shapes using a PointGMM generative model.
+
+
+Figure 6: Qualitative results from the rigid registration comparison.
+
+around the $z$ axis, for example, see source and target point clouds in Figure 6.
+
+Evaluation. We evaluate the performance of each network on four test sets covering two cases: medium $(\leq 30^{\circ})$ and large rotations $(\leq 180^{\circ})$ . We also test different two different ranges of surface area coverage: $50\%$ to $80\%$ and $30\%$ to $50\%$ .
+
+Each test consists of 1000 pairs of point clouds, where each pair is sampled from the same shape and are added with a random Gaussian noise of $\sigma = 0.02$ . All test shapes are unseen during training.
+
+Given a pair of source and target point clouds, we compute the rigid transformation from source to target. In order to evaluate alignment accuracy, we compute the mean squared error per point in the transformed source point cloud to the ground-truth target point cloud.
+
+Comparisons. We run the same registration tests on five additional approaches. Two of them, RANSAC-fast point feature histograms (FPFH [37]) and Super 4-points Congruent Sets (S4PCS [30]) are global registration approaches. We also compare to point set registration approaches: the
+
+ubiquitous Iterative Closest Point (ICP [6]) and a GMM-based approach robust point set registration using GMMs (GMMREG [22]). Lastly, we compare to a recent deep learning approach PointNetLK [3], which we adapt for our test by training it on the same Shapenet dataset.
+
+The quantitative $MSE$ evaluation results are reported in Table 2 and qualitative examples in Figure 6. Our method achieves out performs the other approaches, most notably when large regions are missing with large rotation angles. Observe that the gap between our method and the point set approaches is small in the cases with medium rotations ( $\leq 30^{\circ}$ ) and larger sampling coverage (50% to 80%).
+
+Ablation study. We perform two additional ablation comparisons to demonstrate the utility of PointGMM as a decoder within the registration framework (Figure 3).
+
+As a baseline, we remove the decoder and train only the transformation encoder $E_{t}$ to output the canonical transformation of an input point cloud. Thus, this baseline network is trained by the transformation loss $\mathcal{L}_{\mathcal{T}}$ (Equation 8), without the disentanglement hGMM losses.
+
+We were also interested in comparing our approach
+
+| shape | max rotation (°) | sampling coverage % | RANSAC FPFH [37] | S4PCS [30] | GMMREG [22] | ICP [6] | PointNetLK [3] | Ours PointGMM |
| chair | 30 | 50 - 80 | 0.2113 | 0.3343 | 0.0434 | 0.0430 | 0.1665 | 0.0226 |
| chair | 30 | 30 - 50 | 0.2804 | 0.3500 | 0.0842 | 0.0824 | 0.2617 | 0.0496 |
| chair | 180 | 50 - 80 | 0.2481 | 0.3479 | 0.2586 | 0.2578 | 0.2768 | 0.0232 |
| chair | 180 | 30 - 50 | 0.3132 | 0.3732 | 0.2829 | 0.2817 | 0.3386 | 0.0574 |
| car | 30 | 50 - 80 | 0.1352 | 0.2344 | 0.0399 | 0.04003 | 0.0566 | 0.0246 |
| car | 30 | 30 - 50 | 0.2134 | 0.2573 | 0.0884 | 0.08774 | 0.1647 | 0.0552 |
| car | 180 | 50 - 80 | 0.1754 | 0.2411 | 0.2134 | 0.2134 | 0.2288 | 0.0290 |
| car | 180 | 30 - 50 | 0.2357 | 0.2593 | 0.2354 | 0.2350 | 0.2548 | 0.0702 |
| airplane | 30 | 50 - 80 | 0.0765 | 0.1254 | 0.0632 | 0.0661 | 0.0798 | 0.0312 |
| airplane | 30 | 30 - 50 | 0.1501 | 0.1637 | 0.1052 | 0.1070 | 0.1301 | 0.0490 |
| airplane | 180 | 50 - 80 | 0.1485 | 0.1768 | 0.1983 | 0.1979 | 0.2023 | 0.0350 |
| airplane | 180 | 30 - 50 | 0.1961 | 0.2084 | 0.2293 | 0.2302 | 0.2308 | 0.0489 |
+
+Table 2: Quantitative comparisons for rigid registration on partial shapes.
+
+against a simple point-based decoder. Therefore, we replaced PointGMM with an implementation of PointNet auto-encoder1. This decoder applies a 4 layer MLP network on an input vector $Z$ to output a point cloud with 2048 points. In this setting, the hGMM loss is replaced by the dual Chamfer distance.
+
+We ran the decoder ablation on random rotations $(\leq 180^{\circ})$ with sampling area coverage between $30\%$ to $80\%$ in Table 1. Observe that using PointGMM performs better than without a decoder at all (baseline). On the other hand, vanilla point decoder did not always do better than the baseline (in fact, worse than the baseline in the chairs set). We believe this is due to the fact that the PointNet decoder struggles to generalize to the ill-posed problem of completing partial-shapes, while PointGMM can define the complete shape with better certainty using a probabilistic model. In other words, the probabilistic hGMM framework naturally supports handling partial shapes by predicting large variances in uncertain regions.
+
+# 5. Conclusion
+
+We have introduced a novel framework to transform point clouds into a hGMM representation. This representation has various desirable properties, including representing the shape probabilistically and in a coarse to fine manner. This facilitates coping with shapes that have missing parts or non-uniform sampling. The coarse levels capture global information of the shape better, while the probabilistic framework may alleviate randomness in the sampling process.
+
+The key idea of representing a point cloud using a probabilistic framework was demonstrated to be useful for con
+
+structuring a generative model for 3D objects, a problem which is known to be challenging. A common approach for this task directly synthesizes a point cloud, which often leads to a fixed number of points and fixed (uniform) sampling. Using PointGMM to learn hGMM for shape generation enables sampling the learned distribution to any desired resolution and possibly even non-uniformly.
+
+Note that our model struggles to generate small sharp details (see Figure 5). We believe that one source of the problem is the fact that we use a VAE-based model, which is known to produce non-sharp results. Accordingly, incorporating adversarial, or other detail-sensitive, losses is expected to improve the representation of finer details.
+
+An intriguing property that was revealed in our representation is that it provides an interpretable and consistent partitioning of a shape class within the hGMM leaf nodes (Figure 1). This implies that the learned hGMM is structured and captures the shape information. We exploited this inherent property to disentangle the shape from the orientation, and demonstrated how to use this effectively for the task of rigid registration.
+
+We believe that PointGMM can be utilized in other shape analysis tasks such as detection, segmentation and reconstruction, to name a few. Note that hGMM is a more compact representation compared to the whole point cloud. Thus, such a conversion may allow a more efficient processing in these tasks and serve as an alternative to various sampling methods proposed to improve processing time [12].
+
+# Acknowledgement
+
+This work is partially supported by the NSF-BSF grant (No. 2017729) and the European research council (ERC-StG 757497 PI Giryes).
+
+# References
+
+[1] Panos Achlioptas, Olga Diamanti, Ioannis Mitliagkas, and Leonidas Guibas. Learning representations and generative models for 3d point clouds. arXiv preprint arXiv:1707.02392, 2017. 2
+[2] Dror Aiger, Niloy J Mitra, and Daniel Cohen-Or. 4-points congruent sets for robust pairwise surface registration. In ACM transactions on graphics (TOG), volume 27, page 85. Acm, 2008. 2
+[3] Yasuhiro Aoki, Hunter Goforth, Rangaprasad Arun Srivatsan, and Simon Lucey. Pointnetlk: Robust & efficient point cloud registration using pointnet. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7163-7172, 2019. 2, 7, 8
+[4] Yizhak Ben-Shabat, Michael Lindenbaum, and Anath Fischer. 3dmfv: Three-dimensional point cloud classification in real-time using convolutional neural networks. IEEE Robotics and Automation Letters, 3(4):3145-3152, 2018. 1, 2
+[5] Yizhak Ben-Shabat, Michael Lindenbaum, and Anath Fischer. Nesti-net: Normal estimation for unstructured 3d point clouds using convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 10112-10120, 2019. 2
+[6] Paul J Besl and Neil D McKay. Method for registration of 3-d shapes. In Sensor fusion IV: control paradigms and data structures, volume 1611, pages 586-606. International Society for Optics and Photonics, 1992. 2, 7, 8
+[7] Michael M Bronstein, Joan Bruna, Yann LeCun, Arthur Szlam, and Pierre Vandergheynst. Geometric deep learning: going beyond euclidean data. IEEE Signal Processing Magazine, 34(4):18-42, 2017. 1, 2
+[8] 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. 5
+[9] Chao Chen, Guanbin Li, Ruijia Xu, Tianshui Chen, Meng Wang, and Liang Lin. Clusternet: Deep hierarchical cluster network with rigorously rotation-invariant representation for point cloud analysis. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4994-5002, 2019. 5
+[10] Chu-Song Chen, Yi-Ping Hung, and Jen-Bo Cheng. Ransac-based darces: A new approach to fast automatic registration of partially overlapping range images. IEEE Transactions on Pattern Analysis and Machine Intelligence, 21(11):1229-1234, 1999. 2
+[11] Yang Chen and Gérard Medioni. Object modelling by registration of multiple range images. Image and vision computing, 10(3):145-155, 1992. 2
+[12] Oren Dovrat, Itai Lang, and Shai Avidan. Learning to sample. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2760-2769, 2019. 8
+[13] Benjamin Eckart, Kihwan Kim, and Jan Kautz. Hgmr: Hierarchical gaussian mixtures for adaptive 3d registration. In
+
+Proceedings of the European Conference on Computer Vision (ECCV), pages 705-721, 2018. 1, 2
+[14] Benjamin Eckart, Kihwan Kim, Alejandro Troccoli, Alonzo Kelly, and Jan Kautz. Accelerated generative models for 3d point cloud data. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5497-5505, 2016. 2, 3
+[15] Karras et al. Progressive growing of gans for improved quality, stability, and variation. arXiv:1710.10196, 2017. 6
+[16] Yang et al. Pointflow: 3d point cloud generation with continuous normalizing flows. In ICCV, 2019. 6
+[17] Martin A Fischler and Robert C Bolles. Random sample consensus: a paradigm for model fitting with applications to image analysis and automated cartography. Communications of the ACM, 24(6):381-395, 1981. 2
+[18] Lin Gao, Jie Yang, Tong Wu, Yu-Jie Yuan, Hongbo Fu, Yu-Kun Lai, and Hao(Richard) Zhang. SDM-NET: Deep generative network for structured deformable mesh. ACM Transactions on Graphics (Proceedings of ACM SIGGRAPH Asia 2019), 38(6):243:1-243:15, 2019. 2
+[19] Thibault Groueix, Matthew Fisher, Vladimir G. Kim, Bryan C. Russell, and Mathieu Aubry. Unsupervised cycle-consistent deformation for shape matching. Computer Graphics Forum, 38(5):123-133, 2019. 2
+[20] Rana Hanocka, Noa Fish, Zhenhua Wang, Raja Giryes, Shachar Fleishman, and Daniel Cohen-Or. Alignet: Partial-shape agnostic alignment via unsupervised learning. ACM Trans. Graph., 38(1):1:1-1:14, 2018. 2
+[21] Rana Hanocka, Amir Hertz, Noa Fish, Raja Giryes, Shachar Fleishman, and Daniel Cohen-Or. MeshCNN: A network with an edge. ACM Trans. Graph., 38(4):90:1–90:12, July 2019. 2
+[22] Bing Jian and Baba C Vemuri. Robust point set registration using gaussian mixture models. IEEE transactions on pattern analysis and machine intelligence, 33(8):1633-1645, 2010. 7, 8
+[23] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. 6
+[24] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. 4
+[25] Ilya Kostrikov, Zhongshi Jiang, Daniele Panozzo, Denis Zorin, and Joan Bruna. Surface networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2540-2548, 2018. 2
+[26] Chun-Liang Li, Manzil Zaheer, Yang Zhang, Barnabas Poc-zos, and Ruslan Salakhutdinov. Point cloud gan. arXiv preprint arXiv:1810.05795, 2018. 2
+[27] Jiaxin Li, Ben M Chen, and Gim Hee Lee. So-net: Self-organizing network for point cloud analysis. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 9397–9406, 2018. 2
+[28] Yangyan Li, Rui Bu, Mingchao Sun, Wei Wu, Xinhan Di, and Baoquan Chen. Pointcnn: Convolution on x-transformed points. In Advances in Neural Information Processing Systems, pages 820-830, 2018. 1, 2
+
+[29] Peter J Liu, Mohammad Saleh, Etienne Pot, Ben Goodrich, Ryan Sepassi, Lukasz Kaiser, and Noam Shazeer. Generating wikipedia by summarizing long sequences. arXiv preprint arXiv:1801.10198, 2018. 4
+[30] Nicolas Mellado, Dror Aiger, and Niloy J Mitra. Super 4pcs fast global pointcloud registration via smart indexing. In Computer Graphics Forum, volume 33, pages 205-215. Wiley Online Library, 2014. 7, 8
+[31] Kaichun Mo, Paul Guerrero, Li Yi, Hao Su, Peter Wonka, Niloy Mitra, and Leonidas J Guibas. Structurenet: Hierarchical graph networks for 3d shape generation. arXiv preprint arXiv:1908.00575, 2019. 2
+[32] Federico Monti, Davide Boscaini, Jonathan Masci, Emanuele Rodola, Jan Svoboda, and Michael M Bronstein. Geometric deep learning on graphs and manifolds using mixture model cnns. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5115-5124, 2017. 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 NIPS-W, 2017. 6
+[34] 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. 1, 2, 4
+[35] Charles Ruizhongtai Qi, Li Yi, Hao Su, and Leonidas J Guibas. Pointnet++: Deep hierarchical feature learning on point sets in a metric space. In Advances in neural information processing systems, pages 5099-5108, 2017. 2
+[36] Szymon Rusinkiewicz and Marc Levoy. Efficient variants of the icp algorithm. In 3dim, volume 1, pages 145-152, 2001. 2
+[37] Radu Bogdan Rusu, Nico Blodow, and Michael Beetz. Fast point feature histograms (fpfh) for 3d registration. In 2009 IEEE International Conference on Robotics and Automation, pages 3212-3217. IEEE, 2009. 7, 8
+[38] Aleksandr Segal, Dirk Hähnel, and Sebastian Thrun. Generalized-icp. Robotics: Science and Systems, 2009. 2
+[39] Hang Su, Varun Jampani, Deqing Sun, Subhransu Maji, Evangelos Kalogerakis, Ming-Hsuan Yang, and Jan Kautz. Splatnet: Sparse lattice networks for point cloud processing. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018. 2
+[40] Hao Su, Charles R Qi, Yangyan Li, and Leonidas J Guibas. Render for cnn: Viewpoint estimation in images using cnns trained with rendered 3d model views. In Proceedings of the IEEE International Conference on Computer Vision, pages 2686-2694, 2015. 2
+[41] Shubham Tulsiani, Hao Su, Leonidas J Guibas, Alexei A Efros, and Jitendra Malik. Learning shape abstractions by assembling volumetric primitives. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2635-2643, 2017. 2
+[42] 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. 4
+[43] 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 Transactions on Graphics (TOG), 38(5):146, 2019. 1, 2
\ No newline at end of file
diff --git a/pointgmmaneuralgmmnetworkforpointclouds/images.zip b/pointgmmaneuralgmmnetworkforpointclouds/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..e601ef9ebd909e55d59f7481cad3de5a313fdd01
--- /dev/null
+++ b/pointgmmaneuralgmmnetworkforpointclouds/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:58c8df4094d1b945efb553015e04fbff4e9d6e95e27377e1d3927d490af27f28
+size 471788
diff --git a/pointgmmaneuralgmmnetworkforpointclouds/layout.json b/pointgmmaneuralgmmnetworkforpointclouds/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..4587f14009893905a42e1237621f8aa2e60828a8
--- /dev/null
+++ b/pointgmmaneuralgmmnetworkforpointclouds/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5a9aabd73f9bdca867ce90894df8a77023de10434790c006631119abe7ac4dc9
+size 419886
diff --git a/pointgnngraphneuralnetworkfor3dobjectdetectioninapointcloud/783b5aad-99ab-41d2-8d68-aa7e87d9ab65_content_list.json b/pointgnngraphneuralnetworkfor3dobjectdetectioninapointcloud/783b5aad-99ab-41d2-8d68-aa7e87d9ab65_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..3417de523d282f75b0f90e907986cb7676364934
--- /dev/null
+++ b/pointgnngraphneuralnetworkfor3dobjectdetectioninapointcloud/783b5aad-99ab-41d2-8d68-aa7e87d9ab65_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ec992e150202281cd97f924d0614ff82bc95fdfeac1d3ac168c3e71c04034566
+size 74843
diff --git a/pointgnngraphneuralnetworkfor3dobjectdetectioninapointcloud/783b5aad-99ab-41d2-8d68-aa7e87d9ab65_model.json b/pointgnngraphneuralnetworkfor3dobjectdetectioninapointcloud/783b5aad-99ab-41d2-8d68-aa7e87d9ab65_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..6ed47861f5fb9290c51490ec4ffc9e62849eb2d6
--- /dev/null
+++ b/pointgnngraphneuralnetworkfor3dobjectdetectioninapointcloud/783b5aad-99ab-41d2-8d68-aa7e87d9ab65_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4113ed05b7bb28b9b241801caae5a572ed680a50101b2530ef8edec38c94da73
+size 87347
diff --git a/pointgnngraphneuralnetworkfor3dobjectdetectioninapointcloud/783b5aad-99ab-41d2-8d68-aa7e87d9ab65_origin.pdf b/pointgnngraphneuralnetworkfor3dobjectdetectioninapointcloud/783b5aad-99ab-41d2-8d68-aa7e87d9ab65_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..1eabc736780c5f588d1d03f444f19c8f352aa0fe
--- /dev/null
+++ b/pointgnngraphneuralnetworkfor3dobjectdetectioninapointcloud/783b5aad-99ab-41d2-8d68-aa7e87d9ab65_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:efffeafe28c532d4d95e0247d964f1b5ae2cc1222492bf05affff6554053ed82
+size 1039296
diff --git a/pointgnngraphneuralnetworkfor3dobjectdetectioninapointcloud/full.md b/pointgnngraphneuralnetworkfor3dobjectdetectioninapointcloud/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..d877ebebac7ea13c1901078977b83e08951fedae
--- /dev/null
+++ b/pointgnngraphneuralnetworkfor3dobjectdetectioninapointcloud/full.md
@@ -0,0 +1,329 @@
+# Point-GNN: Graph Neural Network for 3D Object Detection in a Point Cloud
+
+Weijing Shi and Ragunathan (Raj) Rajkumar Carnegie Mellon University Pittsburgh, PA 15213
+
+{weijings, rajkumar}@cmu.edu
+
+# Abstract
+
+In this paper, we propose a graph neural network to detect objects from a LiDAR point cloud. Towards this end, we encode the point cloud efficiently in a fixed radius near-neighbors graph. We design a graph neural network, named Point-GNN, to predict the category and shape of the object that each vertex in the graph belongs to. In Point-GNN, we propose an auto-registration mechanism to reduce translation variance, and also design a box merging and scoring operation to combine detections from multiple vertices accurately. Our experiments on the KITTI benchmark show the proposed approach achieves leading accuracy using the point cloud alone and can even surpass fusion-based algorithms. Our results demonstrate the potential of using the graph neural network as a new approach for 3D object detection. The code is available at https://github.com/WeijingShi/Point-GNN.
+
+# 1. Introduction
+
+Understanding the 3D environment is vital in robotic perception. A point cloud that composes a set of points in space is a widely-used format for 3D sensors such as LiDAR. Detecting objects accurately from a point cloud is crucial in applications such as autonomous driving.
+
+Convolutional neural networks that detect objects from images rely on the convolution operation. While the convolution operation is efficient, it requires a regular grid as input. Unlike an image, a point cloud is typically sparse and not spaced evenly on a regular grid. Placing a point cloud on a regular grid generates an uneven number of points in the grid cells. Applying the same convolution operation on such a grid leads to potential information loss in the crowded cells or wasted computation in the empty cells.
+
+Recent breakthroughs in using neural networks [3] [22] allow an unordered set of points as input. Studies take advantage of this type of neural network to extract point cloud features without mapping the point cloud to a grid. However, they typically need to sample and group points
+
+
+Figure 1. Three point cloud representations and their common processing methods.
+
+
+
+
+
+iteratively to create a point set representation. The repeated grouping and sampling on a large point cloud can be computationally costly. Recent 3D detection approaches [10][21][16] often take a hybrid approach to use a grid and a set representation in different stages. Although they show some promising results, such hybrid strategies may suffer the shortcomings of both representations.
+
+In this work, we propose to use a graph as a compact representation of a point cloud and design a graph neural network called Point-GNN to detect objects. We encode the point cloud natively in a graph by using the points as the graph vertices. The edges of the graph connect neighborhood points that lie within a fixed radius, which allows feature information to flow between neighbors. Such a graph representation adapts to the structure of a point cloud directly without the need to make it regular. A graph neural network reuses the graph edges in every layer, and avoids grouping and sampling the points repeatedly.
+
+Studies [15] [9] [2] [17] have looked into using graph neural network for the classification and the semantic segmentation of a point cloud. However, little research has looked into using a graph neural network for the 3D object detection in a point cloud. Our work demonstrates the feasibility of using a GNN for highly accurate object detection in a point cloud.
+
+Our proposed graph neural network Point-GNN takes the point graph as its input. It outputs the category and bounding boxes of the objects to which each vertex belongs. Point-GNN is a one-stage detection method that detects multiple objects in a single shot. To reduce the translation variance in a graph neural network, we introduce an
+
+auto-registration mechanism which allows points to align their coordinates based on their features. We further design a box merging and scoring operation to combine detection results from multiple vertices accurately.
+
+We evaluate the proposed method on the KITTI benchmark. On the KITTI benchmark, Point-GNN achieves the state-of-the-art accuracy using the point cloud alone and even surpasses sensor fusion approaches. Our Point-GNN shows the potential of a new type 3D object detection approach using graph neural network, and it can serve as a good baseline for the future research. We conduct an extensive ablation study on the effectiveness of the components in Point-GNN.
+
+In summery, the contributions of this paper are:
+
+- We propose a new object detection approach using graph neural network on the point cloud.
+- We design Point-GNN, a graph neural network with an auto-registration mechanism that detects multiple objects in a single shot.
+- We achieve state-of-the-art 3D object detection accuracy in the KITTI benchmark and analyze the effectiveness of each component in depth.
+
+# 2. Related Work
+
+Prior work in this context can be grouped into three categories, as shown in Figure 1.
+
+Point cloud in grids. Many recent studies convert a point cloud to a regular grid to utilize convolutional neural networks. [20] projects a point cloud to a 2D Bird's Eye View (BEV) image and uses a 2D CNN for object detection. [4] projects a point cloud to both a BEV image and a Front View (FV) image before applying a 2D CNN on both. Such projection induces a quantization error due to the limited image resolution. Some approaches keep a point cloud in 3D coordinates. [23] represents points in 3D voxels and applies 3D convolution for object detection. When the resolution of the voxels grows, the computation cost of 3D CNN grows cubically, but many voxels are empty due to point sparsity. Optimizations such as the sparse convolution [19] reduce the computation cost. Converting a point cloud to a 2D/3D grid suffers from the mismatch between the irregular distribution of points and the regular structure of the grids.
+
+Point cloud in sets. Deep learning techniques on sets such as PointNet [3] and DeepSet[22] show neural networks can extract features from an unordered set of points directly. In such a method, each point is processed by a multi-layer perceptron (MLP) to obtain a point feature vector. Those features are aggregated by an average or max pooling function to form a global feature vector of the whole set. [14] further proposes the hierarchical aggregation of point features, and generates local subsets of points by sampling around some
+
+key points. The features of those subsets are then again grouped into sets for further feature extraction. Many 3D object detection approaches take advantage of such neural networks to process a point cloud without mapping it to a grid. However, the sampling and grouping of points on a large scale lead to additional computational costs. Most object detection studies only use the neural network on sets as a part of the pipeline. [13] generates object proposals from camera images and uses [14] to separate points that belong to an object from the background and predict a bounding box. [16] uses [14] as a backbone network to generate bounding box proposals directly from a point cloud. Then, it uses a second-stage point network to refine the bounding boxes. Hybrid approaches such as [23] [19] [10] [21] use [3] to extract features from local point sets and place the features on a regular grid for the convolutional operation. Although they reduce the local irregularity of the point cloud to some degree, they still suffer the mismatch between a regular grid and the overall point cloud structure.
+
+Point cloud in graphs. Research on graph neural network [18] seeks to generalize the convolutional neural network to a graph representation. A GNN iteratively updates its vertex features by aggregating features along the edges. Although the aggregation scheme sometimes is similar to that in deep learning on sets, a GNN allows more complex features to be determined along the edges. It typically does not need to sample and group vertices repeatedly. In the computer vision domain, a few approaches represent the point cloud as a graph. [15] uses a recurrent GNN for the semantic segmentation on RGBD data. [9] partitions a point cloud to simple geometrical shapes and link them into a graph for semantic segmentation. [2] [17] look into classifying a point cloud using a GNN. So far, few investigations have looked into designing a graph neural network for object detection, where an explicit prediction of the object shape is required.
+
+Our work differs from previous work by designing a GNN for object detection. Instead of converting a point cloud to a regular gird, such as an image or a voxel, we use a graph representation to preserve the irregularity of a point cloud. Unlike the techniques that sample and group the points into sets repeatedly, we construct the graph once. The proposed Point-GNN then extracts features of the point cloud by iteratively updating vertex features on the same graph. Our work is a single-stage detection method without the need to develop a second-stage refinement neural networks like those in [4][16][21][11][13].
+
+# 3. Point-GNN for 3D Object Detection in a Point Cloud
+
+In this section, we describe the proposed approach to detect 3D objects from a point cloud. As shown in Figure 2, the overall architecture of our method contains three components: (a) graph construction, (b) a GNN of $T$ iterations,
+
+
+a: Graph Construction from a Point Cloud
+
+
+
+
+Graph representation
+
+
+
+
+c: Bounding Box Merging and Scoring
+Detected object bounding boxes from vertices
+
+
+Merge bounding boxes
+
+
+Score NMS
+
+
+b: Graph Neural Network for Object Detection
+Figure 2. The architecture of the proposed approach. It has three main components: (a) graph construction from a point cloud, (b) a graph neural network for object detection, and (c) bounding box merging and scoring.
+
+and (c) bounding box merging and scoring.
+
+# 3.1. Graph Construction
+
+Formally, we define a point cloud of $N$ points as a set $P = \{p_1,\dots,p_N\}$ , where $p_i = (x_i,s_i)$ is a point with both 3D coordinates $x_{i}\in \mathbb{R}^{3}$ and the state value $s_i\in \mathbb{R}^k$ a $k$ -length vector that represents the point property. The state value $s_i$ can be the reflected laser intensity or the features which encode the surrounding objects. Given a point cloud $P$ , we construct a graph $G = (P,E)$ by using $P$ as the vertices and connecting a point to its neighbors within a fixed radius $r$ , i.e.
+
+$$
+E = \left\{\left(p _ {i}, p _ {j}\right) \mid \| x _ {i} - x _ {j} \| _ {2} < r \right\} \tag {1}
+$$
+
+The construction of such a graph is the well-known fixed radius near-neighbors search problem. By using a cell list to find point pairs that are within a given cut-off distance, we can efficiently solve the problem with a runtime complexity of $O(cN)$ where $c$ is the max number of neighbors within the radius [1].
+
+In practice, a point cloud commonly comprises tens of thousands of points. Constructing a graph with all the points as vertices imposes a substantial computational burden. Therefore, we use a voxel downsampled point cloud $\hat{P}$ for the graph construction. It must be noted that the voxels here are only used to reduce the density of a point cloud and they are not used as the representation of the point cloud. We still use a graph to present the downsampled point cloud.
+
+To preserve the information within the original point cloud, we encode the dense point cloud in the initial state value $s_i$ of the vertex. More specifically, we search the raw points within a $r_0$ radius of each vertex and use the neural network on sets to extract their features. We follow [10] [23] and embed the lidar reflection intensity and the relative coordinates using an MLP and then aggregate them by the Max function. We use the resulting features as the initial state value of the vertex. After the graph construction, we process the graph with a GNN, as shown in Figure 2b.
+
+# 3.2. Graph Neural Network with Auto-Registration
+
+A typical graph neural network refines the vertex features by aggregating features along the edges. In the $(t + 1)^{th}$ iteration, it updates each vertex feature in the form:
+
+$$
+\begin{array}{l} v _ {i} ^ {t + 1} = g ^ {t} \left(\rho \left(\left\{e _ {i j} ^ {t} \mid (i, j) \in E \right\}\right), v _ {i} ^ {t}\right) \\ e _ {i j} ^ {t} = f ^ {t} (v _ {i} ^ {t}, v _ {j} ^ {t}) \\ \end{array}
+$$
+
+where $e^t$ and $v^t$ are the edge and vertex features from the $t^{th}$ iteration. A function $f^t(.)$ computes the edge feature between two vertices. $\rho(.)$ is a set function which aggregates the edge features for each vertex. $g^t(.)$ takes the aggregated edge features to update the vertex features. The graph neural network then outputs the vertex features or repeats the process in the next iteration.
+
+In the case of object detection, we design the GNN to refine a vertex's state to include information about the object where the vertex belongs. Towards this goal, we re-write
+
+Equation (2) to refine a vertex's state using its neighbors' states:
+
+$$
+s _ {i} ^ {t + 1} = g ^ {t} \left(\rho \left(\left\{f ^ {t} \left(x _ {j} - x _ {i}, s _ {j} ^ {t}\right) \mid (i, j) \in E \right\}\right), s _ {i} ^ {t}\right) \tag {3}
+$$
+
+Note that we use the relative coordinates of the neighbors as input to $f^t(.)$ for the edge feature extraction. The relative coordinates induce translation invariance against the global shift of the point cloud. However, it is still sensitive to translation within the neighborhood area. When a small translation is added to a vertex, the local structure of its neighbors remains similar. But the relative coordinates of the neighbors are all changed, which increases the input variance to $f^t(.)$ . To reduce the translation variance, we propose aligning neighbors' coordinates by their structural features instead of the center vertex coordinates. Because the center vertex already contains some structural features from the previous iteration, we can use it to predict an alignment offset, and propose an auto-registration mechanism:
+
+$$
+\Delta x _ {i} ^ {t} = h ^ {t} \left(s _ {i} ^ {t}\right) \tag {4}
+$$
+
+$$
+s _ {i} ^ {t + 1} = g ^ {t} \big (\rho \big (\{f (x _ {j} - x _ {i} + \Delta x _ {i} ^ {t}, s _ {j} ^ {t}) \}, s _ {i} ^ {t} \big)
+$$
+
+$\Delta x_{i}^{t}$ is the coordination offset for the vertices to register their coordinates. $h^t(.)$ calculates the offset using the center vertex state value from the previous iteration. By setting $h^t(.)$ to output zero, the GNN can disable the offset if necessary. In that case, the GNN returns to Equation (3). We analyze the effectiveness of this auto-registration mechanism in Section 4.
+
+As shown in Figure 2b, we model $f^{t}(.)$ , $g^{t}(.)$ and $h^{t}(.)$ using multi-layer perceptrons (MLP) and add a residual connection in $g^{t}(.)$ . We choose $\rho(.)$ to be Max for its robustness[3]. A single iteration in the proposed graph network is then given by:
+
+$$
+\Delta x _ {i} ^ {t} = M L P _ {h} ^ {t} (s _ {i} ^ {t})
+$$
+
+$$
+e _ {i j} ^ {t} = M L P _ {f} ^ {t} \left(\left[ x _ {j} - x _ {i} + \Delta x _ {i} ^ {t}, s _ {j} ^ {t} \right]\right) \tag {5}
+$$
+
+$$
+s _ {i} ^ {t + 1} = M L P _ {g} ^ {t} (M a x (\{e _ {i j} \mid (i, j) \in E \})) + s _ {i} ^ {t}
+$$
+
+where $[,]$ represents the concatenation operation.
+
+Every iteration $t$ uses a different set of $MLP^t$ , which is not shared among iterations. After $T$ iterations of the graph neural network, we use the vertex state value to predict both the category and the bounding box of the object where the vertex belongs. A classification branch $MLP_{cls}$ computes a multi-class probability. Finally, a localization branch $MLP_{loc}$ computes a bounding box for each class.
+
+# 3.3. Loss
+
+For the object category, the classification branch computes a multi-class probability distribution $\{p_{c_1},\dots,p_{c_M}\}$ for each vertex. $M$ is the total number of object classes, including the Background class. If a vertex is within a bounding box of an object, we assign the object class to the vertex.
+
+If a vertex is outside any bounding boxes, we assign the background class to it. We use the average cross-entropy loss as the classification loss.
+
+$$
+l _ {c l s} = - \frac {1}{N} \sum_ {i = 1} ^ {N} \sum_ {j = 1} ^ {M} y _ {c _ {j}} ^ {i} \log \left(p _ {c _ {j}} ^ {i}\right) \tag {6}
+$$
+
+where $p_c^i$ and $y_c^i$ are the predicted probability and the one-hot class label for the $i$ -th vertex respectively.
+
+For the object bounding box, we predict it in the 7 degree-of-freedom format $b = (x,y,z,l,h,w,\theta)$ , where $(x,y,z)$ represent the center position of the bounding box, $(l,h,w)$ represent the box length, height and width respectively, and $\theta$ is the yaw angle. We encode the bounding box with the vertex coordinates $(x_v,y_v,z_v)$ as follows:
+
+$$
+\begin{array}{l} \delta_ {x} = \frac {x - x _ {v}}{l _ {m}}, \delta_ {y} = \frac {y - y _ {v}}{h _ {m}}, \delta_ {z} = \frac {z - z _ {v}}{w _ {m}} \\ \delta_ {l} = \log \left(\frac {l}{l _ {m}}\right), \delta_ {h} = \log \left(\frac {h}{h _ {m}}\right), \delta_ {w} = \log \left(\frac {w}{w _ {m}}\right) \tag {7} \\ \delta_ {\theta} = \frac {\theta - \theta_ {0}}{\theta_ {m}} \\ \end{array}
+$$
+
+where $l_{m},h_{m},w_{m},\theta_{0},\theta_{m}$ are constant scale factors.
+
+The localization branch predicts the encoded bounding box $\delta_{b} = (\delta_{x},\delta_{y},\delta_{z},\delta_{l},\delta_{h},\delta_{w},\delta_{\theta})$ for each class. If a vertex is within a bounding box, we compute the Huber loss [7] between the ground truth and our prediction. If a vertex is outside any bounding boxes or it belongs to a class that we do not need to localize, we set its localization loss as zero. We then average the localization loss of all the vertices:
+
+$$
+l _ {l o c} = \frac {1}{N} \sum_ {i = 1} ^ {N} \mathbb {1} \left(v _ {i} \in b _ {i n t e r e s t}\right) \sum_ {\delta \in \delta_ {b _ {i}}} l _ {h u b e r} \left(\delta - \delta^ {g t}\right) \tag {8}
+$$
+
+To prevent over-fitting, we add $L1$ regularization to each MLP. The total loss is then:
+
+$$
+l _ {t o t a l} = \alpha l _ {c l s} + \beta l _ {l o c} + \gamma l _ {r e g} \tag {9}
+$$
+
+where $\alpha, \beta$ and $\gamma$ are constant weights to balance each loss.
+
+# 3.4. Box Merging and Scoring
+
+As multiple vertices can be on the same object, the neural network can output multiple bounding boxes of the same object. It is necessary to merge these bounding boxes into one and also assign a confidence score. Non-maximum suppression (NMS) has been widely used for this purpose. The common practice is to select the box with the highest classification score and suppress the other overlapping boxes. However, the classification score does not always reflect the localization quality. Notably, a partially occluded object can have a strong clue indicating the type of the object but lacks enough shape information. The standard NMS can
+
+Algorithm 1: NMS with Box Merging and Scoring
+Input: $\mathcal{B} = \{b_1,\dots,b_n\}$ , $\mathcal{D} = \{d_1,\dots,d_n\}$ , $T_h$ $\mathcal{B}$ is the set of detected bounding boxes.
+ $\mathcal{D}$ is the corresponding detection scores.
+ $T_h$ is an overlapping threshold value.
+Green color marks the main modifications.
+1 $\mathcal{M} \gets \{\}, \mathcal{Z} \gets \{\}$
+2 while $\mathcal{B} \neq empty$ do
+3 $i \gets \text{argmax } D$
+4 $\mathcal{L} \gets \{\}$
+5 for $b_j$ in $\mathcal{B}$ do
+6 if $iou(b_i, b_j) > Th$ then
+7 $\mathcal{L} \gets \mathcal{L} \cup b_j$
+8 $\mathcal{B} \gets \mathcal{B} - b_j$ , $\mathcal{D} \gets \mathcal{D} - d_j$
+9 end
+10 end
+11 $m \gets \text{median}(\mathcal{L})$
+12 $o \gets \text{occlusion}(m)$
+13 $z \gets (o + 1)\sum_{b_k \in \mathcal{L}} IoU(m, b_k)d_k$
+14 $\mathcal{M} \gets \mathcal{M} \cup m$ , $\mathcal{Z} \gets \mathcal{Z} \cup z$
+15 end
+16 return $\mathcal{M}$ , $\mathcal{Z}$
+
+pick an inaccurate bounding box base on the classification score alone.
+
+To improve the localization accuracy, we propose to calculate the merged box by considering the entire overlapped box cluster. More specifically, we consider the median position and size of the overlapped bounding boxes. We also compute the confidence score as the sum of the classification scores weighted by the Intersection-of-Union (IoU) factor and an occlusion factor. The occlusion factor represents the occupied volume ratio. Given a box $b_{i}$ , let $l_{i}$ , $w_{i}$ , $h_{i}$ be its length, width and height, and let $v_{i}^{l}$ , $v_{i}^{w}$ , $v_{i}^{h}$ be the unit vectors that indicate their directions respectively. $x_{j}$ are the coordinates of point $p_{j}$ . The occlusion factor $o_{i}$ is then:
+
+$$
+o _ {i} = \frac {1}{l _ {i} w _ {i} h _ {i}} \prod_ {v \in \left\{v _ {i} ^ {l}, v _ {i} ^ {w}, v _ {i} ^ {h} \right\}} \max _ {p _ {j} \in b _ {i}} \left(v ^ {T} x _ {j}\right) - \min _ {p _ {j} \in b _ {i}} \left(v ^ {T} x _ {j}\right) \tag {10}
+$$
+
+We modify standard NMS as shown in Algorithm 1. It returns the merged bounding boxes $\mathcal{M}$ and their confidence score $\mathcal{Z}$ . We will study its effectiveness in Section 4.
+
+# 4. Experiments
+
+# 4.1. Dataset
+
+We evaluate our design using the widely used KITTI object detection benchmark [6]. The KITTI dataset contains 7481 training samples and 7518 testing samples. Each sample provides both the point cloud and the camera image. We
+
+only use the point cloud in our approach. Since the dataset only annotates objects that are visible within the image, we process the point cloud only within the field of view of the image. The KITTI benchmark evaluates the average precision (AP) of three types of objects: Car, Pedestrian and Cyclist. Due to the scale difference, we follow the common practice [10][23][19][21] and train one network for the Car and another network for the Pedestrian and Cyclist. For training, we remove samples that do not contain objects of interest.
+
+# 4.2. Implementation Details
+
+We use three iterations $(T = 3)$ in our graph neural network. During training, we limit the maximum number of input edges per vertex to 256. During inference, we use all the input edges. All GNN layers perform auto-registration using a two-layer $MLP_{h}$ of units (64,3). The $MLP_{cls}$ is of size (64, #(classes)). For each class, $MLP_{loc}$ is of size (64,64,7).
+
+Car: We set $(l_m, h_m, w_m)$ to the median size of Car bounding boxes $(3.88m, 1.5m, 1.63m)$ . We treat a side-view car with $\theta \in [-\pi/4, \pi/4]$ and a front-view car $\theta \in [\pi/4, 3\pi/4]$ as two different classes. Therefore, we set $\theta_0 = 0$ and $\theta_0 = \pi/2$ respectively. The scale $\theta_m$ is set as $\pi/2$ . Together with the Background class and DoNotCare class, 4 classes are predicted. We construct the graph with $r = 4m$ and $r_0 = 1m$ . We set $\hat{P}$ as a downsampled point cloud by a voxel size of 0.8 meters in training and 0.4 meters in inference. $MLP_f$ and $MLP_g$ , are both of sizes (300, 300). For the initial vertex state, we use an MLP of (32, 64, 128, 300) for embedding raw points and another MLP of (300, 300) after the Max aggregation. We set $T_h = 0.01$ in NMS.
+
+Pedestrian and Cyclist. Again, we set $(l_m, h_m, w_m)$ to the median bounding box size. We set $(0.88m, 1.77m, 0.65m)$ for Pedestrian and $(1.76m, 1.75m, 0.6m)$ for Cyclist. Similar to what we did with the Car class, we treat front-view and side-view objects as two different classes. Together with the Background class and the DoNotCare class, 6 classes are predicted. We build the graph using $r = 1.6m$ , and downsample the point cloud by a voxel size of 0.4 meters in training and 0.2 meters in inference. $MLP_f$ and $MLP_g$ are both of sizes (256, 256). For the vertex state initialization, we set $r_0 = 0.4m$ . We use a an MLP of (32, 64, 128, 256, 512) for embedding and an MLP of (256, 256) to process the aggregated feature. We set $T_h = 0.2$ in NMS.
+
+We train the proposed GNN end-to-end with a batch size of 4. The loss weights are $\alpha = 0.1$ , $\beta = 10$ , $\gamma = 5e - 7$ . We use stochastic gradient descent (SGD) with a stair-case learning-rate decay. For Car, we use an initial learning rate of 0.125 and a decay rate of 0.1 every $400K$ steps. We trained the network for $1400K$ steps. For Pedestrian and
+
+| Method | Modality | Car | Pedestrian | Cyclist |
| Easy | Moderate | Hard | Easy | Moderate | Hard | Easy | Moderate | Hard |
| UberATG-ContFuse[12] | LiDAR + Image | 82.54 | 66.22 | 64.04 | N/A | N/A | N/A | N/A | N/A | N/A |
| AVOD-FPN[8] | LiDAR + Image | 81.94 | 71.88 | 66.38 | 50.80 | 42.81 | 40.88 | 64.00 | 52.18 | 46.61 |
| F-PointNet[13] | LiDAR + Image | 81.20 | 70.39 | 62.19 | 51.21 | 44.89 | 40.23 | 71.96 | 56.77 | 50.39 |
| UberATG-MMF[11] | LiDAR + Image | 86.81 | 76.75 | 68.41 | N/A | N/A | N/A | N/A | N/A | N/A |
| VoxelNet[23] | LiDAR | 81.97 | 65.46 | 62.85 | 57.86 | 53.42 | 48.87 | 67.17 | 47.65 | 45.11 |
| SECOND[19] | LiDAR | 83.13 | 73.66 | 66.20 | 51.07 | 42.56 | 37.29 | 70.51 | 53.85 | 53.85 |
| PointPillars[10] | LiDAR | 79.05 | 74.99 | 68.30 | 52.08 | 43.53 | 41.49 | 75.78 | 59.07 | 52.92 |
| PointRCNN[16] | LiDAR | 85.94 | 75.76 | 68.32 | 49.43 | 41.78 | 38.63 | 73.93 | 59.60 | 53.59 |
| STD[21] | LiDAR | 86.61 | 77.63 | 76.06 | 53.08 | 44.24 | 41.97 | 78.89 | 62.53 | 55.77 |
| Our Point-GNN | LiDAR | 88.33 | 79.47 | 72.29 | 51.92 | 43.77 | 40.14 | 78.60 | 63.48 | 57.08 |
+
+Table 1. The Average Precision (AP) comparison of 3D object detection on the KITTI test dataset.
+
+| Method | Modality | Car | Pedestrian | Cyclist |
| Easy | Moderate | Hard | Easy | Moderate | Hard | Easy | Moderate | Hard |
| UberATG-ContFuse[12] | LiDAR + Image | 88.81 | 85.83 | 77.33 | N/A | N/A | N/A | N/A | N/A | N/A |
| AVOD-FPN[8] | LiDAR + Image | 88.53 | 83.79 | 77.9 | 58.75 | 51.05 | 47.54 | 68.06 | 57.48 | 50.77 |
| F-PointNet[13] | LiDAR + Image | 88.70 | 84.00 | 75.33 | 58.09 | 50.22 | 47.20 | 75.38 | 61.96 | 54.68 |
| UberATG-MMF[11] | LiDAR + Image | 89.49 | 87.47 | 79.10 | N/A | N/A | N/A | N/A | N/A | N/A |
| VoxelNet[23] | LiDAR | 89.60 | 84.81 | 78.57 | 65.95 | 61.05 | 56.98 | 74.41 | 52.18 | 50.49 |
| SECOND[19] | LiDAR | 88.07 | 79.37 | 77.95 | 55.10 | 46.27 | 44.76 | 73.67 | 56.04 | 48.78 |
| PointPillars[10] | LiDAR | 88.35 | 86.10 | 79.83 | 58.66 | 50.23 | 47.19 | 79.14 | 62.25 | 56.00 |
| STD[21] | LiDAR | 89.66 | 87.76 | 86.89 | 60.99 | 51.39 | 45.89 | 81.04 | 65.32 | 57.85 |
| Our Point-GNN | LiDAR | 93.11 | 89.17 | 83.9 | 55.36 | 47.07 | 44.61 | 81.17 | 67.28 | 59.67 |
+
+Table 2. The Average Precision (AP) comparison of Bird's Eye View (BEV) object detection on the KITTI test dataset.
+
+Cyclist, we use an learning rate of 0.32 and a decay rate of 0.25 every $400K$ steps. We trained it for $1000K$ steps.
+
+# 4.3. Data Augmentation
+
+To prevent overfitting, we perform data augmentation on the training data. Unlike many approaches [19][10][16][21] that use sophisticated techniques to create new ground truth boxes, we choose a simple scheme of global rotation, global flipping, box translation and vertex jitter. During training, we randomly rotate the point cloud by yaw $\Delta \theta \sim \mathcal{N}(0,\pi /8)$ and then flip the $x$ -axis by a probability of 0.5. After that, each box and points within $110\%$ size of the box randomly shift by $(\Delta x \sim \mathcal{N}(0,3), \Delta y = 0, \Delta z \sim \mathcal{N}(0,3))$ . We use a $10\%$ larger box to select the points to prevent cutting the object. During the translation, we check and avoid collisions among boxes, or between background points and boxes. During graph construction, we use a random voxel downsample to induce vertex jitter.
+
+# 4.3.1 Results
+
+We have submitted our results to the KITTI 3D object detection benchmark and the Bird's Eye View (BEV) object detection benchmark. In Table 1 and Table 2, we compare our results with the existing literature. The KITTI dataset evaluates the Average Precision (AP) on three difficulty levels: Easy, Moderate, and Hard. Our approach achieves the
+
+leading results on the Car detection of Easy and Moderate level and also the Cyclist detection of Moderate and Hard level. Remarkably, on the Easy level BEV Car detection, we surpass the previous state-of-the-art approach by 3.45. Also, we outperform fusion-based algorithms in all categories except for Pedestrian detection. In Figure 3, we provide qualitative detection results on all categories. The results on both the camera image and the point cloud can be visualized. It must be noted that our approach uses only the point cloud data. The camera images are purely used for visual inspection since the test dataset does not provide ground truth labels. As shown in Figure 3, our approach still detects Pedestrian reasonably well despite not achieving the top score. One likely reason why Pedestrian detection is not as good as that for Car and Cyclist is that the vertices are not dense enough to achieve more accurate bounding boxes.
+
+# 4.4. Ablation Study
+
+For the ablation study, we follow the standard practice [10][21][5] and split the training samples into a training split of 3712 samples and a validation split of 3769 samples. We use the training split to train the network and evaluate its accuracy on the validation split. We follow the same protocol and assess the accuracy by $\mathrm{AP}^1$ . Unless explicitly modified for a controlled experiment, the network configu
+
+
+Figure 3. Qualitative results on the KITTI test dataset using Point-GNN. We show the predicted 3D bounding box of Cars (green), Pedestrians (red) and Cyclists (blue) on both the image and the point cloud. Best viewed in color.
+
+ | Box Merge | Box Score | Auto Reg. | BEV AP (Car) | 3D AP (Car) |
| Easy | Moderate | Hard | Easy | Moderate | Hard |
| 1 | - | - | - | 89.11 | 87.14 | 86.18 | 85.46 | 76.80 | 74.89 |
| 2 | - | - | ✓ | 89.03 | 87.43 | 86.39 | 85.58 | 76.98 | 75.69 |
| 3 | ✓ | - | ✓ | 89.33 | 87.83 | 86.63 | 86.59 | 77.49 | 76.35 |
| 4 | - | ✓ | ✓ | 89.60 | 88.02 | 86.97 | 87.40 | 77.90 | 76.75 |
| 5 | ✓ | ✓ | - | 90.03 | 88.27 | 87.12 | 88.16 | 78.40 | 77.49 |
| 6 | ✓ | ✓ | ✓ | 89.82 | 88.31 | 87.16 | 87.89 | 78.34 | 77.38 |
+
+Table 3. Ablation study on the val. split of KITTI data.
+
+ration and training parameters are the same as those in the previous section. We focus on the detection of Car because of its dominant presence in the dataset.
+
+Box merging and scoring. In Table 3, we compare the object detection accuracy with and without box merging and scoring. For the test without box merging, we modify line 11 in Algorithm 1. Instead of taking the median bounding box, we directly take the bounding box with the highest classification score as in standard NMS. For the test without box scoring, we modify lines 12 and 13 in Algorithm 1 to set the highest classification score as the box score. For the test without box merging or scoring, we modify lines 11, 12, and 13, which essentially leads to standard NMS. Row 2 of Table 3 shows a baseline implementation that uses standard NMS with the auto-registration mechanism. As shown in Row 3 and Row 4 of Table 3, both box merging and box scoring outperform the baseline. When combined,
+
+as shown in Row 6 of the table, they further outperform the individual accuracy in every category. Similarly, when not using auto-registration, box merging and box scoring (Row 5) also achieve higher accuracy than standard NMS (Row 1). These results demonstrate the effectiveness of the box scoring and merging.
+
+Auto-registration mechanism. Table 3 also shows the accuracy improvement from the auto-registration mechanism. As shown in Row 2, by using auto-registration alone, we also surpass the baseline without auto-registration (Row 1) on every category of 3D detection and the moderate and hard categories of BEV detection. The performance on the easy category of BEV detection decreases slightly but remains close. Combining the auto-registration mechanism with box merging and scoring (Row 6), we achieve higher accuracy than using the auto-registration alone (Row 2). However, the combination of all three modules (Row 6) does not outperform box merging and score (Row 5). We hypothesize that the regularization likely needs to be tuned after adding the auto-registration branch.
+
+We further investigate the auto-registration mechanism by visualizing the offset $\Delta x$ in Equation 4. We extract $\Delta x$ from different GNN iterations and add them to the vertex position. Figure 4 shows the vertices that output detection results and their positions with added offsets. We observe
+
+
+Figure 4. An example from the val. split showing the vertex locations with added offsets. The blue dot indicates the original position of the vertices. The orange, purple, and red dots indicate the original position with added offsets from the first, the second, and the third graph neural network iterations. Best viewed in color.
+
+| Number of iterations | BEV AP (Car) | 3D AP (Car) |
| Easy | Moderate | Hard | Easy | Moderate | Hard |
| T = 0 | 87.24 | 77.39 | 75.84 | 73.90 | 64.42 | 59.91 |
| T = 1 | 89.83 | 87.67 | 86.30 | 88.00 | 77.89 | 76.14 |
| T = 2 | 90.00 | 88.37 | 87.22 | 88.34 | 78.51 | 77.67 |
| T = 3 | 89.82 | 88.31 | 87.16 | 87.89 | 78.34 | 77.38 |
+
+that the vertex positions with added offsets move towards the center of vehicles. We see such behaviors regardless of the original vertex position. In other words, when the GNN gets deeper, the relative coordinates of the neighbor vertices depend less on the center vertex position but more on the property of the point cloud. The offset $\Delta x$ cancels the translation of the center vertex, and thus reduces the sensitivity to the vertex translation. These qualitative results demonstrate that Equation 4 helps to reduce the translation variance of vertex positions. For more examples, see Supplementary Material.
+
+Point-GNN iterations. Our Point-GNN refine the vertex states iteratively. In Table 4, we study the impact of the number of iterations on the detection accuracy. We train Point-GNNs with $T = 1$ , $T = 2$ , and compare them with $T = 3$ , which is the configuration in Section 4.3.1. Additionally, we train a detector using the initial vertex state directly without any Point-GNN iteration. As shown in Table 4, the initial vertex state alone achieves the lowest accuracy since it only has a small receptive field around the vertex. Without Point-GNN iterations, the local information cannot flow along the graph edges, and therefore its receptive field cannot expand. Even with a single Point-GNN iteration $T = 1$ , the accuracy improves significantly. $T = 2$ has higher accuracy than $T = 3$ , which is likely due to the training difficulty when the neural network goes deeper.
+
+Running-time analysis. The speed of the detection algorithm is important for real-time applications such as autonomous driving. However, multiple factors affect the running time, including algorithm architecture, code optimization and hardware resource. Furthermore, optimizing the
+
+Table 4. Average precision on the KITTI val. split using different number of Point-GNN iterations.
+
+| Number of scanning line | BEV AP (Car) | 3D AP (Car) |
| Easy | Moderate | Hard | Easy | Moderate | Hard |
| 64 | 89.82 | 88.31 | 87.16 | 87.89 | 78.34 | 77.38 |
| 32 | 89.62 | 79.84 | 78.77 | 85.31 | 69.02 | 67.68 |
| 16 | 86.56 | 61.69 | 60.57 | 66.67 | 50.23 | 48.29 |
| 8 | 49.72 | 34.05 | 32.88 | 26.88 | 21.00 | 19.53 |
+
+Table 5. Average precision on downsampled KITTI val. split.
+
+implementation is not the focus of this work. However, a breakdown of the current inference time helps with future optimization. Our implementation is written in Python and uses Tensorflow for GPU computation. We measure the inference time on a desktop with Xeon E5-1630 CPU and GTX 1070 GPU. The average processing time for one sample in the validation split is $643\mathrm{ms}$ . Reading the dataset and running the calibration takes $11.0\%$ time (70ms). Creating the graph representation consumes $18.9\%$ time (121ms). The inference of the GNN takes $56.4\%$ time (363ms). Box merging and scoring take $13.1\%$ time (84ms). See our code for implementation details.
+
+Robustness on LiDAR sparsity. The KITTI dataset collects point cloud data using a 64-scanning-line LiDAR. Such a high-density LiDAR usually leads to a high cost. Therefore, it is of interest to investigate the object detection performance in a less dense point cloud. To mimic a LiDAR system with fewer scanning lines, we downsample the scanning lines in the KITTI validation dataset. Because KITTI gives the point cloud without the scanning line information, we use k-means to cluster the elevation angles of points into 64 clusters, where each cluster represents a LiDAR scanning line. We then downsample the point cloud to 32, 16, 8 scanning lines by skipping scanning lines in between. Our test results on the downsampled KITTI validation split are shown in Table 5. The accuracy for the moderate and hard levels drops fast with downsampled data, while the detection for the easy level data maintains a reasonable accuracy until it is downsampled to 8 scanning lines. This is because that the easy level objects are mostly close to the LiDAR, and thus have a dense point cloud even if the number of scanning lines drops.
+
+# 5. Conclusion
+
+We have presented a graph neural network, named PointGNN, to detect 3D objects from a graph representation of the point cloud. By using a graph representation, we encode the point cloud compactly without mapping to a grid or sampling and grouping repeatedly. Our Point-GNN achieves the leading accuracy in both the 3D and Bird's Eye View object detection of the KITTI benchmark. Our experiments show the proposed auto-registration mechanism reduces transition variance, and the box merging and scoring operation improves the detection accuracy. In the future, we plan to optimize the inference speed and also fuse the inputs from other sensors.
+
+# References
+
+[1] Jon L. Bentley, Donald F. Stanat, and E.Hollins Williams. The complexity of finding fixed-radius near neighbors. Information Processing Letters, 6(6):209 - 212, 1977. 3
+[2] Yin Bi, Aaron Chadha, Alhabib Abbas, Eirina Bourtsovatze, and Yiannis Andreopoulos. Graph-based object classification for neuromorphic vision sensing. In The IEEE International Conference on Computer Vision (ICCV), October 2019. 1, 2
+[3] R. Q. Charles, H. Su, M. Kaichun, and L. J. Guibas. Pointnet: Deep learning on point sets for 3d classification and segmentation. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 77-85, July 2017. 1, 2, 4
+[4] X. Chen, H. Ma, J. Wan, B. Li, and T. Xia. Multi-view 3d object detection network for autonomous driving. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 6526-6534, July 2017. 2
+[5] Yilun Chen, Shu Liu, Xiaoyong Shen, and Jiaya Jia. Fast point r-cnn. In The IEEE International Conference on Computer Vision (ICCV), October 2019. 6
+[6] Andreas Geiger, Philip Lenz, and Raquel Urtasun. Are we ready for autonomous driving? the kitti vision benchmark suite. In Conference on Computer Vision and Pattern Recognition (CVPR), 2012. 5
+[7] Peter J. Huber. Robust estimation of a location parameter. Ann. Math. Statist., 35(1):73-101, 03 1964. 4
+[8] J. Ku, M. Mozifian, J. Lee, A. Harakeh, and S. 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, Oct 2018. 6
+[9] Loic Landrieu and Martin Simonovsky. Large-scale point cloud semantic segmentation with superpoint graphs. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018. 1, 2
+[10] Alex H. Lang, Sourabh Vora, Holger Caesar, Lubing Zhou, Jiong Yang, and Oscar Beijbom. Pointpillars: Fast encoders for object detection from point clouds. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 1, 2, 3, 5, 6
+[11] Ming Liang, Bin Yang, Yun Chen, Rui Hu, and Raquel Urtasun. Multi-task multi-sensor fusion for 3d object detection. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2, 6
+[12] Ming Liang, Bin Yang, Shenlong Wang, and Raquel Urtasun. Deep continuous fusion for multi-sensor 3d object detection. In The European Conference on Computer Vision (ECCV), September 2018. 6
+[13] C. R. Qi, W. Liu, C. Wu, H. Su, and L. J. Guibas. Frustum pointnets for 3d object detection from rgb-d data. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 918-927, June 2018. 2, 6
+[14] Charles R Qi, Li Yi, Hao Su, and Leonidas J Guibas. Point-net++: Deep hierarchical feature learning on point sets in a metric space. arXiv preprint arXiv:1706.02413, 2017. 2
+
+[15] X. Qi, R. Liao, J. Jia, S. Fidler, and R. Urtasun. 3d graph neural networks for rgbd semantic segmentation. In 2017 IEEE International Conference on Computer Vision (ICCV), pages 5209-5218, Oct 2017. 1, 2
+[16] Shaoshuai Shi, Xiaogang Wang, and Hongsheng Li. Pointrcnn: 3d object proposal generation and detection from point cloud. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 1, 2, 6
+[17] 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 Transactions on Graphics (TOG), 2019. 1, 2
+[18] Zonghan Wu, Shirui Pan, Fengwen Chen, Guodong Long, Chengqi Zhang, and Philip S. Yu. A Comprehensive Survey on Graph Neural Networks. arXiv e-prints, page arXiv:1901.00596, Jan 2019. 2
+[19] Yan Yan, Yuxing Mao, and Bo Li. Second: Sparsely embedded convolutional detection. Sensors, 18(10), 2018. 2, 5, 6
+[20] B. Yang, W. Luo, and R. Urtasun. Pixor: Real-time 3d object detection from point clouds. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 7652-7660, June 2018. 2
+[21] Zetong Yang, Yanan Sun, Shu Liu, Xiaoyong Shen, and Jiaya Jia. Std: Sparse-to-dense 3d object detector for point cloud. In The IEEE International Conference on Computer Vision (ICCV), October 2019. 1, 2, 5, 6
+[22] Manzil Zaheer, Satwik Kottur, Siamak Ravanbakhsh, Barnabas Poczos, Ruslan R Salakhutdinov, and Alexander J Smola. Deep sets. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett, editors, Advances in Neural Information Processing Systems 30, pages 3391-3401. Curran Associates, Inc., 2017. 1, 2
+[23] Y. Zhou and O. Tuzel. Voxelnet: End-to-end learning for point cloud based 3d object detection. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4490-4499, June 2018. 2, 3, 5, 6
\ No newline at end of file
diff --git a/pointgnngraphneuralnetworkfor3dobjectdetectioninapointcloud/images.zip b/pointgnngraphneuralnetworkfor3dobjectdetectioninapointcloud/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..def0720bb7206e4c369ca208570d032bc18fd2e8
--- /dev/null
+++ b/pointgnngraphneuralnetworkfor3dobjectdetectioninapointcloud/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0fffad068dfceedcd41892d65fc08a9870b14cf48b2bef1388a78ad5afeb9dab
+size 756927
diff --git a/pointgnngraphneuralnetworkfor3dobjectdetectioninapointcloud/layout.json b/pointgnngraphneuralnetworkfor3dobjectdetectioninapointcloud/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..a5457f17c0173554695394ddbed8c001f9820a17
--- /dev/null
+++ b/pointgnngraphneuralnetworkfor3dobjectdetectioninapointcloud/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f1c3221f6126b697a31aaf755107e44e3e955e364ec9e313694bd337c4840416
+size 397930
diff --git a/pointgroupdualsetpointgroupingfor3dinstancesegmentation/7f5b952d-686c-40e1-a47f-a86031935b95_content_list.json b/pointgroupdualsetpointgroupingfor3dinstancesegmentation/7f5b952d-686c-40e1-a47f-a86031935b95_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..052bcd21bff31ce926c4fb24c4d25a474dd1b92e
--- /dev/null
+++ b/pointgroupdualsetpointgroupingfor3dinstancesegmentation/7f5b952d-686c-40e1-a47f-a86031935b95_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fa049532d6c32e107ca74c36f457df7eb42fe5dac49994798288ebbb193bf8e5
+size 89352
diff --git a/pointgroupdualsetpointgroupingfor3dinstancesegmentation/7f5b952d-686c-40e1-a47f-a86031935b95_model.json b/pointgroupdualsetpointgroupingfor3dinstancesegmentation/7f5b952d-686c-40e1-a47f-a86031935b95_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..b4ad36dd82f583d8a1cd301d41ca50ab863948d4
--- /dev/null
+++ b/pointgroupdualsetpointgroupingfor3dinstancesegmentation/7f5b952d-686c-40e1-a47f-a86031935b95_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ffa067d60c4536d160671690ec7213c5844fc17512c0ef71fcee42322fe38659
+size 110076
diff --git a/pointgroupdualsetpointgroupingfor3dinstancesegmentation/7f5b952d-686c-40e1-a47f-a86031935b95_origin.pdf b/pointgroupdualsetpointgroupingfor3dinstancesegmentation/7f5b952d-686c-40e1-a47f-a86031935b95_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..270b4cf76e55592d0d0fb5ac2e26221ea09b33a1
--- /dev/null
+++ b/pointgroupdualsetpointgroupingfor3dinstancesegmentation/7f5b952d-686c-40e1-a47f-a86031935b95_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0f13b5fd5e1d8bf03eb0ebb86134d435af2f54971f41c4e866a214e22db920c9
+size 3965197
diff --git a/pointgroupdualsetpointgroupingfor3dinstancesegmentation/full.md b/pointgroupdualsetpointgroupingfor3dinstancesegmentation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..08b51aea8b2eb09142802efa0979b377ba5d75ca
--- /dev/null
+++ b/pointgroupdualsetpointgroupingfor3dinstancesegmentation/full.md
@@ -0,0 +1,399 @@
+# PointGroup: Dual-Set Point Grouping for 3D Instance Segmentation
+
+Li Jiang $^{1*}$ Hengshuang Zhao $^{1*}$ Shaoshuai Shi $^{1}$ Shu Liu $^{2}$ Chi-Wing Fu $^{1}$ Jiaya Jia $^{1,2}$ $^{1}$ The Chinese University of Hong Kong $^{2}$ SmartMore
+
+{lijiang, hszhao, cwfu, leojia}@cse.cuhk.edu.hk ssshi@ee.cuhk.edu.hk sliu@smartmore.com
+
+# Abstract
+
+Instance segmentation is an important task for scene understanding. Compared to the fully-developed 2D, 3D instance segmentation for point clouds have much room to improve. In this paper, we present PointGroup, a new end-to-end bottom-up architecture, specifically focused on better grouping the points by exploring the void space between objects. We design a two-branch network to extract point features and predict semantic labels and offsets, for shifting each point towards its respective instance centroid. A clustering component is followed to utilize both the original and offset-shifted point coordinate sets, taking advantage of their complementary strength. Further, we formulate the ScoreNet to evaluate the candidate instances, followed by the Non-Maximum Suppression (NMS) to remove duplicates. We conduct extensive experiments on two challenging datasets, ScanNet v2 and S3DIS, on which our method achieves the highest performance, $63.6\%$ and $64.0\%$ , compared to $54.9\%$ and $54.4\%$ achieved by former best solutions in terms of mAP with IoU threshold 0.5.
+
+# 1. Introduction
+
+Instance segmentation is a fundamental and challenging task that requires to predict not only the semantic labels but also the instance IDs for every object in the scene. It has drawn much interest recently, given the potential applications for both outdoor and indoor environment regarding autonomous driving, robot navigation, to name a few.
+
+Convolutional neural networks has boosted the performance of 2D instance segmentation [10, 17, 29, 5]. However, given unordered and unstructured 3D point clouds, 2D methods cannot be directly extended to 3D points and make the latter remains very challenging [49, 19, 53]. In this paper, we address the challenging 3D point cloud instance segmentation task by exploring the void space between 3D objects, along with the semantic information, to better segment individual objects.
+
+
+Input
+
+
+Instance Prediction
+Figure 1: Example of 3D instance segmentation by our method from ScanNet v2. Instances are in different colors.
+
+Specifically, we design a bottom-up end-to-end framework named PointGroup for 3D instance segmentation, with the key target of better grouping of points. Our pipeline is to first extract per-point semantic prediction and conduct efficient point grouping to harvest candidate object instances. We utilize a semantic segmentation backbone to extract descriptive features and predict a semantic label for each point. Parallel to the segmentation head, we adopt an offset branch to learn a relative offset to bring each point to its respective ground-truth instance centroid. By this means, we shift points of the same object instance towards the same centroid and gather them closer, thus enabling better grouping of points into objects and separation of nearby objects of the same class.
+
+With the predicted semantic labels and offsets, we then adopt a simple and yet effective algorithm to group points into clusters. For each point, we take its coordinates as a reference, group it with nearby points of the same label, and expand the group progressively. Importantly, we consider two coordinate sets in two separate passes – the original point positions and those shifted by the predicted offsets. We call the process "Dual-Set Point Grouping." The two types of results complement each other for accomplishing better performance. Further, we design the ScoreNet to evaluate and pick candidate groups. Non-maximum suppression is finally adopted to remove duplicate predictions.
+
+We conduct extensive experiments on the challenging ScanNet v2 [8] and S3DIS [2] datasets. PointGroup achieves the highest accuracy on both of them. For Scan-
+
+Net v2, our performance on the test set is $63.6\%$ in terms of $\mathrm{mAP}_{50}$ , which is $8.7\%$ higher than the former best solution [23]. For S3DIS, we accomplish $64.0\% \mathrm{mAP}_{50}$ , $69.6\% \mathrm{mPrec}_{50}$ , and $69.2\% \mathrm{mRec}_{50}$ , outperforming all previous approaches by a large margin.
+
+In summary, our contribution is threefold.
+
+- We propose a bottom-up 3D instance segmentation framework, named PointGroup, to deal with the challenging 3D instance segmentation task.
+- We propose a point clustering method based on dual coordinate sets, i.e., the original and shifted sets. Along with the new ScoreNet, object instances can be better segmented out.
+- The proposed method achieves state-of-the-art results on various challenging datasets, demonstrating its effectiveness and generality.
+
+# 2. Related Work
+
+Deep Learning in 3D Scenes 2D image pixels are in regular grids, thus can be naturally processed by convolutional neural networks [24, 22, 42, 46, 18]. In contrast, 3D point clouds are unordered and scattered in 3D space, causing extra difficulty in point cloud scene understanding [37, 41].
+
+Several approaches handle data irregularity. The MultiLayer Perception (MLP)-style networks, e.g., PointNet [35, 37], directly apply MLP together with max-pooling to grab local and global structures in 3D. The learned features are then used for point cloud classification and segmentation. Other approaches [51, 48, 57, 52, 21] enhance feature learning on local regions by dynamic context aggregation and attention modules.
+
+Besides working directly on the irregular input, several approaches transform the unordered point set to an ordered one to apply the convolution operations. PointCNN [26] learns the order transformation for points reweighting and permutation. Some other approaches [30, 43, 47, 39, 13, 7] align and voxelize point cloud to produce regular 3D ordered tensors for 3D convolution. Multi-view strategies [36, 44, 45] are also widely explored, where 3D point clouds are projected into 2D views for view-domain processing.
+
+2D Instance Segmentation Instance segmentation aims to find the foreground objects in a scene and mark each object instance with a unique label. Overall, there are two major lines. The first is detection- or top-down-based, which directly detects object instances. Early works [14, 15] use proposals from MCG [1] for feature extraction. Methods of [9, 10, 16] adopt pooled features for faster processing. Mask R-CNN [17] is widely known as an effective approach with the extra segmentation head in the detection framework, like Faster R-CNN [38]. Further works [29, 6, 5] enhance the feature learning for instance segmentation.
+
+The other line is segmentation- or bottom-up-based, where pixel-level semantic segmentation is performed followed by grouping of pixels to find object instances. Zhang et al. [56, 55] utilize MRF for local patch merging. Arnab and Torr [3] use CRF. Bai and Urtasun [4] combine the classical watershed transform and deep learning to produce energy maps to distinguish among individual instances. Liu et al. [28] employ a sequence of neural networks to construct objects from pixels.
+
+3D Instance Segmentation With available large-scale 3D labeled datasets [8, 2], instance segmentation of 3D point clouds becomes important. Similar to 2D cases, current 3D methods can also be grouped into two lines.
+
+Detection-based methods extract 3D bounding boxes, and inside each box, utilize a mask learning branch to predict the object mask. Yang et al. [53] present the 3D-BoNet that directly predicts 3D bounding boxes and point-level masks simultaneously per instance. Li et al. [54] propose GSPN, which takes an analysis-by-synthesis strategy to generate proposals for instance segmentation. Hou et al. [19] combine multi-view RGB input with 3D geometry to jointly infer object bounding boxes and corresponding instance masks in an end-to-end manner.
+
+Contrarily, segmentation-based methods predict the semantic labels, and utilize point embedding to group points into object instances. Wang et al. [49] design SGPN by clustering points based on the semantic segmentation predicted by backbones such as PointNet++. Liu and Furukawa [27] predict both the semantic labels and affinity between adjacent voxels in different scales to group instances. Phm et al. [33] develop a multi-task learning framework with a multi-value CRF model to jointly reason over both the semantic and instance labels. Wang et al. [50] learn a semantic-aware point-level instance embedding to benefit learning of both the semantic and instance tasks. Lahoud et al. [23] introduce a multi-task learning strategy where points of the same instance are grouped closer and different clusters are more separated from each other.
+
+Different from the above methods, we present a new approach named PointGroup to tackle the 3D instance segmentation task. Our proposed model mainly contains two parts - that is, (i) learning to group points into different clusters based on their semantic predictions in both the original coordinate space and shifted coordinate space, and (ii) ScoreNet to learn to predict the score for selecting proper clusters. The overall framework is differentiable. It can be jointly optimized and trained in an end-to-end manner.
+
+# 3. Our Method
+
+# 3.1. Architecture Overview
+
+To obtain instance-level segmentation labels for 3D objects, we consider two problems. The first is to separate
+
+
+Figure 2: Illustration of the network architecture. It has three main components - (a) backbone network, (b) clustering part, and (c) ScoreNet. First, we use the backbone network to extract per-point features $\mathbf{F}$ , followed by two branches to produce offset vectors $\mathbf{O} = \{o_i\}$ and semantic labels $\mathbf{S} = \{s_i\}$ . Then, we introduce a clustering method to group points into candidate clusters on dual coordinate sets, i.e., the original set $\mathbf{P}$ and the shifted $\mathbf{Q}$ , which produce $\mathbf{C}^p$ and $\mathbf{C}^q$ respectively. Lastly, we use ScoreNet to produce cluster scores $\mathbf{S}_c$ . The set of color $\mathbf{f} = \{f_i\}$ serves as the input feature to the backbone.
+
+the contents in the 3D space into individual objects, and the second is to determine the semantic label of each object. Unlike 2D images, there is no view-occlusion problem in the 3D scenes, and objects scattered in 3D are usually naturally separated by void space. Hence, we propose leveraging these characteristics of 3D objects to group 3D content into object instances according to the semantic information. Fig. 2 overviews the architecture of our approach, which has three main components, i.e., the backbone, the point clustering part, and ScoreNet.
+
+The input to the backbone network (Fig. 2(a)) is a point set $\mathbb{P}$ of $N$ points. Each point has a color $f_{i} = (r_{i}, g_{i}, b_{i})$ and 3D coordinates $p_{i} = (x_{i}, y_{i}, z_{i})$ , where $i \in \{1, \dots, N\}$ . The backbone extracts feature $F_{i}$ for each point. We denote the output feature of the backbone as $\mathbf{F} = \{F_{i}\} \in \mathbb{R}^{N \times K}$ , where $K$ is the number of channels. We then feed $\mathbf{F}$ into two branches, one for semantic segmentation and the other for predicting a per-point offset vector to shift each point towards the centroid of its respective object instance. Let $s_{i}$ and $o_{i} = (\Delta x_{i}, \Delta y_{i}, \Delta z_{i})$ denote the predicted semantic label and offset vector of point $i$ , respectively.
+
+After obtaining the semantic labels, we begin to group points into instance clusters based on the void space between objects. In the point clustering part (Fig. 2(b)), we introduce a clustering method to group points that are close to each other into the same cluster, if they have the same semantic label. However, clustering directly based on the point coordinate set $\mathbf{P} = \{p_i\}$ may fail to separate same-category objects that are close to each other in the 3D space and mis-group them, for example, two pictures that hang side-by-side on the wall.
+
+Thus, we use the learned offset $o_i$ to shift point $i$ towards its respective instance centroid and obtain the shifted coordinates $q_i = p_i + o_i \in \mathbb{R}^3$ . For points belonging to the same object instance, different from $p_i$ , the shifted coordinates $q_i$
+
+clutter around the same centroid. So by clustering based on shifted coordinate set $\mathbf{Q} = \{q_i\}$ , we separate nearby objects better, even though they have the same semantic labels.
+
+However, for points near object boundary, the predicted offsets may not be accurate. So, our clustering algorithm employs "dual" point coordinate sets, i.e., the original coordinates $\mathbf{P}$ and the shifted coordinates $\mathbf{Q}$ . We denote the clustering results $\mathbf{C}$ as the union of $\mathbf{C}^p = \{C_1^p,\dots,C_{M_p}^p\}$ and $\mathbf{C}^q = \{C_1^q,\dots,C_{M_q}^q\}$ , which are the clusters discovered based on $\mathbf{P}$ and $\mathbf{Q}$ , respectively. Here, $M_p$ and $M_q$ denote the number of clusters in $\mathbf{C}^p$ and $\mathbf{C}^q$ , respectively, and $M = M_p + M_q$ denotes the total.
+
+Lastly, we construct the ScoreNet (Fig. 2(c)) to process the proposed point clusters $\mathbf{C} = \mathbf{C}^p \cup \mathbf{C}^q$ and produce a score per cluster proposal. NMS is then applied to these proposals with the scores to generate final instance prediction. In the following, we denote the instance predictions as $\mathbf{G} = \{G_1, \dots, G_{M_{pred}}\} \subseteq \mathbf{C}$ and the ground-truth instances as $\mathbf{I} = \{I_1, \dots, I_{M_{gt}}\}$ . Here, $G_i$ and $I_i$ are subsets of $\mathbb{P}$ , while $M_{pred}$ and $M_{gt}$ denote the number of instances in $\mathbf{G}$ and $\mathbf{I}$ , respectively. Also, we use $N_i^I$ and $N_i^G$ to represent the number of points in $I_i$ and $G_i$ , respectively.
+
+# 3.2. Backbone Network
+
+We may use any point feature extraction network to serve as the backbone network (Fig. 2(a)). In our implementation, we voxelize the points and follow the procedure of [13] to construct a U-Net [25, 40] with Submanifold Sparse Convolution (SSC) and Sparse Convolution (SC). We then recover points from voxels to obtain the point-wise features. The contextual and geometric information is well extracted by the U-Net, which provides discriminative point-wise features $\mathbf{F}$ for subsequent processing. Afterwards, we construct two branches based on the point-wise features $\mathbf{F}$ to predict semantic label $s_i$ and offset vector $o_i$ for each point.
+
+Semantic Segmentation Branch We apply an MLP to $\mathbf{F}$ to produce semantic scores $\mathbf{SC} = \{sc_1, \dots, sc_N\} \in \mathbb{R}^{N \times N_{class}}$ for the $N$ points over the $N_{class}$ classes, and regularize the results by a cross entropy loss $L_{sem}$ . The predicted semantic label $s_i$ for point $i$ is the class with the maximum score, i.e., $s_i = \mathrm{argmax}(sc_i)$ .
+
+Offset Prediction Branch The offset branch encodes $\mathbf{F}$ to produce $N$ offset vectors $\mathbf{O} = \{o_1,\dots,o_N\} \in \mathbb{R}^{N\times 3}$ for the $N$ points. For points belonging to the same instance, we constrain their learned offsets by an $L_{1}$ regression loss as
+
+$$
+L _ {o. r e g} = \frac {1}{\sum_ {i} m _ {i}} \sum_ {i} | | o _ {i} - (\hat {c} _ {i} - p _ {i}) | | \cdot m _ {i}, \tag {1}
+$$
+
+where $\mathbf{m} = \{m_1,\dots,m_N\}$ is a binary mask. $m_{i} = 1$ if point $i$ is on an instance and $m_{i} = 0$ otherwise. $\hat{c}_i$ is the centroid of the instance that point $i$ belongs to, i.e.,
+
+$$
+\hat {c} _ {i} = \frac {1}{N _ {g (i)} ^ {I}} \sum_ {j \in I _ {g (i)}} p _ {j}, \tag {2}
+$$
+
+where $g(i)$ maps point $i$ to the index of its corresponding ground-truth instance, i.e., the instance that contains point $i$ . $N_{g(i)}^{I}$ is the number of points in instance $I_{g(i)}$ .
+
+The above mechanism looks similar to the vote generation strategy in VoteNet [34]. However, rather than regressing the bounding boxes based on the votes of a few subsampled seed points, we predict an offset vector per point to gather the instance points around a common instance centroid, in order to better cluster relevant points into the same instance. Also, we observe that the distances from points to their instance centroids usually have small values (0 to $1\mathrm{m}$ ). Fig. 3b gives the statistical analysis on the distribution of such distances in the ScanNet dataset. Considering diverse object sizes of different categories, we find it is hard for the network to regress precise offsets, particularly for boundary points of large-size objects, since these points are relatively far from the instance centroids. To address this issue, we formulate a direction loss to constrain the direction of predicted offset vectors. We follow [23] to define the loss as a means of minus cosine similarities, i.e.,
+
+$$
+L _ {o \_ d i r} = - \frac {1}{\sum_ {i} m _ {i}} \sum_ {i} \frac {o _ {i}}{| | o _ {i} | | _ {2}} \cdot \frac {\hat {c} _ {i} - p _ {i}}{| | \hat {c} _ {i} - p _ {i} | | _ {2}} \cdot m _ {i}. (3)
+$$
+
+Such loss is irrelevant to the offset vector norm and ensures that the points move towards their instance centroids.
+
+# 3.3. Clustering Algorithm
+
+Given the predicted semantic labels and offset vectors, we are ready to group the input points into instances. To this end, we introduce a simple and yet effective clustering algorithm. It is detailed in Algorithm 1.
+
+Algorithm 1 Clustering algorithm. $N$ is the number of points. $M$ is the number of clusters found by the algorithm.
+
+Input: clustering radius $r$ cluster point number threshold $N_{\theta}$ coordinates $\mathbf{X} = \{x_1,x_2,\dots,x_N\} \in \mathbb{R}^{N\times 3}$ ; and semantic labels $\mathbf{S} = \{s_1,\ldots ,s_N\} \in \mathbb{R}^N$
+Output: clusters $\mathbf{C} = \{C_1,\dots,C_M\}$ .
+1: initialize an array $v$ (visited) of length $N$ with all zeros
+2: initialize an empty cluster set C
+3: for $i = 1$ to $N$ do
+4: if $s_i$ is a stuff class (e.g., wall) then
+5: $v_{i} = 1$
+6: for $i = 1$ to $N$ do
+7: if $v_{i} = = 0$ then
+8: initialize an empty queue $Q$
+9: initialize an empty cluster $C$
+10: $v_{i} = 1$ . $Q.$ enqueue(i); add i to $C$
+11: while $Q$ is not empty do
+12: $k = Q.$ .dequeue()
+13: for $j\in [1,N]$ with $\left|\left|x_j - x_k\right|\right|_2 < r$ do
+14: if $s_j = = s_k$ and $v_{j} = = 0$ then
+15: $v_{j} = 1$ . $Q.$ enqueue(j); add j to $C$
+16: if number of points in $C > N_{\theta}$ then
+17: add C to C
+18: return C
+
+The core step of our algorithm is that for point $i$ , we get points within the ball of radius $r$ centered at $x_{i}$ (the coordinate of point $i$ ) and group points with the same semantic labels as point $i$ into the same cluster. Here, $r$ serves as a spatial constraint in the clustering, so that two intra-category objects at a distance larger than $r$ are not grouped. Here, we use the breadth-first search to group points of the same instance into a cluster. In our implementation, for points in the scene, neighboring points within an $r$ -sphere can be found in parallel in advance of the clustering to boost speed.
+
+As presented in Sec. 3.1, we apply the clustering algorithm separately on the "dual" set, i.e., the original coordinate set $\mathbf{P}$ and the shifted set $\mathbf{Q}$ , to produce cluster sets $\mathbf{C}^p$ and $\mathbf{C}^q$ . Clustering on $\mathbf{P}$ may mis-group nearby objects of the same class, while clustering on $\mathbf{Q}$ does not have this problem but may fail to handle the boundary points of large objects. We collectively employ $\mathbf{P}$ and $\mathbf{Q}$ to find candidate clusters due to their complementary properties. Analysis on the clustering performance of using $\mathbf{P}$ alone, $\mathbf{Q}$ alone, or both $\mathbf{P}$ and $\mathbf{Q}$ is presented in Sec. 4.2.2.
+
+# 3.4.ScoreNet
+
+The input to ScoreNet is the set of candidate clusters $\mathbf{C} = \{C_1, \dots, C_M\}$ , where $M$ denotes the total number of candidate clusters, and $C_i$ denotes the $i$ -th cluster. Also, we use $N_i$ to represent the number of points in $C_i$ . The goal of
+
+
+(a) ScoreNet
+
+
+(b) Distance Distribution
+Figure 3: (a) Structure of ScoreNet. (b) Distribution of distances from points to their respective instance centroids in the ScanNet dataset [8] (including the training and validation sets).
+
+ScoreNet is to predict a score for each cluster to indicate the quality of the associated cluster proposal, so that we could precisely reserve the better clusters in NMS and thus combine strength of $\mathbf{C}^p$ and $\mathbf{C}^q$ .
+
+To start, for each cluster, we gather the point features from $\mathbf{F} \in \mathbb{R}^{N \times K}$ (the features extracted by the backbone) and form $\mathbf{F}_{C_i} = \{F_{h(C_i,1)}, \dots, F_{h(C_i,N_i)}\}$ for cluster $C_i$ , where $h$ maps the point index in $C_i$ to corresponding point index in $\mathbb{P}$ . Similarly, we express the coordinates for points in $C_i$ as $\mathbf{P}_{C_i} = \{p_{h(C_i,1)}, \dots, p_{h(C_i,N_i)}\}$ .
+
+To better aggregate the cluster information, we take $\mathbf{F}_{C_i}$ and $\mathbf{P}_{C_i}$ as the initial features and coordinates, and voxelize the clusters the same way as we do at the beginning of the backbone network. The feature for each voxel is average-pooled from the initial features of points in that voxel. We then feed them into a small U-Net with SSC and SC to further encode the features. A cluster-aware max-pooling is then followed to produce a single cluster feature vector $f_{C_i} \in \mathbb{R}^{1 \times K_c}$ per cluster. The final cluster scores $\mathbf{S}_c = \{s_1^c, \dots, s_M^c\} \in \mathbb{R}^M$ are obtained as
+
+$$
+\mathbf {S} _ {c} = \operatorname {S i g m o i d} (\operatorname {M L P} \left(\mathbf {F} _ {C}\right)), \tag {4}
+$$
+
+where $\mathbf{F}_C = \{f_{C_1},\dots,f_{C_M}\} \in \mathbb{R}^{M\times K_c}$ . The structure of ScoreNet is illustrated in Fig. 3a.
+
+Inspired by [25, 20], to reflect the quality of clusters in the scores, we use a soft label to replace a binary $0/1$ label to supervise the predicted cluster score as
+
+$$
+\hat {s} _ {i} ^ {c} = \left\{ \begin{array}{l l} 0 & i o u _ {i} < \theta_ {l} \\ 1 & i o u _ {i} > \theta_ {h}, \\ \frac {1}{\theta_ {h} - \theta_ {l}} \cdot (i o u _ {i} - \theta_ {l}) & o t h e r w i s e \end{array} \right. \tag {5}
+$$
+
+where $\theta_{l}$ and $\theta_{h}$ are empirically set to 0.25 and 0.75 respectively in our implementation, and $iou_{i}$ is the largest Intersection over Union (IoU) between cluster $C_i$ and ground-truth instances as
+
+$$
+i o u _ {i} = \max \left(\left\{\operatorname {I o U} \left(C _ {i}, I _ {j}\right) \mid I _ {j} \in \mathbf {I} \right\}\right). \tag {6}
+$$
+
+We then use the binary cross-entropy loss as our score loss,
+
+which is formulated as
+
+$$
+L _ {c \text {s c o r e}} = - \frac {1}{M} \sum_ {i = 1} ^ {M} \left(\hat {s} _ {i} ^ {c} \log \left(s _ {i} ^ {c}\right) + \left(1 - \hat {s} _ {i} ^ {c}\right) \log \left(1 - s _ {i} ^ {c}\right)\right). \tag {7}
+$$
+
+# 3.5. Network Training and Inference
+
+Training We train the whole framework in an end-to-end manner with the total loss as
+
+$$
+L = L _ {s e m} + L _ {o \_ d i r} + L _ {o \_ r e g} + L _ {c \_ s c o r e}. \tag {8}
+$$
+
+Inference In the inference process, we perform NMS on clusters $\mathbf{C}$ with predicted scores $\mathbf{S}_c$ to obtain the final instance predictions $\mathbf{G} \subseteq \mathbf{C}$ . The IoU threshold is empirically set as 0.3. Since we cluster based on the semantic information, the semantic label of a cluster is exactly the category that the cluster points belong to.
+
+# 4. Experiments
+
+Our proposed PointGroup architecture is effective for instance segmentation of 3D point clouds. To demonstrate its effectiveness, we conduct extensive experiments on two challenging point cloud datasets, ScanNet v2 [8] and S3DIS [2]. On both of them, we achieve state-of-the-art performance on the 3D instance segmentation task.
+
+# 4.1. Experimental Setting
+
+Datasets The ScanNet v2 [8] dataset contains 1,613 scans with 3D object instance annotations. The dataset is split into training, validation, and testing sets, each with 1,201, 312, and 100 scans, respectively. 18 object categories are used for instance segmentation evaluation. For ablation studies, we train on the training set and report results on the validation set. To compare with other approaches, we train on the training set and report results on the testing set.
+
+The S3DIS [2] dataset has 3D scans across six areas with 271 scenes in total. Each point is assigned one label out of 13 semantic classes. All the 13 classes are used in instance
+
+| Method | Avg AP50 | bathroom | bed | bookshelc | cabinet | chair | counter | curtain | desk | door | otherfu. | picture | refriger. | s. curtain | sink | sofa | table | toilet | window |
| SGPN [49] | 0.143 | 0.208 | 0.390 | 0.169 | 0.065 | 0.275 | 0.029 | 0.069 | 0.000 | 0.087 | 0.043 | 0.014 | 0.027 | 0.000 | 0.112 | 0.351 | 0.168 | 0.438 | 0.138 |
| 3D-BEVIS [11] | 0.248 | 0.667 | 0.566 | 0.076 | 0.035 | 0.394 | 0.027 | 0.035 | 0.098 | 0.099 | 0.030 | 0.025 | 0.098 | 0.375 | 0.126 | 0.604 | 0.181 | 0.854 | 0.171 |
| R-PointNet [54] | 0.306 | 0.500 | 0.405 | 0.311 | 0.348 | 0.589 | 0.054 | 0.068 | 0.126 | 0.283 | 0.290 | 0.028 | 0.219 | 0.214 | 0.331 | 0.396 | 0.275 | 0.821 | 0.245 |
| DPC [12] | 0.355 | 0.500 | 0.517 | 0.467 | 0.228 | 0.422 | 0.133 | 0.405 | 0.111 | 0.205 | 0.241 | 0.075 | 0.233 | 0.306 | 0.445 | 0.439 | 0.457 | 0.974 | 0.23 |
| 3D-SIS [19] | 0.382 | 1.000 | 0.432 | 0.245 | 0.190 | 0.577 | 0.013 | 0.263 | 0.033 | 0.320 | 0.240 | 0.075 | 0.422 | 0.857 | 0.117 | 0.699 | 0.271 | 0.883 | 0.235 |
| MASC [27] | 0.447 | 0.528 | 0.555 | 0.381 | 0.382 | 0.633 | 0.002 | 0.509 | 0.260 | 0.361 | 0.432 | 0.327 | 0.451 | 0.571 | 0.367 | 0.639 | 0.386 | 0.980 | 0.276 |
| PanopticFusion [32] | 0.478 | 0.667 | 0.712 | 0.595 | 0.259 | 0.550 | 0.000 | 0.613 | 0.175 | 0.250 | 0.434 | 0.437 | 0.411 | 0.857 | 0.485 | 0.591 | 0.267 | 0.944 | 0.35 |
| 3D-BoNet [53] | 0.488 | 1.000 | 0.672 | 0.590 | 0.301 | 0.484 | 0.098 | 0.620 | 0.306 | 0.341 | 0.259 | 0.125 | 0.434 | 0.796 | 0.402 | 0.499 | 0.513 | 0.909 | 0.439 |
| MTML [23] | 0.549 | 1.000 | 0.807 | 0.588 | 0.327 | 0.647 | 0.004 | 0.815 | 0.180 | 0.418 | 0.364 | 0.182 | 0.445 | 1.000 | 0.442 | 0.688 | 0.571 | 1.000 | 0.396 |
| PointGroup (Ours) | 0.636 | 1.000 | 0.765 | 0.624 | 0.505 | 0.797 | 0.116 | 0.696 | 0.384 | 0.441 | 0.559 | 0.476 | 0.596 | 1.000 | 0.666 | 0.756 | 0.556 | 0.997 | 0.513 |
+
+Table 1: 3D instance segmentation results on ScanNet v2 testing set with $\mathrm{AP}_{50}$ scores. Our proposed PointGroup approach yields the highest average $\mathrm{AP}_{50}$ , outperforming all state-of-the-art methods by a large margin. All numbers are from the ScanNet benchmark on 15/11/2019.
+
+evaluation. Overall, we evaluate our model under two settings: (i) Area 5 is adopted for testing, whereas all the others are used for training; and (ii) six-fold cross validation that each area is treated as the testing set once.
+
+Evaluation Metrics We use the widely-adopted evaluation metric – mean average precision (mAP). Specifically, $\mathrm{AP}_{25}$ and $\mathrm{AP}_{50}$ denote the AP scores with IoU threshold set to $25\%$ and $50\%$ , respectively. Also, AP averages the scores with IoU threshold set from $50\%$ to $95\%$ , with a step size of $5\%$ . Besides, approaches of [50, 53] reported performance of mean precision (mPrec) and mean recall (mRec) on S3DIS, we also include these results for comparison.
+
+Implementation Details We set the voxel size as $0.02\mathrm{m}$ . In the clustering part, we set the clustering radius $r$ as $0.03\mathrm{m}$ and the minimum cluster point number $N_{\theta}$ as 50. In the training process, we use the Adam solver with a base learning rate of 0.001. For each scene in the dataset, we set the maximum number of points as $250\mathrm{k}$ , due to GPU memory limit. If the scene has more than $250\mathrm{k}$ points, we randomly crop part of the scene and gradually adjust the crop size, according to the number of points in the cropped area. During the testing process, we feed the whole scene into the network without cropping.
+
+Specifically, scenes in S3DIS have high point density. Some scenes are even with millions of points. Hence, for each S3DIS scene, we randomly sub-sample $\sim 1/4$ points before each cropping.
+
+# 4.2. Evaluation on ScanNet
+
+# 4.2.1 Benchmark Results
+
+We first report performance of our PointGroup model on the testing set of ScanNet v2, as listed in Table 1. PointGroup accomplishes the highest $\mathrm{AP}_{50}$ score of $63.6\%$ , outperforming all previous methods by a large margin. Compared with the former best solution [23], which obtains $54.9\%$ $\mathrm{AP}_{50}$ score, our result is $8.7\%$ higher (absolute) and $15.8\%$ better (relative). For detailed results on each category, PointGroup ranks the 1st place in 13 out of 18 classes in total.
+
+# 4.2.2 Ablation Studies
+
+We conduct ablation studies on the ScanNet validation set to analyze the design and parameter choice in our PointGroup.
+
+Clustering based on Different Coordinate Sets Table 2 shows the comparison using the original coordinates $\mathbf{P}$ alone, the shifted coordinates $\mathbf{Q}$ alone, and both $\mathbf{P}$ and $\mathbf{Q}$ in the clustering. Clustering on points with $\mathbf{P}$ alone may mis-group two close objects with the same semantic label into the same instance. Hence, for categories, in which two objects are likely to be very close to each other (e.g., chairs and pictures), clustering on $\mathbf{P}$ alone does not perform well. Clustering on $\mathbf{Q}$ solves the problem in part by gathering instance points around the instance centroids and enlarging the space between clusters. However, due to inaccuracy in offset prediction, especially for boundary points of large objects (e.g., curtains and counters), clustering on $\mathbf{Q}$ alone does not perform perfectly.
+
+Fig. 4 shows the qualitative results with models trained with clusters from different coordinate sets – (i) $\mathbf{P}$ only, (ii) $\mathbf{Q}$ only, and (iii) both $\mathbf{P}$ and $\mathbf{Q}$ . We could observe that the problem in (i) is the mistakenly grouped pictures on the wall in one cluster. The case of (ii) successfully separates the pictures into individual instances. Nevertheless, it suffers from inaccuracy around the object boundary areas. The case of (iii) takes strength of both (i) and (ii). Clustering on dual point sets (both $\mathbf{P}$ and $\mathbf{Q}$ ) along with the precise scores from ScoreNet to select the final instance clusters, we combine the advantages of clustering on $\mathbf{P}$ and on $\mathbf{Q}$ to attain the best performance.
+
+Ablation on the Clustering Radius $r$ We use different values of $r$ in the clustering algorithm. The performance varies as shown in Table 3. A small $r$ is sensitive to point density. The scan for an object may have inconsistent point density in different parts. Clustering with such an $r$ may not be able to grow in low-density parts. On the contrary, a large $r$ increases the risk of grouping two nearby same-class objects into one. We empirically set $r$ to 0.03 (meter).
+
+| Method | Metric | mean | bathroom | bookshel: | cabinet | chair | counter | curtain | desk | door | otherfu. | picture | refriger. | s. curtain | sink | sofa | table | toilet | window |
| bed | bookshel: | cabinet | chair | counter | curtain | desk | door | otherfu. | picture | refriger. | s. curtain | sink | sofa | table | toilet | window |
| Original P | AP | 0.283 | 0.414 | 0.327 | 0.244 | 0.167 | 0.493 | 0.083 | 0.269 | 0.089 | 0.193 | 0.286 | 0.205 | 0.373 | 0.226 | 0.361 | 0.632 | 0.537 | 0.660 | 0.775 | 0.721 | 0.799 | 0.231 | 0.684 | 0.231 | | | | | | | | | | | |
| \( AP_{50} \) | 0.507 | 0.692 | 0.647 | 0.481 | 0.347 | 0.685 | 0.231 | 0.508 | 0.308 | 0.384 | 0.453 | 0.359 | 0.632 | 0.537 | 0.660 | 0.531 | 0.721 | 0.961 | 0.943 | | | | | | | | | | | | | | | | |
| \( AP_{25} \) | 0.659 | 0.840 | 0.764 | 0.597 | 0.496 | 0.791 | 0.588 | 0.614 | 0.686 | 0.529 | 0.600 | 0.432 | 0.660 | 0.775 | 0.721 | 0.995 | 0.995 | 0.601 | | | | | | | | | | | | | | | | | |
| Shifted Q | AP | 0.328 | 0.499 | 0.383 | 0.248 | 0.217 | 0.713 | 0.008 | 0.241 | 0.165 | 0.216 | 0.318 | 0.211 | 0.238 | 0.422 | 0.292 | 0.383 | 0.632 | 0.775 | 0.721 | 0.995 | 0.194 | | | | | | | | | | | | | | |
| \( AP_{50} \) | 0.529 | 0.738 | 0.694 | 0.550 | 0.435 | 0.884 | 0.035 | 0.389 | 0.410 | 0.413 | 0.501 | 0.363 | 0.617 | 0.590 | 0.648 | 0.571 | 0.948 | 0.948 | 0.375 | | | | | | | | | | | | | | | | |
| \( AP_{25} \) | 0.677 | 0.863 | 0.795 | 0.699 | 0.617 | 0.931 | 0.426 | 0.541 | 0.697 | 0.538 | 0.623 | 0.446 | 0.366 | 0.765 | 0.826 | 0.848 | 0.669 | 0.999 | 0.533 | | | | | | | | | | | | | | | | |
| Both P & Q | AP | 0.348 | 0.597 | 0.376 | 0.267 | 0.253 | 0.712 | 0.069 | 0.266 | 0.140 | 0.229 | 0.339 | 0.208 | 0.416 | 0.298 | 0.434 | 0.385 | 0.758 | 0.275 | | | | | | | | | | | | | | | | | |
| \( AP_{50} \) | 0.569 | 0.805 | 0.696 | 0.549 | 0.481 | 0.877 | 0.224 | 0.449 | 0.416 | 0.420 | 0.530 | 0.377 | 0.372 | 0.644 | 0.611 | 0.715 | 0.629 | 0.983 | 0.462 | | | | | | | | | | | | | | | | |
| \( AP_{25} \) | 0.713 | 0.865 | 0.795 | 0.744 | 0.673 | 0.925 | 0.648 | 0.616 | 0.741 | 0.548 | 0.654 | 0.482 | 0.383 | 0.711 | 0.828 | 0.851 | 0.742 | 1.000 | 0.636 | | | | | | | | | | | | | | | | |
+
+
+Input
+
+
+(i) $\mathbf{P}$ Only
+Figure 4: Instance predictions produced by models trained with clustering on (i) $\mathbf{P}$ only, (ii) shifted coordinates $\mathbf{Q}$ only, and (iii) both. The last column shows the predicted instances of (iii) represented with $\mathbf{Q}$ , where stuff points are ignored.
+
+
+(ii) $\mathbf{Q}$ Only
+
+
+(iii) $\mathbf{P}$ and $\mathbf{Q}$
+
+
+Shifted Coord.
+
+Table 2: Ablation results using different coordinate sets on the ScanNet v2 validation set. Adopting both the original and shifted coordinates for clustering yields the best 3D instance segmentation performance.
+
+| Method | avg AP | avg AP50 | avg AP25 |
| r = 2cm | 0.285 | 0.501 | 0.651 |
| r = 3cm | 0.348 | 0.569 | 0.713 |
| r = 4cm | 0.337 | 0.552 | 0.700 |
| r = 5cm | 0.342 | 0.552 | 0.699 |
+
+Ablation for the ScoreNet We also ablate the ScoreNet, which is used to evaluate the quality of each candidate cluster (see Sec.3.4). Here, we directly use the output scores from ScoreNet to rank instances for calculating the AP.
+
+Apart from regressing the instance quality, an alternative way is to directly use the averaged semantic probability of the related instance category inside an instance as the quality confidence. By this means, the results in terms of $\mathrm{AP / AP_{50} / AP_{25}}$ are $30.2 / 51.9 / 68.9(\%)$ which are worse than those with ScoreNet where results are $34.8 / 56.9 / 71.3(\%)$ . This indicates that the proposed ScoreNet is vital and necessary for improving the instance segmentation results by providing precise scores for NMS.
+
+# 4.2.3 Runtime Analysis
+
+Our method takes a whole scene as input per pass. Its runtime depends on the number of points and scene complexity. For runtime analysis, we sampled four scenes randomly from the ScanNet v2 validation set and tested them 100 times on a Titan Xp GPU to get an average runtime per scene. Table 4 reports the runtime breakdown. Clustering
+
+Table 3: Ablation results for clustering with different radii $r$ on the ScanNet v2 validation set.
+
+ | #Points | Total Time | BB | Clustering on P and Q | SCN | NMS |
| BQp | CLp | BQq | CLq |
| 1 | 239,261 | 865 | 332 | 95 | 16 | 95 | 70 | 176 | 82 |
| 2 | 45,557 | 261 | 177 | 5 | 2 | 5 | 5 | 52 | 14 |
| 3 | 186,857 | 567 | 281 | 44 | 9 | 45 | 31 | 95 | 62 |
| 4 | 60,071 | 271 | 180 | 6 | 3 | 7 | 15 | 55 | 6 |
| avg | 132,937 | 491 | 243 | 38 | 8 | 38 | 30 | 95 | 41 |
+
+Table 4: Inference time (ms). BB denotes backbone + two branches; BQ denotes ballquery; subscripts $p$ and $q$ denote clustering on $P$ and $Q$ respectively; CL denotes our clustering algorithm; and SCN denotes ScoreNet.
+
+| Method | AP50 | mPrec50 | mRec50 |
| SGPN† [49] | - | 0.360 | 0.287 |
| ASIST[50] | - | 0.553 | 0.424 |
| PointGroup† | 0.578 | 0.619 | 0.621 |
| SGPND[49] | 0.544 | 0.382 | 0.312 |
| PartNet‡[31] | - | 0.564 | 0.434 |
| ASIST[50] | - | 0.636 | 0.475 |
| 3D-BoNet‡[53] | - | 0.656 | 0.476 |
| PointGroup‡ | 0.640 | 0.696 | 0.692 |
+
+Table 5: Instance segmentation results on the S3DIS validation set. Methods marked with $\dagger$ are evaluated on Area 5; those marked with $\ddagger$ are on the 6-fold cross validation.
+
+on $\mathbf{Q}$ (shifted) usually takes more time than clustering on $\mathbf{P}$ (original), as shifted points could have more neighbors.
+
+# 4.3. Evaluation on S3DIS
+
+We also evaluate our proposed PointGroup model on the S3DIS dataset. Apart from adopting $\mathrm{AP}_{50}$ as an evaluation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Input
+
+
+
+
+Semantic GT
+
+
+
+
+Semantic Pred.
+
+
+
+
+Instance GT
+Figure 5: Visualization of the semantic and instance segmentation results on ScanNet v2 (top) and S3DIS (bottom). For instance predictions, different colors represent separate instances, and the semantic results indicate the categories of instances.
+
+
+
+
+InstancePred.
+
+metric, we also include the $\mathrm{mPrec}_{50}$ and $\mathrm{mRec}_{50}$ results in Table 5, where we use a score threshold of 0.2 to remove some low-confidence clusters.
+
+PointGroup reaches the highest performance in terms of all three evaluation metrics. For results on Area 5, PointGroup gets $57.8\%$ on $\mathrm{AP}_{50}$ , $61.9\%$ on $\mathrm{mPrec}_{50}$ and $62.1\%$ on $\mathrm{mRec}_{50}$ . The $\mathrm{mPrec}_{50}$ and $\mathrm{mRec}_{50}$ are 6.6 and 19.7 points higher than ASIS [50], respectively. For the results on 6-fold cross validation, PointGroup is 9.6 points higher than SGPN [49] regarding $\mathrm{AP}_{50}$ , which is a big margin. The $\mathrm{mPrec}_{50}$ and $\mathrm{mRec}_{50}$ scores are 4 and 21.6 points higher than the second-best solution [53].
+
+The large improvement of PointGroup over the former best approaches across different challenging datasets demonstrate its effectiveness and generality. Several visual illustrations of PointGroup over these two datasets are included in Fig. 5. We observe that the proposed approach well captures the 3D geometry information and obtains precise instance segmentation masks.
+
+# 5. Conclusion
+
+We have proposed PointGroup for 3D instance segmentation, with a specific focus of better grouping points by
+
+exploring the in-between space and point semantic labels among the object instances. Considering the situation that two intra-category objects may be very close to each other, we design a two-branch network to respectively learn a perpoint semantic label and a per-point offset vector for moving each point towards its respective instance centroid. We then cluster points based on both the original point coordinates and the offset-shifted point coordinates. It combines the complementary strength of the two coordinate sets to optimize point grouping precision. Further, we introduced the ScoreNet to learn to evaluate the generated candidate clusters, followed by the NMS to avoid duplicates before we output the final predicted instances. PointGroup accomplished the best ever results.
+
+In our future work, we plan to further introduce a progressive refinement module to relieve the semantic inaccuracy problem that affects the instance grouping and explore the possibility of incorporating weakly- or self-supervision techniques to further boost the performance.
+
+Acknowledgments This project is supported in part by the Research Grants Council of the Hong Kong Special Administrative Region (Project no. CUHK 14201717).
+
+# References
+
+[1] Pablo Arbeláez, Jordi Pont-Tuset, Jonathan T Barron, Ferran Marques, and Jitendra Malik. Multiscale combinatorial grouping. In CVPR, 2014.
+[2] Iro Armeni, Ozan Sener, Amir R. Zamir, Helen Jiang, Ioannis Brilakis, Martin Fischer, and Silvio Savarese. 3D semantic parsing of large-scale indoor spaces. In CVPR, 2016.
+[3] Anurag Arnab and Philip HS Torr. Pixelwise instance segmentation with a dynamically instantiated network. In CVPR, 2017.
+[4] Min Bai and Raquel Urtasun. Deep watershed transform for instance segmentation. In CVPR, 2017.
+[5] 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.
+[6] 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 CVPR, 2018.
+[7] Christopher Choy, JunYoung Gwak, and Silvio Savarese. 4D spatio-temporal ConvNets: Minkowski convolutional neural networks. In CVPR, 2019.
+[8] Angela Dai, Angel X. Chang, Manolis Savva, Maciej Halber, Thomas Funkhouser, and Matthias Nießner. ScanNet: Richly-annotated 3D reconstructions of indoor scenes. In CVPR, 2017.
+[9] Jifeng Dai, Kaiming He, and Jian Sun. Convolutional feature masking for joint object and stuff segmentation. In CVPR, 2015.
+[10] Jifeng Dai, Kaiming He, and Jian Sun. Instance-aware semantic segmentation via multi-task network cascades. In CVPR, 2016.
+[11] Cathrin Elich, Francis Engelmann, Jonas Schult, Theodora Kontogianni, and Bastian Leibe. 3d-bevis: Birds-eye-view instance segmentation. arXiv:1904.02199, 2019.
+[12] Francis Engelmann, Theodora Kontogianni, and Bastian Leibe. Dilated point convolutions: On the receptive field of point convolutions. arXiv:1907.12046, 2019.
+[13] Benjamin Graham, Martin Engelcke, and Laurens van der Maaten. 3D semantic segmentation with submanifold sparse convolutional networks. In CVPR, 2018.
+[14] Bharath Hariharan, Pablo Arbeláez, Ross Girshick, and Jitendra Malik. Simultaneous detection and segmentation. In ECCV, 2014.
+[15] Bharath Hariharan, Pablo Andres Arbeláez, Ross B. Girshick, and Jitendra Malik. Hypercolumns for object segmentation and fine-grained localization. In CVPR, 2015.
+[16] Zeeshan Hayden, Xuming He, and Mathieu Salzmann. Boundary-aware instance segmentation. In CVPR, 2017.
+[17] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross Girshick. Mask R-CNN. In ICCV, 2017.
+[18] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016.
+
+[19] Ji Hou, Angela Dai, and Matthias Nießner. 3D-SIS: 3D semantic instance segmentation of RGB-D scans. In CVPR, 2019.
+[20] Borui Jiang, Ruixuan Luo, Jiayuan Mao, Tete Xiao, and Yun-ting Jiang. Acquisition of localization confidence for accurate object detection. In ECCV, 2018.
+[21] Li Jiang, Hengshuang Zhao, Shu Liu, Xiaoyong Shen, ChiWing Fu, and Jiaya Jia. Hierarchical point-edge interaction network for point cloud semantic segmentation. In ICCV, 2019.
+[22] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In NIPS, 2012.
+[23] Jean Lahoud, Bernard Ghanem, Marc Pollefeys, and Martin R Oswald. 3D instance segmentation via multi-task metric learning. In ICCV, 2019.
+[24] Yann LeCun, Léon Bottou, Yoshua Bengio, Patrick Haffner, et al. Gradient-based learning applied to document recognition. IEEE, 1998.
+[25] Buyu Li, Wanli Ouyang, Lu Sheng, Xingyu Zeng, and Xiaogang Wang. Gs3d: An efficient 3d object detection framework for autonomous driving. In CVPR, 2019.
+[26] Yangyan Li, Rui Bu, Mingchao Sun, Wei Wu, Xinhan Di, and Baoquan Chen. PointCNN: Convolution on $\mathcal{X}$ -transformed points. In NIPS, 2018.
+[27] Chen Liu and Yasutaka Furukawa. MASC: Multi-scale affinity with sparse convolution for 3D instance segmentation. arXiv:1902.04478, 2019.
+[28] Shu Liu, Jiaya Jia, Sanja Fidler, and Raquel Urtasun. SGN: Sequential grouping networks for instance segmentation. In ICCV, 2017.
+[29] Shu Liu, Lu Qi, Haifang Qin, Jianping Shi, and Jiaya Jia. Path aggregation network for instance segmentation. In CVPR, 2018.
+[30] Daniel Maturana and Sebastian Scherer. VoxNet: A 3D convolutional neural network for real-time object recognition. In IROS, 2015.
+[31] Kaichun Mo, Shilin Zhu, Angel X Chang, Li Yi, Subarna Tripathi, Leonidas J Guibas, and Hao Su. Partnet: A large-scale benchmark for fine-grained and hierarchical part-level 3d object understanding. In CVPR, 2019.
+[32] Gaku Narita, Takashi Seno, Tomoya Ishikawa, and Yohsuke Kaji. PanopticFusion: Online volumetric semantic mapping at the level of stuff and things. In IROS, 2019.
+[33] Quang-Hieu Pham, Thanh Nguyen, Binh-Son Hua, Gemma Roig, and Sai-Kit Yeung. Jsis3d: Joint semantic-instance segmentation of 3d point clouds with multi-task pointwise networks and multi-value conditional random fields. In CVPR, 2019.
+[34] Charles R Qi, Or Litany, Kaiming He, and Leonidas J Guibas. Deep hough voting for 3d object detection in point clouds. In ICCV, 2019.
+[35] Charles Ruizhongtai Qi, Hao Su, Kaichun Mo, and Leonidas J. Guibas. PointNet: Deep learning on point sets for 3D classification and segmentation. In CVPR, 2017.
+[36] Charles R Qi, Hao Su, Matthias Nießner, Angela Dai, Mengyuan Yan, and Leonidas J Guibas. Volumetric and
+
+multi-view cnns for object classification on 3D data. In CVPR, 2016.
+[37] Charles Ruizhongtai Qi, Li Yi, Hao Su, and Leonidas J. Guibas. PointNet++: Deep hierarchical feature learning on point sets in a metric space. In NIPS, 2017.
+[38] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster R-CNN: Towards real-time object detection with region proposal networks. In NIPS, 2015.
+[39] Gernot Riegler, Ali Osman Ulusoy, and Andreas Geiger. OctNet: Learning deep 3D representations at high resolutions. In CVPR, 2017.
+[40] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In MICCAI, 2015.
+[41] Shaoshuai Shi, Xiaogang Wang, and Hongsheng Li. Pointrcnn: 3d object proposal generation and detection from point cloud. In CVPR, 2019.
+[42] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015.
+[43] Shuran Song, Fisher Yu, Andy Zeng, Angel X Chang, Manolis Savva, and Thomas Funkhouser. Semantic scene completion from a single depth image. In CVPR, 2017.
+[44] Hang Su, Subhransu Maji, Evangelos Kalogerakis, and Erik G. Learned-Miller. Multi-view convolutional neural networks for 3D shape recognition. In ICCV, 2015.
+[45] Hao Su, Fan Wang, Eric Yi, and Leonidas J. Guibas. 3D-assisted feature synthesis for novel views of an object. ICCV, 2015.
+[46] Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In CVPR, 2015.
+[47] Lyne P. Tchapmi, Christopher B. Choy, Iro Armeni, JunYoung Gwak, and Silvio Savarese. SEGCloud: Semantic segmentation of 3D point clouds. In 3DV, 2017.
+[48] Shenlong Wang, Simon Suo, Wei-Chiu Ma, Andrei Pokrovsky, and Raquel Urtasun. Deep parametric continuous convolutional neural networks. In CVPR, 2018.
+[49] Weiyue Wang, Ronald Yu, Qiangui Huang, and Ulrich Neumann. SGPN: Similarity group proposal network for 3D point cloud instance segmentation. In CVPR, 2018.
+[50] Xinlong Wang, Shu Liu, Xiaoyong Shen, Chunhua Shen, and Jiaya Jia. Associatively segmenting instances and semantics in point clouds. In CVPR, 2019.
+[51] Yue Wang, Yongbin Sun, Ziwei Liu, Sanjay E. Sarma, Michael M. Bronstein, and Justin M. Solomon. Dynamic graph CNN for learning on point clouds. TOG, 2019.
+[52] Wenxuan Wu, Zhongang Qi, and Li Fuxin. PointConv: Deep convolutional networks on 3D point clouds. In CVPR, 2019.
+[53] Bo Yang, Jianan Wang, Ronald Clark, Qingyong Hu, Sen Wang, Andrew Markham, and Niki Trigoni. Learning object bounding boxes for 3D instance segmentation on point clouds. In NeurIPS, 2019.
+[54] 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 CVPR, 2019.
+
+[55] Ziyu Zhang, Sanja Fidler, and Raquel Urtasun. Instance-level segmentation for autonomous driving with deep densely connected MRFs. In CVPR, 2016.
+[56] Ziyu Zhang, Alexander G Schwing, Sanja Fidler, and Raquel Urtasun. Monocular object instance segmentation and depth ordering with CNNs. In ICCV, 2015.
+[57] Hengshuang Zhao, Li Jiang, Chi-Wing Fu, and Jiaya Jia. PointWeb: Enhancing local neighborhood features for point cloud processing. In CVPR, 2019.
\ No newline at end of file
diff --git a/pointgroupdualsetpointgroupingfor3dinstancesegmentation/images.zip b/pointgroupdualsetpointgroupingfor3dinstancesegmentation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..e20ed89fe93f878595f2f7eca757b3b110f2d6e1
--- /dev/null
+++ b/pointgroupdualsetpointgroupingfor3dinstancesegmentation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1f27bfd0fc7e1d41450c51aad6165ed826d955528410ea9478434d370d49105f
+size 715050
diff --git a/pointgroupdualsetpointgroupingfor3dinstancesegmentation/layout.json b/pointgroupdualsetpointgroupingfor3dinstancesegmentation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..f4d21620572ad8d2eefc727b1c85e4a52c8ee5c3
--- /dev/null
+++ b/pointgroupdualsetpointgroupingfor3dinstancesegmentation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0c8e1656cb0e8b362d54af1bf798255cd24c7790e36fe902d58a3cf616c079ed
+size 602237
diff --git a/pointpaintingsequentialfusionfor3dobjectdetection/e49582df-b632-492e-a720-49db813767c6_content_list.json b/pointpaintingsequentialfusionfor3dobjectdetection/e49582df-b632-492e-a720-49db813767c6_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..7e1cc58aa46f52a7dbe4c036fdd800acd0b9c67b
--- /dev/null
+++ b/pointpaintingsequentialfusionfor3dobjectdetection/e49582df-b632-492e-a720-49db813767c6_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:40757e5eab86729939702c583f529fb31d429a0c40899bd667f90d88509e3d26
+size 78581
diff --git a/pointpaintingsequentialfusionfor3dobjectdetection/e49582df-b632-492e-a720-49db813767c6_model.json b/pointpaintingsequentialfusionfor3dobjectdetection/e49582df-b632-492e-a720-49db813767c6_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..e3b9ff7558b29259f02b97ad86b3a6eae1e575e5
--- /dev/null
+++ b/pointpaintingsequentialfusionfor3dobjectdetection/e49582df-b632-492e-a720-49db813767c6_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:04380d66e636d96b5dee573822aefd617d0bc8318fcd84afb9ff1a0f7a75f9da
+size 92994
diff --git a/pointpaintingsequentialfusionfor3dobjectdetection/e49582df-b632-492e-a720-49db813767c6_origin.pdf b/pointpaintingsequentialfusionfor3dobjectdetection/e49582df-b632-492e-a720-49db813767c6_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..f6b0145a6f4149bdcc694f3fff552293a19942a6
--- /dev/null
+++ b/pointpaintingsequentialfusionfor3dobjectdetection/e49582df-b632-492e-a720-49db813767c6_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:99575c176f259d14913d5c64910a69e4bcf85fb3c6129c80566071ffb3f319de
+size 6110584
diff --git a/pointpaintingsequentialfusionfor3dobjectdetection/full.md b/pointpaintingsequentialfusionfor3dobjectdetection/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..05df87bbb82b5386c97293b8228acac67cb7ac1c
--- /dev/null
+++ b/pointpaintingsequentialfusionfor3dobjectdetection/full.md
@@ -0,0 +1,326 @@
+# PointPainting: Sequential Fusion for 3D Object Detection
+
+Sourabh Vora
+
+Alex H. Lang
+
+Bassam Helou
+
+Oscar Beijbom
+
+nuTonomy: an Aptiv Company
+
+{sourabh, alex, bassam, oscar}@nutonomy.com
+
+# Abstract
+
+Camera and lidar are important sensor modalities for robotics in general and self-driving cars in particular. The sensors provide complementary information offering an opportunity for tight sensor-fusion. Surprisingly, lidar-only methods outperform fusion methods on the main benchmark datasets, suggesting a gap in the literature. In this work, we propose PointPainting: a sequential fusion method to fill this gap. PointPainting works by projecting lidar points into the output of an image-only semantic segmentation network and appending the class scores to each point. The appended (painted) point cloud can then be fed to any lidar-only method. Experiments show large improvements on three different state-of-the-art methods, Point-RCNN, VoxelNet and PointPillars on the KITTI and nuScenes datasets. The painted version of PointRCNN represents a new state of the art on the KITTI leaderboard for the bird's-eye view detection task. In ablation, we study how the effects of Painting depends on the quality and format of the semantic segmentation output, and demonstrate how latency can be minimized through pipelining.
+
+# 1. Introduction
+
+Driven partially by the interest in self-driving vehicles, significant research effort has been devoted to 3D object detection. In this work we consider the problem of fusing a lidar point cloud with an RGB image. The point cloud provides a very accurate range view, but with low resolution and texture information. The image, on the other hand, has an inherent depth ambiguity but offers fine-grained texture and color information. This offers the compelling research opportunity of how to design a detector which utilizes the best of two worlds.
+
+Early work on KITTI [6] such as MV3D [3] and AVOD [10] proposed multi-view fusion pipelines to exploit these synergies. However recent detectors such as PointPillars [11], VoxelNet [34, 29] and STD [32] use only lidar and still significantly outperform these methods. Indeed, despite recent fusion research [18, 27, 13, 33], the top methods on
+
+
+
+
+
+
+Figure 1. PointPainting is a general fusion method that can be used with any lidar detection network. Top left: PointPillars[11], VoxelNet [34, 29], and PointRCNN [21] on the KITTI [6] bird's-eye view val set (Table 1). The painted version of PointRCNN is state of the art on the KITTI test set outperforming all published fusion and lidar-only methods (Table 2). Top right: improvements are larger for the harder pedestrian (ped.) and cyclist classes. Error bars indicate std. across methods. Bottom left: PointPillars+ evaluated on the nuScenes [1] test set. The painted version of PointPillars+ improves all 10 classes for a total boost of $6.3\mathrm{mAP}$ (Table 3). Bottom right: selected class improvements for Painted PointPillars+ show the challenging bicycle class has the largest gains.
+
+
+
+the popular KITTI leaderboard [6] are lidar only. Does this mean lidar makes vision redundant for 3D object detection?
+
+The answer, surely, must be no. Consider the example in Fig. 3, where the pedestrian and signpost are clearly visible in the image, yet look more or less identical in the lidar modality. Surely vision based semantic information should be useful to improve detection of such objects. Also, by first principle, adding more information should at the minimum yield the same result, not worse. So why has it been so difficult? One reason is due to viewpoint misalignment.
+
+While both sensors are natively captured in the range-view, most state of the art methods such as PointPillars [11] or STD [32] use convolutions in the bird's-eye view. This
+
+
+
+
+
+
+
+
+Figure 2. PointPainting overview. The PointPainting architecture consists of three main stages: (1) image based semantics network, (2) fusion (painting), and (3) lidar based detector. In the first step, the images are passed through a semantic segmentation network obtaining pixelwise segmentation scores. In the second stage, the lidar points are projected into the segmentation mask and decorated with the scores obtained in the earlier step. Finally, a lidar based object detector can be used on this decorated (painted) point cloud to obtain 3D detections.
+
+
+
+
+
+view has several advantages including lack of scale ambiguity and minimal occlusions. It also does not suffer from the depth-blurring effect which occurs with applying 2D convolutions to the range view [25]. As a result, bird's-eye view methods outperform top range-view methods, such as LaserNet [17, 16], on the KITTI leaderboard. However, while a lidar point cloud can trivially be converted to bird's-eye view, it is much more difficult to do so with an image.
+
+Hence, a core challenge of sensor fusion network design lies in consolidating the lidar bird's-eye view with the camera view. Previous methods can be grouped into four categories: object-centric fusion, continuous feature fusion, explicit transform and detection seeding.
+
+Object-centric fusion, pioneered by MV3D [3] and AVOD [10], is the most obvious choice for a two-stage architecture. Here, the modalities have different backbones, one in each view, and fusion happens at the object proposal level by applying roi-pooling in each modality from a shared set of 3D proposals. This allows for end-to-end optimization but tends to be slow and cumbersome.
+
+A second family of methods applies "continuous feature fusion" to allow feature information to be shared across all strides of the image and lidar backbones [14, 27]. These methods can be used with single-state detection designs but require a mapping to be calculated, a priori, for each sample, from the point-cloud to the image. One subtle but important draw-back of this family of methods is "feature blurring". This occurs since each feature vector from the bird's-eye view corresponds to multiple pixels in the image-view, and vice versa. ContFuse [14] proposes a sophisticated method based on kNN, bilinear interpolation and a learned MLP to remedy this, but the core problem persists.
+
+A third family of methods attempts to explicitly transform the image to a bird's-eye view representation [20] and
+
+do the fusion there [25, 28, 33]. Some of the most promising image-only methods use this idea of first creating an artificial point cloud from the image and then proceeding in the bird's-eye view [25, 28]. Subsequent work attempts fusion based on this idea, but the performance falls short of state of the art [33], and requires several expensive steps of processing to build the pseudo-point cloud.
+
+A fourth family of methods uses detection seeding. There, semantics are extracted from an image a priori and used to seed detection in the point cloud. Frustrum PointNet [18] and ConvNet [26] use the 2D detections to limit the search space inside the frustum while IPOD [31] uses semantic segmentation outputs to seed the 3D proposal. This improves precision, but imposes an upper bound on recall.
+
+The recent work of Liang et. al [13] tried combining several of these concepts. Results are not disclosed for all classes, but the method is outperformed on the car class by the top lidar-only method STD [32] (Table 2).
+
+In this work we propose PointPainting: a simple yet effective sequential fusion method. Each lidar point is projected into the output of an image semantic segmentation network and the channel-wise activations are concatenated to the intensity measurement of each lidar point. The concatenated (painted) lidar points can then be used in any lidar detection method, whether bird's-eye view [11, 29, 21, 34, 30, 32] or front-view [12, 17]. PointPainting addresses the shortcomings of the previous fusion concepts: it does not add any restrictions on the 3D detection architecture; it does not suffer from feature or depth blurring; it does not require a pseudo-point cloud to be computed, and it does not limit the maximum recall.
+
+Note that for lidar detection methods that operate directly on the raw point cloud [11, 34, 17, 21], PointPainting requires minimal network adaptations such as changing the
+
+| Method | mAP | Car | Pedestrian | Cyclist |
| Mod. | Easy | Mod. | Hard | Easy | Mod. | Hard | Easy | Mod. | Hard |
| PointPillars [11] | 73.78 | 90.09 | 87.57 | 86.03 | 71.97 | 67.84 | 62.41 | 85.74 | 65.92 | 62.40 |
| Painted PointPillars | 76.27 | 90.01 | 87.65 | 85.56 | 77.25 | 72.41 | 67.53 | 81.72 | 68.76 | 63.99 |
| Delta | +2.50 | -0.08 | 0.08 | -0.47 | +5.28 | +4.57 | +5.12 | -4.02 | +2.84 | +1.59 |
| VoxelNet [34, 29] | 71.83 | 89.87 | 87.29 | 86.30 | 70.08 | 62.44 | 55.02 | 85.48 | 65.77 | 58.97 |
| Painted VoxelNet | 73.55 | 90.05 | 87.51 | 86.66 | 73.16 | 65.05 | 57.33 | 87.46 | 68.08 | 65.59 |
| Delta | +1.71 | +0.18 | +0.22 | +0.36 | +3.08 | +2.61 | +2.31 | +1.98 | +2.31 | +6.62 |
| PointRCNN [21] | 72.42 | 89.78 | 86.19 | 85.02 | 68.37 | 63.49 | 57.89 | 84.65 | 67.59 | 63.06 |
| Painted PointRCNN | 75.80 | 90.19 | 87.64 | 86.71 | 72.65 | 66.06 | 61.24 | 86.33 | 73.69 | 70.17 |
| Delta | +3.37 | +0.41 | +1.45 | +1.69 | +4.28 | +2.57 | +3.35 | +1.68 | +6.10 | +7.11 |
+
+Table 1. PointPainting applied to state of the art lidar based object detectors. All lidar methods show an improvement in bird's-eye view (BEV) mean average precision (mAP) of car, pedestrian, and cyclist on KITTI val set, moderate split. The corresponding 3D results are included in Table 7 in the Supplementary Material where we observe a similar improvement.
+
+
+Figure 3. Example scene from the nuScenes [1] dataset. The pedestrian and pole are 25 meters away from the ego vehicle. At this distance the two objects appears very similar in the point cloud. The proposed PointPainting method would add semantics from the image making the lidar detection task easier.
+
+number of channels dedicated to reading the point cloud. For methods using hand-coded features [30, 22], some extra work is required to modify the feature encoder.
+
+PointPainting is sequential by design which means that it is not always possible to optimize, end-to-end, for the final task of 3D detection. In theory, this implies sub-optimality in terms of performance. Empirically, however, PointPainting is more effective than all other proposed fusion methods. Further, a sequential approach has other advantages: (1) semantic segmentation of an image is often a useful stand-alone intermediate product, and (2) in a real-time 3D detection system, latency can be reduced by pipelining the image and lidar networks such that the lidar points are decorated with the semantics from the previous image. We show in ablation that such pipelining does not affect performance.
+
+We implement PointPainting with three state of the art lidar-only methods that have public code: PointPillars [11], VoxelNet (SECOND) [34, 29], and PointRCNN [21]. PointPainting consistently improved results (Figure 1) and indeed, the painted version of PointRCNN achieves state of the art on the KITTI leaderboard (Table 2). We also show a significant improvement of $6.3\mathrm{mAP}$ (Table 4) for Painted PointPillars+ on nuScenes [1].
+
+Contributions. Our main contribution is a novel fusion method, PointPainting, that augments the point cloud with image semantics. Through extensive experimentation we show that PointPainting is:
+
+- general - achieving significant improvements when used with 3 top lidar-only methods on the KITTI and nuScenes benchmarks;
+- accurate - the painted version of PointRCNN achieves state of the art on the KITTI benchmark;
+- robust - the painted versions of PointRCNN and PointPillars improved performance on all classes on the KITTI and nuScenes test sets, respectively.
+fast - low latency fusion can be achieved by pipelining the image and lidar processing steps.
+
+# 2. PointPainting Architecture
+
+The PointPainting architecture accepts point clouds and images as input and estimates oriented 3D boxes. It consists of three main stages (Fig. 2). (1) Semantic Segmentation: an image based sem. seg. network which computes the pixel wise segmentation scores. (2) Fusion: lidar points are painted with sem. seg. scores. (3) 3D Object Detection: a lidar based 3D detection network.
+
+# 2.1. Image Based Semantics Network
+
+The image sem. seg. network takes in an input image and outputs per pixel class scores. These scores serve as compact summarized features of the image. There are several key advantages of using sem. seg. in a fusion pipeline. First, sem. seg. is an easier task than 3D object detection since segmentation only requires local, per pixel classification, while object detection requires 3D localization and classification. Networks that perform sem. seg. are easier to train and are also amenable to perform fast inference. Second, rapid advances are being made in sem. seg. [4, 36], which allows PointPainting to benefit from advances in both segmentation and 3D object detection. Finally, in a robotics
+
+
+
+
+Figure 4. Qualitative analysis of KITTI results. We created four different comparison figures. For each comparison, the upper left is the original point cloud, while the upper right is the painted point cloud with the segmentation outputs used to color car (orange), cyclist (red) and pedestrian (blue) points. PointPillars / Painted PointPillars predicted 3D bounding boxes are displayed on the both the input point cloud (upper left / right) and projected into the image (lower left / right). The orientation of boxes is shown by a line connecting the bottom center to the front of the box.
+
+
+
+
+
+or autonomous vehicle system, sem. seg. outputs are useful independent outputs for tasks like free-space estimation.
+
+In this paper, the segmentation scores for our KITTI experiments are generated from DeepLabv3+ [2, 36, 19], while for nuScenes experiments we trained a custom, lighter, network. However, we note that PointPainting is agnostic to the image segmentation network design.
+
+# 2.2. PointPainting
+
+# Algorithm 1 PointPainting(L, S, T, M)
+
+# Inputs:
+
+Lidar point cloud $L \in \mathbb{R}^{N,D}$ with $N$ points and $D \geq 3$ .
+
+Segmentation scores $S \in \mathbb{R}^{W,H,C}$ with $C$ classes.
+
+Homogenous transformation matrix $T\in \mathbb{R}^{4,4}$
+
+Camera matrix $M\in \mathbb{R}^{3,4}$
+
+# Output:
+
+Painted lidar points $P\in \mathbb{R}^{N,D + C}$
+
+for $\vec{l}\in L$ do
+
+$$
+\vec {l} _ {\text {i m a g e}} = \operatorname {P R O J E C T} (M, T, \vec {l} _ {x y z}) \quad \triangleright \vec {l} _ {\text {i m a g e}} \in \mathbb {R} ^ {2}
+$$
+
+$$
+\vec {s} = S [ \vec {l} _ {\mathrm {i m a g e}} [ 0 ], \vec {l} _ {\mathrm {i m a g e}} [ 1 ],: ] \quad \triangleright \vec {s} \in \mathbb {R} ^ {C}
+$$
+
+$$
+\vec {p} = \operatorname {C o n c a t e n a t e} (\vec {l}, \vec {s}) \quad \triangleright \vec {p} \in \mathbb {R} ^ {D + C}
+$$
+
+# end for
+
+Here we provide details on the painting algorithm. Each point in the lidar point cloud is $(x, y, z, r)$ or $(x, y, z, r, t)$ for KITTI and nuScenes respectively, where $x, y, z$ are the spatial location of each lidar point, $r$ is the reflectance, and $t$ is the relative timestamp of the lidar point (applica
+
+ble when using multiple lidar sweeps [1]). The lidar points are transformed by a homogenous transformation followed by a projection into the image. For KITTI this transformation is given by $T_{\text{camera} \leftarrow \text{lidar}}$ . The nuScenes transformation requires extra care since the lidar and cameras operate at different frequencies. The complete transformation is:
+
+$$
+T = T _ {\left(\text {c a m e r a} \leftarrow \text {e g o}\right)} T _ {\left(\text {e g o} _ {\mathrm {t} _ {\mathrm {c}}} \leftarrow \text {e g o} _ {\mathrm {t} _ {1}}\right)} T _ {\left(\text {e g o} \leftarrow \text {l i d a r}\right)}
+$$
+
+with transforms: lidar frame to the ego-vehicle frame; ego frame at time of lidar capture, $t_{l}$ , to ego frame at the image capture time, $t_{c}$ ; and ego frame to camera frame. Finally, the camera matrix, $M$ , projects the points into the image.
+
+The output of the segmentation network is $C$ class scores, where for KITTI $C = 4$ (car, pedestrian, cyclist, background) and for nuScenes $C = 11$ (10 detection classes plus background). Once the lidar points are projected into the image, the segmentation scores for the relevant pixel, $(h, w)$ , are appended to the lidar point to create the painted lidar point. Note, if the field of view of two cameras overlap, there will be some points that will project on two images simultaneously and we randomly choose the segmentation score vector from one of the two images. Another strategy can be to choose the more discriminative score vector by comparing their entropies or the margin between the top two scores. However, we leave that for future studies.
+
+# 2.3. Lidar Detection
+
+The decorated point clouds can be consumed by any lidar network that learns an encoder, since PointPainting just changes the input dimension of the lidar points. PointPainting can also be utilized by lidar networks with hand
+
+| Method | Modality | mAP | Car | Pedestrian | Cyclist |
| Mod. | Easy | Mod. | Hard | Easy | Mod. | Hard | Easy | Mod. | Hard |
| MV3D[3] | L & I | N/A | 86.62 | 78.93 | 69.80 | N/A | N/A | N/A | N/A | N/A | N/A |
| AVOD-FPN[10] | L & I | 64.07 | 90.99 | 84.82 | 79.62 | 58.49 | 50.32 | 46.98 | 69.39 | 57.12 | 51.09 |
| IPOD[31] | L & I | 64.60 | 89.64 | 84.62 | 79.96 | 60.88 | 49.79 | 45.43 | 78.19 | 59.40 | 51.38 |
| F-PointNet[18] | L & I | 65.20 | 91.17 | 84.67 | 74.77 | 57.13 | 49.57 | 45.48 | 77.26 | 61.37 | 53.78 |
| F-ConvNet[26] | L & I | 67.89 | 91.51 | 85.84 | 76.11 | 57.04 | 48.96 | 44.33 | 84.16 | 68.88 | 60.05 |
| MMF[13] | L, I & M | N/A | 93.67 | 88.21 | 81.99 | N/A | N/A | N/A | N/A | N/A | N/A |
| LaserNet[17] | L | N/A | 79.19. | 74.52 | 68.45 | N/A | N/A | N/A | N/A | N/A | N/A |
| SECOND[29] | L | 61.61 | 89.39 | 83.77 | 78.59 | 55.99 | 45.02 | 40.93 | 76.5 | 56.05 | 49.45 |
| PointPillars[11] | L | 65.98 | 90.07 | 86.56 | 82.81 | 57.60 | 48.64 | 45.78 | 79.90 | 62.73 | 55.58 |
| STD[32] | L | 68.38 | 94.74 | 89.19 | 86.42 | 60.02 | 48.72 | 44.55 | 81.36 | 67.23 | 59.35 |
| PointRCNN[21] | L | 66.92 | 92.13 | 87.39 | 82.72 | 54.77 | 46.13 | 42.84 | 82.56 | 67.24 | 60.28 |
| Painted PointRCNN | L & I | 69.86 | 92.45 | 88.11 | 83.36 | 58.70 | 49.93 | 46.29 | 83.91 | 71.54 | 62.97 |
| Delta | Δ I | +2.94 | +0.32 | +0.72 | +0.64 | +3.93 | +3.80 | +3.45 | +1.35 | +4.30 | +2.69 |
+
+Table 2. Results on the KITTI test BEV detection benchmark. We see that Painted PointRCNN sets a new state of the art (69.86 mAP) in BEV detection performance. The modalities are lidar (L), images (I), and maps (M). The delta is the difference due to Painting, ie Painted PointRCNN minus PointRCNN. The corresponding 3D results are included in Table 8 in the Supplementary Material.
+
+engineered encoder [30, 22], but requires specialized feature engineering for each method. In this paper, we demonstrate that PointPainting works with three different lidar detectors: PointPillars [11], VoxelNet [34, 29], and PointRCNN [21]. These are all state of the art lidar detectors with distinct network architectures: single stage (PointPillars, VoxelNet) vs two stage (PointRCNN), and pillars (PointPillars) vs voxels (VoxelNet) vs point-wise features (PointRCNN). Despite these different design choices, all lidar networks benefit from PointPainting (Table 1). Note that we were as inclusive as possible in this selection, and to the best of our knowledge, these represent all of the top KITTI detection leaderboard methods that have public code.
+
+# 3. Experimental setup
+
+In this section we present details of each dataset and the experimental settings of PointPainting.
+
+# 3.1. Datasets
+
+We evaluate our method on the KITTI and nuScenes datasets.
+
+KITTI. The KITTI dataset [6] provides synchronized lidar point clouds and front-view camera images. It is relatively small with 7481 samples for training and 7518 samples for testing. For our test submission, we created a minimal set of 784 samples from the training set and trained on the remaining 6733 samples. The KITTI object detection benchmark requires detection of cars, pedestrians, and cyclists. Ground truth objects were only annotated if they are visible in the image, so we follow the standard practice [3, 34] of only using lidar points that project into the image.
+
+nuScenes. The nuScenes dataset [1] is larger than the KITTI dataset (7x annotations, 100x images). It it anno
+
+tated with 3D bounding boxes for 1000 20-second scenes at $2\mathrm{Hz}$ resulting in 28130 samples for training, 6019 samples for validation and 6008 samples for testing. nuScenes comprises the full autonomous vehicle data suite: synced lidar, cameras and radars with complete 360 coverage; in this work, we use the lidar point clouds and RGB images from all 6 cameras. The 3D object detection challenge evaluates the performance on 10 classes: cars, trucks, buses, trailers, construction vehicles, pedestrians, motorcycles, bicycles, traffic cones and barriers. Further, the dataset has an imbalance challenge with cars and pedestrians most frequent, and construction vehicles and bicycles least frequent.
+
+# 3.2. Semantics Network Details
+
+Here we provide more details on the semantics networks.
+
+KITTI. For experiments on KITTI [6], we used the DeepLabv3+ network1. The network was first pretrained on Mapillary [7], then finetuned on Cityscapes [5], and finally finetuned again on KITTI pixelwise sem. seg. [6]. Note that the class definition of cyclist differs between KITTI sem. seg. and object detection: in detection a cyclist is defined as rider + bike, while in sem. seg. a cyclist is defined as only the rider with bike a separate class. There was therefore a need to map bikes which had a rider to the cyclist class, while suppressing parked bikes to background. We did this after painting by mapping all points painted with the bike class within a $1m$ radius of a rider to the cyclist class; the rest to background.
+
+nuScenes. There was no public semantic segmentation method available on nuScenes so we trained a custom network using the nuImages dataset.2 nuImages consists of
+
+| Methods | mAP | Car | Truck | Bus | Trailer | Ctr. Vhl. | Ped. | Motorcycle | Bicycle | Tr. Cone | Barrier |
| PointPillars [11, 1] | 30.5 | 68.4 | 23.0 | 28.2 | 23.4 | 4.1 | 59.7 | 27.4 | 1.1 | 30.8 | 38.9 |
| PointPillars+ | 40.1 | 76.0 | 31.0 | 32.1 | 36.6 | 11.3 | 64.0 | 34.2 | 14.0 | 45.6 | 56.4 |
| Painted PointPillars+ | 46.4 | 77.9 | 35.8 | 36.1 | 37.3 | 15.8 | 73.3 | 41.5 | 24.1 | 62.4 | 60.2 |
| Delta | +6.3 | +1.9 | +4.8 | +3.9 | +0.7 | +4.5 | +9.3 | +7.3 | +10.1 | +16.8 | +3.8 |
+
+Table 3. Per class nuScenes performance. Evaluation of detections as measured by average precision (AP) or mean AP (mAP) on nuScenes test set. Abbreviations: construction vehicle (Ctr. Vhl.), pedestrian (Ped.), and traffic cone (Tr. Cone).
+
+100k images annotated with 2D bounding boxes and segmentation labels for all nuScenes classes. The segmentation network uses a ResNet [9] backbone to generate features at strides 8 to 64 for a FCN [15] segmentation head that predicts the nuScenes segmentation scores.
+
+# 3.3. Lidar Network Details
+
+We perform experiments using three different lidar networks: PointPillars [11], VoxelNet [34, 29], and PointR-CNN [21]. The fusion versions of each network that use PointPainting will be referred to as being painted (e.g. Painted PointPillars).
+
+KITTI. We used the publicly released code for PointPillars $^3$ , VoxelNet $^4$ and PointRCNN $^5$ and decorate the point cloud with the sem. seg. scores for 4 classes. This changes the original decorated point cloud dimensions from $9 \rightarrow 13$ , $7 \rightarrow 11$ , and $4 \rightarrow 8$ for PointPillars, VoxelNet, and PointRCNN respectively. For PointPillars, the new encoder has (13, 64) channels, while for VoxelNet it has (11, 32), (64, 128) channels. The 8 dimensional painted point cloud for PointRCNN is given as input to both the encoder and the region pooling layer. No other changes were made to the public experimental configurations.
+
+nuScenes. We use PointPillars for all nuScenes experiments. This requires changing the decorated point cloud from $7 \rightarrow 18$ , and the encoder has (18, 64) channels now.
+
+In order to make sure the effect of painting is measured on a state of the art method, we made several improvements to the previously published PointPillars setup [1] boosting the mAP by $10\%$ on the nuScenes benchmark (Table 4). We refer to this improved baseline as PointPillars+. The changes are inspired by [35] and comprise modifying pillar resolution, network architecture, attribute estimation, sample weighting, and data augmentation. First, the pillar resolution was reduced from $0.25\mathrm{m}$ to $0.2\mathrm{m}$ to allow for better localization of small objects. Second, the network architecture was changed to include more layers earlier in the network. Third, neither PointPillars nor PointPillars+ predict attributes, instead the attribute estimation heuristic was improved. Rather than using the most common attribute for
+
+each class, the predicted velocities and heights of each box are used to better estimate each attribute. Fourth, to reduce the class imbalance during training, a sample based weighting method was used where each sample was weighted according to the number of annotations in the sample. Fifth, the global yaw augmentation was changed from $\pi$ to $\pi /6$ .
+
+# 4. Results
+
+In this section, we present PointPainting results on the KITTI and nuScenes datasets and compare to the literature.
+
+# 4.1. Quantitative Analysis
+
+# 4.1.1 KITTI
+
+All detection results are measured using the official KITTI evaluation detection for bird's-eye view (BEV) and 3D. The BEV results are presented here while the 3D results are included in the Supplementary Material. The KITTI dataset is stratified into easy, moderate, and hard difficulties, and the official KITTI leaderboard is ranked by performance on moderate average precision (AP).
+
+Validation Set First, we investigate the effect of PointPainting on three leading lidar detectors. Fig. 1 and Table 1 demonstrate that PointPainting improves the detection performance for PointPillars [11], VoxelNet [34, 29], and PointRCNN [21]. The PointPainting semantic information led to a widespread improvement in detection: 24 of 27 comparisons (3 experiments $\times$ 3 classes $\times$ 3 strata) were improved by PointPainting. While the greatest changes were for the more challenging scenarios of pedestrian and cyclist detection, most networks even saw an improvement on cars. This demonstrates that the utility of PointPainting is independent of the underlying lidar network.
+
+Test Set Here we compare PointPainting with state of the art KITTI test results. The KITTI leaderboard only allows one submission per paper, so we could not submit all Painted methods from Table 1. While Painted PointPillars performed better than Painted PointRCNN on the val set, of the two only PointPillars has public code for nuScenes. Therefore, to establish the generality of PointPainting, we chose to submit Painted PointPillars results to nuScenes test, and use our KITTI submission on Painted PointRCNN.
+
+| Method | Modality | NDS | mAP |
| MonoDis [23] | Images | 38.4 | 30.4 |
| PointPillars [11, 1] | Lidar | 45.3 | 30.5 |
| PointPillars+ | Lidar | 55.0 | 40.1 |
| Painted PointPillars+ | Lidar & Images | 58.1 | 46.4 |
| MEGVII [35] | Lidar | 63.3 | 52.8 |
+
+Table 4. nuScenes test results. Detection performance is measured by nuScenes detection score (NDS) [1] and mean average precision (mAP).
+
+As shown in Table 2, PointPainting leads to a robust improvement on the test set for PointRCNN: the average precision increases for every single class across all strata. Painted PointRCNN establishes new state of the art performance on mAP and cyclist AP.
+
+Based on the consistency of Painted PointRCNN improvements between val and test (+2.73 and +2.94 respectively), and the generality of PointPainting (Table 1), it is reasonable to believe that other methods in Table 2 would decidedly improve with PointPainting. The strength, generality, robustness, and flexibility of PointPainting suggests that it is the leading method for image-lidar fusion.
+
+# 4.2.nuScenes
+
+To establish the versatility of PointPainting, we examine Painted PointPillars results on nuScenes. As a first step, we strengthened the lidar network baseline to PointPillars+. Even with this stronger baseline, PointPainting increases mean average precision (mAP) by $+6.3$ on the test set (Table 4). Painted PointPillars+ is only beat by MEGVII's lidar only method on nuScenes. However, MEGVII's network [35] is impractical for a realtime system since it is an extremely large two stage network that requires high resolution inputs and uses multi-scale inputs and ensembles for test evaluation. Therefore, Painted PointPillars+ is the leading realtime method on nuScenes.
+
+The detection performance generalized well across classes with every class receiving a boost in AP from PointPainting (Table 3). In general, the worst performing detection classes in PointPillars+ benefited the most from painting, but there were exceptions. First, traffic cones received the largest increase in AP (+16.8) despite already having robust PointPillars+ detections. This is likely because traffic cones often have very few lidar points on them, so the additional information provided by semantic segmentation is extremely valuable. Second, trailer and construction vehicles had lower detection gains, despite starting from a smaller baseline. This was a consequence of the segmentation network having its worst recall on these classes (overall recall of $72\%$ , but only $39\%$ on trailers and $40\%$ on construction vehicles; see Supplementary Material for details). Finally, despite a baseline of 76 AP, cars still received a +1.9 AP boost, signaling the value of semantic information even for
+
+
+Figure 5. PointPainting dependency on segmentation quality. The Painted PointPillars detection performance, as measured by mean average precision (mAP) on the val split, is compared with respect to the quality of semantic segmentation network used in the painting step, as measured by mean intersection over union (mIoU). The oracle uses the 3D bounding boxes as semantic segmentation.
+
+classes well detected by lidar only.
+
+# 4.3. Qualitative Analysis
+
+Here we give context to the evaluation metrics with some qualitative comparisons in Fig. 4 using Painted PointPillars, the best performing network on KITTI val set. In Fig. 4 A, original PointPillars correctly detects the cars, but misses a cyclist. The painted point cloud resolves this and the cyclist is detected. It also yields better orientation estimates for the vehicles. A common failure mode of lidar based methods is confusion between pedestrians and poles (Fig. 3). As expected, PointPainting can help resolve this (Fig. 4 B). Fig. 4 C suggests that the lidar detection step can correct incorrect painting. The loose segmentation masks in the image correctly paint nearby pedestrians, but extra paint also gets splattered onto the wall behind them. Despite this incorrect semantic information, the network does not predict false positive pedestrians. This leaves unanswered the precise characteristics of sem. seg. (e.g. precision vs recall) to optimize for PointPainting. In Fig. 4 D, Painted PointPillars predicts two false positive cyclists on the left because of two compounding mistakes. First, the sem. seg. network incorrectly predicts pedestrians as riders as they are so close to the parked bikes. Next, the heuristic that we used to resolve the discrepancy in the cyclist definition between detection and segmentation annotations (See Section 3.2) exacerbated the problem by painting all bikes with the cyclist class. However, throughout the rest of the crowded scene, the painted points lead to better oriented pedestrians, fewer false positives, and better detections of far away cars.
+
+# 5. Ablation Studies
+
+Here we perform ablation studies on the nuScenes dataset. All studies used the Painted PointPillars architecture and were trained for a quarter of the training time as compared to the test submissions. Using the one-cycle optimizer [24], we achieved 33.9 mAP and 46.3 NDS on the
+
+
+Figure 6. Reducing latency by pipelining. A Painted lidar network requires both point clouds and images. Using the most recent image (Concurrent Matching) adds latency since the lidar network must wait for the image segmentation results. This latency can be minimized using pipelining if the Painted network uses the segmentation mask of previous images (Consecutive Matching). Using consecutive matching, we found that Painted PointPillars only adds a latency of $0.75\mathrm{ms}$ over the original PointPillars architecture. See Supplementary Material for further details.
+
+
+
+nuScenes val set as opposed to 44.85 mAP and 57.34 NDS for full training of Painted PointPillars+.
+
+# 5.1. Dependency on Semantics
+
+Quality. In PointPainting, the lidar points are fused with the semantic segmentation of the image. We investigate the impact of the semantic segmentation quality on the final detection performance. Using nuScenes, we generate a series of sem. seg. networks with varying segmentation quality by using multiple intermediate checkpoints from training. As shown in Fig. 5, improved sem. seg. (as measured by mean IOU), leads to improved 3D object detection.
+
+For an upper bound, we include an "oracle" which uses the ground truth 3D boxes to paint the lidar points. This significantly improves the detection performance $(+27\mathrm{mAP})$ which demonstrates that advances in semantic segmentation would radically boost 3D object detection.
+
+Using the oracle doesn't guarantee a perfect mAP because of several limitations. First, the ground truth bounding box can contain irrelevant points (e.g. from the ground). Second, nuScenes annotates all objects that contain a single lidar point. Turning one lidar point into an accurate, oriented 3D bounding box is difficult. Third, we trained it for the same total time as the other ablation studies, but it would probably benefit from longer training. Finally, PointPillars' stochastic sampling of the point cloud could significantly filter, or eliminate, the points that contain semantic information if the ground truth object contains only a few points.
+
+Scores vs Labels. We investigate the effect of the segmentation prediction format on detection performance. To do so we convert the segmentation scores to a one hot encoding, effectively labelling each pixel as the class with the highest score. When using the labels instead of scores, the NDS was unchanged and the mAP was, surprisingly, $+0.4$ higher. However, the gains are marginal and within the noise of training. We also hypothesize that for future studies, a combination of calibrated [8] segmentation scores and
+
+| Method | Matching | NDS | mAP |
| Painted PointPillars | Concurrent | 46.3 | 33.9 |
| Painted PointPillars | Consecutive | 46.4 | 33.9 |
+
+Table 5. Time delay analysis. Painted PointPillars results on nuScenes when using concurrent matching (which incurs latency), or consecutive matching (which allows real-time pipelining) as shown in Figure 6. The use of the previous image minimizes latency without any drop in detection performance.
+
+a larger PointPillars encoder would perform better.
+
+Comparing these results with the segmentation quality ablation suggests that future research focuses more on improving segmentation quality and less on representation.
+
+# 5.2. Sensitivity to Timing
+
+We investigate the sensitivity of the lidar network to delays in semantic information. In the simplest scenario, which we used in all previous results, each point cloud is matched to the most recent image (Concurrent Matching - Fig. 6). However, this will introduce a latency in a real time system as the fusion step will have to wait for the image based sem. seg. scores. To eliminate the latency, the sem. seg. scores of the previous image can be pipelined into the lidar network (Consecutive Matching - Fig. 6). This involves an ego-motion compensation step where the lidar pointcloud is first transformed to the coordinate system of the ego-vehicle in the last frame followed by a projection into the image to get the segmentation scores. Our experiments suggest that using the previous images does not degrade detection performance (Table 5). Further, we measure that PointPainting only introduces an additional latency of $0.75\mathrm{ms}$ for the Painted PointPillars architecture (see Supplementary Material for details). This demonstrates that PointPainting can achieve high detection performance in a realtime system with minimal added latency.
+
+# 6. Conclusion
+
+In this paper, we present PointPainting, a novel sequential fusion method that paints lidar point clouds with image based semantics. PointPainting produces state of the art results on the KITTI and nuScenes challenges with multiple different lidar networks. The PointPainting framework is flexible and can combine the outputs of any segmentation network with any lidar network. The strength of these results and the general applicability demonstrate that PointPainting is the leading architecture when fusing image and lidar information for 3D object detection.
+
+# 7. Acknowledgements
+
+We thank Donghyeon Won, Varun Bankiti and Venice Liong for help with the semantic segmentation model for nuScenes, and Holger Caesar for access to nuImages.
+
+# References
+
+[1] H. Caesar, V. Bankiti, A. H. Lang, S. Vora, V. E. Liong, Q. Xu, A. Krishnan, Y. Pan, G. Baldan, and O. Beijbom. nuscenes: A multimodal dataset for autonomous driving. In CVPR, 2020. 1, 3, 4, 5, 6, 7
+[2] L.-C. Chen, Y. Zhu, G. Papandreou, F. Schroff, and H. Adam. Encoder-decoder with atrous separable convolution for semantic image segmentation. In Proceedings of the European conference on computer vision (ECCV), pages 801-818, 2018. 4
+[3] X. Chen, H. Ma, J. Wan, B. Li, and T. Xia. Multi-view 3d object detection network for autonomous driving. In CVPR, 2017. 1, 2, 5
+[4] B. Cheng, M. D. Collins, Y. Zhu, T. Liu, T. S. Huang, H. Adam, and L.-C. Chen. Panoptic-deeplab. ICCV Workshop, 2019. 3
+[5] M. Cordts, M. Omran, S. Ramos, T. Rehfeld, M. Enzweiler, R. Benenson, U. Franke, S. Roth, and B. Schiele. The Cityscapes dataset for semantic urban scene understanding. In CVPR, 2016. 5
+[6] A. Geiger, P. Lenz, and R. Urtasun. Are we ready for autonomous driving? the KITTI vision benchmark suite. In CVPR, 2012. 1, 5
+[7] N. Gerhard, T. Ollmann, S. R. Bulo, and P. Kontschieder. The Mapillary Vistas dataset for semantic understanding of street scenes. In ICCV, 2017. 5
+[8] C. Guo, G. Pleiss, Y. Sun, and K. Q. Weinberger. On calibration of modern neural networks. In ICML, 2017. 8
+[9] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In CVPR, 2016. 6
+[10] J. Ku, M. Mozifian, J. Lee, A. Harakeh, and S. Waslander. Joint 3d proposal generation and object detection from view aggregation. In IROS, 2018. 1, 2, 5
+[11] A. H. Lang, S. Vora, H. Caesar, L. Zhou, J. Yang, and O. Beijbom. Pointpillars: Fast encoders for object detection from point clouds. In CVPR, 2019. 1, 2, 3, 5, 6, 7
+[12] B. Li, T. Zhang, and T. Xia. Vehicle detection from 3d lidar using fully convolutional network. In RSS, 2016. 2
+[13] M. Liang, B. Yang, Y. Chen, R. Hu, and R. Urtasun. Multi-task multi-sensor fusion for 3d object detection. In CVPR, 2019. 1, 2, 5
+[14] M. Liang, B. Yang, S. Wang, and R. Urtasun. Deep continuous fusion for multi-sensor 3d object detection. In ECCV, 2018. 2
+[15] J. Long, E. Shelhamer, and T. Darrell. Fully convolutional networks for semantic segmentation. In CVPR, 2015. 6
+[16] G. P. Meyer, J. Charland, D. Hegde, A. Laddha, and C. Vallespi-Gonzalez. Sensor fusion for joint 3d object detection and semantic segmentation. In CVPR Workshop, 2019. 2
+[17] G. P. Meyer, A. Laddha, E. Kee, C. Vallespi-Gonzalez, and C. K. Wellington. Lasernet: An efficient probabilistic 3d object detector for autonomous driving. In CVPR, 2019. 2, 5
+[18] C. R. Qi, W. Liu, C. Wu, H. Su, and L. J. Guibas. Frustum pointnets for 3d object detection from RGB-D data. In CVPR, 2018. 1, 2, 5
+
+[19] F. A. Reda, G. Liu, K. J. Shih, R. Kirby, J. Barker, D. Tarjan, A. Tao, and B. Catanzaro. Sdc-net: Video prediction using spatially-displaced convolution. In Proceedings of the European Conference on Computer Vision (ECCV), pages 718-733, 2018. 4
+[20] T. Roddick, A. Kendall, and R. Cipolla. Orthographic feature transform for monocular 3d object detection. In BMVC, 2019. 2
+[21] S. Shi, X. Wang, and H. Li. Pointcnn: 3d object proposal generation and detection from point cloud. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2019. 1, 2, 3, 5, 6
+[22] M. Simon, S. Milz, K. Amende, and H.-M. Gross. Complex-yolo: Real-time 3d object detection on point clouds. CoRR, abs/1803.06199, 2018. 3, 5
+[23] A. Simonelli, S. Rota Bulo, L. Porzi, M. Lopez-Antequera, and P. Kontschieder. Disentangling monocular 3d object detection. ICCV, 2019. 7
+[24] L. N. Smith. A disciplined approach to neural network hyper-parameters: Part 1 – learning rate, batch size, momentum, and weight decay. arXiv preprint arXiv:1803.09820, 2018. 8
+[25] Y. Wang, W.-L. Chao, D. Garg, B. Hariharan, M. Campbell, and K. Q. Weinberger. Pseudo-lidar from visual depth estimation: Bridging the gap in 3d object detection for autonomous driving. In CVPR, 2019. 2
+[26] Z. Wang and K. Jia. Frustum convnet: Sliding frustums to aggregate local point-wise features for amodal 3d object detection. IROS, 2019. 2, 5
+[27] Z. Wang, W. Zhan, and M. Tomizuka. Fusing bird's eye view lidar point cloud and front view camera image for 3d object detection. In IVS, 2018. 1, 2
+[28] X. Weng and K. Kitani. Monocular 3d object detection with pseudo-lidar point cloud. ICCV Workshop, 2019. 2
+[29] Y. Yan, Y. Mao, and B. Li. SECOND: Sparsely embedded convolutional detection. Sensors, 18(10), 2018. 1, 2, 3, 5, 6
+[30] B. Yang, W. Luo, and R. Urtasun. **PIXOR: Real-time 3d object detection from point clouds.** In CVPR, 2018. 2, 3, 5
+[31] Z. Yang, Y. Sun, S. Liu, X. Shen, and J. Jia. Ipod: Intensive point-based object detector for point cloud. arXiv preprint arXiv:1812.05276, 2018. 2, 5
+[32] Z. Yang, Y. Sun, S. Liu, X. Shen, and J. Jia. Std: Sparse-to-dense 3d object detector for point cloud. In Proceedings of the IEEE International Conference on Computer Vision, pages 1951-1960, 2019. 1, 2, 5
+[33] Y. You, Y. Wang, W.-L. Chao, D. Garg, G. Pleiss, B. Hariharan, M. Campbell, and K. Q. Weinberger. Pseudo-lidar++: Accurate depth for 3d object detection in autonomous driving. ICLR, 2020. 1, 2
+[34] Y. Zhou and O. Tuzel. Voxelnet: End-to-end learning for point cloud based 3d object detection. In CVPR, 2018. 1, 2, 3, 5, 6
+[35] B. Zhu, Z. Jiang, X. Zhou, Z. Li, and G. Yu. Class-balanced grouping and sampling for point cloud 3d object detection. arXiv preprint arXiv:1908.09492, 2019. 6, 7
+[36] Y. Zhu, K. Sapra, F. A. Reda, K. J. Shih, S. Newsam, A. Tao, and B. Catanzaro. Improving semantic segmentation via video propagation and label relaxation. In CVPR, 2019. 3, 4
\ No newline at end of file
diff --git a/pointpaintingsequentialfusionfor3dobjectdetection/images.zip b/pointpaintingsequentialfusionfor3dobjectdetection/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..2e7cc46b238126620efa8b938f64a667f9035424
--- /dev/null
+++ b/pointpaintingsequentialfusionfor3dobjectdetection/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e87e1905a689b6eec9bf4ef98301951ad840abe80b0d72a1a8b5a0b3c42dfefb
+size 659213
diff --git a/pointpaintingsequentialfusionfor3dobjectdetection/layout.json b/pointpaintingsequentialfusionfor3dobjectdetection/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..4a080e4e1b37fb406a1d9f4191b23d10709509e6
--- /dev/null
+++ b/pointpaintingsequentialfusionfor3dobjectdetection/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4c7ba06a10d2dfdfaceb7ab28bea86906b3ce695706910e4d4786517a201c5ec
+size 343056
diff --git a/pointrendimagesegmentationasrendering/8340e42e-966f-4f3d-8d21-c3b7a2807551_content_list.json b/pointrendimagesegmentationasrendering/8340e42e-966f-4f3d-8d21-c3b7a2807551_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..e3f2b70580a213d066387f94e351ca54836331f5
--- /dev/null
+++ b/pointrendimagesegmentationasrendering/8340e42e-966f-4f3d-8d21-c3b7a2807551_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:98d1f389d941e41e0612f31e73cba0fb30267549e8e228505d7920cba3bb3866
+size 77490
diff --git a/pointrendimagesegmentationasrendering/8340e42e-966f-4f3d-8d21-c3b7a2807551_model.json b/pointrendimagesegmentationasrendering/8340e42e-966f-4f3d-8d21-c3b7a2807551_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..383474f752e41977b6ef95f08c37cd47e446373a
--- /dev/null
+++ b/pointrendimagesegmentationasrendering/8340e42e-966f-4f3d-8d21-c3b7a2807551_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f3013322d0c202cae1ffe8ed35cd9a6991e0541ced2e921b6b6427b470a1b5aa
+size 92228
diff --git a/pointrendimagesegmentationasrendering/8340e42e-966f-4f3d-8d21-c3b7a2807551_origin.pdf b/pointrendimagesegmentationasrendering/8340e42e-966f-4f3d-8d21-c3b7a2807551_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..cd133496891b41824cbccea10b0384954d83af87
--- /dev/null
+++ b/pointrendimagesegmentationasrendering/8340e42e-966f-4f3d-8d21-c3b7a2807551_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ccb492be2d055e350a9e962a0401157b8c80a517fd508797cffc6bfd4be0c412
+size 6102889
diff --git a/pointrendimagesegmentationasrendering/full.md b/pointrendimagesegmentationasrendering/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..fdb6723fb4389fc9a80db8a896a293982a6fc434
--- /dev/null
+++ b/pointrendimagesegmentationasrendering/full.md
@@ -0,0 +1,304 @@
+# PointRend: Image Segmentation as Rendering
+
+Alexander Kirillov Yuxin Wu Kaiming He Ross Girshick Facebook AI Research (FAIR)
+
+# Abstract
+
+We present a new method for efficient high-quality image segmentation of objects and scenes. By analogizing classical computer graphics methods for efficient rendering with over- and undersampling challenges faced in pixel labeling tasks, we develop a unique perspective of image segmentation as a rendering problem. From this vantage, we present the PointRend (Point-based Rendering) neural network module: a module that performs point-based segmentation predictions at adaptively selected locations based on an iterative subdivision algorithm. PointRend can be flexibly applied to both instance and semantic segmentation tasks by building on top of existing state-of-the-art models. While many concrete implementations of the general idea are possible, we show that a simple design already achieves excellent results. Qualitatively, PointRend outputs crisp object boundaries in regions that are oversmoothed by previous methods. Quantitatively, PointRend yields significant gains on COCO and Cityscapes, for both instance and semantic segmentation. PointRend's efficiency enables output resolutions that are otherwise impractical in terms of memory or computation compared to existing approaches. Code has been made available at https://github.com/facebookresearch/detectron2/tree/master/projects/PointRend.
+
+# 1. Introduction
+
+Image segmentation tasks involve mapping pixels sampled on a regular grid to a label map, or a set of label maps, on the same grid. For semantic segmentation, the label map indicates the predicted category at each pixel. In the case of instance segmentation, a binary foreground vs. background map is predicted for each detected object. The modern tools of choice for these tasks are built on convolutional neural networks (CNNs) [24, 23].
+
+CNNs for image segmentation typically operate on regular grids: the input image is a regular grid of pixels, their hidden representations are feature vectors on a regular grid, and their outputs are label maps on a regular grid. Regular grids are convenient, but not necessarily computation-
+
+
+Figure 1: Instance segmentation with PointRend. We introduce the PointRend (Point-based Rendering) module that makes predictions at adaptively sampled points on the image using a new point-based feature representation (see Fig. 3). PointRend is general and can be flexibly integrated into existing semantic and instance segmentation systems. When used to replace Mask R-CNN's default mask head [17] (top-left), PointRend yields significantly more detailed results (top-right). (bottom) During inference, PointRend iterative computes its prediction. Each step applies bilinear upsampling in smooth regions and makes higher resolution predictions at a small number of adaptively selected points that are likely to lie on object boundaries (black points). All figures in the paper are best viewed digitally with zoom. Image source: [36].
+
+ally ideal for image segmentation. The label maps predicted by these networks should be mostly smooth, i.e., neighboring pixels often take the same label, because high-frequency regions are restricted to the sparse boundaries between objects. A regular grid will unnecessarily oversample the smooth areas while simultaneously undersampling object boundaries. The result is excess computation in smooth regions and blurry contours (Fig. 1, upper-left). Image segmentation methods often predict labels on a low-resolution regular grid, e.g., 1/8-th of the input [30] for semantic segmentation, or $28 \times 28$ [17] for instance segmentation, as a compromise between undersampling and oversampling.
+
+Analogous sampling issues have been studied for decades in computer graphics. For example, a renderer maps a model (e.g., a 3D mesh) to a rasterized image, i.e. a
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 2: Example result pairs from Mask R-CNN [17] with its standard mask head (left image) vs. with PointRend (right image), using ResNet-50 [18] with FPN [25]. Note how PointRend predicts masks with substantially finer detail around object boundaries.
+
+
+
+
+
+
+
+
+
+regular grid of pixels. While the output is on a regular grid, computation is not allocated uniformly over the grid. Instead, a common graphics strategy is to compute pixel values at an irregular subset of adaptively selected points in the image plane. The classical subdivision technique of [43], as an example, yields a quadtree-like sampling pattern that efficiently renders an anti-aliased, high-resolution image.
+
+The central idea of this paper is to view image segmentation as a rendering problem and to adapt classical ideas from computer graphics to efficiently "render" high-quality label maps (see Fig. 1, bottom-left). We encapsulate this computational idea in a new neural network module, called PointRend, that uses a subdivision strategy to adaptively select a non-uniform set of points at which to compute labels. PointRend can be incorporated into popular meta-architectures for both instance segmentation (e.g., Mask R-CNN [17]) and semantic segmentation (e.g., FCN [30]). Its subdivision strategy efficiently computes high-resolution segmentation maps using an order of magnitude fewer floating-point operations than direct, dense computation.
+
+PointRend is a general module that admits many possible implementations. Viewed abstractly, a PointRend module accepts one or more typical CNN feature maps $f(x_{i},y_{i})$ that are defined over regular grids, and outputs high-resolution predictions $p(x_i',y_i')$ over a finer grid. Instead of making excessive predictions over all points on the
+
+output grid, PointRend makes predictions only on carefully selected points. To make these predictions, it extracts a point-wise feature representation for the selected points by interpolating $f$ , and uses a small point head subnetwork to predict output labels from the point-wise features. We will present a simple and effective PointRend implementation.
+
+We evaluate PointRend on instance and semantic segmentation tasks using the COCO [26] and Cityscapes [8] benchmarks. Qualitatively, PointRend efficiently computes sharp boundaries between objects, as illustrated in Fig. 2 and Fig. 8. We also observe quantitative improvements even though the standard intersection-over-union based metrics for these tasks (mask AP and mIoU) are biased towards object-interior pixels and are relatively insensitive to boundary improvements. PointRend improves strong Mask R-CNN and DeepLabV3 [4] models by a significant margin.
+
+# 2. Related Work
+
+Rendering algorithms in computer graphics output a regular grid of pixels. However, they usually compute these pixel values over a non-uniform set of points. Efficient procedures like subdivision [43] and adaptive sampling [33, 37] refine a coarse rasterization in areas where pixel values have larger variance. Ray-tracing renderers often use oversampling [45], a technique that samples some points more densely than the output grid to avoid aliasing effects. Here, we apply classical subdivision to image segmentation.
+
+Non-uniform grid representations. Computation on regular grids is the dominant paradigm for 2D image analysis, but this is not the case for other vision tasks. In 3D shape recognition, large 3D grids are infeasible due to cubic scaling. Most CNN-based approaches do not go beyond coarse $64 \times 64 \times 64$ grids [11, 7]. Instead, recent works consider more efficient non-uniform representations such as meshes [42, 13], signed distance functions [32], and octrees [41]. Similar to a signed distance function, PointRend can compute segmentation values at any point.
+
+Recently, Marin et al. [31] propose an efficient semantic segmentation network based on non-uniform subsampling of the input image prior to processing with a standard semantic segmentation network. PointRend, in contrast, focuses on non-uniform sampling at the output. It may be possible to combine the two approaches, though [31] is currently unproven for instance segmentation.
+
+Instance segmentation methods based on the Mask R-CNN meta-architecture [17] occupy top ranks in recent challenges [29, 2]. These region-based architectures typically predict masks on a $28 \times 28$ grid irrespective of object size. This is sufficient for small objects, but for large objects it produces undesirable "bobby" output that over-smooths the fine-level details of large objects (see Fig. 1, top-left). Alternative, bottom-up approaches group pixels to form object masks [28, 1, 22]. These methods can produce more detailed output, however, they lag behind region-based approaches on most instance segmentation benchmarks [26, 8, 35]. TensorMask [6], an alternative sliding-window method, uses a sophisticated network design to predict sharp high-resolution masks for large objects, but its accuracy also lags slightly behind. In this paper, we show that a region-based segmentation model equipped with PointRend can produce masks with fine-level details while improving the accuracy of region-based approaches.
+
+Semantic segmentation. Fully convolutional networks (FCNs) [30] are the foundation of modern semantic segmentation approaches. They often predict outputs that have lower resolution than the input grid and use bilinear upsampling to recover the remaining $8 - 16 \times$ resolution. Results may be improved with dilated/athrous convolutions that replace some subsampling layers [3, 4] at the expense of more memory and computation.
+
+Alternative approaches include encoder-decoder architectures [5, 21, 39, 40] that subsample the grid representation in the encoder and then upsample it in the decoder, using skip connections [39] to recover filtered details. Current approaches combine dilated convolutions with an encoder-decoder structure [5, 27] to produce output on a $4 \times$ sparser grid than the input grid before applying bilinear interpolation. In our work, we propose a method that can efficiently predict fine-level details on a grid as dense as the input grid.
+
+
+Figure 3: PointRend applied to instance segmentation. A standard network for instance segmentation (solid red arrows) takes an input image and yields a coarse $(e.g.7\times 7)$ mask prediction for each detected object (red box) using a lightweight segmentation head. To refine the coarse mask, PointRend selects a set of points (red dots) and makes prediction for each point independently with a small MLP. The MLP uses interpolated features computed at these points (dashed red arrows) from (1) a fine-grained feature map of the backbone CNN and (2) from the coarse prediction mask. The coarse mask features enable the MLP to make different predictions at a single point that is contained by two or more boxes. The proposed subdivision mask rendering algorithm (see Fig. 4 and §3.1) applies this process iteratively to refine uncertain regions of the predicted mask.
+
+# 3. Method
+
+We analogize image segmentation (of objects and/or scenes) in computer vision to image rendering in computer graphics. Rendering is about displaying a model (e.g., a 3D mesh) as a regular grid of pixels, i.e., an image. While the output representation is a regular grid, the underlying physical entity (e.g., the 3D model) is continuous and its physical occupancy and other attributes can be queried at any real-value point on the image plane using physical and geometric reasoning, such as ray-tracing.
+
+Analogously, in computer vision, we can think of an image segmentation as the occupancy map of an underlying continuous entity, and the segmentation output, which is a regular grid of predicted labels, is "rendered" from it. The entity is encoded in the network's feature maps and can be accessed at any point by interpolation. A parameterized function, that is trained to predict occupancy from these interpolated point-wise feature representations, is the counterpart to physical and geometric reasoning.
+
+Based on this analogy, we propose PointRend (Point-based Rendering) as a methodology for image segmentation using point representations. A PointRend module accepts one or more typical CNN feature maps of $C$ channels $f \in \mathbb{R}^{C \times H \times W}$ , each defined over a regular grid (that is typically $4 \times 16 \times$ coarser than the image grid), and
+
+outputs predictions for the $K$ class labels $p \in \mathbb{R}^{K \times H' \times W'}$ over a regular grid of different (and likely higher) resolution. A PointRend module consists of three main components: (i) A point selection strategy chooses a small number of real-value points to make predictions on, avoiding excessive computation for all pixels in the high-resolution output grid. (ii) For each selected point, a point-wise feature representation is extracted. Features for a real-value point are computed by bilinear interpolation of $f$ , using the point's 4 nearest neighbors that are on the regular grid of $f$ . As a result, it is able to utilize sub-pixel information encoded in the channel dimension of $f$ to predict a segmentation that has higher resolution than $f$ . (iii) A point head: a small neural network trained to predict a label from this point-wise feature representation, independently for each point.
+
+The PointRend architecture can be applied to instance segmentation (e.g., on Mask R-CNN [17]) and semantic segmentation (e.g., on FCNs [30]) tasks. For instance segmentation, PointRend is applied to each region. It computes masks in a coarse-to-fine fashion by making predictions over a set of selected points (see Fig. 3). For semantic segmentation, the whole image can be considered as a single region, and thus without loss of generality we will describe PointRend in the context of instance segmentation. We discuss the three main components in more detail next.
+
+# 3.1. Point Selection for Inference and Training
+
+At the core of our method is the idea of flexibly and adaptively selecting points in the image plane at which to predict segmentation labels. Intuitively, these points should be located more densely near high-frequency areas, such as object boundaries, analogous to the anti-aliasing problem in ray-tracing. We develop this idea for inference and training.
+
+Inference. Our selection strategy for inference is inspired by the classical technique of adaptive subdivision [43] in computer graphics. The technique is used to efficiently render high resolutions images (e.g., via ray-tracing) by computing only at locations where there is a high chance that the value is significantly different from its neighbors; for all other locations the values are obtained by interpolating already computed output values (starting from a coarse grid).
+
+For each region, we iteratively "render" the output mask in a coarse-to-fine fashion. The coarsest level prediction is made on the points on a regular grid (e.g., by using a standard coarse segmentation prediction head). In each iteration, PointRend upsamples its previously predicted segmentation using bilinear interpolation and then selects the $N$ most uncertain points (e.g., those with probabilities closest to 0.5 for a binary mask) on this denser grid. PointRend then computes the point-wise feature representation (described shortly in §3.2) for each of these $N$ points and predicts their labels. This process is repeated until the segmentation is upsampled to a desired resolution. One step of this procedure
+
+
+Figure 4: Example of one adaptive subdivision step. A prediction on a $4 \times 4$ grid is upsampled by $2 \times$ using bilinear interpolation. Then, PointRend makes prediction for the $N$ most ambiguous points (black dots) to recover detail on the finer grid. This process is repeated until the desired grid resolution is achieved.
+
+
+Figure 5: Point sampling during training. We show $N = 14^{2}$ points sampled using different strategies for the same underlying coarse prediction. To achieve high performance only a small number of points are sampled per region with a mildly biased sampling strategy making the system more efficient during training.
+
+is illustrated on a toy example in Fig. 4.
+
+With a desired output resolution of $M \times M$ pixels and a starting resolution of $M_0 \times M_0$ , PointRend requires no more than $N \log_2 \frac{M}{M_0}$ point predictions. This is much smaller than $M \times M$ , allowing PointRend to make high-resolution predictions much more effectively. For example, if $M_0$ is 7 and the desired resolutions is $M = 224$ , then 5 subdivision steps are preformed. If we select $N = 28^2$ points at each step, PointRend makes predictions for only $28^2 \cdot 4.25$ points, which is 15 times smaller than $224^2$ . Note that fewer than $N \log_2 \frac{M}{M_0}$ points are selected overall because in the first subdivision step only $14^2$ points are available.
+
+Training. During training, PointRend also needs to select points at which to construct point-wise features for training the point head. In principle, the point selection strategy can be similar to the subdivision strategy used in inference. However, subdivision introduces sequential steps that are less friendly to training neural networks with backpropagation. Instead, for training we use a non-iterative strategy based on random sampling.
+
+The sampling strategy selects $N$ points on a feature map to train on. It is designed to bias selection towards uncertain regions, while also retaining some degree of uniform coverage, using three principles. (i) Over generation: we over-generate candidate points by
+
+randomly sampling $kN$ points ( $k > 1$ ) from a uniform distribution. (ii) Importance sampling: we focus on points with uncertain coarse predictions by interpolating the coarse prediction values at all $kN$ points and computing a task-specific uncertainty estimate (defined in §4 and §5). The most uncertain $\beta N$ points ( $\beta \in [0,1]$ ) are selected from the $kN$ candidates. (iii) Coverage: the remaining $(1 - \beta)N$ points are sampled from a uniform distribution. We illustrate this procedure with different settings, and compare it to regular grid selection, in Fig. 5.
+
+At training time, predictions and loss functions are only computed on the $N$ sampled points (in addition to the coarse segmentation), which is simpler and more efficient than backpropagation through subdivision steps. This design is similar to the parallel training of RPN + Fast R-CNN in a Faster R-CNN system [12], whose inference is sequential.
+
+# 3.2. Point-wise Representation and Point Head
+
+PointRend constructs point-wise features at selected points by combining (e.g., concatenating) two feature types, fine-grained and coarse prediction features, described next.
+
+Fine-grained features. To allow PointRend to render fine segmentation details we extract a feature vector at each sampled point from CNN feature maps. Because a point is a real-value 2D coordinate, we perform bilinear interpolation on the feature maps to compute the feature vector, following standard practice [19, 17, 9]. Features can be extracted from a single feature map (e.g., $\mathrm{res}_2$ in a ResNet); they can also be extracted from multiple feature maps (e.g., $\mathrm{res}_2$ to $\mathrm{res}_5$ , or their feature pyramid [25] counterparts) and concatenated, following the Hypercolumn method [15].
+
+Coarse prediction features. The fine-grained features enable resolving detail, but are also deficient in two regards. First, they do not contain region-specific information and thus the same point overlapped by two instances' bounding boxes will have the same fine-grained features. Yet, the point can only be in the foreground of one instance. Therefore, for the task of instance segmentation, where different regions may predict different labels for the same point, additional region-specific information is needed.
+
+Second, depending on which feature maps are used for the fine-grained features, the features may contain only relatively low-level information (e.g., we will use $\mathrm{res}_2$ with DeepLabV3). In this case, a feature source with more contextual and semantic information can be helpful. This issue affects both instance and semantic segmentation.
+
+Based on these considerations, the second feature type is a coarse segmentation prediction from the network, i.e., a $K$ -dimensional vector at each point in the region (box) representing a $K$ -class prediction. The coarse resolution, by design, provides more globalized context, while the channels convey the semantic classes. These coarse predictions
+
+are similar to the outputs made by the existing architectures, and are supervised during training in the same way as existing models. For instance segmentation, the coarse prediction can be, for example, the output of a lightweight $7 \times 7$ resolution mask head in Mask R-CNN. For semantic segmentation, it can be, for example, predictions from a stride 16 feature map.
+
+Point head. Given the point-wise feature representation at each selected point, PointRend makes point-wise segmentation predictions using a simple multi-layer perceptron (MLP). This MLP shares weights across all points (and all regions), analogous to a graph convolution [20] or a PointNet [38]. Since the MLP predicts a segmentation label for each point, it can be trained by standard task-specific segmentation losses (described in §4 and §5).
+
+# 4. Experiments: Instance Segmentation
+
+Datasets. We use two standard instance segmentation datasets: COCO [26] and Cityscapes [8]. We report the standard mask AP metric [26] using the median of 3 runs for COCO and 5 for Cityscapes (it has higher variance).
+
+COCO has 80 categories with instance-level annotation. We train on train2017 ( $\sim$ 118k images) and report results on val2017 (5k images). As noted in [14], the COCO ground-truth is often coarse and AP for the dataset may not fully reflect improvements in mask quality. Therefore we supplement COCO results with AP measured using the 80 COCO category subset of LVIS [14], denoted by $\mathrm{AP}^{\star}$ . The LVIS annotations have significantly higher quality. Note that for $\mathrm{AP}^{\star}$ we use the same models trained on COCO and simply re-evaluate their predictions against the higher-quality LVIS annotations using the LVIS evaluation API.
+
+Cityscapes is an ego-centric street-scene dataset with 8 categories, 2975 train images, and 500 validation images. The images are higher resolution compared to COCO $(1024\times 2048$ pixels) and have finer, more pixel-accurate ground-truth instance segmentations.
+
+Architecture. Our experiments use Mask R-CNN with a ResNet-50 [18] + FPN [25] backbone. The default mask head in Mask R-CNN is a region-wise FCN, which we denote by “ $4 \times$ conv”. We use this as our baseline for comparison. For PointRend, we make appropriate modifications to this baseline, as described next.
+
+Lightweight, coarse mask prediction head. To compute the coarse prediction, we replace the $4 \times$ conv mask head with a lighter weight design that resembles Mask R-CNN's box head and produces a $7 \times 7$ mask prediction. Specifically, for each bounding box, we extract a $14 \times 14$ feature
+
+map from the $\mathrm{P}_2$ level of the FPN using bilinear interpolation. The features are computed on a regular grid inside the bounding box (this operation can seen as a simple version of RoIAlign). Next, we use a stride-two $2\times 2$ convolution layer with 256 output channels followed by ReLU [34], which reduces the spatial size to $7\times 7$ . Finally, similar to Mask R-CNN's box head, an MLP with two 1024-wide hidden layers is applied to yield a $7\times 7$ mask prediction for each of the $K$ classes. ReLU is used on the MLP's hidden layers and the sigmoid activation function is applied to its outputs.
+
+PointRend. At each selected point, a $K$ -dimensional feature vector is extracted from the coarse prediction head's output using bilinear interpolation. PointRend also interpolates a 256-dimensional feature vector from the $\mathbf{P}_2$ level of the FPN. This level has a stride of 4 w.r.t. the input image. These coarse prediction and fine-grained feature vectors are concatenated. We make a $K$ -class prediction at selected points using an MLP with 3 hidden layers with 256 channels. In each layer of the MLP, we supplement the 256 output channels with the $K$ coarse prediction features to make the input vector for the next layer. We use ReLU inside the MLP and apply sigmoid to its output.
+
+Training. We use the standard $1 \times$ training schedule and data augmentation from Detectron2 [44] by default (full details are in the appendix). For PointRend, we sample $14^{2}$ points using the biased sampling strategy described in the §3.1 with $k = 3$ and $\beta = 0.75$ . We use the distance between 0.5 and the probability of the ground truth class interpolated from the coarse prediction as the point-wise uncertainty measure. For a predicted box with ground-truth class $c$ , we sum the binary cross-entropy loss for the $c$ -th MLP output over the $14^{2}$ points. The lightweight coarse prediction head uses the average cross-entropy loss for the mask predicted for class $c$ , i.e., the same loss as the baseline $4 \times$ conv head. We sum all losses without any re-weighting.
+
+During training, Mask R-CNN applies the box and mask heads in parallel, while during inference they run as a cascade. We found that training as a cascade does not improve the baseline Mask R-CNN, but PointRend can benefit from it by sampling points inside more accurate boxes, slightly improving overall performance ( $\sim 0.2\%$ AP, absolute).
+
+Inference. For inference on a box with predicted class $c$ , unless otherwise specified, we use the adaptive subdivision technique to refine the coarse $7 \times 7$ prediction for class $c$ to the $224 \times 224$ in 5 steps. At each step, we select and update (at most) the $N = 28^2$ most uncertain points based on the absolute difference between the predictions and 0.5.
+
+# 4.1. Main Results
+
+We compare PointRend to the default $4 \times$ conv head in Mask R-CNN in Table 1. PointRend outperforms the default head on both datasets. The gap is larger when evaluat
+
+| mask head | output resolution | COCO | Cityscapes |
| AP | AP* | AP |
| 4× conv | 28×28 | 35.2 | 37.6 | 33.0 |
| PointRend | 28×28 | 36.1 (+0.9) | 39.2 (+1.6) | 35.5 (+2.5) |
| PointRend | 224×224 | 36.3 (+1.1) | 39.7 (+2.1) | 35.8 (+2.8) |
+
+
+Figure 6: PointRend inference with different output resolutions. High resolution masks align better with object boundaries.
+
+Table 1: PointRend vs. the default $4 \times$ conv mask head for Mask R-CNN [17]. Mask AP is reported. $\mathrm{AP}^{\star}$ is COCO mask AP evaluated against the higher-quality LVIS annotations [14] (see text for details). A ResNet-50-FPN backbone is used for both COCO and Cityscapes models. PointRend outperforms the standard $4 \times$ conv mask head both quantitively and qualitatively. Higher output resolution leads to more detailed predictions, see Fig. 2 and Fig. 6.
+
+| mask head | output resolution | FLOPs | # activations |
| 4× conv | 28×28 | 0.5B | 0.5M |
| 4× conv | 224×224 | 34B | 33M |
| PointRend | 224×224 | 0.9B | 0.7M |
+
+Table 2: FLOPs (multiply-adds) and activation counts for a ${224} \times {224}$ output resolution mask. PointRend's efficient subdivision makes ${224} \times {224}$ output feasible in contrast to the standard $4 \times$ conv mask head modified to use an RoIAlign size of ${112} \times {112}$ .
+
+ing the COCO categories using the LVIS annotations $(\mathrm{AP}^{\star})$ and for Cityscapes, which we attribute to the superior annotation quality in these datasets. Even with the same output resolution PointRend outperforms the baseline. The difference between $28\times 28$ and $224\times 224$ is relatively small because AP uses intersection-over-union [10] and, therefore, is heavily biased towards object-interior pixels and less sensitive to the boundary quality. Visually, however, the difference in boundary quality is obvious, see Fig. 6.
+
+Subdivision inference allows PointRend to yield a high resolution $224 \times 224$ prediction using more than 30 times less compute (FLOPs) and memory than the default $4 \times$ conv head needs to output the same resolution (based on taking a $112 \times 112$ RoIAlign input), see Table 2. PointRend makes high resolution output feasible in the Mask R-CNN framework by ignoring areas of an object where a coarse
+
+| output resolution | # points per subdivision step | COCO | Cityscapes AP |
| AP | AP* |
| 28×28 | 282 | 36.1 | 39.2 | 35.4 |
| 56×56 | 282 | 36.2 | 39.6 | 35.8 |
| 112×112 | 282 | 36.3 | 39.7 | 35.8 |
| 224×224 | 282 | 36.3 | 39.7 | 35.8 |
| 224×224 | 142 | 36.1 | 39.4 | 35.5 |
| 224×224 | 282 | 36.3 | 39.7 | 35.8 |
| 224×224 | 562 | 36.3 | 39.7 | 35.8 |
| 224×224 | 1122 | 36.3 | 39.7 | 35.8 |
+
+
+Figure 7: Anti-aliasing with PointRend. Precise object delineation requires output mask resolution to match or exceed the resolution of the input image region that the object occupies.
+
+prediction is sufficient (e.g., in the areas far away from object boundaries). In terms of wall-clock runtime, our unoptimized implementation outputs $224 \times 224$ masks at $\sim 13$ fps, which is roughly the same frame-rate as a $4 \times$ conv head modified to output $56 \times 56$ masks (by doubling the default RoIAlign size), a design that actually has lower COCO AP compared to the $28 \times 28$ $4 \times$ conv head ( $34.5\%$ vs. $35.2\%$ ).
+
+Table 3 shows PointRend subdivision inference with different output resolutions and number of points selected at each subdivision step. Predicting masks at a higher resolution can improve results. Though AP saturates, visual improvements are still apparent when moving from lower (e.g., $56 \times 56$ ) to higher (e.g., $224 \times 224$ ) resolution outputs, see Fig. 7. AP also saturates with the number of points sampled in each subdivision step because points are selected in the most ambiguous areas first. Additional points may make predictions in the areas where a coarse prediction is already sufficient. For objects with complex boundaries, however, using more points may be beneficial.
+
+Table 3: Subdivision inference parameters. Higher output resolution improves AP. Although improvements saturate quickly (at underlined values) with the number of points sampled at each subdivision step, qualitative results may continue to improve for complex objects. $\mathrm{AP}^{\star}$ is COCO mask AP evaluated against the higher-quality LVIS annotations [14] (see text for details).
+
+| selection strategy | COCO | Cityscapes |
| AP | AP* | AP |
| regular grid | 35.7 | 39.1 | 34.4 |
| uniform (k=1,β=0.0) | 35.9 | 39.0 | 34.5 |
| mildly biased (k=3,β=0.75) | 36.3 | 39.7 | 35.8 |
| heavily biased (k=10,β=1.0) | 34.4 | 37.5 | 34.1 |
+
+Table 4: Training-time point selection strategies with $14^{2}$ points per box. Mildly biasing sampling towards uncertain regions performs the best. Heavily biased sampling performs even worse than uniform or regular grid sampling indicating the importance of coverage. $\mathrm{AP}^{\star}$ is COCO mask AP evaluated against the higher-quality LVIS annotations [14] (see text for details).
+
+| mask head | backbone | COCO |
| AP | AP* |
| 4× conv | R50-FPN | 37.2 | 39.5 |
| PointRend | R50-FPN | 38.2 (+1.0) | 41.5 (+2.0) |
| 4× conv | R101-FPN | 38.6 | 41.4 |
| PointRend | R101-FPN | 39.8 (+1.2) | 43.5 (+2.1) |
| 4× conv | X101-FPN | 39.5 | 42.1 |
| PointRend | X101-FPN | 40.9 (+1.4) | 44.9 (+2.8) |
+
+Table 5: Larger models and a longer $3 \times$ schedule [16]. PointRend benefits from more advanced models and the longer training. The gap between PointRend and the default mask head in Mask R-CNN holds. AP\* is COCO mask AP evaluated against the higher-quality LVIS annotations [14] (see text for details).
+
+# 4.2. Ablation Experiments
+
+We conduct a number of ablations to analyze PointRend. In general we note that it is robust to the exact design of the point head MLP. Changes of its depth or width do not show any significant difference in our experiments.
+
+Point selection during training. During training we select $14^{2}$ points per object following the biased sampling strategy (§3.1). Sampling only $14^{2}$ points makes training computationally and memory efficient and we found that using more points does not improve results. Surprisingly, sampling only 49 points per box still maintains AP, though we observe an increased variance in AP.
+
+Table 4 shows PointRend performance with different selection strategies during training. Regular grid selection achieves similar results to uniform sampling. Whereas biasing sampling toward ambiguous areas improves AP. However, a sampling strategy that is biased too heavily towards boundaries of the coarse prediction ( $k > 10$ and $\beta$ close to 1.0) decreases AP. Overall, we find a wide range of parameters $2 < k < 5$ and $0.75 < \beta < 1.0$ delivers similar results.
+
+Larger models, longer training. Training ResNet-50 + FPN (denoted R50-FPN) with the $1 \times$ schedule under-fits on COCO. In Table 5 we show that the PointRend improvements over the baseline hold with both longer training schedule and larger models (see the appendix for details).
+
+
+Mask R-CNN + 4×conv
+
+
+Mask R-CNN + PointRend
+
+
+DeeplabV3
+
+
+DeeplabV3 + PointRend
+
+
+Figure 8: Cityscapes example results for instance and semantic segmentation. In instance segmentation larger objects benefit more from PointRend ability to yield high resolution output. Whereas for semantic segmentation PointRend recovers small objects and details.
+
+
+
+
+
+
+
+# 5. Experiments: Semantic Segmentation
+
+PointRend is not limited to instance segmentation and can be extended to other pixel-level recognition tasks. Here, we demonstrate that PointRend can benefit two semantic segmentation models: DeeplabV3 [4], which uses dilated convolutions to make prediction on a denser grid, and SemanticFPN [21], a simple encoder-decoder architecture.
+
+Dataset. We use the Cityscapes [8] semantic segmentation set with 19 categories, 2975 training images, and 500 validation images. We report the median mIoU of 5 trials.
+
+Implementation details. We reimplemented DeeplabV3 and SemanticFPN following their respective papers. SemanticFPN uses a standard ResNet-101 [18], whereas DeeplabV3 uses the ResNet-103 proposed in [4].3 We follow the original papers' training schedules and data augmentation (details are in the appendix).
+
+We use the same PointRend architecture as for instance segmentation. Coarse prediction features come from the (already coarse) output of the semantic segmentation model. Fine-grained features are interpolated from $\mathrm{res}_2$ for DeeplabV3 and from $\mathbf{P}_2$ for SemanticFPN. During training we sample as many points as there are on a stride 16 feature map of the input (2304 for deeplabV3 and 2048 for SemanticFPN). We use the same $k = 3$ , $\beta = 0.75$ point selection strategy. During inference, subdivision uses $N = 8096$ (i.e., the number of points in the stride 16 map of a $1024\times 2048$ image) until reaching the input image resolution. To measure prediction uncertainty we use the same strategy during training and inference: the difference between the most confident and second most confident class probabilities.
+
+DeeplabV3. In Table 6 we compare DeepLabV3 to DeeplabV3 with PointRend. The output resolution can also be increased by $2 \times$ at inference by using dilated convolutions in $\mathrm{res}_4$ stage, as described in [4]. Compared to both,
+
+| method | output resolution | mIoU |
| DeeplabV3-OS-16 | 64×128 | 77.2 |
| DeeplabV3-OS-8 | 128×256 | 77.8 (+0.6) |
| DeeplabV3-OS-16 + PointRend | 1024×2048 | 78.4 (+1.2) |
+
+Table 6: DeeplabV3 with PointRend for Cityscapes semantic segmentation outperforms baseline DeepLabV3. Dilating the $\mathrm{res}_4$ stage during inference yields a larger, more accurate prediction, but at much higher computational and memory costs; it is still inferior to using PointRend.
+
+
+Figure 9: PointRend inference for semantic segmentation. PointRend refines prediction scores for areas where a coarser prediction is not sufficient. To visualize the scores at each step we take arg max at given resolution without bilinear interpolation.
+
+| method | output resolution | mIoU |
| SemanticFPN P2-P5 | 256×512 | 77.7 |
| SemanticFPN P2-P5 + PointRend | 1024×2048 | 78.6 (+0.9) |
| SemanticFPN P3-P5 | 128×256 | 77.4 |
| SemanticFPN P3-P5 + PointRend | 1024×2048 | 78.5 (+1.1) |
+
+Table 7: SemanticFPN with PointRend for Cityscapes semantic segmentation outperform the baseline SemanticFPN.
+
+PointRend has higher mIoU. Qualitative improvements are also evident, see Fig. 8. By sampling points adaptively, PointRend reaches $1024 \times 2048$ resolution (i.e. 2M points) by making predictions for only $32k$ points, see Fig. 9.
+
+SemanticFPN. Table 7 shows that SemanticFPN with PointRend improves over both $8 \times$ and $4 \times$ output stride variants without PointRend.
+
+# References
+
+[1] Anurag Arnab and Philip HS Torr. Pixelwise instance segmentation with a dynamically instantiated network. In CVPR, 2017. 3
+[2] 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. 3
+[3] 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. PAMI, 2018. 3
+[4] Liang-Chieh Chen, George Papandreou, Florian Schroff, and Hartwig Adam. Rethinking atrous convolution for semantic image segmentation. arXiv:1706.05587, 2017. 2, 3, 8
+[5] 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. 3
+[6] Xinlei Chen, Ross Girshick, Kaiming He, and Piotr Dólar. TensorMask: A foundation for dense object segmentation. In ICCV, 2019. 3
+[7] 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 ECCV, 2016. 3
+[8] 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, 3, 5, 8
+[9] Jifeng Dai, Haozhi Qi, Yuwen Xiong, Yi Li, Guodong Zhang, Han Hu, and Yichen Wei. Deformable convolutional networks. In ICCV, 2017. 5
+[10] Mark Everingham, SM Ali Eslami, Luc Van Gool, Christopher KI Williams, John Winn, and Andrew Zisserman. The PASCAL visual object classes challenge: A retrospective. IJCV, 2015. 6
+[11] Rohit Girdhar, David F Fouhey, Mikel Rodriguez, and Abhinav Gupta. Learning a predictable and generative vector representation for objects. In ECCV, 2016. 3
+[12] Ross Girshick. Fast R-CNN. In ICCV, 2015. 5
+[13] Georgia Gkioxari, Jitendra Malik, and Justin Johnson. Mesh R-CNN. In ICCV, 2019. 3
+[14] Agrim Gupta, Piotr Dollar, and Ross Girshick. LVIS: A dataset for large vocabulary instance segmentation. In ICCV, 2019. 5, 6, 7
+[15] Bharath Hariharan, Pablo Arbeláez, Ross Girshick, and Jitendra Malik. Hypercolumns for object segmentation and fine-grained localization. In CVPR, 2015. 5
+[16] Kaiming He, Ross Girshick, and Piotr Dólar. Rethinking imagenet pre-training. In ICCV, 2019. 7
+[17] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross Girshick. Mask R-CNN. In ICCV, 2017. 1, 2, 3, 4, 5, 6
+[18] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 2, 5, 8
+
+[19] Max Jaderberg, Karen Simonyan, Andrew Zisserman, and Koray Kavukcuoglu. Spatial transformer networks. In NIPS, 2015. 5
+[20] Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. *ICLR*, 2017. 5
+[21] Alexander Kirillov, Ross Girshick, Kaiming He, and Piotr Dollár. Panoptic feature pyramid networks. In CVPR, 2019. 3, 8
+[22] Alexander Kirillov, Evgeny Levinkov, Bjoern Andres, Bogdan Savchynskyy, and Carsten Rother. InstanceCut: from edges to instances with multicut. In CVPR, 2017. 3
+[23] Alex Krizhevsky, Ilya Sutskever, and Geoff Hinton. ImageNet classification with deep convolutional neural networks. In NIPS, 2012. 1
+[24] Yann LeCun, Bernhard Boser, John S Denker, Donnie Henderson, Richard E Howard, Wayne Hubbard, and Lawrence D Jackel. Backpropagation applied to handwritten zip code recognition. Neural computation, 1989. 1
+[25] Tsung-Yi Lin, Piotr Dólar, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. Feature pyramid networks for object detection. In CVPR, 2017. 2, 5
+[26] 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. 2, 3, 5
+[27] 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. 3
+[28] Shu Liu, Jiaya Jia, Sanja Fidler, and Raquel Urtasun. SGN: Sequential grouping networks for instance segmentation. In CVPR, 2017. 3
+[29] Shu Liu, Lu Qi, Haifang Qin, Jianping Shi, and Jiaya Jia. Path aggregation network for instance segmentation. In CVPR, 2018. 3
+[30] Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In CVPR, 2015. 1, 2, 3, 4
+[31] Dmitrii Marin, Zijian He, Peter Vajda, Priyam Chatterjee, Sam Tsai, Fei Yang, and Yuri Boykov. Efficient segmentation: Learning downsampling near semantic boundaries. In ICCV, 2019. 3
+[32] Lars Mescheder, Michael Oechsle, Michael Niemeyer, Sebastian Nowozin, and Andreas Geiger. Occupancy networks: Learning 3d reconstruction in function space. In CVPR, 2019. 3
+[33] Don P Mitchell. Generating antialiased images at low sampling densities. ACM SIGGRAPH Computer Graphics, 1987. 2
+[34] Vinod Nair and Geoffrey E Hinton. Rectified linear units improve restricted boltzmann machines. In ICML, 2010. 6
+[35] Gerhard Neuhold, Tobias Ollmann, Samuel Rota Bulò, and Peter Kontschieder. The mapillary vistas dataset for semantic understanding of street scenes. In CVPR, 2017. 3
+[36] Paphio. Jo-Wilfried Tsonga [19]. CC BY-NC-SA 2.0. https://www.flickr.com/photos/paphio/2855627782/, 2008. 1
+
+[37] Matt Pharr, Wenzel Jakob, and Greg Humphreys. Physically based rendering: From theory to implementation, chapter 7. Morgan Kaufmann, 2016. 2
+[38] Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. PointNet: Deep learning on point sets for 3D classification and segmentation. In CVPR, 2017. 5
+[39] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-Net: Convolutional networks for biomedical image segmentation. In MICCAI, 2015. 3
+[40] 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. 3
+[41] Maxim Tatarchenko, Alexey Dosovitskiy, and Thomas Brox. Octree generating networks: Efficient convolutional architectures for high-resolution 3D outputs. In ICCV, 2017. 3
+[42] 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. 3
+[43] Turner Whitted. An improved illumination model for shaded display. In ACM SIGGRAPH Computer Graphics, 1979. 2, 4
+[44] Yuxin Wu, Alexander Kirillov, Francisco Massa, Wan-Yen Lo, and Ross Girshick. Detector2. https://github.com/facebookresearch/detectron2, 2019.6
+[45] Kun Zhou, Qiming Hou, Rui Wang, and Baining Guo. Real-time kd-tree construction on graphics hardware. In ACM Transactions on Graphics (TOG), 2008. 2
\ No newline at end of file
diff --git a/pointrendimagesegmentationasrendering/images.zip b/pointrendimagesegmentationasrendering/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..1c519f1a54176cc99bed5b8a77a3468500bbe05c
--- /dev/null
+++ b/pointrendimagesegmentationasrendering/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8c4fb23b03645d136aa58e059ac0ddb56e82204065149ea6ba3ba2ff4eb95c83
+size 773480
diff --git a/pointrendimagesegmentationasrendering/layout.json b/pointrendimagesegmentationasrendering/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..02653152a0648d5b0f2e494bd9da9327dc0666db
--- /dev/null
+++ b/pointrendimagesegmentationasrendering/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0b2e6d5e414024e44e8a55b97568271038ec3bf98c6ebc3f29e243efcb8ea5eb
+size 434028
diff --git a/polarizednonlineofsightimaging/27730d24-829d-4aab-8b00-f80dd47fefdf_content_list.json b/polarizednonlineofsightimaging/27730d24-829d-4aab-8b00-f80dd47fefdf_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..8356cb27bec689046bf8cf638b1661eb8bc3dd4f
--- /dev/null
+++ b/polarizednonlineofsightimaging/27730d24-829d-4aab-8b00-f80dd47fefdf_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bd8fd2d3554d02fd18e0be2b54f727beadb0829168b75e7574c4500feacc7b30
+size 82455
diff --git a/polarizednonlineofsightimaging/27730d24-829d-4aab-8b00-f80dd47fefdf_model.json b/polarizednonlineofsightimaging/27730d24-829d-4aab-8b00-f80dd47fefdf_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..deff3b304772a1de23f930774124bbb5cec4c75c
--- /dev/null
+++ b/polarizednonlineofsightimaging/27730d24-829d-4aab-8b00-f80dd47fefdf_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:57bbc92bf5b5f25be63f7283c8f9c85594d1636cd1f298761a9b8812f6aa68ef
+size 102272
diff --git a/polarizednonlineofsightimaging/27730d24-829d-4aab-8b00-f80dd47fefdf_origin.pdf b/polarizednonlineofsightimaging/27730d24-829d-4aab-8b00-f80dd47fefdf_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..045d441bd35daf44a90300645ffa58f736987714
--- /dev/null
+++ b/polarizednonlineofsightimaging/27730d24-829d-4aab-8b00-f80dd47fefdf_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4c5200d3d6b16a91e65c6942d7da342ae9182692e15140a579b31216ac123eeb
+size 1152216
diff --git a/polarizednonlineofsightimaging/full.md b/polarizednonlineofsightimaging/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..14f764e72961b3d0d696dd15dd741f9afaebbbdf
--- /dev/null
+++ b/polarizednonlineofsightimaging/full.md
@@ -0,0 +1,398 @@
+# Polarized Non-Line-of-Sight Imaging
+
+Kenichiro Tanaka $^{1,2}$ Yasuhiro Mukaigawa $^{1}$ Achuta Kadambi $^{2}$
+
+$^{1}$ Nara Institute of Science and Technology (NAIST), Japan
+
+$^{2}$ University of California, Los Angeles (UCLA), USA
+
+{ktanaka, mukaigawa}@is.naist.jp achuta@ee.ucla.edu
+
+# Abstract
+
+This paper presents a method of passive non-line-of-sight (NLOS) imaging using polarization cues. A key observation is that the oblique light has a different polarimetric signal. It turns out this effect is due to the polarization axis rotation, a phenomena which can be used to better condition the light transport matrix for non-line-of-sight imaging. Our analysis and results show that the use of a polarization for NLOS is both a standalone technique, as well as an enhancement technique to boost the results of other forms of passive NLOS imaging. We make a surprising finding that, despite $50\%$ light attenuation from polarization optics, the gains from polarized NLOS are overall superior to unpolarized NLOS.
+
+# 1. Introduction
+
+Non-Line-of-Sight (NLOS) imaging is an active research topic in computational imaging. The goal is to visualize a scene that is hidden from the camera's line of sight, e.g., "looking around the corners". Several prior works have tackled this problem, using methods that range from (a) time of flight imaging [49, 22, 33, 37, 32, 35, 46, 6, 17, 11, 52, 47, 36, 2]; (b) wave optics [25, 12, 11, 52]; (c) shadows [5, 44, 53, 3, 43]; and even (d) machine learning [42, 10, 8]. This paper takes a different tack, proposing the use of polarization cues to re-examine the NLOS problem.
+
+Of particular interest is passive NLOS imaging where one is unable to control the probing illumination. Such limited programmable control makes scene reconstruction very challenging—existing passive NLOS methods [39] offer blurry reconstructions, as compared to active NLOS. This "blur" in existing passive NLOS methods can be mathematically linked to the scene's light transport matrix. To obtain better recovery, previous work aims to reduce the condition number of the light transport matrix. This has been done, for example, by placing a partial occluder in the scene to create high-frequency shadows [39].
+
+Our method is analogous to prior approaches in passive NLOS, but we make a first attempt to use (linear) polarization cues to improve the conditioning of the light transport matrix. Our method creates high-frequency variation in the light transport matrix by, ideally placing the camera at the Brewster angle of polarization.
+
+In this angle, the reflected light is linear polarized and can be analyzed by the polarizer. We also found that the polarizer's blocking axis varies depending on the oblique viewing angle and changes the intensity. We refer this effect as effective angle of polarizer. We show in the paper that this oblique observation provably changes the conditioning of the light transport matrix. Further, these benefits of polarization can apply to multiple configurations for passive NLOS. For example, polarization can be used to enhance occluder-based passive NLOS or direct passive NLOS imaging.
+
+In summary, we make the following contributions:
+
+- We bring the polarizer's effective angle theory to the computer vision field. The polarizer's transmitting/blocking axis depends on both zenith and azimuth angle of the light ray, which conveys rich angular information;
+- We demonstrate that the polarization cues are able to improve the conditioning of the light transport for passive NLOS imaging without scene modifications; and
+- We demonstrate that the same polarization cues also improve other passive NLOS approaches, including those that use partial occluders.
+
+Scope: While polarization is a fresh signal for use in NLOS imaging, the quality of passive NLOS (after polarization enhancement) does not approach that of active methods, which have been shown to obtain extremely high-fidelity reconstructions. However, our polarization enhancement is fundamentally more general than the results we present here. A future extension details how the proposed technique could apply to active NLOS imaging, covered in the appendix.
+
+# 2. Related Work
+
+In this section, we briefly review the related work regarding NLOS imaging. For a more comprehensive review of NLOS imaging, the readers are directed to [27].
+
+Active NLOS imaging. NLOS imaging was first proposed in the context of active, time-resolved imaging by Raskar and Davis [38]. Later work experimentally demonstrated and theoretically evolved these ideas through the use of time of flight imagers, in particular streak cameras [49, 48, 22, 33], amplitude-modulated continuous-wave cameras [16, 20, 19], and single photon avalanche diodes (SPAD) and SPAD cameras [37, 32, 35, 46, 6, 17, 11, 52, 47, 36, 2]. There are other methods of performing active NLOS imaging that do not require time resolved information. For example, a coherent light source reveals occluded cues [4]. An object movement can also be tracked by speckle [40] or synthesis-based approaches [23]. Recent work has used a standard RGB camera and laser source to realize active NLOS [10]. Ding et al. [13] analyze the polarized light reflection to separate specular and diffuse reflection on the LOS wall. While active illumination increases the scene information, we choose to focus on enhancing the lower-performing, but more flexible configuration of passive NLOS imaging.
+
+Passive NLOS imaging There are fewer works that study the hard problem of passive NLOS. One promising approach is to use shadows and corners. Bouman et al. [5] use the high-frequency detail of a corner to track occluded scenes (this work is partially inspired by accidental pin-hole cameras [44]). An extension of this is proposed in [39, 53, 15], where a partial obstacle is placed between the wall and NLOS scene. An orthogonal approach is to image thermal scenes around the corner. Here, heat is passively emitted by the human body, which simplifies the NLOS problem to a 1-bounce reflection, enabling high-quality video of a human figure, in real-time [28, 21]. Our technique is complementary, as polarization can enhance the quality of most methods referenced above.
+
+Analysis of NLOS imaging The recoverability of NLOS imaging depends on many factors. Kadambi et al. [20] propose the first bound on the spatial resolution of NLOS imaging, and in particular active NLOS. Liu et al. [24] analyze the feature visibility of SPAD-based NLOS imaging. Saunders et al. [39] analyze the aperture of NLOS imaging using the size of the LOS wall and the obstacles. Pediredla et al. [36] propose a temporal focusing using ellipsoidal projection. In this paper, we follow the structure of previous techniques in analyzing how the condition number of the light transport matrix is favorably modified through the use of polarization cues.
+
+
+Figure 1: Diagram of the geometry of the problem. The camera is looking at the wall and the scene point is out of sight of the camera. On a microfacet model, each reflection path can be considered as a sum of mirror reflections, hence the polarization is preserved.
+
+Polarization cues Polarization cues can be used for 3D geometry recovery [18, 31, 51, 9, 26] and imaging through scattering media [45, 41, 14]. We firstly use the polarization cues for enhancing passive NLOS imaging.
+
+Polarizer at oblique view In the LCD development field, the light leakage of polarizer from oblique view is a major problem [54, 34]. While they aim to cancel this effect, we bring this effect to improve the NLOS imaging problem.
+
+# 3. Light Transport: Passive NLOS Imaging
+
+Suppose a camera is pointed toward the line-of-sight (LOS) wall and the scene is non-line-of-sight (NLOS) to the camera as shown in Fig. 1. Without loss of generality, we consider that the NLOS scene is a set of point light sources. Then, the intensity $I(\mathbf{c})$ at the wall patch $\mathbf{c}$ is given by
+
+$$
+I (\mathbf {c}) = \iint_ {\mathbf {s} \in \mathcal {S}} T (\mathbf {s}, \mathbf {c}) l (\mathbf {s}) d \mathbf {s}, \tag {1}
+$$
+
+where $\mathbf{s}$ is a point in the scene $S$ , $l(\mathbf{s})$ is the intensity of the scene point $\mathbf{s}$ , and $T(\mathbf{s},\mathbf{c})$ is the light transport from the scene point $\mathbf{s}$ to the camera via the wall patch $\mathbf{c}$ . The model can be discretized as
+
+$$
+\mathbf {i} = \mathbf {T l}, \tag {2}
+$$
+
+where $\mathbf{i}$ is the vectorized observations, $\mathbf{T}$ is the light transport matrix, and $\mathbf{l}$ is the vectorized scene intensities. If the light transport matrix is known or generatable, the NLOS intensities can be estimated by least squares sense as
+
+$$
+\hat {\mathbf {l}} = \mathbf {T} ^ {+} \mathbf {i}, \tag {3}
+$$
+
+where $\mathbf{T}^{+}$ is the pseudo-inverse matrix of $\mathbf{T}$ . The stability of solving this linear system depends on how small the condition number of the matrix is. A key goal of previous methods has been to improve the conditioning of Eq. (3).
+
+Previous methods of conditioning Eq. (3): Perhaps the simplest way to decrease the condition number is to use a favorable bidirectional reflectance distribution function (BRDF). A trivial case is the mirror, which makes the lowest condition number because the light transport matrix becomes identity. An opposite example is the diffuse wall, which makes a very large condition number because the single light source contributes to the all camera pixels. The conditioning of using other materials that have specularity are between the mirror and the diffuse wall because they somehow preserve high frequency component. Extended discussion on this topic can be found in [20]. Another way to improve the conditioning is to place obstacles in the scene, such as putting a partial obstacle between the wall and the scene. Saunders et al. [39] place an arbitrary obstacle between the camera and the wall to block the light rays. This makes a shadow on the wall, which contains high-frequency information. For more detail, the readers are referred to papers that use obstacles [39, 53, 15]. Both of these approaches modify the scene.
+
+# 4. Light Transport: Polarized NLOS Imaging
+
+We aim to minimize modifications to the scene for conditioning Equation 3 using polarization. Hence, we only use a polarizer at the camera side. This approach is also able to conditioning the existing method using partial occluders. If putting a partial occluder to the scene is tolerable, combining the existing method and the proposed method improves the conditioning further.
+
+By putting a polarizer in front of the camera, a small angular difference of light paths makes a big intensity variance, thus the conditioning is improved compared to a normal observation without polarizer. A key observation of this paper is that the polarizer's effective axis is slightly rotated if the light ray is oblique to the polarizer. In other words, the perpendicular light rays are blocked while oblique light rays pass through the polarizer. In the following section, we reveal how the polarization light transport is modeled in passive NLOS imaging.
+
+Polarized NLOS scenes If the NLOS scene itself is polarized, then we can exploit cross-polarization effects to improve the NLOS problem even more. Further detail is deferred to the supplementary material.
+
+# 4.1. Effective angle of polarizer
+
+We introduce the effective angle of a polarizer, which is well studied in the area of LCD development [54, 34]. When the light ray is oblique to the polarizer, the light is 'leaked' even if two linear polarizers are put crossed. This is because the effective polarization axis of the polarizer depends on the azimuth and zenith angle of the incident light
+
+
+(a) Top view
+
+
+(b) Oblique views
+
+
+
+
+(c) Top view
+
+
+
+
+(d) Oblique view
+(e) Leakage pattern
+Figure 2: Polarizer from oblique view. While the LCD monitor is invisible from top view (a), it is slightly visible from certain oblique views depending on the zenith and azimuth angles (b). (c) The original angle of polarizer from top view. (d) The effective angle from oblique view. The polarizer axis is slightly declined. (e) Light leakage pattern of crossed polarizers from oblique view. These polarizers' original angles are $45^{\circ}$ and $-45^{\circ}$ , respectively.
+
+ray. Figure 2(a, b) shows pictures of the same scene from top and oblique views. While the light from the LCD is blocked on the top view, the content of the LCD is slightly visible from oblique view even though the polarizer is put crossed. This effect is angle dependent, therefore it can be used for analyzing NLOS observations.
+
+Light leakage occurs because the effective angle of the polarizer changes due to the light ray's azimuth and zenith angles. From a geometrical calculation, the effective angle $\theta^{\prime}$ from the incident light viewpoint is represented as
+
+$$
+\tan \theta^ {\prime} = - \frac {\cos (z)}{\tan (\theta - a)}, \tag {4}
+$$
+
+where $\theta$ is the original polarizer's axis, i.e., the polarizer's axis from top view, $a$ and $z$ are azimuth and zenith angles of the incident ray, respectively. As $\theta'$ is the angle between the polarizer and the polarized light, it is wrapped between 0 and $\pi/2$ . Figure 2(c - e) shows the original and effective angles of polarizers and the light leakage pattern of crossed polarizers. This pattern can be utilized to improve the NLOS imaging.
+
+# 4.2. Polarization light transport on rough surface
+
+Now, we consider the polarization light transport model on a rough surface. In this paper, we employ a microfacet model for the rough surface, shown in the inset of
+
+$$
+T (\mathbf {s}, \mathbf {c}) = \Omega \left(\omega_ {\mathrm {i}}, \omega_ {\mathrm {o}}\right) \lambda \left(\omega_ {\mathrm {i}}, \omega_ {\mathrm {o}}, \mathbf {q}\right), \tag {5}
+$$
+
+$$
+\left\{ \begin{array}{l l} \omega_ {\mathbf {i}} & = \frac {\mathbf {s} - \mathbf {c}}{\| \mathbf {s} - \mathbf {c} \| _ {2}}, \\ \omega_ {\mathbf {o}} & = \frac {\mathbf {o} - \mathbf {c}}{\| \mathbf {o} - \mathbf {c} \| _ {2}}, \end{array} \right.
+$$
+
+where $\Omega$ is the BRDF of the rough surface, $\omega_{\mathbf{o}}$ is the viewing vector, $\omega_{\mathrm{i}}$ is the incident vector, $\mathbf{o}$ is the camera position, $\lambda$ is the light leaking/blocking effect due to polarizer, and $\mathbf{q}$ is the polarizer's axis. The polarizer modulates light transport by introducing the leakage term $\lambda$ , which makes the improvement to the light transport matrix.
+
+As we assume the microfacet model, the reflection on each facet can be modelled as a Fresnel reflection. The Fresnel reflection is known to be partially polarized and reflectances of s and p polarization components $R_{s}$ and $R_{p}$ can be represented as
+
+$$
+R _ {p} (\phi) = \frac {\tan^ {2} \left(\phi - \phi^ {\prime}\right)}{\tan^ {2} \left(\phi + \phi^ {\prime}\right)}, \tag {6}
+$$
+
+$$
+R _ {s} (\phi) = \frac {\sin^ {2} \left(\phi - \phi^ {\prime}\right)}{\sin^ {2} \left(\phi + \phi^ {\prime}\right)}, \tag {7}
+$$
+
+$$
+\phi^ {\prime} = \sin^ {- 1} \frac {\sin (\phi)}{\eta}, \tag {8}
+$$
+
+where $\phi$ is the incident angle, $\phi^\prime$ is the refractive angle, and $\eta$ is the refractive index of the wall.
+
+When the incident and reflection angle is at Brewster angle, the reflected light is completely linearly polarized. This is because the reflectance of p polarization becomes zero. By putting the camera at near the Brewster angle position as shown in Fig. 3, highly polarized observations can be obtained, thus the observation can be analyzed with a polarizer in front of the camera.
+
+Placing a polarizer in front of the camera such that the polarized reflection is blocked at a specific light path, leads to the observation of a light leakage pattern. Because the other light paths from neighboring wall points are oblique to the polarizer's blocking axis, the leakage pattern can be observed as shown in the right of Fig. 3.
+
+The leakage pattern $\lambda$ can be modeled as
+
+$$
+\lambda \left(\omega_ {\mathbf {i}}, \omega_ {\mathbf {o}}, \mathbf {q}\right) = R _ {p} \left(\theta_ {h}\right) \cos \left(\theta^ {\prime}\right) + R _ {s} \left(\theta_ {h}\right) \sin \left(\theta^ {\prime}\right), \tag {9}
+$$
+
+$$
+\left\{ \begin{array}{l l} \theta_ {h} & = \frac {1}{2} \cos^ {- 1} (\boldsymbol {\omega} _ {\mathbf {o}} \cdot \boldsymbol {\omega} _ {\mathbf {i}}) \\ \theta^ {\prime} & = \tan^ {- 1} \left(- \frac {\cos (z)}{\tan (\theta - a)}\right) \\ z & = \cos^ {- 1} (- \boldsymbol {\omega} _ {\mathbf {o}} \mathbf {n} _ {\mathbf {p}}) \\ \theta - a & = \cos^ {- 1} (- \mathbf {w q}) \\ \mathbf {w} & = \frac {\boldsymbol {\omega} _ {\mathbf {o}} + \cos (z) \mathbf {n} _ {\mathbf {p}}}{\| \boldsymbol {\omega} _ {\mathbf {o}} + \cos (z) \mathbf {n} _ {\mathbf {p}} \| _ {2}} \end{array} \right.
+$$
+
+
+Fig. 1. The surface normal of each facet that reflects the light source to the camera is identical to the half vector of the viewing and lighting vectors. Therefore, the light transport $T(\mathbf{s},\mathbf{c})$ from the scene point s to the camera via the wall patch c is represented as
+Figure 3: The Brewster angle geometry. Putting the camera so that light path is at Brewster angle, only one directional polarization (s polarization component) is reflected to the camera. Because there is no effect from p polarization, it is possible to observe a light leakage pattern only using a polarizer in front of the camera. The right image is the actual observation of the reflection of a unpolarized point light source.
+
+where $\mathbf{q}$ is the polarizer's axis, $\theta_h$ is the half angle of the reflection path, $\theta'$ is the effective angle of the polarizer, and $\mathbf{n}_p$ is the normal of the polarizer.
+
+Combination with the existing method Polarization light transport can be combined with existing method such as putting partial occluder in the scene [39]. The light transport matrix in this case becomes
+
+$$
+T (\mathbf {c}, \mathbf {s}) = T ^ {\prime} (\mathbf {c}, \mathbf {s}) \lambda \left(\omega_ {\mathbf {i}}, \omega_ {\mathbf {o}}, \mathbf {q}\right), \tag {10}
+$$
+
+where $T'$ is the light transport matrix of the existing method. Again, the difference is the existence of $\lambda$ and this improves the condition number of the light transport matrix.
+
+# 4.3. Other factors
+
+Polarized scene Although most NLOS scenes are unpolarized, in the rare cases where the NLOS scene is polarized, our method is extremely advantageous. Consider that if the scene is polarized such as an LCD monitor, Eq. (9) can be rewritten as
+
+$$
+\lambda \left(\omega_ {\mathbf {i}}, \omega_ {\mathbf {o}}, \mathbf {q}\right) = I _ {p} R _ {p} \left(\theta_ {h}\right) \cos \left(\theta^ {\prime}\right) + I _ {s} R _ {s} \left(\theta_ {h}\right) \sin \left(\theta^ {\prime}\right), \tag {11}
+$$
+
+where $I_{p}$ and $I_{s}$ is the intensity of p and s polarization components of the scene. Here, it is possible to place the polarizer at an angle where one of the polarization components becomes zero. Therefore, there is no restriction of having the capture setup oriented to the Brewster angle, as in the general case we have described above. We expand on this discussion in the supplement, and show results.
+
+Why not rotate the polarizer? This paper relies on taking 1 image from a polarization filter at 90 degrees (parallel to the reflection plane). A natural question is whether
+
+
+Same exposure
+Figure 4: Comparison to rotating the polarizer. The upper row is the captured images of the same exposure time, and the lower images are normalized at each maximum value. The dark band, where the light is completely blocked by polarizer, is a key observation and only appears around 90 degrees.
+
+
+
+
+
+
+
+
+Figure 5: Camera position and reflection plane. (a) Using a single camera position, only one direction is encoded in the image. The intensity variance of horizontal direction is not so improved. (b) Using multiple camera positions, the scene can be encoded by multiple directions.
+
+the filter can be rotated to take multiple pictures. Since we rely on a leakage pattern, there is little benefit to capturing multiple images, as the variation in polarization images at angles other than 90 degrees is subtle, while the capture effort increases linearly. Very specifically, the key improvement from using polarizers comes from the 'dark band' in the image as shown in Fig. 4. Figure 4 shows the observation image while rotating the polarizer and without the polarizer. The dark band, where the light is blocked, appears only around 90 degrees, while other angles look similar to the image without the polarizer.
+
+Multiple camera positions The leakage pattern appears parallel to the reflection plane. Figure 5(a) shows the actual measurement of the wall, where the scene is a point light source. There is large intensity variance in the vertical direction, and therefore the vertical information is better preserved. On the other hand, the horizontal intensity variance
+
+Standalone
+
+ | w/o | rotating | single | multiple |
| Cond. num. | 686.8 | 486.3 | 357.0 | 327.9 |
| Percentage | - | 70.8% | 52.0% | 47.7% |
| With partial occluder |
| w/o | rotating | single | multiple |
| Cond. num. | 172.3 | 170.6 | 146.1 | 113.9 |
| Percentage | - | 99.0% | 84.8% | 66.1% |
+
+Table 1: Condition number comparison. Methods without polarizer, rotating polarizer, crossed polarizer from a single camera position, and crossed polarizer from multiple camera positions are compared. Our method has the lowest condition number.
+
+is lower and likely to the unpolarized observations. To overcome the slim variance in the horizontal direction, it is possible to capture the scene from multiple camera positions, enabling the capture of perpendicular reflection planes as shown in Fig. 5(b).
+
+# 5. Simulation
+
+Our simulations verify that polarization leakage can be used to improve the condition number of the light transport matrix.
+
+Condition number The effectiveness of the method is confirmed by examining the condition number of light transport matrices. The lower condition number gives better recovery quality. The camera and the light source are placed $10\mathrm{cm}$ from the wall. The image is $7\times 7$ pixels and the scene is $3\times 3$ pixels, so the matrix is $49\times 9$ . The light sources are placed on a plane and not polarized. For a single image observation, the geometry of Fig. 5(a) is selected, and for multiple camera settings, the geometry of Fig. 5(b) is used. The condition number for each setting is summarized in Table 1. Our method has the smallest condition number, indicating the potential for about two times better recoverability. Likewise, we also show the case when there is a partial occluder in the same table. We observe through simulation that the condition number is improved using a polarizer as well.
+
+Improvement w.r.t. wall roughness The effectiveness of this method depends on the type of the wall. To confirm this, the improvement in condition number is evaluated while changing the roughness of the wall. The roughness is changed from 0 (mirror-like) to 1 (completely diffuse). The plot of the condition number and improvement ratio is shown in Fig. 6. For all roughness parameters, it is observed that the polarization cues improve the condition number.
+
+
+Figure 6: Condition number with respect to the roughness of the wall. Lower the better. The roughness ranges 0 (mirror-like) to 1 (diffuse-like). Our method has the lowest condition number for all roughness parameter.
+
+Although the plots of single and multiple cameras look similar, we observe that the multiple camera setting is always slightly better than single camera setting. When the roughness decreases, the wall becomes mirror-like and there is no improvement using a polarizer because the NLOS scene is originally visible. The best performance is observed at the middle of specular and diffuse reflections, where a lot of materials have such peculiarities [30].
+
+# 6. Experiment
+
+Real experiments are consistent with simulations: polarization improves NLOS image reconstruction. For all following experiments, we use ADMM to solve Eq. (2), consisting of a 2D total variation regularizer with a box constraint. For clarity, we estimate
+
+$$
+\hat {\mathbf {l}} = \underset {\mathbf {l}} {\operatorname {a r g m i n}} \| \mathbf {i} - \mathbf {T l} \| _ {2} ^ {2} + \lambda T V _ {2 D} (\mathbf {l}) \tag {12}
+$$
+
+$$
+\mathrm {s . t .} \quad 0 \preceq 1 \preceq 1.
+$$
+
+Because this is a convex optimization problem, it can be solved in a polynomial time. For all cases, the BRDF of the wall is measured beforehand.
+
+Polarized NLOS Firstly, we evaluate the polarized NLOS without partial occluder. For numerical evaluation of nonpolarized scene, a projector is used to project the scene image. Figure 7 shows the setup and the result. Two images are compared with and without the polarizer in front of the camera. While it is difficult to see the projected scenes if the polarizer is not used, the scene is visible using the polarizer. We also projected more images, which can be found in the supplementary material. The table shows the numerical evaluation of the results. Peak signal to noise ration (PSNR), zero-mean normalized cross correlation (ZNCC), and structural similarity (SSIM) are used. It is confirmed
+
+
+Polarized NLOS without partial occluder
+
+
+
+
+Figure 7: Polarized NLOS results without occluder. A projector is used for numerical evaluation and to make the scene unpolarized. The scene is recovered with and without the polarizer in front of the camera. Using polarization, the recovered images are improved. Improvement is confirmed by comparing condition number and three image measures.
+
+
+
+
+
+
+
+ | Baseline | Polarization enhancement |
| condition number | 2961 | 2012 |
| PSNR | 6.7 dB | 7.3 dB |
| ZNCC | 0.45 | 0.65 |
| SSIM | 0.25 | 0.28 |
+
+that the condition number is decreased and the recovered image is improved for every image metric if the polarization is used.
+
+Polarized NLOS w/ partial occluder for reflective objects Here, we show that Polarized NLOS can also enhance existing techniques. As shown in Fig. 8 top-left, we reproduce the partial occluder method from Saunders et al. [39]. Reflective object scenes are recovered in this experiment and enhanced by polarization. Figure 8 shows the setup, the target object, the recovered result by the existing method, and the enhanced result by polarization. The target object is lit by an uncontrolled light source. In the results of the baseline method, it is difficult to see the resolution chart and the content of the book. On the other hand, our technique recovers images with higher contrast. The clear texture of resolution chart and printed materials are visualized in detail. The observed image is $160 \times 100$ pixels and
+
+
+Polarized NLOS with partial occluder for reflective objects
+
+
+
+
+Figure 8: Results for reflective objects. Top-left: the setting of the experiment. The scene is a reflective object (not selfluminous). 1st row: The photograph of target objects. 2nd row: The recovered images by the baseline method [39]. Bottom row: The recovered images by our method. High frequency details are recovered. Clear detail of resolution charts, sharp edge of apple, and the detailed shape of bears are clearly visualized. PSNR values are calculated with homography-transformed photograph for reference.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+the scene is $56 \times 40$ pixels, so the matrix is $16000 \times 2240$ . The exposure is 5 seconds. The processing time to solve Eq. (12) takes approximately 1.5 seconds. Our method quantitatively and qualitatively improves the reconstruction. We provide more diverse scenes in the supplement.
+
+Comparing our enhancement to image processing An interesting question that is raised is whether the performance improvements we obtain could be achieved by applying image post-processing algorithms to conventional NLOS (without polarization). Figure 9 shows the result of projected images and also includes the result of applying image post-processing. The baseline method in this case is [39]. Here, a total variation (TV) denoising algorithm $[7]^2$ and a deep learning image processor (neural enhance) [1] are used. While the image is improved by post processing, it is impossible to recover the higher frequency component that is lost on the wall reflection, because recovering lost information is mathematically impossible. On the other hand, our method recovers higher frequency detail, which is preserved by polarization light transport. PSNR, ZNCC, and
+
+SSIM values show significant improvement.
+
+# 7. Discussion
+
+In summary, there are two surprising findings from this paper. The first surprising finding is that polarized NLOS has superior results to ordinary NLOS. The finding is a surprise as initially we were not sure if any method could overcome the $50\%$ light loss inherent to using a polarization filter. We are cautiously optimistic, now that this paper has surpassed the break-even point by a considerable margin. The second surprising finding is that our polarization paper does not actually leverage the rotation angle of the polarizing filter. In contrast, we use the principle of leakage, observed when one views an liquid crystal display off-axis.
+
+Our method is not without assumptions, though our practical results substantiate the validity of our assumptions. For instance, we assume that the wall preserves polarization. This holds for many rough surfaces, although for certain surfaces the signal can be subtle. Concretely, walls that have a dominant subsurface scattering, such as plastic and plaster, can be more challenging because one loses the polarization property, i.e., the ratio of polarization due to Fresnel reflection becomes low. In the future, we might seek to
+
+combine rotational and angular effects of polarizing filters, where the former has been shown to be a driving force for 3D scene geometry [18]. In addition, we may also leverage polarized event cameras [29, 55, 50] to identify the subtle signal.
+
+In conclusion, we believe that, despite the 50 percent light loss, polarization can enhance a large swath of NLOS imaging methods. As shown in the appendix, the proposed method can be extended to active NLOS imaging techniques as well. We hope this paper spurs interest in using polarization as an additional tool in NLOS imaging.
+
+# Appendix: On Active NLOS Imaging
+
+Followed by the previous work [2, 16, 35, 22, 49], an active NLOS imaging using time-of-flight measurement can be modeled as
+
+$$
+\begin{array}{l} i (t; \mathbf {p}, \mathbf {c}) = \iiint_ {\mathbf {s} \in \mathcal {S}} \rho (\mathbf {s}) \frac {\delta \left(\| \mathbf {s} - \mathbf {p} \| + \| \mathbf {s} - \mathbf {c} \| - c t\right)}{\| \mathbf {s} - \mathbf {p} \| ^ {2} \| \mathbf {s} - \mathbf {c} \| ^ {2}} \times \\ \Omega \left(\omega_ {\mathrm {i} l}, \omega_ {\mathrm {o} l}\right) \Omega \left(\omega_ {\mathrm {i} c}, \omega_ {\mathrm {o} c}\right) d \mathbf {s}, \tag {13} \\ \left\{ \begin{array}{l l} \boldsymbol {\omega} _ {\mathbf {i} l} & = \frac {\mathbf {s} - \mathbf {p}}{\| \mathbf {s} - \mathbf {p} \| _ {2}}, \\ \boldsymbol {\omega} _ {\mathbf {o} l} & = \frac {\mathbf {o} - \mathbf {p}}{\| \mathbf {o} - \mathbf {p} \| _ {2}}, \\ \boldsymbol {\omega} _ {\mathbf {i} c} & = \frac {\mathbf {s} - \mathbf {c}}{\| \mathbf {s} - \mathbf {c} \| _ {2}}, \\ \boldsymbol {\omega} _ {\mathbf {o} c} & = \frac {\mathbf {o} - \mathbf {c}}{\| \mathbf {o} - \mathbf {c} \| _ {2}}, \end{array} \right. \\ \end{array}
+$$
+
+where $i(t; \mathbf{p}, \mathbf{c})$ is the temporal transient observation at the wall patch $\mathbf{c}$ by illuminating the wall patch $\mathbf{p}$ by a pulsed light, $\rho$ is the 3D NLOS albedo, $\delta$ is the Dirac delta function, $c$ is the speed of light, and $\Omega$ is the BRDF of the LOS wall. Discretizing, we obtain
+
+$$
+\mathbf {i} = \mathbf {T} \boldsymbol {\rho}, \tag {14}
+$$
+
+where $\mathbf{T}$ is the light transport matrix of active NLOS model and $\rho$ is the vectorized NLOS albedo.
+
+Analogous to the passive case, when we put a polarizer in front of the camera, Eq. (13) is altered as
+
+$$
+\begin{array}{l} i ^ {\prime} (t; \mathbf {p}, \mathbf {c}) = \iiint_ {\mathbf {s} \in \mathcal {S}} \rho (\mathbf {s}) \frac {\delta \left(\| \mathbf {s} - \mathbf {p} \| + \| \mathbf {s} - \mathbf {c} \| - c t\right)}{\| \mathbf {s} - \mathbf {p} \| ^ {2} \| \mathbf {s} - \mathbf {c} \| ^ {2}} \times \\ \Omega \left(\omega_ {\mathrm {i} l}, \omega_ {\mathrm {o} l}\right) \Omega \left(\omega_ {\mathrm {i} c}, \omega_ {\mathrm {o} c}\right) \lambda \left(\omega_ {\mathrm {i} c}, \omega_ {\mathrm {o} c}, \mathbf {q}\right) d \mathbf {s}, \tag {15} \\ \end{array}
+$$
+
+where the light transport is modulated by the leakage term $\lambda$ . Note that the polarization state of active light source is ignored because the light is assumed to be depolarized at the NLOS scene reflection.
+
+Simulation We confirm the effectiveness of polarized NLOS for active NLOS imaging through a simulation. Figure 10 shows the condition number of the light transport matrix changing with scene configurations including wall's roughness parameter and the spatial resolution of NLOS scene. For all configurations, polarization cues improve the conditioning of the active NLOS imaging.
+
+Polarized NLOS vs. Post image processing
+
+| Polarization enhanced [1] Neural [2] TV [7] Baseline [32] Scene |
| PSNR | 7.2 dB | 8.8 dB | 8.4 dB | 11.7 dB |
| ZNCC | 0.50 | 0.66 | 0.61 | 0.87 |
| SSIM | 0.29 | 0.37 | 0.31 | 0.43 |
+
+
+Figure 9: Polarized NLOS exceeds the quality of conventional NLOS with image processing. The results of polarized NLOS with partial occluders. The result of the baseline method [39], TV denoised [7], image enhancement by neural network [1], and the result of our method are compared.
+Figure 10: Condition number of active NLOS. The condition number of active setting is compared. The spatial resolution $\kappa$ and the wall's roughness $\gamma$ are changed. Using the polarization cues, the condition number is improved in the active setting for multiple scene configurations.
+
+Acknowledgments This work is partly supported by JSPS Kaken JP18H03265. Achuta Kadambi is supported by an NSF Research Initiation Award (IIS 1849941), and a Young Faculty Award from Sony Imaging.
+
+# References
+
+[1] Neural Enhance, Date accessed: Nov. 13th, 2019. https://github.com/alexjc/neural-enhance.7,8
+[2] Byeongjoo Ahn, Akshit Dave, Ashok Veeraraghavan, Ioannis Gkioulekas, and Aswin C. Sankaranarayanan. Convolutional approximations to the general non-line-of-sight imaging operator. In The IEEE International Conference on Computer Vision, October 2019. 1, 2, 8
+[3] Manel Baradad, Vickie Ye, Adam B. Yedidia, Frédo Durand, William T. Freeman, Gregory W. Wornell, and Antonio Torralba. Inferring light fields from shadows. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 6267-6275, June 2018. 1
+[4] Andre Beckus, Alexandru Tamasan, and George K. Atia. Multi-modal Non-line-of-sight passive imaging. arXiv, pages 1-10, 2018. 2
+[5] Katherine L. Bouman, Vickie Ye, Adam B. Yedidia, Fredo Durand, Gregory W. Wornell, Antonio Torralba, and William T. Freeman. Turning corners into cameras: Principles and methods. In IEEE International Conference on Computer Vision, pages 2289-2297. IEEE, Oct 2017. 1, 2
+[6] Mauro Buttafava, Jessica Zeman, Alberto Tosi, Kevin Eliceiri, and Andreas Velten. Non-line-of-sight imaging using a time-gated single photon avalanche diode. Optics Express, 23(16):20997, Aug 2015. 1, 2
+[7] Antonin Chambolle. An algorithm for total variation minimization and applications. Journal of Mathematical Imaging and Vision, 20:89-97, 2004. 7, 8
+[8] Sreenithy Chandran and Suren Jayasuriya. Adaptive lighting for data-driven non-line-of-sight 3d localization and object identification. arXiv, May 2018. 1
+[9] Tongbo Chen, Hendrik P A Lensch, Christian Fuchs, and Hans Peter Seidel. Polarization and phase-shifting for 3D scanning of translucent objects. In IEEE Computer Society Conference on Computer Vision and Pattern Recognition, 2007. 2
+[10] Wenzheng Chen, Simon Daneau, Fahim Mannan, and Felix Heide. Steady-state non-line-of-sight imaging. In IEEE Conference on Computer Vision and Pattern Recognition, pages 6790-6799. IEEE, 2019. 1, 2
+[11] David B. Lindell, Gordon Wetzstein, and Matthew O'Toole. Wave-based non-line-of-sight imaging using fast f-k migration. ACM Transactions on Graphics, 38(4):116, 2019. 1, 2
+[12] David B. Lindell, Gordon Wetzstein, and Vladlen Koltun. Acoustic non-line-of-sight imaging. In IEEE Conference on Computer Vision and Pattern Recognition, 2019. 1
+[13] Yitian Ding, Ronan Kerviche, Amit Ashok, and Stanley Pau. Eavesdropping of display devices by measurement of polarized reflected light. Applied Optics, 57(19):5483-5491, 2018. 2
+[14] Julien Fade, Swapnesh Panigrahi, Anthony Carre, Ludovic Frein, Cyril Hamel, Fabien Bretenaker, Hema Ramachandran, and Mehdi Alouini. Long-range polarimetric imaging through fog. Applied Optics, 53(18), 2014. 2
+[15] Felix Heide, Matthew O'Toole, Kai Zang, David B. Lindell, Steven Diamond, and Gordon Wetzstein. Non-line-of-sight
+
+imaging with partial occluders and surface normals. ACM Transactions on Graphics, 38(3):1-10, May 2019. 2, 3
+[16] Felix Heide, Lei Xiao, Wolfgang Heidrich, and Matthias B. Hullin. Diffuse mirrors: 3D reconstruction from diffuse indirect illumination using inexpensive time-of-flight sensors. In IEEE Conference on Computer Vision and Pattern Recognition, 2014. 2, 8
+[17] Julian Iseringhausen and Matthias B. Hullin. Non-line-of-sight reconstruction using efficient transient rendering. arXiv, Sep 2018. 1, 2
+[18] Achuta Kadambi, Vage Taamazyan, Boxin Shi, and Ramesh Raskar. Polarized 3D: High-Quality Depth Sensing with Polarization Cues. In IEEE International Conference on Computer Vision, pages 3370-3378. IEEE, Dec 2015. 2, 8
+[19] Achuta Kadambi, Refael Whyte, Ayush Bhandari, Lee Streeter, Christopher Barsi, Adrian Dorrington, and Ramesh Raskar. Coded time of flight cameras: Sparse deconvolution to address multipath interference and recover time profiles. ACM Transactions on Graphics, 32(6):1-10, Nov 2013. 2
+[20] Achuta Kadambi, Hang Zhao, Boxin Shi, and Ramesh Raskar. Occluded imaging with time-of-flight sensors. ACM Transactions on Graphics, 35(2):1-12, Mar 2016. 2, 3
+[21] Masaki Kaga, Takahiro Kushida, Tsuyoshi Takatani, Kenichiro Tanaka, Takuya Funatomi, and Yasuhiro Mukaigawa. Thermal non-line-of-sight imaging using diffuse and specular reflections. IPSJ Transactions on Computer Vision and Applications, 11:1-6, 2019. 2
+[22] Ahmed Kirmani, Tyler Hutchison, James Davis, and Ramesh Raskar. Looking around the corner using ultrafast transient imaging. International Journal of Computer Vision, 95(1):13-28, June 2011. 1, 2, 8
+[23] Jonathan Klein, Christoph Peters, Jaime Martin, Martin Laurenzis, and Matthias B. Hullin. Tracking objects outside the line of sight using 2D intensity images. Scientific Reports, 6(1):32491, Oct 2016. 2
+[24] Xiaochun Liu, Sebastian Bauer, and Andreas Velten. Analysis of feature visibility in non-line-of-sight measurements. In IEEE Conference on Computer Vision and Pattern Recognition, pages 10140-10148, 2019. 2
+[25] Xiaochun Liu, Ibón Guillén, Marco La Manna, Ji Hyun Nam, Syed Azer Reza, Toan Huu Le, Adrian Jarabo, Diego Gutierrez, and Andreas Velten. Non-line-of-sight imaging using phasor-field virtual wave optics. Nature, 572(7771), 2019. 1
+[26] Tomohiro Maeda, Achuta Kadambi, Yoav Y. Schechner, and Ramesh Raskar. Dynamic heterodyne interferometry. In IEEE International Conference on Computational Photography, pages 1-11. IEEE, May 2018. 2
+[27] Tomohiro Maeda, Guy Satat, Tristan Swedish, Lagnojita Sinha, and Ramesh Raskar. Recent advances in imaging around corners. arXiv, Oct 2019. 2
+[28] Tomohiro Maeda, Yiqin Wang, Ramesh Raskar, and Achuta Kadambi. Thermal non-line-of-sight imaging. In IEEE International Conference on Computational Photography, pages 1-11. IEEE, May 2019. 2
+[29] Nathan Matsuda, Oliver Cossairt, and Mohit Gupta. Mc3d: Motion contrast 3d scanning. In 2015 IEEE International
+
+Conference on Computational Photography, pages 1-10. IEEE, 2015. 8
+[30] Wojciech Matusik, Hanspeter Pfister, Matt Brand, and Leonard McMillan. A data-driven reflectance model. ACM Transactions on Graphics, 22(3):759--769, 2003. 6
+[31] Daisuke Miyazaki and Katsushi Ikeuchi. Inverse Polarization Raytracing: Estimating Surface Shapes of Transparent Objects. In IEEE Computer Society Conference on Computer Vision and Pattern Recognition, volume 2, pages 910-917. IEEE, 2005. 2
+[32] Gabriella Musarra, Ashley Lyons, Enrico Conca, Yoann Altmann, Federica Villa, Franco Zappa, Miles J. Padgett, and Daniele Faccio. Non-line-of-sight 3D imaging with a single-pixel camera. arXiv, Mar 2019. 1, 2
+[33] Nikhil Naik, Christopher Barsi, Andreas Velten, and Ramesh Raskar. Time-resolved reconstruction of scene reflectance hidden by a diffuser. In CLEO, Washington, D.C., 2013. OSA. 1, 2
+[34] Seung Won Oh, Ahn Ki Kim, Byung Wok Park, and Tae Hoon Yoon. Optical compensation methods for the elimination of off-axis light leakage in an in-plane-switching liquid crystal display. Journal of Information Display, 16(1):1-10, 2015. 2, 3
+[35] Matthew O'Toole, David B. Lindell, and Gordon Wetzstein. Confocal non-line-of-sight imaging based on the light-cone transform. Nature, 555(7696):338-341, Mar 2018. 1, 2, 8
+[36] Adithya Pediredla, Akshit Dave, and Ashok Veeraraghavan. Snlos: Non-line-of-sight scanning through temporal focusing. In IEEE International Conference on Computational Photography, pages 1-13. IEEE, May 2019. 1, 2
+[37] Adithya Kumar Pediredla, Mauro Buttafava, Alberto Tosi, Oliver Cossairt, and Ashok Veeraraghavan. Reconstructing rooms using photon echoes: A plane based model and reconstruction algorithm for looking around the corner. In IEEE International Conference on Computational Photography, pages 1-12. IEEE, May 2017. 1, 2
+[38] Ramesh Raskar and James Davis. 5D time-light transport matrix: What can we reason about scene properties? MIT Technical Report, 2008. 2
+[39] Charles Saunders, John Murray-Bruce, and Vivek K Goyal. Computational periscopy with an ordinary digital camera. Nature, 565(7740):472-475, Jan 2019. 1, 2, 3, 4, 6, 7, 8
+[40] Brandon M. Smith, Matthew O'Toole, and Mohit Gupta. Tracking multiple objects outside the line of sight using speckle imaging. In IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pages 6258-6266. IEEE, June 2018. 2
+[41] Kenichiro Tanaka, Yasuhiro Mukaigawa, Yasuyuki Matsushita, and Yasushi Yagi. Descattering of transmissive observation using Parallel High-Frequency Illumination. In IEEE International Conference on Computational Photography, pages 96-103, Apr 2013. 2
+[42] Matthew Tancik, Guy Satat, and Ramesh Raskar. Flash photography for data-driven hidden scene recovery. arXiv, Oct 2018. 1
+[43] Christos Thrampoulidis, Gal Shulkind, Feihu Xu, William T. Freeman, Jeffrey H. Shapiro, Antonio Torralba, Franco N. C.
+
+Wong, and Gregory W. Wornell. Exploiting occlusion in non-line-of-sight active imaging. IEEE Transactions on Computational Imaging, 4:419-431, 2017. 1
+[44] Antonio Torralba and William T. Freeman. Accidental pin-hole and pinspeck cameras: Revealing the scene outside the picture. In IEEE Conference on Computer Vision and Pattern Recognition, pages 374-381. IEEE, June 2012. 1, 2
+[45] Tali Treibitz and Yoav. Y. Schechner. Active polarization rescattering. IEEE Transactions on Pattern Analysis and Machine Intelligence, 31(3):385-399, 2009. 2
+[46] Chia Yin Tsai, Kiriakos N. Kutulakos, Srinivasa G. Narasimhan, and Aswin C. Sankaranarayanan. The geometry of first-returning photons for non-line-of-sight imaging. In IEEE Conference on Computer Vision and Pattern Recognition, 2017. 1, 2
+[47] Chia-Yin Tsai, Aswin C. Sankaranarayanan, and Ioannis Gkioulekas. Beyond volumetric albedo – a surface optimization framework for non-line-of-sight imaging. In IEEE Conference on Computer Vision and Pattern Recognition, pages 1545–1555, 2019. 1, 2
+[48] Andreas Velten, Amy Fritz, Moungi Bawendi, and Ramesh Raskar. Multibounce time-of-flight imaging for object reconstruction from indirect light. In Conference on Lasers and Electro-Optics, Washington, D.C., 2012. OSA. 2
+[49] Andreas Velten, Thomas Willwacher, Otkrist Gupta, Ashok Veeraraghavan, Moungi G Bawendi, and Ramesh Raskar. Recovering three-dimensional shape around a corner using ultrafast time-of-flight imaging. Nature communications, 3:745, Jan 2012. 1, 2, 8
+[50] Zihao W Wang, Weixin Jiang, Kuan He, Boxin Shi, Aggelos Katsaggelos, and Oliver Cossair. Event-driven video frame synthesis. In Proceedings of the IEEE International Conference on Computer Vision Workshops, pages 0–0, 2019. 8
+[51] Rihui Wu, Adrian Jarabo, Jinli Suo, Feng Dai, Yongdong Zhang, Qionghai Dai, and Diego Gutierrez. Adaptive polarization-difference transient imaging for depth estimation in scattering media. Optics Letters, 43(6), 2018. 2
+[52] Shumian Xin, Sotiris Nousias, Kiriakos N. Kutulakos, Aswin C. Sankaranarayanan, Srinivasa G. Narasimhan, and Ioannis Gkioulekas. A theory of fermat paths for non-line-of-sight shape reconstruction. In IEEE Conference on Computer Vision and Pattern Recognition, pages 6800-6809. IEEE, 2019. 1, 2
+[53] Adam B. Yedidia, Manel Baradad, Christos Thrampoulidis, William T. Freeman, and Gregory W. Wornell. Using unknown occluders to recover hidden scenes. In IEEE Conference on Computer Vision and Pattern Recognition, pages 12231-12239, 2019. 1, 2, 3
+[54] Xinyu Zhu, Zhibing Ge, and Shin-Tson Wu. 15.3: Analytical solutions for the wide-view lcds with uniaxial-film compensation. SID Symposium Digest of Technical Papers, 37(1):1071, 2006. 2, 3
+[55] Alex Zihao Zhu, Nikolay Atanasov, and Kostas Daniilidis. Event-based visual inertial odometry. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5391-5399, 2017. 8
\ No newline at end of file
diff --git a/polarizednonlineofsightimaging/images.zip b/polarizednonlineofsightimaging/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..89a52b59b09255a573d546a34add94f10b0c8861
--- /dev/null
+++ b/polarizednonlineofsightimaging/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6ba6871d1f58f2c614c29f2e697a13960a9295fa29a3ddae8a013107143c30d5
+size 648520
diff --git a/polarizednonlineofsightimaging/layout.json b/polarizednonlineofsightimaging/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..d1e55786b04ff613af6ff38107ebda2d0be2e503
--- /dev/null
+++ b/polarizednonlineofsightimaging/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:43e0dec09e9c9cfcc535e5b36e6eca9d9e0f8d300cfaca48da588336f2d62fae
+size 425073
diff --git a/polarizedreflectionremovalwithperfectalignmentinthewild/d06f11b8-83a4-4bb7-8aa6-6ac300185445_content_list.json b/polarizedreflectionremovalwithperfectalignmentinthewild/d06f11b8-83a4-4bb7-8aa6-6ac300185445_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..c5fffc297e30201d5c33333029d23535c1357f5b
--- /dev/null
+++ b/polarizedreflectionremovalwithperfectalignmentinthewild/d06f11b8-83a4-4bb7-8aa6-6ac300185445_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:73a7474e9e9af5d8e85574e7c0aac33c1ac09984233215612ad896a5dd40fafb
+size 73515
diff --git a/polarizedreflectionremovalwithperfectalignmentinthewild/d06f11b8-83a4-4bb7-8aa6-6ac300185445_model.json b/polarizedreflectionremovalwithperfectalignmentinthewild/d06f11b8-83a4-4bb7-8aa6-6ac300185445_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..c303f407cf735a077fd36755cb3fc179f979a674
--- /dev/null
+++ b/polarizedreflectionremovalwithperfectalignmentinthewild/d06f11b8-83a4-4bb7-8aa6-6ac300185445_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3bc808ace6ea2c51f9bf7c528b005740309c478a05acf9f6649229a8e8a0789d
+size 93362
diff --git a/polarizedreflectionremovalwithperfectalignmentinthewild/d06f11b8-83a4-4bb7-8aa6-6ac300185445_origin.pdf b/polarizedreflectionremovalwithperfectalignmentinthewild/d06f11b8-83a4-4bb7-8aa6-6ac300185445_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..4401475995864d2eb24122d6cb6815b127cd21da
--- /dev/null
+++ b/polarizedreflectionremovalwithperfectalignmentinthewild/d06f11b8-83a4-4bb7-8aa6-6ac300185445_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:826ed2c64c78dec7a278f66b2d90121eac0acda1bf81bd7389b4d82be7117ac4
+size 5444457
diff --git a/polarizedreflectionremovalwithperfectalignmentinthewild/full.md b/polarizedreflectionremovalwithperfectalignmentinthewild/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..ce5e9392753e96e3e031f85ebd9456c112e7dfd7
--- /dev/null
+++ b/polarizedreflectionremovalwithperfectalignmentinthewild/full.md
@@ -0,0 +1,363 @@
+# Polarized Reflection Removal with Perfect Alignment in the Wild
+
+Chenyang Lei $^{1}$ Xuhua Huang $^{1}$ Mengdi Zhang $^{1}$ Qiong Yan $^{2}$ Wenxiu Sun $^{2}$ Qifeng Chen $^{1}$ ${}^{1}\mathrm{HKUST}$ ${}^{2}\mathrm{Sensetime}$
+
+# Abstract
+
+We present a novel formulation to removing reflection from polarized images in the wild. We first identify the misalignment issues of existing reflection removal datasets where the collected reflection-free images are not perfectly aligned with input mixed images due to glass refraction. Then we build a new dataset with more than 100 types of glass in which obtained transmission images are perfectly aligned with input mixed images. Second, capitalizing on the special relationship between reflection and polarized light, we propose a polarized reflection removal model with a two-stage architecture. In addition, we design a novel perceptual NCC loss that can improve the performance of reflection removal and general image decomposition tasks. We conduct extensive experiments, and results suggest that our model outperforms state-of-the-art methods on reflection removal.
+
+# 1. Introduction
+
+It is often desirable to remove glass reflection as it may contaminate the visual quality of a photograph. Reflection separation is also arguably important for robots to work robustly in the real world as the content in reflection usually does not exist in the viewing frustum of a camera. One intriguing property of reflection is that reflected light is often polarized, which may facilitate reflection removal. In this paper, we study reflection removal with polarized sensors by designing a customized deep learning framework.
+
+An image with reflection is a mixture of reflection and transmission, as shown in Fig. 1. In raw data space, the mixed image $M$ can be formulated as
+
+$$
+M = T + R, \tag {1}
+$$
+
+where $T$ and $R$ are transmission and reflection, respectively. We name the light behind glass as background $B$ and the light that passes through glass as transmission $T$ . Although most prior work treats $B$ as the same as $T$ [34, 28], we argue that $T$ and $B$ are different. $T$ is darker than $B$ as some light is reflected or absorbed by glass, and there is a spatial shift between $T$ and $B$ due to refraction.
+
+
+Figure 1. The image formation process of the mixed image $M$ . Due to refraction, background $B$ dims and shifts after passing the glass and forms transmission $T$ , resulting in intensity discrepancy and spatial misalignment between $B$ and $T$ . Reflection $R$ from the glass surface is linearly added to $T$ to form $M$ in raw data space. Therefore, we can obtain $T$ by computing $T = M - R$ .
+
+A common issue of many existing reflection removal methods [34, 32, 7, 31, 24] is that strict assumptions are imposed on reflection. These assumptions make previous methods work well in special cases but fail in many others. For example, many works assume reflection images are out of focus [7, 34]. As a result, these approaches may not remove reflection properly when the reflection is sharp and strong. Another prior assumption is on ghost cues [24] that result from multiple reflections inside a thick glass. However, ghost cues do not exist in thin glass.
+
+The lack of diverse and high quality real-world data is another challenging issue. Zhang et al. [34] and Wei et al. [28] have collected a small set of real-world data where only background images (in Fig. 1 and Fig. 4) are captured as the ground-truth transmission images. However, background images are not perfectly aligned with the mixed image $M$ due to refraction and also have the problem of intensity decay ( $T$ appears darker than $B$ ) and color distortion (colored glass). Misalignment introduces great challenges in training a machine learning model [28] and the intensity difference makes it even more difficult. Moreover, since the type of reflection depends on the glass type and only one type of glass is used to collect data, the models trained on these data cannot generalize well to other types of glass.
+
+To be able to relax the assumptions about the appear
+
+ance of reflection, we leverage polarization that inherently exists in almost all reflected light. Fig. 2 shows an example polarized image. Existing works based on polarization often impose strict assumptions. A common one is that all light sources are unpolarized [3], which is easily violated in the real world because reflection happens in different types of surfaces in addition to glass and polarized or partially polarized light source exists commonly, such as the LED light. As can be seen in Fig. 2, polarization exists both inside and outside the glass. We cannot solely rely on this information. To rule out the case that polarization also happens in transmission image, our work in this paper removes this assumption. Therefore, our method is more general and applicable to more scenarios.
+
+To ensure the diversity and quality of real-world data, we propose a new data collection pipeline called M-R based on the principle that raw image space is linear. We capture $M$ and $R$ only and obtain the transmission through $T = M - R$ . Note that we capture the raw sensor data so that Eq. 1 holds. Our formulation is physically faithful to image formation and eases the process of data collection. We show that with our novel M-R pipeline, it is easy to capture reflection caused by a diverse set of glass. We use the M-R pipeline to build a real-world polarization dataset collected by a novel polarization sensor for reflection removal.
+
+With the collected dataset, we propose a two-stage framework for reflection removal from polarized images. Our approach firstly estimates reflection, with which it infers the transmission image secondly. Our PNCC (perceptual NCC) loss is used to minimize the similarity between the output reflection and transmission. Experiments demonstrate that our method achieves state-of-the-art performances on various metrics. The ablation study shows that our approach benefits from polarized data, PNCC, and the two-stage framework design. Our contributions are summarized as follows:
+
+- We observe two important factors for the task of reflection removal: 1) the difference between transmission $T$ and background $B$ is noticeable. 2) the linearity from reflection to mixed image holds perfectly on raw data.
+- We design a new data collection pipeline called M-R, which helps us collect diverse real-world data with perfect alignment by utilizing glass in the real world.
+- We propose a deep learning method for reflection removal based on polarization data. Our method does not impose any assumption on the appearance of reflection. A two-stage framework is adopted to get better performance. We design a PNCC loss, which can be applied to many image decomposition tasks. Experiments show that our method outperforms all state-of-the-art methods and has better generalization.
+
+
+Raw
+
+
+#
+Figure 2. The visualization of polarization information. Polarization exists inside and outside the glass area. $\phi$ is the angle of polarization and visualized by hue in HSV space. $\rho$ is the degree of polarization and visualized by intensity.
+
+
+$\rho$
+
+# 2. Related Work
+
+Single image reflection removal. Most single image reflection removal methods [7, 34, 31, 32] rely on various assumptions. Considering image gradients, Arvanitopoulos et al. [2] propose the idea of suppressing the reflection, and Yang et al. [32] propose a faster method based on convex optimization. These methods fail to remove sharp reflection. Under the assumption that transmission is always in focus, Punnappurath et al. [20] design a method based on dual-pixel camera input. For most deep learning based approaches, training data is critical for good performance. CEILNet [7], Zhang et al. [34] and BDN [31] assume reflection is out of focus and synthesize images to train their neural networks. CEILNet [7] estimates target edges first and uses it as guidance to predict the transmission layer. Zhang et al. [34] use perceptual and adversarial losses to capture the difference between reflection and transmission. BDN [31] estimates the reflection image, which is then used to estimate the transmission layer. These methods [34, 7, 31] work well when reflection is more defocused than transmission but fail otherwise. To break the limitation of using solely synthetic data, Zhang et al. [34] and Wei et al. [28] collect real-world datasets for training. However, their datasets have misalignment issues and do not contain sufficient diversity. Wei et al. [28] propose to use high-level features that are less sensitive to small misalignment to calculate losses. To obtain more realistic and diverse data, Wen et al. [29] and Ma et al. [17] propose methods to synthesize data using a deep neural network and achieve better performance and generalization. Though the data is more perceptually appealing, physical authenticity remains a doubt.
+
+Polarization-based reflection removal. Polarization is known to be useful in image reflection removal since decades ago [33, 8]. Schechner et al. [33] and Bronstein et al. [4] utilize independent component analysis to separate reflection and transmission images. With the assumption of unpolarized light sources, Kong et al. [14] proposed an optimization method to automatically find the optimal separation of the reflection and transmission layer. Wieschollek et al. [19] combine deep learning with a polarization-based
+
+
+RGB M
+
+
+ISP M-R
+
+
+Gamma M-R
+
+
+Raw M-R
+
+
+RGB R
+
+
+Closeup
+
+
+Closeup
+Figure 3. The visualization of M-R in different data spaces. If $M - R$ is applied other than raw data space, undesirable residuals will appear. For RGB data, we get 3 types of M-R: (1) "ISP M-R" means do $M - R$ on images after ISP. (2) "Gamma M-R" means to use $M^{2.2} - R^{2.2}$ to simulate gamma decompression for $M$ and $R$ , which is a common way used in previous methods. (3) "Raw M-R": do $M - R$ on raw data. For the gray-scale polarization data, we use gamma correction to simulate the ISP, compared with directly on raw.
+
+
+Closeup
+
+
+Pol M
+
+
+ISP M-R
+
+
+Raw M-R
+
+
+Pol R
+
+
+Closeup
+
+
+Closeup
+
+reflection removal method. Different from previous works, they eliminate a number of assumptions (e.g., the glass must be perfectly flat) and propose a pipeline to synthesize data with polarization information from regular RGB images. However, all light sources are still assumed to be unpolarized.
+
+Multi-image reflection removal Polarization-based reflection removal methods are a special category of multi-image approaches. Agrawal et.al [1] use a pair of flash/no-flash images. Many works [26, 22, 21, 16, 10, 11, 30] move the camera to exploit the relative motion between reflection and transmission for reflection removal, while most works assume that motion of the reflection layer is larger than that of the transmission layer. Sarel and Irani [21, 22] assume that both reflection and transmission should be static. Li et al. [16] use SIFT-flow to align the images to make a pixelwise comparison under the assumption that the background dominates in the mixed image. Xue et al. [30] also require that objects in reflection and transmission are roughly static. Han et al. [11] require the transmission to be more dominant than the reflected scenes.
+
+# 3. M-R Dataset
+
+Real-world reflection removal datasets [34, 28] are limited in quantity and diversity because of the complicated data collection procedure and the difficulty of acquiring ground-truth reflection and transmission. We propose a new method named M-R to collect paired data for reflection removal. A triple $\{M,R,T\}$ is collected for each scene where $M,R,T$ are the mixed image, the reflection image, and the transmission image, respectively.
+
+Polarization information We use the PHX050S-P polarization camera, which is equipped with an IMX250MZR CMOS. This sensor captures an image with four different polarizer angles in one single shot. Each polarization pixel consists of $2 \times 2$ units with four sub-pixels corresponding to the polarization angles $0^{\circ}, 45^{\circ}, 90^{\circ}, 135^{\circ}$ . The light intensity passing through a polarizer follows Malus' law [12]:
+
+$$
+I _ {o u t} = I _ {i n} \cos^ {2} (| \phi - \theta |), \tag {2}
+$$
+
+where $\theta$ is the angle of polarizer, and $\phi$ is the polarization angle of incoming light. Note that the equations related to polarization hold only for raw data that is linear to light intensity, and thus we adopt the RAW format in our dataset. The resolution of each captured RAW image is $2048\times 2448$ . We extract sub-pixels with the same polarization angle to form an image, and we can get four images with resolution $1024\times 1224$ . The value range of each pixel is from 0 to 4095. Let $I$ be the light intensity, and let $I_{np}, I_p$ be the intensity for unpolarized light and linear polarized light. The degree of polarization $\rho$ equals to $I_p / (I_p + I_{np})$ . Then we define $I_1, I_2, I_3, I_4$ as the light intensity passed through 4 angles $0^\circ, 45^\circ, 90^\circ, 135^\circ$ . According to the properties of polarization, we have:
+
+$$
+I = \left(I _ {1} + I _ {3} + I _ {2} + I _ {4}\right) / 2, \tag {3}
+$$
+
+$$
+\rho = \frac {\sqrt {\left(\left(I _ {1} - I _ {3}\right) ^ {2} + \left(I _ {2} - I _ {4}\right) ^ {2}\right)}}{I}, \tag {4}
+$$
+
+$$
+\phi = \frac {1}{2} \arctan \frac {I _ {2} - I _ {4}}{I _ {1} - I _ {3}}. \tag {5}
+$$
+
+Data collection pipeline Fig. 4 shows the comparison between our pipeline and previous [34, 28, 27]. Previous methods take a photo in front of glass as a mixed image $M$
+
+ | Glass type | Data format | Scene | Alignment | Intensity decay | Raw |
| Zhang et al. [34] | 1 | M, B | 110 | Misalignment (calibrated) | Yes | No |
| Wei et al. [28] | 1 | M, B | 450 | Misalignment | Yes | No |
| SIR benchmark [27] | 3 | M, R, B | 100+20+20 | Misalignment (calibrated) | Yes | No |
| Ours | >100 | M, R, T | 807 | Perfect Alignment | Small | Yes |
+
+Table 1. Comparison between our collected dataset and others. Our dataset has more diverse glass types, perfect alignment, and little intensity decay. Besides, since we provide raw data, we can synthesize new $\{M,R,T\}$ triples faithful to the real image formation process.
+
+
+
+
+
+
+
+
+Zhang et al. [34]
+Wei et al. [28]
+Figure 4. Comparison between our data collection pipeline and prior methods. Previous methods use removable, relatively thin, and non-colored glass to avoid misalignment and color distortion. Since we do not enforce these constraints, we can utilize a diverse set of glass types that exist in our daily life.
+
+
+Our $M$
+Our $R$
+
+
+Our $M$
+Our $R$
+
+and then remove the glass to take another one as the transmission $T$ so that the difference between background $B$ and transmission $T$ is ignored. As mentioned before, $M$ is the sum of $R$ and $T$ (not $B + R$ ). Therefore, inferring $T$ is believed to be easier than $B$ . However, it is relatively difficult to capture $T$ directly because all the reflection must be blocked. Therefore, we capture $M$ and $R$ only and then obtain $T = M - R$ .
+
+While prior work [29, 17] claims that the combination of reflection and transmission is beyond linearity, we argue that the non-linearity is introduced by ISP pipeline when operating in RGB space. On the other hand, there is no such problem for raw data since the voltage on the sensor is linearly correlated with the intensity of light. Therefore, Eq. (1) holds, and we can obtain a transmission image $T$ directly by $M - R$ . Fig. 3 shows the difference between RGB data and raw data. It is clear that our formulation conforms with reality, and the direct subtraction removes reflection perfectly. To the best of our knowledge, we are the first to use $M - R$ as ground truth on raw data.
+
+To ensure perfect alignment between $M$ and $R$ , we use a tripod to fix the camera and take the polarized images re
+
+motely controlled by a computer. We first use a piece of black cloth to cover the back of the glass to block all transmission $T$ to obtain a clear reflection $R$ . Then we remove the cloth to collect the mixed image $M$ . To ensure the intensity of reflection are the same in $M$ and $R$ , we set the camera to manual model with relatively long exposure time to avoid noise.
+
+Analysis of M-R Table 1 shows the comparison between our dataset and previous datasets. Compared with previous methods, M-R has the following advantages:
+
+a). More diversity. Previous methods require the glass to be thin, non-colored, removable, and flat. As long as the transmission is clear, we do not make such assumptions on the glass. Therefore, it is possible for us to utilize numerous glass in our daily life, such as glass doors and windows. The glass can be flat or curved, thin or thick, colored, or noncolored. We are even able to record dynamic scenes if the reflection is static.
+b). Simplified task. Since $B$ might be different with $T$ in color, intensity, and position, using $B$ as ground truth introduces extra problems in reflection removal. Estimating $T$ is an equally useful and simplified task. Our dataset has provided perfectly aligned pairing data.
+c). Improved simulation. Even if we use our method, collecting paired data is time-consuming. Since previous methods have the misalignment problem, they can not correctly obtain $R$ by $M - B$ . Besides, they use RGB images instead of raw images, so non-linearity in intensity is introduced. Derived from the linearity discussed above, we can use $M = a*R + b*T$ directly to simulate various realistic data where $a$ and $b$ varies from 0 to 1 with unpaired $R$ and $T$ .
+
+Data cleaning To improve the quality of our dataset, we calculate the mean intensity ratio for each pair of $R$ and $T$ , and discard the pairs if the ratio is greater than 10 or smaller than 0.1. As in this situation, either $R$ or $T$ is perceptually invisible. Negative values after subtraction, due to noise, are set to zero. If there is more than one layer of glass, we crop the image to keep only the part with a single layer. Polarization can be calculated correctly only if each polarization image is correct. Hence, we need to pay special attention to
+
+
+Figure 5. The overall architecture of our model. The raw input goes through a simple pre-process before the network. The reflection network $f$ is designed to get $f(M) = \hat{R}$ . The refinement network $g$ estimates $\hat{T}$ based on $\hat{R}$ and $M$ , where $g(M, \hat{R}) = \hat{T}$ .
+
+overexposed areas. We calculate an overexposure mask $O$ based on the intensity of $I_{1}, I_{2}, I_{3}, I_{4}$ .
+
+$$
+O (x) = \left\{ \begin{array}{l l} 0, & \max \left\{I _ {1} (x), I _ {2} (x), I _ {3} (x), I _ {4} (x) \right\} > \delta \\ 1, & \text {o t h e r w i s e} \end{array} \right. \tag {6}
+$$
+
+where $\delta$ is a threshold and we use $\delta = 0.98$ here.
+
+# 4. Method
+
+# 4.1. Reflection-Based Framework
+
+Unpolarized light reflected from the glass surface or passed through the glass becomes partially polarized. The degree of polarization, $\rho$ , depends on the property of glass and the angle of incidence. For a specific type of glass with refractive index $n = 1.7$ , Fig. 6 shows how the degree of polarization changes. Based on this fact, Kong et al. [14] and Wieschollek [19] proposes two methods for reflection removal. However, in the real world, unpolarized light sources assumption doesn't hold well because partially polarized light sources exist commonly, and reflection exists not only through glass surfaces. These methods would then fail [19, 14]. Different from Wieschollek et al. [19] and Kong et al. [14], we do not assume all light sources are unpolarized. We utilize the fact that the $\rho$ of transmission is quite different. Hence we propose to use deep learning based and two-stage method to catch the differences between reflection and transmission and separate them.
+
+Fig. 5 shows an overview of our framework. Our method takes a multi-channel image as input. The first 4 channels, $I_1, I_2, I_3, I_4$ are extracted from mixed image $M$ for each polarization angle. The next 4 channels are $I, \rho, \phi, O$ , calculated from Eq. 3, 4, 5, 6. The final network output is a one-channel image, the recovered transmission $\hat{T}$ , the same size as $I_1$ , that is half of $M$ in width and height.
+
+
+Figure 6. The degree of polarization $\rho$ for transmitted light $T$ and reflected light $R$ for a specific dielectric $(n = 1.7)$ . For most incident angles, $\rho$ for $R$ is more significant than $T$ .
+
+There are two stages in our process. The first stage is dedicated to estimating reflection $\hat{R}$ , and the second is for transmission $\hat{T}$ with estimated $\hat{R}$ . We use a two-stage design for two reasons. Firstly, reflection contributes a lot to mix image and has a strict relationship on RAW space (Eq. 1). Furthermore, as discussed above, reflection and transmission are quite different in terms of polarization. The separated decoders for them are helpful to learn specific features. BDN [31] also observes the importance of reflection and improve performance by training a bidirectional network. However, their performance relies on an assumption to make $R$ and $T$ more different: the reflection is blurry. Undoubtedly, their model cannot distinguish $R$ and $T$ well when reflection is sharp. Note that if without polarization, such design may deteriorate the performance as the difference between them becomes subtle in regular image data.
+
+# 4.2. Loss function
+
+PNCC loss In general, reflection and transmission images would be different on most pixels. We propose a perceptual normalized cross-correlation (PNCC) loss to minimize the
+
+
+Figure 7. The monotonicity of the PNCC loss. The proposed PNCC monotonically decreases as the input pair gets mix more after applying normalization to the input.
+
+correlation between estimated reflection and transmission on different feature maps. Our PNCC loss is defined on different feature maps of VGG-19 [25]. Given two images $I_{A}$ and $I_{B}$ , we try to calculate the NCC of their feature maps. In practice, the monotonicity is not right in extreme cases where the intensity between $R$ and $T$ has a big difference. Therefore, we normalize $I_{A}, I_{B}$ to [0, 1], denoted as $\tilde{I}_{A}, \tilde{I}_{B}$ . The PNCC loss is defined as follows:
+
+$$
+L _ {P N C C} \left(I _ {A}, I _ {B}\right) = \sum_ {l = 1} ^ {n} N C C \left(v _ {l} \left(\tilde {I} _ {A}\right), v _ {l} \left(\tilde {I} _ {B}\right)\right), \tag {7}
+$$
+
+where $v_{l}$ denotes the $l$ -th layer feature maps of VGG-19 [25]. In practice, we use three layers 'conv2_2', 'conv3_2', 'conv4_2'. PNCC can also be applied using another pre-trained neural network.
+
+Fig. 7 shows the monotonicity of PNCC and the impact of normalization. We choose 100 pairs of images randomly from the dataset used in [34]. For each pair $(R, T)$ we generate synthetic data $I_A$ and $I_B$ by:
+
+$$
+I _ {A} = T + (1 - \alpha) * R, I _ {B} = \alpha * R, \tag {8}
+$$
+
+where $\alpha$ is sampled from 0.01 to 1. When $\alpha = 1$ , $I_A$ and $I_B$ are completely two different images, PNCC is the lowest. When $\alpha = 0.01$ , $I_A$ contains most part of $I_B$ , PNCC is the largest, but the non-normalized version is not. Our PNCC loss can also be applied to other image decomposition tasks. More results are demonstrated in experiments.
+
+Perceptual loss The perceptual loss [13] has been proved effective on various computer vision tasks [15, 34, 5]. In our task, we modify it to account for the overexposed area. Given the overexposure mask $O$ , the perceptual loss is defined as:
+
+$$
+L _ {p} (T, \hat {T}) = \sum_ {l = 1} ^ {n} \beta_ {l} | v _ {l} (O * T) - v _ {l} (O * \hat {T}) | _ {1}. \tag {9}
+$$
+
+$\beta_{l}$ is the weight for the $l$ -th layer. Following Chen et al. [5], we initialize $\beta_{l}$ based on the number of parameters in each layer and we adopt 6 layers 'conv1_1', 'conv1_2', 'conv2_2', 'conv3_2', 'conv4_2', and 'conv5_2'.
+
+In total, the loss function we optimize is the sum of PNCC loss between $\hat{R}$ and $\hat{T}$ and perceptual loss.
+
+# 4.3. Implementation
+
+To improve the performance of our model, we augment the input to the network with the hypercolumn features extracted from the VGG-19 network [25]. In particular, we extract 'conv1_2' from the VGG-19 network for $I_{1}, I_{2}, I_{3}, I_{4}, I$ and upsample the layers bilinearly to match the resolution of the input image. Since our data is in RAW format and pre-trained VGG-19 [25] was trained on ImageNet dataset [6] in RGB space, we first apply a gamma correction to the raw input and then feed them into the network. We adopt U-Net [18] as our network architecture for both $f$ and $g$ . We modify the kernel size of the first layer to $1 \times 1$ and use it to reduce the dimensionality of the augmented input [5]. At the training, we first train $f$ and $g$ together for 200 epochs using Adam optimizer and learning rate 0.0001. Then we decay the learning rate to 0.00001 and train for 50 more epochs.
+
+# 5. Experiments
+
+# 5.1. Experimental procedure
+
+Baselines. We compare our method with several state-of-the-art reflection removal approaches, including both deep learning and traditional methods. Specifically, in the deep learning track, we choose Zhang et al. [34], Wei et al. [28], BDN [31], Wieschollek et al. [19], and Wen et al. [29]. For fairness, we re-train models on our M-R dataset using official source codes for Zhang et al. [34] and Wei et al. [28]. For BDN [31] and Wieschollek et al. [19], we directly use the available pre-trained models since no training codes are available. For Wen et al. [29], as their training requires additional alpha matting masks that are not available in our task, we also use their pre-trained model.
+
+For polarization based methods, we choose Kong et al. [14], Schechner et al. [23] and Fraid et al. [8]. Third-party implementations by Wieschollek et al. [19] are used. We also evaluate the convex optimization based method by Yang et al. [32] using their official source codes.
+
+DoubleDIP [9] is an unsupervised image decomposition model, but it fails in our setting. The possible reason is that DoubleDIP holds a simple assumption that a mixed image is composed of two images with spatial-invariant coefficients, but real-world data break the assumption.
+
+Experimental setup The experiments are mainly conducted on our M-R dataset since it is the only available raw
+
+
+Figure 8. Perceptual comparison between our method and others. Our method is able to handle different types of reflection.
+
+ | Transmission | Reflection |
| PSNR | SSIM | PSNR | SSIM |
| Fraid et al.** [8] | 21.99 | 0.714 | 6.48 | 0.241 |
| Schechner et al.** [23] | 23.42 | 0.655 | 12.40 | 0.247 |
| Kong et al.** [14] | 18.76 | 0.402 | 12.96 | 0.271 |
| Yang et al. [32] | 25.42 | 0.780 | - | - |
| Wieschollek et al.* [19] | 22.15 | 0.711 | 15.93 | 0.462 |
| BDN* [31] | 24.49 | 0.805 | 12.34 | 0.377 |
| Wen et al.* [29] | 26.62 | 0.827 | - | - |
| Wei et al. [28] | 30.13 | 0.899 | - | - |
| Zhang et al. [34] | 31.91 | 0.903 | 32.02 | 0.88 |
| Ours | 34.62 | 0.936 | 33.88 | 0.907 |
| Ours (3 inputs) | 33.91 | 0.930 | 33.53 | 0.903 |
+
+Table 2. Quantitative results on our M-R dataset. Our method outperforms all others in PSNR and SSIM. Note methods tagged with * are evaluated with pre-trained models and tag ** stands for third-party implementation. To compare fairly with other methods [8, 33, 14, 19] which use three polarization images, we use $I_{1} + I_{3} - I_{2}$ to represent $I_{4}$ as input as a '3 inputs' version.
+
+image dataset. We select 100, 107 pairs of data as a validation set and a testing set. All data are stored in the 16-bit PNG format to avoid precision loss.
+
+Most existing works train their models in RGB space. To minimize the gap between training and testing data for these methods, we average the intensity of $I_{1}, I_{2}, I_{3}, I_{4}$ followed by gamma correction ( $\gamma = 1/2.2$ ) before inputting to their models. Note that the domain gap between RGB images and gray images may degrade the performance of some methods. All the input images and results are saved as 16-bit PNG or NPY files to avoid accuracy loss.
+
+
+Figure 9. An extreme that image is not in good focus, where the transmission is a little blurry. Previous methods tend to remove too much content since they assume that the reflection is blurry.
+
+# 5.2. Comparisons with baselines
+
+Quantitative evaluation Table 2 summarizes the evaluation results on our dataset. Our method presents a new state-of-the-art performance. Performance of traditional polarization-based methods [23, 14, 8] rank low since their assumption that all light sources are unpolarized is oversimplified for real-world data. An interesting phenomenon is that BDN [31] scores badly in reflection despite its bidirectional network design. After analysis, we find out that BDN confuses between transmission and reflection in many cases, which affects the performance significantly. Scores of Zhang et al. [34] and Wei et al. [28] are the closest to ours. In addition to being retrained on our dataset, another common characteristic of the two methods is that they are designed for not only synthetic data but also real data.
+
+
+
+
+
+
+
+
+Input
+GTR
+
+
+$\hat{T}$ without pol
+$\hat{R}$ without pol
+
+
+$\hat{T}$ with pol
+$\hat{R}$ with pol
+
+
+Figure 10. Without the polarization information, the network cannot distinguish objects from $R$ or $T$ in many cases, especially for sharp reflection.
+Input
+
+
+Our $T$
+
+
+Our $R$
+
+
+Figure 11. Our method achieves satisfying results on curved glass.
+Input
+Figure 12. Our performance is reasonable on non-ideal data [19]
+
+
+Our $T$
+
+
+Input
+
+
+Our $T$
+
+Qualitative evaluation Fig. 8 shows several samples by different methods in different situations. We choose the best two single image models and the best polarization method for perceptual comparisons. As seen in Fig. 8, our method can handle different types of reflection well and remove the reflection pretty well without introducing artifacts. Wieschollek et al. [19] can also remove different types of reflection based on polarization, but their results have visible artifacts, and it even amplifies the reflection for the third case. For Zhang et al. [34] and Wei et al. [28], the results have visible residual reflection left. Fig. 9 shows a hard case where the mixed image is a bit blurry. Previous methods [32, 31, 28, 29] assuming the reflection is blurry perform poorly and tend to remove too much content. Our result shows better generalization without such an assumption. Our model can also achieve good performance on curved glass and non-ideal data collected by Wieschollek et al. [19], as shown in Fig. 11 and Fig. 12.
+
+# 5.3. Ablation study
+
+To study the influence of polarization information, we replace the input channels $I_{1}, I_{2}, I_{3}, I_{4}, \rho, \phi$ all with $I$ and
+
+ | Transmission | Reflection |
| PSNR | SSIM | PSNR | SSIM |
| Without polarization | 31.92 | 0.919 | 31.38 | 0.876 |
| Without two-stage | 32.78 | 0.920 | - | - |
| Without PNCC | 34.42 | 0.934 | 33.72 | 0.905 |
| Ours | 34.62 | 0.936 | 33.88 | 0.907 |
+
+Table 3. Results of the ablation study. For the model without a two-stage design, there is no reflection as we only estimate $T$ .
+
+ | Exclusion | Exclusion (tuned) | PNCC |
| PSNR | 22.43 | 26.04 | 26.33 |
+
+Table 4. The performance of the exclusion loss and the PNCC loss for DoubleDIP [9]. We tune the hyperparameters of DoubleDIP with the exclusion loss by grid search.
+
+keep the network structure the same. To study the effect of our two-stage structure, we remove the loss on $R$ . Finally, we conduct an experiment with the setting without PNCC. The results are shown in Table 3. Polarization information improves the performance most. Fig. 10 shows a sample. The model predicts $T$ as $R$ without the support of polarization information. The two-stage design also boosts the performance of our model by a large margin. Our proposed PNCC can further increase the performance of our model on reflection removal.
+
+As an additional evaluation, we compare PNCC with the exclusion loss proposed by Zhang et al. [34]. The experiment is conducted in DoubleDIP [9] framework, which adopts exclusion loss to decompose images. By replacing the exclusion loss with our PNCC, we get the evaluation results in Table 4. Our approach outperforms their official implementation easily and still performs better after tuning the hyperparameters for them.
+
+# 6. Discussion
+
+We propose a two-stage polarized reflection removal model with perfect alignment of input-output image pairs. With a new reflection formulation to bypass the misalignment problem between the background and mixed images, we build a polarized reflection removal dataset that covers more than 100 types of glass in the real world. A general decomposition loss called PNCC is proposed to minimize the correlation of two images at different feature levels. We have conducted thorough experiments to demonstrate the effectiveness of our model. We hope our novel model formulation and the M-R dataset can inspire research in reflection removal in the future.
+
+# Acknowledgement
+
+We thank SenseTime Group Limited for supporting this research project.
+
+# References
+
+[1] Amit K. Agrawal, Ramesh Raskar, Shree K. Nayar, and Yuanzhen Li. Removing photography artifacts using gradient projection and flash-exposure sampling. TOG, 24(3):828-835, 2005. 3
+[2] Nikolaos Arvanitopoulos, Radhakrishna Achanta, and Sabine Susstrunk. Single image reflection suppression. In CVPR, 2017. 2
+[3] Gary A Atkinson and Edwin R Hancock. Recovery of surface orientation from diffuse polarization. TIP, 15(6):1653-1664, 2006. 2
+[4] Alexander M Bronstein, Michael M Bronstein, Michael Zibulevsky, and Yehoshua Y Zeevi. Sparse ica for blind separation of transmitted and reflected images. *IJIST*, 15(1):84–91, 2005. 2
+[5] Qifeng Chen and Vladlen Koltun. Photographic image synthesis with cascaded refinement networks. In ICCV, 2017. 6
+[6] 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
+[7] Qingnan Fan, Jiaolong Yang, Gang Hua, Baoquan Chen, and David Wipf. A generic deep architecture for single image reflection removal and image smoothing. In ICCV, 2017. 1, 2
+[8] H. Farid and E. H. Adelson. Separating reflections and lighting using independent components analysis. In CVPR, 1999. 2, 6, 7
+[9] Yosef Gandelsman, Assaf Shocher, and Michal Irani. "double-dip": Unsupervised image decomposition via coupled deep-image-priors. In CVPR, 2019. 6, 8
+[10] Xiaojie Guo, Xiaochun Cao, and Yi Ma. Robust separation of reflection from multiple images. In CVPR, 2014. 3
+[11] Byeong-Ju Han and Jae-Young Sim. Reflection removal using low-rank matrix completion. In CVPR, 2017. 3
+[12] E. Hecht. Optics. Pearson education. Addison-Wesley, 2002. 3
+[13] Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. In ECCV, 2016. 6
+[14] Naejin Kong, Yu-Wing Tai, and Joseph S. Shin. A physically-based approach to reflection separation: from physical modeling to constrained optimization. TPAMI, 36(2):209-221, Feb. 2014. 2, 5, 6, 7
+[15] Chenyang Lei and Qifeng Chen. Fully automatic video colorization with self-regularization and diversity. In CVPR, 2019. 6
+[16] Yu Li and Michael S Brown. Exploiting reflection change for automatic reflection removal. In ICCV, 2013. 3
+[17] Daiqian Ma, Renjie Wan, Boxin Shi, Alex C. Kot, and Ling-Yu Duan. Learning to jointly generate and separate reflections. In ICCV, 2019. 2, 4
+[18] Ronneberger Olaf, Fischer Philipp, and Brox Thomas. U-net: Convolutional networks for biomedical image segmentation. In MICCAI, 2015. 6
+
+[19] Wieschollek Patrick, Gallo Orazio, Gu Jinwei, and Kautz Jan. Separating reflection and transmission images in the wild. In ECCV, 2018. 2, 5, 6, 7, 8
+[20] Abhijith Punnappurath and Michael S. Brown. Reflection removal using a dual-pixel sensor. In CVPR, 2019. 2
+[21] Bernard Sarel and Michal Irani. Separating transparent layers through layer information exchange. In ECCV, 2004. 3
+[22] Bernard Sarel and Michal Irani. Separating transparent layers of repetitive dynamic behaviors. In ICCV, 2005. 3
+[23] Yoav Schechner, Joseph Shamir, and Nahum Kiryati. Polarization and statistical analysis of scenes containing a semireflector. J. Opt. Soc. Am., 17:276-84, 03 2000. 6, 7
+[24] YiChang Shih, Dilip Krishnan, Fredo Durand, and William T Freeman. Reflection removal using ghosting cues. In CVPR, 2015. 1
+[25] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. 6
+[26] Richard Szeliski, Shai Avidan, and P Anandan. Layer extraction from multiple images containing reflections and transparency. In CVPR, 2000. 3
+[27] Renjie Wan, Boxin Shi, Ling-Yu Duan, Ah-Hwee Tan, and Alex C Kot. Benchmarking single-image reflection removal algorithms. In ICCV, 2017. 3, 4
+[28] Kaixuan Wei, Jiaolong Yang, Ying Fu, David Wipf, and Hua Huang. Single image reflection removal exploiting misaligned training data and network enhancements. In CVPR, 2019. 1, 2, 3, 4, 6, 7, 8
+[29] Qiang Wen, Yinjie Tan, Jing Qin, Wenxi Liu, Guoqiang Han, and Shengfeng He. Single image reflection removal beyond linearity. In CVPR, 2019. 2, 4, 6, 7, 8
+[30] Tianfan Xue, Michael Rubinstein, Ce Liu, and William T Freeman. A computational approach for obstruction-free photography. TOG, 34(4):79, 2015. 3
+[31] Jie Yang, Dong Gong, Lingqiao Liu, and Qinfeng Shi. Seeing deeply and bidirectionally: a deep learning approach for single image reflection removal. In ECCV, 2018. 1, 2, 5, 6, 7, 8
+[32] Yang Yang, Wenye Ma, Yin Zheng, Jian-Feng Cai, and Weiyu Xu. Fast single image reflection suppression via convex optimization. In CVPR, 2019. 1, 2, 6, 7, 8
+[33] Y. Schechner Yoav, Shamir Joseph, and Kiryati Nahum. Polarization-based decorrelation of transparent layers: The inclination angle of an invisible surface. ICCV, 1999. 2, 7
+[34] Xuaner Zhang, Ren Ng, and Qifeng Chen. Single image reflection separation with perceptual losses. In CVPR, 2018. 1, 2, 3, 4, 6, 7, 8
\ No newline at end of file
diff --git a/polarizedreflectionremovalwithperfectalignmentinthewild/images.zip b/polarizedreflectionremovalwithperfectalignmentinthewild/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..3bc3f775360953d16838b427d09877b06de76189
--- /dev/null
+++ b/polarizedreflectionremovalwithperfectalignmentinthewild/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:90a944deff893a9310613e56387df13ecfd19fe2eadba385cffc6fbe803e45ca
+size 608494
diff --git a/polarizedreflectionremovalwithperfectalignmentinthewild/layout.json b/polarizedreflectionremovalwithperfectalignmentinthewild/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..f3a630f8fb5c9ced40d236d4e4041096b1c61bb7
--- /dev/null
+++ b/polarizedreflectionremovalwithperfectalignmentinthewild/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e0871eed85ffe71de38d283ec37fe2497b7e357f0807698f4d95767955af39d4
+size 521532
diff --git a/polarmasksingleshotinstancesegmentationwithpolarrepresentation/e20be8d7-b2c8-4acb-a5c5-f244a1e5b07a_content_list.json b/polarmasksingleshotinstancesegmentationwithpolarrepresentation/e20be8d7-b2c8-4acb-a5c5-f244a1e5b07a_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..d0b6aaaebc5389142ab407fbaeeefb2972ceb26c
--- /dev/null
+++ b/polarmasksingleshotinstancesegmentationwithpolarrepresentation/e20be8d7-b2c8-4acb-a5c5-f244a1e5b07a_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9beda3e95dad332470a20a5e05bacf30ec0cdd296d97b25cfe8131e206c1aac6
+size 71804
diff --git a/polarmasksingleshotinstancesegmentationwithpolarrepresentation/e20be8d7-b2c8-4acb-a5c5-f244a1e5b07a_model.json b/polarmasksingleshotinstancesegmentationwithpolarrepresentation/e20be8d7-b2c8-4acb-a5c5-f244a1e5b07a_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..38a18d62a05b9463c3a49e247960ee8f2a4e4676
--- /dev/null
+++ b/polarmasksingleshotinstancesegmentationwithpolarrepresentation/e20be8d7-b2c8-4acb-a5c5-f244a1e5b07a_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7edfed460bd1ef7d25ec37d5b0d07b57e83b002db44e85d3a516908296f6e4ce
+size 87647
diff --git a/polarmasksingleshotinstancesegmentationwithpolarrepresentation/e20be8d7-b2c8-4acb-a5c5-f244a1e5b07a_origin.pdf b/polarmasksingleshotinstancesegmentationwithpolarrepresentation/e20be8d7-b2c8-4acb-a5c5-f244a1e5b07a_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..6de9270783ed3130d0b6204f045af3e7e5ec16dd
--- /dev/null
+++ b/polarmasksingleshotinstancesegmentationwithpolarrepresentation/e20be8d7-b2c8-4acb-a5c5-f244a1e5b07a_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dc6c9b1f907a7e2a1fcb28d98bac36665ed58b69dbfc302231709ebeb99128c0
+size 1774481
diff --git a/polarmasksingleshotinstancesegmentationwithpolarrepresentation/full.md b/polarmasksingleshotinstancesegmentationwithpolarrepresentation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..869be5b17759fe95f8c2f972a547c3faf02d6624
--- /dev/null
+++ b/polarmasksingleshotinstancesegmentationwithpolarrepresentation/full.md
@@ -0,0 +1,307 @@
+# PolarMask: Single Shot Instance Segmentation with Polar Representation
+
+Enze Xie $^{1,2}$ , Peize Sun $^{3*}$ , Xiaoge Song $^{4*}$ , Wenhai Wang $^{4}$
+
+Xuebo Liu $^{2}$ , Ding Liang $^{2}$ , Chunhua Shen $^{5}$ , Ping Luo $^{1}$
+
+1The University of Hong Kong 2Sensetime Group Ltd
+
+$^{3}\mathrm{Xi}$ ’an Jiaotong University $^{4}\mathrm{Nanjing}$ University $^{5}\mathrm{The}$ University of Adelaide
+
+xieenze@hku.hk, peizesun@gmail.com, {wangwenhai362,xgs514}@163.com
+
+liuxuebo, liangding@sensetime.com, chunhua.shen@adelaide.edu.au, pluo@cs.hku.hk
+
+# Abstract
+
+In this paper, we introduce an anchor-box free and single shot instance segmentation method, which is conceptually simple, fully convolutional and can be used by easily embedding it into most off-the-shelf detection methods. Our method, termed PolarMask, formulates the instance segmentation problem as predicting contour of instance through instance center classification and dense distance regression in a polar coordinate. Moreover, we propose two effective approaches to deal with sampling high-quality center examples and optimization for dense distance regression, respectively, which can significantly improve the performance and simplify the training process. Without any bells and whistles, PolarMask achieves $32.9\%$ in mask mAP with single-model and single-scale training/testing on the challenging COCO dataset.
+
+For the first time, we show that the complexity of instance segmentation, in terms of both design and computation complexity, can be the same as bounding box object detection and this much simpler and flexible instance segmentation framework can achieve competitive accuracy. We hope that the proposed PolarMask framework can serve as a fundamental and strong baseline for single shot instance segmentation task. Code is available at: github.com/xieenze/PolarMask.
+
+# 1. Introduction
+
+Instance segmentation is one of the fundamental tasks in computer vision, which enables numerous downstream vision applications. It is challenging as it requires to predict both the location and the semantic mask of each instance in an image. Therefore intuitively instance segmentation can be solved by bounding box detection then semantic segmentation within each box, adopted by two-stage methods, such
+
+
+(a) Original image
+
+
+(b) Pixel-wise Representation
+
+
+
+
+(c) Cartesian Representation
+(d) Polar Representation
+Figure 1 - Instance segmentation with different mask representations. (a) is the original image. (b) is the pixel-wise mask representation. (c) and (d) represent a mask by its contour, in the Cartesian and Polar coordinates, respectively.
+
+as Mask R-CNN [15]. Recent trends in the vision community have spent more effort in designing simpler pipelines of bounding box detectors [17, 23, 29, 31, 33, 10, 19] and subsequent instance-wise recognition tasks including instance segmentation [2, 4, 34], which is also the main focus of our work here. Thus, our aim is to design a conceptually simple mask prediction module that can be easily plugged into many off-the-shelf detectors, enabling instance segmentation.
+
+Instance segmentation is usually solved by binary classification in a spatial layout surrounded by bounding boxes,
+
+
+Figure 2 – The overall pipeline of PolarMask. The left part contains the backbone and feature pyramid to extract features of different levels. The middle part is the two heads for classification and polar mask regression. $H, W, C$ are the height, width, channels of feature maps, respectively, and $k$ is the number of categories (e.g., $k = 80$ on the COCO dataset), $n$ is the number of rays (e.g., $n = 36$ )
+
+shown in Figure 1(b). Such pixel-to-pixel correspondence prediction is luxurious, especially in the single-shot methods. Instead, we point out that masks can be recovered successfully and effectively if the contour is obtained. An intuitive method to locate contours is shown in Figure 1(c), which predicts the Cartesian coordinates of the point composing the contour. Here we term it as Cartesian Representation. The second approach is Polar Representation, which applies the angle and the distance as the coordinate to locate points, shown in Figure 1(d).
+
+In this work, we design an instance segmentation method based on the Polar Representation since its inherent advantages are as follows: (1) The origin point of the polar coordinate can be seen as the center of object. (2) Starting from the origin point, the point in contour is determined by the distance and angle. (3) The angle is naturally directional and makes it very convenient to connect the points into a whole contour. We claim that Cartesian Representation may exhibit first two properties similarly. However, it lacks the advantage of the third property.
+
+We instantiate such an instance segmentation method by using the recent object detector FCOS [29], mainly for its simplicity. Note that, it is possible to use other detectors such as RetinaNet [23],YOLO [27] with minimal modification to our framework. Specifically, we propose PolarMask, formulating instance segmentation as instance center classification and dense distance regression in a polar coordinate, shown in Figure 2. The model takes an input image and predicts the distance from a sampled positive location (candidates of the instance center) to the instance contour at each angle, and after assembling, outputs the final mask. The overall pipeline of PolarMask is almost as simple and clean as FCOS. It introduces negligible computation overhead. Simplicity and efficiency are the two key factors for
+
+single-shot instance segmentation, and PolarMask achieves them successfully.
+
+Furthermore, PolarMask can be viewed as a generalization of FCOS. In other words, FCOS is a special case of PolarMask since bounding boxes can be viewed as the simplest mask with only 4 directions. Thus, one is suggested to use PolarMask over FCOS for instance recognition wherever mask annotation is available [5, 24, 11, 20].
+
+In order to maximize the advantages of Polar Representation, we propose Polar Centerness and Polar IoU Loss to deal with sampling high-quality center examples and optimization for dense distance regression, respectively. They improve the mask accuracy by about $15\%$ relatively, showing considerable gains under stricter localization metrics. Without bells and whistles, PolarMask achieves $32.9\%$ in mask mAP with single-model and single-scale training/testing on the challenging COCO dataset [24].
+
+The main contributions of this work are three-fold:
+
+- We introduce a brand new framework for instance segmentation, termed PolarMask, to model instance masks in the polar coordinate, which converts instance segmentation to two parallel tasks: instance center classification and dense distance regression. The main desirable characteristics of PolarMask is being simple and effective.
+- We propose the Polar IoU Loss and Polar Centerness, tailored for our framework. We show that the proposed Polar IoU loss can largely ease the optimization and considerably improve the accuracy, compared with standard loss such as the smooth- $l_{1}$ loss. In parallel, Polar Centerness improves the original idea of "Centreness" in FCOS, leading to further performance boost.
+
+- For the first time, we show that the complexity of instance segmentation, in terms of both design and computation complexity, can be the same as bounding box object detection. We further demonstrate this much simpler and flexible instance segmentation framework achieves competitive performance compared with more complex one-stage methods, which typically involve multi-scale training and longer training time.
+
+# 2. Related Work
+
+Two-Stage Instance Segmentation. Two-stage instance segmentation often formulates this task as the paradigm of "Detect then Segment" [21, 15, 25, 18]. They often detect bounding boxes then perform segmentation in the area of each bounding box. The main idea of FCIS [21] is to predict a set of position-sensitive output channels fully convolutionally. These channels simultaneously address object classes, boxes, and masks, making the system fast. Mask R-CNN [15], built upon Faster R-CNN, simply adds an additional mask branch and use RoI-Align to replace RoI-Pooling [12] for improved accuracy. Following Mask R-CNN, PANet [25] introduces bottom-up path augmentation, adaptive feature pooling, and fully-connected fusion to boost up the performance of instance segmentation. Mask Scoring R-CNN [18] re-scores the confidence of mask from classification score by adding a mask-IoU branch, which makes the network to predict the IoU of mask and ground-truth.
+
+In summary, the above methods typically consist of two steps, first detecting bounding box and then segmenting in each bounding box. They can achieve state-of-the-art performance but are often slow.
+
+One Stage Instance Segmentation. Deep Watershed Transform [1] uses fully convolutional networks to predict the energy map of the whole image and use the watershed algorithm to yield connected components corresponding to object instances. InstanceFCN [6] uses instance-sensitive score maps for generating proposals. It first produces a set of instance-sensitive score maps, then an assembling module is used to generate object instances in a sliding window. The recent YOLACT [2] first generates a set of prototype masks, the linear combination coefficients for each instance, and bounding boxes, then linearly combines the prototypes using the corresponding predicted coefficients and then crops with a predicted bounding box. TensorMask [4] investigates the paradigm of dense sliding-window instance segmentation, using structured 4D tensors to represent masks over a spatial domain. ExtremeNet [34] uses keypoint detection to predict 8 extreme points of one instance and generates an octagon mask, achieving relatively reasonable object mask prediction. The backbone of
+
+ExtremeNet is HourGlass [26], which is very heavy and often needs longer training time.
+
+Polar representation was firstly used in [28] to detect cells in microscopic images, where the problem is much simpler as there are only two categories. Concurrent to our work is the work of ESESeg [30], which also employs the polar coordinate to model instances. However, our PolarMask achieves significantly better performance than ESESeg due to very different designs other than the polar representation. Note that most of these methods do not model instances directly and they can sometimes be hard to optimize (e.g., longer training time, more data augmentation and extra labels). Our PolarMask directly models instance segmentation with a much simpler and flexible way of two paralleled branches: classifying each pixel of mass-center of instance and regressing the dense distance of rays between mass-center and contours. The most significant advantage of PolarMask is being simple and efficient compared with the above methods.
+
+# 3. Our Method
+
+In this section, we first briefly introduce the overall architecture of the proposed PolarMask. Then, we reformulate instance segmentation with the proposed Polar Representation. Next, we introduce a novel concept of Polar Centerness to ease the procedure of choosing high-quality center samples. Finally, we introduce a new Polar IoU Loss to optimize the dense regression problem.
+
+# 3.1. Architecture
+
+PolarMask is a simple, unified network composed of a backbone network [16], a feature pyramid network [22], and two or three task-specific heads, depending on whether predicting bounding boxes. The settings of the backbone and feature pyramid network are the same as FCOS [29]. While there exist many stronger candidates for those components, we align these settings with FCOS to show the simplicity and effectiveness of our instance modeling method.
+
+# 3.2. Polar Mask Segmentation
+
+In this section, we will describe how to model instances in the polar coordinate in detail.
+
+Polar Representation. Given an instance mask, we firstly sample a candidate center $(x_{c},y_{c})$ of the instance and the point located on the contour $(x_{i},y_{i})$ , $i = 1,2,\ldots,N$ . Then, starting from the center, $n$ rays are emitted uniformly with the same angle interval $\Delta \theta$ (e.g., $n = 36$ , $\Delta \theta = 10^{\circ}$ ), whose length is determined from the center to the contour. In this way, we model the instance mask in the polar coordinate as one center and $n$ rays. Since the angle interval
+
+
+Figure 3 - Mask Assembling. Polar Representation provides a directional angle. The contour points are connected one by one start from $0^{\circ}$ (bold line) and assemble the whole contour and mask.
+
+is pre-defined, only the length of the ray needs to be predicted. Therefore, we formulate the instance segmentation as instance center classification and dense distance regression in a polar coordinate.
+
+Mass Center. There are many choices for the center of the instance, such as box center or mass-center. How to choose a better center depends on its effect on mask prediction performance. Here we verify the upper bound of box center and mass-center and conclude that mass-center is more advantageous. Details are in Figure 7. We explain that the mass-center has a greater probability of falling inside the instance, compared with the box center. Although for some extreme cases, such as a donut, neither mass-center nor box center lies inside the instance. We leave it for further research.
+
+Center Samples. Location $(x, y)$ is considered as a center sample if it falls into areas around the mass-center of any instance. Otherwise, it is a negative sample. We define the region for sampling positive pixels to be $1.5 \times$ strides [29] of the feature map from the mass-center to left, top, right and bottom. Thus each instance has about $9 \sim 16$ pixels near the mass-center as center examples. It has two advantages: (1) Increasing the number of positive samples from 1 to $9 \sim 16$ can largely avoid imbalance of positive and negative samples. Nevertheless, focal loss [23] is still needed when training the classification branch. (2) Mass-center may not be the best center sample of an instance. More candidate points make it possible to automatically find the best center of one instance. We will discuss it in detail in Section 3.3.
+
+Distance Regression. Given a center sample $(x_c, y_c)$ and the contour point of an instance, the length of $n$ rays $\{d_1, d_2, \ldots, d_n\}$ can be computed easily. More details are in supplementary materials. Here we mainly discuss some corner cases:
+
+- If one ray has multiple intersection points with the contour of instance, we directly choose the one with the maximum length.
+
+
+Figure 4 - Polar Centerness. Polar Centerness is used to down-weight such regression tasks as the high diversity of rays' lengths as shown in red lines in the middle plot. These examples are always hard to optimize and produce low-quality masks. During inference, the polar centerness predicted by the network is multiplied to the classification score, thus can down-weight the low-quality masks.
+
+- If one ray, which starts from the center outside of the mask, does not have intersection points with the contour of an instance at some certain angles, we set its regression target as the minimum value $\epsilon$ (e.g., $\epsilon = 10^{-6}$ ).
+
+We argue that these corner cases are the main obstacles of restricting the upper bound of Polar Representation from reaching $100\%$ AP. However, it is not supposed to be seen as Polar Representation being inferior to the non-parametric Pixel-wise Representation. The evidence is two-fold. First, even the Pixel-wise Representation still has certain gap with the upper bound of $100\%$ AP in practice, since some operation, such as down-sampling, is indispensable. Second, current performance is far away from the upper bound regardless of the Pixel-wise Representation or Polar Representation. Therefore, the research effort is suggested to better spend on improving the practical performance of models, rather than the theoretical upper bound.
+
+The training of the regression branch is non-trivial. First, the mask branch in PolarMask is actually a dense distance regression task since every training example has $n$ rays (e.g., $n = 36$ ). It may cause an imbalance between the regression loss and classification loss. Second, for one instance, its $n$ rays are relevant and should be trained as a whole, rather than being seen as a set of independent regression examples. Therefore, we put forward the Polar IoU Loss, discussed in detail in Section 3.4.
+
+Mask Assembling. During inference, the network outputs the classification and centerness, we multiply centerness with classification and obtain final confidence scores. We only assemble masks from at most 1k top-scoring predictions per FPN level, after thresholding the confidence scores at 0.05. The top predictions from all levels are merged and non-maximum suppression (NMS) with a threshold of 0.5 is applied to yield the final results. Here we
+
+introduce the mask assembling process and a simple NMS process.
+
+Given a center sample $(x_{c},y_{c})$ and $n$ ray's length $\{d_1,d_2,\ldots ,d_n\}$ , we can calculate the position of each corresponding contour point with the following formula:
+
+$$
+x _ {i} = \cos \theta_ {i} \times d _ {i} + x _ {c} \tag {1}
+$$
+
+$$
+y _ {i} = \sin \theta_ {i} \times d _ {i} + y _ {c}. \tag {2}
+$$
+
+Starting from $0^{\circ}$ , the contour points are connected one by one, shown in Figure 3 and finally assembles a whole contour as well as the mask.
+
+We apply NMS to remove redundant masks. To simplify the process, We calculate the smallest bounding boxes of masks and then apply NMS based on the IoU of generated boxes.
+
+# 3.3. Polar Centerness
+
+Centerness [29] is introduced to suppress these low-quality detected objects without introducing any hyperparameters and it is proven to be effective in object bounding box detection. However, directly transferring it to our system can be sub-optimal since its centerness is designed for bounding boxes and we care about mask prediction.
+
+Given a set $\{d_1, d_2, \ldots, d_n\}$ for the length of $n$ rays of one instance. We propose Polar Centerness:
+
+$$
+\text {P o l a r C e n t e r n e s s} = \sqrt {\frac {\operatorname* {m i n} \left(\left\{d _ {1} , d _ {2} , \dots , d _ {n} \right\}\right)}{\operatorname* {m a x} \left(\left\{d _ {1} , d _ {2} , \dots , d _ {n} \right\}\right)}} \tag {3}
+$$
+
+It is a simple yet effective strategy to re-weight the points so that the closer $d_{min}$ and $d_{max}$ are, higher weight the point is assigned.
+
+We add a single layer branch, in parallel with the classification branch to predict Polar Centerness of a location, as shown in Figure 2. Polar Centerness predicted by the network is multiplied to the classification score, thus can downweight the low-quality masks. Experiments show that Polar Centerness improves accuracy especially under stricter localization metrics, such as $\mathrm{AP}_{75}$ .
+
+# 3.4. Polar IoU Loss
+
+As discussed above, the method of polar segmentation converts the task of instance segmentation into a set of regression problems. In most cases in the field of object detection and segmentation, smooth- $l_{1}$ loss [13] and IoU loss [32] are the two effective ways to supervise the regression problems. Smooth- $l_{1}$ loss overlooks the correlation between samples of the same objects, thus, resulting in less accurate localization. IoU loss, however, considers the optimization as a whole, and directly optimizes the metric of interest, IoU. Nevertheless, computing the IoU of the predicted mask and its ground-truth is tricky and very difficult
+
+
+Figure 5 - Mask IoU in Polar Representation. Mask IoU (interaction area over union area) in the polar coordinate can be calculated by integrating the differential IoU area in terms of differential angles.
+
+to implement parallel computations. In this work, we derive an easy and effective algorithm to compute mask IoU based on the polar vector representation and achieve competitive performance.
+
+We introduce Polar IoU Loss starting from the definition of IoU, which is the ratio of interaction area over union area between the predicted mask and ground-truth. As shown in Figure 5, in the polar coordinate system, for one instance, mask IoU is calculated as follows:
+
+$$
+\mathrm {I o U} = \frac {\int_ {0} ^ {2 \pi} \frac {1}{2} \min (d , d ^ {*}) ^ {2} d \theta}{\int_ {0} ^ {2 \pi} \frac {1}{2} \max (d , d ^ {*}) ^ {2} d \theta} \tag {4}
+$$
+
+where regression target $d$ and predicted $d^{*}$ are length of the ray, angle is $\theta$ . Then we transform it to the discrete form
+
+$$
+\mathrm {I o U} = \lim _ {N \rightarrow \infty} \frac {\sum_ {i = 1} ^ {N} \frac {1}{2} d _ {\min } ^ {2} \Delta \theta_ {i}}{\sum_ {i = 1} ^ {N} \frac {1}{2} d _ {\max } ^ {2} \Delta \theta_ {i}} \tag {6}
+$$
+
+When $N$ approaches infinity, the discrete form is equal to continuous form. We assume that the rays are uniformly emitted, so $\Delta \theta = \frac{2\pi}{N}$ , which further simplifies the expression. We empirically observe that the power form has little impact on the performance ( $\pm 0.1$ mAP difference) if it is discarded and simplified into the following form:
+
+$$
+\text {P o l a r I o U} = \frac {\sum_ {i = 1} ^ {n} d _ {\min }}{\sum_ {i = 1} ^ {n} d _ {\max }} \tag {7}
+$$
+
+Polar IoU Loss is the binary cross entropy (BCE) loss of Polar IoU. Since the optimal IoU is always 1, the loss is actually is negative logarithm of Polar IoU:
+
+$$
+\text {P o l a r I o U L o s s} = \log \frac {\sum_ {i = 1} ^ {n} d _ {\max }}{\sum_ {i = 1} ^ {n} d _ {\min }} \tag {8}
+$$
+
+| rays | AP | AP50 | AP75 | APS | APM | APL |
| 18 | 26.2 | 48.7 | 25.4 | 11.8 | 28.2 | 38.0 |
| 24 | 27.3 | 49.5 | 26.9 | 12.4 | 29.5 | 40.1 |
| 36 | 27.7 | 49.6 | 27.4 | 12.6 | 30.2 | 39.7 |
| 72 | 27.6 | 49.7 | 27.2 | 12.9 | 30.0 | 39.7 |
+
+(a) Number of Rays: More rays bring a large gain, while too many rays saturate since it already depicts the mask ground-truth well.
+
+| centerness | AP | AP50 | AP75 | APS | APM | APL |
| Original | 27.7 | 49.6 | 27.4 | 12.6 | 30.2 | 39.7 |
| Polar | 29.1 | 49.5 | 29.7 | 12.6 | 31.8 | 42.3 |
+
+(c) Polar Centerness vs. Centerness: Polar Centerness bring a large gain, especially high IoU $\mathrm{AP}_{75}$ and large instance $\mathrm{AP}_L$ .
+
+| backbone | AP | \( AP_{50} \) | \( AP_{75} \) | \( AP_S \) | \( AP_M \) | \( AP_L \) |
| ResNet-50 | 29.1 | 49.5 | 29.7 | 12.6 | 31.8 | 42.3 |
| ResNet-101 | 30.4 | 51.1 | 31.2 | 13.5 | 33.5 | 43.9 |
| ResNeXt-101 | 32.6 | 54.4 | 33.7 | 15.0 | 36.0 | 47.1 |
+
+(e) Backbone Architecture: All models are based on FPN. Better backbones bring expected gains: deeper networks do better, and ResNeXt improves on ResNet.
+
+| loss | α | AP | AP50 | AP75 | APS | APM | APL |
| Smooth-l1 | 0.05 | 24.7 | 47.1 | 23.7 | 11.3 | 26.7 | 36.8 |
| 0.30 | 25.1 | 46.4 | 24.5 | 10.6 | 27.3 | 37.3 |
| 1.00 | 20.2 | 37.9 | 19.6 | 8.6 | 20.6 | 31.1 |
| Polar IoU | 1.00 | 27.7 | 49.6 | 27.4 | 12.6 | 30.2 | 39.7 |
+
+(b) Polar IoU Loss vs. Smooth-L1 Loss: Polar IoU Loss outperforms Smooth- $l_{1}$ loss, even the best variants of balancing regression loss and classification loss.
+
+| box branch | AP | AP50 | AP75 | APS | APM | APL |
| w | 27.7 | 49.6 | 27.4 | 12.6 | 30.2 | 39.7 |
| w/o | 27.5 | 49.8 | 27.0 | 13.0 | 30.0 | 40.0 |
+
+(d) Box Branch: Box branch makes no difference to performance of mask prediction.
+
+| scale | AP | AP50 | AP75 | APS | APM | APL | FPS |
| 400 | 22.9 | 39.8 | 23.2 | 4.5 | 24.4 | 41.7 | 26.3 |
| 600 | 27.6 | 47.5 | 28.3 | 9.8 | 30.1 | 43.1 | 21.7 |
| 800 | 29.1 | 49.5 | 29.7 | 12.6 | 31.8 | 42.3 | 17.2 |
+
+(f) Accuracy/speed trade-off on ResNet-50: PolarMask performance with different image scales. The FPS is reported on one V100 GPU.
+
+Table 1 - Ablation experiments for PolarMask. All models are trained on trainval35k and tested on minival, using ResNet50-FPN backbone unless otherwise noted.
+
+Our proposed Polar IoU Loss exhibits two advantageous properties: (1) It is differentiable, enabling back propagation; and it is very easy to implement parallel computations, thus facilitating a fast training process. (2) It predicts the regression targets as a whole. It improves the overall performance by a large margin compared with smooth- $l_{1}$ loss, shown in our experiments. (3) As a bonus, Polar IoU Loss is able to automatically keep the balance between classification loss and regression loss of dense distance prediction. We will discuss it in detail in our experiments.
+
+# 4. Experiments
+
+We present results of instance segmentation on the challenging COCO benchmark [24]. Following common practice [15, 4], we train using the union of $80\mathrm{K}$ train images and a $35\mathrm{K}$ subset of val images (trainval35k), and report ablations on the remaining $5\mathrm{K}$ val. images (minival). We also compare results on test-dev. We adopt the $1\times$ training strategy [14, 3], single scale training and testing of image short-edge as 800 unless otherwise noted.
+
+Training Details. In ablation study, ResNet-50-FPN [16, 22] is used as our backbone networks and the same hyper-parameters with FCOS [29] are used. Specifically, our network is trained with stochastic gradient descent (SGD) for 90K iterations with the initial learning rate being 0.01 and a mini-batch of 16 images. The learning rate is reduced by a factor of 10 at iteration 60K and 80K, respec
+
+tively. Weight decay and momentum are set as 0.0001 and 0.9, respectively. We initialize our backbone networks with the weights pre-trained on ImageNet [9]. The input images are resized to have their shorter side being 800 and their longer side less or equal to 1333.
+
+# 4.1. Ablation Study
+
+Verification of Upper Bound. The first concern about PolarMask is that it might not depict the mask precisely. In this section, we prove that this concern may not be necessary. Here we verify the upper bound of PolarMask as the IoU of predicted mask and ground-truth when all of the rays regress to the distance equal to ground-truth. The verification results on different numbers of rays are shown in Figure 7. It can be seen that IoU is approaching to nearly perfect (above $90\%$ ) when the number of rays increases, which shows that Polar Segmentation is able to model the mask very well. Therefore, the concern about the upper bound of PolarMask is not necessary. Also, it is more reasonable to use mass-center than bounding box-center as the center of an instance because the bounding box center is more likely to fall out of the instance.
+
+Number of Rays. It plays a fundamental role in the whole system of PolarMask. From Table 1a and Figure 7, more rays show higher upper bound and better AP. For example, 36 rays improve by $1.5\%$ AP compared to 18 rays. Also, too many rays, 72 rays, saturate the performance since
+
+
+Figure 6 - Visualization of PolarMask with Smooth- $l_{1}$ loss and Polar IoU loss. Polar IoU Loss achieves to regress more accurate contour of instance while Smooth- $l_{1}$ Loss exhibits systematic artifacts.
+
+
+Figure 7 – Upper Bound Analysis. More rays can model instance mask with higher IoU with Ground Truth, and mass-center is more friendly to represent an instance than box-center. With more rays, e.g. 90 rays improve $0.4\%$ compared to 72 rays; and result is saturated with 120 rays.
+
+it already depicts the mask contours well and the number of rays is no longer the main factor constraining the performance.
+
+Polar IoU Loss vs. Smooth- $l_{1}$ Loss. We test both Polar IoU Loss and Smooth- $l_{1}$ Loss in our architecture. We note that the regression loss of Smooth- $l_{1}$ Loss is significantly larger than the classification loss since our architecture is a task of dense distance prediction. To cope with the imbalance, we select different factor $\alpha$ to regression loss in Smooth- $l_{1}$ Loss. Experiment results are shown in Table 1b. Our Polar IoU Loss achieves $27.7\%$ AP without balancing regression loss and classification loss. In contrast, the best setting for Smooth- $l_{1}$ Loss achieves $25.1\%$ AP, a gap of $2.6\%$ AP, showing that Polar IoU Loss is more effective than Smooth- $l_{1}$ loss for training the regression task of distances between mass-center and contours.
+
+We hypothesize that the gap may come from two folds. First, the Smooth- $l_{1}$ Loss may need more hyper-parameter search to achieve better performance, which can be time-consuming compared to the Polar IoU Loss. Second, Polar IoU Loss predicts all rays of one instance as a whole, which is superior to Smooth- $l_{1}$ Loss.
+
+In Figure 6 we compare some results using the Smooth- $l_{1}$ Loss and Polar IoU Loss respectively. Smooth- $l_{1}$ Loss exhibits systematic artifacts, suggesting that it lacks supervision of the level of the whole object. PolarMask shows
+
+more smooth and precise contours.
+
+Polar Centerness vs. Centerness. Visualization results can be found in the supplementary material. The comparison experiments are shown in Table 1c. Polar Centerness improves by $1.4\%$ AP overall.
+
+Particularly, $\mathrm{AP}_{75}$ and $\mathrm{AP}_L$ are raised considerably, $2.3\%$ AP and $2.6\%$ AP, respectively. We explain as follows. On the one hand, low-quality masks make more negative effect on high-IoU. On the other hand, large instances have more possibility of large difference between maximum and minimum lengths of rays, which is exactly the problem that Polar Centerness is committed to solve.
+
+Box Branch. Most of previous methods of instance segmentation require the bounding box to locate area of object and then segment the pixels inside the object. In contrast, PolarMask is capable to directly output the mask without bounding box.
+
+In this section, we test whether the additional bounding box branch can help improve the mask AP as follows. From Table 1d, we can see that bounding box branch makes little difference to performance of mask prediction. Thus, we do not have the bounding box prediction head in PolarMask for simplicity and faster speed.
+
+Backbone Architecture. Table 1e shows the results of PolarMask on different backbones. It can be seen that better feature extracted by deeper and advanced design networks improve the performance as expected.
+
+Speed vs. Accuracy. Larger image sizes yield higher accuracy, in slower inference speeds. Table 1f shows the speed and accuracy trade-off for different input image scales, defined by the shorter image side. The FPS is reported on one V100 GPU. Note that here we report the entire inference time, all post-processing included. It shows that PolarMask has a strong potentiality to be developed as a real-time instance segmentation application with simple modification. We also report more results in different benchmarks in the supplementary material.
+
+# 4.2. Comparison against state-of-the-art
+
+We evaluate PolarMask on the COCO dataset and compare test-dev results to state-of-the-art methods including
+
+
+Figure 8 - Results of PolarMask on COCO test-dev images with ResNet-101-FPN, achieving $30.4\%$ mask AP (Table 2).
+
+| method | backbone | epochs | aug | AP | \( AP_{50} \) | \( AP_{75} \) | \( AP_S \) | \( AP_M \) | \( AP_L \) |
| two-stage |
| MNC [7] | ResNet-101-C4 | 12 | o | 24.6 | 44.3 | 24.8 | 4.7 | 25.9 | 43.6 |
| FCIS [21] | ResNet-101-C5-dilated | 12 | o | 29.2 | 49.5 | - | 7.1 | 31.3 | 50.0 |
| Mask R-CNN [15] | ResNeXt-101-FPN | 12 | o | 37.1 | 60.0 | 39.4 | 16.9 | 39.9 | 53.5 |
| one-stage |
| ExtremeNet [34] | Hourglass-104 | 100 | ✓ | 18.9 | 44.5 | 13.7 | 10.4 | 20.4 | 28.3 |
| TensorMask [4] | ResNet-101-FPN | 72 | ✓ | 37.1 | 59.3 | 39.4 | 17.1 | 39.1 | 51.6 |
| YOLACT [2] | ResNet-101-FPN | 48 | ✓ | 31.2 | 50.6 | 32.8 | 12.1 | 33.3 | 47.1 |
| PolarMask | ResNet-101-FPN | 12 | o | 30.4 | 51.9 | 31.0 | 13.4 | 32.4 | 42.8 |
| PolarMask | ResNet-101-FPN | 24 | ✓ | 32.1 | 53.7 | 33.1 | 14.7 | 33.8 | 45.3 |
| PolarMask | ResNeXt-101-FPN | 12 | o | 32.9 | 55.4 | 33.8 | 15.5 | 35.1 | 46.3 |
| PolarMask | ResNeXt-101-FPN-DCN | 24 | ✓ | 36.2 | 59.4 | 37.7 | 17.8 | 37.7 | 51.5 |
+
+Table 2 - Instance segmentation mask AP on the COCO test-dev. The standard training strategy [14] is training by 12 epochs; and 'aug' means data augmentation, including multi-scale and random crop. $\checkmark$ is training with 'aug', $\circ$ is without 'aug'.
+
+both one-stage and two-stage models, shown in Table 2. PolarMask outputs are visualized in Figure 8. For data augmentation, we randomly scale the shorter side of images in the range from 640 to 800 during the training.
+
+Without any bells and whistles, PolarMask is able to achieve competitive performance with more complex one-stage methods. With a simpler pipeline and half training epochs, PolarMask outperforms YOLACT with $0.9\mathrm{mAP}$ . Moreover, the best PolarMask with deformable convolutional layers [8] can achieve $36.2\mathrm{mAP}$ , which is comparable with state-of-the-art methods.
+
+In the supplementary material, we compare the FPS between TensorMask and PolarMask with the same image size and device. PolarMask can run at 12.3 FPS with the ResNet-101 backbone, which is 4.7 times faster than TensorMask. Even when equipped with DCN [8], PolarMask can still be three times faster than TensorMask.
+
+# 5. Conclusion
+
+PolarMask is a single shot anchor-box free instance segmentation method. Different from previous works that typically solve mask prediction as binary classification in a spatial layout, PolarMask puts forward to represent a mask by its contour and model the contour by one center and rays emitted from the center to the contour in polar coordinate. PolarMask is designed almost as simple and clean as single-shot object detectors, introducing negligible computing overhead. We hope that the proposed PolarMask framework can serve as a fundamental and strong baseline for single-shot instance segmentation tasks.
+
+Acknowledgements and Declaration of Conflicting Interests This work was partially supported by HKU Seed Fund for Basic Research, Start-up Fund and Research Donation from SenseTime. Chunhua Shen and his employer received no financial support for the research, authorship, and/or publication of this article.
+
+# References
+
+[1] Min Bai and Raquel Urtasun. Deep watershed transform for instance segmentation. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 5221-5229, 2017.
+[2] Daniel Bolya, Chong Zhou, Fanyi Xiao, and Yong Jae Lee. Yolact: Real-time instance segmentation. Proc. IEEE Int. Conf. Comp. Vis., 2019.
+[3] Kai Chen, Jiaqi Wang, Jiangmiao Pang, Yuhang Cao, Yu Xiong, Xiaoxiao Li, Shuyang Sun, Wansen Feng, Ziwei Liu, Jiarui Xu, Zheng Zhang, Dazhi Cheng, Chenchen Zhu, Tianheng Cheng, Qijie Zhao, Buyu Li, Xin Lu, Rui Zhu, Yue Wu, Jifeng Dai, Jingdong Wang, Jianping Shi, Wanli Ouyang, Chen Change Loy, and Dahua Lin. Mmdetection: Open mmlab detection toolbox and benchmark, 2019.
+[4] Xinlei Chen, Ross Girshick, Kaiming He, and Piotr Dólar. Tensormask: A foundation for dense object segmentation. Proc. IEEE Int. Conf. Comp. Vis., 2019.
+[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 Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 3213-3223, 2016.
+[6] Jifeng Dai, Kaiming He, Yi Li, Shaoqing Ren, and Jian Sun. Instance-sensitive fully convolutional networks. In Proc. Eur. Conf. Comp. Vis., pages 534-549. Springer, 2016.
+[7] Jifeng Dai, Kaiming He, and Jian Sun. Instance-aware semantic segmentation via multi-task network cascades. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 3150-3158, 2016.
+[8] Jifeng Dai, Haozhi Qi, Yuwen Xiong, Yi Li, Guodong Zhang, Han Hu, and Yichen Wei. Deformable convolutional networks. In Proc. IEEE Int. Conf. Comp. Vis., pages 764-773, 2017.
+[9] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 248-255. IEEE, 2009.
+[10] Kaiwen Duan, Song Bai, Lingxi Xie, Honggang Qi, Qingming Huang, and Qi Tian. Centernet: Keypoint triplets for object detection. In Proc. IEEE Int. Conf. Comp. Vis., pages 6569-6578, 2019.
+[11] 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, 2010.
+[12] Ross Girshick. Fast R-CNN. In Proc. IEEE Int. Conf. Comp. Vis., pages 1440-1448, 2015.
+[13] Ross Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 580-587, 2014.
+[14] Ross Girshick, Ilija Radosavovic, Georgia Gkioxari, Piotr Dollár, and Kaiming He. Detector. https://github.com/facebookresearch/detectron, 2018.
+
+[15] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross Girshick. Mask R-CNN. In Proc. IEEE Int. Conf. Comp. Vis., pages 2961-2969, 2017.
+[16] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., June 2016.
+[17] Lichao Huang, Yi Yang, Yafeng Deng, and Yinan Yu. Densebox: Unifying landmark localization with end to end object detection. arXiv preprint arXiv:1509.04874, 2015.
+[18] Zhaojin Huang, Lichao Huang, Yongchao Gong, Chang Huang, and Xinggang Wang. Mask scoring R-CNN. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 6409-6418, 2019.
+[19] Tao Kong, Fuchun Sun, Huaping Liu, Yuning Jiang, and Jianbo Shi. Foveabox: Beyond anchor-based object detector. arXiv preprint arXiv:1904.03797, 2019.
+[20] 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.
+[21] Yi Li, Haozhi Qi, Jifeng Dai, Xiangyang Ji, and Yichen Wei. Fully convolutional instance-aware semantic segmentation. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 2359-2367, 2017.
+[22] Tsung-Yi Lin, Piotr Dollar, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. Feature pyramid networks for object detection. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., July 2017.
+[23] Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dollar. Focal loss for dense object detection. In Proc. IEEE Int. Conf. Comp. Vis., Oct 2017.
+[24] 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 Proc. Eur. Conf. Comp. Vis., pages 740-755. Springer, 2014.
+[25] Shu Liu, Lu Qi, Haifang Qin, Jianping Shi, and Jiaya Jia. Path aggregation network for instance segmentation. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 8759-8768, 2018.
+[26] Alejandro Newell, Kaiyu Yang, and Jia Deng. Stacked hourglass networks for human pose estimation. In Proc. Eur. Conf. Comp. Vis., pages 483-499. Springer, 2016.
+[27] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 779-788, 2016.
+[28] Uwe Schmidt, Martin Weigert, Coleman Broaddus, and Gene Myers. Cell detection with star-convex polygons. In Proc. Int. Medical Image Computing and Computer-Assisted Intervention, pages 265–273. Springer, 2018.
+[29] Zhi Tian, Chunhua Shen, Hao Chen, and Tong He. FCOS: Fully convolutional one-stage object detection. In Proc. IEEE Int. Conf. Comp. Vis., 2019.
+[30] Wenqiang Xu, Haiyang Wang, Fubo Qi, and Cewu Lu. Explicit shape encoding for real-time instance segmentation. In Proc. IEEE Int. Conf. Comp. Vis., pages 5168-5177, 2019.
+
+[31] Ze Yang, Shaohui Liu, Han Hu, Liwei Wang, and Stephen Lin. Repoints: Point set representation for object detection. arXiv: Comp. Res. Repository, 2019.
+[32] Jiahui Yu, Yuning Jiang, Zhangyang Wang, Zhimin Cao, and Thomas Huang. Unitbox: An advanced object detection network. In Proc. ACM Int. Conf. Multimedia, pages 516-520. ACM, 2016.
+[33] Xingyi Zhou, Dequan Wang, and Philipp Krahenbuhl. Objects as points. arXiv: Comp. Res. Repository, 2019.
+[34] Xingyi Zhou, Jiacheng Zhuo, and Philipp Krahenbuhl. Bottom-up object detection by grouping extreme and center points. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 850-859, 2019.
\ No newline at end of file
diff --git a/polarmasksingleshotinstancesegmentationwithpolarrepresentation/images.zip b/polarmasksingleshotinstancesegmentationwithpolarrepresentation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..5d23b01e3861786e1c8670e77e8e78e2bd31588d
--- /dev/null
+++ b/polarmasksingleshotinstancesegmentationwithpolarrepresentation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f6db7e6996fd5234f858027517871c315317a216c66517b486037e8a21670333
+size 578579
diff --git a/polarmasksingleshotinstancesegmentationwithpolarrepresentation/layout.json b/polarmasksingleshotinstancesegmentationwithpolarrepresentation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..6dd7b6640e038f3e3be91501587f89aa83b36917
--- /dev/null
+++ b/polarmasksingleshotinstancesegmentationwithpolarrepresentation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7c1b5fafe4ce466b5601ca51b09653cda580c25b28f86f73455feb4a32c16ca4
+size 372521
diff --git a/polarnetanimprovedgridrepresentationforonlinelidarpointcloudssemanticsegmentation/878b27b5-824a-48f1-b908-28f6f684e5c7_content_list.json b/polarnetanimprovedgridrepresentationforonlinelidarpointcloudssemanticsegmentation/878b27b5-824a-48f1-b908-28f6f684e5c7_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..7d4db89e62de8749656c8c27ff233c110ca76517
--- /dev/null
+++ b/polarnetanimprovedgridrepresentationforonlinelidarpointcloudssemanticsegmentation/878b27b5-824a-48f1-b908-28f6f684e5c7_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f17a2ef1794a10b53e170c29faec9570a403d473f2356bbae71ba7b209170953
+size 88625
diff --git a/polarnetanimprovedgridrepresentationforonlinelidarpointcloudssemanticsegmentation/878b27b5-824a-48f1-b908-28f6f684e5c7_model.json b/polarnetanimprovedgridrepresentationforonlinelidarpointcloudssemanticsegmentation/878b27b5-824a-48f1-b908-28f6f684e5c7_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..2cbb6c984d701d8a9a8a06a091305e388e023b95
--- /dev/null
+++ b/polarnetanimprovedgridrepresentationforonlinelidarpointcloudssemanticsegmentation/878b27b5-824a-48f1-b908-28f6f684e5c7_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a4752ef91e555a0978d8fdeda7c74cb6740fdb5857c2fcbcd50fe8d1c9855805
+size 106610
diff --git a/polarnetanimprovedgridrepresentationforonlinelidarpointcloudssemanticsegmentation/878b27b5-824a-48f1-b908-28f6f684e5c7_origin.pdf b/polarnetanimprovedgridrepresentationforonlinelidarpointcloudssemanticsegmentation/878b27b5-824a-48f1-b908-28f6f684e5c7_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..a301296e30c684fc4851b992464d8161022b78ae
--- /dev/null
+++ b/polarnetanimprovedgridrepresentationforonlinelidarpointcloudssemanticsegmentation/878b27b5-824a-48f1-b908-28f6f684e5c7_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:63a83922b5b47d500ef627cfd0a3c4928d3f18b7af804d11f1d26ccf3a6b8120
+size 1154210
diff --git a/polarnetanimprovedgridrepresentationforonlinelidarpointcloudssemanticsegmentation/full.md b/polarnetanimprovedgridrepresentationforonlinelidarpointcloudssemanticsegmentation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..8245bf9a24f5a18a2a508c8d765238119349b844
--- /dev/null
+++ b/polarnetanimprovedgridrepresentationforonlinelidarpointcloudssemanticsegmentation/full.md
@@ -0,0 +1,295 @@
+# PolarNet: An Improved Grid Representation for Online LiDAR Point Clouds Semantic Segmentation
+
+# Yang Zhang $^{1}$ , Zixiang Zhou $^{1}$ , Philip David $^{2}$ , Xiangyu Yue $^{3}$ , Zerong Xi $^{1}$ , Boqing Gong $^{\dagger 1}$ , and Hassan Foroosh $^{1}$
+
+$^{1}$ Department of Computer Science, University of Central Florida
+
+$^{2}$ Computational and Information Sciences Directorate, U.S. Army Research Laboratory
+
+3 Department of Electrical Engineering and Computer Sciences, University of California, Berkeley
+
+yangzhang@knights.ucf.edu, zhouzixiang@knights.ucf.edu, philip.j.david4.civ@mail.mil, xyyue@berkeley.edu, zxi@knights.ucf.edu, boqinggo@outlook.com, foroosh@cs.ucf.edu
+
+# Abstract
+
+The need for fine-grained perception in autonomous driving systems has resulted in recently increased research on online semantic segmentation of single-scan LiDAR. Despite the emerging datasets and technological advancements, it remains challenging due to three reasons: (1) the need for near-real-time latency with limited hardware; (2) uneven or even long-tailed distribution of LiDAR points across space; and (3) an increasing number of extremely fine-grained semantic classes. In an attempt to jointly tackle all the aforementioned challenges, we propose a new LiDAR-specific, nearest-neighbor-free segmentation algorithm — PolarNet. Instead of using common spherical or bird's-eye-view projection, our polar bird's-eye-view representation balances the points across grid cells in a polar coordinate system, indirectly aligning a segmentation network's attention with the long-tailed distribution of the points along the radial axis. We find that our encoding scheme greatly increases the mIoU in three drastically different segmentation datasets of real urban LiDAR single scans while retaining near real-time throughput.
+
+# 1. Introduction
+
+There has been a great surge of LiDAR point cloud data over the last decade, especially in the self-driving domain. In order to make use of the LiDAR point clouds in various downstream applications, it is vital to develop automatic analytic methods to make sense of the data. In this paper, we focus on the online fine-grained semantic segmentation of
+
+
+Figure 1. Point-level SemanticKITTI [1] segmentation mIoU vs. multiply-accumulate operations per scan on the same GPU. Our Unet-based PolarNet not only significantly outperforms CartesianBEV Unet, PointNet, SqueezeSeg and SqueezeSeg's overparameterized variants (connected by line), but also retains remarkably low computational cost.
+
+LiDAR point clouds. Similar to image semantic segmentation, the task is to assign a semantic label to each of the points given an input point cloud.
+
+While several large-scale LiDAR point clouds datasets are publicly available [9, 29, 42, 3], it is until recent that the semantic segmentation labels, provided by [1, 10], are able to match their scales. The lag between the release of massive point clouds and the readiness of semantic segmentation labels indicates the challenge for human raters to provide point-wise labels and the demand for automatic and fast semantic segmentation solutions for LiDAR scans.
+
+We consider to use end-to-end deep neural networks for the single-scan semantic segmentation of LiDAR point clouds. Before studying the network architecture or advanced training algorithms, however, we first focus on the
+
+input to the network. What constitutes a good input representation of one LiDAR point cloud scan? We draw inspirations from several related domains to answer this question.
+
+In image segmentation, the perception field [39] is one of the most principled considerations in designing high-performing CNN. It determines how much context a neural network can "perceive" before it classifies a pixel to a semantic class. In general, large perception fields improve performance. Techniques to enlarge the perception fields of convolutional neural networks include dilated convolution [39, 5], feature pyramid [17], etc.
+
+When it comes to the LiDAR point clouds, we conjecture that not only the size but also the shape of the perception field matters. If we view a LiDAR scan from a bird's-eye view, the points are organized in rings of various radii (cf. Figures 2 and 3). As a result, the regular Cartesian coordinate would distribute the points into the grid cells in a nonuniform manner. Cells that are close to the sensor have to condense many points by each cell, blurring out fine-details of the points. In contrast, cells that are far away from the sensor each contain very sparse points, supplying limited cues for the neural network to label the points in such a cell.
+
+To this end, we propose to let the CNN perception fields track the special ring structure by partitioning a LiDAR scan with a polar grid. This simple change of the representation of the input to a neural network turns out to be very effective, boosting various semantic segmentation networks' performances by significant margins.
+
+Existing works on the LiDAR scan understanding, however, fail to track the ring structure. Wu et al. [36] convert the point-cloud segmentation problem to a depth map segmentation problem by spherically projecting points onto an image. Zhang et al. [41] handcraft a bird's-eye-view (BEV) representation of the point cloud and yet represent it by regular grids. Yang et al. [38] employ a similar BEV representation for object detection from the LiDAR point clouds.
+
+On the one hand, the works above show it is promising to employ BEV representations of the LiDAR scans in segmentation and detection. On the other hand, however, we contend they fail to fully take advantage of the structures revealed from BEV. We boost the vanilla BEV representations in two major ways. One is the polar grid to track the ring structures in the LiDAR scans. The other is that we learn, instead of handcrafting, the local features per grid cell.
+
+While polar coordination is no stranger to pre-DL computer vision [2], it is rare in CNN given the images as well as feature matrices are essentially Cartesian. To fully integrate the polar BEV representation with a 2D CNN, we first redesign the BEV quantization scheme. Instead of quantizing points based on their Cartesian coordinates on the $XY$ plane, we now assign points according to their top-down polar coordinates as shown in Fig. 3. Mimicking BEV's circular pattern with increasing sparsity, polar BEV significantly
+
+balance the points per grid by near one order of magnitude (c.f. Fig. 4). Inspired by Lang et al.[16], we then learn a simplified PointNet to transform points in each grid into a fix-length representation vector.
+
+Since we quantize the points in polar coordinate, ideally the feature matrix should be in polar coordinate as well. To ensure the consistency of the perception field in the downstream CNN, we arrange those feature vectors into a polar grid whose leftmost and rightmost column are connected. We also modified the downstream CNN to be capable to convolve continuously on the polar grid. After obtaining the discrete prediction, which is also a polar grid, we map it back to the points in Cartesian space and evaluate the performance. Our pipeline is visualized in Fig. 2.
+
+We validate our approach on SemanticKITTI[1], A2D2[10] and Paris-Lille-3D[26] datasets. Results show that our approach outperforms the state of art method by $2.1\%$ , $4.5\%$ and $3.7\%$ , respectively, on mean intersection-over-union (mIoU) evaluation metric with merely 1/3 of its parameters and MACs.
+
+The contributions of our work are summarised as follows:
+
+- We propose a more suitable LiDAR scan representation which takes the imbalanced spatial distribution of points into consideration.
+- Our presented PolarNet network, which is trained end-to-end using our polar grid data representation, surpasses the state of art method on public benchmarks with low computational cost as shown in Fig. 1.
+- We provide thorough analysis on the semantic segmentation performance based on different backbone segmentation networks using a polar grid compared to other representations, such as Cartesian BEV.
+
+# 2. Related Works
+
+# 2.1. Point cloud applications and methods
+
+Most current point cloud applications focus on general point clouds in which points are densely distributed on object surfaces, such as single 3D object shape recognition [34], indoor point cloud segmentation [31, 27], and reconstruction of outdoor scenes from point clouds [30]. Despite sharing different tasks, in order to reach their goals, they must address a similar core problem: how to extract contextual information, whether local or global, from points that are irregularly distributed in space. Judging by the approach of aggregating context information, there are mainly two ways this is done: parameterized [34, 32, 15, 13] and non-parameterized [22, 23, 27]. Other works voxelize the points and then apply a 3D volume segmentation /detection algorithm [31]. The representative work of the latter approach is the famous PointNet [22] algorithm. PointNet and
+
+its successor [23] individually process each point and then use a set function to aggregate context information among those points. The parameterized ones are more commonly seen in the graph-based approaches [34, 32, 15], where the points are modeled as a graph via KNN and then convoluted based on their graph connectivity.
+
+# 2.2. LiDAR applications and methods
+
+Although LiDAR sensors provide highly accurate distance measurement regardless of lighting conditions, the point clouds generated from LiDAR are more sparse in space, which makes it more challenging to extract information from. Besides, processing resources in systems where LiDAR sensors are typically used, such as in self-driving vehicles, are often restrictive, requiring real-time performance from embedded hardware. To address this issue, researchers have proposed different representations for the 3D data, which can be categorized into front-view and bird's-eye-view (BEV). Although different representations of the LiDAR 3D point clouds are used, each quantizes the points into a compressed 2D snapshot of the scene that may be processed by a 2D neural network, thus avoiding expensive graph neural networks or 3D operations.
+
+Front view representations include depth image-like and spherical projections. Depth map or viewing frustum approaches apply a pinhole camera model to project 3D point clouds onto a 2D image grid. [21] clustered points according to the frustum, where a 3D deep neural network is used within to identify the object. In spherical projection, points are projected onto a 2D spherical grid for a dense representation. SqueezeSeg [35] and SqueezeSegV2 [36] used spherical projections to represent point clouds for a light 2D semantic segmentation network, which is able to achieve real-time performance. The prediction result is further smoothed through a conditional random field (CRF) model and then re-projected back to a 3D point cloud. RangeNet++ [19] replaced the backbone network of SqueezeNet and CRF in SqueezeSeg to YOLOv3 [24] Darknet and a GPU-based K-nearest neighbor search to achieve a better segmentation result. Being an empirically better representation than the depth map, BEV represents point clouds from a top-down perspective without losing any scale and range information and is widely used for LiDAR detection [33, 38, 16, 14, 37] and recently also for segmentation [41]. PIXOR [38] encoded the feature of each cell after discretizing point clouds into BEV representation as occupancy and normalized reflectance. Next, a neural network with 2D convolutional layers is used for 3D object detection. PointPillars [16] improved this idea by adding a PointNet model on the BEV representation.
+
+There are many LiDAR object detection datasets in existence, such as the Waymo Open Dataset [29] and the KITTI 3D detection dataset [9]. LiDAR scan semantic
+
+segmentation datasets, conversely, are somewhat rare. To our knowledge, there are only three so far: the Audi dataset [10], Paris-Lille-3D [26] and the Semantic KITTI dataset [1]. Other point cloud segmentation datasets, such as Semantic3D [11], are out of the scope of online LiDAR segmentation. Annotating RGB images for semantic segmentation algorithm development is a laborious task; however, the task of annotating LiDAR data for semantic segmentation is even more difficult and less intuitive, which might be the reason for so few LiDAR segmentation datasets.
+
+# 2.3. 2D semantic segmentation
+
+2D semantic segmentation networks, which evolved from Fully Convolutional Networks (FCN) [18], have demonstrated a significant improvement on various benchmarks in recent years. Similar to the success in other computer vision tasks, such as pose estimation and object detection, most efficient semantic segmentation networks [40] adopt an encoder-decoder structure, where a 2D image feature map is first reduced to extract high level contextual information and then expanded to retrieve spatial information. Among these networks, DeepLab [4] and Unet [25] are two well-known successful representatives, both of which are designed to fuse multi-scale contextual information together. DeepLab and its successors [5, 6] took advantage of diluted convolution filters to increase the reception field while Unet added skip connections to directly concatenate different levels of semantic features and is proven to be more efficient in images with irregular and coarse edges, like medical images.
+
+# 3. Approach
+
+# 3.1. Problem Statement
+
+Given a training dataset of $N$ LiDAR scans $\{(P_i,L_i)|i = 1,\dots ,N\}$ $P_{i}\in \mathbb{R}^{n_{i}\times 4}$ is the ith point set containing $n_i$ LiDAR points. Each row of $P_{i}$ consists of four features representing one LiDAR point $p$ namely $(x,y,z,$ reflection). $(x,y,z)$ is the Cartesian coordinate of the point relative to the scanner. The reflection is the intensity of returning laser beam. $L_{i}\in \mathbb{Z}^{n_{i}}$ contains the object labels for each point $p_j$ in $P_{i}$
+
+Our goal is to learn a segmentation model $f(\cdot ;\theta)$ parameterized by $\theta$ so that the difference between the prediction $f(P_{i})$ and $L_{i}$ is minimized.
+
+# 3.2. Bird's-eye-view Partitioning
+
+Although a point cloud scan consists of scattered observations of the surrounding 3D environment, empirically, one may represent it as a top-down snapshot of the scene with minimum information loss. [7] proposes to input such top-down orthogonal projections directly into a 2D detec
+
+
+Figure 2. Overview of our model. For a given LiDAR point cloud, we first quantize the points into grids using their polar BEV coordinates. For each of those grid cells, we use a simplified KNN-free PointNet to transform points in it to a fixed-length representation. The representation is then assigned to its corresponding location in the ring matrix. We input the matrix to the ring CNN, which is composed of ring convolution modules. Finally, the CNN outputs a quantized prediction and we decode it to the point domain.
+
+
+(a) Cartesian BEV
+
+
+(b) Polar BEV
+Figure 3. Two BEV quantization strategies. Each grid cell on the image denotes one feature in a feature map.
+
+tion network to detect objects in 3D point clouds. And it is later on used in point cloud segmentation [41]. By taking a 2D top-down image as the input, the network outputs a tensor of the same dimensional shape with each spatial location encoding the class prediction for each voxel along the z-axis of that location. This elegant approach accelerates the segmentation process by taking advantage of years of research in 2D CNNs. It also avoids expensive 3D segmentation and 3D graph operations.
+
+The original motivation of the BEV was to represent the scene with a top-down image to speed up the downstream task-specific CNNs. Based on years of experience designing CNN architectures, researchers choose BEV representations to closely resemble the appearance of natural images so as to maximally utilize the downstream CNNs, which happen to be designed for natural images. Hence, initial BEV representations created top-down projections of the point clouds. Recently, variants of the initial BEV attempt to encode each pixel in the BEV with rich different heights [38], reflection [28] and even learned representations [16]. However, one thing remained unchanged: the BEV methods used a Cartesian grid partition as shown in Fig. 3(a).
+
+A grid is the fundamental image representation, but it may not be the best representation for BEV. A BEV is a compromise between performance and precision. By observing a BEV image, we immediately notice that points densely concentrated in the middle grid cells and peripheral grid cells stay totally empty. Uneven partitioning does not
+
+
+Figure 4. Grid cell distance from the sensor vs. logarithmically spaced mean number of points per grid cell. The traditional BEV representation allocates most of its grid cells to the further end with few points in them.
+
+only waste computational power, but also limits feature representiveness for the center grid cells. Besides, points with different labels might be assigned to a single cell. The minor points' predictions will be suppressed by the majority in the output since the final prediction is on voxel-level.
+
+# 3.3. Polar Bird's-eye-view
+
+How do we address this imbalance? Based on the ring-like structure presented in the LiDAR scan top-down view, we present our Polar partitioning replacing the Cartesian partitioning in Fig. 3.
+
+Instead of quantizing points in a Cartesian coordinate system, we first calculate each point's azimuth and radius on the $XY$ plane with the sensor's location as the origin. We then assign points to grid cells based on their quantized azimuth and radius.
+
+We find the benefit of polar BEV to be twofold. First, it more evenly distributes the points. To verify this claim, we computed a statistic on the validation split of the SemanticKITTI dataset [1]. As shown in Fig. 4, the points per polar grid cell is much less than in the Cartesian BEV when the cell is close to the sensor. This indicates that the representation for the densely occupied grid is finer. With the same number of grid cells, the traditional BEV grid cell has on average $0.7 \pm 3.2$ points while polar BEV grid cell has on average $0.7 \pm 1.4$ points. The difference between the standard deviations indicates that, overall, the points are more evenly distributed across the polar BEV grids.
+
+The second benefit of the polar BEV is that the more bal
+
+anced point distribution lessens the burden on predictors. Since we reshape 2D network output to voxel prediction for point prediction, unavoidably, some points with different groundtruth labels will be assigned to the same voxel. And some of them will be misclassified no matter what. With the Cartesian BEV, on average, $98.75\%$ of points in every grid cell share the same label. And this number jumps to $99.3\%$ in the polar BEV. This indicates that points in the polar BEV are less subjected to misclassification due to the spatial representation. Considering that small objects are more likely to be overwhelmed by majority labels in a voxel, this $0.6\%$ difference might have a more profound impact in the eventual mIoU. To further investigate the mIoU upper bound, we set each point's prediction as the majority label of its assigned voxel. It turns out that the Cartesian BEV's mIoU reaches $97.3\%$ in the sanity check. And the polar BEV reaches $98.5\%$ . The higher upper bound in the polar BEV will likely increase the downstream model performance.
+
+# 3.4. Learning the Polar Grid
+
+Instead of arbitrarily handcrafting the features for each grid, we capture the distribution of points in each grid with a fixed-length representation. It is produced by a learnable simplified PointNet [22] $h$ followed by a max-pooling. The network only contains fully-connected layers, batch-normalization and ReLu layers. The feature in the $i,j$ -th grid cell in a scan is:
+
+$$
+\operatorname {f e a} _ {i, j} = \operatorname {M A X} \left(\left\{h (p) \mid w _ {i} < p _ {x} < w _ {i + 1}, l _ {j} < p _ {y} < l _ {j + 1} \right\}\right) \tag {1}
+$$
+
+where $w$ and $l$ are the quantization sizes. $p_x$ and $p_y$ are locations of point $p$ in the map. Note that the locations and quantization sizes could be either polar or Cartesian. We do not quantize the input point cloud along the z-axis. Similar to [16], our learned representation represents the entire vertical column of a grid.
+
+If the representation is learned in the polar coordinate system, the two sides of the feature matrix will be connected along the azimuth-axis in physical space as shown in Fig. 2. We developed a discrete convolution which we refer to as a ring convolution. The ring convolution kernel will convolve the matrix assuming the matrix is connected on both ends of the radius axis. Meanwhile, gradients located in the opposite side can propagate back to the other side through this ring convolution kernel. By replacing the normal convolution with the ring convolution in a 2D network, the network will be able to end-to-end process the polar grid without ignoring its connectivity. This provides models with extended receptive fields. Since it is a 2D neural network, the eventual prediction will also be a polar grid whose feature dimension equals to the multiplication of quantized height channel and number of classes. We can then reshape the
+
+
+(a) SemanticKITTI
+
+
+(b) A2D2
+Figure 5. PolarNet outperforms baselines despite different scanline patterns in datasets. Zoom in for more details.
+
+
+(c) Paris-Lille-3D
+
+prediction to a 4D matrix to derive a voxel-based segmentation loss.
+
+As readers may notice, most CNNs are technically capable of processing polar grids if convolutions are replaced with ring convolutions. We refer to a network with ring-convolutions that is trained to process polar grids as a ring CNN.
+
+# 4. Experiments
+
+We present our experimental setup, results and ablation study in this section.
+
+# 4.1. Datasets
+
+We use the SemanticKITTI[1], A2D2[10] and Paris-Lille-3D[26] datasets in our experiments.
+
+SemanticKITTI is a point-level re-annotation of the LiDAR part of the famous KITTI dataset [9]. It has a total of 43551 scans sampled from 22 sequences collected in different cities in Germany. It has 104452 points per scan on average and each scan is collected by a single Velodyne HDL-64E laser scanner shown in Fig.5(a). There are 19 challenging classes in total. The most frequent class, 'vegetation', has $4.82 \times 10^{7}$ times more points than the least frequency class, 'motorcyclist'. Obviously, this is a heavily imbalanced and challenging dataset. We follow SemanticKITTI's subset split protocol and use ten sequences for training, one for validation and the rest of them for testing. We present several baselines that have been presented with SemanticKITTI. We report the segmentation performance on the SemanticKITTI testing subset by uploading our segmentation prediction to their evaluation server.
+
+A2D2 dataset is a comprehensive autonomous driving dataset developed by Audi. It includes a 38-class segmentation annotation. Despite that the A2D2 data is presented as 3D points in space, these points distribute differently from the KITTI counterparts. We present an example in Fig. 5(b). First of all, a single sensor creates a panoramic LiDAR scan in the KITTI dataset. Meanwhile, A2D2 uses five asynchronous LiDAR sensors where each sensor covers a potion of the surrounding view. Hence almost all the A2D2 reconstructed LiDAR views do not cover all degrees. Secondly, as shown in Fig. 5(b), A2D2 LiDAR sensors do not necessarily produce horizontal scanlines. Our goal is to simulate a vehicle's immediate perception during operation. We first project all LiDAR points
+
+back to the vehicle coordinate system. We then manually create (semi-)panoramic LiDAR compositions from any partial scans asynchronously generated within a time window of 50ms. Since sensors are not available all of the time, some generated scans are left incomplete. This heterogeneous composition poses a great challenge for all segmentation algorithms, including ours. With the aforementioned LiDAR panoramic stitching, we create 22408, 2774 and 13264 training, validation and test scans, respectively.
+
+In contrast to the other two datasets, Paris-Lille-3D provides 3 aggregated point clouds, which are built from continuous LiDAR scans of streets in Paris and Lille collected with one tilted rear-mounted Velodyne HDL-32E. Each point is annotated with one of nine segmentation classes, its timestamp and its world coordinate. Given scanner trajectory and points' timestamps, we extract individual scans from the registered point clouds. We record one scan every $50\mathrm{ms}$ . Each scan is made of points within $+/-100\mathrm{ms}$ , e.g. 5(c). In total, we create 5112, 1205 and 1273 training, validation and test scans, respectively. We upload the testing predictions for Paris-Lille-3D to their evaluation server to obtain the official testing results. Since Paris-Lille-3D accepts composition predictions only, we aggregate multi-scan predictions via max-voting.
+
+Voxelization: After analyzing the spatial distribution of points in the SemanticKITTI, A2D2 and Paris-Lille-3D training split, we respectively fixed the Cartesian BEV grid spaces to be $[x:\pm 50m,y:\pm 50m,z: -3\sim 1.5m]$ , $[x:\pm 50m,y:\pm 50m,z: -3\sim 9m]$ and $[x:\pm 15m,y:\pm 15m,z: -3\sim 12m]$ and respectively [distance: $3\sim 50m,z: -3\sim 1.5m]$ , [distance: $0\sim 50m,z: -3\sim 9m]$ and [distance: $0\sim 15m,z: -3\sim 12m]$ for our polar BEV to include more than $99\%$ of points for each scan on average. Points exceeding this range are assigned to the closest BEV grid cell. In addition, we set the respective grid sizes as [480, 360, 32], [320, 320, 32] and [320, 320, 32].
+
+# 4.2. Baselines and Metric
+
+SqueezeSeg: As the pioneer work in this field, Wu et al. [35] converted this problem to a 2D segmentation problem by projecting LiDAR points onto a spherical surface surrounding the sensor. They also added a CRF to further improve the end results by enforcing the neighboring label consistency. Besides the vanilla SqueezeSeg and SqueezeSeg-v2, Behley et al. [1] replaced the SqueezeNet backbone with YOLO [24] Darknet-53. This over-parameterization further improved the results by more than $10\%$ on SemanticKITTI over SqueezeSeg-v2. In addition, RangeNet++ [19] includes a KNN-based post-processing method which is used after the CNN segmentation network to reduce the error created by the discretization of spherical intermediate representation.
+
+PointNet[22]: PointNet is a simplistic network able to
+
+predict point semantic segmentation. It individually processes each point with a fully connected network first. Then it summarizes a global representation by max pooling the features of all points. The predictor predicts each point's class from the concatenation of that point's features and the global representation. PointNet++ [23] is an empirical improvement obtained by adding hierarchical pooling and context representation to vanilla PointNet.
+
+TangentConv [30]: Tatarchenko and Park et al. propose to use tangent convolutions on surface geometry to predict segmentation classes for 3D point clouds.
+
+RandLA [12]: Hu et al. propose to segment large scale point clouds with a local feature aggregation module.
+
+We report accuracy, per-class IoU and mIoU. mIoU is the mean over all semantic classes of class intersection over union. A class $c$ 's intersection over union, $(IoU_{c})$ , refers to the intersection of the class prediction and ground truth divided by their union:
+
+$$
+I o U _ {c} = \frac {\left| \mathcal {P} _ {c} \cap \mathcal {G} _ {c} \right|}{\left| \mathcal {P} _ {c} \cup \mathcal {G} _ {c} \right|}. \tag {2}
+$$
+
+Given the unique properties of LiDAR applications, we also report models' single scan prediction latency, maximum frames-per-second with largest possible batch size (FPS), average multiply-accumulate operations per scan (MAC), and number of model parameters. We report the average on the entire validation split with the same GPU. We do not down-sample points in points-related models.
+
+We use official implementations or reported results for our baselines. We implemented our own network in Pytorch [20]. We use torch Geometric [8] to parallelize points max pooling in each grid.
+
+# 4.3. SemanticKITTI Segmentation Experiment
+
+Table 1 shows the performance comparison between our approaches and multiple baselines. The results demonstrate that our polar bird's-eye-view segmentation network based on Unet outperforms the state of the art method even with a smaller number of parameters and lower latency. As shown in this table, point-based methods like PointNet and TangentConv are inefficient when used with large LiDAR point clouds and poor in segmentation accuracy. For per class IoU, our BEV approaches achieves improvements in most classes, especially in those classes that are irregular and sparsely distributed in space, which matches with the scale and range preserving properties of the polar BEV. We also notice particularly low performance on "other-ground" and "motorcyclist." Investigation suggests they are visually indistinguishable from other classes. By SemanticKITTI's definition, "other-ground" is essentially sidewalk/terrain like ground but serving other purposes, e.g., traffic islands. As for motorcyclist, it is challenging
+
+Table 1. Segmentation results on test split of SemanticKITTI.
+
+| Model | FPS | Latency | MACs | Params | Acc | mIoU | Per class IoU | |
| car | bicycle | motorcycle | truck | other-vehicle | person | bicyclist | motorcyclist | road | parking | sidewalk | other-ground | building | fence | vegetation | trunk | terrain | pole | traffic-sign |
| PointNet [22] | 11.5 | 0.087s | 141B | 3.5M | - | 14.6% | 46.3% | 1.3% | 0.3% | 0.1% | 0.8% | 0.2% | 0.2% | 0.0% | 61.6% | 15.8% | 35.7% | 1.4% | 41.4% | 12.9% | 31.0% | 4.6% | 17.6% | 2.4% | 3.7% |
| PointNet++ [23] | - | - | - | 6M | - | 20.1% | 53.7% | 1.9% | 0.2% | 0.9% | 0.2% | 0.9% | 1.0% | 0.0% | 72.0% | 18.7% | 41.8% | 5.6% | 62.3% | 16.9% | 46.5% | 13.8% | 30.0% | 6.0% | 8.9% |
| Squeezeseg [35] | 49.2 | 0.031s | 13B | 0.9M | - | 29.5% | 68.8% | 16.0% | 4.1% | 3.3% | 3.6% | 12.9% | 13.1% | 0.9% | 85.4% | 26.9% | 54.3% | 4.5% | 57.4% | 29.0% | 60.0% | 24.3% | 53.7% | 17.5% | 24.5% |
| TangentConv [30] | - | - | - | 0.4M | - | 35.9% | 86.8% | 1.3% | 12.7% | 11.6% | 10.2% | 17.1% | 20.2% | 0.5% | 82.9% | 15.2% | 61.7% | 9.0% | 82.8% | 44.2% | 75.5% | 42.5% | 55.5% | 30.2% | 22.2% |
| Squeezesegv2 [36] | 36.7 | 0.036s | 14B | 0.9M | - | 39.7% | 81.8% | 18.5% | 17.9% | 13.4% | 14.0% | 20.1% | 25.1% | 3.9% | 88.6% | 45.8% | 67.6% | 17.7% | 73.7% | 41.1% | 71.8% | 35.8% | 60.2% | 20.2% | 36.3% |
| DarkNet53 [1] | 12.7 | 0.087s | 378B | 50M | 87.8% | 49.9% | 86.4% | 24.5% | 32.7% | 25.5% | 22.6% | 36.2% | 33.6% | 4.7% | 91.8% | 64.8% | 74.6% | 27.9% | 84.1% | 55.0% | 78.3% | 50.1% | 64.0% | 38.9% | 52.2% |
| RangeNet++ [19] | - | - | 378B | 50M | 89.0% | 52.2% | 91.4% | 25.7% | 34.4% | 25.7% | 23.0% | 38.3% | 38.8% | 4.8% | 91.8% | 65.0% | 75.2% | 27.8% | 87.4% | 58.6% | 80.5% | 55.1% | 64.6% | 47.9% | 55.9% |
| RandLA [12] | - | - | - | 1.2M | - | 53.9% | 94.2% | 26.0% | 25.8% | 40.1% | 38.9% | 49.2% | 48.2% | 7.2% | 90.7% | 60.3% | 73.7% | 20.4% | 86.9% | 56.3% | 81.4% | 66.8% | 49.2% | 47.7% | 38.1% |
| Unet w/Cartesian BEV | 19.7 | 0.051s | 134B | 14M | 87.6% | 50.7% | 92.7% | 26.8% | 23.1% | 26.7% | 24.2% | 48.1% | 41.0% | 4.4% | 86.7% | 52.3% | 67.2% | 12.9% | 89.5% | 57.7% | 80.8% | 62.5% | 62.5% | 50.3% | 53.5% |
| PolarNet | 16.2 | 0.062s | 135B | 14M | 90.0% | 54.3% | 93.8% | 40.3% | 30.1% | 22.9% | 28.5% | 43.2% | 40.2% | 5.6% | 90.8% | 61.7% | 74.4% | 21.7% | 90.0% | 61.3% | 84.0% | 65.5% | 67.8% | 51.8% | 57.5% |
+
+even for a human to tell a motorcyclist from person or bicyclist because the motorcycle itself is often largely occluded. Besides, motorcyclists are the rarest class in the dataset — constitute $0.004\%$ of the training points and only one instance appears in the official validation sequence.
+
+# 4.4. A2D2 Segmentation Experiment
+
+We present our A2D2 results in Table. 2. Our method undoubtedly outperforms other baselines in terms of both mIoU and speed. By observing mIoU, we see A2D2 to be a challenging dataset. Despite being the leading method, our mIoU using only LiDAR data on this dataset is merely $23\%$ while our mIoU on SemanticKITTI is $54\%$ . Our methods also double the IoU in multiple classes such as bicycle, pedestrian, small-vehicle, traffic-light, sidebars, signal corpus, parking area and dash-line. The dataset is indeed challenging since both baselines and our methods achieved near zero IoU in multiple classes as well.
+
+# 4.5. Paris-Lille-3D Segmentation Experiment
+
+As indicated by the Paris-Lille-3D segmentation results in Table 4, PolarNet outperforms DarkNet53 by $3.7\%$ in mIoU. The segmentation performances are interestingly diverse. PolarNet greatly improved the results in barrier since it is mostly far away from vehicle. However Cartesian Unet has great advantage in the trash can, which has very few samples in both training and validation.
+
+# 4.6. Impact of Projection Methods
+
+In Table 3, we show the results of SemanticKITTI mIoU with different segmentation backbone networks, include SqueezeSeg, Resnet-50-FCN, DRN-DeepLab and Resnet101-DeepLab, on three different projection methods: spherical projection proposed in SqueezeSeg [35], Cartesian BEV and our polar BEV. For spherical projection, we followed the setup of projecting point clouds with zenith angles ranging from $-25^{\circ}$ to $3^{\circ}$ into [64, 2048] grids in the projected sphere plane as in [19]. The results show that no matter what segmentation network is used, BEV always considerably outperforms spherical projection methods. The inferior performance of spherical projection can be explained in two ways. First, since point clouds are directly projected onto 2D sphere coordinate, spherical projection suffers more from the error generated from quantization.
+
+Second, distance information is lost during projection even when explicitly encoded into features, which enables points distant in space to locate in neighboring 2D grids and easily get misclassified as the same label. Meanwhile, experiments also show that polar BEV achieves a comparable and better performance than Cartesian BEV for each backbone network. Since LiDAR point clouds are sparse in space and discontinuous due to occlusion, quantization creates irregular and inconsistent edges in 2D representations. Such inconsistency allows Unet to stand out from those backbone segmentation networks and achieve the best performance.
+
+# 4.7. Augmenting LiDAR Segmentation
+
+In addition, we analyze the effects of different training settings on the validation mIoU result in Table 5. The baseline is our polar BEV Unet network with grid size of [256, 256, 32]. "RC" denotes using the ring convolution kernel rather than a normal 2D convolution in the backbone network. "9F" denotes we use 2 Cartesian coordinates, 3 residual distances from the center of the assigned grid and 1 reflection in addition to 3 polar coordinates, totaling 9 features as the input of our CNN network for each point. "FA" denotes we add $25\%$ probability each to randomly flip a point cloud along $x, y$ and $x + y$ axes for data augmentation. "FS" denotes we fix the volume space of BEV based on our statistical analysis mentioned before. "TG" denotes we tuned the grid size to be [480, 360, 32] after trying different grid size configurations to reach the best performance. From Table 5, we can see that fixing volume space contributes the most significant improvement of $2.8\%$ increase in mIoU by making scale invariant in each scan. These augmentations are applied to the Cartesian BEV network as well in all other experiments.
+
+# 4.8. mIoU vs. Distance to Sensor
+
+Furthermore, we sort the point-wise predictions in validation split w.r.t. the distance from the sensor and analyze the mIoU result at different distances. Fig. 6 shows that with the increase of distance, mIoU reduces simultaneously. The reason for this pattern is that distant points are more rare and separated in space, which makes it harder for the segmentation network to extract contextual information from the BEV representation. This observation is the same as in [1]. However, the most intriguing conclusion we obtain from this figure relates to the different BEV representations:
+
+Table 2. Segmentation results on test split of A2D2.
+
+| Model | FPS | Latency | MACs | Params | Acc | mIoU | Per class IoU | |
| car | bicycle | pedestrian | truck | small vehicles | traffic signal | traffic sign | utility vehicle | sidebars | speed bumper | curbsstone | solid line | irrelevant signs | road blocks | tractor | non- drivable street | zebra crossing | | |
| Squeezeseg [35] | 87.5 | 0.009s | 15B | 0.9M | - | 8.9% | 9.7% | 0.0% | 0.0% | 15.8% | 0.0% | 0.7% | 64.4% | 0.0% | 0.4% | 0.0% | 2.2% | 15.6% | 0.5% | 15.9% | 0.0% | 0.0% | 0.0% | | |
| Squeezesegv2 [36] | 67.1 | 0.015s | 15B | 0.9M | 81.0% | 16.4% | 15.4% | 0.2% | 8.6% | 63.8% | 0.0% | 16.8% | 61.7% | 0.6% | 0.1% | 0.0% | 14.8% | 24.7% | 12.7% | 33.2% | 0.0% | 5.8% | 0.0% | | |
| DarkNet53 [1] | 16.1 | 0.063s | 378B | 50M | 82.0% | 17.2% | 15.2% | 0.8% | 6.1% | 68.5% | 0.0% | 15.5% | 63.8% | 0.4% | 0.3% | 0.0% | 17.3% | 23.8% | 13.3% | 35.6% | 0.0% | 6.3% | 0.0% | | |
| Unet w/ Cartesian BEV | 49.5 | 0.028s | 60B | 14M | 83.5% | 20.3% | 27.0% | 7.3% | 20.3% | 66.0% | 1.9% | 25.2% | 54.7% | 6.5% | 12.7% | 0.0% | 20.3% | 26.8% | 21.4% | 42.5% | 0.0% | 9.5% | 0.0% | | |
| PolarNet | 38.4 | 0.031s | 60B | 14M | 85.4% | 23.9% | 23.8% | 10.1% | 18.2% | 69.7% | 9.6% | 49.1% | 58.5% | 0.0% | 11.3% | 0.0% | 28.3% | 37.6% | 24.8% | 42.8% | 0.0% | 14.8% | 0.0% | | |
| Model | mIoU | Per class IoU | |
| obstacles / trash | poles | RD restricted area | animals | grid structure | signal corpus | drivable cobblestone | electronic traffic | ejecting | nature object | parking area | sidewalk | ego car | painted drive instr. | traffic guide obj. | dashed line | RD normal street | sky | buildings | blurred area | rain dirt | | |
| Squeezeseg [35] | 8.9% | 0.0% | 0.3% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 64.5% | 0.0% | 13.7% | 0.0% | 0.0% | 0.1% | 0.2% | 77.7% | 10.4% | 27.7% | 0.0% | 0.0% | | | |
| Squeezesegv2 [36] | 16.4% | 0.2% | 5.2% | 29.5% | 0.0% | 10.3% | 5.5% | 2.7% | 0.0% | 1.9% | 76.4% | 3.8% | 29.2% | 0.0% | 6.4% | 12.4% | 17.1% | 85.8% | 12.1% | 50.9% | 0.0% | 0.0% | | | |
| DarkNet53 [1] | 17.2% | 3.9% | 7.6% | 38.7% | 0.0% | 10.8% | 4.4% | 3.3% | 0.0% | 0.0% | 77.9% | 3.1% | 31.5% | 0.0% | 9.4% | 7.3% | 15.7% | 86.4% | 12.9% | 55.2% | 0.0% | 0.0% | | | |
| Unet w/ Cartesian BEV | 20.3% | 4.3% | 11.0% | 44.7% | 0.0% | 11.8% | 11.9% | 6.4% | 0.0% | 0.0% | 81.6% | 11.9% | 35.1% | 0.0% | 6.9% | 13.7% | 20.2% | 89.2% | 5.8% | 56.1% | 0.0% | 0.0% | | | |
| PolarNet | 23.9% | 8.0% | 11.0% | 55.6% | 0.0% | 14.8% | 11.9% | 7.0% | 0.0% | 4.4% | 81.6% | 12.8% | 42.5% | 0.0% | 12.7% | 11.5% | 31.8% | 90.3% | 9.2% | 57.0% | 0.0% | 0.0% | | | |
+
+Table 3. How projection methods impact models' segmentation performance on val split of SemanticKITTI.
+
+| Model | Projection | FPS | Latency | MACs | Params | mIoU | Per class IoU | |
| car | bicycle | motorcycle | truck | other-vehicle | person | bicyclist | motorcyclist | road | parking | sidewalk | other-ground | building | tens | vegetation | trunk | terrain | pole | traffic-sign |
| Squeezezeg | Spherical | 83.6 | 0.012s | 14B | 0.9M | 31.8% | 79.4% | 0.0% | 0.0% | 3.2% | 1.3% | 0.0% | 0.0% | 0.0% | 90.9% | 19.8% | 74.7% | 0.0% | 75.3% | 31.6% | 80.6% | 37.3% | 71.1% | 13.2% | 26.3% |
| Cartesian BEV | 19.5 | 0.051s | 101B | 1.5M | 42.6% | 90.4% | 15.2% | 16.6% | 13.5% | 16.8% | 39.0% | 45.8% | 0.0% | 85.7% | 25.3% | 65.2% | 0.0% | 86.1% | 32.1% | 79.7% | 54.4% | 60.1% | 50.9% | 33.2% |
| Polar BEV | 17.8 | 0.056s | 105B | 1.5M | 42.2% | 89.8% | 22.1% | 19.8% | 14.2% | 9.2% | 37.0% | 14.3% | 0.4% | 83.7% | 15.8% | 65.6% | 0.0% | 85.9% | 40.2% | 85.6% | 54.2% | 72.1% | 54.9% | 36.7% |
| Resnet-FCN | Spherical | 38.6 | 0.048s | 92B | 117M | 41.6% | 82.3% | 1.5% | 13.7% | 65.8% | 15.5% | 20.3% | 31.2% | 0.0% | 92.1% | 32.4% | 75.6.2% | 0.1% | 77.3% | 31.6% | 78.1% | 43.9% | 66.8% | 36.6% | 25.2% |
| Cartesian BEV | 11.7 | 0.088s | 197B | 117M | 49.2% | 89.9% | 28.2% | 15.6% | 56.5% | 30.5% | 41.0% | 66.1% | 0.0% | 88.6% | 38.3% | 71.5% | 6.1% | 86.5% | 30.4% | 81.5% | 52.2% | 65.7% | 46.7% | 39.3% |
| Polar BEV | 11.5 | 0.091s | 200B | 117M | 52.5% | 92.1% | 22.8% | 36.2% | 57.5% | 24.6% | 42.5% | 63.9% | 0.0% | 92.1% | 43.6% | 77.5% | 1.7% | 90.0% | 46.9% | 84.4% | 56.0% | 73.1% | 53.3% | 40.2% |
| DRN-DL | Spherical | 39.1 | 0.038s | 94B | 41M | 43.4% | 82.6% | 3.1% | 24.5% | 51.1% | 18.3% | 27.3% | 23.9% | 0.0% | 93.0% | 37.2% | 77.4% | 0.2% | 76.8% | 42.1% | 79.7% | 46.2% | 68.7% | 39.2% | 32.9% |
| Cartesian BEV | 10.0 | 0.100s | 171B | 41M | 46.7% | 90.4% | 14.1% | 20.3% | 51.4% | 37.3% | 39.3% | 42.3% | 0.0% | 87.6% | 30.6% | 68.0% | 1.5% | 86.5% | 33.0% | 83.2% | 49.2% | 69.8% | 44.3% | 39.0% |
| Polar BEV | 9.9 | 0.101s | 173B | 41M | 51.2% | 91.6% | 19.4% | 35.0% | 34.6% | 20.8% | 50.8% | 55.1% | 0.0% | 92.5% | 38.6% | 77.5% | 1.1% | 88.5% | 44.4% | 84.8% | 59.7% | 70.6% | 56.7% | 40.2% |
| Resnet-DL | Spherical | 89.5 | 0.031s | 45B | 59M | 41.6% | 81.0% | 0.6% | 17.1% | 58.9% | 12.1% | 21.3% | 24.7% | 0.0% | 92.5% | 33.5% | 76.4% | 0.0% | 76.0% | 40.4% | 78.6% | 45.7% | 68.3% | 35.1% | 28.6% |
| Cartesian BEV | 11.8 | 0.090s | 107B | 60M | 50.4% | 92.6% | 17.8% | 41.9% | 62.0% | 24.2% | 42.0% | 66.3% | 0.0% | 87.1% | 27.2% | 69.6% | 0.4% | 87.4% | 41.5% | 84.7% | 54.8% | 71.0% | 48.7% | 39.1% |
| Polar BEV | 11.7 | 0.094s | 109B | 60M | 53.6% | 91.5% | 30.7% | 38.8% | 46.4% | 24.0% | 54.1% | 62.2% | 0.0% | 92.4% | 47.1% | 78.0% | 1.8% | 89.1% | 45.5% | 85.4% | 59.6% | 72.3% | 58.1% | 42.2% |
+
+Table 4. Segmentation results on test split of Paris-Lille-3D.
+
+| Model | Acc | mIoU | Per class IoU |
| ground | building | pole | bollard | trash can | barrier | pedestrian | car | vegetation |
| Squeezesegv2 [%] | 87.3% | 36.9% | 95.9% | 82.7% | 18.7% | 9.9% | 3.8% | 15.2% | 3.4% | 49.9% | 52.8% |
| DarkNet53 [1] | 88.9% | 40.0% | 96.7% | 84.9% | 19.5% | 16.7% | 4.8% | 17.6% | 3.4% | 58.2% | 57.9% |
| Unet w/Cartesian BEV | 80.9% | 40.3% | 96.0% | 44.0% | 38.4% | 42.8% | 12.7% | 12.4% | 12.1% | 70.4% | 33.60% |
| PolarNet | 87.5% | 43.7% | 96.8% | 69.1% | 32.2% | 27.6% | 2.4% | 27.5% | 12.1% | 74.0% | 51.60% |
+
+Table 5. Improvement break down. RC denotes ring convolution. 9F denotes using 9 features to describe each point. FA denotes flip augmentation. FS denotes fixed volume space. TG denotes tuned grid size.
+
+| RC | 9F | FA | FS | TG | mIoU |
| | | | | 46.9% |
| × | | | | | 47.4% |
| × | × | | | | 48.5% |
| × | × | × | | | 50.6% |
| × | × | × | × | | 53.4% |
| × | × | × | × | × | 54.9% |
+
+
+Figure 6. Points distance to sensor vs. their IoU in different networks and projections. Clearly, closer points benefits the most from polar BEV regardless of backbone networks.
+
+polar BEV overall gets higher mIoU in close range than Cartesian BEV due to the more evenly distributed points in this BEV representation, as shown in Fig. 4. This grants polar BEV superior mIoU on closer points, which are the majority in a scan.
+
+# 5. Conclusion
+
+In this paper, we present a novel data representation for the online, single-scan LiDAR point cloud semantic segmentation problem. Our approach addresses the problem of long-tailed spatial distribution of LiDAR point clouds by quantizing points into polar bird's-eye-view (BEV) grids, where we encode points into fixed size representations through a trainable PointNet. Built upon the polar grid representation, our PolarNet network achieves a significant improvement in mIoU over state-of-the-art methods on the SemanticKITTI, A2D2, and Paris-Lille-3D datasets with fewer parameters, more throughput, and lower inference latency. Moreover, our experiments show universal improvement among different segmentation networks using our polar BEV compared to spherical projection and Cartesian BEV, indicating that our polar grid is a superior yet general LiDAR point cloud data representation for the online semantic segmentation problem.
+
+# References
+
+[1] Jens Behley, Martin Garbade, Andres Milioto, Jan Quenzel, Sven Behnke, Cyril Stachniss, and Jurgen Gall. SemanticKITTI: A dataset for semantic scene understanding of lidar sequences. In Proceedings of the IEEE International Conference on Computer Vision, pages 9297-9307, 2019. 1, 2, 3, 4, 5, 6, 7, 8
+[2] Serge Belongie, Jitendra Malik, and Jan Puzicha. Shape context: A new descriptor for shape matching and object recognition. In Advances in neural information processing systems, pages 831-837, 2001. 2
+[3] Holger Caesar, Varun Bankiti, Alex H. Lang, Sourabh Vora, Venice Erin Liong, Qiang Xu, Anush Krishnan, Yu Pan, Giancarlo Baldan, and Oscar Beijbom. nuScenes: A multimodal dataset for autonomous driving. arXiv preprint arXiv:1903.11027, 2019. 1
+[4] Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L Yuille. Semantic image segmentation with deep convolutional nets and fully connected crfs. arXiv preprint arXiv:1412.7062, 2014. 3
+[5] Liang-Chieh Chen, George Papandreou, Florian Schroff, and Hartwig Adam. Rethinking atrous convolution for semantic image segmentation. arXiv preprint arXiv:1706.05587, 2017. 2, 3
+[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, pages 801-818, 2018. 3
+[7] Xiaozhi Chen, Huimin Ma, Ji Wan, Bo Li, and Tian Xia. Multi-view 3d object detection network for autonomous driving. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1907-1915, 2017. 3
+[8] Matthias Fey and Jan E. Lenssen. Fast graph representation learning with PyTorch Geometric. In ICLR workshop on representation learning on graphs and manifolds, 2019. 6
+[9] A. Geiger, P. Lenz, and R. Urtasun. Are we ready for autonomous driving? The KITTI vision benchmark suite. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3354-3361, 2012. 1, 3, 5
+[10] Jakob Geyer, Yohannes Kassahun, Mentar Mahmudi, Xavier Ricou, Rupesh Durgesh, Andrew S. Chung, Lorenz Hauswald, Viet Hoang Pham, Maximilian Mühlegg, Sebastian Dorn, Tiffany Fernandez, Martin Janicke, Sudesh Mirashi, Chiragkumar Savani, Martin Sturm, Oleksandr Vorobiov, and Peter Schuberth. A2D2: AEV autonomous driving dataset. 2019. 1, 2, 3, 5
+[11] T Hackel, N Savinov, L Ladicky, JD Wegner, K Schindler, and M Pollefeys. SEMANTIC3D. NET: a new large-scale point cloud classification benchmark. ISPRS Annals of Photogrammetry, Remote Sensing and Spatial Information Sciences, pages 91-98, 2017. 3
+[12] Qingyong Hu, Bo Yang, Linhai Xie, Stefano Rosa, Yulan Guo, Zhihua Wang, Niki Trigoni, and Andrew Markham. RandLA-Net: Efficient semantic segmentation of large-scale
+
+point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2020. 6, 7
+[13] Qiangui Huang, Weiyue Wang, and Ulrich Neumann. Recurrent slice networks for 3d segmentation of point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2626-2635, 2018. 2
+[14] Jason Ku, Melissa Mozifian, Jungwook Lee, Ali Harakeh, and Steven L Waslander. Joint 3d proposal generation and object detection from view aggregation. In Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems, pages 1-8, 2018. 3
+[15] Loic Landrieu and Martin Simonovsky. Large-scale point cloud semantic segmentation with superpoint graphs. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4558-4567, 2018. 2, 3
+[16] Alex H Lang, Sourabh Vora, Holger Caesar, Lubing Zhou, Jiong Yang, and Oscar Beijbom. PointPillars: Fast encoders for object detection from point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 12697-12705, 2019. 2, 3, 4, 5
+[17] 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, pages 2117-2125, 2017. 2
+[18] 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. 3
+[19] Andres Milioto and C Stachniss. RangeNet++: Fast and accurate LiDAR semantic segmentation. In Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems, 2019. 3, 6, 7
+[20] 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
+[21] Charles R Qi, Wei Liu, Chenxia Wu, Hao Su, and Leonidas J Guibas. Frustum pointnets for 3d object detection from rgbd data. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 918-927, 2018. 3
+[22] 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. 2, 5, 6, 7
+[23] Charles Ruizhongtai Qi, Li Yi, Hao Su, and Leonidas J Guibas. Pointnet++: Deep hierarchical feature learning on point sets in a metric space. In Advances in neural information processing systems, pages 5099-5108, 2017. 2, 3, 6, 7
+[24] Joseph Redmon and Ali Farhadi. Yolov3: An incremental improvement. arXiv preprint arXiv:1804.02767, 2018. 3, 6
+[25] 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, 2015. 3
+[26] Xavier Roynard, Jean-Emmanuel Deschaud, and François Goulette. Paris-Lille-3D: A large and high-quality groundtruth urban point cloud dataset for automatic segmentation and classification. The International Journal of Robotics Research, 37(6):545-557, 2018. 2, 3, 5
+[27] Shaoshuai Shi, Xiaogang Wang, and Hongsheng Li. Poincaré: 3d object proposal generation and detection from point cloud. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 770-779, 2019. 2
+[28] Martin Simon, Stefan Milz, Karl Amende, and Horst-Michael Gross. Complex-yolo: An euler-region-proposal for real-time 3D object detection on point clouds. In Proceedings of the European Conference on Computer Vision, pages 197-209, 2018. 4
+[29] Pei Sun, Henrik Kretzschmar, Xerxes Dotiwalla, Aurelien Chouard, Vijaysai Patnaik, Paul Tsui, James Guo, Yin Zhou, Yuning Chai, Benjamin Caine, et al. Scalability in perception for autonomous driving: Waymo open dataset. arXiv preprint arXiv:1912.04838, 2019. 1, 3
+[30] Maxim Tatarchenko, Jaesik Park, Vladlen Koltun, and Qian-Yi Zhou. Tangent convolutions for dense prediction in 3D. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3887-3896, 2018. 2, 6, 7
+[31] Lyne Tchapmi, Christopher Choy, Iro Armeni, JunYoung Gwak, and Silvio Savarese. Segcloud: Semantic segmentation of 3d point clouds. In Proceedings of the International Conference on 3D Vision, pages 537-547, 2017. 2
+[32] Petar Velicković, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua Bengio. Graph attention networks. International Conference on Learning Representations, 2018. 2, 3
+[33] Yan Wang, Wei-Lun Chao, Divyansh Garg, Bharath Hariharan, Mark Campbell, and Kilian Weinberger. Pseudo-lidar from visual depth estimation: Bridging the gap in 3D object detection for autonomous driving. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8445-8453, 2019. 3
+[34] 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 Transactions on Graphics, 38(5):146, 2019. 2, 3
+[35] Bichen Wu, Alvin Wan, Xiangyu Yue, and Kurt Keutzer. Squeezeseg: Convolutional neural nets with recurrent crf for real-time road-object segmentation from 3d lidar point cloud. In Proceedings of the International Conference on Robotics and Automation, pages 1887-1893, 2018. 3, 6, 7, 8
+[36] Bichen Wu, Xuanyu Zhou, Sicheng Zhao, Xiangyu Yue, and Kurt Keutzer. Squeezesegv2: Improved model structure and unsupervised domain adaptation for road-object segmentation from a lidar point cloud. In Proceedings of the International Conference on Robotics and Automation, pages 4376-4382, 2019. 2, 3, 7, 8
+[37] Yan Yan, Yuxing Mao, and Bo Li. Second: Sparsely embedded convolutional detection. Sensors, 18(10):3337, 2018. 3
+[38] Bin Yang, Wenjie Luo, and Raquel Urtasun. **PIXOR: Real-time 3d object detection from point clouds.** In Proceedings
+
+of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7652-7660, 2018. 2, 3, 4
+[39] Fisher Yu and Vladlen Koltun. Multi-scale context aggregation by dilated convolutions. In International Conference on Learning Representations, 2016. 2
+[40] Fisher Yu, Vladlen Koltun, and Thomas Funkhouser. Dilated residual networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 472-480, 2017. 3
+[41] Chris Zhang, Wenjie Luo, and Raquel Urtasun. Efficient convolutions for real-time semantic segmentation of 3d point clouds. In Proceedings of the International Conference on 3D Vision, pages 399-408, 2018. 2, 3, 4
+[42] Richard Zhang, Stefan A Candra, Kai Vetter, and Avideh Zakhor. Sensor fusion for semantic segmentation of urban scenes. In Proceedings of the International Conference on Robotics and Automation, pages 1850-1857, 2015. 1
\ No newline at end of file
diff --git a/polarnetanimprovedgridrepresentationforonlinelidarpointcloudssemanticsegmentation/images.zip b/polarnetanimprovedgridrepresentationforonlinelidarpointcloudssemanticsegmentation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..70b6f7e363335c074acf50bf04f91f981a1ba2ec
--- /dev/null
+++ b/polarnetanimprovedgridrepresentationforonlinelidarpointcloudssemanticsegmentation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f3a79c56caaabcf5d3b5e7555a7a05468a585cfbd22f21011635624bfdba9930
+size 498804
diff --git a/polarnetanimprovedgridrepresentationforonlinelidarpointcloudssemanticsegmentation/layout.json b/polarnetanimprovedgridrepresentationforonlinelidarpointcloudssemanticsegmentation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..1091a090cb310328d37467af8f6f3111b88b08c6
--- /dev/null
+++ b/polarnetanimprovedgridrepresentationforonlinelidarpointcloudssemanticsegmentation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:18de759d9d20168fc713953549b990759c3ad8a52fc7cf187cdffd0cf6b636f6
+size 361069
diff --git a/ppdmparallelpointdetectionandmatchingforrealtimehumanobjectinteractiondetection/1a731d4e-38f0-413e-85ea-316cb08d4fd3_content_list.json b/ppdmparallelpointdetectionandmatchingforrealtimehumanobjectinteractiondetection/1a731d4e-38f0-413e-85ea-316cb08d4fd3_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..d0c67024ba72a4081468db8b6b57300fa7d350a7
--- /dev/null
+++ b/ppdmparallelpointdetectionandmatchingforrealtimehumanobjectinteractiondetection/1a731d4e-38f0-413e-85ea-316cb08d4fd3_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:712c2a95be6fdf5ebeb2317e6c47c738d78af3b65587def47a035d322198fc1b
+size 77024
diff --git a/ppdmparallelpointdetectionandmatchingforrealtimehumanobjectinteractiondetection/1a731d4e-38f0-413e-85ea-316cb08d4fd3_model.json b/ppdmparallelpointdetectionandmatchingforrealtimehumanobjectinteractiondetection/1a731d4e-38f0-413e-85ea-316cb08d4fd3_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..5e061876822327520c1ae81f030c9dad2ca493d8
--- /dev/null
+++ b/ppdmparallelpointdetectionandmatchingforrealtimehumanobjectinteractiondetection/1a731d4e-38f0-413e-85ea-316cb08d4fd3_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:951ea37cd1bb03b48452c1e29aea86a7096d07375d1d9e591e526b722c9c1c11
+size 92731
diff --git a/ppdmparallelpointdetectionandmatchingforrealtimehumanobjectinteractiondetection/1a731d4e-38f0-413e-85ea-316cb08d4fd3_origin.pdf b/ppdmparallelpointdetectionandmatchingforrealtimehumanobjectinteractiondetection/1a731d4e-38f0-413e-85ea-316cb08d4fd3_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..b47ff3bc9346aaf75c8541c0c711e4830ccaa441
--- /dev/null
+++ b/ppdmparallelpointdetectionandmatchingforrealtimehumanobjectinteractiondetection/1a731d4e-38f0-413e-85ea-316cb08d4fd3_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:46e882dadc7a1c196bea3c0f5c9ca63ca72347792401e270bf39efa1d014d3bc
+size 2796211
diff --git a/ppdmparallelpointdetectionandmatchingforrealtimehumanobjectinteractiondetection/full.md b/ppdmparallelpointdetectionandmatchingforrealtimehumanobjectinteractiondetection/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..0b2df77640964c11557b2da1a78fe969fad49fbe
--- /dev/null
+++ b/ppdmparallelpointdetectionandmatchingforrealtimehumanobjectinteractiondetection/full.md
@@ -0,0 +1,309 @@
+# PPDM: Parallel Point Detection and Matching for Real-time Human-Object Interaction Detection
+
+Yue Liao $^{1,2}$ Si Liu $^{1*}$ Fei Wang $^{2}$ Yanjie Chen $^{2}$ Chen Qian $^{2}$ Jiashi Feng $^{3}$ $^{1}$ School of Computer Science and Engineering, Beihang University
+ $^{2}$ SenseTime Research National University of Singapore
+
+# Abstract
+
+We propose a single-stage Human-Object Interaction (HOI) detection method that has outperformed all existing methods on HICO-DET dataset at 37 fps on a single Titan XP GPU. It is the first real-time HOI detection method. Conventional HOI detection methods are composed of two stages, i.e., human-object proposals generation, and proposals classification. Their effectiveness and efficiency are limited by the sequential and separate architecture. In this paper, we propose a Parallel Point Detection and Matching (PPDM) HOI detection framework. In PPDM, an HOI is defined as a point triplet $<$ human point, interaction point, object point>. Human and object points are the center of the detection boxes, and the interaction point is the midpoint of the human and object points. PPDM contains two parallel branches, namely point detection branch and point matching branch. The point detection branch predicts three points. Simultaneously, the point matching branch predicts two displacements from the interaction point to its corresponding human and object points. The human point and the object point originated from the same interaction point are considered as matched pairs. In our novel parallel architecture, the interaction points implicitly provide context and regularization for human and object detection. The isolated detection boxes unlikely to form meaningful HOI triplets are suppressed, which increases the precision of HOI detection. Moreover, the matching between human and object detection boxes is only applied around limited numbers of filtered candidate interaction points, which saves much computational cost. Additionally, we build a new application-oriented database named as HOI-A, which serves as a good supplement to the existing datasets1.
+
+# 1. Introduction
+
+Human-Object Interaction (HOI) detection [30, 11, 10, 9, 12, 16, 22] has received increasing attention recently.
+
+
+Figure 1. mAP versus inference time on the HICO-Det test set. Our PPDM-DLA outperforms the state-of-the-art methods with the inference speed of 37 fps (0.027s). It is the first real-time HOI detection method. Our PPDM-Hourglass achieves $4.27\%$ mAP improvement over the state-of-the-arts with a faster speed.
+
+Given an image, HOI detection aims to detect the triplet $<$ human, interaction, object $\succ$ . Different from the general visual relationship detection [19, 29, 20, 13, 32], the subject of the triplet is fixed as human while the interaction is action. HOI detection is an important step toward the high-level semantic understanding of human-centric scenes. It has a lot of applications, such as activity analysis, human-machine interaction and intelligent monitoring.
+
+The conventional HOI detection methods [2, 22, 12, 16, 26] mostly consist of two stages. The first stage is the human-object proposal generation. A pre-trained detector [8, 23] is used to localize both the humans and objects. Then $M \times N$ human-object proposals are generated by pairwisely combining the filtered $M$ human boxes and $N$ object boxes. The second stage is the proposal classification which predicts the interactions for each human-object proposal. The limitations of the two-stage methods' effectiveness and efficiency are mainly because their two stages are sequential and separated. The proposal generation stage is completely based on object detection confidences. Each human/object proposal is independently generated. The possibility of combining two proposals to form a meaningful
+
+HOI triplet in the second stage is not taken into account. Therefore, the generated human-object proposals may have relatively low quality. Moreover, in the second stage, all human-object proposals need to be linearly scanned, while only a few of them are valid. The extra computational cost is large. Therefore, we argue that the non-sequential and highly-coupled framework is needed.
+
+We propose a parallel HOI detection framework and reformulate HOI detection as a point detection and matching problem. As shown in Figure 2, we represent a box as a center point and corresponding sizes (width and height). Moreover, we define an interaction point as the midpoint of the human and object center points. To match each interaction point with the human point and the object point, we design two displacements from the interaction point to the corresponding human and object point. Based on the novel reformulation, we design a novel single-stage framework Parallel Point Detection and Matching (PPDM), which breaks up the complex task of HOI detection into two simpler parallel tasks. The PPDM is composed of two parallel branches. The first branch is points detection, which estimates the three center points (interaction, human and object points), corresponding sizes (width and height) and two local offsets (human and object points). The interaction point can be considered as providing contextual information for both human and object detection. In other words, estimating the interaction point implicitly enhances the detection of humans and objects. The second branch is points matching. Two displacements from the interaction point to human and object points are estimated. The human and object points originated from the same interaction points are considered as matched. In the novel parallel architecture, the point detection branch estimates the interaction points, which implicitly provide context and regularization for the human and object detection. The isolated detection boxes unlikely to form meaningful HOI triplets are suppressed while the more likely detection boxes are enhanced. It is different from the human-object proposal generation stage in two-stage methods, where all detection human/object boxes indiscriminately form the human-object proposals to feed into the second stage. Moreover, in the point matching branch, the matching is only applied around limited numbers of filtered candidate interaction points, which saves a lot of computational costs. On the contrary, in the proposal classification stage of two-stage methods, all human-object proposals need to be classified. Experimental results on the public benchmark HICO-Det [2] and our newly collected HOI-A dataset show that PPDM outperforms state-of-the-art methods in terms of accuracy and speed.
+
+The existing datasets such as HICO-Det [22] and V-COCO [11] have greatly boosted the development of related research. These datasets are very general. However, in practical applications, several limited, frequent HOI categories
+
+
+Figure 2. PPDM contains two parallel branches. In the point detection branch, the human/object box denoted as the center points, widths, and heights, are detected. Moreover, an interaction point, i.e., the midpoint of the human and object point, is also localized. Simultaneously, in the point matching branch, two displacements from each interaction point to the human/object are estimated. The human point and the object point originated from the same interaction point are considered as matched pairs.
+
+need to be paid special attention to. To this end, we collect a new Human-Object Interaction for Applications dataset (HOI-A) with the following features: 1) specially selected 10 kinds of HOI categories with wide application values, such as smoke and ride. 2) huge intra-class variations including various illuminations and different human poses for each category. The HOI-A is more application-driven, severing as a good supplement to the existing datasets.
+
+Our contributions are summarized as: 1) We reformulate the HOI detection task as a point detection and matching problem and propose a novel one-stage PPDM solution. 2) PPDM is the first HOI detection method to achieve real-time and outperform state-of-the-art methods both HICO-Det and HOI-A benchmarks. 3) A large-scale and application-oriented HOI detection dataset is collected to supplement existing datasets. Both source code and the dataset are to be released to facilitate the related research.
+
+# 2. Related Work
+
+HOI Detection Methods. The existing HOI detection methods can be mostly divided into two stages: in the first stage, an object detector [23] is applied to localize the human and objects; in the second stage, pairing the detected human and object, and feeding their features into a classification network to predict the interaction between the human and object. Current works pay more attention to exploring how to improve the second stage. The most recent works aim to understand HOI by capturing context information [7, 27] or human structural message [26, 6, 5, 33]. Some works [22, 28, 33] formulated the second stage as a graph reasoning problem and use graph convolutional network to predict the HOI.
+
+The above methods are all proposal based, thus their performance is limited by the quality of proposals. Addi
+
+
+Figure 3. Overview of the proposed PPDM framework. We firstly apply a key-point heatmap prediction network, e.g. Hourglass-104 or DLA-34, to extract the appearance feature from an image. a) Point Detection Branch: Based on the extracted visual feature, we utilize three convolutional modules to predict the heatmap of the interaction points, human center points, and object center points. Additionally, to generate the final box, we regress the 2-D size and the local offset. b) Point Matching Branch: the first step of this branch is to regress the displacements from the interaction point to the human point and object point respectively. Based on the predicted points and displacements, the second step is to match each interaction point with the human point and object point to generate a set of points triplets.
+
+tionally, the existing methods have to spend much computational cost in proposals generation and feature extraction process. Based on these drawbacks, we propose a novel one-stage and proposal-free framework to detect HOI.
+
+HOI Detection Datasets. There are mainly two commonly used HOI detection benchmarks: VCOCO [11] and HICO-Det [2], and a human-centric relationship detection dataset: HCVRD [36]. The VCOCO is a relatively small dataset, which is a subset of MSCOCO [18] including 10,346 images annotated with 26 actions based on COCO annotation. The HICO-Det is a large-scale and generic HOI detection dataset, including 47,776 images, which has 117 verbs and 80 object categories (same as COCO). The HCVRD is collected from the general visual relationship detection dataset, Visual Genome [14]. It has 52,855 images, 927 predicate categories and 1,824 kinds of objects. Comparing the former two HOI detection datasets, which only focuses on human actions, the HCVRD is concerned about a more general human-centric relationship, e.g., spatial relationships, possessive relationships.
+
+The previous HOI detection datasets mostly concentrate on common and general actions. From a practical view, we build up a new HOI-A dataset, which has about 38K images only annotated with limited typical kinds of actions with practical significance.
+
+# 3. Parallel Point Detection and Matching
+
+# 3.1. Overview
+
+HOI detection aims to estimate the HOI triplet $<$ human, interaction, object $>$ , which is composed of the subject box and class, the human action class and the object box and class. We break up the complex task of HOI detection into two simpler parallel tasks that can be assembled to form
+
+the final results. The framework of the proposed Parallel Point Detection and Matching (PPDM) method is shown in Figure 3. The first branch of PPDM is points detection. It estimates the center points, corresponding sizes (width and height) and local offsets of both humans and objects. The center, size and offset collaboratively represent some box candidates. Moreover, the interaction point which is defined as the midpoint of a corresponding $<$ human center point, object center point $>$ pair is also estimated. The second branch of PPDM is points matching. The displacements between the interaction point and the corresponding human and object points are estimated. The human point and the object point originated from the same interaction point are considered as matched pairs.
+
+# 3.2. Point Detection
+
+The point detection branch estimates the human box, object box and interaction point. A human box is represented as its center point $(x^{h},y^{h})\in \mathbb{R}^{2}$ , the corresponding size (width and height) $(w^{h},h^{h})\in \mathbb{R}^{2}$ as well as the local point offset $\delta c^h\in \mathbb{R}^2$ to recover the discretization error caused by the output stride. The object box is represented similarly. Moreover, we define the interaction point $(x^{a},y^{a})\in \mathbb{R}^{2}$ as the midpoint of the paired human point and object point. Considering the receptive field of the interaction point is large enough to contain both human and object, the human action $a$ can be estimated based on the feature of $(x^{a},y^{a})$ . Actually, when there are $M$ human in the dataset, each human box is represented as $(x_i^h,y_i^h),i\in [1,M]$ . For the convenience of description, we omit the subscript $i$ when no confusion is caused. Similar omissions are also applicable for $(x^{o},y^{o})$ and $(x^{a},y^{a})$ .
+
+In Figure 3, the input image $\pmb{I} \in \mathbb{R}^{H \times W}$ is fed into the feature extractor to produce the feature $\pmb{V} \in \mathbb{R}_{\frac{H}{d} \times \frac{W}{d}}^{\frac{H}{d} \times \frac{W}{d}}$ ,
+
+where $W$ and $H$ are the width and height of the input image and $d$ is the output stride. The point heatmaps are of low-resolution, thus we also calculate the lowresolution center points. Given a ground-truth human point $(x^{h},y^{h})$ , the corresponding low-resolution point is $(\tilde{x}^h,\tilde{y}^h) = (\lfloor \frac{x^h}{d}\rfloor ,\lfloor \frac{y^h}{d}\rfloor)$ . The low-resolution ground-truth object point $(\tilde{x}^o,\tilde{y}^o)$ can be computed in the same way. Based on the low-resolution human and object points, the ground-truth interaction point can be defined as $(\tilde{x}^a,\tilde{y}^a) = (\lfloor \frac{\tilde{x}^h + \tilde{x}^o}{2}\rfloor ,\lfloor \frac{\tilde{y}^h + \tilde{y}^o}{2}\rfloor)$ .
+
+Point location loss. Directly detecting a point is difficult, thus we follow the key-point estimation methods [25] to splat a point into a heatmap with a Gaussian kernel. Thereby the point detection is transformed into a heatmap estimation task. The three ground-truth low-resolution points $(x^{h},y^{h})$ , $(x^{o},y^{o})$ and $(x^{a},y^{a})$ are splatted into three Gaussian heatmaps, including human point heatmap $\tilde{C}^h\in [0,1]^{\frac{H}{d}\times \frac{W}{d}}$ , object point heatmap $\tilde{C}^o\in [0,1]^T\times \frac{H}{d}\times \frac{W}{d}$ and interaction point heatmap $\tilde{C}^a\in [0,1]^K\times \frac{H}{d}\times \frac{W}{d}$ , where $T$ is the number of object categories and $K$ is the number of interaction classes. Note that in $\tilde{C}^o$ and $\tilde{C}^a$ , only the channel corresponding to the specific object class and human action are non-zero. The three heatmaps are produced by adding three respective convolutional blocks upon the feature map $V$ , each of which is composed of a $3\times 3$ convolutional layer with ReLU, followed by a $1\times 1$ convolutional layer and a Sigmoid.
+
+For the three heatmaps, we all apply an element-wise focal loss [17]. For example, given an estimated interaction point heatmap $\hat{C}^a$ and the corresponding ground-truth heatmaps $\tilde{C}^a$ , the loss function is:
+
+$$
+L _ {a} = - \frac {1}{N} \sum_ {k x y} \left\{ \begin{array}{c l} (1 - \hat {C} _ {k x y} ^ {a}) ^ {\alpha} \log (\hat {C} _ {k x y} ^ {a}) & \text {i f} \tilde {C} _ {k x y} ^ {a} = 1 \\ (1 - \tilde {C} _ {k x y} ^ {a}) ^ {\beta} (\hat {C} _ {k x y} ^ {a}) ^ {\alpha} & \text {o t h e r w i s e} \\ \log (1 - \hat {C} _ {k x y} ^ {a}), & \end{array} \right. \tag {1}
+$$
+
+where $N$ is equal to the number of interaction points (HOI triplet) in the image, and $\hat{C}_{kxy}^{a}$ is the score at location $(x,y)$ for class $k$ in the predicted heatmaps $\hat{C}^a$ . We set $\alpha$ as 2 and $\beta$ as 4 following the default setting in [15, 35, 4]. The losses $L_{p}$ and $L_{o}$ for the human points and the object points can be computed similarly.
+
+Size and offset loss. Besides the center points, the box size and the local offset for the center points are needed to form the human/object box. Four convolutional blocks are added to the feature map $V$ to estimate the 2-D size and the local offset of human and object boxes respectively. Each block contains a $3 \times 3$ convolutional layer with ReLU and a $1 \times 1$ convolutional layer.
+
+During training, we only compute the $L1$ loss at each location of the ground truth human point $(\tilde{x}^h,\tilde{y}^h)$ and object point $(\tilde{x}^o,\tilde{y}^o)$ and ignore all other locations. We take the loss function for the local offset as an example, while the
+
+size regression loss $L_{wh}$ is defined similarly. The ground truth local offset for the human point localized at $(\tilde{x}^h,\tilde{y}^h)$ is defined as $(\tilde{\delta}_{(\tilde{x}^{h},\tilde{y}^{h})}^{x},\tilde{\delta}_{(\tilde{x}^{h},\tilde{y}^{h})}^{y}) = (\frac{x^{h}}{d} -\tilde{x}^{h},\frac{y^{h}}{d} -\tilde{y}^{h})$ Thus the loss function $L_{off}$ is the summation of the human box loss $L_{off}^{h}$ and object box loss $L_{off}^{o}$
+
+$$
+L _ {o f f} = \frac {1}{M + D} \left(L _ {o f f} ^ {h} + L _ {o f f} ^ {o}\right) \tag {2}
+$$
+
+$$
+\begin{array}{l} L _ {o f f} ^ {h} = \sum_ {(\tilde {x} ^ {h}, \tilde {y} ^ {h}) \in \tilde {S} ^ {h}} \left(| \tilde {\delta} _ {(\tilde {x} ^ {h}, \tilde {y} ^ {h})} ^ {x} - \hat {\delta} _ {(\tilde {x} ^ {h}, \tilde {y} ^ {h})} ^ {x} | \right. \tag {3} \\ + \left| \tilde {\delta} _ {(\tilde {x} ^ {h}, \tilde {y} ^ {h})} ^ {y} - \hat {\delta} _ {(\tilde {x} ^ {h}, \tilde {y} ^ {h})} ^ {y} \right|, \\ \end{array}
+$$
+
+where $\tilde{S}^h$ and $\tilde{S}^h$ denote the ground-truth human and object points sets in the training set. $M = |\tilde{S}^h|$ and $D = |\tilde{S}^o|$ are the number of human points and object points. Note that $M$ is not necessarily equal to $D$ . For example a human may correspond to multiple actions and objects. $L_{off}^o$ is defined similarly with Equation 3.
+
+# 3.3. Point Matching
+
+The points matching branch pairs the human box with its corresponding object box by using the interaction point as the bridge. More specifically, the interaction point is treated as the anchor. Two displacements $\pmb{d}^{ah} = (d_x^{ah}, d_y^{ah})$ and $\pmb{d}^{ao} = (d_x^{ao}, d_y^{ao})$ , i.e., the displacements between interaction point vs. human/box point are estimated. The coarse human point and object point are $(x^a, y^a)$ plus $\pmb{d}^{ah}$ and $\pmb{d}^{ao}$ respectively.
+
+Our proposed displacement branch is composed of two convolutional modules. Each module consists of a $3 \times 3$ convolutional layer with ReLU and a $1 \times 1$ convolutional layer. The size of both subject and object displacement maps are $2 \times \frac{H}{d} \times \frac{W}{d}$ .
+
+Displacement loss. To train the displacement branch, we apply $L1$ loss for each interaction point. The ground-truth displacement from the interaction point located at $(\tilde{x}^a,\tilde{y}^a)$ to the corresponding human point can be computed by $(\tilde{d}_{(\tilde{x}^a,\tilde{y}^a)}^{hx},\tilde{d}_{(\tilde{x}^a,\tilde{y}^a)}^{hy}) = (\tilde{x}^a -\tilde{x}^h,\tilde{y}^a -\tilde{y}^h)$ . The predicted displacement at location of $(\tilde{x}^a,\tilde{y}^a)$ is $(\hat{d}_{(\tilde{x}^a,\tilde{y}^a)}^{hx},\hat{d}_{(\tilde{x}^a,\tilde{y}^a)}^{hy})$ . The displacement loss is defined as:
+
+$$
+\begin{array}{l} L _ {a h} = \frac {1}{N} \sum_ {(\tilde {x} ^ {a}, \tilde {y} ^ {a}) \in \tilde {S} ^ {a}} | \hat {d} _ {(\tilde {x} ^ {a}, \tilde {y} ^ {a})} ^ {h x} - \tilde {d} _ {(\tilde {x} ^ {a}, \tilde {y} ^ {a})} ^ {h x} | \tag {4} \\ + | \hat {d} _ {(\tilde {x} ^ {a}, \tilde {y} ^ {a})} ^ {h x} - \tilde {d} _ {(\tilde {x} ^ {a}, \tilde {y} ^ {a})} ^ {h y} |, \\ \end{array}
+$$
+
+where $\tilde{S}^a$ denotes the ground-truth interaction point sets in the training set. $N = |\tilde{S}^a|$ is the number of interaction points. The loss function for displacement from the interaction point to the object point $L_{ao}$ has the same form.
+
+Triplet matching. Two aspects are considered to judge whether a human/object point can be matched with the interaction point. The human/object needs to: 1) be close
+
+to the coarse human/object point generated by interaction point plus the displacement and 2) have high confidence scores. On basis of these, for the detected interaction point $(\hat{x}^a,\hat{y}^a)$ , we rank the points in the detected human point set $\hat{S}^h$ by Equation 5 and select the optimal one.
+
+$$
+\begin{array}{l} (\hat {x} _ {o p t} ^ {h}, \hat {y} _ {o p t} ^ {h}) = \operatorname * {a r g m i n} _ {(\hat {x} ^ {h}, \hat {y} ^ {h}) \in \hat {S} ^ {h}} \frac {1}{C _ {(\hat {x} ^ {h} , \hat {y} ^ {h})} ^ {h}} \\ \left(\left| \left(\hat {x} ^ {a}, \hat {y} ^ {a}\right) - \left(\hat {d} _ {\left(\hat {x} ^ {a}, \hat {y} ^ {a}\right)} ^ {h x}, \hat {d} _ {\left(\hat {x} ^ {a}, \hat {y} ^ {a}\right)} ^ {h y}\right) - \left(\hat {x} ^ {h}, \hat {y} ^ {h}\right) \right|\right) \tag {5} \\ \end{array}
+$$
+
+where $C_{(\hat{x}^h,\hat{y}^h)}^h$ denotes the confidence score for human point $(\hat{x}^h,\hat{y}^h)$ . The optimal object box $(\hat{x}_{opt}^o,\hat{y}_{opt}^o)$ can be calculated similarly.
+
+# 3.4. Loss and Inference
+
+The final loss can be obtained by weighted summing the above losses:
+
+$$
+L = L _ {a} + L _ {h} + L _ {o} + \lambda \left(L _ {a h} + L _ {a o} + L _ {w h}\right) + L _ {o f f} \tag {6}
+$$
+
+where we set the $\lambda$ as 0.1 following [15, 35]. $L_{a}, L_{h}$ and $L_{o}$ are point location loss, $L_{ah}$ and $L_{oh}$ are displacement loss while $L_{wh}$ and $L_{off}$ are size and offset lose.
+
+During the inference, we firstly do a $3 \times 3$ max-pooling operation with stride 1 on the predicted human, object and interaction points heatmap, which plays a similar role as NMS. Secondly, we select top $K$ human points $\hat{S}^h$ , object center points $\hat{S}^o$ and interaction points $\hat{S}^a$ through the corresponding confidence scores $\hat{C}^h$ , $\hat{C}^o$ and $\hat{C}^a$ across all categories. Then, we find the subject point and object point for each selected interaction point by Equation 5. For each matched human point $(\hat{x}_{opt}^h, \hat{y}_{opt}^h)$ , we get the final box as:
+
+$$
+\left(\hat {x} _ {r e f} ^ {h} - \frac {\hat {w} _ {\left(\hat {x} _ {o p t} ^ {h} , \hat {y} _ {o p t} ^ {h}\right)}}{2}, \hat {y} _ {r e f} ^ {h} - \frac {\hat {h} _ {\left(\hat {x} _ {o p t} ^ {h} , \hat {y} _ {o p t} ^ {h}\right)}}{2}, \right. \tag {7}
+$$
+
+$$
+\hat {x} _ {r e f} ^ {h} + \frac {\hat {w} _ {(\hat {x} _ {o p t} ^ {h} , \hat {y} _ {o p t} ^ {h})}}{2}, \hat {y} _ {r e f} ^ {h} + \frac {\hat {h} _ {(\hat {x} _ {o p t} ^ {h} , \hat {y} _ {o p t} ^ {h})}}{2}.
+$$
+
+where $\hat{x}_{ref}^{h} = \hat{x}_{opt}^{h} + \hat{\delta}_{\hat{(x}_{opt}^{h},\hat{y}_{opt}^{h})}^{x}}$ and $\hat{y}_{ref}^{h} = \hat{y}_{opt}^{h} + \hat{\delta}_{\hat{(x}_{opt}^{h},\hat{y}_{opt}^{h})}^{y}}$ are the refined location of the human center point. $(\frac{\hat{w}_{(\hat{x}_{opt}^{h},\hat{y}_{opt}^{h})}}{2},\frac{\hat{h}_{(\hat{x}_{opt}^{h},\hat{y}_{opt}^{h})}}{2})$ is the size of box in the corresponding position. The final HOI detection results are a set of triplets, and the confidence score for the triplet is $\hat{C}_{\hat{x}_{ref}^{h}\hat{y}_{ref}^{h}}^{p}\hat{C}_{\hat{x}_{ref}^{o}\hat{y}_{ref}^{o}}^{o}\hat{C}_{\hat{x}_{ref}^{a}\hat{y}_{ref}^{a}}^{a}$ .
+
+# 4. HOI-A Dataset
+
+The existing datasets such as HICO-Det [22] and V-COCO [11] have greatly boosted the development of related research. However, in practical application, there are limited frequent HOI categories that need to be paid special attention to, which are not emphasized in previous datasets.
+
+
+a. outdoor
+
+
+b. indoor
+
+
+c. in car & intense Illumination
+
+
+d. in dark scene
+
+
+e. Attacking smoke: no cigarette negative sample
+Figure 4. Example images of our HOI-A dataset. We take as an example. The (a)-(d) show huge intra-class variations of in the wild. The (e)-(f) show two kinds of negative samples.
+
+
+f. no predefined interaction negative sample
+
+We then introduce a new dataset called Human-Object Interaction for Application (HOI-A).
+
+As shown in Table 1, we select the categories of verb driven by practical application. Each kind of verb in HOI-A dataset has its corresponding application scenario, for example 'talk on' can be applied in dangerous action detection, e.g., if the human is talking on phone in-car, it can be considered as a dangerous driving action.
+
+| Verbs | Objects | # Instance |
| smoking | cigarette | 8624 |
| talk on | mobile phone | 18763 |
| play (mobile phone) | mobile phone | 6728 |
| eat | food | 831 |
| drink | drink | 6898 |
| ride | bike, motorbike, horse | 7111 |
| hold | cigarette, mobile phone, food drink, document, computer | 44568 |
| kick | sports ball | 365 |
| read | document | 869 |
| play (computer) | computer | 1402 |
+
+Table 1. The list and occurrence numbers of the verbs of the corresponding objects in HOI-A dataset.
+
+# 4.1. HOI-A Construction
+
+We describe the image collection and annotation process for constructing the HOI-A dataset. The first step is collecting candidate images, which can be divided into two parts, namely positive and negative images collections.
+
+Positive Images Collection. We collect positive images in two ways, i.e., camera shooting and crawling. Camera shooting is an important way to enlarge the intra-class variations of the data. We employ 50 performers and require them to perform all predefined actions in different scenes and illumination, with various poses, and take photos of them respectively with an RGB camera and an IR camera. For data crawling from the Internet, we generate a series of keywords based on the HOI triplet $<$ person, action name, object name>, action pair $<$ action name, object name> and action name, and retrieve images from the Internet.
+
+Negative Images Collection. Negative Images Collection. There are two kinds of negative samples of the predefined
+
+< human, interaction, object >. 1) The concerned object appears in the image, but the concerned action does not happen. For example, in Figure 4(f), although the cigarette appears in the image, it is not smoked by a human. Therefore, the image is still a negative sample. 2) Other action similar to the concerned action happens but the concerned object is missing. For example, in Figure 4(e), the man is smoking at a glance. But a closer look shows there is no cigarette in the image. We collect this kind of negative sample in the 'attack' manner. We firstly train a multi-label action classifier based on the annotated positive images. The classifier takes an image as input and outputs the probability of action classification. Then, we let actors perform arbitrarily to attack the classifier without any interacted objects. If the attack is successful, we record this image as a hard negative sample. Annotation. The process of annotation contains two steps: box annotation and interaction annotation. First, all objects in the pre-defined categories are annotated with a box and the corresponding category. Second, we visualize the boxes in the images with their id and annotate whether a person has the defined interactions with a object. The annotator should record the triplet $\langle \text{person ID}, \text{action ID}, \text{object ID} \rangle$ . For more accurate annotation, each image is annotated by 3 annotators. The annotation of an image is regarded qualified if at least 2 annotators share the same annotation.
+
+# 4.2. Dataset Properties
+
+Scale. Our HOI-A dataset consists of 38,668 annotated images, 11 kinds of objects and 10 action categories. In detail, it contains 43,820 human instances, 60,438 object instances and 96,160 interaction instances. There are on average 2.2 interactions performed per person. Table 1 lists the number of instances for each verb which occurs at least 360 times. $60\%$ verbs appear more than 6,500 times. To our knowledge, this is already the largest HOI dataset, in terms of the number of images per interaction category.
+
+Intra-Class Variation. To enlarge the intra-class variation of the data, each type of verbs in our HOI-A dataset will be captured with three general scenes including indoor, outdoor and in-car, three lighting conditions including dark, natural and intense, various human poses and different angles. Additionally, we shoot the images with two kinds of cameras: RGB and IR.
+
+# 5. Experiments
+
+# 5.1. Experimental Setting
+
+Datasets. To verify the effectiveness of our PPDM, we conduct experiments not only on our HOI-A dataset but also on the general HOI detection dataset HICO-Det [2]. HICO-Det is a large-scale dataset for common HOI detection. It has 47,776 images (38,118 for training and 9,658 for test), annotated with 117 verbs including 'no-interaction' and 80 object categories. The 117 verbs and 80 objects form 600
+
+kinds of HOI triplets, where 138 types of HOIs which appear $< 10$ times are considered as the rare set, and the rest 462 kinds of HOIs form the non-rare set.
+
+Metric. Following the standard-setting in HOI detection task, we use mean average precious (mAP) as the metric. If a predicted triplet is considered as a true positive sample, it needs to match a certain ground-truth triplet. Specifically, they have the same HOI class and their human and object boxes have overlap with IOUs large than 0.5. There is a slight difference when computing AP on the two datasets. We compute AP per HOI class in HICO-Det and compute AP per verb class in HOI-A dataset.
+
+Implementation Details. We use two common heatmap prediction networks as our feature extractor, Hourglass-104 [21, 15] and DLA-34 [31, 35]. Hourglass-104 is a general heatmap prediction network commonly used in keypoint detection and object detection. In PPDM, we use the modified version Hourglass-104 proposed in [15]. The DLA-34 is a lightweight backbone network, and we apply a refined version proposed in [35]. The receptive field of the network need large enough to cover the subject and the object. Hourglass-104 has a sufficiently large receptive field, while that of DLA-34 cannot cover the region including the human and the object, due to its relatively shallow architecture. Thus for the DLA-based model, we concatenate the last three level features and apply a graph-based global reasoning module [3] to enlarge the receptive field for the interaction point and displacement prediction. In the global reasoning module, we set the channels of the node and the reduced feature as 48 and 96 respectively. For Hourglass-104, we only use the last-level feature for all the following modules. We initialize the feature extractor with the weights pre-trained on COCO [18]. Our experiments are all conducted on the Titan Xp GPU and CUDA 9.0.
+
+During training and inference, the input resolution is $512 \times 512$ and the output is $128 \times 128$ . PPDM is trained with Adam on 8 GPUs. We set the hyper-parameter following [35], which is robust to our framework. We train the model based on DLA-34 with a 128 sized mini-batch for 110 epochs, with a learning rate of 5e-4 decreased to 5e-5 at the 90th epoch. For the hourglass-104 based model, we train it with a batch size of 32 for 110 epochs, with a learning rate of 3.2e-4 decreased by 10 times at the 90th epoch. We follow [15, 35] applying data augmentation, i.e., random scale and random shift to train the model and there is no augmentation during inference. We set the number of selected predictions $K$ as 100.
+
+# 5.2. Comparison to State-of-the-art
+
+We compare PPDM with state-of-the-art methods on two datasets. The quantitative results can be seen in Table 2 and Table 3, and the qualitative results are presented in Figure 5. The compared methods mainly use a pre-trained Faster R-CNN [23] to generate a set of human-object pro
+
+| Method | Feature | Default | Know Object | Inference Time (ms) ↓ | FPS ↑ |
| Full | Rare | Non-Rare | Full | Rare | Non-Rare |
| Shen et. al [24] | A + P | 6.46 | 4.24 | 7.12 | - | - | - | - | - |
| HO-RCNN [2] | A + S | 7.81 | 5.37 | 8.54 | 10.41 | 8.94 | 10.85 | - | - |
| InteractNet [9] | A | 9.94 | 7.16 | 10.77 | - | - | - | 145 | 6.90 |
| GPNN [22] | A | 13.11 | 9.34 | 14.23 | - | - | - | 197 + 48 = 245 | 4.08 |
| Xu et. al [28] | A + L | 14.70 | 13.26 | 15.13 | - | - | - | - | - |
| iCAN [7] | A + S | 14.84 | 10.45 | 16.15 | 16.26 | 11.33 | 17.73 | 92 + 112 = 204 | 4.90 |
| PMFNet-Base [26] | A + S | 14.92 | 11.42 | 15.96 | 18.83 | 15.30 | 19.89 | - | - |
| Wang et. al [27] | A | 16.24 | 11.16 | 17.75 | 17.73 | 12.78 | 19.21 | - | - |
| No-Frills [12] | A + S + P | 17.18 | 12.17 | 18.68 | - | - | - | 197 + 230 + 67 = 494 | 2.02 |
| TIN [16] | A + S + P | 17.22 | 13.51 | 18.32 | 19.38 | 15.38 | 20.57 | 92 + 98 + 323 = 513 | 1.95 |
| RPNN [33] | A + P | 17.35 | 12.78 | 18.71 | - | - | - | - | - |
| PMFNet [26] | A + S + P | 17.46 | 15.65 | 18.00 | 20.34 | 17.47 | 21.20 | 92 + 98 + 63 = 253 | 3.95 |
| PPDM-DLA | A | 20.29 | 13.06 | 22.45 | 23.09 | 16.14 | 25.17 | 27 | 37.03 |
| PPDM-Hourglass | A | 21.73 | 13.78 | 24.10 | 24.58 | 16.65 | 26.84 | 71 | 14.08 |
+
+Table 2. Performance comparison on the HICO-DET test set. The 'A', 'P', 'S', 'L' represent the appearance feature, human pose information, the spatial feature, and the language feature, respectively.
+
+posals, which are then fed into a pairwise classification network. As shown in Table 2, to more accurately classify the HOI, many methods use additional human pose feature or language feature.
+
+# 5.2.1 Quantitative Analysis
+
+HICO-Det. See table 2. Our PPDM-DLA and PPDM-Hourglass both outperform all previous state-of-the-art methods. Specifically, our PPDM-Hourglass achieves a significant performance gain (24.5%) comparing to the previous best method PMFNet [26]. We can see the previous methods with mAP greater than 17% all use the human pose as an additional feature, while our PPDM only uses the appearance feature. Performance of PPDM is slightly lower than PMFNet on the rare subset. However, the baseline model in PMFNet without using human pose information only achieves 11.42% mAP on the rare-set. The performance gain on the rare-set may mainly come from the additional human pose feature. The human structural information plays an important role in understanding human actions, thus we regard how to utilize human context in our framework as a significant future work.
+
+| Method | mAP (%) | Time (ms) |
| Faster Interaction Net [1] | 56.93 | - |
| GMVM [1] | 60.26 | - |
| C-HOI [34] | 66.04 | - |
| iCAN [7] | 44.23 | 194 |
| TIN [16] | 48.64 | 501 |
| PPDM-DLA | 67.45 | 27 |
| PPDM-Hourglass | 71.23 | 71 |
+
+HOI-A. The compared methods in HOI-A dataset are composed of two parts. Firstly, we select the top-3 methods from the leaderboard of ICCV 2019 PIC challenge HOI detection track [1], which was held by us based on HOI-A dataset. Comparing to the top-1 method, C-HOI [34], which
+
+uses a very strong detector, our methods still outperform it. Secondly, we choose two open-source state-of-the-art methods, iCAN [7] and TIN [16], as the baselines on our HOIA dataset. We first pre-train Faster R-CNN with FPN and ResNet-50 on HOIA dataset, and then follow their original settings to train the HOI classifier. The results show our PPDM outperforms the two methods by a significant margin. Additionally, for our selected interaction types with practical significance, our PPDM can achieve high performance, which is practically applicable.
+
+# 5.2.2 Qualitative Analysis
+
+We visualize the HOI prediction with the top-3 confidence score on HICO-Det dataset based on PPDM-DLA, and compare our results with the typical two-stage method iCAN [7]. As shown in Figure 5, we select some representative failure cases of the two-stage methods. We can see iCAN tends to focus on the human/object with a high detection score but without interaction. In Figure 5(b) and Figure 5(c), due to the huge imbalance between positive/negative samples, iCAN easily produces high confidence for the 'no-interaction' type. In Figure 5(d), the person sitting on the airplane is so small that it cannot be detected. However, our PPDM can accurately predict the HOI triplets with high confidence in these cases. Because PPDM is not dependent on the proposals. Moreover, PPDM concentrates on the HOI triplets understanding.
+
+Table 3. Performance comparison on HOI-A test set.
+
+ | Method | Full | Rare | Non-Rare | Time |
| 1 | Basic Model | 19.94 | 13.01 | 22.01 | 24 |
| 2 | + Feature Fusion | 20.00 | 12.56 | 22.22 | 26 |
| 3 | + Global Reasoning | 19.85 | 12.99 | 21.90 | 26 |
| 4 | Union Center | 18.65 | 12.11 | 20.61 | 27 |
| 5 | PPDM-DLA | 20.29 | 13.06 | 22.45 | 27 |
+
+Table 4. Component analysis on HICO-Det Test Set.
+
+# 5.2.3 Efficiency Analysis
+
+We compare the inference speed on a single Titan Xp GPU with the methods which have released code or reported the
+
+
+(a)
+
+
+(b)
+
+
+(c)
+Figure 5. Visualization results compared with iCAN on HICO-Det. The first row is the prediction of iCAN and the second row by PPDM. Purple denotes the subject and red is the object. If a subject has interaction with an object, they will be linked by a green line. We show results with top-3 confidence per image: 1-blue, 2-yellow, 3-pink. The 'no' denotes 'no-interaction'.
+
+
+(d)
+
+
+(e)
+
+speed. As shown in Table 2, PPDM with DLA and Hourglass are both faster than other methods by a large margin. PPDM-DLA is the only real-time method, which only takes $27\mathrm{ms}$ for inference. Concretely, the inference time of two-stage HOI detection methods can be divided into proposal generation time and HOI classifier time. Besides, the pose based methods take extra time to estimate human keypoints. It can be seen that the speed of PPDM-DLA is faster than any stage of the compared methods.
+
+# 5.3. Component Analysis
+
+We analyze the proposed components in PPDM from quantitative and qualitative views.
+
+
+Figure 6. Visualization of interaction points heatmaps and displacements. Red and purple line represent displacements from interaction point (green) to human and object.
+
+Feature Extractor. We analyze effectiveness of the additional modules in DLA backbone, i.e., feature fusion and global reasoning. The first row in Table 4 represents the basic framework with DLA, where we predict the interaction only based on the last-level feature. It shows that the basic model can still outperform all existing methods. It proves the effectiveness of our designed framework. The second row and third row show the results of the basic model with
+
+the feature fusion and a global reasoning module respectively, it can be seen in Table 4 that the performance only change little. If we add a these two settings to the basic framework as the same time, that the performance improves by $0.35\%$ mAP. We conclude that a larger receptive field and global context are helpful to interaction prediction.
+
+Point Detection. To verify whether the midpoint of two center points is the best choice to predict the interaction, we perform an experiment based on the interaction point at the center of the union of human and object boxes, which is another suitable location to predict the interaction. See the 4th row in Table 4. The mAPs drop 1.64 point compared with PPDM-DLA. It is common that two objects interact with the same person and may locate in the human box, in which case the center points of their union boxes overlap. Additionally, we analyze our interaction point qualitatively. As shown in Figure 6, the predicted interaction almost accurately locates at the midpoint of the human/object points, though the human is apart from the object or in the object.
+
+Point Matching. To further understand the displacement, we visualize the displacements in Figure 6. We can see the interaction point plus the corresponding displacement is very close to the center point of the human/object box, even though the human/object is hard to be detected.
+
+# 6. Conclusion
+
+In this paper, we propose a novel one-stage framework and a new dataset for HOI detection. Our proposed method can outperform the existing methods by a margin also with a significantly faster speed. It breaks the limits of the traditional two-stage methods and directly predicts the HOI by a parallel framework. Our proposed HOI-A dataset is more inclined to practical application for HOI detection.
+
+Acknowledgement This work was partially supported by Sensetime Ltd. Group, Zhejiang Lab (No. 2019KD0AB04), Beijing Natural Science Foundation (L182013, 4202034) and Fundamental Research Funds for the Central Universities.
+
+# References
+
+[1] Pic leaderboard. http://www.picdataset.com/challenge/leaderboard/hoi2019.
+[2] Yu-Wei Chao, Yunfan Liu, Xieyang Liu, Huayi Zeng, and Jia Deng. Learning to detect human-object interactions. In WACV, 2018.
+[3] Yunpeng Chen, Marcus Rohrbach, Zhicheng Yan, Yan Shuicheng, Jiashi Feng, and Yannis Kalantidis. Graph-based global reasoning networks. In CVPR, 2019.
+[4] Zhiwei Dong, Guoxuan Li, Yue Liao, Fei Wang, Pengju Ren, and Chen Qian. Centripetalnet: Pursuing high-quality keypoint pairs for object detection. In CVPR, 2020.
+[5] Hao-Shu Fang, Jinkun Cao, Yu-Wing Tai, and Cewu Lu. Pairwise body-part attention for recognizing human-object interactions. In ECCV, 2018.
+[6] Wei Feng, Wentao Liu, Tong Li, Jing Peng, Chen Qian, and Xiaolin Hu. Turbo learning framework for human-object interactions recognition and human pose estimation. 2019.
+[7] Chen Gao, Yuliang Zou, and Jia-Bin Huang. ican: Instance-centric attention network for human-object interaction detection. In BMVC, 2018.
+[8] Ross Girshick. Fast r-cnn. In CVPR, 2015.
+[9] Georgia Gkioxari, Ross Girshick, Piotr Dolkar, and Kaiming He. Detecting and recognizing human-object interactions. In CVPR, 2018.
+[10] Abhinav Gupta, Aniruddha Kembhavi, and Larry S Davis. Observing human-object interactions: Using spatial and functional compatibility for recognition. TPAMI, 2009.
+[11] Saurabh Gupta and Jitendra Malik. Visual semantic role labeling. arXiv preprint arXiv:1505.04474, 2015.
+[12] Tanmay Gupta, Alexander Schwing, and Derek Hoiem. No-frills human-object interaction detection: Factorization, appearance and layout encodings, and training techniques. In ICCV, 2019.
+[13] Roei Herzig, Moshiko Raboh, Gal Chechik, Jonathan Berant, and Amir Globerson. Mapping images to scene graphs with permutation-invariant structured prediction. In NIPS, 2018.
+[14] Ranjay Krishna, Yuke Zhu, Oliver Groth, Justin Johnson, Kenji Hata, Joshua Kravitz, Stephanie Chen, Yannis Kalantidis, Li-Jia Li, David A Shamma, et al. Visual genome: Connecting language and vision using crowdsourced dense image annotations. International Journal of Computer Vision, 123(1):32-73, 2017.
+[15] Hei Law and Jia Deng. Cornernet: Detecting objects as paired keypoints. In ECCV, 2018.
+[16] Yong-Lu Li, Siyuan Zhou, Xijie Huang, Liang Xu, Ze Ma, Hao-Shu Fang, Yan-Feng Wang, and Cewu Lu. Transferable interactiveness prior for human-object interaction detection. In CVPR, 2019.
+[17] Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dólár. Focal loss for dense object detection. In CVPR, 2017.
+[18] 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.
+
+[19] Cewu Lu, Ranjay Krishna, Michael Bernstein, and Li Fei-Fei. Visual relationship detection with language priors. In ECCV, 2016.
+[20] Alejandro Newell and Jia Deng. Pixels to graphs by associative embedding. In NIPS, 2017.
+[21] Alejandro Newell, Kaiyu Yang, and Jia Deng. Stacked hourglass networks for human pose estimation. In ECCV, 2016.
+[22] Siyuan Qi, Wenguan Wang, Baoxiong Jia, Jianbing Shen, and Song-Chun Zhu. Learning human-object interactions by graph parsing neural networks. In ECCV, 2018.
+[23] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In NIPS, 2015.
+[24] Liyue Shen, Serena Yeung, Judy Hoffman, Greg Mori, and Li Fei-Fei. Scaling human-object interaction recognition through zero-shot learning. In WACV, 2018.
+[25] Jonathan J. Tompson, Arjun Jain, Yann LeCun, and Christoph Bregler. Joint training of a convolutional network and a graphical model for human pose estimation.
+[26] 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.
+[27] Tiancai Wang, Rao Muhammad Anwer, Muhammad Haris Khan, Fahad Shahbaz Khan, Yanwei Pang, Ling Shao, and Jorma Laaksonen. Deep contextual attention for human-object interaction detection. In ICCV, 2019.
+[28] Bingjie Xu, Yongkang Wong, Junnan Li, Qi Zhao, and Mohan S. Kankanhalli. Learning to detect human-object interactions with knowledge. In CVPR, 2019.
+[29] Danfei Xu, Yuke Zhu, Christopher B Choy, and Li Fei-Fei. Scene graph generation by iterative message passing. In CVPR, 2017.
+[30] Bangpeng Yao and Li Fei-Fei. Recognizing human-object interactions in still images by modeling the mutual context of objects and human poses. TPAMI, 2012.
+[31] Fisher Yu, Dequan Wang, Evan Shelhamer, and Trevor Darrell. Deep layer aggregation. In CVPR, 2018.
+[32] Ji Zhang, Kevin J Shih, Ahmed Elgammal, Andrew Tao, and Bryan Catanzaro. Graphical contrastive losses for scene graph parsing. In CVPR, 2019.
+[33] Penghao Zhou and Mingmin Chi. Relation parsing neural network for human-object interaction detection. In ICCV, 2019.
+[34] Tianfei Zhou, Wenguan Wang, Siyuan Qi, Haibin Ling, and Jianbing Shen. Cascaded human-object interaction recognition. In CVPR, 2020.
+[35] Xingyi Zhou, Dequan Wang, and Philipp Krahenbuhl. Objects as points. arXiv preprint arXiv:1904.07850, 2019.
+[36] Bohan Zhuang, Qi Wu, Chunhua Shen, Ian Reid, and Anton van den Hengel. Care about you: towards large-scale human-centric visual relationship detection. arXiv preprint arXiv:1705.09892, 2017.
\ No newline at end of file
diff --git a/ppdmparallelpointdetectionandmatchingforrealtimehumanobjectinteractiondetection/images.zip b/ppdmparallelpointdetectionandmatchingforrealtimehumanobjectinteractiondetection/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..7a14a14ae2511f5086355c6c9d9b77935289ece8
--- /dev/null
+++ b/ppdmparallelpointdetectionandmatchingforrealtimehumanobjectinteractiondetection/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:95940780495babf5305d638ec09659335e71e0ede8c53c1bbfd9787b34e9d292
+size 568266
diff --git a/ppdmparallelpointdetectionandmatchingforrealtimehumanobjectinteractiondetection/layout.json b/ppdmparallelpointdetectionandmatchingforrealtimehumanobjectinteractiondetection/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..42f8c7a4e7cdd32846aa58febbd9b38f96c33728
--- /dev/null
+++ b/ppdmparallelpointdetectionandmatchingforrealtimehumanobjectinteractiondetection/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:aa3af742eaf350b751b3bdc3e8e6451d48645c24aadd86657f41ff44e9a10b77
+size 405496
diff --git a/pqnetagenerativepartseq2seqnetworkfor3dshapes/7a1b57d1-86c0-483c-b0ed-ceef732a12d6_content_list.json b/pqnetagenerativepartseq2seqnetworkfor3dshapes/7a1b57d1-86c0-483c-b0ed-ceef732a12d6_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..03fe827ef00a2ef5dc999207fb264df77f631c41
--- /dev/null
+++ b/pqnetagenerativepartseq2seqnetworkfor3dshapes/7a1b57d1-86c0-483c-b0ed-ceef732a12d6_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:389478062efcccf2c49157888a762250f999527992fe1e1b47d803c17bad5893
+size 76619
diff --git a/pqnetagenerativepartseq2seqnetworkfor3dshapes/7a1b57d1-86c0-483c-b0ed-ceef732a12d6_model.json b/pqnetagenerativepartseq2seqnetworkfor3dshapes/7a1b57d1-86c0-483c-b0ed-ceef732a12d6_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..8c37f627c293e86a37ba81a328e7319efaccf7af
--- /dev/null
+++ b/pqnetagenerativepartseq2seqnetworkfor3dshapes/7a1b57d1-86c0-483c-b0ed-ceef732a12d6_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d74a1ccc056ca82baefc37760622ff4dd5a1551c3813a4f4f3c9b5bbd10c6cff
+size 96615
diff --git a/pqnetagenerativepartseq2seqnetworkfor3dshapes/7a1b57d1-86c0-483c-b0ed-ceef732a12d6_origin.pdf b/pqnetagenerativepartseq2seqnetworkfor3dshapes/7a1b57d1-86c0-483c-b0ed-ceef732a12d6_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..df948eb6bb3b2bb8a83f6453c98f118ba28a272e
--- /dev/null
+++ b/pqnetagenerativepartseq2seqnetworkfor3dshapes/7a1b57d1-86c0-483c-b0ed-ceef732a12d6_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:aa4ba4be3c9e0d75ab6bfdcfc8b90a7758be2aa72c4ee4b3ef645b92492a1672
+size 2037829
diff --git a/pqnetagenerativepartseq2seqnetworkfor3dshapes/full.md b/pqnetagenerativepartseq2seqnetworkfor3dshapes/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..a0f8e119e4864b31ddfab2ab0b67a7fb92266074
--- /dev/null
+++ b/pqnetagenerativepartseq2seqnetworkfor3dshapes/full.md
@@ -0,0 +1,342 @@
+# PQ-NET: A Generative Part Seq2Seq Network for 3D Shapes
+
+Rundi $\mathbf{W}\mathbf{u}^{1}$ Yixin Zhuang $^{1}$ Kai Xu $^{2}$ Hao Zhang $^{3}$ Baoquan Chen $^{1}$
+
+1Center on Frontiers of Computing Studies, Peking University
+
+$^{2}$ National University of Defense Technology
+
+3Simon Fraser University
+
+"The characterization of object perception provided by recognition-by-components (RBC) bears a close resemblance to some current views as to how speech is perceived."
+
+— Irving Biederman [5]
+
+# Abstract
+
+We introduce $PQ$ -NET, a deep neural network which represents and generates 3D shapes via sequential part assembly. The input to our network is a 3D shape segmented into parts, where each part is first encoded into a feature representation using a part autoencoder. The core component of $PQ$ -NET is a sequence-to-sequence or Seq2Seq autoencoder which encodes a sequence of part features into a latent vector of fixed size, and the decoder reconstructs the 3D shape, one part at a time, resulting in a sequential assembly. The latent space formed by the Seq2Seq encoder encodes both part structure and fine part geometry. The decoder can be adapted to perform several generative tasks including shape autoencoding, interpolation, novel shape generation, and single-view 3D reconstruction, where the generated shapes are all composed of meaningful parts.
+
+# 1. Introduction
+
+Learning generative models of 3D shapes is a key problem in both computer vision and computer graphics. While graphics is mainly concerned with 3D shape modeling, in inverse graphics [23], a major line of work in computer vision, one aims to infer, often from a single image, a disentangled representation with respect to 3D shape and scene structures [29]. Lately, there has been a steady stream of works on developing deep neural networks for 3D shape generation using different shape representations, e.g., voxel grids [54], point clouds [15, 1], meshes [20, 51], and most recently, implicit functions [35, 41, 10, 56]. However, most of these works produce unstructured 3D shapes, despite the fact that object perception is generally believed to be a process of structural understanding, i.e., to infer shape parts, their compositions, and inter-part relations [24, 5].
+
+
+Figure 1. Our network, PQ-NET, learns 3D shape representations as a sequential part assembly. It can be adapted to generative tasks such as random 3D shape generation, single-view 3D reconstruction (from RGB or depth images), and shape completion.
+
+In this paper, we introduce a deep neural network which represents and generates 3D shapes via sequential part assembly, as shown in Figures 1 and 2. In a way, we regard the assembly sequence as a "sentence" which organizes and describes the parts constituting a 3D shape. Our approach is inspired, in part, by the resemblance between speech and shape perception, as suggested by the seminal work of Biederman [5] on recognition-by-components (RBC). Another related observation is that the phase structure rules for language parsing, first introduced by Noam Chomsky, take on the view that a sentence is both a linear string of words and a hierarchical structure with phrases nested in phrases [7]. In the context of shape structure presentations, our network adheres to linear part orders, while other works [53, 31, 36] have opted for hierarchical part organizations.
+
+The input to our network is a 3D shape segmented into parts, where each part is first encoded into a feature representation using a part autoencoder; see Figure 2(a). The core component of our network is a sequence-to-sequence or Seq2Seq autoencoder which encodes a sequence of part features into a latent vector of fixed size, and the decoder
+
+
+a) Part Geometry Encoding
+
+
+Figure 2. The architecture of PQ-NET: our part Seq2Seq generative network for 3D shapes.
+
+reconstructs the 3D shape, one part at a time, resulting in a sequential assembly; see Figure 2(b). With its part-wise Seq2Seq architecture, our network is coined $PQ$ -NET. The latent space formed by the Seq2Seq encoder enables us to adapt the decoder to perform several generative tasks including shape autoencoding, interpolation, new shape generation, and single-view 3D reconstruction, where all the generated shapes are composed of meaningful parts.
+
+As training data, we take the segmented 3D shapes from PartNet [37], which is built on ShapeNet [8]. The shape parts are always specified in a file following some linear order in the dataset; our network takes the part order that is in a shape file. We train the part and Seq2Seq autoencoders of PQ-NET separately, either per shape category or across all categories of PartNet.
+
+Our part autoencoder adapts IM-NET [10] to encode shape parts, rather than whole shapes, with the decoder producing an implicit field. The part Seq2Seq autoencoder follows a similar architecture as the original Seq2Seq network developed for machine translation [47]. Specifically, the encoder is a bidirectional stacked recurrent neural network (RNN) [45] that inputs two sequences of part features, in opposite orders, and outputs a latent vector. The decoder is also a stacked RNN, which decodes the latent vector representing the whole shape into a sequential part assembly.
+
+PQ-NET is the first fully generative network which learns a 3D shape representation in the form of sequential part assembly. The only prior part sequence model was 3DPRNN [58], which generates part boxes, not their geometry — our network jointly encodes and decodes part structure and geometry. PQ-NET can be easily adapted to various generative tasks including shape autoencoding, novel
+
+shape generation, structured single-view 3D reconstruction from both RGB and depth images, and shape completion. Through extensive experiments, we demonstrate that the performance and output quality of our network is comparable or superior to state-of-the-art generative models including 3D-PRNN [58], IM-NET [10], and StructureNet [36].
+
+# 2. Related work
+
+Structural analysis of 3D shapes. Studies on 3D shape variabilities date back to statistical modeling of human faces [6] and bodies [2], e.g., using PCA. Learning structural variations of man-made shapes is a more difficult task. Earlier works from graphics typically infer one or more parametric templates of part arrangement from shape collections [40, 27, 17]. These methods often require part correspondence of the input shapes. Probabilistic graphical models can be used to model shape variability as the causal relations between shape parts [26], but pre-segmented and part labeled shapes are required for learning such models.
+
+"Holistic" generative models of 3D shapes. Deep generative models of 3D shapes have been developed for volumetric grids [54, 19, 52, 43], point clouds [15, 1, 57], surface meshes [20, 51], multi-view images [46], and implicit functions [11, 41]. Common to these works is that the shape variability is modeled in a holistic, structure-oblivious fashion. This is mainly because there are few part-based shape representations suitable for deep learning.
+
+Part-based generative models. In recent years, learning deep generative models for part- or structure-aware shape synthesis has been gaining more interests. Huang et al. [25]
+
+propose a deep generative model based on part-based templates learned a priori. Nash and Williams [38] propose a ShapeVAE to generate segmented 3D objects and the model is trained using shapes with dense point correspondence. Li et al. [31] propose GRASS, an end-to-end deep generative model of part structures. They employ recursive neural network (RvNN) to attain hierarchical encoding and decoding of parts and relations. Their binary-tree-based RvNN is later extended to the N-ary case by StructureNet [36]. Wu et al. [55] couple the synthesis of intra-part geometry and inter-part structure. In G2L [50], 3D shapes are generated with part labeling based on generative adversarial networks (GANs) and then refined using a pre-trained part refiner. Most recently, Gao et al. [18] train an autoencoder to generate a spatial arrangement of closed, deformable mesh parts respecting the global part structure of a shape category.
+
+Other recent works on part-based generation adopts a generate-and-assemble scheme. CompoNet [44] is a part composition network operating on a fixed number of parts. Per-part generators and a composition network are trained to produce shapes with a given part structure. Dubrovina et al. [14] propose a decomposer-composer network to learn a factorized shape embedding space for part-based modeling. Novel shapes are synthesized by randomly sampling and assembling the pre-existing parts embedded in the factorized latent space. Li et al. [30] propose PAGENet which is composed of an array of per-part VAE-GANs, followed by a part assembly module that estimates a transformation for each part to assemble them into a plausible structure.
+
+Seq2Seq. Seq2Seq is a general-purpose encoder-decoder framework for machine translation. It is composed of two RNNs which takes as input a word sequence and maps it into an output one with a tag and attention value [47]. To date, Seq2Seq has been used for a variety of different applications such as image captioning, conversational models, text summarization, as well as few works for 3D representation learning. For example, Liu et al. [32] employ Seq2Seq to learn features for 3D point clouds with multiscale context. PQ-NET is the first deep neural network that exploits the power of sequence-to-sequence translation for generative 3D shape modeling, by learning structural context within a sequence of constituent shape parts.
+
+3D-PRNN: part sequence assembly. Most closely related to our work is 3D-PRNN [58], which, to the best of our knowledge, is the only prior work that learns a part sequence model for 3D shapes. Specifically, 3D-PRNN is trained to reconstruct 3D shapes as sequences of box primitives given a single depth image. In contrast, our network learns a deep generative model of both a linear arrangement of shape parts and geometries of the individual parts. Technically, while both networks employ RNNs, PQ-NET learns a shape latent space, jointly encoding both structure and ge
+
+ometry, using a Seq2Seq approach. 3D-PRNN, on the other hand, uses the RNN as a recurrent generator that sequentially outputs box primitives based on the depth input and the previously generated single primitive. Their network is trained on segmented shapes whose parts are ordered along the vertical direction. To allow novel shape generation, 3D-PRNN needs to be initiated by primitive parameters sampled from the training set, while PQ-NET follows a standard generative procedure using latent GANs [1, 10].
+
+Single view 3D reconstruction (SVR). Most methods train convolutional networks that map 2D images to 3D shapes using direct 3D supervision, where voxel [13, 19, 48, 42, 28] and point cloud [16, 34] representations of 3D shapes have been extensively utilized. Some methods [33, 4] learn to produce multi-view depth maps that are fused together into a 3D point cloud. Tulsiani et al. [49] infer cuboid abstraction of 3D shapes from single-view images. Extending the RvNN-based architecture of GRASS [31], Niu et al. [39] propose Im2Struct which maps a single-view image into a hierarchy of part boxes. Differently from this work, our method produces part boxes and the corresponding part geometries jointly, by exploiting the coupling between structure and geometry in a sequential part generative model.
+
+# 3. Method
+
+In this section, we introduce our $PQ$ -NET, based on a Seq2Seq Autoencoder, or Seq2SeqAE, for sequential part assembly and part-based shape representation. Given a 3D shape consisting of several parts, we first represents it as a sequence with each vector corresponding to a single part that consists of a geometric feature vector and a 6 DoF bounding box indicating the translating and scaling of part local frame according to the global coordinate system. The geometry of each part is projected to a low-dimensional feature space based on a hybrid-structure autoencoder using self-supervised training. Since the number of part sequence is un-known, we seek a recurrent neural network based encoder to transform the entire sequence to an unified shape latent space. The part sequence is then decoded from the shape feature vector, with each part containing the geometry feature and the spatial position and size. Figure 2 shows the outline of our Seq2SeqAE model. Our learned shape latent space facilitates applications like random generation, single view reconstruction and shape completion, etc. We will explain the two major components of our model in the next sections with more details in supplementary material.
+
+# 3.1. Part Geometry Auto-encoding
+
+The part geometry and topology is much simpler than the original shape. Thus, by decomposing the shape into a set of parts, we are able to perform high-resolution and
+
+cross-category geometry learning with high quality. Our part geometry autoencoder uses a similar design as [10], where a CNN-based encoder projects voxelized part to the part latent space, and a MLP-based decoder re-projects the latent vector to a volumetric Signed Distance Field(SDF). The surface of the object is retrieved using marching cube on the places where SDF is zero.
+
+We first scale each part to a fixed resolution $64 \times 64 \times 64$ within its bounding box and feed scaled part volume as input to a CNN encoder to get the output feature vector $g$ that represents the part geometry. The MLP decoder takes in this feature vector $g$ and 3D point $(x, y, z)$ and output a single value that tells either this point is inside the surface of the input geometry or outside. Since volumetric SDF is continuous everywhere, the output geometry is smooth and can be sampled at any resolution. Note that this feature representation has no information about the part's scale and global position, and thus purely captures its geometry property. For a shape with $n$ parts, we can extract a sequence of geometry features $g_1, g_2, \ldots, g_n$ corresponding to each part.
+
+# 3.2. Seq2Seq AE
+
+The core of our neural network is a Sequence-to-Sequence(Seq2Seq) Autoencoder. The sequential encoder is a bidirectional stacked RNN [45] that takes a sequence of part features, along with its reverse version, as the input, and outputs a latent vector $h_{z}$ of fixed size. This latent vector is then passed to the stacked RNN decoder that outputs a part feature at each time step. Intuitively, the Seq2Seq encoder learns to assemble parts into a complete shape while the decoder learns to decompose it into meaningful parts. In all of our experiments, we used GRU [12] as the RNN cell and employed two hidden layers for each RNN.
+
+More specifically, let $F_{i} = [g_{i};b_{i}]$ denotes part feature vector, concatenated with two components, a part geometry feature $g_{i}$ and a 6 DoF bounding box $b_{i} = [x_{i},y_{i},z_{i},l_{i},m_{i},n_{i}]$ , where $[x_i,y_i,z_i]$ and $[l_i,m_i,n_i]$ indicate box position and size, respectively. An additional information of part number is used to regularize the shape distribution, since we empirically found it improving the performance. With the extra one-hot vector $t_i$ of part number, the full vector of a part is finally symbolized as $S_{i} = [F_{i};t_{i}]$ . We feed the sequence of $S = [S_1,S_2,\dots,S_n]$ and also its reverse, $S_{\text{reverse}}$ , to the bidirectional encoder, and obtain two hidden states from the output,
+
+$$
+h _ {1} = [ h _ {1} ^ {1}; h _ {1} ^ {2} ] = \mathrm {e n c o d e} _ {1} (S)
+$$
+
+$$
+h _ {2} = \left[ h _ {2} ^ {1}; h _ {2} ^ {2} \right] = \operatorname {e n c o d e} _ {2} \left(S _ {\text {r e v e r s e}}\right) \tag {1}
+$$
+
+$$
+h _ {z} = [ h _ {1} ^ {1}; h _ {2} ^ {1}; h _ {1} ^ {2}; h _ {2} ^ {2} ]
+$$
+
+The final state $h_z$ is a latent representation of 3D shape.
+
+Different to the vanilla RNN, stacked RNN outputs more than one vector for each time step, which allows more complex representation for our parts. Specifically, our stacked
+
+
+Figure 3. Structure of our stacked RNN decoder. At each time step, the geometry feature and structure feature are separately predicted, along with a stop sign indicating whether the iteration is finished.
+
+RNN has two hidden states at each time step, namely $h_i^G$ and $h_i^S$ . We use $h_i^G$ for geometry feature reconstruction by passing it through a MLP network while $h_i^S$ is used for the structure feature with the same technique. We also add another MLP network to predict a stop sign $s_i$ that indicates whether to stop iteration. With the initial hidden state set as the final output $h_z$ of encoder RNN, our stacked RNN decoder iteratively generates individual parts by
+
+$$
+[ h _ {0} ^ {S}; h _ {0} ^ {G} ] = h _ {z}
+$$
+
+$$
+g _ {i} ^ {\prime} = M L P _ {G} \left(h _ {i} ^ {G}\right) \tag {2}
+$$
+
+$$
+b _ {i} ^ {\prime} = M L P _ {S} (h _ {i} ^ {S})
+$$
+
+$$
+s _ {i} ^ {\prime} = \operatorname {S i g m o i d} \left(M L P _ {s} \left(h _ {i} ^ {S}\right)\right)
+$$
+
+The iteration will stop if $s_i' > 0.5$ .
+
+Figure 3 illustrates the structure of the RNN decoder. Comparing to the vanilla RNN, where all properties are concatenated into a single feature vector, our disentangling of the geometry and bounding box in a stacked design yields better results without using deeper network.
+
+# 3.3. Training and losses
+
+Given a dataset $S$ with shapes from multiple categories, we describe the training process of our PQ-NET. Due to the complexity of the whole pipeline and the limitation of computational power, we separate the training into two steps.
+
+Step 1. Our part geometry autoencoder consists of a 3D-CNN based encoder $e$ and an implicit function represented decoder $d$ . Given a 3D dataset $S$ with each shape partitioned into several parts, we scale all parts to an unit cube, and collect a 3D parts dataset $\mathcal{P}$ . Note that $\mathcal{P}$ is derived from $S$ . We use signed distance field for 3D geometry generation as in [10]. Our goal is to train a network to predict the signed distance field of each part $P$ from dataset $\mathcal{P}$ . Let $T_P$ be a set of points sampled from shape $P$ , we define the loss function as the mean squared error between ground truth values and predicted values for all points:
+
+$$
+\mathcal {L} (P) = \mathbb {E} _ {p \in T _ {P}} | d (e (P), p) - \mathcal {F} (p) | ^ {2} \tag {3}
+$$
+
+where $\mathcal{F}$ is the ground truth signed distance function.
+
+After the training is done, the encoder $e$ can be used to map each part $P$ to a latent vector $g = e(P)$ which is used as input in the next step.
+
+Step 2. Based on the part sequence representation, we perform jointly analysis of geometry and structure for each shape $S$ using our Seq2Seq model. We use a loss function that consists of two parts,
+
+$$
+\mathcal {L} _ {\text {t o t a l}} = \mathbb {E} _ {S \in \mathcal {S}} \left[ \mathcal {L} _ {\mathrm {r}} (S) + \alpha \mathcal {L} _ {\text {s t o p}} (S) \right], \tag {4}
+$$
+
+where the weighted factor $\alpha$ is empirically set to 0.01.
+
+The reconstruction loss $\mathcal{L}_r$ punishes the reconstructed geometry and structure feature for being apart to the ground truth. We use mean squared error as the distance measure and define the reconstruction loss as:
+
+$$
+\mathcal {L} _ {\mathrm {r}} (S) = \frac {1}{k} \sum_ {i = 1} ^ {k} [ \beta | | g _ {i} ^ {\prime} - g _ {i} | | _ {2} + | | b _ {i} ^ {\prime} - b _ {i} | | _ {2} ], \tag {5}
+$$
+
+where $k$ is the number of parts of shape $S$ , and $\beta$ is set to 1.0 in our experiments. For the $i$ -th part, $g_{i}^{\prime}$ and $b_{i}^{\prime}$ denote the reconstructed result of geometry and structural feature while $g_{i}$ and $b_{i}$ are the corresponding ground truth.
+
+The stop loss $\mathcal{L}_{\mathrm{stop}}$ encourages the RNN decoder to generate with correct number of parts that exactly fulfills a shape. Similar to 3D-PRNN [58], we give each time step of RNN decoder a binary label $s_i$ indicating whether to stop at step $i$ . The stop loss is defined using binary cross entropy:
+
+$$
+\mathcal {L} _ {\text {s t o p}} (S) = \frac {1}{k} \sum_ {i = 1} ^ {k} \left[ - s _ {i} \log s _ {i} ^ {\prime} - \left(1 - s _ {i}\right) \log \left(1 - s _ {i} ^ {\prime}\right) \right] \tag {6}
+$$
+
+where $s_i'$ is the predicted stop sign.
+
+# 3.4. Shape Generation and other applications
+
+The latent space learned by PQ-NET supports various applications. We show results of shape auto-encoding, 3D shape generation, interpolation and single-view reconstruction from RGB or depth image in the next section.
+
+For shape auto-encoding, we use the same setting in the work of [10]. Each part of a shape is scale to a $64^{3}$ volume and the point set for SDF regression is sampled around the surface equally from inside and outside. Then the model is trained following the description in Section 3.3.
+
+For 3D shape generation, we employ latent GANs [1, 10] on the pre-learned latent space using our sequential autoencoder. Specifically, we used a simple MLP of three hidden fully-connected layers for both the generator and discriminator, and applied Wasserstein-GAN (WGAN) training strategy with gradient penalty [3, 21]. After the training is done, the GAN generator maps random vectors sampled from the standard gaussian distribution $\mathcal{N}(0,1)$ to our shape
+
+latent space from which our sequential decoder generates new shapes with both geometry and segmentation.
+
+For 3D reconstruction from single RGB image or depth map, we use a standalone CNN encoder to map the input image to our pre-learned shape latent space. Typically, we use a four convolutional layers CNN as the encoder for depth image embedding and the typical ResNet18 [22] for RGB input embedding. We follow the similar idea as [20, 10, 36] to train the CNN encoder while fixing the parameters of our sequential decoder.
+
+# 4. Results, Evaluation, and Applications
+
+In this section, we show qualitative and quantitative results of our model on several tasks, including shape autoencoding, shape generation and single view reconstruction. We use PartNet [37], a large-scale 3D shape dataset with semantic segmentation, in our paper. We mainly use their three largest categories, that is, chair, table and lamp and remove shapes that have more than 10 parts, resulting in 6305 chairs, 7357 tables and 1188 lamps, which are further divided into training, validation and test sets using official data splits of PartNet. The original shapes are in mesh representation, and we voxelize them into $64^{3}$ cube for feature embedding. We follow the sampling approach as in [11] to collect thousands of 3D point and the corresponding SDF values for implicit field generation. Please refer to our supplementary material for more details on data processing.
+
+# 4.1.3D Shape Auto-encoding
+
+We compare our sequential autoencoder with IM-NET [11]. Both methods are using the same dataset for training. Table 4.1 and Figure 4 shows the results of two methods at different resolutions, specifically $64^{3}$ and $256^{3}$ . For quantitative evaluation, we use Intersection over Union (IoU), symmetric Chamfer Distance (CD) and Light Field Distance(LFD) [9] as measurements. IoU is calculated at $64^{3}$ resolution, the same resolution of our training model. In Chair category, our method is better than IM-NET, however, in the other two categories, from which the geometry is much simpler, the IoU of IM-NET is better than ours. Note that, the parts of shape generated by our method is better than IM-NET, due to its simplicity, and our generated shape is visually better too. However, small perturbation of part location can significantly cut down the score of IoU. For CD and LFD, our method performs better than IM-NET. Since LFD is computed within mesh domain, we convert the output of SDF decoder to the mesh using marching cubes algorithm. For CD metric, we samples 10K points on the mesh surface and compare with the ground truth point clouds.
+
+In general, our model outperforms IM-NET in both qualitative and quantitative evaluation. We admit that this comparison might be a bit unfair for IM-NET, since our inputs are segmented parts, which offers structural informa
+
+| Metrics | Method | Chair | Table | Lamp |
| IoU | Ours-64 | 67.29 | 47.39 | 39.56 |
| IM-NET-64 | 62.93 | 56.14 | 41.29 |
| CD | Ours-64 | 3.38 | 5.49 | 11.49 |
| Ours-256 | 2.86 | 5.69 | 10.32 |
| Ours-Cross-256 | 2.46 | 4.50 | 4.87 |
| IM-NET-64 | 3.64 | 6.75 | 12.43 |
| IM-NET-256 | 3.59 | 6.31 | 12.19 |
| LFD | Ours-64 | 2734 | 2824 | 6254 |
| Ours-256 | 2441 | 2609 | 5941 |
| Ours-Cross-256 | 2501 | 2415 | 4875 |
| IM-NET-64 | 2830 | 3446 | 6262 |
| IM-NET-256 | 2794 | 3397 | 6622 |
+
+
+Figure 4. Visual results for shape auto-encoding. Output meshes are obtained using the same marching cubes setup.
+
+tion that is not provided by the whole shape. But still the evaluation results show that our model can correctly represents both structure and geometry of 3D shapes. A worth noticing fact is that our cross-category trained model beats per-category trained models. It indicates that our sequential model can handle different arrangements of parts across categories and benefits from the simplicity of part geometry.
+
+# 4.2. Shape Generation and Interpolation
+
+We compare to two state-of-the-art 3D shape generative models, IM-NET [10] and StructureNet [36], for 3D shape generation task. We use the released code for both method. For IM-NET, we retrain their model on all three category. For StructureNet, we use the pre-trained models on Chair and Table, and retrain the model for Lamp category.
+
+We adopt Coverage (COV), Minimum Matching Distance (MMD) and Jensen-Shannon Divergence (JSD) [1] to evaluate the fidelity and diversity of generation results.
+
+Table 1. Quantitative shape reconstruction results. IoU is multiplied by $10^{2}$ , CD by $10^{3}$ . LFD is rounded to integer. "Ours-Cross" refers to our model trained across all three categories.
+
+| Category | Method | COV | MMD | JSD |
| Chair | Ours | 54.91 | 8.34 | 0.0083 |
| IM-NET | 52.35 | 7.44 | 0.0084 |
| StructureNet | 29.51 | 9.67 | 0.0477 |
| Table | Ours | 56.51 | 7.56 | 0.0057 |
| IM-NET | 56.67 | 6.90 | 0.0047 |
| StructureNet | 16.04 | 14.98 | 0.0725 |
| Lamp | Ours | 87.95 | 10.01 | 0.0215 |
| IM-NET | 81.25 | 10.45 | 0.0230 |
| StructureNet | 35.27 | 17.29 | 0.1719 |
+
+Table 2. Quantitative evaluation for shape generation. We randomly generated 2000 shapes for each method and then compared to the test dataset. COV and MMD use chamfer distance as distance measure. MMD is multiplied by $10^{3}$ .
+
+
+Figure 5. 3D shape generation results with comparison to results obtained by IM-NET and StructureNET.
+
+While COV and JSD roughly represent the diversity of the generated shapes, MMD is often used for fidelity evaluation. We obtained a set of generated shapes for each method by randomly generating 2K samples and compare to the test set using chamfer distance. More details about evaluation metrics are available in supplementary material.
+
+The results of PQ-NET and IM-NET are sampled at resolution $256^{3}$ for visual comparison and $64^{3}$ for quantitative evaluation. We reconstruct the mesh and sample 2K points to calculate chamfer distance. Since StructureNet outputs 1K points for each generated part, the whole shape may contain points larger than 2K. We conduct a downsampling process to extract 2K points for evaluation.
+
+Table 4.2 and Figure 5 shows the results from our PQNET, IM-NET and StructureNet. Our method can produce smooth geometry while maintaining the whole structure preserved. For thin structure and complex topology, modeling whole shape is very hard, and our decomposition strategy can be very helpful in such hard situation. However, on the other hand, our sequential model may yield duplicated
+
+
+Figure 6. Latent space interpolation results. The interpolated sequence not only consists of smooth geometry morphing but also keeps the shape structure.
+
+
+Figure 7. Visual comparison of structured 3D shape reconstruction from single depth image on three categories: chair, table, lamp.
+
+parts or miss parts sometimes. As to get the sufficient generative model, it is important to balance the hardness between geometry generation and structure recovery.
+
+Besides random generation, we also show interpolation results in Figure 6. Interpolation between latent vector is a way to show the continuity of learned shape latent space. Linear interpolation from our latent space yields smooth transiting shapes in terms of geometry and structure.
+
+# 4.3. Comparison to 3D-PRNN
+
+Since 3D-PRNN [58] is the most related work, we conduct a comprehensive comparison with them. We first compare the reconstruction task from a single depth image by evaluating only the structure of shape, since 3D-PRNN doesn't recover shape geometry. For each 3D shape in the dataset, we obtain 5 depth maps by the resolution of $64^2$ . We uniformly sample 5 views and render the depth images using ground truth mesh. For both 3D-PRNN and our model, we use part axis aligned bounding box(AABB) as structure representation. In addition, 3D-PRNN uses a presort order from the input parts. Therefore, besides using the natural order from PartNet annotations, we also train the model on the top-town order used by 3D-PRNN.
+
+Figure 7 shows the visual comparison between our PQNET and 3D-PRNN. Our method can reconstruct much plausible boxes. For quantitative evaluation, we convert the output and ground truth boxes to volumetric model by fully filling with each part box, and compute IoU between generated model and the corresponding ground truth volume. As a result, our reconstructed structures are more accurate, as
+
+| Method | Order | Chair | Table | Lamp | Average |
| Ours | A | 61.47 | 53.67 | 52.94 | 56.03 |
| B | 58.68 | 48.58 | 52.17 | 53.14 |
| 3D-PRNN | A | 37.26 | 51.30 | 47.26 | 45.27 |
| B | 36.46 | 51.93 | 43.83 | 44.07 |
+
+Table 3. Shape IoU evaluation of structured 3D shape reconstruction from single depth image on three categories: chair, table, lamp. We test each method on two kinds of order: PartNet natural order(A) and presorted top-down order(B).
+
+
+Figure 8. Visual comparison of random generated 3D primitives. 3D-PRNN suffers from unreal, duplicated or missing parts while our model can yield more plausible results.
+
+shown in Table 4.3. In terms of order effect, our model on the natural order of PartNet yields the best result. The quality drops down with small portion when using the top-down order as 3D-PRNN, however is still better than theirs.
+
+We also compare the 3D shape generation task with 3D-PRNN, as shown in Figure 8. Quantitative evaluation and more details can be found in supplementary material.
+
+# 4.4. Single View 3D Reconstruction
+
+We compare our approach with IM-NET [11] on the task of single view reconstruction from RGB image. We per-category trained IM-NET on PartNet dataset. Figure 9 shows the results. It can be seen that our approach can recover more complete and detailed geometry than IM-NET. The advantage of model is that we also obtain segmentation besides reconstructed geometry. However, relying on the structure information may cause issues, such as duplicated or misplaced part, see the first table in Figure 9(c).
+
+We admit our method doesn't outperform IM-NET in the quantitative evaluation. This may due to the fact that our latent space is entangled with both the geometry and structure, which makes the latent space less uniform.
+
+# 4.5. Applications
+
+By altering the training procedure applied to our network, we show that PQ-NET can serve two more applications which benefit from sequential part assembly.
+
+Shape completion. We can train our network by feeding it input part sequences which constitute a partial shape, and force the network to reconstruct the full sequence, hence
+
+
+Figure 9. Single view reconstruction results. Our results are from model that is trained across all three category. Note that our method also recovers the shape structure.
+
+completing the shape. We tested this idea on the chair category, by randomly removing up to $k - 1$ parts from the part sequence, $k$ being the total number of parts of a given shape. One result is shown in Figure 1 with more available in the supplementary material.
+
+Order denoising and part correspondence. We can add "noise" to a part order by scrambling it, feed the resulting noisy order to our network, and force it to reconstruct the original (clean) order. We call this procedure part order denoising — it allows the network to learn a consistent part order for a given object category, e.g., chairs, as long as we provide the ground truth orders with consistency. For example, we can enforce the order "back $\rightarrow$ seat $\rightarrow$ legs" and for the legs, we order them in clockwise order. If all the part orders adhere to this, then it should be straightforward to imply a part correspondence, which can, in turn, facilitate inference of part relations such as symmetry; see Figure 10.
+
+With structural varieties, it still requires some work to infer the part correspondence from all possible (consistent) linear part sequences; this is beyond the scope of our current work. It is worth noting however that this inference problem would be a lot harder if the parts are organized hierarchically [53, 31, 36] rather than linearly.
+
+# 5. Conclusion, limitation, and future work
+
+We present PQ-NET, a deep neural network which represents and generates 3D shapes as an assembly sequence of parts. The generation can be from random noise to obtain novel shapes or conditioned on single-view depth scans or RGB images for 3D reconstruction. Promising results are demonstrated for various applications and in comparison with state-of-the-art generative models of 3D shapes including IM-NET [10], StructureNet [36], and 3D-PRNN [58],
+
+
+Figure 10. Part order denoising results. Our method can unscramble random input orders into a consistent output order, to facilitate part correspondence. Note that the color correspondence is for illustrations only, and not part of the output from our network.
+
+where the latter work also generates part assemblies.
+
+One key limitation of PQ-NET is that it does not learn part relations such as symmetry; it only outputs a spatial arrangement of shape parts. More expressive structural representations such as symmetry hierarchies [53, 31] and graphs [36] can encode such relations easily. However, to learn such representations, one needs to prepare sufficient training data which is a non-trivial task. The part correspondence application shown in Section 4.5 highlights an advantage of sequential representations, but in general, an investigation into the pros and cons of sequences vs. hierarchies for learning generative shape models is worthwhile. Another limitation is that PQ-NET does not produce topology-altering interpolation, especially between shapes with different number of parts. Further investigation into latent space formed by sequential model is needed.
+
+We would also like to study more closely the latent space learned by our network, which seems to be encoding part structure and geometry in an entangled and unpredictable manner. This might explain in part why the 3D reconstruction quality from PQ-NET still does not quite match that of state-of-the-art implicit models such as IM-NET. Finally, as shown in Table 4.3, part orders do seem to impact the network learning. Hence, rather than adhering to a fixed part order, the network may learn a good, if not the optimal, part order, for different shape categories, i.e., the best assembly sequence. An intriguing question is what would be an appropriate loss to quantify the best part order.
+
+# Acknowledgement
+
+We thank the anonymous reviewers for their valuable comments. This work was supported in part by National Key R&D Program of China (2019YFF0302902), NSFC (61902007), NSERC Canada (611370), and an Adobe gift. Kai Xu is supported by National Key R&D Program of China (2018AAA0102200).
+
+# References
+
+[1] P. Achlioptas, O. Diamanti, I. Mitliagkas, and L. Guibas. Learning representations and generative models for 3d point clouds. arXiv preprint arXiv:1707.02392, 2018. 1, 2, 3, 5, 6
+[2] B. Allen, B. Curless, and Z. Popovic. The space of human body shapes: Reconstruction and parameterization from range scans. ACM Trans. Graph., 22(3), 2003. 2
+[3] M. Arjovsky, S. Chintala, and L. Bottou. Wasserstein generative adversarial networks. In D. Precup and Y. W. Teh, editors, Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 214-223, International Convention Centre, Sydney, Australia, 06-11 Aug 2017. PMLR. 5
+[4] A. Arsalan Soltani, H. Huang, J. Wu, T. D. Kulkarni, and J. B. Tenenbaum. Synthesizing 3d shapes via modeling multi-view depth maps and silhouettes with deep generative networks. In Proc. CVPR, pages 1511-1519, 2017. 3
+[5] I. Biederman. Recognition-by-components: A theory of human image understanding. Psychological Review, 94(2):115-147, 1987. 1
+[6] V. Blanz and T. Vetter. A morphable model for the synthesis of 3D faces. In Proc. of SIGGRAPH, pages 187-194, 1999. 2
+[7] R. D. Borsley. Modern phrase structure grammar. 1996. 1
+[8] A. X. Chang, T. Funkhouser, L. J. Guibas, P. Hanrahan, Q. Huang, Z. Li, S. Savarese, M. Savva, S. Song, H. Su, J. Xiao, L. Yi, and F. Yu. ShapeNet: An Information-Rich 3D Model Repository. (arXiv:1512.03012 [cs.GR]), 2015. 2
+[9] D.-Y. Chen, X.-P. Tian, Y.-T. Shen, and M. Ouhyoung. On visual similarity based 3d model retrieval. Computer Graphics Forum, 22(3):223-232, 2003. 5
+[10] Z. Chen and H. Zhang. Learning implicit fields for generative shape modeling. Proceedings of IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 1, 2, 3, 4, 5, 6, 8
+[11] Z. Chen and H. Zhang. Learning implicit fields for generative shape modeling. In CVPR, 2019. 2, 5, 7
+[12] K. Cho, B. van Merrienboer, C. Gülçehre, F. Bougares, H. Schwenk, and Y. Bengio. Learning phrase representations using RNN encoder-decoder for statistical machine translation. CoRR, abs/1406.1078, 2014. 4
+[13] C. B. Choy, D. Xu, J. Gwak, K. Chen, and S. Savarese. 3dr2n2: A unified approach for single and multi-view 3d object reconstruction. In European conference on computer vision, pages 628-644. Springer, 2016. 3
+[14] A. Dubrovina, F. Xia, P. Achlioptas, M. Shalah, and L. Guibas. Composite shape modeling via latent space factorization. arXiv preprint arXiv:1803.10932, 2019. 3
+[15] H. Fan, H. Su, and L. Guibas. A point set generation network for 3D object reconstruction from a single image. arXiv preprint arXiv:1612.00603, 2016. 1, 2
+[16] H. Fan, H. Su, and L. J. Guibas. A point set generation network for 3d object reconstruction from a single image. In Proc. CVPR, pages 605-613, 2017. 3
+[17] N. Fish, M. Averkiou, O. Van Kaick, O. Sorkine-Hornung, D. Cohen-Or, and N. J. Mitra. Meta-representation of shape
+
+families. ACM Transactions on Graphics (TOG), 33(4):34, 2014. 2
+[18] L. Gao, J. Yang, T. Wu, Y.-J. Yuan, H. Fu, Y.-K. Lai, and H. Zhang. Sdm-net: Deep generative network for structured deformable mesh. arXiv preprint arXiv:1908.04520, 2019. 3
+[19] R. Girdhar, D. F. Fouhey, M. Rodriguez, and A. Gupta. Learning a predictable and generative vector representation for objects. In European Conference on Computer Vision, pages 484-499. Springer, 2016. 2, 3
+[20] T. Groueix, M. Fisher, V. G. Kim, B. C. Russell, and M. Aubry. A papier-mâché approach to learning 3d surface generation. In Proc. CVPR, pages 216-224, 2018. 1, 2, 5
+[21] I. Gulrajani, F. Ahmed, M. Arjovsky, V. Dumoulin, and A. Courville. Improved training of wasserstein gans. In Proceedings of the 31st International Conference on Neural Information Processing Systems, NIPS'17, pages 5769-5779, USA, 2017. Curran Associates Inc. 5
+[22] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016. 5
+[23] G. Hinton, A. Krizhevsky, N. Jaitly, T. Tieleman, and Y. Tang. Does the brain do inverse graphics? In *Brain and Cognitive Sciences Fall Colloquium*, 2012. 1
+[24] D. D. Hoffman and W. A. Richards. Parts of recognition. Cognition, pages 65-96, 1984. 1
+[25] H. Huang, E. Kalogerakis, and B. Marlin. Analysis and synthesis of 3d shape families via deep-learned generative models of surfaces. Computer Graphics Forum, 34(5), 2015. 2
+[26] E. Kalogerakis, S. Chaudhuri, D. Koller, and V. Koltun. A Probabilistic Model of Component-Based Shape Synthesis. ACM Transactions on Graphics, 31(4), 2012. 2
+[27] V. G. Kim, W. Li, N. J. Mitra, S. Chaudhuri, S. DiVerdi, and T. Funkhouser. Learning part-based templates from large collections of 3D shapes. ACM Transactions on Graphics (Proc. SIGGRAPH), 32(4), July 2013. 2
+[28] R. Klokov, J. Verbeek, and E. Boyer. Probabilistic reconstruction networks for 3d shape inference from a single image. In BMVC, 2019. 3
+[29] T. D. Kulkarni, W. F. Whitney, P. Kohli, and J. Tenenbaum. Deep convolutional inverse graphics network. In Advances in Neural Information Processing Systems (NIPS), 2015. 1
+[30] J. Li, C. Niu, and K. Xu. Learning part generation and assembly for structure-aware shape synthesis. arXiv preprint arXiv:1906.06693, 2019. 3
+[31] J. Li, K. Xu, S. Chaudhuri, E. Yumer, H. Zhang, and L. Guibas. Grass: Generative recursive autoencoders for shape structures. arXiv preprint arXiv:1705.02090, 2017. 1, 3, 8
+[32] X. Liu, Z. Han, Y.-S. Liu, and M. Zwicker. Point2sequence: Learning the shape representation of 3d point clouds with an attention-based sequence to sequence network. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 8778-8785, 2019. 3
+[33] Z. Lun, M. Gadelha, E. Kalogerakis, S. Maji, and R. Wang. 3d shape reconstruction from sketches via multi-view convo
+
+lutional networks. In 2017 International Conference on 3D Vision (3DV), pages 67-77. IEEE, 2017. 3
+[34] P. Mandikal, N. KL, and R. Venkatesh Babu. 3d-psrnet: Part segmented 3d point cloud reconstruction from a single image. In Proceedings of the European Conference on Computer Vision (ECCV), pages 0-0, 2018. 3
+[35] L. Mescheder, M. Oechsle, M. Niemeyer, S. Nowozin, and A. Geiger. Occupancy networks: Learning 3D reconstruction in function space. In Proc. CVPR, 2019. 1
+[36] K. Mo, P. Guerrero, L. Yi, H. Su, P. Wonka, N. Mitra, and L. J. Guibas. Structurenet: Hierarchical graph networks for 3d shape generation. ACM Trans. on Graph. (SIGGRAPH Asia), 2019. 1, 2, 3, 5, 6, 8
+[37] K. Mo, S. Zhu, A. X. Chang, L. Yi, S. Tripathi, L. J. Guibas, and H. Su. PartNet: A large-scale benchmark for fine-grained and hierarchical part-level 3D object understanding. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2, 5
+[38] C. Nash and C. K. Williams. The shape variational autoencoder: A deep generative model of part-segmented 3d objects. Computer Graphics Forum (SGP 2017), 36(5):1-12, 2017. 3
+[39] C. Niu, J. Li, and K. Xu. Im2struct: Recovering 3d shape structure from a single rgb image. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4521-4529. 3
+[40] M. Ovsjanikov, W. Li, L. Guibas, and N. J. Mitra. Exploration of continuous variability in collections of 3d shapes. ACM Trans. on Graph. (SIGGRAPH), 30(4):33:1-33:10, 2011. 2
+[41] J. J. Park, P. Florence, J. Straub, R. Newcombe, and S. Lovegrove. DeepSDF: Learning continuous signed distance functions for shape representation. In CVPR, 2019. 1, 2
+[42] S. R. Richter and S. Roth. Matryoshka networks: Predicting 3d geometry via nested shape layers. CoRR, abs/1804.10975, 2018. 3
+[43] G. Riegler, A. O. Ulusoy, and A. Geiger. Octnet: Learning deep 3d representations at high resolutions. In Proc. CVPR, volume 3, 2017. 2
+[44] N. Schor, O. Katzier, H. Zhang, and D. Cohen-Or. Learning to generate the "unseen" via part synthesis and composition. In IEEE International Conference on Computer Vision, 2019. 3
+[45] M. Schuster and K. K. Paliwal. Bidirectional recurrent neural networks. IEEE Transactions on Signal Processing, 45(11):2673-2681, 1997. 2, 4
+[46] A. A. Soltani, H. Huang, J. Wu, T. D. Kulkarni, and J. B. Tenenbaum. Synthesizing 3d shapes via modeling multiview depth maps and silhouettes with deep generative networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1511-1519, 2017. 2
+[47] I. Sutskever, O. Vinyals, and Q. V. Le. Sequence to sequence learning with neural networks. In Advances in neural information processing systems, pages 3104-3112, 2014. 2, 3
+[48] M. Tatarchenko, A. Dosovitskiy, and T. Brox. Octree generating networks: Efficient convolutional architectures for high-resolution 3d outputs. In IEEE International Conference on Computer Vision (ICCV), 2017. 3
+
+[49] S. Tulsiani, H. Su, L. J. Guibas, A. A. Efros, and J. Malik. Learning shape abstractions by assembling volumetric primitives. In Proc. CVPR, pages 2635-2643, 2017. 3
+[50] H. Wang, N. Schor, R. Hu, H. Huang, D. Cohen-Or, and H. Huang. Global-to-local generative model for 3d shapes. ACM Transactions on Graphics (Proc. SIGGRAPH ASIA), 37(6):214:1214:10, 2018. 3
+[51] N. Wang, Y. Zhang, Z. Li, Y. Fu, W. Liu, and Y.-G. Jiang. Pixel2mesh: Generating 3d mesh models from single rgb images. In ECCV, pages 52-67, 2018. 1, 2
+[52] P.-S. Wang, Y. Liu, Y.-X. Guo, C.-Y. Sun, and X. Tong. O-CNN: Octree-based Convolutional Neural Networks for 3D Shape Analysis. ACM Transactions on Graphics (SIGGRAPH), 36(4), 2017. 2
+[53] Y. Wang, K. Xu, J. Li, H. Zhang, A. Shamir, L. Liu, Z. Cheng, and Y. Xiong. Symmetry hierarchy of man-made objects. Computer Graphics Forum, 30(2):287-296, 2011. 1, 8
+[54] J. Wu, C. Zhang, T. Xue, B. Freeman, and J. Tenenbaum. Learning a probabilistic latent space of object shapes via 3d generative-adversarial modeling. In Advances in Neural Information Processing Systems, pages 82–90, 2016. 1, 2
+[55] Z. Wu, X. Wang, D. Lin, D. Lischinski, D. Cohen-Or, and H. Huang. Structure-aware generative network for 3d-shape modeling. arXiv preprint arXiv:1808.03981, 2018. 3
+[56] Q. Xu, W. Wang, D. Ceylan, R. Mech, and U. Neumann. DISN: deep implicit surface network for high-quality single-view 3d reconstruction. CoRR, abs/1905.10711, 2019. 1
+[57] G. Yang, X. Huang, Z. Hao, M.-Y. Liu, S. Belongie, and B. Hariharan. Pointflow: 3d point cloud generation with continuous normalizing flows. arXiv, 2019. 2
+[58] C. Zou, E. Yumer, J. Yang, D. Ceylan, and D. Hoiem. 3D-PRNN: Generating shape primitives with recurrent neural networks. 2017 IEEE International Conference on Computer Vision (ICCV), Oct 2017. 2, 3, 5, 7, 8
\ No newline at end of file
diff --git a/pqnetagenerativepartseq2seqnetworkfor3dshapes/images.zip b/pqnetagenerativepartseq2seqnetworkfor3dshapes/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..4b469cd7df3df5e50ad29a3fb750d22c8ec2b5fa
--- /dev/null
+++ b/pqnetagenerativepartseq2seqnetworkfor3dshapes/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:040083dc8d4a7d771af71552bcda599d20254c5122c4a0184befdcdd634a73b9
+size 458364
diff --git a/pqnetagenerativepartseq2seqnetworkfor3dshapes/layout.json b/pqnetagenerativepartseq2seqnetworkfor3dshapes/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..d3f83458ea4dd239f7157a40d4ded123e3fdb85f
--- /dev/null
+++ b/pqnetagenerativepartseq2seqnetworkfor3dshapes/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6a51f993fd7c91d7caf9a605a67730aaf71c9e09fd561dc3599a20fbddb50d6d
+size 384327
diff --git a/predictclusterunsupervisedskeletonbasedactionrecognition/c37d246e-eb23-4083-b663-3ea49a5376ac_content_list.json b/predictclusterunsupervisedskeletonbasedactionrecognition/c37d246e-eb23-4083-b663-3ea49a5376ac_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..2ab88ccb5078e047c4ea1fa9c4bcf063993aa705
--- /dev/null
+++ b/predictclusterunsupervisedskeletonbasedactionrecognition/c37d246e-eb23-4083-b663-3ea49a5376ac_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c55cad9a02493d8847049552b6322d2c6fbea37fbacf748fae5ac466b577c4c9
+size 66912
diff --git a/predictclusterunsupervisedskeletonbasedactionrecognition/c37d246e-eb23-4083-b663-3ea49a5376ac_model.json b/predictclusterunsupervisedskeletonbasedactionrecognition/c37d246e-eb23-4083-b663-3ea49a5376ac_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..f84a6ca9d1acf1c0bed4fb8d9ae18ca014dbcf66
--- /dev/null
+++ b/predictclusterunsupervisedskeletonbasedactionrecognition/c37d246e-eb23-4083-b663-3ea49a5376ac_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:afa1cff585a8e5dbcca68ded58742dcfe2b4c5949f6deca9dcbae2e51fa517b1
+size 78993
diff --git a/predictclusterunsupervisedskeletonbasedactionrecognition/c37d246e-eb23-4083-b663-3ea49a5376ac_origin.pdf b/predictclusterunsupervisedskeletonbasedactionrecognition/c37d246e-eb23-4083-b663-3ea49a5376ac_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..835911b6dab2d178dd1e43b2d104ef6de9a2c69b
--- /dev/null
+++ b/predictclusterunsupervisedskeletonbasedactionrecognition/c37d246e-eb23-4083-b663-3ea49a5376ac_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:40372bda69ee8be8390a92a2ebe49e2be7710d0d7e9ad96b691cb2c69fecb411
+size 1292147
diff --git a/predictclusterunsupervisedskeletonbasedactionrecognition/full.md b/predictclusterunsupervisedskeletonbasedactionrecognition/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..43581d5f6eab1836f5e7891a4575e7cb259a7bf6
--- /dev/null
+++ b/predictclusterunsupervisedskeletonbasedactionrecognition/full.md
@@ -0,0 +1,221 @@
+# PREDICT & CLUSTER: Unsupervised Skeleton Based Action Recognition
+
+Kun $\mathrm{Su}^1$ , Xiulong Liu $^1$ , and Eli Shlizerman $^{1,2}$
+
+$^{1}$ Department of Electrical & Computer Engineering, University of Washington, Seattle, USA $^{2}$ Department of Applied Mathematics, University of Washington, Seattle, USA
+
+
+Figure 1: PREDICT & CLUSTER: Unsupervised action recognition from body keypoints. See additional examples in the supplementary video.
+
+# Abstract
+
+We propose a novel system for unsupervised skeleton-based action recognition. Given inputs of body-keypoints sequences obtained during various movements, our system associates the sequences with actions. Our system is based on an encoder-decoder recurrent neural network, where the encoder learns a separable feature representation within its hidden states formed by training the model to perform the prediction task. We show that according to such unsupervised training, the decoder and the encoder self-organize their hidden states into a feature space which clusters similar movements into the same cluster and distinct movements into distant clusters. Current state-of-the-art methods for action recognition are strongly supervised, i.e., rely on providing labels for training. Unsupervised methods have been proposed, however, they require camera and depth inputs $(RGB + D)$ at each time step. In contrast, our system is fully unsupervised, does not require action labels at any stage and can operate with body keypoints input only. Furthermore, the method can perform on various dimensions of body-keypoints (2D or 3D) and can include additional cues describing movements. We evaluate our system on three action recognition benchmarks with different numbers of actions and examples. Our results outperform prior unsupervised skeleton-based methods, unsupervised $RGB + D$ based methods on cross-view tests and while being unsupervised
+
+have similar performance to supervised skeleton-based action recognition.
+
+# 1. Introduction
+
+Robust action recognition, especially human action recognition, is a fundamental capability in ubiquitous computer vision and artificial intelligence systems. While recent methods have shown remarkable success rates in recognizing basic actions in videos, current methods rely on strong supervision with large number of training examples accompanied with action labels. Collection and annotation of large scale datasets is implausible for various types of actions and applications. Furthermore, annotation is a challenging problem by itself since it is often up to the interpretation of the annotator to assign a meaningful label for a given sequence. This is particularly the case in situations where it is unclear what is the ground truth label, e.g., annotation of animal movements. Indeed, annotations challenges are common in different contextual information sources of movement, such as video (RGB), depth (+D) and keypoints tracked over time. On the one hand, keypoints include much less information compared to RGB+D data and can be challenging to work with. On the other hand, however, focusing on keypoints can often isolate the actions and provide more robust unique features for them. For human action recognition, time-series of body joints (skele
+
+ton) tracked over time are indeed known as effective descriptors of actions. Here we focus on 3D skeleton time-sequences and propose an unsupervised system to learn features and assign actions to classes according to them. We call our system PREDICT & CLUSTER (P&C) since it is based on training an encoder-decoder type network to simultaneously predict and cluster skeleton sequences such that the network learns an effective hidden feature representation of the actions. Indeed, an intuitive replacement of a classification supervised task by a non-classification unsupervised task is to attempt to continue (predict) or reproduce (re-generate) the given sequence such that it leads the hidden states to capture key features of the actions. In the encoder-decoder architecture, the prediction task is typically implemented as follows: given an action sequence as the encoder input, the decoder continues or generates the encoder input sequence. Since inputs are sequences, both the decoder and the encoder are recurrent neural networks (RNN) containing cells with hidden variables for each time sample in a sequence. The final hidden state of the encoder is typically being utilized to represent the action feature. While the encoder contains the final action feature, since the gradient during training flows back from the decoder to the encoder, it turns out that the decoder training strategies significantly determine the effectiveness of the representation. Specifically, there are two types of decoder training strategies proposed for such prediction/re-generation task [26]. The first strategy is a conditional strategy, where the output of the previous time-step of the decoder is used as the input to the current time-step. With such strategy, the output of the decoder is expected to be continuous. In contrast, the unconditional strategy assigns a zero input into each time-step of the decoder. Previous work showed that unconditional training of the decoder is expected to have better prediction performance since it effectively weakens the decoder and thus forces the encoder to learn a more informative representation.
+
+In our system, we extend such strategies to enhance the encoder representation. This results in enhanced clustering and organization of actions in the feature space. In particular, we propose two decoder training strategies, Fixed Weights and Fixed States to further penalize the decoder. The implementation of these strategies guides the encoder to further learn the feature representation of the sequences that it processes. In fact, in both strategies, the decoder is a 'weak decoder', i.e., the decoder is effectively not being optimized and serves the role of propagating the gradient to the encoder to further optimize its final state. Combining these two strategies together we find that the network can learn a robust representation and our results show that this strategy can achieve significantly enhanced performance than unsupervised approaches trained without them. We demonstrate the effectiveness and the generality of our
+
+proposed methodology by evaluating our system on three extensive skeleton-based and RGB+D action recognition datasets. Specifically, we show that our P&C unsupervised system achieves high accuracy performance and outperforms prior methods.
+
+# 2. Related Work
+
+The objective of action recognition is to assign a class label to a sequence of frames with context information on the action performed, Fig. 1. Numerous approaches have been introduced particularly for human movement action recognition. Such approaches use video frames (RGB), and/or depth $(\mathrm{RGB} + \mathrm{D})$ and/or skeleton data, i.e. tracking of body joints (keypoints). Performing exclusive skeleton-based action recognition is especially advantageous since requires much less data, it is relatively easy to acquire and therefore has the potential to be performed in real-time. Furthermore, skeleton data can be used to understand the exclusive features of the actions in contrast to videos and depth that include unrelated features such as background. Indeed, in recent years, various supervised and unsupervised approaches have been introduced for human skeleton-based action recognition. Most of the skeleton-based approaches have been supervised where an annotated set of actions and labels should be provided for training. In an unsupervised setup, the problem of action recognition is much more challenging. Only a few unsupervised skeleton-based approaches have been proposed and several unsupervised approaches have been developed to use more information such as video frames and depth, i.e., unsupervised $\mathrm{RGB} + \mathrm{D}$ . We review these prior approaches below and compare our results with them.
+
+For supervised skeleton-based action recognition, prior to deep learning methods, classical approaches were proposed to map the actions from Lie group to its Lie algebra and to perform classification using a combination of dynamic time warping, Fourier temporal pyramid representation and linear SVM (e.g. LARP [28]). Deep learning approaches have been developed to classify skeleton data as well, in particular, models based on RNN designed to work with sequences. For example, Du et al. [3] used hierarchical RNN (HBRNN-L) for action classification and Shahroudy et al. [21] proposed the Part-aware LSTM (P-LSTM) as the baseline for large scale skeleton action recognition with NTU RGB+D dataset. Since skeleton data is noisy, largely due to variance in camera views, prior works proposed a view-adaptive RNN (VA-RNN) which learns a transformation from original skeleton data to a general pose [35]. CNN based approaches for supervised skeleton based recognition have been proposed as well. Such approaches require a representation of body joints that can be processed by CNN. Spatio-temporal skeleton sequence can be represented as a matrix in which each column vector rep
+
+
+Figure 2: PREDICT & CLUSTER system summary. A: System overview. B: Encoder-Decoder architecture.
+
+resents an instant in time and elements of the vector are the coordinates of the joints. Such a matrix can be then converted to an image on which CNN is trained for classification [2]. In addition, enhanced skeleton visualization methods have been developed in conjunction with CNN classification for view invariant human action recognition [13]. Recently, Graph Neural Networks (GNN) gained popularity in skeleton-based action recognition. The data structure in these networks is a graph which corresponds to the human skeleton, i.e., vertices correspond to joints and edges to bones. With the graph structure, the network learns representations constrained by the human skeleton anatomy. In the supervised action recognition setup, GNNs are implemented using Graph Convolutional Networks (GCN). In particular, Spatio-Temporal GCN was designed to learn both spatial and temporal patterns from skeleton data [33]. A recent extension of the approach showed that directed GCN with two streams can encode skeleton representation and adaptively learn the graph [22, 23]. Furthermore, Actional-Structural GCN which incorporates a prediction module was proposed to enhance action recognition [11].
+
+While recent supervised approaches show robust performance on action recognition, the unsupervised setup is advantageous since it does not require labeling of sequences and may not require re-training when additional actions not included in the initial training set are introduced. Unsupervised methods typically aim to obtain an effective feature representations by predicting future frames of input action sequences or by re-generating the sequences. Unsupervised approaches were mostly proposed for videos of actions or videos with additional information such as depth or optical flow. Specifically, Srivastava et al. [26] proposed a recurrent-based sequence to sequence (Seq2Seq) model as an autoencoder to learn the representation of a video. Such an approach is at the core of our method for body joints input data. However, as we show, the approach will not be able to achieve efficient performance without particular training strategies that we develop to weaken the decoder and strengthen the encoder. Subsequently, Luo et al. [14] developed a convolutional LSTM to use depth and optical
+
+flow information such that the network encodes depth input and uses the decoder to predict the optical flow of future frames. Furthermore, Li et al. [10] proposed to employ a generative adversarial network (GAN) with a camera-view discriminator to assist the encoder in learning better representations.
+
+As in unsupervised RGB+D approaches, skeleton-based approaches utilize the task of human motion prediction as the underlying task to learn action feature representation. For such a task, RNN-based Seq2Seq models [15] were shown to achieve improved accuracy in comparison to non-Seq2Seq RNN models such as ERD [5] and S-RNN [7]. GNN turned out to be effective network architecture as well, e.g., unsupervised GNN was shown to effectively learn the dynamics in real motion capture and sports tracking data [8]. Recently, networks incorporating GANs have achieved improved performance on this task by utilizing the predictor network being RNN Seq2Seq and the discriminator [6].
+
+Unsupervised approaches for skeleton-based action recognition are scarce since obtaining effective feature representations from coordinate positions of body joints is challenging. Indeed, prior non-deep work have shown that representations play a significant role in modeling and predicting 3D human skeleton movements [34, 18, 19, 1]. Recently, deep approaches have been proposed for human motion prediction. In particular, Zheng et al. [36] (LongT GAN) proposed a GAN encoder-decoder such that the decoder attempts to re-generate the input sequence and the discriminator is used to discriminate whether the re-generation is accurate. The feature representation used for action recognition is taken from the final state of the encoder hidden representation. During training, masked ground truth input is provided to the decoder. The method was tested on motion-capture databases, e.g., CMU Mocap, HDM05[17] and Berkeley MHAD[18]. Such datasets were captured by physical sensors (markers) and thus are much cleaner than marker-less data collected by depth cameras and do not test for multi-view variance which significantly affects action recognition performance. Our baseline network architecture is similar to the structure of LongT GAN since we use
+
+
+Figure 3: Pre-processing of body keypoints sequences according to view-invariant transformation.
+
+an encoder and decoder and we also use the final state of the encoder as the feature representation of the action sequences. However, as we show, it is required to develop extended training strategies for the system to be applicable to larger scale multi-view and multi-subject datasets. Specifically, instead of using the masked ground truth as an input into the decoder, we propose methods to improve learning of the encoder and to weaken the decoder.
+
+# 3. Methods
+
+Pre-processing of body keypoints: Body keypoints data is a sequence $X_{T}^{V}$ of $T$ frames captured from a particular view, where each frame represents $N = 3\mathrm{D}$ coordinates of $J$ joint keypoints
+
+$$
+X _ {T} ^ {V} = \left\{x _ {1}, x _ {2}, \dots , x _ {T} \right\}, x _ {t} \in \mathbf {R} ^ {J \times N}.
+$$
+
+Action sequences are captured from different views by depth cameras, such as Microsoft Kinect. 3D human joint positions are extracted from a single depth image by a real-time human skeleton tracking framework [24]. We align the action sequences by implementing a view-invariant transformation which transforms keypoints coordinates from original coordinate system into a view-invariant coordinate system $X^V \rightarrow X$ . The transformed skeleton joint coordinates are given by
+
+$$
+x _ {t} ^ {j} = R ^ {- 1} (x _ {t} ^ {j} - d _ {R}), \forall j \in J, \forall t \in T,
+$$
+
+where $x_{t}^{j}\in \mathbf{R}^{3\times 1}$ are the coordinates of the $j$ -th joint of the $t$ -th frame, $R$ is the rotation matrix and $d_{R}$ is the origin of rotation. These are computed according to
+
+$$
+R = \left[ \frac {v _ {1}}{\| v _ {1} \|} \left| \frac {\hat {v} _ {2}}{\| \hat {v} _ {2} \|} \right| \frac {v _ {1} \times \hat {v} _ {2}}{\| v _ {1} \times \hat {v} _ {2} \|} \right], d _ {R} = x _ {t = 0} ^ {\mathrm {r o o t}},
+$$
+
+where $v_{1} = x_{t=0}^{\mathrm{spine}} - x_{t=0}^{\mathrm{root}}$ is the vector perpendicular to the ground, $v_{2} = x_{t=0}^{\mathrm{hip left}} - x_{t=0}^{\mathrm{hip right}}$ is the difference vector between left and right hips joints in the initial frame of each sequence and $\hat{v}_{2} = \frac{v_{2} - \mathrm{Proj}_{v_{1}}(v_{2})}{\|v_{2} - \mathrm{Proj}_{v_{1}}(v_{2})\|}$ . $\mathrm{Proj}_{v_1}(v_2)$ and $v_{1}\times \hat{v}_{2}$
+
+
+Figure 4: Encoder states trajectories visualized by projection to 3 PCA space. Each color represents one type of action (blue: donning, red: sit down, green: carry, black: stand up). The cross symbol denotes the final state. Left: before training; Right: after training.
+
+denote the vector projection of $v_{2}$ onto $v_{1}$ and the cross product of $v_{1}$ and $\hat{v}_{2}$ , respectively. $x_{t=0}^{\mathrm{Root}}$ is the coordinate of the root joint in the initial frame [9] (see Fig. 3). Since actions can be of different lengths we down-sample each action sequence to be of at most of a fixed length $T_{\max}$ and pad with zeros if the sequence length is smaller than that.
+
+Self-organization of hidden states clustering: A key property that we utilize in our system is the recent observation that propagation of input sequences through RNN self-organizes them into clusters within the hidden states of the network, i.e., clusters represent features in an embedding of the hidden states [4]. Such strategy is a promising unsupervised method for multi-dimensional sequence clustering such as body keypoints sequences [27]. As we show, self-organization is inherent to any RNN architecture and even holds for random RNN which are initialized with random weights and kept fixed, i.e., no training is performed. Indeed, when we input sequences of body keypoints of different actions into random RNN, the features in the hidden state space turn out to be effective filters. While such strategy is promising, the recognition accuracy outcome appears to be non-optimal (Table 1 P&C Rand). We therefore implement an encoder-decoder system, which we call PRE-DICT & CLUSTER (P&C), where the encoder propagates input sequences and passes the last hidden state to the decoder. The decoder is used to regenerate the encoder input sequences. Furthermore, we utilize the random network setup (which does not require training) to choose the optimal hyper-parameters for the network to be trained. We describe the components of P&C below.
+
+Motion prediction: At the core of our unsupervised method is an encoder-decoder RNN (Seq2Seq). Such network models were shown to be effective in prediction of future evolution of multi-dimensional time-series of features including skeleton temporal data of various actions [15, 6]. In these applications the typical flow in the network is unidirectional. The encoder processes an initial sequence of
+
+activity and passes the last state to the decoder which in turn, based on this state generates the evolution forward. We extend such network structure for our method (see system overview in Fig. 2).
+
+We propose a bi-directional flow such that the network can capture better long-term dependencies in the action sequences. Specifically, the encoder is a multi-layered bi-directional Gated Recurrent Unit (GRU) which input is a whole sequence of body keypoints corresponding to an action. We denote the forward and backward directions hidden states of the last layer of encoder at time $t$ as $\overrightarrow{E_t}$ and $\overleftarrow{E_t}$ respectively, and the final state of the encoder as their concatenation $E_{T} = \{\overrightarrow{E_{T}},\overleftarrow{E_{T}}\}$ . The decoder is a unidirectional GRU with hidden states at time $t$ denoted as $D_{t}$ . The final state of the encoder is fed into the decoder as its initial state, i.e., $D_0 = E_T$ . In such a setup, the decoder generates a sequence based on $E_{T}$ initialization. In a typical prediction task, the generated sequence will be compared with forward evolution of the same sequence (prediction loss). In our system, since our goal is to perform action recognition, the decoder is required to re-generate the whole input sequence (re-generation loss). Specifically, for the decoder outputs $\hat{X} = \{\hat{x}_1,\hat{x}_2,\dots ,\hat{x}_T\}$ the re-generation loss function is the error between $X$ and $\hat{X}$ . In particular, we use mean square error (MSE) $L = \frac{1}{T}\sum_{t = 1}^{T}(x_{t} - \hat{x}_{t})^{2}$ or mean absolute error (MAE) $L = \frac{1}{T}\sum_{t = 1}^{T}|x_{t} - \hat{x}_{t}|$ as plausible losses.
+
+Hyper-parameter search: As in any deep learning system, hyper-parameters significantly impact network performance and require tuning for optimal regime. We utilize the self-organization feature of random initialized RNN to propagate the sequences through the network and use network performance prior to training as an optimization for hyper-parameter tuning. Specifically, we evaluate the capacity of the encoder by propagating the skeleton sequence through the encoder and evaluate the performance of recognition on the final encoder state. We observe that this efficient hyper-parameter search significantly reduces total training time when an optimal network amenable for training is being selected.
+
+Training: With optimal hyper-parameter encoder being set, training is performed on the outputs of the decoder to predict (re-generate) the encoder's input action sequence. Training for prediction is typically performed according to one of the two approaches: (i) unconditional training in which zeros are being fed into the decoder at each time step or (ii) conditional in which an initial input is fed into the first time-step of the decoder and subsequent time-steps use the predicted output of the previous time step as their input [26]. Based on these training strategies, we propose two decoder configurations (i) Fixed Weights decoder (FW) or (ii) Fixed States decoder (FS) to weaken the decoder, i.e. to force it to perform the re-generation based upon the infor
+
+
+Figure 5: Feature-level autoencoder and KNN Classifier
+
+mation provided by the hidden representation of the encoder and thus improve the encoder's clustering performance, see Fig. 4.
+
+1. Fixed Weights decoder (FW): The input into the decoder is unconditional in this configuration. The decoder is not expected to learn a useful information for prediction and it exclusively relies on the state passed by the encoder. The weights of the decoder can thereby be assigned as random and the decoder is used as a recurrent propagator of the sequences. In training for the re-generation loss such configuration is expected to force the encoder to learn the latent features and represent them with the final state passed to the decoder. This intuitive method turns out to be computationally efficient since only the encoder is being trained and our results indicate favorable performance in conjunction with KNN action classification.
+
+2. Fixed States decoder (FS): The external input into the decoder is conditional in this configuration (external input into each time-step is the output of the previous time-step), however the internal input, typically the hidden state from previous step, is replaced by the final state of the encoder $E_{T}$ . Namely, in RNN cell
+
+$$
+h _ {t} = \sigma \left(W _ {x} x _ {t} + W _ {h} g _ {t} + b _ {h}\right), g _ {t} = h _ {t - 1} \rightarrow E _ {T},
+$$
+
+$$
+y _ {t} = \sigma (W _ {y} h _ {t} + b _ {y}),
+$$
+
+$$
+x _ {t + 1} = y _ {t},
+$$
+
+with $x_{t}$ the external input, $y_{t}$ the output and $h_{t}$ the hidden state at time-step $t$ , $h_{t-1}$ terms are replaced by $E_{T}$ . In addition, we also add residual connection between external input and output, which has been shown useful in human motion prediction [15]. The final output and next input will be $\hat{y}_{t} = y_{t} + x_{t}$ and $\hat{x}_{t+1} = \hat{y}_{t}$ , respectively. The configuration forces the network to rely on $E_{T}$ , instead of the hidden state at previous time-step and eliminates vanishing of the gradient since during back-propagation at each time-step there is a defined gradient back to the final encoder state.
+
+Feature level auto-encoder: After training the prediction network we extract the final encoder state $E_{T}$ as the feature vector associated with each action sequence. Since the feature vector is high-dimensional, we use a feature-level
+
+auto-encoder that learns the core low dimensional components of the high-dimensional feature so it can be utilized for classification (Fig. 5). Specifically, we implement the auto-encoder, denoted as $f$ to be of an encoder-decoder architecture with parameters $\theta$ such that
+
+$$
+\hat {E} _ {T} = f _ {\theta} (E _ {T}) \approx E _ {T}.
+$$
+
+The encoder and the decoder are multi-layer FC networks with non-linear tanh activation and we implement the following loss $l_{aec} = \left|E_T - \hat{E}_T\right|$ .
+
+K-nearest neighbors classifier: For evaluation of our method on action recognition task we use a K-nearest neighbors (KNN) classifier on the middle layer of the autoencoder feature vector. Specifically, we apply the KNN classifier (with $k = 1$ ) on the features of the trained network on all sequences in the training set to assign classes. We then use cosine similarity as the distance metric to perform recognition, i.e., place each tested sequence in a class. Notably, KNN classifier does not require to learn extra weights for action placement.
+
+# 4. Experimental Results and Datasets
+
+Implementation details: To train the network, all body keypoints sequences are pre-processed according to the view-invariant transformation and down-sampled to have at most 50 frames (Fig. 3). The coordinates are also normalized to the range of $[-1, 1]$ . Using the hyper-parameter search, employing random RNN propagation discussed above, we set the following architecture: Encoder: 3-Layer Bi-GRU with $N = 1024$ units in each layer. Decoder: 1-Layer Uni-GRU with $N = 2048$ units such that it is compatible with the dimensions of the encoder final state $E_T$ . All GRUs are initialized with a random uniform distribution. Feature-level auto-encoder: 6 FC Layers with the following dimensions: input feature vector $(\dim = 2048) \rightarrow \mathrm{FC}(1024) \rightarrow \mathrm{FC}(512) \rightarrow \mathrm{FC}(256) \rightarrow \mathrm{FC}(512) \rightarrow \mathrm{FC}(1024) \rightarrow \mathrm{FC}(2048)$ . All FCs use tanh activation except the last layer which is linear. The middle layer of the auto-encoder outputs a vector feature of 256 elements which is used as the final feature. We use Adam optimizer and learning rate starting from $10^{-4}$ and 0.95 decay rate at every 1000 iterations. The gradients are clipped if the norm is greater than 25 to avoid gradient explosion. It takes 0.7sec per training iteration and 0.1sec to forward propagate with a batch size of 64 on one Nvidia Titan X GPU. Please see additional details of architectural choices in the supplementary material. Datasets: We use three different datasets for training, evaluation and comparison of our P&C system with related approaches. The three data-sets include various number of classes, types of actions, body keypoints captured from different views and on different subjects. In these datasets, the body keypoints are captured by depth cameras and
+
+also include additional data, e.g., videos (RGB) and depth (+D). Various types of action recognition approaches have been applied to these datasets, e.g., supervised skeleton approaches and unsupervised RGB+D approaches. We list these types of approaches and their performance on the tests in the datasets in Table 1. Notably, as far as we know, our work is the first fully unsupervised skeleton based approach applied on these extensive action recognition tests.
+
+The datasets that we have applied our P&C system to are (i) NW-UCLA, (ii) UWA3D, and (iii) NTU RGB+D. The datasets include 3D body keypoints of 10, 30, 60 action classes respectively. We briefly describe them below. North-Western UCLA (NW-UCLA) dataset [30] is captured by Kinect v1 and contains 1494 videos of 10 actions. These actions are performed by 10 subjects repeated 1 to 6 times. There are three views of each action and for each subject 20 joints are being recorded. We follow [13] and [30] to use the first two views (V1,V2) for training and last views (V3) to test cross view action recognition. UWA3D Multiview Activity II (UWA3D) dataset [20] contains 30 human actions performed 4 times by 10 subjects. 15 joints are being recorded and each action is observed from four views: frontal, left and right sides, and top. The dataset is challenging due to many views and the resulting self-occlusions from considering only parts of them. In addition, there is high similarity among actions, e.g., the two actions "drinking" and "phone answering" have many keypoints being near identical & idle and in the dynamic keypoints there are subtle differences. NTU RGB+D dataset [21] is a large scale dataset for 3D human activity analysis. This dataset consists of 56880 video samples, captured from 40 different human subjects, using Microsoft Kinect v2. NTU RGB+D(60) contains 60 action classes. We use the 3D skeleton data for our experiments such that each time-sample contains 25 joints. We test our P&C method on both cross-view and cross-subject protocols.
+
+# 5. Evaluation and Comparison
+
+Evaluation: In all experiments, we use the K-nearest neighbors classifier with $k = 1$ to compute the action recognition accuracy and evaluate the performance of our P&C method. We test different variants of P&C architectures (combinations of components described in Section 3) and report a subset of these in the paper: baseline random initialized encoder with no training (P&C-Rand), full system with FS decoder and feature-level auto-encoder (P&C-FS-AEC) and full system with FW decoder and feature-level auto-encoder (P&C-FW-AEC). We report the rest of the combinations and their results in the Supplementary material.
+
+Fig. 6 shows the optimization of the regeneration loss (red) and the resulting accuracy (blue) during training for
+
+
+Figure 6: Training curves (accuracy:blue; loss:red) for three of the datasets, left to right: NW-UCLA (FW v.s. no FW), UWA3D (FS v.s. no FS), NTU-RGB+D Cross-View (FS v.s. no FS).
+
+
+
+
+
+| Method | NW-UCLA (%) |
| Supervised Skeleton |
| HOPC[20] | 74.2 |
| Actionlet Ens [29] | 76.0 |
| HBRNN-L[3] | 78.5 |
| VA-RNN-Aug[35] | 90.7 |
| AGC-LSTM[25] | 93.3 |
| Unsupervised RGB+D |
| Luo et al.[14] | 50.7 |
| Li et al.[10] | 62.5 |
| Unsupervised Skeleton |
| P&C Rand (Our) | 72.0 |
| LongT GAN [36] | 74.3 |
| P&C FS-AEC (Our) | 83.8 |
| P&C FW-AEC (Our) | 84.9 |
+
+| Method | UWA3D |
| V3 (%) | V4 (%) |
| Supervised Skeleton |
| HOJ3D[32] | 15.3 | 28.2 |
| 2-layer P-LSTM[31] | 27.6 | 24.3 |
| IndRNN (6 layers)[31] | 30.7 | 47.2 |
| IndRNN (4 layers)[31] | 34.3 | 54.8 |
| ST-GCN[31] | 36.4 | 26.2 |
| Actionlet Ens[29] | 45.0 | 40.4 |
| LARP[28] | 49.4 | 42.8 |
| HOPC[20] | 52.7 | 51.8 |
| VA-RNN-Aug[35] | 70.9 | 73.2 |
| Unsupervised Skeleton |
| P&C Rand (Our) | 48.5 | 51.5 |
| LongT GAN [36] | 53.4 | 59.9 |
| P&C FS-AEC (Our) | 59.5 | 63.1 |
| P&C FW-AEC (Our) | 59.9 | 63.1 |
+
+| Method | NTU RGB-D 60 |
| C-View (%) | C-Subject (%) |
| Supervised Skeleton |
| HOPC[20] | 52.8 | 50.1 |
| HBRNN[3] | 64.0 | 59.1 |
| 2L P-LSTM[21] | 70.3 | 62.9 |
| ST-LSTM[12] | 77.7 | 69.2 |
| VA-RNN-Aug[35] | 87.6 | 79.4 |
| Unsupervised RGB+D |
| Shuffle & learn[16] | 40.9 | 46.2 |
| Luo et al.[14] | 53.2 | 61.4 |
| Li et al.[10] | 63.9 | 68.1 |
| Unsupervised Skeleton |
| LongT GAN [36] | 48.1 | 39.1 |
| P&C Rand (Our) | 56.4 | 39.6 |
| P&C FS-AEC (Our) | 76.3 | 50.6 |
| P&C FW-AEC (Our) | 76.1 | 50.7 |
+
+Table 1: Comparison of action recognition performance of our P&C system with state-of-the-art approaches of Supervised Skeleton (blue) and Unsupervised RGB+D (purple); Unsupervised Skeleton (red)) types.
+
+
+Figure 7: Confusion matrices for testing P&C performance on the three datasets (from left to right): NW-UCLA (10 actions); UWA3D V4 (30 actions); NTU-RGBD Cross-View (60 actions).
+
+
+
+
+
+
+
+
+Figure 8: t-SNE visualization of learned features on NW-UCLA dataset.
+
+each dataset. We include plots of additional P&C configurations in the Supplementary material. The initial accuracy appears to be substantial and this is attributed to the hyper-parameter search being performed on random initialized networks prior to training that we describe in Section 3. Indeed, we find that using appropriate initialization, the encoder, without any training, effectively directs similar action sequences to similar final states. Training enhances this performance further in both P&C FW and P&C FS configurations. Over multiple training iterations both P&C FW and P&C FS achieve higher accuracy than no-FW and no-FS in all datasets. While the convergence of the loss curve indicates improvement of the accuracy, the value of the loss does not necessarily indicate a better accuracy as can be observed from loss and accuracy curves of training on UWA3D and NTU-RGB+D (Fig. 6 middle, right).
+
+We show the confusion matrices for the three considered datasets in Fig. 7. In NW-UCLA (with least classes) we show the elements of the $10 \times 10$ matrix. Our method achieves high-accuracy ( $>83\%$ ) on average and there are three actions (pick up with two hands, drop trash, sit down) for which it recognizes them with nearly $100\%$ accuracy. We also show in Fig. 8 a t-SNE visualization of the learned features for NW-UCLA test. Even in this 2D embedding it is clearly evident that the features for each class are well separated. As more action classes are considered, the recognition becomes a more difficult task and also depends on the amount of training data. For example, while NTU RGB+D has more classes than UWA3D, the recognition accuracy on NTU RGB+D is smoother and results with better performance since it has 40 times more data than UWA3D. Our results show that our method is compatible with varying data sizes and number of classes.
+
+Comparison: We compare the performance of our P&C method with prior related supervised and unsupervised methods applied to (left-to-right): NW-UCLA, UWA3D, NTU RGB+D datasets, see Table 1. In particular, we compare action recognition accuracy with approaches based on supervised skeleton data (blue), unsupervised RGB+D data
+
+(purple) and unsupervised skeleton data (red). For comparison with unsupervised skeleton methods, we implement and reproduce the LongTerm GAN model (LongT GAN) as introduced in [36] and list its performance.
+
+For NW-UCLA, P&C outperforms previous unsupervised methods (both RGB+D and skeleton based). Our method even outperforms the first three supervised methods listed in Table 1-left. UWA3D is considered a challenging test for many deep learning approaches since the number of sequences is small, while it includes a large number of classes (30). Indeed, action recognition performance of many supervised skeleton approaches is low ( $< 50\%$ ). For such datasets, it appears that the unsupervised approach could be more favorable, i.e., even P&C Rand reaches performance of $\approx 50\%$ . LongT GAN achieves slightly higher performance than P&C Rand, however, not as high as P&C FS/FW-AEC which perform with $\approx 60\%$ . Only a single supervised skeleton method, VA-RNN-Aug, is able to perform better than our unsupervised approach, see Table 1-middle. On the large scale NTU-RGB+D dataset, our method performs extremely well on the cross-view test. It outperforms prior unsupervised methods (both RGB+D and skeleton based) and on-par with ST-LSTM (second best supervised skeleton method), see Table 1-right. On the cross-subject test we obtain performance that is higher (including P&C Rand) than the prior unsupervised skeleton approach, however, our accuracy does not outperform unsupervised RGB+D approaches. We believe that the reason stems from skeleton based approaches not performing well in general on cross-subject tests since additional aspects such as subjects parameters, e.g., skeleton geometry and invariant normalization from subject to subject, need to be taken into account.
+
+In summary, for all three datasets, we used a single architecture and it was able to outperform the prior unsupervised skeleton method, LongT-GAN[36], most supervised skeleton methods and unsupervised RGB+D methods on cross view tests and some supervised skeleton and unsupervised RGB+D on large scale cross subject test.
+
+# 6. Conclusion
+
+We presented a novel unsupervised model for human skeleton-based action recognition. Our system reaches enhanced performance compared to prior approaches due to novel training strategies which weaken the decoder and strengthen the training of the encoder. As a result, the network learns more separable representations. Experimental results demonstrate that our unsupervised model can effectively learn distinctive action features on three benchmark datasets and outperform prior unsupervised methods.
+
+# References
+
+[1] Amor Ben Tanfous, Hassen Drina, and Boulbaba Ben Amor. Coding kendall's shape trajectories for 3d action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2840-2849, 2018. 3
+[2] Yong Du, Yun Fu, and Liang Wang. Skeleton based action recognition with convolutional neural network. In 2015 3rd IAPR Asian Conference on Pattern Recognition (ACPR), pages 579-583. IEEE, 2015. 3
+[3] Yong Du, Wei Wang, and Liang Wang. Hierarchical recurrent neural network for skeleton based action recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1110-1118, 2015. 2, 7
+[4] Matthew Farrell, Stefano Recanatesi, Guillaume Lajoie, and Eric Shea-Brown. Recurrent neural networks learn robust representations by dynamically balancing compression and expansion. 2019. 4
+[5] 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. 3
+[6] Liang-Yan Gui, Yu-Xiong Wang, Xiaodan Liang, and José MF Moura. Adversarial geometry-aware human motion prediction. In Proceedings of the European Conference on Computer Vision (ECCV), pages 786-803, 2018. 3, 4
+[7] Ashesh Jain, Amir R Zamir, Silvio Savarese, and Ashutosh Saxena. Structural-rnn: Deep learning on spatio-temporal graphs. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5308-5317, 2016. 3
+[8] Thomas Kipf, Ethan Fetaya, Kuan-Chieh Wang, Max Welling, and Richard Zemel. Neural relational inference for interacting systems. arXiv preprint arXiv:1802.04687, 2018. 3
+[9] Inwoong Lee, Doyoung Kim, Seoungyoon Kang, and Sanghoon Lee. Ensemble deep learning for skeleton-based action recognition using temporal sliding LSTM networks. In Proceedings of the IEEE International Conference on Computer Vision, pages 1012-1020, 2017. 4
+[10] Junnan Li, Yongkang Wong, Qi Zhao, and Mohan Kankanhalli. Unsupervised learning of view-invariant action representations. In Advances in Neural Information Processing Systems, pages 1254–1264, 2018. 3, 7
+[11] Maosen Li, Siheng Chen, Xu Chen, Ya Zhang, Yanfeng Wang, and Qi Tian. Actional-structural graph convolutional networks for skeleton-based action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3595–3603, 2019. 3
+[12] Jun Liu, Amir Shahroudy, Dong Xu, and Gang Wang. Spatio-temporal LSTM with trust gates for 3d human action recognition. In European Conference on Computer Vision, pages 816-833. Springer, 2016. 7
+[13] Mengyuan Liu, Hong Liu, and Chen Chen. Enhanced skeleton visualization for view invariant human action recognition. Pattern Recognition, 68:346-362, 2017. 3, 6
+[14] Zelun Luo, Boya Peng, De-An Huang, Alexandre Alahi, and Li Fei-Fei. Unsupervised learning of long-term motion dynamics for videos. In Proceedings of the IEEE Conference
+
+on Computer Vision and Pattern Recognition, pages 2203-2212, 2017. 3, 7
+[15] Julieta Martinez, Michael J Black, and Javier Romero. On human motion prediction using recurrent neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2891-2900, 2017. 3, 4, 5
+[16] Ishan Misra, C Lawrence Zitnick, and Martial Hebert. Shuffle and learn: unsupervised learning using temporal order verification. In European Conference on Computer Vision, pages 527-544. Springer, 2016. 7
+[17] M. Müller, T. Röder, M. Clausen, B. Eberhardt, B. Krüger, and A. Weber. Documentation mocap database hdm05. Technical Report CG-2007-2, Universität Bonn, June 2007. 3
+[18] Ferda Ofli, Rizwan Chaudhry, Gregorij Kurillo, René Vidal, and Ruzena Bajcsy. Berkeley mhad: A comprehensive multimodal human action database. In 2013 IEEE Workshop on Applications of Computer Vision (WACV), pages 53-60. IEEE, 2013. 3
+[19] Ferda Ofli, Rizwan Chaudhry, Gregorij Kurillo, René Vidal, and Ruzena Bajcsy. Sequence of the most informative joints (smij): A new representation for human skeletal action recognition. Journal of Visual Communication and Image Representation, 25(1):24-38, 2014. 3
+[20] Hossein Rahmani, Arif Mahmood, Du Q Huynh, and Ajmal Mian. Hopc: Histogram of oriented principal components of 3d pointclouds for action recognition. In European conference on computer vision, pages 742-757. Springer, 2014. 6, 7
+[21] Amir Shahroudy, Jun Liu, Tian-Tsong Ng, and Gang Wang. Ntu $\mathrm{rgb + }$ d: A large scale dataset for 3d human activity analysis. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1010-1019, 2016. 2, 6, 7
+[22] Lei Shi, Yifan Zhang, Jian Cheng, and Hanqing Lu. Skeleton-based action recognition with directed graph neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7912-7921, 2019. 3
+[23] Lei Shi, Yifan Zhang, Jian Cheng, and Hanqing Lu. Two-stream adaptive graph convolutional networks for skeleton-based action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 12026-12035, 2019. 3
+[24] Jamie Shotton, Andrew Fitzgibbon, Mat Cook, Toby Sharp, Mark Finocchio, Richard Moore, Alex Kipman, and Andrew Blake. Real-time human pose recognition in parts from single depth images. In CVPR 2011, pages 1297-1304. IEEE, 2011. 4
+[25] Chenyang Si, Wentao Chen, Wei Wang, Liang Wang, and Tieniu Tan. An attention enhanced graph convolutional LSTM network for skeleton-based action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1227-1236, 2019. 7
+[26] Nitish Srivastava, Elman Mansimov, and Ruslan Salakhudinov. Unsupervised learning of video representations using lstms. In International conference on machine learning, pages 843-852, 2015. 2, 3, 5
+
+[27] Kun Su and Eli Shlizerman. Clustering and recognition of spatiotemporal features through interpretable embedding of sequence to sequence recurrent neural networks. 4
+[28] Raviteja Vemulapalli, Felipe Arrate, and Rama Chellappa. Human action recognition by representing 3d skeletons as points in a lie group. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 588-595, 2014. 2, 7
+[29] Jiang Wang, Zicheng Liu, Ying Wu, and Junsong Yuan. Learning actionlet ensemble for 3d human action recognition. IEEE transactions on pattern analysis and machine intelligence, 36(5):914-927, 2013. 7
+[30] Jiang Wang, Xiaohan Nie, Yin Xia, Ying Wu, and Song-Chun Zhu. Cross-view action modeling, learning and recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2649-2656, 2014. 6
+[31] Lei Wang, Du Q Huynh, and Piotr Koniusz. A comparative review of recent kinect-based action recognition algorithms. arXiv preprint arXiv:1906.09955, 2019. 7
+[32] Lu Xia, Chia-Chih Chen, and Jake K Aggarwal. View invariant human action recognition using histograms of 3d joints. In 2012 IEEE Computer Society Conference on Computer Vision and Pattern Recognition Workshops, pages 20-27. IEEE, 2012. 7
+[33] Sijie Yan, Yuanjun Xiong, and Dahua Lin. Spatial temporal graph convolutional networks for skeleton-based action recognition. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018. 3
+[34] Mihai Zanfir, Marius Leordeanu, and Cristian Sminchisescu. The moving pose: An efficient 3d kinematics descriptor for low-latency action recognition and detection. In Proceedings of the IEEE international conference on computer vision, pages 2752-2759, 2013. 3
+[35] Pengfei Zhang, Cuiling Lan, Junliang Xing, Wenjun Zeng, Jianru Xue, and Nanning Zheng. View adaptive neural networks for high performance skeleton-based human action recognition. IEEE transactions on pattern analysis and machine intelligence, 2019. 2, 7
+[36] Nenggan Zheng, Jun Wen, Risheng Liu, Liangqu Long, Jianhua Dai, and Zhefeng Gong. Unsupervised representation learning with long-term dynamics for skeleton based action recognition. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018. 3, 7, 8
\ No newline at end of file
diff --git a/predictclusterunsupervisedskeletonbasedactionrecognition/images.zip b/predictclusterunsupervisedskeletonbasedactionrecognition/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..7db4d972663393526c974fdeee550d5288673b0e
--- /dev/null
+++ b/predictclusterunsupervisedskeletonbasedactionrecognition/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5788cc77dbced7145ad31af5ed7d4d23006e3ca0af9ac767bfb3eadeae3b739f
+size 460435
diff --git a/predictclusterunsupervisedskeletonbasedactionrecognition/layout.json b/predictclusterunsupervisedskeletonbasedactionrecognition/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..5350a2c196983958c3013601cc6701c1971ad2f6
--- /dev/null
+++ b/predictclusterunsupervisedskeletonbasedactionrecognition/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6db5b99fb8ee029d93a1b68289d9631575187b2fbea4898e520d190ee3793dcc
+size 290412
diff --git a/psganposeandexpressionrobustspatialawareganforcustomizablemakeuptransfer/c37bcc8f-dff7-406e-9f41-665421627d63_content_list.json b/psganposeandexpressionrobustspatialawareganforcustomizablemakeuptransfer/c37bcc8f-dff7-406e-9f41-665421627d63_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..d5b86bc6c99fb9ae53da9d7d5916cf1fdbad9a37
--- /dev/null
+++ b/psganposeandexpressionrobustspatialawareganforcustomizablemakeuptransfer/c37bcc8f-dff7-406e-9f41-665421627d63_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:07f34af8699df49983ee218185d5c165b7ffd5732b33a16e68686ad05205d9f6
+size 71920
diff --git a/psganposeandexpressionrobustspatialawareganforcustomizablemakeuptransfer/c37bcc8f-dff7-406e-9f41-665421627d63_model.json b/psganposeandexpressionrobustspatialawareganforcustomizablemakeuptransfer/c37bcc8f-dff7-406e-9f41-665421627d63_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..4fb11a0b37f6d6ca61b730253882d182b504ada4
--- /dev/null
+++ b/psganposeandexpressionrobustspatialawareganforcustomizablemakeuptransfer/c37bcc8f-dff7-406e-9f41-665421627d63_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:992acc80a246edce3f73eaebba9c3b969111d0a7e9b55b696febd3d4007e9bf8
+size 89479
diff --git a/psganposeandexpressionrobustspatialawareganforcustomizablemakeuptransfer/c37bcc8f-dff7-406e-9f41-665421627d63_origin.pdf b/psganposeandexpressionrobustspatialawareganforcustomizablemakeuptransfer/c37bcc8f-dff7-406e-9f41-665421627d63_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..42dfc587a3f0199ea0ed545fca22da6072e8f87c
--- /dev/null
+++ b/psganposeandexpressionrobustspatialawareganforcustomizablemakeuptransfer/c37bcc8f-dff7-406e-9f41-665421627d63_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6b7ac149ec12050e29a5978242b2fcfd8442976c429b4d993e890124a17ecd86
+size 1495292
diff --git a/psganposeandexpressionrobustspatialawareganforcustomizablemakeuptransfer/full.md b/psganposeandexpressionrobustspatialawareganforcustomizablemakeuptransfer/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..9643ef17e345d0598d9fe06b915ff86ae94b7535
--- /dev/null
+++ b/psganposeandexpressionrobustspatialawareganforcustomizablemakeuptransfer/full.md
@@ -0,0 +1,324 @@
+# PSGAN: Pose and Expression Robust Spatial-Aware GAN for Customizable Makeup Transfer
+
+Wentao Jiang $^{1}$ Si Liu $^{1*}$ Chen Gao $^{2,4}$ Jie Cao $^{3,4}$ Ran He $^{3,4}$ Jiashi Feng $^{5}$ Shuicheng Yan $^{6}$
+
+1 School of Computer Science and Engineering, Beihang University
+
+$^{2}$ Institute of Information Engineering, Chinese Academy of Sciences
+
+$^{3}$ Institute of Automation, Chinese Academy of Sciences
+
+4 University of Chinese Academy of Sciences 5 National University of Singapore 6 YITU Tech
+
+{jiangwentao, liusi}@buaa.edu.cn, gaochen@ie.ac.cn
+
+
+Partial makeup transefer (lip, skin, eye)
+Large poses and expressions differences
+Figure 1. Our model allows users to control both the shade of makeup and facial parts to transfer. The first row on the left shows the results of only transferring partial makeup style from the reference. The second row shows the results with controllable shades. Moreover, our method can perform makeup transfer between images that have different poses and expressions, as shown on the right part of the figure. Best viewed in color.
+
+# Abstract
+
+In this paper, we address the makeup transfer task, which aims to transfer the makeup from a reference image to a source image. Existing methods have achieved promising progress in constrained scenarios, but transferring between images with large pose and expression differences is still challenging. Besides, they cannot realize customizable transfer that allows a controllable shade of makeup or specifies the part to transfer, which limits their applications. To address these issues, we propose Pose and expression robust Spatial-aware GAN (PSGAN). It first utilizes Makeup Distill Network to disentangle the makeup of the reference image as two spatial-aware makeup matrices. Then, Attentive Makeup Morphing module is introduced to specify how the makeup of a pixel in the source image is morphed from the reference image. With the makeup matrices and the source image, Makeup Apply Network is used to perform makeup transfer. Our PSGAN not only achieves state-of-the-art results even when large pose and expres
+
+sion differences exist but also is able to perform partial and shade-controllable makeup transfer. Both the code and a newly collected dataset containing facial images with various poses and expressions will be available at https://github.com/wtjiang98/PSGAN.
+
+# 1. Introduction
+
+We explore the makeup transfer task, which aims to transfer the makeup from an arbitrary reference image to a source image. It is widely demanded in many popular portrait beautifying applications. Most existing makeup transfer methods [18, 3, 2, 11] are based on Generative Adversarial Networks (GANs) [10]. They generally use face parsing maps and/or facial landmarks as a preprocessing step to facilitate the subsequent processing and adopt the framework of CycleGAN [33] which is trained on unpaired sets of images, i.e., non-makeup images and with-makeup images.
+
+However, existing methods mainly have two limitations. Firstly, they only work well on frontal facial images with neutral expression since they lack a specially designed module to handle the misalignment of images and overfit on
+
+frontal images. While in practical applications, an ideal makeup transfer method should be pose and expression robust, which is able to generate high-quality results even if source images and reference images show different poses and expressions. Secondly, the existing methods cannot perform customizable makeup transfer since they encode makeup styles into low dimension vectors which lose the spatial information. An ideal makeup transfer method need to realize partial and shade-controllable makeup transfer. Partial transfer indicates transferring the makeup of specified facial regions separately, e.g., eye shadows or lipstick. Shade-controllable transfer means the shade of the transferred makeup can be controllable from light to heavy.
+
+To solve these challenges, we propose a novel Pose and expression robust Spatial-aware GAN (PSGAN), which consists of a Makeup Distill Network (MDNet), an Attentive Makeup Morphing (AMM) module and a Makeup Apply Network (MANet). Different from the previous approaches that simply input two images into the network or recombine makeup latent code and identity latent code to perform transfer, we design PSGAN to transfer makeup through scaling and shifting the feature map for only once, inspired by style transfer methods [14, 5]. Comparing with general style transfer, makeup transfer is more difficult since the human perception system is very sensitive to the artifacts on faces. Also, makeup styles contain subtle details in each facial region instead of general styles. To this end, we propose MDNet to disentangle the makeup from the reference image into two makeup matrices, i.e., the coefficient matrix $\gamma$ and bias matrix $\beta$ which both have the same spatial dimensions with visual features. These matrices embed the makeup information and serve as the shifting and scaling parameters. Then, $\gamma$ and $\beta$ are morphed and adapted to the source image by the AMM module which calculates an attentive matrix $A$ to produce adapted makeup matrices $\gamma'$ and $\beta'$ . The AMM module utilizes the face parsing maps and facial landmarks to build the pixel-wise correspondences between source images and reference images, which solves the misalignment of faces. Finally, the proposed MANet conducts makeup transfer through applying pixel-wise multiplication and addition on visual features using $\gamma'$ and $\beta'$ .
+
+Since the makeup style has been distilled in a spatial-aware way, partial transfer can be realized by applying masks pixel-wisely according to the face parsing results. For example, in the top left panel of Figure 1, the lip gloss, skin and eye shadow can be individually transferred from the reference image to the source image. Shade-controllable transfer can be realized through multiplying the weights of makeup matrices by coefficient within [0, 1]. As shown in the bottom left panel of Figure 1, where the makeup shade is increasingly heavier. Moreover, the novel AMM module effectively assists the generating of pose and
+
+expression robust results, as shown in the right part of Figure 1. We also directly apply transfer to every frame of facial videos and still get nice and consistent results. With the three novel components, PSGAN satisfies the requirements we pose for an ideal customizable makeup transfer method. We make the following contributions in this paper:
+
+- To our best knowledge, PSGAN is the first to simultaneously realize partial, shade-controllable, and pose/expression robust makeup transfer, which facilitates the applications in the real-world environment.
+- A MDNet is introduced to disentangle the makeup from the reference image as two makeup matrices. The spatial-aware makeup matrices enable the flexible partial and shade-controllable transfer.
+- An AMM module that adaptively morphs the makeup matrices to source images is proposed, which enables pose and expression robust transfer.
+- A new Makeup-Wild dataset containing images with diverse poses and expressions is collected for better evaluations.
+
+# 2. Related Work
+
+# 2.1. Makeup Transfer
+
+Makeup transfer has been studied a lot these years [27, 12, 17, 21, 20, 1]. BeautyGAN [18] first proposed a GAN framework with dual input and output for makeup transfer and removal simultaneously. They also introduced a makeup loss that matches the color histogram in different parts of faces for instance-level makeup transfer. BeautyGlow [3] proposed a similar idea on the Glow framework and decomposed makeup component and non-makeup component. PairedCycleGAN [2] employed an additional discriminator to guide makeup transfer using pseudo transferred images generated by warping the reference face to the source face. LADN [11] leveraged additional multiple overlapping local discriminators for dramatic makeup transfer. However, the above approaches often fail on transferring in-the-wild images and cannot adjust transfer precisely and partially, which limits their applications, such as the makeup transfer in videos.
+
+# 2.2. Style Transfer
+
+Style transfer has been investigated extensively [8, 7, 15, 22, 26]. [9] proposed to derive image representations from CNN, which can be separated and recombined to synthesize images. Some methods are developed to solve the fast style transfer problem. [5] found the vital role of normalization in style transfer networks and achieved fast style transfer by the conditional instance normalization. While their methods can only transfer a fixed set of styles and cannot adapt to arbitrary new styles. Then, [14] proposed adaptive instance
+
+
+Figure 2. (A) Illustration of PSGAN framework. MDNet distills makeup matrices from the reference image. AMM module applies the adapted makeup matrices to the output feature map of the third bottleneck of MANet to achieve makeup transfer. (B) Illustration of AMM module. Green blocks with $136(68\times 2)$ channels indicate relative position features of the pixels, which are then concatenated with $C$ channel visual features. Thus, the attention map is computed for each pixel in the source image through the similarity of relative positions and visual appearances. The adapted makeup matrices $\gamma^\prime$ and $\beta^{\prime}$ are produced by the AMM module, which are then multiplied and added to feature maps of MANet element-wisely. The orange and the gray blocks in the figure indicate visual features with makeup and without makeup. (C) Attention maps for a specific red point in the source image. Note that we only calculate attentive values for pixels that belong to the same facial region. Thus, there are no response values on the lip and eye of the reference image.
+
+
+
+normalization (AdaIN) that aligns the mean and variance of the content features with those of the style features and achieved arbitrary style transfer. Here, we propose spatial-aware makeup transfer for each pixel rather than transferring a general style from the reference inspired by [24].
+
+# 2.3. Attention Mechanism
+
+Attention mechanism has been utilized in many areas [30, 23, 13, 25, 6]. [28] proposed the attention mechanism in the natural language processing area by leveraging a self-attention module to compute the response at a position in a sequence by attending to all positions and taking their weighted average in an embedding space. [29] proposed the non-local network, which is to compute the response at a position as a weighted sum of the features at all positions. Inspired by these works, we explore the application of attention module by calculating the attention between two feature maps. Unlike the non-local network that only considers visual appearance similarities, our proposed AMM module computes the weighted sum of another feature map by considering both visual appearances and locations.
+
+# 3. PSGAN
+
+# 3.1. Formulation
+
+Let $X$ and $Y$ be the source image domain and the reference image domain. Also, we utilize $\{x^n\}_{n=1,\dots,N}, x^n \in X$ and $\{y^m\}_{m=1,\dots,M}, y^m \in Y$ to represent the examples of two domains respectively. Note that paired datasets are not required. That is, the source and reference images have different identities. We assume $x$ is sampled from $X$ according to the distribution $\mathcal{P}_X$ and $y$ is sampled from $Y$ according to the distribution $\mathcal{P}_Y$ . Our proposed PSGAN learns a transfer function $G: \{x,y\} \to \tilde{x}$ , where the transferred image $\tilde{x}$ has the makeup style of the reference image $y$ and preserves the identity of the source image $x$ .
+
+# 3.2. Framework
+
+Overall. The framework of PSGAN is shown in Figure 2 (A). Mathematically, it is formulated as $\tilde{x} = G(x,y)$ . It can be divided into three parts. 1) Makeup distill network. MDNet extracts the makeup style from the reference image $y$ and represents it as two makeup matrices $\gamma$ and $\beta$ , which have the same height and width as the feature map. 2) At-
+
+tentive makeup morphing module. Since source images and reference images may have large discrepancies in expressions and poses, the extracted makeup matrices cannot be directly applied to the source image $x$ . We then propose an AMM module to morph the two makeup matrices to two new matrices $\gamma'$ and $\beta'$ which are adaptive to the source image by considering the similarities between pixels of the source and reference. 3) Makeup apply network. The adaptive makeup matrices $\gamma'$ and $\beta'$ are applied to the bottleneck of the MANet to perform makeup transfer with pixel-level guidance by element-wise multiplication and addition.
+
+Makeup distill network. The MDNet utilizes the encoder-bottleneck architecture used in [4] without the decoder part. It disentangles the makeup related features, e.g., lip gloss, eye shadows, from the intrinsic facial features, e.g., facial shape, the size of eyes. The makeup related features are represented as two makeup matrices $\gamma$ and $\beta$ , which are used to transfer the makeup by pixel-level operations. As shown in Figure 2 (B), the output feature map of MDNet $\mathbf{V}_{\mathbf{y}} \in \mathbb{R}^{C \times H \times W}$ is fed into two $1 \times 1$ convolution layers to produce $\gamma \in \mathbb{R}^{1 \times H \times W}$ and $\beta \in \mathbb{R}^{1 \times H \times W}$ , where $C$ , $H$ and $W$ are the number of channels, height and width of the feature map.
+
+Attentive makeup morphing module. Since the source and reference images may have different poses and expressions, the obtained spatial-aware $\gamma$ and $\beta$ cannot be applied directly to the source image. The proposed AMM module calculates an attentive matrix $A\in \mathbb{R}^{HW\times HW}$ to specify how a pixel in the source image $x$ is morphed from the pixels in the reference image $y$ , where $A_{i,j}$ indicates the attentive value between the $i$ -th pixel $x_{i}$ in image $x$ and the $j$ -th pixel $y_{j}$ in image $y$ .
+
+Intuitively, makeup should be transferred between the pixels with similar relative positions on the face, and the attentive values between these pixels should be high. For example, the lip gloss region of the transferred result $\tilde{x}$ should be sampled from the corresponding lip gloss region of the reference image $y$ . To describe the relative positions, we take the facial landmarks as anchor points. The relative position feature of pixel $x_{i}$ is represented by $\mathbf{p}_i\in \mathbb{R}^{136}$ , which is reflected in the differences of coordinates between pixel $x_{i}$ and 68 facial landmarks, calculated by
+
+$$
+\begin{array}{l} \mathbf {p} _ {i} = \left[ f \left(x _ {i}\right) - f \left(l _ {1}\right), f \left(x _ {i}\right) - f \left(l _ {2}\right), \dots , f \left(x _ {i}\right) - f \left(l _ {6 8}\right), \right. \\ \left. g \left(x _ {i}\right) - g \left(l _ {1}\right), g \left(x _ {i}\right) - g \left(l _ {2}\right), \dots , g \left(x _ {i}\right) - g \left(l _ {6 8}\right) \right], \tag {1} \\ \end{array}
+$$
+
+where $f(\cdot)$ and $g(\cdot)$ indicate the coordinates on $x$ and $y$ axes, $l_{i}$ indicates the $i$ -th facial landmark obtained by the 2D facial landmark detector [31], which serves as the anchor point when calculating $\mathbf{p}_i$ . In order to handle faces that occupy different sizes in images, we divide $\mathbf{p}$ by its two-norm (i.e., $\frac{\mathbf{p}}{\|\mathbf{p}\|}$ ) when calculating the attentive matrix.
+
+Moreover, to avoid unreasonable sampling pixels with similar relative positions but different semantics, we also consider the visual similarities between pixels (e.g., $x_{i}$ and $y_{j}$ ), which are denoted as the similarities between $\mathbf{v}_{i}$ and $\mathbf{v}_{j}$ that extracted from the third bottleneck of MANet and MDNet respectively. To make the relative position to be the primary concern, we multiply the visual features by a weight when calculating $A$ . Then, the relative position features are resized and concatenated with the visual features along the channel dimension. As Figure 2 (B) shows, the attentive value $A_{i,j}$ is computed by considering the similarities of both visual appearances and relative positions via
+
+$$
+A _ {i, j} = \frac {\exp \left([ w \mathbf {v} _ {i} , \frac {\mathbf {p} _ {i}}{\| \mathbf {p} _ {i} \|} ] ^ {T} [ w \mathbf {v} _ {j} , \frac {\mathbf {p} _ {j}}{\| \mathbf {p} _ {j} \|} ]\right) \mathbb {I} \left(m _ {x} ^ {i} = m _ {y} ^ {j}\right)}{\sum_ {j} \exp \left([ w \mathbf {v} _ {i} , \frac {\mathbf {p} _ {i}}{\| \mathbf {p} _ {i} \|} ] ^ {T} [ w \mathbf {v} _ {j} , \frac {\mathbf {p} _ {j}}{\| \mathbf {p} _ {j} \|} ]\right) \mathbb {I} \left(m ^ {i} = m ^ {j}\right)}, \tag {2}
+$$
+
+where $[\cdot, \cdot]$ denotes the concatenation operation, $\mathbf{v} \in \mathbb{R}^C$ and $\mathbf{p} \in \mathbb{R}^{136}$ indicate the visual features and relative position features, $w$ is the weight for visual features. $\mathbb{I}(\cdot)$ is an indicator function whose value is 1 if the inside formula is true, $m_x, m_y \in \{0, 1, \dots, N-1\}^{H \times W}$ are the face parsing map of source image $x$ and reference image $y$ , where $N$ stands for the number of facial regions ( $N$ is 3 in our experiments including eyes, lip and skin), $m_x^i$ and $m_y^j$ indicate the facial regions that $x_i$ and $x_j$ belong to. Note that we only consider the pixels belonging to same facial region, i.e., $m_x^i = m_y^j$ , by applying indicator function $\mathbb{I}(\cdot)$ .
+
+Given a specific point that marked in red in the lower-left corner of the nose in the source image, the middle image of Figure 2 (C) shows its attention map by reshaping a specific row of the attentive matrix $A_{i,:} \in \mathbb{R}^{1 \times HW}$ to $H \times W$ . We can see that only the pixels around the left corner of the nose have large values. After applying softmax, attentive values become more gathered. This verifies that our proposed AMM module is able to locate semantically similar pixels to attend.
+
+We multiply attentive matrix $A$ by the $\gamma$ and $\beta$ , and get the morphed makeup matrices $\gamma'$ and $\beta'$ . More specifically, the matrices $\gamma'$ and $\beta'$ are computed by
+
+$$
+\begin{array}{l} \gamma_ {i} ^ {\prime} = \sum_ {j} A _ {i, j} \gamma_ {j}; \\ \beta_ {i} ^ {\prime} = \sum_ {j} ^ {j} A _ {i, j} \beta_ {j}, \tag {3} \\ \end{array}
+$$
+
+where $i$ and $j$ are the pixel index of $x$ and $y$ . After that, the matrix $\gamma' \in \mathbb{R}^{1 \times H \times W}$ and $\beta' \in \mathbb{R}^{1 \times H \times W}$ are duplicated and expanded along the channel dimension to produce the makeup tensors $\Gamma' \in \mathbb{R}^{C \times H \times W}$ and $B' \in \mathbb{R}^{C \times H \times W}$ , which will be the input of MANet.
+
+Makeup apply network. MANet utilizes a similar encoder-bottleneck-decoder architecture as [4]. As shown in Figure 2 (A), the encoder part of MANet shares the
+
+same architecture with MDNet, but they do not share parameters. In the encoder part, we use instance normalizations that have no affine parameters that make the feature map to be a normal distribution. In the bottleneck part, the morphed makeup tensors $\Gamma'$ and $B'$ obtained by the AMM module are applied to the source image feature map $\mathbf{V}_{\mathbf{x}} \in \mathbb{R}^{C \times H \times W}$ . The activation values of the transferred feature map $\mathbf{V}_{\mathbf{x}}'$ are calculated by
+
+$$
+\mathbf {V _ {x}} ^ {\prime} = \Gamma^ {\prime} \mathbf {V _ {x}} + B ^ {\prime}. \qquad (4)
+$$
+
+Eq. (4) gives the function of makeup transfer. The updated feature map $\mathbf{V}_{\mathbf{x}}'$ is then fed to the subsequent decoder part of MANet to produce the transferred result.
+
+# 3.3. Objective Function
+
+Adversarial loss. We utilize two discriminators $D_{X}$ and $D_{Y}$ for the source image domain $X$ and the reference image domain $Y$ , which try to discriminate between generated images and real images and thus help the generators synthesize realistic outputs. Therefore, the adversarial loss $L_{D}^{adv}$ , $L_{G}^{adv}$ for discriminator and generator are computed by
+
+$$
+\begin{array}{l} L _ {D} ^ {a d v} = - \mathbb {E} _ {x \sim \mathcal {P} _ {X}} \left[ \log D _ {X} (x) \right] - \mathbb {E} _ {y \sim \mathcal {P} _ {Y}} \left[ \log D _ {Y} (y) \right] \\ - \mathbb {E} _ {x \sim \mathcal {P} _ {X}, y \sim \mathcal {P} _ {Y}} [ \log (1 - D _ {X} (G (y, x))) ] \\ - \mathbb {E} _ {x \sim \mathcal {P} _ {X}, y \sim \mathcal {P} _ {Y}} [ \log (1 - D _ {Y} (G (x, y))) ] \tag {5} \\ \end{array}
+$$
+
+$$
+\begin{array}{l} L _ {G} ^ {a d v} = - \mathbb {E} _ {x \sim \mathcal {P} _ {X}, y \sim \mathcal {P} _ {Y}} [ \log (D _ {X} (G (y, x))) ] \\ - \mathbb {E} _ {x \sim \mathcal {P} _ {X}, y \sim \mathcal {P} _ {Y}} [ \log (D _ {Y} (G (x, y))) ] \\ \end{array}
+$$
+
+Cycle consistency loss. Due to the lack of triplets data (source image, reference image, and transferred image), we train the network in an unsupervised way. Here, we introduce the cycle consistency loss proposed by [33]. We use the L1 loss to constrain the reconstructed images and define the cycle consistency loss $L_{G}^{cyc}$ as
+
+$$
+\begin{array}{l} L _ {G} ^ {c y c} = \mathbb {E} _ {x \sim \mathcal {P} _ {X}, y \sim \mathcal {P} _ {Y}} [ \| G (G (x, y), x) - x \| _ {1} ] \tag {6} \\ + \mathbb {E} _ {x \sim \mathcal {P} _ {X}, y \sim \mathcal {P} _ {Y}} [ \| G (G (y, x), y) - y \| _ {1} ]. \\ \end{array}
+$$
+
+Perceptual loss. When transferring the makeup style, the transferred image is required to preserve personal identity. Instead of directly measuring differences at pixel-level, we utilize a VGG-16 model pre-trained on ImageNet to compare the activations of source images and generated images in the hidden layer. Let $F_{l}(\cdot)$ denote the output of the $l$ -th layer of VGG-16 model. We introduce the perceptual loss $L_{G}^{per}$ to measure their differences using L2 loss:
+
+$$
+\begin{array}{l} L _ {G} ^ {p e r} = \mathbb {E} _ {x \sim \mathcal {P} _ {X}, y \sim \mathcal {P} _ {Y}} \left[ \| F _ {l} (G (x, y)) - F _ {l} (x) \| _ {2} \right] \tag {7} \\ + \mathbb {E} _ {x \sim \mathcal {P} _ {X}, y \sim \mathcal {P} _ {Y}} \left[ \| F _ {l} (G (y, x)) - F _ {l} (y) \| _ {2} \right]. \\ \end{array}
+$$
+
+Makeup loss. To provide coarse guidance for makeup transfer, we utilize the makeup loss proposed by [18].
+
+Specifically, we perform histogram matching on the same facial regions of $x$ and $y$ separately and then recombine the results, denoted as $HM(x,y)$ . As a kind of pseudo ground truth, $HM(x,y)$ preserves the identity of $x$ and has a similar color distribution with $y$ . Then we calculate the makeup loss $L_{G}^{make}$ as coarse guidance by
+
+$$
+\begin{array}{l} L _ {G} ^ {\text {m a k e}} = \mathbb {E} _ {x \sim \mathcal {P} _ {X}, y \sim \mathcal {P} _ {Y}} \left[ \| G (x, y) - H W (x, y) \| _ {2} \right] \tag {8} \\ + \mathbb {E} _ {x \sim \mathcal {P} _ {X}, y \sim \mathcal {P} _ {Y}} \left[ \| G (y, x) - H W (y, x) \| _ {2} \right]. \\ \end{array}
+$$
+
+Total loss. The loss $L_{D}$ and $L_{G}$ for discriminator and generator of our approach can be expressed as
+
+$$
+\begin{array}{l} L _ {D} = \lambda_ {a d v} L _ {D} ^ {a d v} \\ L _ {G} = \lambda_ {a d v} L _ {G} ^ {a d v} + \lambda_ {c y c} L _ {G} ^ {c y c} + \lambda_ {p e r} L _ {G} ^ {p e r} + \lambda_ {m a k e} L _ {G} ^ {m a k e}, \tag {9} \\ \end{array}
+$$
+
+where $\lambda_{adv}$ , $\lambda_{cyc}$ , $\lambda_{per}$ , $\lambda_{make}$ are the weights to balance the multiple objectives.
+
+# 4. Experiments
+
+# 4.1. Data Collection
+
+Since the existing makeup datasets only consist of frontal facial images with neutral expressions, we collect a new Makeup-Wild dataset that contains facial images with various poses and expressions as well as complex backgrounds to test methods in the real-world environment. We collect data from the Internet and then manually remove images with frontal face or neutral expression. After that, we crop and resize the images to be $256 \times 256$ resolution. Finally, 403 with-makeup images and 369 non-makeup images are collected to form the Makeup-Wild dataset.
+
+# 4.2. Experimental Setting and Details
+
+We train our network using the training part of the MT (Makeup Transfer) dataset [18, 3] and test it on the testing part of MT dataset and the Makeup-Wild dataset. MT dataset contains 1, 115 non-makeup images and 2, 719 with-makeup images which are mostly well-aligned, with the resolution of $361 \times 361$ and the corresponding face parsing results. We follow the splitting strategy of [18] to form the train/test set and conduct frontal face experiments in the test set of MT dataset since the examples in the test set are well-aligned frontal facial images. To further prove the effectiveness of PSGAN for handling pose and expression differences, we use the Makeup-Wild dataset as an extra test set. Note that we only train our network using the training part of the MT dataset for a fair comparison.
+
+For all experiments, we resize the images to $256 \times 256$ , and utilize the relu_4_1 feature layer of VGG-16 for calculating perceptual loss. The weights of different loss functions are set as $\lambda_{adv} = 1$ , $\lambda_{cyc} = 10$ , $\lambda_{per} = 0.005$ , $\lambda_{make} = 1$ , and the weight for visual feature in AMM is
+
+
+Source
+
+
+Reference
+
+
+w.o.AMM
+
+
+PSGAN
+Figure 3. Without AMM module, the makeup transfer results (the 3rd column) are bad due to pose and expression differences between source and reference images.
+
+set to 0.01. We train the model for 50 epochs optimized by Adam [16] with learning rate of 0.0002 and batch size of 1.
+
+# 4.3. Ablation Studies
+
+Attentive makeup morphing module. In PSGAN, AMM module morphs the distilled makeup matrices $\gamma$ and $\beta$ to $\gamma^{\prime},\beta^{\prime}$ . It alleviates the pose and expression differences between source and reference images. The effectiveness of the AMM module is shown in Figure 3. In the first row, the pose of source and reference images are very different. The bangs of the reference image are transferred to the skin of the source image without AMM. By applying AMM, the pose misalignment is well solved. A similar observation can be found in the second row: the expressions of source and reference images are smiling and neutral respectively, while the lip gloss is applied to the teeth region without the AMM module shown in the third column. After integrating AMM, lip gloss is applied to the lip region, bypassing the teeth area. The experiments demonstrate that the AMM module can specify how a pixel in the source image is morphed from pixels of the reference instead of mapping the makeup from the same location directly.
+
+The weight of visual feature in calculating $A$ . In the AMM module, we calculate the attentive matrix $A$ by considering both the visual features $\mathbf{v}$ and relative positions $\mathbf{p}$ using Eq. (2). Figure 4 demonstrates that if only relative positions are considered by setting the weight to zero, the attentive maps in the second column are similar to a 2D Gaussian distribution. In the first column of Figure 4, the red point on the skin of the source may wrongly receive makeup from the nostrils area in the reference image (1st row). The attention map also crosses the face boundary and covers the earrings (2nd row) which is unreasonable. Besides, larger weights will lead to scattered and unreasonable attention maps, as shown in the last column. After considering the appearance feature appropriately by setting the weight to 0.01, the attention maps focus more on the skin and also bypass the nostrils as well as background.
+
+
+Source
+
+
+w.o. visual features
+$(w = 0)$
+
+
+w. visual features
+$w = 0.01$
+
+
+w. visual features
+$(w = 0.05)$
+
+
+Figure 4. Given a red point on the skin, the corresponding attention maps with different weights on visual features are shown. Without using visual features, attention maps fail to avoid nostrils (1st row, 2nd column) and wrongly crosses the facial boundary (2nd row, 2nd column). While a larger weight leads to scattered and unreasonable attention maps.
+Reference 1
+Figure 5. Given the source image (2nd column), the transferred images (3rd column) are generated by transferring the lipstick from reference 1 and other makeup from reference 2.
+
+
+Source
+
+
+lip from R1 other from R2
+
+
+Reference 2
+
+# 4.4. Partial and Interpolated Makeup Transfer
+
+Since the makeup matrices $\gamma$ and $\beta$ are spatial-aware, the partial and interpolated transfer can be realized during testing. To achieve partial makeup generation, we compute the new makeup matrices by weighting the matrices using the face parsing results. Let $x$ , $y_{1}$ , and $y_{2}$ denote a source image and two reference images. We can obtain $\Gamma_x'$ , $B_x'$ and $\Gamma_{y_1}'$ , $B_{y_1}'$ as well as $\Gamma_{y_2}'$ , $B_{y_2}'$ by feeding the images to MDNet. In addition, we can obtain the face parsing mask $m_{x}$ of $x$ through the existing deep learning method [32]. Suppose we want to mix the lipstick from $y_{1}$ and other makeup from $y_{2}$ , we can first obtain the binary mask of the lip, denoted as $m_x^l \in \{0,1\}^{H\times W}$ . Then, PSGAN can realize partial makeup transfer by assigning different makeup parameters on different pixels. By modifying Eq. (4), the partial transferred feature map $\mathbf{V}_{\mathbf{x}}'$ can be calculated by
+
+$$
+\mathbf {V} _ {\mathbf {x}} ^ {\prime} = \left(m _ {x} ^ {l} \Gamma_ {y _ {1}} ^ {\prime} + \left(1 - m _ {x} ^ {l}\right) \Gamma_ {y _ {2}} ^ {\prime}\right) \mathbf {V} _ {\mathbf {x}} + \left(m _ {x} ^ {l} B _ {y _ {1}} ^ {\prime} + \left(1 - m _ {x} ^ {l}\right) B _ {y _ {2}} ^ {\prime}\right). \tag {10}
+$$
+
+Figure 5 shows the results by mixing the makeup styles from two references partially. The results on the third column recombine the makeup of lip from reference 1 and other part of makeup from reference 2, which are natural and realistic. Also, only transferring the lipstick from reference 1 and remain other parts unchanged can be achieved
+
+
+Figure 6. Results of interpolated makeup styles. If only one reference is used, adjusting the shade of makeup can be realized (1st row). If two references are used (1st column and last column), the makeup of the transferred images is gradually changing from reference 1 towards reference 2 from left to right (2nd rows).
+
+by assigning $x = y_{2}$ . The new feature of partial makeup makes PSGAN realize the flexible partial makeup transfer.
+
+Moreover, we can interpolate the makeup with two reference images by a coefficient $\alpha \in [0,1]$ . We first get the makeup tensors of two references $y_{1}$ and $y_{2}$ , and then compute the new parameters by weighting them with the coefficient $\alpha$ . The resulted feature map $\mathbf{V}_{\mathbf{x}}^{\prime}$ is calculated by
+
+$$
+\mathbf {V} _ {\mathbf {x}} ^ {\prime} = \left(\alpha \Gamma_ {y _ {1}} ^ {\prime} + (1 - \alpha) \Gamma_ {y _ {2}} ^ {\prime}\right) \mathbf {V} _ {\mathbf {x}} + \left(\alpha B _ {y _ {1}} ^ {\prime} + (1 - \alpha) B _ {y _ {2}} ^ {\prime}\right). \tag {11}
+$$
+
+Figure 6 shows the interpolated makeup transfer results with one and two reference images. By feeding the new makeup tensors into MANet, we yield a smooth transition between two reference makeup styles. Similarly, we can adjust the shade of transfer using only one reference image by assigning $x = y_{1}$ . The generated results demonstrate that our PSGAN can not only control the shade of makeup transfer but also generate a new style of makeup by mixing the makeup tensors of two makeup styles.
+
+We can also perform partial and interpolated transfer simultaneously by leveraging both the face parsing maps and coefficient thanks to the design of spatial-aware makeup matrices. The above experiments have demonstrated that PSGAN broadens the application range of makeup transfer significantly.
+
+# 4.5. Comparison
+
+We conduct comparison with general image-to-image translation methods DIA [19] and CycleGAN [33] as well as state-of-the-art makeup transfer methods BeautyGAN (BGAN) [18], PairedCycleGAN (PGAN) [2], BeautyGlow (BGlow) [3] and LADN [11]. Current makeup transfer methods leverage face parsing maps [2, 3, 18] and facial landmarks [11] for training and realize different functions as shown in Table 1.
+
+Quantitative Comparison. We conduct a user study for quantitative evaluation on Amazon Mechanical Turk that use BGAN, CGAN, DIA, and LADN as baselines. For
+
+| Method | shade-controllable | partial | robust |
| BGAN [18] | | | |
| PGAN [2] | | | |
| BGlow [3] | ✓ | | |
| LADN [11] | ✓ | | |
| PSGAN | ✓ | ✓ | ✓ |
+
+Table 1. Analyses of existing methods. "robust" indicates pose and expression robust transfer.
+
+| Test set | PSGAN | BGAN | DIA | CGAN | LADN |
| MT | 61.5 | 32.5 | 3.25 | 2.5 | 0.25 |
| M-Wild | 83.5 | 13.5 | 1.75 | 1.25 | 0.0 |
+
+Table 2. Ratio selected as best $(\%)$
+
+a fair comparison, we only compare with methods whose code and pre-train model are released since we cannot guarantee a perfect re-implementation. We randomly select 20 source images and 20 reference images from both the MT test set and Makeup-Wild (M-Wild) dataset. After using the above methods to perform makeup transfer between these images, we obtain 800 images for each method. Workers are asked to choose the best images generated by five methods by considering image realism and the similarity with reference makeup styles. Table 2 shows the human evaluation results. Our PSGAN outperforms other methods by a large margin, especially on the M-Wild test set.
+
+Qualitative Comparison. Figure 7 shows the qualitative comparison of PSGAN with other state-of-the-art methods on frontal faces in neutral expressions. Since the code of BeautyGlow and PairedCycleGAN is not released, we follow the strategy of BeautyGlow which cropped the results from corresponding papers. The result produced by DIA has an unnatural color on hair and background since it performs transfer in the whole image. CycleGAN can only synthesize general makeup style with is not similar to the
+
+
+Figure 7. Qualitative comparison. PSGAN is able to generate realistic images with the same makeup styles as the reference.
+
+
+Figure 8. Qualitative comparison on M-Wild test set.
+
+reference. Besides, BeautyGlow fails to preserve the color of pupils and does not have the same foundation makeup as reference. We also use the pre-trained model released by the author of LADN, which produces blurry transfer results and unnatural background. Compared to the baselines, our method is able to generate vivid images with the same makeup styles as reference.
+
+We also conduct a comparison on the M-Wild test set with the state-of-the-art method (BeautyGAN and LADN) that provide code and pre-trained model, as shown in Figure 8. Since the current methods lack an explicit mechanism to guide the direction of transfer at the pixel-level and also overfit on frontal images, the makeup is applied in the wrong region of the face when dealing with images with different poses and expressions. For example, the lip gloss is transferred to the skin on the first row of Figure 8. In the second row, other methods fail to perform transfer on faces with different sizes. However, our AMM module can accurately assign the makeup for every pixel through calculating the similarities, which makes our results look better.
+
+# 4.6. Video Makeup Transfer
+
+To transfer makeup for a person in the video is a challenging and meaningful task, which has wide prospects in the applications. However, the pose and expression of a face in the video are continuously changing which brings extra difficulties. To examine the effectiveness of our method,
+
+
+Figure 9. Video makeup transfer results of PSGAN.
+
+we simply perform makeup transfer on every frame of the video, as shown in Figure 9. By incorporating the design of PSGAN, we receive nice and stable transferred results.
+
+# 5. Conclusion
+
+In order to bring makeup transfer to real-world applications, we propose PSGAN that first distills the makeup style into two makeup matrices from the reference and then leverages an Attentive Makeup Morphing (AMM) module to conduct makeup transfer accurately. The experiments demonstrate our approach can achieve state-of-the-art transfer results on both frontal facial images and facial images that have various poses and expressions. Also, with the spatial-aware makeup matrices, PSGAN can transfer the makeup partially and adjust the shade of transfer, which greatly broadens the application range of makeup transfer. Moreover, we believe our novel framework can be used in other conditional image synthesis problems that require customizable and precise synthesis.
+
+Acknowledgement This work is partially supported by the National Natural Science Foundation of China (Grant 61572493, Grant 61876177), Beijing Natural Science Foundation (L182013, 4202034) and Fundamental Research Funds for the Central Universities. This work is also sponsored by Zhejiang Lab (No.2019KD0AB04). We also thank Jinyu Chen for his help.
+
+# References
+
+[1] Taleb Alashkar, Songyao Jiang, Shuyang Wang, and Yun Fu. Examples-rules guided deep neural network for makeup recommendation. In AAAI, 2017. 2
+[2] Huiwen Chang, Jingwan Lu, Fisher Yu, and Adam Finkelstein. Pairedcyclegan: Asymmetric style transfer for applying and removing makeup. In CVPR, 2018. 1, 2, 7
+[3] Hung-Jen Chen, Ka-Ming Hui, Sishui Wang, Li-Wu Tsao, Hong-Han Shuai, Wen-Huang Cheng, and National Chiao Tung. Beautyglow: On-demand makeup transfer framework with reversible generative network. In CVPR, 2019. 1, 2, 5, 7
+[4] Yunjey Choi, Min-Je Choi, Munyoung Kim, Jung-Woo Ha, Sunghun Kim, and Jaegul Choo. Stargan: Unified generative adversarial networks for multi-domain image-to-image translation. In CVPR, 2017. 4
+[5] Vincent Dumoulin, Jonathon Shlens, and Manjunath Kudur. A learned representation for artistic style. *ArXiv*, abs/1610.07629, 2016. 2
+[6] Chen Gao, Yunpeng Chen, Si Liu, Zhenxiong Tan, and Shuicheng Yan. Adversarialnas: Adversarial neural architecture search for gans. ArXiv, abs/1912.02037, 2019. 3
+[7] Leon A. Gatys, Matthias Bethge, Aaron Hertzmann, and Eli Shechtman. Preserving color in neural artistic style transfer. ArXiv, abs/1606.05897, 2016. 2
+[8] Leon A. Gatys, Alexander S. Ecker, and Matthias Bethge. A neural algorithm of artistic style. ArXiv, abs/1508.06576, 2015. 2
+[9] Leon A. Gatys, Alexander S. Ecker, and Matthias Bethge. Image style transfer using convolutional neural networks. In CVPR, 2016. 2
+[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 NeurIPS, 2014. 1
+[11] Qiao Gu, Guanzhi Wang, Mang Tik Chiu, Yu-Wing Tai, and Chi-Keung Tang. Ladin: Local adversarial disentangling network for facial makeup and de-makeup. In ICCV, 2019. 1, 2, 7
+[12] Dong Guo and Terence Sim. Digital face makeup by example. In CVPR, 2009. 2
+[13] Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In CVPR, 2017. 3
+[14] Xun Huang and Serge J. Belongie. Arbitrary style transfer in real-time with adaptive instance normalization. In ICCV, 2017. 2
+[15] Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. In ECCV, 2016. 2
+[16] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. ArXiv, abs/1412.6980, 2014. 6
+[17] Chen Li, Kun Zhou, and Stephen Lin. Simulating makeup through physics-based manipulation of intrinsic image layers. In CVPR, 2015. 2
+[18] Tingting Li, Ruihe Qian, Chao Dong, Si Liu, Qiong Yan, Wenwu Zhu, and Liang Lin. Beautygan: Instance-level facial
+
+makeup transfer with deep generative adversarial network. In ACM MM, 2018. 1, 2, 5, 7
+[19] Jing Liao, Yuan Yao, Lu Yuan, Gang Hua, and Sing Bing Kang. Visual attribute transfer through deep image analogy. ACM TOG, 2017. 7
+[20] Luoqi Liu, Junliang Xing, Si Liu, Hui Xu, Xi Zhou, and Shuicheng Yan. "wow! you are so beautiful today!". In ACM MM, 2013. 2
+[21] Si Liu, Xinyu Ou, Ruihe Qian, Wei Wang, and Xiaochun Cao. Makeup like a superstar: Deep localized makeup transfer network. In *IJCAI*, 2016. 2
+[22] Fujun Luan, Sylvain Paris, Eli Shechtman, and Kavita Bala. Deep photo style transfer. In CVPR, 2017. 2
+[23] Volodymyr Mnih, Nicolas Manfred Otto Heess, Alex Graves, and Koray Kavukcuoglu. Recurrent models of visual attention. In NeurlPS, 2014. 3
+[24] Taesung Park, Ming-Yu Liu, Ting-Chun Wang, and Jun-Yan Zhu. Semantic image synthesis with spatially-adaptive normalization. In CVPR, 2019. 3
+[25] Alexander M. Rush, Sumit Chopra, and Jason Weston. A neural attention model for abstractive sentence summarization. In EMNLP, 2015. 3
+[26] Yaniv Taigman, Adam Polyak, and Lior Wolf. Unsupervised cross-domain image generation. *ICLR*, 2016. 2
+[27] Wai-Shun Tong, Chi-Keung Tang, Michael S. Brown, and Ying-Qing Xu. Example-based cosmetic transfer. In PG, 2007. 2
+[28] 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, 2017. 3
+[29] Xiaolong Wang, Ross B. Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. In CVPR, 2017. 3
+[30] Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron C. Courville, Ruslan Salakhutdinov, Richard S. Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In ICML, 2015. 3
+[31] Kaipeng Zhang, Zhanpeng Zhang, Zhifeng Li, and Yu Qiao. Joint face detection and alignment using multitask cascaded convolutional networks. Signal Processing Letters, 2016. 4
+[32] Hengshuang Zhao, Jianping Shi, Xiaojuan Qi, Xiaogang Wang, and Jiaya Jia. Pyramid scene parsing network. In CVPR, 2016. 6
+[33] Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A. Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In ICCV, 2017. 1, 5, 7
\ No newline at end of file
diff --git a/psganposeandexpressionrobustspatialawareganforcustomizablemakeuptransfer/images.zip b/psganposeandexpressionrobustspatialawareganforcustomizablemakeuptransfer/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..067219e1f8ae2ce0ca71f3090d952cc81ad053a4
--- /dev/null
+++ b/psganposeandexpressionrobustspatialawareganforcustomizablemakeuptransfer/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:df634cd14e991d68e1916d582afe1dffffd3f6794c4aa77d94046898d91bad81
+size 725796
diff --git a/psganposeandexpressionrobustspatialawareganforcustomizablemakeuptransfer/layout.json b/psganposeandexpressionrobustspatialawareganforcustomizablemakeuptransfer/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..7a732ab2b53db23cc1bf65662ad4907a685deacd
--- /dev/null
+++ b/psganposeandexpressionrobustspatialawareganforcustomizablemakeuptransfer/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ece27ce6df6159c38672e74a8ab017f382d55b8fbd0f3b132a075a7c5fcb453a
+size 462912
diff --git a/pulseselfsupervisedphotoupsamplingvialatentspaceexplorationofgenerativemodels/639a6972-1c8c-4cdb-96ad-5d18c4909863_content_list.json b/pulseselfsupervisedphotoupsamplingvialatentspaceexplorationofgenerativemodels/639a6972-1c8c-4cdb-96ad-5d18c4909863_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..e7a71a18857b6d295d43be8f346a33c5a1eb29ec
--- /dev/null
+++ b/pulseselfsupervisedphotoupsamplingvialatentspaceexplorationofgenerativemodels/639a6972-1c8c-4cdb-96ad-5d18c4909863_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:96a4060d8f03a2ef515450776339a5b3e9307c8007b0c328ad2fac865482a1a5
+size 67377
diff --git a/pulseselfsupervisedphotoupsamplingvialatentspaceexplorationofgenerativemodels/639a6972-1c8c-4cdb-96ad-5d18c4909863_model.json b/pulseselfsupervisedphotoupsamplingvialatentspaceexplorationofgenerativemodels/639a6972-1c8c-4cdb-96ad-5d18c4909863_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..1c3e40e00cff2ba66ac8d6448adbb936e59141ff
--- /dev/null
+++ b/pulseselfsupervisedphotoupsamplingvialatentspaceexplorationofgenerativemodels/639a6972-1c8c-4cdb-96ad-5d18c4909863_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8f13e45b578379c998fed4a286b80ea6b5fa95f0fae3c38db1288eb7e8033a85
+size 79270
diff --git a/pulseselfsupervisedphotoupsamplingvialatentspaceexplorationofgenerativemodels/639a6972-1c8c-4cdb-96ad-5d18c4909863_origin.pdf b/pulseselfsupervisedphotoupsamplingvialatentspaceexplorationofgenerativemodels/639a6972-1c8c-4cdb-96ad-5d18c4909863_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..78eba0c9bfbf86fcbf4b3784cd05a3ec2767227f
--- /dev/null
+++ b/pulseselfsupervisedphotoupsamplingvialatentspaceexplorationofgenerativemodels/639a6972-1c8c-4cdb-96ad-5d18c4909863_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f4aebcee8e33b3d15e538c775203ce695c227097fbdd5ee360f91f427cfb218f
+size 3778597
diff --git a/pulseselfsupervisedphotoupsamplingvialatentspaceexplorationofgenerativemodels/full.md b/pulseselfsupervisedphotoupsamplingvialatentspaceexplorationofgenerativemodels/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..5633576d30527d2838c8bec002fe81782cdea07f
--- /dev/null
+++ b/pulseselfsupervisedphotoupsamplingvialatentspaceexplorationofgenerativemodels/full.md
@@ -0,0 +1,271 @@
+# PULSE: Self-Supervised Photo Upsampling via Latent Space Exploration of Generative Models
+
+Sachit Menon*, Alexandru Damian*, Shijia Hu, Nikhil Ravi, Cynthia Rudin
+Duke University
+Durham, NC
+
+{sachit.menon,alexandru.damian,shijia.hu,nikhil.ravi,cynthia.rudin}@duke.edu
+
+# Abstract
+
+The primary aim of single-image super-resolution is to construct a high-resolution (HR) image from a corresponding low-resolution (LR) input. In previous approaches, which have generally been supervised, the training objective typically measures a pixel-wise average distance between the super-resolved (SR) and HR images. Optimizing such metrics often leads to blurring, especially in high variance (detailed) regions. We propose an alternative formulation of the super-resolution problem based on creating realistic SR images that downscale correctly. We present a novel super-resolution algorithm addressing this problem, PULSE (Photo Upsampling via Latent Space Exploration), which generates high-resolution, realistic images at resolutions previously unseen in the literature. It accomplishes this in an entirely self-supervised fashion and is not confined to a specific degradation operator used during training, unlike previous methods (which require training on databases of LR-HR image pairs for supervised learning). Instead of starting with the LR image and slowly adding detail, PULSE traverses the high-resolution natural image manifold, searching for images that downscale to the original LR image. This is formalized through the "downscaling loss," which guides exploration through the latent space of a generative model. By leveraging properties of high-dimensional Gaussians, we restrict the search space to guarantee that our outputs are realistic. PULSE thereby generates super-resolved images that both are realistic and downscale correctly. We show extensive experimental results demonstrating the efficacy of our approach in the domain of face super-resolution (also known as face hallucination). Our method outperforms state-of-the-art methods in perceptual quality at higher resolutions and scale factors than previously possible.
+
+# 1. Introduction
+
+
+Figure 1. (x32) The input (top) gets upsampled to the SR image (middle) which downscales (bottom) to the original image.
+
+
+
+
+
+In this work, we aim to transform blurry, low-resolution images into sharp, realistic, high-resolution images. Here, we focus on images of faces, but our technique is generally applicable. In many areas (such as medicine, astronomy, microscopy, and satellite imagery), sharp, high-resolution images are difficult to obtain due to issues of cost, hardware restriction, or memory limitations [20]. This leads to the capture of blurry, low-resolution images instead. In other cases, images could be old and therefore blurry, or even in a modern context, an image could be out of focus or a person could be in the background. In addition to being visually unappealing, this impairs the use of downstream anal
+
+ysis methods (such as image segmentation, action recognition, or disease diagnosis) which depend on having high-resolution images [17] [19]. In addition, as consumer laptop, phone, and television screen resolution has increased over recent years, popular demand for sharp images and video has surged. This has motivated recent interest in the computer vision task of image super-resolution, the creation of realistic high-resolution (henceforth HR) images that a given low-resolution (LR) input image could correspond to.
+
+While the benefits of methods for image super-resolution are clear, the difference in information content between HR and LR images (especially at high scale factors) hampers efforts to develop such techniques. In particular, LR images inherently possess less high-variance information; details can be blurred to the point of being visually indistinguishable. The problem of recovering the true HR image depicted by an LR input, as opposed to generating a set of potential such HR images, is inherently ill-posed, as the size of the total set of these images grows exponentially with the scale factor [2]. That is to say, many high-resolution images can correspond to the exact same low-resolution image.
+
+Traditional supervised super-resolution algorithms train a model (usually, a convolutional neural network, or CNN) to minimize the pixel-wise mean-squared error (MSE) between the generated super-resolved (SR) images and the corresponding ground-truth HR images [14] [7]. However, this approach has been noted to neglect perceptually relevant details critical to photorealism in HR images, such as texture [15]. Optimizing on an average difference in pixel-space between HR and SR images has a blurring effect, encouraging detailed areas of the SR image to be smoothed out to be, on average, more (pixelwise) correct. In fact, in the case of mean squared error (MSE), the ideal solution is the (weighted) pixel-wise average of the set of realistic images that downscale properly to the LR input (as detailed later). The inevitable result is smoothing in areas of high variance, such as areas of the image with intricate patterns or textures. As a result, MSE should not be used alone as a measure of image quality for super-resolution.
+
+Some researchers have attempted to extend these MSE-based methods to additionally optimize on metrics intended to encourage realism, serving as a force opposing the smoothing pull of the MSE term [15, 7]. This essentially drags the MSE-based solution in the direction of the natural image manifold (the subset of $\mathbb{R}^{M\times N}$ that represents the set of high-resolution images). This compromise, while improving perceptual quality over pure MSE-based solutions, makes no guarantee that the generated images are realistic. Images generated with these techniques still show signs of blurring in high variance areas of the images, just as in the pure MSE-based solutions.
+
+To avoid these issues, we propose a new paradigm for super-resolution. The goal should be to generate realistic
+
+
+Figure 2. FSRNet tends towards an average of the images that downscale properly. The discriminator loss in FSRGAN pulls it in the direction of the natural image manifold, whereas PULSE always moves along this manifold.
+
+images within the set of feasible solutions; that is, to find points which actually lie on the natural image manifold and also downscale correctly. The (weighted) pixel-wise average of possible solutions yielded by the MSE does not generally meet this goal for the reasons previously described. We provide an illustration of this in Figure 2.
+
+Our method generates images using a (pretrained) generative model approximating the distribution of natural images under consideration. For a given input LR image, we traverse the manifold, parameterized by the latent space of the generative model, to find regions that downscale correctly. In doing so, we find examples of realistic images that downscale properly, as shown in 1.
+
+Such an approach also eschews the need for supervised training, being entirely self-supervised with no 'training' needed at the time of super-resolution inference (except for the unsupervised generative model). This framework presents multiple substantial benefits. First, it allows the same network to be used on images with differing degradation operators even in the absence of a database of corresponding LR-HR pairs (as no training on such databases takes place). Furthermore, unlike previous methods, it does not require super-resolution task-specific network architectures, which take substantial time on the part of the researcher to develop without providing real insight into the problem; instead, it proceeds alongside the state-of-the-art in generative modeling, with zero retraining needed.
+
+Our approach works with any type of generative model with a differentiable generator, including flow-based models, variational autoencoders (VAEs), and generative adversarial networks (GANs); the particular choice is dictated by the tradeoffs each make in approximating the data manifold. For this work, we elected to use GANs due to recent advances yielding high-resolution, sharp images [12, 11].
+
+
+Figure 3. We show here how visually distinct images, created with PULSE, can all downscale (represented by the arrows) to the same LR image.
+
+One particular subdomain of image super-resolution deals with the case of face images. This subdomain – known as face hallucination – finds application in consumer photography, photo/video restoration, and more [23]. As such, it has attracted interest as a computer vision task in its own right. Our work focuses on face hallucination, but our methods extend to a more general context.
+
+Because our method always yields a solution that both lies on the natural image manifold and downsamples correctly to the original low-resolution image, we can provide a range of interesting high-resolution possibilities e.g. by making use of the stochasticity inherent in many generative models: our technique can create a set of images, each of which is visually convincing, yet look different from each other, where (without ground truth) any of the images could plausibly have been the source of the low-resolution input.
+
+Our main contributions are as follows.
+
+1. A new paradigm for image super-resolution. Previous efforts take the traditional, ill-posed perspective of attempting to 'reconstruct' an HR image from an LR input, yielding outputs that, in effect, average many possible solutions. This averaging introduces undesirable blurring. We introduce new approach to superresolution: a super-resolution algorithm should create realistic high-resolution outputs that downscale to the correct LR input.
+2. A novel method for solving the super-resolution task. In line with our new perspective, we propose a new algorithm for super-resolution. Whereas traditional work has at its core aimed to approximate the $\mathrm{LR} \rightarrow \mathrm{HR}$ map using supervised learning (especially with neural networks), our approach centers on the use of unsupervised generative models of HR data. Using
+
+generative adversarial networks, we explore the latent space to find regions that map to realistic images and downscale correctly. No retraining is required. Our particular implementation, using StyleGAN [12], allows for the creation of any number of realistic SR samples that correctly map to the LR input.
+
+3. An original method for latent space search under high-dimensional Gaussian priors. In our task and many others, it is often desirable to find points in a generative model's latent space that map to realistic outputs. Intuitively, these should resemble samples seen during training. At first, it may seem that traditional log-likelihood regularization by the latent prior would accomplish this, but we observe that the 'soap bubble' effect (that much of the density of a high dimensional Gaussian lies close to the surface of a hypersphere) contradicts this. Traditional log-likelihood regularization actually tends to draw latent vectors away from this hypersphere and, instead, towards the origin. We therefore constrain the search space to the surface of that hypersphere, which ensures realistic outputs in higher-dimensional latent spaces; such spaces are otherwise difficult to search.
+
+# 2. Related Work
+
+While there is much work on image super-resolution prior to the advent of convolutional neural networks (CNNs), CNN-based approaches have rapidly become state-of-the-art in the area and are closely relevant to our work; we therefore focus on neural network-based approaches here. Generally, these methods use a pipeline where a low-resolution (LR) image, created by downsampling a high-resolution (HR) image, is fed through a CNN with both convolutional and upsampling layers, generating a super-resolved (SR) output. This output is then used to calculate the loss using the chosen loss function and the original HR image.
+
+# 2.1. Current Trends
+
+Recently, supervised neural networks have come to dominate current work in super-resolution. Dong et al. [8] proposed the first CNN architecture to learn this non-linear LR to HR mapping using pairs of HR-LR images. Several groups have attempted to improve the upsampling step by utilizing sub-pixel convolutions and transposed convolutions [18]. Furthermore, the application of ResNet architectures to super-resolution (started by SRResNet [15]), has yielded substantial improvement over more traditional convolutional neural network architectures. In particular, the use of residual structures allowed for the training of larger networks. Currently, there exist two general trends: one, towards networks that primarily better optimize pixel-wise
+
+average distance between SR and HR, and two, networks that focus on perceptual quality.
+
+# 2.2. Loss Functions
+
+Towards these different goals, researchers have designed different loss functions for optimization that yield images closer to the desired objective. Traditionally, the loss function for the image super-resolution task has operated on a per-pixel basis, usually using the L2 norm of the difference between the ground truth and the reconstructed image, as this directly optimizes PSNR (the traditional metric for the super-resolution task). More recently, some researchers have started to use the L1 norm since models trained using L1 loss seem to perform better in PSNR evaluation. The L2 norm (as well as pixel-wise average distances in general) between SR and HR images has been heavily criticized for not correlating well with human-observed image quality [15]. In face super-resolution, the state-of-the-art for such metrics is FSRNet [7], which used a facial prior to achieve previously unseen PSNR.
+
+Perceptual quality, however, does not necessarily increase with higher PSNR. As such, different methods, and in particular, objective functions, have been developed to increase perceptual quality. In particular, methods that yield high PSNR result in blurring of details. The information required for details is often not present in the LR image and must be 'imagined' in. One approach to avoiding the direct use of the standard loss functions was demonstrated in [21], which draws a prior from the structure of a convolutional network. This method produces similar images to the methods that focus on PSNR, which lack detail, especially in high frequency areas. Because this method cannot leverage learned information about what realistic images look like, it is unable to fill in missing details. Methods that try to learn a map from LR to HR images can try to leverage learned information; however, as mentioned, networks optimized on PSNR are still explicitly penalized for attempting to hallucinate details they are unsure about, thus optimizing on PSNR stills resulting in blurring and lack of detail.
+
+To resolve this issue, some have tried to use generative model-based loss terms to provide these details. Neural networks have lent themselves to application in generative models of various types (especially generative adversarial networks-GANs-from [9]), to image reconstruction tasks in general, and more recently, to super-resolution. Ledig et al. [15] created the SRGAN architecture for single-image upsampling by leveraging these advances in deep generative models, specifically GANs. Their general methodology was to use the generator to upscale the low-resolution input image, which the discriminator then attempts to distinguish from real HR images, then propagate the loss back to both networks. Essentially, this optimizes a supervised network much like MSE-based methods with an additional loss term
+
+corresponding to how fake the discriminator believes the generated images to be. However, this approach is fundamentally limited as it essentially results in an averaging of the MSE-based solution and a GAN-based solution, as we discuss later. In the context of faces, this technique has been incorporated into FSRGAN, resulting in the current perceptual state-of-the-art in face super resolution at $\times 8$ upscaling factors up to resolutions of $128 \times 128$ . Although these methods use a 'generator' and a 'discriminator' as found in GANs, they are trained in a completely supervised fashion; they do not use unsupervised generative models.
+
+# 2.3. Generative Networks
+
+Our algorithm does not simply use GAN-style training; rather, it uses a truly unsupervised GAN (or, generative model more broadly). It searches the latent space of this generative model for latents that map to images that downscale correctly. The quality of cutting-edge generative models is therefore of interest to us.
+
+As GANs have produced the highest-quality high-resolution images of deep generative models to date, we chose to focus on these for our implementation. Here we provide a brief review of relevant GAN methods with high-resolution outputs. Karras et al. [11] presented some of the first high-resolution outputs of deep generative models in their ProGAN algorithm, which grows both the generator and the discriminator in a progressive fashion. Karras et al. [12] further built upon this idea with StyleGAN, aiming to allow for more control in the image synthesis process relative to the black-box methods that came before it. The input latent code is embedded into an intermediate latent space, which then controls the behavior of the synthesis network with adaptive instance normalization applied at each convolutional layer. This network has 18 layers (2 each for each resolution from $4 \times 4$ to $1024 \times 1024$ ). After every other layer, the resolution is progressively increased by a factor of 2. At each layer, new details are introduced stochastically via Gaussian input to the adaptive instance normalization layers. Without perturbing the discriminator or loss functions, this architecture leads to the option for scale-specific mixing and control over the expression of various high-level attributes and variations in the image (e.g. pose, hair, freckles, etc.). Thus, StyleGAN provides a very rich latent space for expressing different features, especially in relation to faces.
+
+# 3. Method
+
+We begin by defining some universal terminology necessary to any formal description of the super-resolution problem. We denote the low-resolution input image by $I_{LR}$ . We aim to learn a conditional generating function $G$ that, when applied to $I_{LR}$ , yields a higher-resolution super-resolved image $I_{SB}$ . Formally, let $I_{LR} \in \mathbb{R}^{m \times n}$ . Then our desired
+
+function $SR$ is a map $\mathbb{R}^{m \times n} \to \mathbb{R}^{M \times N}$ where $M > m$ , $N > n$ . We define the super-resolved image $I_{SR} \in \mathbb{R}^{M \times N}$
+
+$$
+I _ {S R} := S R \left(I _ {L R}\right). \tag {1}
+$$
+
+In a traditional approach to super-resolution, one considers that the low-resolution image could represent the same information as a theoretical high-resolution image $I_{HR} \in \mathbb{R}^{M \times N}$ . The goal is then to best recover this particular $I_{HR}$ given $I_{LR}$ . Such approaches therefore reduce the problem to an optimization task: fit a function $SR$ that minimizes
+
+$$
+L := \left\| I _ {H R} - I _ {S R} \right\| _ {p} ^ {p} \tag {2}
+$$
+
+where $\| \cdot \| _p$ denotes some $l^p$ norm.
+
+In practice, even when trained correctly, these algorithms fail to enhance detail in high variance areas. To see why this is, fix a low resolution image $I_{LR}$ . Let $\mathcal{M}$ be the natural image manifold in $\mathbb{R}^{M \times N}$ , i.e., the subset of $\mathbb{R}^{M \times N}$ that resembles natural realistic images, and let $P$ be a probability distribution over $\mathcal{M}$ describing the likelihood of an image appearing in our dataset. Finally, let $R$ be the set of images that downscale correctly, i.e., $R = \{I \in \mathbb{R}^{N \times M} : DS(I) = I_{LR}\}$ . Then in the limit as the size of our dataset tends to infinity, our expected loss when the algorithm outputs a fixed image $I_{SR}$ is
+
+$$
+\int_ {\mathcal {M} \cap R} \| I _ {H R} - I _ {S R} \| _ {p} ^ {p} d P (I _ {H R}). \tag {3}
+$$
+
+This is minimized when $I_{SR}$ is an $l_p$ average of $I_{HR}$ over $M \cap R$ . In fact, when $p = 2$ , this is minimized when
+
+$$
+I _ {S R} = \int_ {\mathcal {M} \cap R} I _ {H R} d P (I _ {H R}), \tag {4}
+$$
+
+so the optimal $I_{SR}$ is a weighted pixelwise average of the set of high resolution images that downscale properly. As a result, the lack of detail in algorithms that rely only on an $l_p$ norm cannot be fixed simply by changing the architecture of the network. The problem itself has to be rephrased.
+
+We therefore propose a new framework for single image super resolution. Let $\mathcal{M}$ , $DS$ be defined as above. Then for a given LR image $I_{LR} \in \mathbb{R}^{m \times n}$ and $\epsilon > 0$ , our goal is to find an image $I_{SR} \in \mathcal{M}$ with
+
+$$
+\| D S \left(I _ {S R}\right) - I _ {L R} \| _ {p} \leq \epsilon . \tag {5}
+$$
+
+In particular, we can let $\mathcal{R}_{\epsilon} \subset \mathbb{R}^{N \times M}$ be the set of images that downscale properly, i.e.,
+
+$$
+\mathcal {R} _ {\epsilon} = \left\{I \in \mathbb {R} ^ {N \times M}: \| D S (I) - I _ {L R} \| _ {p} ^ {p} \leq \epsilon \right\}. \tag {6}
+$$
+
+Then we are seeking an image $I_{SR} \in \mathcal{M} \cap \mathcal{R}_{\epsilon}$ . The set $\mathcal{M} \cap \mathcal{R}_{\epsilon}$ is the set of feasible solutions, because a solution is not feasible if it did not downscale properly and look realistic.
+
+It is also interesting to note that the intersections $\mathcal{M} \cap \mathcal{R}_{\epsilon}$ and in particular $\mathcal{M} \cap \mathcal{R}_0$ are guaranteed to be nonempty, because they must contain the original HR image (i.e., what traditional methods aim to reconstruct).
+
+
+Figure 4. While traveling from $z_{init}$ to $z_{final}$ in the latent space $\mathcal{L}$ , we travel from $I_{init} \in \mathcal{M}$ to $I_{final} \in \mathcal{M} \cap \mathcal{R}$ .
+
+# 3.1. Downscaling Loss
+
+Central to the problem of super-resolution, unlike general image generation, is the notion of correctness. Traditionally, this has been interpreted to mean how well a particular ground truth image $I_{HR}$ is 'recovered' by the application of the super-resolution algorithm $SR$ to the low-resolution input $I_{LR}$ , as discussed in the related work section above. This is generally measured by some $l_p$ norm between $I_{SR}$ and the ground truth, $I_{HR}$ ; such algorithms only look somewhat like real images because minimizing this metric drives the solution somewhat nearer to the manifold. However, they have no way to ensure that $I_{SR}$ lies close to $\mathcal{M}$ . In contrast, in our framework, we never deviate from $\mathcal{M}$ , so such a metric is not necessary. For us, the critical notion of correctness is how well the generated SR image $I_{SR}$ corresponds to $I_{LR}$ .
+
+We formalize this through the downscaling loss, to explicitly penalize a proposed SR image for deviating from its LR input (similar loss terms have been proposed in [1],[21]). This is inspired by the following: for a proposed SR image to represent the same information as a given LR image, it must downscale to this LR image. That is,
+
+$$
+I _ {L R} \approx D S \left(I _ {S R}\right) = D S \left(S R \left(I _ {L R}\right)\right) \tag {7}
+$$
+
+where $DS(\cdot)$ represents the downscaling function.
+
+Our downscaling loss therefore penalizes $SR$ the more its outputs violate this,
+
+$$
+L _ {D S} \left(I _ {S R}, I _ {L R}\right) := \| D S \left(I _ {S R}\right) - I _ {L R} \| _ {p} ^ {p}. \tag {8}
+$$
+
+It is important to note that the downscaling loss can be used in both supervised and unsupervised models for super-resolution; it does not depend on an HR reference image.
+
+# 3.2. Latent Space Exploration
+
+How might we find regions of the natural image manifold $\mathcal{M}$ that map to the correct LR image under the downscaling
+
+operator? If we had a differentiable parameterization of the manifold, we could progress along the manifold to these regions by using the downscaling loss to guide our search. In that case, images found would be guaranteed to be high resolution as they came from the HR image manifold, while also being correct as they would downscale to the LR input.
+
+In reality, we do not have such convenient, perfect parameterizations of manifolds. However, we can approximate such a parameterization by using techniques from unsupervised learning. In particular, much of the field of deep generative modeling (e.g. VAEs, flow-based models, and GANs) is concerned with creating models that map from some latent space to a given manifold of interest. By leveraging advances in generative modeling, we can even use pretrained models without the need to train our own network. Some prior work has aimed to find vectors in the latent space of a generative model to accomplish a task; see [1] for creating embeddings and [5] in the context of compressed sensing. (However, as we describe later, this work does not actually search in a way that yields realistic outputs as intended.) In this work, we focus on GANs, as recent work in this area has resulted in the highest quality image-generation among unsupervised models.
+
+Regardless of its architecture, let the generator be called $G$ , and let the latent space be $\mathcal{L}$ . Ideally, we could approximate $\mathcal{M}$ by the image of $G$ , which would allow us to rephrase the problem above as the following: find a latent vector $z \in \mathcal{L}$ with
+
+$$
+\| D S (G (z)) - I _ {L R} \| _ {p} ^ {p} \leq \epsilon . \tag {9}
+$$
+
+Unfortunately, in most generative models, simply requiring that $z \in \mathcal{L}$ does not guarantee that $G(z) \in \mathcal{M}$ ; rather, such methods use an imposed prior on $\mathcal{L}$ . In order to ensure $G(z) \in \mathcal{M}$ , we must be in a region of $\mathcal{L}$ with high probability under the chosen prior. One idea to encourage the latent to be in the region of high probability is to add a loss term for the negative log-likelihood of the prior. In the case of a Gaussian prior, this takes the form of $l_{2}$ regularization. Indeed, this is how the previously mentioned work [5] attempts to address this issue. However, this idea does not actually accomplish the goal. Such a penalty forces vectors towards 0, but most of the mass of a high-dimensional Gaussian is located near the surface of a sphere of radius $\sqrt{d}$ (see [22]). To get around this, we observed that we could replace the Gaussian prior on $\mathbb{R}^d$ with a uniform prior on $\sqrt{d}\mathbb{S}^{d - 1}$ . This approximation can be used for any method with high dimensional spherical Gaussian priors.
+
+We can let $\mathcal{L}' = \sqrt{d} S^{d-1}$ (where $S^{d-1} \subset \mathbb{R}^d$ is the unit sphere in $d$ dimensional Euclidean space) and reduce the problem above to finding a $z \in \mathcal{L}'$ that satisfies Equation (9). This reduces the problem from gradient descent in the entire latent space to projected gradient descent on a sphere.
+
+# 4. Experiments
+
+We designed various experiments to assess our method. We focus on the popular problem of face hallucination, enhanced by recent advances in GANs applied to face generation. In particular, we use Karras et al.'s pretrained Face StyleGAN (trained on the Flickr Face HQ Dataset, or FFHQ) [12]. For each experiment, we used 100 steps of spherical gradient descent with a learning rate of 0.4 starting with a random initialization. Each image was therefore generated in $\sim 5$ seconds on a single NVIDIA V100 GPU.
+
+# 4.1.Data
+
+We evaluated our procedure on the well-known high-resolution face dataset CelebA HQ. (Note: this is not to be confused with CelebA, which is of substantially lower resolution.) We performed these experiments using scale factors of $64 \times$ , $32 \times$ , and $8 \times$ . For our qualitative comparisons, we upscale at scale factors of both $8 \times$ and $64 \times$ , i.e., from $16 \times 16$ to $128 \times 128$ resolution images and $1024 \times 1024$ resolution images. The state-of-the-art for face super-resolution in the literature prior to this point was limited to a maximum of $8 \times$ upscaling to a resolution of $128 \times 128$ , thus making it impossible to directly make quantitative comparisons at high resolutions and scale factors. We followed the traditional approach of training the supervised methods on CelebA HQ. We tried comparing with supervised methods trained on FFHQ, but they failed to generalize and yielded very blurry and distorted results when evaluated on CelebA HQ; therefore, in order to compare our method with the best existing methods, we elected to train the supervised models on CelebA HQ instead of FFHQ.
+
+# 4.2. Qualitative Image Results
+
+Figure 5 shows qualitative results to demonstrate the visual quality of the images from our method. We observe levels of detail that far surpass competing methods, as exemplified by certain high frequency regions (features like eyes or lips). More examples and full-resolution images are in the appendix.
+
+# 4.3.Quantitative Comparison
+
+Here we present a quantitative comparison with state-of-the-art face super-resolution methods. Due to constraints on the peak resolution that previous methods can handle, evaluation methods were limited, as detailed below.
+
+We conducted a mean-opinion-score (MOS) test as is common in the perceptual super-resolution literature [15, 13]. For this, we had 40 raters examine images upscaled by 6 different methods (nearest-neighbors, bicubic, FSRNet, FSRGAN, and our PULSE). For this comparison, we used a scale factor of 8 and a maximum resolution of $128 \times 128$ , despite our method's ability to go substantially higher, due
+
+
+Figure 5. Comparison of PULSE with bicubic upscaling, FSRNet, and FSRGAN. In the first image, PULSE adds a messy patch in the hair to match the two dark diagonal pixels visible in the middle of the zoomed in LR image.
+
+| HR | Nearest | Bicubic | FSRNet | FSRGAN | PULSE |
| 3.74 | 1.01 | 1.34 | 2.77 | 2.92 | 3.60 |
+
+Table 1. MOS Score for various algorithms at ${128} \times {128}$ . Higher is better.
+
+to this being the maximum limit for the competing methods. After being exposed to 20 examples of a 1 (worst) rating exemplified by nearest-neighbors upsampling, and a 5 (best) rating exemplified by high-quality HR images, raters provided a score from 1-5 for each of the 240 images. All images fell within the appropriate $\epsilon = 1e - 3$ for the downscaling loss. The results are displayed in Table 1.
+
+PULSE outperformed the other methods and its score approached that of the HR dataset. Note that the HR's 3.74 average image quality reflects the fact that some of the HR images in the dataset had noticeable artifacts. All pairwise differences were highly statistically significant ( $p < 10^{-5}$ for all 15 comparisons) by the Mann-Whitney-U test. The results demonstrate that PULSE outperforms current methods in generating perceptually convincing images that downscale correctly.
+
+| HR | Nearest | Bicubic | PULSE |
| 3.90 | 12.48 | 7.06 | 2.47 |
+
+Table 2. NIQE Score for various algorithms at $1024 \times 1024$ . Lower is better.
+
+To provide another measure of perceptual quality, we evaluated the Naturalness Image Quality Evaluator (NIQE) score [16], previously used in perceptual super-resolution [10, 4, 24]. This no-reference metric extracts features from images and uses them to compute a perceptual index (lower is better). As such, however, it only yields meaningful results at higher resolutions. This precluded direct comparison with FSRNet and FSRGAN, which produce images of at most $128 \times 128$ pixels.
+
+We evaluated NIQE scores for each method at a resolution of $1024 \times 1024$ from an input resolution of $16 \times 16$ , for a scale factor of 64. All images for each method fell within the appropriate $\epsilon = 1e - 3$ for the downscaling loss. The results are in Table 2. PULSE surpasses even the CelebA HQ images in terms of NIQE here, further showing the perceptual quality of PULSE's generated images. This is possible as NIQE is a no-reference metric which solely consid-
+
+
+Figure 6. (x32) We show the robustness of PULSE under various degradation operators. In particular, these are downscaling followed by Gaussian noise (std=25, 50), motion blur in random directions with length 100 followed by downscaling, and downscaling followed by salt-and-pepper noise with a density of 0.05.
+
+ers perceptual quality; unlike reference metrics like PSNR, performance is not bounded above by that of the HR images typically used as reference.
+
+# 4.4. Image Sampling
+
+As referenced earlier, we initialize the point we start at in the latent space by picking a random point on the sphere. We found that we did not encounter any issues with convergence from random initializations. In fact, this provided us one method of creating many different outputs with high-level feature differences: starting with different initializations. An example of the variation in outputs yielded by this process can be observed in Figure 3.
+
+Furthermore, by utilizing a generative model with inherent stochasticity, we found we could sample faces with fine-level variation that downscale correctly; this procedure can be repeated indefinitely. In our implementation, we accomplish this by resampling the noise inputs that StyleGAN uses to fill in details within the image.
+
+# 5. Robustness
+
+The main aim of our algorithm is to perform perceptually realistic super-resolution with a known downscaling operator. However, we find that even for a variety of unknown downscaling operators, we can apply our method using bicubic downscaling as a stand-in for more substantial degradations applied—see Figure 6. In this case, we provide only the degraded low-resolution image as input. We find that the output downscales approximately to the true, non-noisy LR image (that is, the bicubically downscaled HR) rather than to the degraded LR given as input. This is desired behavior, as we would not want to create an image that
+
+matches the additional degradations. PULSE thus implicitly denoises images. This is due to the fact that we restrict the outputs to only realistic faces, which in turn can only downscale to reasonable LR faces. Traditional supervised networks, on the other hand, are sensitive to added noise and changes in the domain and must therefore be explicitly trained with the noisy inputs (e.g., [3]).
+
+# 6. Discussion and Future Work
+
+Through these experiments, we find that PULSE produces perceptually superior images that also downscale correctly. PULSE accomplishes this at resolutions previously unseen in the literature. All of this is done with unsupervised methods, removing the need for training on paired datasets of LR-HR images. The visual quality of our images as well as MOS and NIQE scores demonstrate that our proposed formulation of the super-resolution problem corresponds with human intuition. Starting with a pre-trained GAN, our method operates only at test time, generating each image in about 5 seconds on a single GPU.
+
+One reasonable fear when using GANs for this purpose may be that while they generate sharp images, they need not cover the whole distribution as, e.g., flow-based models must. However, we did not observe any practical manifestation of this in our experiments. Advances in generative modeling will allow us to cover larger distributions (instead of just faces), and generate higher resolution images.
+
+Another potential concern that may arise when considering this unsupervised approach is the case of an unknown downscaling function. In this work, we focused on the most prominent SR use case: on bicubically downscaled images. In fact, in many use cases, the downscaling function is either known analytically (e.g., bicubic) or is a (known) function of hardware. However, methods have shown that the degradations can be estimated in entirely unsupervised fashions for arbitrary LR images (that is, not necessarily those which have been downscaled bicubically) [6, 25]. Through such methods, we can retain the algorithm's lack of supervision; integrating these is an interesting topic for future work.
+
+# 7. Conclusions
+
+We have established a novel methodology for image super-resolution as well as a new problem formulation. This opens up a new avenue for super-resolution methods along different tracks than traditional, supervised work with CNNs. The approach is not limited to a particular degradation operator seen during training, and it always maintains high perceptual quality.
+
+Acknowledgments: Funding was provided by the Lord Foundation of North Carolina and the Duke Department of Computer Science. Thank you to the Google Cloud Platform research credits program.
+
+# References
+
+[1] Rameen Abdul, Yipeng Qin, and Peter Wonka. Image2StyleGAN: How to embed images into the StyleGAN latent space? In Proceedings of the International Conference on Computer Vision (ICCV), 2019.
+[2] Simon Baker and Takeo Kanade. Limits on super-resolution and how to break them. In Proceedings IEEE Conference on Computer Vision and Pattern Recognition (CVPR), volume 2, pages 372-379. IEEE, 2000.
+[3] Yijie Bei, Alexandru Damian, Shijia Hu, Sachit Menon, Nikhil Ravi, and Cynthia Rudin. New techniques for preserving global structure and denoising with low information loss in single-image super-resolution. In 2018 IEEE Conference on Computer Vision and Pattern Recognition Workshops, CVPR Workshops 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 874-881. IEEE Computer Society, 2018.
+[4] Yochai Blau, Roey Mechrez, Radu Timofte, Tomer Michaeli, and Lihi Zelnik-Manor. The 2018 PIRM challenge on perceptual image super-resolution. In The European Conference on Computer Vision (ECCV) Workshops, September 2018.
+[5] Ashish Bora, Ajil Jalal, Eric Price, and Alexandros G. Dismakis. Compressed sensing using generative models. In Proceedings of the 34th International Conference on Machine Learning (ICML), 2017.
+[6] Adrian Bulat, Jing Yang, and Georgios Tzimiropoulos. To learn image super-resolution, use a gan to learn how to do image degradation first. In Proceedings of the European Conference on Computer Vision (ECCV), pages 185-200, 2018.
+[7] Yu Chen, Ying Tai, Xiaoming Liu, Chunhua Shen, and Jian Yang. Fsrnet: End-to-end learning face super-resolution with facial priors. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2492-2501, 2018.
+[8] Chao Dong, Chen Change Loy, Kaiming He, and Xiaou Tang. Learning a deep convolutional network for image super-resolution. In Proceedings of the European Conference on Computer Vision (ECCV), pages 184-199, 2014.
+[9] 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.
+[10] Seokhwa Jeong, Inhye Yoon, and Joonki Paik. Multiframe example-based super-resolution using locally directional self-similarity. IEEE Transactions on Consumer Electronics, 61(3):353-358, 2015.
+[11] Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of GANs for improved quality, stability, and variation. CoRR, abs/1710.10196, 2018. Appeared at the 6th Annual International Conference on Learning Representations.
+[12] 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 (CVPR), pages 4401-4410, 2019.
+
+[13] Deokyun Kim, Minseon Kim, Gihyun Kwon, and Dae-Shik Kim. Progressive face super-resolution via attention to facial landmark. In Proceedings of the 30th British Machine Vision Conference (BMVC), 2019.
+[14] Jiwon Kim, Jung Kwon Lee, and Kyoung Mu Lee. Accurate image super-resolution using very deep convolutional networks. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016.
+[15] 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 Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4681-4690, 2017.
+[16] A. Mittal, R. Soundararajan, and A. C. Bovik. Making a "completely blind" image quality analyzer. IEEE Signal Processing Letters, 20(3):209-212, March 2013.
+[17] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In Proceedings of the International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 234-241. Springer, 2015.
+[18] Wenzhe Shi, Jose Caballero, Ferenc Huszar, 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 Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2016.
+[19] Karen Simonyan and Andrew Zisserman. Two-stream convolutional networks for action recognition in videos. In Advances in Neural Information Processing Systems, pages 568-576, 2014.
+[20] Amanjot Singh and Jagroop Singh Sidhu. Super resolution applications in modern digital image processing. International Journal of Computer Applications, 150(2):0975-8887, 2016.
+[21] Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. Deep image prior. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018.
+[22] Roman Vershynin. Random Vectors in High Dimensions, page 38-69. Cambridge Series in Statistical and Probabilistic Mathematics. Cambridge University Press, 2018.
+[23] Nannan Wang, Dacheng Tao, Xinbo Gao, Xuelong Li, and Jie Li. A comprehensive survey to face hallucination. International Journal of Computer Vision, 106(1):9-30, 2014.
+[24] 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 Proceedings of the European Conference on Computer Vision (ECCV) Workshops, September 2018.
+[25] Tianyu Zhao, Changqing Zhang, Wenqi Ren, Dongwei Ren, and Qinghua Hu. Unsupervised degradation learning for single image super-resolution. arXiv preprint arXiv:1812.04240, 2018.
\ No newline at end of file
diff --git a/pulseselfsupervisedphotoupsamplingvialatentspaceexplorationofgenerativemodels/images.zip b/pulseselfsupervisedphotoupsamplingvialatentspaceexplorationofgenerativemodels/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..3261e31c99f2649975fb757cfbc56e0a369b8682
--- /dev/null
+++ b/pulseselfsupervisedphotoupsamplingvialatentspaceexplorationofgenerativemodels/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:090cdb904c2efd03097c3a7163a1062e6b784960f64a09b0ff487289e8cbdc05
+size 420119
diff --git a/pulseselfsupervisedphotoupsamplingvialatentspaceexplorationofgenerativemodels/layout.json b/pulseselfsupervisedphotoupsamplingvialatentspaceexplorationofgenerativemodels/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..d0bc60fc0b48c9b869abe9cd52f2ed5ec6d3227e
--- /dev/null
+++ b/pulseselfsupervisedphotoupsamplingvialatentspaceexplorationofgenerativemodels/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:46b5a2eb914551ad1e7b74bddba98bcafefeb333a60d08731544600c2378dfde
+size 329317
diff --git a/pvn3dadeeppointwise3dkeypointsvotingnetworkfor6dofposeestimation/9063d001-7450-4022-8a85-9933f23b7c2d_content_list.json b/pvn3dadeeppointwise3dkeypointsvotingnetworkfor6dofposeestimation/9063d001-7450-4022-8a85-9933f23b7c2d_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..81fbeea23a807bfe15fc9a98e74d306b9ba25927
--- /dev/null
+++ b/pvn3dadeeppointwise3dkeypointsvotingnetworkfor6dofposeestimation/9063d001-7450-4022-8a85-9933f23b7c2d_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dcd5d3f1769dc2c7e679a790105dee9e679baf42b0c304b616e7b75a1f62871f
+size 82317
diff --git a/pvn3dadeeppointwise3dkeypointsvotingnetworkfor6dofposeestimation/9063d001-7450-4022-8a85-9933f23b7c2d_model.json b/pvn3dadeeppointwise3dkeypointsvotingnetworkfor6dofposeestimation/9063d001-7450-4022-8a85-9933f23b7c2d_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..b125e109956fca57c28f6c4418facb5505c70aaa
--- /dev/null
+++ b/pvn3dadeeppointwise3dkeypointsvotingnetworkfor6dofposeestimation/9063d001-7450-4022-8a85-9933f23b7c2d_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:11b97b7d5f9f67e6f14fc87b45654add10546a26835fbd05ca8784ebdca6c51d
+size 101628
diff --git a/pvn3dadeeppointwise3dkeypointsvotingnetworkfor6dofposeestimation/9063d001-7450-4022-8a85-9933f23b7c2d_origin.pdf b/pvn3dadeeppointwise3dkeypointsvotingnetworkfor6dofposeestimation/9063d001-7450-4022-8a85-9933f23b7c2d_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..f07702e9106a138cba820b11f81711a861af4c48
--- /dev/null
+++ b/pvn3dadeeppointwise3dkeypointsvotingnetworkfor6dofposeestimation/9063d001-7450-4022-8a85-9933f23b7c2d_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:034477a4bb5f65a726ceef72c45c841ed4ed2dc519d8472bbdbcb60a649dbff5
+size 1759709
diff --git a/pvn3dadeeppointwise3dkeypointsvotingnetworkfor6dofposeestimation/full.md b/pvn3dadeeppointwise3dkeypointsvotingnetworkfor6dofposeestimation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..9667a1fbbf38b54a1d1c9ba687a2d548bafdbf51
--- /dev/null
+++ b/pvn3dadeeppointwise3dkeypointsvotingnetworkfor6dofposeestimation/full.md
@@ -0,0 +1,314 @@
+# PVN3D: A Deep Point-wise 3D Keypoints Voting Network for 6DoF Pose Estimation
+
+Yisheng He $^{1}$ Wei Sun $^{2}$ Haibin Huang $^{3}$ Jianran Liu $^{2}$ Haoqiang Fan $^{2}$ Jian Sun $^{2}$
+
+$^{1}$ Hong Kong University of Science and Technology
+
+$^{2}$ Megvii Inc. $^{3}$ Kuaishou Technology
+
+# Abstract
+
+In this work, we present a novel data-driven method for robust 6DoF object pose estimation from a single RGBD image. Unlike previous methods that directly regressing pose parameters, we tackle this challenging task with a keypoint-based approach. Specifically, we propose a deep Hough voting network to detect 3D keypoints of objects and then estimate the 6D pose parameters within a least-squares fitting manner. Our method is a natural extension of 2Dkeypoint approaches that successfully work on RGB based 6DoF estimation. It allows us to fully utilize the geometric constraint of rigid objects with the extra depth information and is easy for a network to learn and optimize. Extensive experiments were conducted to demonstrate the effectiveness of 3D-keypoint detection in the 6D pose estimation task. Experimental results also show our method outperforms the state-of-the-art methods by large margins on several benchmarks. Code and video are available at https://github.com/ethnhe/PVN3D.git.
+
+# 1. INTRODUCTION
+
+In this paper, we study the problem of 6DoF pose estimation, i.e. recognize the 3D location and orientation of an object in a canonical frame. It is an important component in many real-world applications, such as robotic grasping and manipulation [6, 48, 55], autonomous driving [11, 5, 53], augmented reality [31] and so on.
+
+6DoF estimation has been proven a quite challenging problem due to variations of lighting, sensor noise, occlusion of scenes and truncation of objects. Traditional methods like [19, 30] used hand-crafted features to extract the correspondence between images and object mesh models. Such empirical human-designed features would suffer from limited performance with changing illumination conditions
+
+
+(a) Input RGBD image
+
+
+(b) Translation offsets to the keypoint
+
+
+(c) Voting & clustering
+
+
+(d) 3D keypoints (cam.)
+Figure 1. Pipeline of PVN3D: With an input RGBD image (a), we use a deep Hough voting network to predict the per-point translation offset to the selected keypoint (b). Each point on the same object votes for the selected keypoint and the center of the cluster is selected as a predicted keypoint (c). A least-squares fitting method is then applied to estimate 6D pose parameters (d)-(e). The model transformed by estimated pose parameters is shown in Figure (f).
+
+
+(e) 3D keypoints (obj.)
+
+
+(f) Aligned model
+
+and scenes with heavy occlusion. More recently, with the explosive growth of machine learning and deep learning techniques, Deep Neural Network (DNN) based methods have been introduced into this task and reveal promising improvements. [50, 52] proposed to regress rotation and translation of objects directly with DNNs. However, these methods usually had poor generalization due to the nonlinearity of the rotation space explained by [37]. Instead, recent works utilized DNNs to detect 2D keypoints of an object, and computed 6D pose parameters with Perspective-Point (PnP) algorithms [37, 36, 41, 47]. Although these two-stage approaches performed more stable, most of them were built on top of the 2D projection. Errors that are small in projection can be large in real 3D space. Also, different keypoints in 3D space may be overlapped after 2D projection, making them hard to be distinguished. Moreover, geometric constraint information of rigid objects would be
+
+partially lost due to projection.
+
+On the other hand, with the development of inexpensive RGBD sensors, more and more RGBD datasets are available. The extra depth information allows 2D algorithms to be extend into 3D space with better performance, like PointFusion [53], Frustum pointnets[39] and VoteNet[38]. Towards this end, we extend 2D-keypoint-based approaches to 3D keypoint to fully utilize geometric constraint information of rigid objects and significantly improved the accuracy of 6DoF estimation. More specifically, we develop a deep 3D keypoints Hough voting neural network to learn the point-wise 3D offset and vote for 3D keypoints, as shown in Figure 1. Our key observation is a simple geometric property that positional relationship between two points of a rigid object in 3D space is fixed. Hence, given a visible point on the object surface, its coordinate and orientation can be obtained from depth images and its translation offset to selected keypoint is also fixed and learnable. Meanwhile, learning point-wise Euclidean offset is straightforward for network and easier to optimize.
+
+To handle scenes with multiple objects, we also introduce an instance semantic segmentation module into the network and jointly optimized with keypoint voting. We find that jointly training these tasks boosts the performance of each other. Specifically, semantic information improves translation offset learning by identifying which part a point belongs to and the size information contained in translation offsets helps the model to distinguish objects with similar appearance but different size.
+
+We further conduct experiments on YCB-Video and LineMOD datasets to evaluate our method. Experimental results show that our approach outperforms current state-of-the-art methods by a significant margin.
+
+To summarize, the main contributions of this work are as follows:
+
+- A novel deep 3D keypoints Hough voting network with instance semantic segmentation for 6DoF Pose Estimation of single RGBD image.
+- State-of-the-art 6DoF pose estimation performance on YCB and LineMOD datasets.
+- An in-depth analysis of our 3D-keypoint-based method and comparison with previous approaches, demonstrating that 3D-keypoint is a key factor to boost performance for 6DoF pose estimation. We also show that jointly training 3D-keypoint and semantic segmentation can further improve the performance.
+
+# 2. Related Work
+
+# 2.1. Holistic Methods
+
+Holistic methods directly estimate the 3D position and orientation of objects in a given image. Classical template
+
+based methods construct rigid templates and scan through the image to compute the best matched pose [21, 13, 17]. Such templates are not robust to clustered scenes. Recently, some Deep Neural Network (DNN) based methods are proposed to directly regress the 6D pose of cameras or objects [52, 50, 14]. However, non-linearity of the rotation space making the data-driven DNN hard to learn and generalize. To address this problem, some approaches use post-refinement procedure [26, 50] to refine the pose iteratively, others discrete the rotation space and simplify it to be a classification problem [49, 43, 45]. For the latter approach, post-refinement processes are still required to compensate for the accuracy sacrificed by the discretization.
+
+# 2.2. Keypoint-based Methods
+
+Current keypoint-based methods first detect the 2D keypoints of an object in the images, then utilize a PnP algorithm to estimate the 6D pose. Classical methods [30, 42, 2] are able to detect 2D keypoint of objects with rich texture efficiently. However, they can not handle texture-less objects. With the development of deep learning techniques, some neural-network-based 2D keypoints detection methods are proposed. [41, 47, 20] directly regress the 2D coordinate of the keypoints, while [33, 24, 34] use heatmaps to locate the 2D keypoints. To better deal with truncated and occluded scenes, [37] proposes a pixel-wise voting network to vote for the 2D keypoints location. These 2D keypoint based methods aim to minimize the 2D projection errors of objects. However, errors that are small in projection may be large in the real 3D world. [46] extracts 3D keypoints from two views of synthetic RGB images to recover 3D poses. Nevertheless, they only utilize the RGB images, on which geometric constraint information of rigid objects partly lost due to projection, and different keypoints in 3D space may be overlapped and hard to be distinguished after projected to 2D. The advent of cheap RGBD sensors enables us to do everything in 3D with captured depth images.
+
+# 2.3. Dense Correspondence Methods
+
+These approach utilize Hough voting scheme [28, 44, 12] to vote for final results with per-pixel prediction. They either use random forest [3, 32] or CNNs [23, 9, 27, 35, 51] to extract feature and predict the corresponding 3D object coordinates for each pixel and then vote for the final pose results. Such dense 2D-3D correspondence making these methods robust to occluded scenes, while the output space is quite large. PVNet [37] uses per-pixel voting for 2D keypoints to combine the advantages of Dense methods and keypoint-based methods. We further extend this method to 3D keypoints with extra depth information and fully utilize geometric constraints of rigid objects.
+
+
+Figure 2. Overview of PVN3D. The Feature Extraction module extracts the per-point feature from an RGBD image. They are fed into module $\mathcal{M}_{\kappa}$ , $\mathcal{M}_{\mathcal{C}}$ and $\mathcal{M}_{S}$ to predict the translation offsets to keypoints, center point and semantic labels of each point respectively. A clustering algorithm is then applied to distinguish different instances with the same semantic label and points on the same instance vote for their target keypoints. Finally, a least-square fitting algorithm is applied to the predicted keypoints to estimate 6DoF pose parameters.
+
+# 3. Proposed Method
+
+Given an RGBD image, the task of 6DoF pose estimation is to estimate the rigid transformation that transforms an object from its object world coordinate system to the camera world coordinate system. Such transformation consists of a 3D rotation $\mathbf{R} \in SO(3)$ and a translation $\mathbf{t} \in \mathbb{R}^3$ .
+
+# 3.1. Overview
+
+To tackle this task, we develop a novel approach based on a deep 3D Hough voting network, as shown in Figure 2. The proposed method is a two-stage pipeline with 3D keypoint detection followed by a pose parameters fitting module. More specifically, taking an RGBD image as input, a feature extraction module would be used to fuse the appearance feature and geometry information. The learned feature would be fed into a 3D keypoint detection module $\mathcal{M}_{\mathcal{K}}$ which was trained to predict the per-point offsets w.r.t keypoints. Additionally, we include an instance segmentation module for multiple objects handling where a semantic segmentation module $\mathcal{M}_S$ predicts the per-point semantic label, and a center voting module $\mathcal{M}_{\mathcal{C}}$ predicts the per-point offsets to object center. With the learned per-point offset, the clustering algorithm [7] is applied to distinguish different instances with the same semantic label and points on the same instance vote for their target keypoints. Finally, a least-square fitting algorithm is applied to the predicted keypoints to estimate 6DoF pose parameters.
+
+# 3.2. Learning Algorithm
+
+The goal of our learning algorithm is to train a 3D keypoint detection module $\mathcal{M}_{\mathcal{K}}$ for offset prediction as well as a semantic segmentation module $\mathcal{M}_{\mathcal{S}}$ and center voting module $\mathcal{M}_{\mathcal{C}}$ for instance-level segmentation. This naturally makes training our network multi-task learning, which is
+
+achieved by a supervised loss we designed and several training details we adopt.
+
+3D Keypoints Detection Module. As shown in Figure 2, with the per-point feature extracted by the feature extraction module, a 3D keypoint detection module $\mathcal{M}_{\mathcal{K}}$ is used to detect the 3D keypoints of each object. To be specific, $\mathcal{M}_{\mathcal{K}}$ predicts the per-point Euclidean translation offset from visible points to target keypoints. These visible points, together with the predicted offsets then vote for the target keypoints. The voted points are then gathered by clustering algorithms and centers of clusters are selected as the voted keypoints.
+
+We give a deeper view of $\mathcal{M}_{\mathcal{K}}$ as follows. Given a set of visible seed points $\{p_i\}_{i=1}^N$ and a set of selected keypoints $\{kp_j\}_{j=1}^M$ belonging to the same object instance $I$ , we denote $p_i = [x_i; f_i]$ with $x_i$ the 3D coordinate and $f_i$ the extracted feature. We denote $kp_j = [y_j]$ with $y_j$ the 3D coordinate of the keypoint. $\mathcal{M}_{\mathcal{K}}$ absorbs feature $f_i$ of each seed point and generates translation offset $\{of_i^j\}_{j=1}^M$ for them, where $of_i^j$ denotes the translation offset from the $i_{th}$ seed point to the $j_{th}$ keypoint. Then the voted keypoint can be denoted as $vkp_i^j = x_i + of_i^j$ . To supervise the learning of $of_i^j$ , we apply an L1 loss:
+
+$$
+L _ {\text {k e y p o i n t s}} = \frac {1}{N} \sum_ {i = 1} ^ {N} \sum_ {j = 1} ^ {M} \left| \left| o f _ {i} ^ {j} - o f _ {i} ^ {j *} \right| \right| \mathbb {I} \left(p _ {i} \in I\right) \tag {1}
+$$
+
+where $o f_{i}^{j*}$ is the ground truth translation offset; $M$ is the total number of selected target keypoints; $N$ is the total number of seeds and $\mathbb{I}$ is an indicating function equates to 1 only when point $p_i$ belongs to instance $I$ , and 0 otherwise.
+
+Instance Semantic Segmentation Module. To handle scenes with multi objects, previous methods [50, 53, 39] utilize existing detection or semantic segmentation architecture to pre-process the image and obtain RoIs (regions
+
+of interest) containing only single objects. Then build the pose estimation models with the extracted ROIs as input to simplify the problem. However, as we have formulated the pose estimation problem to first detect keypoints of objects with a translation offsets to keypoints learning module, we believe that the two tasks can enhance the performance of each other. On the one hand, the semantic segmentation module forces the model to extract global and local features on instance to distinguish different objects, which helps to locate a point on the object and does good to the keypoint offset reasoning procedure. On the other hand, size information learned for the prediction of offsets to the keypoints helps distinguish objects with similar appearance but different in size. Under such observation, we introduce a pointwise instance semantic segmentation module $\mathcal{M}_S$ into the network and jointly optimized it with module $\mathcal{M}_{\mathcal{K}}$ .
+
+To be specific, given the per-point extracted feature, the semantic segmentation module $\mathcal{M}_S$ predicts the per-point semantic labels. We supervise this module with Focal Loss [29]:
+
+$$
+L _ {\text {s e m a n t i c}} = - \alpha (1 - q _ {i}) ^ {\gamma} \log \left(q _ {i}\right) \tag {2}
+$$
+
+$$
+w h e r e q _ {i} = c _ {i} \cdot l _ {i}
+$$
+
+with $\alpha$ the $\alpha$ -balance parameter, $\gamma$ the focusing parameter, $c_{i}$ the predicted confidence for the $i_{th}$ point belongs to each class and $l_{i}$ the one-hot representation of ground true class label.
+
+Meanwhile, the center voting module $\mathcal{M}_{\mathcal{C}}$ is applied to vote for centers of different objects so as to distinguish different instances. We propose such a module under the inspiration of CenterNet [10] but further extend the 2D center point to 3D. Compared to 2D center points, different center points in 3D won't suffer from occlusion due to camera projection in some viewpoints. Since we can regard the center point as a special keypoint of an object, module $\mathcal{M}_{\mathcal{C}}$ is similar to the 3D keypoint detection module $\mathcal{M}_{\mathcal{K}}$ . It takes in the per-point feature but predicts the Euclidean translation offset $\Delta x_{i}$ to the center of objects it belongs to. The learning of $\Delta x_{i}$ is also supervised by an L1 loss:
+
+$$
+L _ {\text {c e n t e r}} = \frac {1}{N} \sum_ {i = 1} ^ {N} \left\| \Delta x _ {i} - \Delta x _ {i} ^ {*} \right\| \mathbb {I} \left(p _ {i} \in I\right) \tag {3}
+$$
+
+where $N$ denotes the total number of seed points on the object surface and $\Delta x_{i}^{*}$ is the ground truth translation offset from seed $p_i$ to the instance center. $\mathbb{I}$ is an indication function indicating whether point $p_i$ belongs to that instance.
+
+Multi-task loss. We supervise the learning of module $\mathcal{M}_{\mathcal{K}}, \mathcal{M}_{\mathcal{S}}$ and $\mathcal{M}_{\mathcal{C}}$ jointly with a multi-tasks loss:
+
+$$
+L _ {\text {m u l t i - t a k}} = \lambda_ {1} L _ {\text {k e y p o i n t s}} + \lambda_ {2} L _ {\text {s e m a n t i c}} + \lambda_ {3} L _ {\text {c e n t e r}} \tag {4}
+$$
+
+where $\lambda_{1},\lambda_{2}$ and $\lambda_{3}$ are the weights for each task. Experimental results show that jointly training these tasks boosts the performance of each other.
+
+# 3.3. Training and Implementation
+
+Network Architecture. The first part in Figure 2 is a feature extraction module. In this module, a PSPNet [54] with an ImageNet [8] pretrained ResNet34 [16] is applied to extract the appearance information in RGB images. A PointNet++ [40] extracts the geometry information in point clouds and their normal maps. They are further fused by a DenseFusion block [50] to obtain the combined feature for each point. After the process of this module, each point $p_i$ has a feature $f_i \in \mathbb{R}^C$ of $C$ dimension. The following module $\mathcal{M}_{\mathcal{K}}, \mathcal{M}_S$ and $\mathcal{M}_{\mathcal{C}}$ are composed of shared Multi-Layer Perceptrons (MLPs) shown in Figure 2. We sample $N = 12288$ points (pixels) for each frame of RGBD image and set $\lambda_1 = \lambda_2 = \lambda_3 = 1.0$ in Formula 4.
+
+Keypoint Selection. The 3D keypoints are selected from 3D object models. In 3D object detection algorithms [39, 53, 38], eight corners of the 3D bounding box are selected. However, These bounding box corners are virtual points that are far away from points on the object, making point-based networks difficult to aggregate scene context in the vicinity of them. The longer distance to the object points results in larger localization errors, which may do harm to the compute of 6D pose parameters. Instead, points selected from the object surface will be quite better. Therefore, we follow [37] and use the farthest point sampling (FPS) algorithm to select keypoints on the mesh. Specifically, we initial the selection procedure by adding the center point of the object model in an empty keypoint set. Then update it by adding a new point on the mesh that is farthest to all the selected keypoints repeatedly, until $M$ keypoints are obtained.
+
+Least-Squares Fitting. Given two point sets of an object, one from the $M$ detected keypoints $\{kp_j\}_{j=1}^M$ in the camera coordinate system, and another from their corresponding points $\{kp_j'\}_{j=1}^M$ in the object coordinate system, the 6D pose estimation module computes the pose parameters $(R, t)$ with a least-squares fitting algorithm [1], which finds $R$ and $t$ by minimizing the following square loss:
+
+$$
+L _ {\text {l e a s t - s q u a r e s}} = \sum_ {j = 1} ^ {M} \left\| k p _ {j} - \left(R \cdot k p _ {j} ^ {\prime} + t\right) \right\| ^ {2} \tag {5}
+$$
+
+where $M$ is the number of selected keypoints of a object.
+
+# 4. Experiments
+
+# 4.1. Datasets
+
+We evaluate our method on two benchmark datasets.
+
+YCB-Video Dataset contains 21 YCB [4] objects of varying shape and texture. 92 RGBD videos of the subset of objects were captured and annotated with 6D pose and instance semantic mask. The varying lighting conditions, significant image noise, and occlusions make this dataset chal
+
+ | Without Iterative Refinement | With Iterative Refinement |
| PoseCNN[52] | DF(per-pixel)[50] | PVN3D | PoseCNN+ICP[52] | DF(iterative)[50] | PVN3D+ICP |
| ADDS | ADD(S) | ADDS | ADD(S) | ADDS | ADD(S) | ADDS | ADD(S) | ADDS | ADD(S) | ADDS | ADD(S) |
| 002/master_chef_CAN | 83.9 | 50.2 | 95.3 | 70.7 | 96.0 | 80.5 | 95.8 | 68.1 | 96.4 | 73.2 | 95.2 | 79.3 |
| 003_cracker_box | 76.9 | 53.1 | 92.5 | 86.9 | 96.1 | 94.8 | 92.7 | 83.4 | 95.8 | 94.1 | 94.4 | 91.5 |
| 004_sugar_box | 84.2 | 68.4 | 95.1 | 90.8 | 97.4 | 96.3 | 98.2 | 97.1 | 97.6 | 96.5 | 97.9 | 96.9 |
| 005_tomato_soup_can | 81.0 | 66.2 | 93.8 | 84.7 | 96.2 | 88.5 | 94.5 | 81.8 | 94.5 | 85.5 | 95.9 | 89.0 |
| 006_mustard_bottle | 90.4 | 81.0 | 95.8 | 90.9 | 97.5 | 96.2 | 98.6 | 98.0 | 97.3 | 94.7 | 98.3 | 97.9 |
| 007_tuna_fish_CAN | 88.0 | 70.7 | 95.7 | 79.6 | 96.0 | 89.3 | 97.1 | 83.9 | 97.1 | 81.9 | 96.7 | 90.7 |
| 008_pudding_box | 79.1 | 62.7 | 94.3 | 89.3 | 97.1 | 95.7 | 97.9 | 96.6 | 96.0 | 93.3 | 98.2 | 97.1 |
| 009_gelatin_box | 87.2 | 75.2 | 97.2 | 95.8 | 97.7 | 96.1 | 98.8 | 98.1 | 98.0 | 96.7 | 98.8 | 98.3 |
| 010_potted_meat_CAN | 78.5 | 59.5 | 89.3 | 79.6 | 93.3 | 88.6 | 92.7 | 83.5 | 90.7 | 83.6 | 93.8 | 87.9 |
| 011_banana | 86.0 | 72.3 | 90.0 | 76.7 | 96.6 | 93.7 | 97.1 | 91.9 | 96.2 | 83.3 | 98.2 | 96.0 |
| 019_pitcher_base | 77.0 | 53.3 | 93.6 | 87.1 | 97.4 | 96.5 | 97.8 | 96.9 | 97.5 | 96.9 | 97.6 | 96.9 |
| 021_bleach_cleanser | 71.6 | 50.3 | 94.4 | 87.5 | 96.0 | 93.2 | 96.9 | 92.5 | 95.9 | 89.9 | 97.2 | 95.9 |
| 024_bowl | 69.6 | 69.6 | 86.0 | 86.0 | 90.2 | 90.2 | 81.0 | 81.0 | 89.5 | 89.5 | 92.8 | 92.8 |
| 025_mug | 78.2 | 58.5 | 95.3 | 83.8 | 97.6 | 95.4 | 94.9 | 81.1 | 96.7 | 88.9 | 97.7 | 96.0 |
| 035_power_d Drill | 72.7 | 55.3 | 92.1 | 83.7 | 96.7 | 95.1 | 98.2 | 97.7 | 96.0 | 92.7 | 97.1 | 95.7 |
| 036_wood_block | 64.3 | 64.3 | 89.5 | 89.5 | 90.4 | 90.4 | 87.6 | 87.6 | 92.8 | 92.8 | 91.1 | 91.1 |
| 037_scissors | 56.9 | 35.8 | 90.1 | 77.4 | 96.7 | 92.7 | 91.7 | 78.4 | 92.0 | 77.9 | 95.0 | 87.2 |
| 040_large Marker | 71.7 | 58.3 | 95.1 | 89.1 | 96.7 | 91.8 | 97.2 | 85.3 | 97.6 | 93.0 | 98.1 | 91.6 |
| 051_large_clamp | 50.2 | 50.2 | 71.5 | 71.5 | 93.6 | 93.6 | 75.2 | 75.2 | 72.5 | 72.5 | 95.6 | 95.6 |
| 052extra_large_clamp | 44.1 | 44.1 | 70.2 | 70.2 | 88.4 | 88.4 | 64.4 | 64.4 | 69.9 | 69.9 | 90.5 | 90.5 |
| 061 Foambrick | 88.0 | 88.0 | 92.2 | 92.2 | 96.8 | 96.8 | 97.2 | 97.2 | 92.0 | 92.0 | 98.2 | 98.2 |
| ALL | 75.8 | 59.9 | 91.2 | 82.9 | 95.5 | 91.8 | 93.0 | 85.4 | 93.2 | 86.1 | 96.1 | 92.3 |
+
+Table 1. Quantitative evaluation of 6D Pose (ADD-S AUC [52], ADD(S) AUC [19]) on the YCB-Video Dataset. Symmetric objects' names are in bold.
+
+ | | w/o iter. ref. | w/iter. ref. |
| | DF(p.p.) | PVN3D | DF(iter.) | PVN3D+ICP |
| large_clamp | ADD-S | 87.7 | 93.9 | 90.3 | 96.2 |
| extra_large_clamp | ADD-S | 75.0 | 90.1 | 74.9 | 93.6 |
| ALL | ADD-S | 93.3 | 95.7 | 94.8 | 96.4 |
| ADD(S) | 84.9 | 91.9 | 89.4 | 92.7 |
+
+Table 2. Quantitative evaluation results on the YCB-Video dataset with ground truth instance semantic segmentation result.
+
+lenging. We follow [52] and split the dataset into 80 videos for training and another 2,949 keyframes chosen from the rest 12 videos for testing. Following [52], we add the synthetic images into our training set. A hole completion algorithm [25] is also applied to improve the quality of depth images.
+
+LineMOD Dataset [18] consists of 13 low-textured objects in 13 videos, annotated 6D pose and instance mask. The main challenge of this dataset is the cluttered scenes, texture-less objects, and lighting variations. We follow prior works [52] to split the training and testing set. Also, we follow [37] and add synthesis images into our training set.
+
+# 4.2. Evaluation Metrics
+
+We follow [52] and evaluate our method with the average distance ADD and ADD-S metric [52]. The average distance ADD metric [19] evaluates the mean pair-wise distance between object vertexes transformed by the predicted
+
+6D pose $[R, t]$ and the ground true pose $[R^{*}, t^{*}]$ :
+
+$$
+\mathrm {A D D} = \frac {1}{m} \sum_ {x \in \mathcal {O}} | | (R x + t) - (R ^ {*} x + t ^ {*}) | | \tag {6}
+$$
+
+where $x$ is a vertex of totally $m$ vertices on the object mesh $\mathcal{O}$ . The ADD-S metric is designed for symmetric objects and the mean distance is computed based on the closest point distance:
+
+$$
+\text {A D D - S} = \frac {1}{m} \sum_ {x _ {1} \in \mathcal {O}} \min _ {x _ {2} \in \mathcal {O}} | | \left(R x _ {1} + t\right) - \left(R ^ {*} x _ {2} + t ^ {*}\right) | | \tag {7}
+$$
+
+For evaluation, we follow [52, 50] and compute the ADD-S AUC, the area under the accuracy-threshold curve, which is obtained by varying the distance threshold in evaluation. The ADD(S)[19] AUC is computed in a similar way but calculate ADD distance for non-symmetric objects and ADD-S distance for symmetric objects.
+
+# 4.3. Evaluation on YCB-Video & LineMOD Dataset
+
+Table 1 shows the evaluation results for all the 21 objects in the YCB-Video dataset. We compare our model with other single view methods. As shown in the Table, our model without any iterative refinement procedure (PVN3D) surpasses all other approaches by a large margin, even when they are iterative refined. On the ADD(S) metric, our model outperforms PoseCNN+ICP [52] by $6.4\%$
+
+ | RGB | RGBD |
| PoseCNN DeepIM [26, 52] | PVNet [37] | CDPN [27] | Implicit ICP[45] | SSD-6D ICP[22] | Point-Fusion[50] | DF(per-pixel)[50] | DF(itive) [50] | PVN3D |
| ape | 77.0 | 43.6 | 64.4 | 20.6 | 65.0 | 70.4 | 79.5 | 92.3 | 97.3 |
| benchvise | 97.5 | 99.9 | 97.8 | 64.3 | 80.0 | 80.7 | 84.2 | 93.2 | 99.7 |
| camera | 93.5 | 86.9 | 91.7 | 63.2 | 78.0 | 60.8 | 76.5 | 94.4 | 99.6 |
| can | 96.5 | 95.5 | 95.9 | 76.1 | 86.0 | 61.1 | 86.6 | 93.1 | 99.5 |
| cat | 82.1 | 79.3 | 83.8 | 72.0 | 70.0 | 79.1 | 88.8 | 96.5 | 99.8 |
| driller | 95.0 | 96.4 | 96.2 | 41.6 | 73.0 | 47.3 | 77.7 | 87.0 | 99.3 |
| duck | 77.7 | 52.6 | 66.8 | 32.4 | 66.0 | 63.0 | 76.3 | 92.3 | 98.2 |
| eggbox | 97.1 | 99.2 | 99.7 | 98.6 | 100.0 | 99.9 | 99.9 | 99.8 | 99.8 |
| glue | 99.4 | 95.7 | 99.6 | 96.4 | 100.0 | 99.3 | 99.4 | 100.0 | 100.0 |
| holepuncher | 52.8 | 82.0 | 85.8 | 49.9 | 49.0 | 71.8 | 79.0 | 92.1 | 99.9 |
| iron | 98.3 | 98.9 | 97.9 | 63.1 | 78.0 | 83.2 | 92.1 | 97.0 | 99.7 |
| lamp | 97.5 | 99.3 | 97.9 | 91.7 | 73.0 | 62.3 | 92.3 | 95.3 | 99.8 |
| phone | 87.7 | 92.4 | 90.8 | 71.0 | 79.0 | 78.8 | 88.0 | 92.8 | 99.5 |
| ALL | 88.6 | 86.3 | 89.9 | 64.7 | 79.0 | 73.7 | 86.2 | 94.3 | 99.4 |
+
+Table 3. Quantitative evaluation of 6D Pose on ADD(S) [19] metric on the LineMOD dataset. Objects with bold name are symmetric.
+
+ | DF(RT)[50] | DF(3D KP)[50] | Ours(RT) | Ours(2D KPC) | Ours(2D KP) | PVNet[37] | Ours(Corr) | Ours(3D KP) |
| ADD-S | 92.2 | 93.1 | 92.8 | 78.2 | 81.8 | - | 92.8 | 95.5 |
| ADD(S) | 86.9 | 87.9 | 87.3 | 73.8 | 77.2 | 73.4 | 88.1 | 91.8 |
+
+Table 4. Quantitative evaluation of 6D Poses on the YCB-Video dataset with different formulations. All with our predicted segmentation.
+
+ | VoteNet[38] | BBox 8 | FPS 4 | FPS 8 | FPS 12 |
| ADD-S | 89.9 | 94.0 | 94.3 | 95.5 | 94.5 |
| ADD(S) | 85.1 | 90.2 | 90.5 | 91.8 | 90.7 |
+
+Table 5. Effect of different keypoint selection methods of PVN3D. Results of VoteNet[38], another 3D bounding box detection approach are added as a simple baseline to compare with our BBox8.
+
+and exceeds DF(iterative) [50] by $5.7\%$ . With iterative refinement, our model (PVN3D+ICP) achieves even better performance. Note that one challenge of this dataset is to distinguish the large clamp and extra-large clamp, on which previous methods [50, 52] suffer from poor detection results. We also report evaluation results with ground truth segmentation in Table 2, which shows that our PVN3D still achieves the best performance. Some Qualitative results are shown in Figure 3. Table 3 demonstrates the evaluation results on LineMOD dataset. Our model also achieves the best performance.
+
+Robust to Occlusion Scenes. One of the biggest advantages of our 3D-keypoint-based method is that it's robust to occlusion naturally. To explored how different methods are influenced by different degrees of occlusion, we follow [50] and calculate the percentage of invisible points on the object surface. Accuracy of ADD-S $< 2\mathrm{cm}$ under different invisible surface percentage is shown in Figure 4. The performance of different approaches is very close when $50\%$ of points are invisible. However, with the percentage of invisible part increase, DenseFusion and PoseCNN+ICP fall faster comparing with ours. Figure 3 shows that our model performs well even when objects are heavily occluded.
+
+# 4.4. Ablation Study
+
+In this part, we explore the influence of different formulation for 6DoF pose estimation and the effect of keypoint
+
+selection methods. We also probe the effect of multi-task learning.
+
+Comparisons to Directly Regressing Pose. To compare our 3D keypoint based formulation with formulations that directly regressing the 6D pose parameters $[R, t]$ of an object, we simply modify our 3D keypoint voting module $\mathcal{M}_{\mathcal{K}}$ to directly regress the quaternion rotation $R$ and the translation parameters $t$ for each point. We also add a confidence header following DenseFusion [50] and select the pose with the highest confidence as the final proposed pose. We supervise the training process using ShapeMatch-Loss [52] with confidence regularization term [50] following DenseFusion. Experimental results in Table 4 show that our 3D keypoint formulation performs quite better.
+
+To eliminate the influence of different network architecture, we also modify the header of DenseFusion(per-pixel) to predict the per-point translation offset and compute the 6D pose following our keypoint voting and least-squares fitting procedure. Table 4 reveals that the 3D keypoint formulation, DF(3D KP) in the Table, performs better than the RT regression formulation, DF(RT). That's because the 3D keypoint offset search space is smaller than the non-linearity of rotation space, which is easier for neural networks to learn, enabling them to be more generalizable.
+
+Comparisons to 2D Keypoints. In order to contrast the influence of 2D and 3D keypoints, we project the voted 3D keypoints back to 2D with the camera intrinsic parameters. A PnP algorithm with Random Sample Consensus (RANSAC) is then applied to compute the 6D pose parameters. Table 4 shows that algorithms with 3D keypoint formulation, denoted as Ours(3D KP) in the table, outperforms 2D keypoint, denoted Ours(2D KP) in the table, by $13.7\%$ under ADD-S metric. That's because PnP algorithms aim to minimize the projection error. However, pose estimation
+
+
+Figure 3. Qualitative results on the YCB-Video dataset. Points on different meshes in the same scene are in different colors. They are projected back to the image after being transformed by the predicted pose. We compare our PVN3D without any iterative refinement procedure to DenseFusion with iterative refinement (2 iterations). Our model distinguishes the challenging large clamp and extra-large clamp and estimates their poses well. Our model is also robust in heavily occluded scenes.
+
+
+Figure 4. Performance of different approaches under increasing levels of occlusion on the YCB-Video dataset.
+
+errors that are small in projection may be quite large in the 3D real world.
+
+To compare the influence between 2D and 3D center point in our instance semantic segmentation module, we also project our voted 3D center point to 2D in the Instance Semantic Segmentation module(Ours(2D KPC)). We apply a similar Mean Shift algorithm to cluster the voted 2D center points to distinguish different instances, finding that in occlusion scenes, different instances are hard to be differentiated when their centers are close to each other after projected on 2D, while they are far away from each other and can be easily differentiated in 3D real world. Note that other existing 2D keypoints detection approaches, such as heatmap [33, 24, 34] and vector voting [37] models may also suffer from overlapped keypoints. By definition, centers of most objects in our daily life won't be overlapped as they
+
+usually lie within the object while they may be overlapped after projected to 2D. In a word, the object world is in 3D, we believe that building models on 3D is quite important.
+
+Comparisons to Dense Correspondence Exploring. We modify our 3D keypoint offset module $\mathcal{M}_{\kappa}$ to output the corresponding 3D coordinate of each point in the object coordinate system and apply the least-squares fitting algorithm to compute the 6DoF pose. An L1 loss similar to Formula 3 is applied to supervise the training of the corresponding 3D coordinate. Evaluation results are shown as Ours(corr) in Tabel 4, which shows that our 3D keypoints formulation still performs quite better. We believe that regressing object coordinates is more difficult than keypoint detection. Because the model has to recognize each point of a mesh in the image and memorize its coordinate in the object coordinate system. However, detecting keypoints on objects in the camera system is easier since many keypoints are visible and the model can aggregate scene context in the vicinity of them.
+
+Effect of 3D Keypoints Selection. In this part, we select 8 corners of the 3D bounding box and compares them with points selected from the FPS algorithm. Different number of keypoints generated by FPS are also taken into consideration. Table 5 shows that keypoints selected by the FPS algorithm on the object enable our model to perform better. That's because the bounding box corners are virtual points that are far away from points on the object. Therefore, point-based networks are difficult to aggregate scene context in the vicinity of these virtual corner points. Also, 8 keypoints selected from FPS algorithm is a good choice for our network to learn. More keypoints may better eliminate errors when recovering pose in the least-squares fitting module, but harder for the network to learn as the output
+
+
+Figure 5. Qualitative results of semantic segmentation on the challenging YCB-Video dataset. (a) shows the ground truth label. Different objects are labeled in different colors, with large clamp colored green and extra-large clamp colored orange. In (b)-(c), the simple baselines PoseCNN[52] and Mask R-CNN [15] are confused by the two objects. In (d), our semantic segmentation module $\mathcal{M}_S$ , trained separately, can not distinguish them well either. In (e), jointly training $\mathcal{M}_S$ with the keypoints offset voting module $\mathcal{M}_{\mathcal{K}}$ performs better. In (f), with the voted center and Mean-Shift clustering algorithm, our model can distinguish them well.
+
+
+
+ | M_K+MRC | M_K+GT | M_K,S+GT | M_K,S,c+GT | M_K,S,c+GT |
| ADD-S | 93.5 | 94.8 | 95.2 | 95.5 | 95.7 |
| ADD(S) | 89.7 | 90.6 | 91.3 | 91.8 | 91.9 |
+
+Table 6. Performance of PVN3D with different instance semantic segmentation on all objects in the YCB-Video dataset. $\mathcal{M}_{\kappa},\mathcal{M}_S$ and $\mathcal{M}_{\mathcal{C}}$ denote keypoint offset module, semantic segmentation and center point offset module of PVN3D respectively. +MRC and $+\mathrm{GT}$ denotes inference with segmentation result of Mask RCNN and ground truth segmentation respectively.
+
+ | PoseCNN [52] | Mask R-CNN[15] | PVN3D (M_S) | PVN3D (M_S,K) | PVN3D (M_S,K,C) |
| large clamp | 43.1 | 48.4 | 58.6 | 62.5 | 70.2 |
| extra-large clamp | 30.4 | 36.1 | 41.5 | 50.7 | 69.0 |
+
+Table 7. Instance semantic segmentation results (mIoU(%) of different methods on the YCB-Video dataset. Jointly training semantic segmentation module with keypoint offset module $(\mathcal{M}_{S,\kappa})$ obtains size information from the offset module and performs better, especially on large clamp and extra-large clamp. With the center voting module $\mathcal{M}_{\mathcal{C}}$ and the Mean-Shift clustering algorithm, further improvement of performance is obtained.
+
+space is bigger. Selecting 8 keypoints is a good trade-off.
+
+Effect of Multi-task learning. In this part, we discuss how the joint learning of semantic segmentation and keypoint (center) translation offset boosts the performance. In Table 6, we explore how semantic segmentation enhances keypoint offset learning. We remove semantic segmentation and center voting modules $\mathcal{M}_S, \mathcal{M}_C$ , and train our keypoint voting module $\mathcal{M}_{\mathcal{K}}$ individually. During inference time, the instance semantic segmentation predicted by Mask R-CNN [15] $(\mathcal{M}_{\mathcal{K}} + \mathrm{MRC})$ and the ground truth $(\mathcal{M}_{\mathcal{K}} + \mathrm{GT})$ are applied. Experimental results show that jointly trained with semantic segmentation $(\mathcal{M}_{\mathcal{K}, S} + \mathrm{GT})$ boosts the performance of keypoint offset voting and improves the accuracy
+
+of 6D pose estimation by $0.7\%$ on ADD(S) metric. We believe that the semantic module extracts global and local features to distinguish different objects. Such features also help the model to recognize which part of an object a point belongs to and improve offset prediction.
+
+In Table 7, we explore how keypoint and center point offset learning improve the instance semantic segmentation result. Point mean intersection over union (mIoU) is used as evaluation metric. We report the results of the challenging large clamp and extra-large clamp in YCB-Video dataset. They look same in appearance but are different in size, as shown in Figure 5. We trained Mask R-CNN (ResNeXt-50-FPN) [15] with the recommended setting as a simple baseline and found it was completely confused by the two objects. With extra depth information, our semantic segmentation module (PVN3D( $\mathcal{M}_S$ )), trained individually, didn't perform well either. However, jointly trained with our keypoint offset voting module (PVN3D( $\mathcal{M}_{S,K}$ ), the mIoU was improved by $9.2\%$ on the extra-large clamp. With voted centers obtained from the center voting module $\mathcal{M}_{\mathcal{C}}$ , we can split up objects with the Mean-Shift clustering algorithm and assign points to its closest object cluster. The mIoU of the extra-large clamp is further improved by $18.3\%$ in this way. Some qualitative results are shown in Figure 5.
+
+# 5. Conclusion
+
+We propose a novel deep 3D keypoints voting network with instance semantic segmentation for 6DoF pose estimation, which outperforms all previous approaches in several datasets by large margins. We also show that jointly training 3D keypoint with semantic segmentation can boost the performance of each other. We believe the 3D keypoint based approach is a promising direction to explore for the 6DoF pose estimation problem.
+
+# References
+
+[1] K. S. Arun, T. S. Huang, and S. D. Blostein. Least-squares fitting of two 3-d point sets. IEEE Transactions on pattern analysis and machine intelligence, (5):698-700, 1987. 4
+[2] H. Bay, T. Tuytelaars, and L. Van Gool. Surf: Speeded up robust features. In European conference on computer vision, pages 404-417. Springer, 2006. 2
+[3] E. Brachmann, A. Krull, F. Michel, S. Gumhold, J. Shotton, and C. Rother. Learning 6d object pose estimation using 3d object coordinates. In European conference on computer vision, pages 536-551. Springer, 2014. 2
+[4] B. Calli, A. Singh, A. Walsman, S. Srinivasa, P. Abbeel, and A. M. Dollar. The ycb object and model set: Towards common benchmarks for manipulation research. In 2015 international conference on advanced robotics (ICAR), pages 510-517. IEEE, 2015. 4
+[5] X. Chen, H. Ma, J. Wan, B. Li, and T. Xia. Multi-view 3d object detection network for autonomous driving. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1907-1915, 2017. 1
+[6] A. Collet, M. Martinez, and S. S. Srinivasa. The moped framework: Object recognition and pose estimation for manipulation. The International Journal of Robotics Research, 30(10):1284-1306, 2011. 1
+[7] D. Comaniciu and P. Meer. Mean shift: A robust approach toward feature space analysis. IEEE Transactions on Pattern Analysis & Machine Intelligence, (5):603-619, 2002. 3
+[8] J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pages 248–255. IEEE, 2009. 4
+[9] A. Doumanoglou, R. Kouskouridas, S. Malassiotis, and T.-K. Kim. Recovering 6d object pose and predicting next-best-view in the crowd. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3583-3592, 2016. 2
+[10] K. Duan, S. Bai, L. Xie, H. Qi, Q. Huang, and Q. Tian. Centernet: Keypoint triplets for object detection. arXiv preprint arXiv:1904.08189, 2019. 4
+[11] 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. IEEE, 2012. 1
+[12] D. Glasner, M. Galun, S. Alpert, R. Basri, and G. Shakhnarovich. aware object detection and pose estimation. In 2011 International Conference on Computer Vision, pages 1275-1282. IEEE, 2011. 2
+[13] C. Gu and X. Ren. Discriminative mixture-of-templates for viewpoint classification. In European Conference on Computer Vision, pages 408–421. Springer, 2010. 2
+[14] K. Gupta, L. Petersson, and R. Hartley. Cullnet: Calibrated and pose aware confidence scores for object pose estimation. In Proceedings of the IEEE International Conference on Computer Vision Workshops, pages 0–0, 2019. 2
+[15] K. He, G. Gkioxari, P. Dollár, and R. Girshick. Mask r-cnn. In Proceedings of the IEEE international conference on computer vision, pages 2961-2969, 2017. 8
+
+[16] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016. 4
+[17] S. Hinterstoisser, C. Cagniart, S. Ilic, P. Sturm, N. Navab, P. Fua, and V. Lepetit. Gradient response maps for real-time detection of textureless objects. IEEE Transactions on Pattern Analysis and Machine Intelligence, 34(5):876-888, 2011. 2
+[18] S. Hinterstroisser, S. Holzer, C. Cagniart, S. Ilic, K. Konolige, N. Navab, and V. Lepetit. Multimodal templates for real-time detection of texture-less objects in heavily cluttered scenes. In 2011 international conference on computer vision, pages 858-865. IEEE, 2011. 5
+[19] 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 Asian conference on computer vision, pages 548-562. Springer, 2012. 1, 5, 6
+[20] Y. Hu, J. Hugonot, P. Fua, and M. Salzmann. Segmentation-driven 6d object pose estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3385-3394, 2019. 2
+[21] D. P. Huttenlocher, G. A. Klanderman, and W. J. Rucklidge. Comparing images using the hausdorff distance. IEEE Transactions on pattern analysis and machine intelligence, 15(9):850-863, 1993. 2
+[22] 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 Proceedings of the IEEE International Conference on Computer Vision, pages 1521–1529, 2017. 6
+[23] 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 European Conference on Computer Vision, pages 205–220. Springer, 2016. 2
+[24] A. Kendall, M. Grimes, and R. Cipolla. Posenet: A convolutional network for real-time 6-dof camera relocalization. In Proceedings of the IEEE international conference on computer vision, pages 2938-2946, 2015. 2, 7
+[25] J. Ku, A. Harakeh, and S. L. Waslander. In defense of classical image processing: Fast depth completion on the cpu. In 2018 15th Conference on Computer and Robot Vision (CRV), pages 16-22. IEEE, 2018. 5
+[26] Y. Li, G. Wang, X. Ji, Y. Xiang, and D. Fox. Deepim: Deep iterative matching for 6d pose estimation. In Proceedings of the European Conference on Computer Vision (ECCV), pages 683-698, 2018. 2, 6
+[27] Z. Li, G. Wang, and X. Ji. Cdpn: Coordinates-based disentangled pose network for real-time rgb-based 6-dof object pose estimation. In The IEEE International Conference on Computer Vision (ICCV), October 2019. 2, 6
+[28] J. Liebelt, C. Schmid, and K. Schertler. independent object class detection using 3d feature maps. In 2008 IEEE Conference on Computer Vision and Pattern Recognition, pages 1-8. IEEE, 2008. 2
+[29] T.-Y. Lin, P. Goyal, R. Girshick, K. He, and P. Dóllár. Focal loss for dense object detection. In Proceedings of the IEEE
+
+international conference on computer vision, pages 2980-2988, 2017. 4
+[30] D. G. Lowe. Object recognition from local scale-invariant features. In Proceedings of the seventh IEEE international conference on computer vision, volume 2, pages 1150-1157. IEEE, 1999. 1, 2
+[31] E. Marchand, H. Uchiyama, and F. Spindler. Pose estimation for augmented reality: a hands-on survey. IEEE transactions on visualization and computer graphics, 22(12):2633-2651, 2015. 1
+[32] F. Michel, A. Kirillov, E. Brachmann, A. Krull, S. Gumhold, B. Savchynskyy, and C. Rother. Global hypothesis generation for 6d object pose estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 462-471, 2017. 2
+[33] A. Newell, K. Yang, and J. Deng. Stacked hourglass networks for human pose estimation. In European conference on computer vision, pages 483-499. Springer, 2016. 2, 7
+[34] M. Oberweger, M. Rad, and V. Lepetit. Making deep heatmaps robust to partial occlusions for 3d object pose estimation. In Proceedings of the European Conference on Computer Vision (ECCV), pages 119-134, 2018. 2, 7
+[35] K. Park, T. Patten, and M. Vincze. Pix2pose: Pixel-wise coordinate regression of objects for 6d pose estimation. In Proceedings of the IEEE International Conference on Computer Vision, pages 7668-7677, 2019. 2
+[36] G. Pavlakos, X. Zhou, A. Chan, K. G. Derpanis, and K. Dani-ilidis. 6-dof object pose from semantic keypoints. In 2017 IEEE International Conference on Robotics and Automation (ICRA), pages 2011–2018. IEEE, 2017. 1
+[37] S. Peng, Y. Liu, Q. Huang, X. Zhou, and H. Bao. Pynet: Pixel-wise voting network for 6dof pose estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4561-4570, 2019. 1, 2, 4, 5, 6, 7
+[38] C. R. Qi, O. Litany, K. He, and L. J. Guibas. Deep hough voting for 3d object detection in point clouds. In Proceedings of the IEEE International Conference on Computer Vision, pages 9277-9286, 2019. 2, 4, 6
+[39] C. R. Qi, W. Liu, C. Wu, H. Su, and L. J. Guibas. Frustum pointnets for 3d object detection from rgb-d data. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 918-927, 2018. 2, 3, 4
+[40] C. R. Qi, L. Yi, H. Su, and L. J. Guibas. Pointnet++: Deep hierarchical feature learning on point sets in a metric space. In Advances in neural information processing systems, pages 5099-5108, 2017. 4
+[41] 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 Proceedings of the IEEE International Conference on Computer Vision, pages 3828-3836, 2017. 1, 2
+[42] 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. International Journal of Computer Vision, 66(3):231-259, 2006. 2
+
+[43] H. Su, C. R. Qi, Y. Li, and L. J. Guibas. Render for cnn: Viewpoint estimation in images using cnns trained with rendered 3d model views. In Proceedings of the IEEE International Conference on Computer Vision, pages 2686-2694, 2015. 2
+[44] M. Sun, G. Bradski, B.-X. Xu, and S. Savarese. Depth-encoded though voting for joint object detection and shape recovery. In European Conference on Computer Vision, pages 658-671. Springer, 2010. 2
+[45] M. Sundermeyer, Z.-C. Marton, M. Durner, M. Brucker, and R. Triebel. Implicit 3d orientation learning for 6d object detection from rgb images. In Proceedings of the European Conference on Computer Vision (ECCV), pages 699-715, 2018. 2, 6
+[46] S. Suwajanakorn, N. Snavely, J. J. Tompson, and M. Norouzi. Discovery of latent 3d keypoints via end-to-end geometric reasoning. In Advances in Neural Information Processing Systems, pages 2059-2070, 2018. 2
+[47] B. Tekin, S. N. Sinha, and P. 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. 1, 2
+[48] J. Tremblay, T. To, B. Sundaralingam, Y. Xiang, D. Fox, and S. Birchfield. Deep object pose estimation for semantic robotic grasping of household objects. arXiv preprint arXiv:1809.10790, 2018. 1
+[49] S. Tulsiani and J. Malik. Viewpoints and keypoints. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1510-1519, 2015. 2
+[50] C. Wang, D. Xu, Y. Zhu, R. Martin-Martin, C. Lu, L. Fei-Fei, and S. Savarese. Densefusion: 6d object pose estimation by iterative dense fusion. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3343–3352, 2019. 1, 2, 3, 4, 5, 6
+[51] H. Wang, S. Sridhar, J. Huang, J. Valentin, S. Song, and L. J. Guibas. Normalized object coordinate space for category-level 6d object pose and size estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2642-2651, 2019. 2
+[52] 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. 1, 2, 5, 6, 8
+[53] D. Xu, D. Anguelov, and A. Jain. Pointfusion: Deep sensor fusion for 3d bounding box estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 244-253, 2018. 1, 2, 3, 4
+[54] H. Zhao, J. Shi, X. Qi, X. Wang, and J. Jia. Pyramid scene parsing network. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2881-2890, 2017. 4
+[55] M. Zhu, K. G. Derpanis, Y. Yang, S. Brahmbhatt, M. Zhang, C. Phillips, M. Lecce, and K. Daniilidis. Single image 3d object detection and pose estimation for grasping. In 2014 IEEE International Conference on Robotics and Automation (ICRA), pages 3936-3943. IEEE, 2014. 1
\ No newline at end of file
diff --git a/pvn3dadeeppointwise3dkeypointsvotingnetworkfor6dofposeestimation/images.zip b/pvn3dadeeppointwise3dkeypointsvotingnetworkfor6dofposeestimation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..5d2a40fbe854b96b7a889b1f548efc79c4d974d9
--- /dev/null
+++ b/pvn3dadeeppointwise3dkeypointsvotingnetworkfor6dofposeestimation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:63a0937f968a4c0f08d452c46bd9e65fb5c95f8d517f0cc7ef675604b7f757bf
+size 644888
diff --git a/pvn3dadeeppointwise3dkeypointsvotingnetworkfor6dofposeestimation/layout.json b/pvn3dadeeppointwise3dkeypointsvotingnetworkfor6dofposeestimation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..7e4997ea4f26680ba5ebd8ec6d96c227cb0e0b0b
--- /dev/null
+++ b/pvn3dadeeppointwise3dkeypointsvotingnetworkfor6dofposeestimation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b4ba594b40f5f04d1e7984774f83426e7e6059225018bd9459b9148c6ceebf03
+size 416602
diff --git a/pvrcnnpointvoxelfeaturesetabstractionfor3dobjectdetection/78ea4723-7e4b-4336-9390-f2201449ace4_content_list.json b/pvrcnnpointvoxelfeaturesetabstractionfor3dobjectdetection/78ea4723-7e4b-4336-9390-f2201449ace4_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..98ec461bab68246f1252cc814a8355b663017bea
--- /dev/null
+++ b/pvrcnnpointvoxelfeaturesetabstractionfor3dobjectdetection/78ea4723-7e4b-4336-9390-f2201449ace4_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cffc1ecb5d81feb1785d1fe6bfa82a222050e6aeb2948cb90ac05f370553afac
+size 87061
diff --git a/pvrcnnpointvoxelfeaturesetabstractionfor3dobjectdetection/78ea4723-7e4b-4336-9390-f2201449ace4_model.json b/pvrcnnpointvoxelfeaturesetabstractionfor3dobjectdetection/78ea4723-7e4b-4336-9390-f2201449ace4_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..bac115f79605215fc617d3b3c05f3e1216e10f28
--- /dev/null
+++ b/pvrcnnpointvoxelfeaturesetabstractionfor3dobjectdetection/78ea4723-7e4b-4336-9390-f2201449ace4_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2b3ae785501ec62a2587fbf184bc359f7ac2cbd959c6ddf2cb9a3d72c4f2213d
+size 104028
diff --git a/pvrcnnpointvoxelfeaturesetabstractionfor3dobjectdetection/78ea4723-7e4b-4336-9390-f2201449ace4_origin.pdf b/pvrcnnpointvoxelfeaturesetabstractionfor3dobjectdetection/78ea4723-7e4b-4336-9390-f2201449ace4_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..8ac8adcabcafcaaf693cdb4846e69da4299b3821
--- /dev/null
+++ b/pvrcnnpointvoxelfeaturesetabstractionfor3dobjectdetection/78ea4723-7e4b-4336-9390-f2201449ace4_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:50534e2c16b6d6785ca6292950f2fd668793b78b90a4e955a9997cd00cce4944
+size 356244
diff --git a/pvrcnnpointvoxelfeaturesetabstractionfor3dobjectdetection/full.md b/pvrcnnpointvoxelfeaturesetabstractionfor3dobjectdetection/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..2502cd9a31013e92e2c437cf93833b53ff8f48a1
--- /dev/null
+++ b/pvrcnnpointvoxelfeaturesetabstractionfor3dobjectdetection/full.md
@@ -0,0 +1,320 @@
+# PV-RCNN: Point-Voxel Feature Set Abstraction for 3D Object Detection
+
+Shaoshuai Shi1 Chaoxu Guo2,3 Li Jiang4
+
+Zhe Wang $^{2}$ Jianping Shi $^{2}$ Xiaogang Wang $^{1}$ Hongsheng Li $^{1}$
+
+1Multimedia Laboratory, The Chinese University of Hong Kong
+
+$^{2}$ SenseTime Research $^{3}$ NLPR, CASIA $^{4}$ CSE, CUHK
+
+# Abstract
+
+We present a novel and high-performance 3D object detection framework, named PointVoxel-RCNN (PV-RCNN), for accurate 3D object detection from point clouds. Our proposed method deeply integrates both 3D voxel Convolutional Neural Network (CNN) and PointNet-based set abstraction to learn more discriminative point cloud features. It takes advantages of efficient learning and high-quality proposals of the 3D voxel CNN and the flexible receptive fields of the PointNet-based networks. Specifically, the proposed framework summarizes the 3D scene with a 3D voxel CNN into a small set of keypoints via a novel voxel set abstraction module to save follow-up computations and also to encode representative scene features. Given the high-quality 3D proposals generated by the voxel CNN, the RoI-grid pooling is proposed to abstract proposal-specific features from the keypoints to the RoI-grid points via keypoint set abstraction. Compared with conventional pooling operations, the RoI-grid feature points encode much richer context information for accurately estimating object confidence and locations. Extensive experiments on both the KITTI dataset and the Waymo Open dataset show that our proposed PV-RCNN surpasses state-of-the-art 3D detection methods with remarkable margins.
+
+# 1. Introduction
+
+3D object detection has been receiving increasing attention from both industry and academia thanks to its wide applications in various fields such as autonomous driving and robotics. LiDAR sensors are widely adopted in autonomous driving vehicles and robots for capturing 3D scene information as sparse and irregular point clouds, which provide vital cues for 3D scene perception and understanding. In this paper, we propose to achieve high performance 3D object detection by designing novel point-voxel integrated networks to learn better 3D features from irregular point clouds.
+
+
+Figure 1. Our proposed PV-RCNN framework deeply integrates both the voxel-based and the PointNet-based networks via a two-step strategy including the voxel-to-keypoint 3D scene encoding and the keypoint-to-grid RoI feature abstraction for improving the performance of 3D object detection.
+
+Most existing 3D detection methods could be classified into two categories in terms of point cloud representations, i.e., the grid-based methods and the point-based methods. The grid-based methods generally transform the irregular point clouds to regular representations such as 3D voxels [29, 45, 37, 2, 28] or 2D bird-view maps [1, 12, 39, 18, 38, 13, 17, 41], which could be efficiently processed by 3D or 2D Convolutional Neural Networks (CNN) to learn point features for 3D detection. Powered by the pioneer work, PointNet and its variants [25, 26], the point-based methods [24, 27, 35, 40, 22] directly extract discriminative features from raw point clouds for 3D detection. Generally, the grid-based methods are more computationally efficient but the inevitable information loss degrades the fine-grained localization accuracy, while the point-based methods have higher computation cost but could easily achieve larger receptive field by the point set abstraction [26]. However, we show that a unified framework could integrate the best of the two types of methods, and surpass the prior state-of-the-art 3D detection methods with remarkable margins.
+
+We propose a novel 3D object detection framework, PV-RCNN (Illustrated in Fig. 1), which boosts the 3D detection performance by incorporating the advantages from both the Point-based and Voxel-based feature learning methods. The principle of PV-RCNN lies in the fact that the voxel-based operation efficiently encodes multi-scale feature representations and can generate high-quality 3D proposals, while the PointNet-based set abstraction operation
+
+preserves accurate location information with flexible receptive fields. We argue that the integration of these two types of feature learning frameworks can help learn more discriminative features for accurate fine-grained box refinement.
+
+The main challenge would be how to effectively combine the two types of feature learning schemes, specifically the 3D voxel CNN with sparse convolutions [6, 5] and the PointNet-based set abstraction [26], into a unified framework. An intuitive solution would be uniformly sampling several grid points within each 3D proposal, and adopt the set abstraction to aggregate 3D voxel-wise features surrounding these grid points for proposal refinement. However, this strategy is highly memory-intensive since both the number of voxels and the number of grid points could be quite large to achieve satisfactory performance.
+
+Therefore, to better integrate these two types of point cloud feature learning networks, we propose a two-step strategy with the first voxel-to-keypoint scene encoding step and the second keypoint-to-grid RoI feature abstraction step. Specifically, a voxel CNN with 3D sparse convolution is adopted for voxel-wise feature learning and accurate proposal generation. To mitigate the above mentioned issue of requiring too many voxels for encoding the whole scene, a small set of keypoints are selected by the furtherest point sampling (FPS) to summarize the overall 3D information from the voxel-wise features. The features of each keypoint is aggregated by grouping the neighboring voxel-wise features via PointNet-based set abstraction for summarizing multi-scale point cloud information. In this way, the overall scene can be effectively and efficiently encoded by a small number of keypoints with associated multi-scale features.
+
+For the second keypoint-to-grid RoI feature abstraction step, given each box proposal with its grid point locations, a RoI-grid pooling module is proposed, where a keypoint set abstraction layer with multiple radii is adopted for each grid point to aggregate the features from the keypoints with multi-scale context. All grid points' aggregated features can then be jointly used for the succeeding confidence prediction and fine-grained box refinement.
+
+Our contributions can be summarized into four-fold. (1) We propose PV-RCNN framework which effectively takes advantages of both the voxel-based and point-based methods for 3D point-cloud feature learning, leading to improved performance of 3D object detection with manageable memory consumption. (2) We propose the voxel-to-keypoint scene encoding scheme, which encodes multiscale voxel features of the whole scene to a small set of keypoints by the voxel set abstraction layer. These keypoint features not only preserve accurate location but also encode rich scene context, which boosts the 3D detection performance significantly. (3) We propose a multi-scale RoI feature abstraction layer for grid points in each proposal, which aggregates richer context information from the
+
+scene for accurate box refinement and confidence prediction. (4) Our proposed method PV-RCNN outperforms all previous methods with remarkable margins and ranks $1^{st}$ on the highly competitive KITTI 3D detection benchmark [11], and also surpasses previous methods on the large-scale Waymo Open dataset with a large margin.
+
+# 2. Related Work
+
+3D Object Detection with Grid-based Methods. To tackle the irregular data format of point clouds, most existing works project the point clouds to regular grids to be processed by 2D or 3D CNN. The pioneer work MV3D [1] projects the point clouds to 2D bird view grids and places lots of predefined 3D anchors for generating 3D bounding boxes, and the following works [12, 18, 17] develop better strategies for multi-sensor fusion while [39, 38, 13] propose more efficient frameworks with bird view representation. Some other works [29, 45] divide the point clouds into 3D voxels to be processed by 3D CNN, and 3D sparse convolution [5] is introduced [37] for efficient 3D voxel processing. [33, 46] utilizes multiple detection heads while [28] explores the object part locations for improving the performance. These grid-based methods are generally efficient for accurate 3D proposal generation but the receptive fields are constraint by the kernel size of 2D/3D convolutions.
+
+3D Object Detection with Point-based Methods. F-PointNet [24] first proposes to apply PointNet [25, 26] for 3D detection from the cropped point clouds based on the 2D image bounding boxes. PointRCNN [27] generates 3D proposals directly from the whole point clouds instead of 2D images for 3D detection with point clouds only, and the following work STD [40] proposes the sparse to dense strategy for better proposal refinement. [23] proposes the hough voting strategy for better object feature grouping. These point-based methods are mostly based on the PointNet series, especially the set abstraction operation [26], which enables flexible receptive fields for point cloud feature learning.
+
+Representation Learning on Point Clouds. Representation learning on point clouds has drawn lots of attention on improving the performance of point cloud classification and segmentation [25, 26, 45, 34, 7, 42, 16, 30, 36, 8, 32, 10, 21, 3]. In terms of 3D detection, previous methods generally project the point clouds to regular bird view grids [1, 39] or 3D voxels [45, 2] for processing point clouds with 2D/3D CNN. 3D sparse convolution [6, 5] are adopted in [37, 28] to effectively learn sparse voxel-wise features from the point clouds. Qi et al. [25, 26] proposes the PointNet to directly learn point-wise features from the raw point clouds, where set abstraction operation enables flexible receptive fields by setting different search radii. [20] combines both voxel-based CNN and point-based SharedMLP for efficient point cloud feature learning. In comparison, our proposed PV-RCNN takes advantages from both the voxel-based feature
+
+
+Figure 2. The overall architecture of our proposed PV-RCNN. The raw point clouds are first voxelized to feed into the 3D sparse convolution based encoder to learn multi-scale semantic features and generate 3D object proposals. Then the learned voxel-wise feature volumes at multiple neural layers are summarized into a small set of key points via the novel voxel set abstraction module. Finally the keypoint features are aggregated to the RoI-grid points to learn proposal specific features for fine-grained proposal refinement and confidence prediction.
+
+learning (i.e., 3D sparse convolution) and PointNet-based feature learning (i.e., set abstraction operation) to enable both high-quality 3D proposal generation and flexible receptive fields for improving the 3D detection performance.
+
+# 3. PV-RCNN for Point Cloud Object Detection
+
+In this paper, we propose the PV-RCNN, a two-stage 3D detection framework aiming at more accurate 3D object detection from point clouds. State-of-the-art 3D detection approaches are based on either 3D voxel CNN with sparse convolution or PointNet-based networks as the backbone. Generally, the 3D voxel sparse CNNs are more efficient [37, 28] and are able to generate high-quality 3D proposals, while the PointNet-based methods can capture more accurate contextual information with flexible receptive fields.
+
+Our PV-RCNN deeply integrates the advantages of two types of networks. As illustrated in Fig. 2, the PV-RCNN consists of a 3D voxel CNN with sparse convolution as the backbone for efficient feature encoding and proposal generation. Given each 3D proposal, to effectively pool its corresponding features from the scene, we propose two novel operations: the voxel-to-keypoint scene encoding, which summarizes all the voxels of the overall scene feature volumes into a small number of feature keypoints, and the point-to-grid RoI feature abstraction, which effectively aggregates the scene keypoint features to RoI grids for proposal confidence prediction and location refinement.
+
+# 3.1. 3D Voxel CNN for Efficient Feature Encoding and Proposal Generation
+
+Voxel CNN with 3D sparse convolution [6, 5, 37, 28] is a popular choice by state-of-the-art 3D detectors for efficiently converting the point clouds into sparse 3D feature volumes. Because of its high efficiency and accuracy, we
+
+adopt it as the backbone of our framework for feature encoding and 3D proposal generation.
+
+3D voxel CNN. The input points $\mathbf{P}$ are first divided into small voxels with spatial resolution of $L\times W\times H$ , where the features of the non-empty voxels are directly calculated as the mean of point-wise features (i.e., 3D coordinates, reflectance intensities) of all inside points. The network utilizes a series of $3\times 3\times 3$ 3D sparse convolution to gradually convert the point clouds into feature volumes with $1\times ,2\times ,4\times ,8\times$ downsampled sizes. Such sparse feature volumes could be viewed as a set of voxel-wise feature vectors.
+
+3D proposal generation. By converting the encoded $8 \times$ downsampled 3D feature volumes into 2D bird-view feature maps, high-quality 3D proposals are generated following the anchor-based approaches [37, 13]. Specifically, we stack the 3D feature volume along the $Z$ axis to obtain the $\frac{L}{8} \times \frac{W}{8}$ bird-view feature maps. Each class has $2 \times \frac{L}{8} \times \frac{W}{8}$ 3D anchor boxes which adopt the average 3D object sizes of this class, and two anchors of $0^{\circ}, 90^{\circ}$ orientations are evaluated for each pixel of the bird-view feature maps. As shown in Table 4, the adopted 3D voxel CNN backbone with anchor-based scheme achieves higher recall performance than the PointNet-based approaches [27, 40].
+
+Discussions. State-of-the-art detectors mostly adopt two-stage frameworks. They require pooling RoI specific features from the resulting 3D feature volumes or 2D maps for further proposal refinement. However, these 3D feature volumes from the 3D voxel CNN have major limitations in the following aspects. (i) These feature volumes are generally of low spatial resolution as they are downsampled by up to 8 times, which hinders accurate localization of objects in the input scene. (ii) Even if one can upsample to obtain feature volumes/maps of larger spatial sizes, they are generally still quite sparse. The commonly used trilinear or bilin
+
+ear interpolation in the RoIPooling/RoIAlign operations can only extract features from very small neighborhoods (i.e., 4 and 8 nearest neighbors for bilinear and trilinear interpolation respectively). The conventional pooling approaches would therefore obtain features with mostly zeros and waste much computation and memory for stage-2 refinement.
+
+On the other hand, the set abstraction operation proposed in the variants of PointNet [25, 26] has shown the strong capability of encoding feature points from a neighborhood of an arbitrary size. We therefore propose to integrate a 3D voxel CNN with a series of set abstraction operations for conducting accurate and robust stage-2 proposal refinement.
+
+A naive solution of using the set abstraction operation for pooling the scene feature voxels would be directly aggregating the multi-scale feature volume to the RoI grids. However, this intuitive strategy simply occupies much GPU memory for calculating the pairwise distances in the set abstractions due to the large number of sparse voxels.
+
+To tackle this issue, we propose a two-step approach to first encode voxels at different neural layers of the entire scene into a small number of keypoints and then aggregate keypoint features to RoI grids for box proposal refinement.
+
+# 3.2. Voxel-to-keypoint Scene Encoding via Voxel Set Abstraction
+
+Our framework first aggregates the multi-scale feature voxels representing the entire scene into a small number of keypoints, which serve as a bridge between the 3D voxel CNN feature encoder and the proposal refinement network.
+
+Keypoints Sampling. Specifically, we adopt the Furthest-Point-Sampling (FPS) algorithm to sample a small number of $n$ keypoints $\mathcal{K} = \{p_1,\dots ,p_n\}$ from the point clouds $\mathbf{P}$ , where $n = 2,048$ for the KITTI dataset and $n = 4,096$ for the Waymo dataset. Such a strategy encourages that the keypoints are uniformly distributed around non-empty voxels and can be representative to the overall scene.
+
+Voxel Set Abstraction Module. We propose the Voxel Set Abstraction (VSA) module to encode the multi-scale semantic features from the 3D CNN feature volumes to the keypoints. The set abstraction operation proposed by [26] is adopted for the aggregation of voxel-wise feature volumes. The surrounding points of keypoints are now regular voxels with multi-scale semantic features encoded by the 3D voxel CNN from the multiple layers, instead of the neighboring raw points with features learned from PointNet as in [26].
+
+Specifically, denote $\mathcal{F}^{(l_k)} = \{f_1^{(l_k)},\dots ,f_{N_k}^{(l_k)}\}$ as the set of voxel-wise feature vectors in the $k$ -th level of 3D voxel CNN, $\mathcal{V}^{(l_k)} = \{v_1^{(l_k)},\dots ,v_{N_k}^{(l_k)}\}$ as their 3D coordinates calculated by the voxel indices and actual voxel sizes of the $k$ -th level, where $N_{k}$ is the number of non-empty voxels in the $k$ -th level. For each keypoint $p_i$ we first identify its neighboring non-empty voxels at the $k$ -th level within a
+
+radius $r_k$ to retrieve the set of voxel-wise feature vectors as
+
+$$
+S _ {i} ^ {\left(l _ {k}\right)} = \left\{\left[ f _ {j} ^ {\left(l _ {k}\right)}; v _ {j} ^ {\left(l _ {k}\right)} - p _ {i} \right] ^ {T} \left| \begin{array}{l} \left\| v _ {j} ^ {\left(l _ {k}\right)} - p _ {i} \right\| ^ {2} < r _ {k}, \\ \forall v _ {j} ^ {\left(l _ {k}\right)} \in \mathcal {V} ^ {\left(l _ {k}\right)}, \\ \forall f _ {j} ^ {\left(l _ {k}\right)} \in \mathcal {F} ^ {\left(l _ {k}\right)} \end{array} \right. \right\}, \tag {1}
+$$
+
+where we concatenate the local relative coordinates $v_{j}^{(l_{k})} - p_{i}$ to indicate the relative location of semantic voxel feature $f_{j}^{(l_{k})}$ . The voxel-wise features within the neighboring voxel set $S_{i}^{(l_{k})}$ of $p_{i}$ are then transformed by a PointNet-block [25] to generate the feature for the key point $p_{i}$ as
+
+$$
+f _ {i} ^ {\left(p v _ {k}\right)} = \max \left\{G \left(\mathcal {M} \left(S _ {i} ^ {\left(l _ {k}\right)}\right)\right) \right\}, \tag {2}
+$$
+
+where $\mathcal{M}(\cdot)$ denotes randomly sampling at most $T_{k}$ voxels from the neighboring set $S_{i}^{(l_{k})}$ for saving computations, $G(\cdot)$ denotes a multi-layer perceptron network to encode the voxel-wise features and relative locations. Although the number of neighboring voxels varies across different keypoints, the along-channel max-pooling operation $\max (\cdot)$ maps the diverse number of neighboring voxel feature vectors to a feature vector $f_{i}^{(pv_{k})}$ for the key point $p_i$ . Generally, we also set multiple radii $r_k$ at the $k$ -th level to aggregate local voxel-wise features with different receptive fields for capturing richer multi-scale contextual information.
+
+The above strategy is performed at different levels of the 3D voxel CNN, and the aggregated features from different levels can be concatenated to generate the multi-scale semantic feature for the key point $p_i$
+
+$$
+f _ {i} ^ {(p v)} = \left[ f _ {i} ^ {(p v _ {1})}, f _ {i} ^ {(p v _ {2})}, f _ {i} ^ {(p v _ {3})}, f _ {i} ^ {(p v _ {4})} \right], \text {f o r} i = 1, \dots , n, \tag {3}
+$$
+
+where the generated feature $f_{i}^{(pv)}$ incorporates both the 3D voxel CNN-based feature learning from voxel-wise feature $f_{j}^{(l_{k})}$ and the PointNet-based features from voxel set abstraction as Eq. (2). Besides, the 3D coordinate of $p_{i}$ also preserves accurate location information.
+
+Extended VSA Module. We extend the VSA module by further enriching the keypoint features from the raw point clouds $\mathbf{P}$ and the $8\times$ downsampled bird-view feature maps, where the raw point clouds partially make up the quantization loss of the point-cloud voxelization while the 2D bird-view maps have larger receptive fields along the $Z$ axis. The raw point-cloud feature $f_{i}^{(raw)}$ is also aggregated as in Eq. (2), while bird-view feature $f_{i}^{(bev)}$ of keypoint $p_i$ are obtained by bilinear interpolation on the bird-view feature maps. Hence, the keypoint feature for $p_i$ is further enriched by concatenating all its associated features
+
+$$
+f _ {i} ^ {(p)} = \left[ f _ {i} ^ {(p v)}, f _ {i} ^ {(r a w)}, f _ {i} ^ {(b e v)} \right], \text {f o r} i = 1, \dots , n, \tag {4}
+$$
+
+which have strong capability of preserving 3D structural information of the entire scene to boost the final performance.
+
+
+Figure 3. Illustration of Predicted Keypoint Weighting module.
+
+Predicted Keypoint Weighting. After the overall scene is encoded by a small number of keypoints, they would be further utilized by the succeeding stage for conducting proposal refinement. The keypoints are chosen by the Further Point Sampling strategy and some of them might only represent the background regions. Intuitively, keypoints belonging to the foreground objects should contribute more to the accurate refinement of the proposals, while the ones from the background regions should contribute less.
+
+Hence, we propose a Predicted Keypoint Weighting (PKW) module (see Fig. 3) to re-weight the keypoint features with extra supervisions from point-cloud segmentation. The segmentation labels can be directly generated by the 3D detection box annotations, i.e. by checking whether each keypoint is inside or outside of a ground-truth 3D box. The predicted feature weighting for each keypoint's feature $\tilde{f}_i^{(p)}$ can be formulated as
+
+$$
+\tilde {f} _ {i} ^ {(p)} = \mathcal {A} \left(f _ {i} ^ {(p)}\right) \cdot f _ {i} ^ {(p)}, \tag {5}
+$$
+
+where $\mathcal{A}(\cdot)$ is a three-layer MLP network with a sigmoid function to predict foreground confidence between [0, 1]. The PKW module is trained by focal loss [19] with default hyper-parameters for handling the unbalanced number of foreground/background points in the training set.
+
+# 3.3. Keypoint-to-grid RoI Feature Abstraction for Proposal Refinement
+
+In the previous step, the whole scene is summarized into a small number of keypoints with multi-scale semantic features. Given each 3D proposal (RoI) generated by the 3D voxel CNN, the features of each RoI need to be aggregated from the keypoint features $\tilde{\mathcal{F}} = \{\tilde{f}_1^{(p)},\dots ,\tilde{f}_n^{(p)}\}$ for accurate and robust proposal refinement. We propose the keypoint-to-grid RoI feature abstraction based on the set abstraction operation for multi-scale RoI feature encoding.
+
+RoI-grid Pooling via Set Abstraction. Given each 3D RoI, as shown in Fig. 4, we propose the RoI-grid pooling module to aggregate the keypoint features to the RoI-grid points with multiple receptive fields. We uniformly sample $6 \times 6 \times 6$ grid points within each 3D proposal, which are denoted as $\mathcal{G} = \{g_1, \dots, g_{216}\}$ . The set abstraction operation is adopted to aggregate the features of grid points from the keypoint features. Specifically, we firstly identify the neighboring keypoints of grid point $g_i$ within a radius $\tilde{r}$ as
+
+
+Figure 4. Illustration of RoI-grid pooling module. Rich context information of each 3D RoI is aggregated by the set abstraction operation with multiple receptive fields.
+
+$$
+\tilde {\Psi} = \left\{\left[ \tilde {f} _ {j} ^ {(p)}; p _ {j} - g _ {i} \right] ^ {T} \left| \begin{array}{l} \| p _ {j} - g _ {i} \| ^ {2} < \tilde {r}, \\ \forall p _ {j} \in \mathcal {K}, \forall \tilde {f} _ {j} ^ {(p)} \in \tilde {\mathcal {F}} \end{array} \right. \right\}, \tag {6}
+$$
+
+where $p_j - g_i$ is appended to indicate the local relative location of features $\tilde{f}_j^{(p)}$ from keypoint $p_j$ . Then a PointNet-block [25] is adopted to aggregate the neighboring keypoint feature set $\tilde{\Psi}$ to generate the feature for grid point $g_i$ as
+
+$$
+\tilde {f} _ {i} ^ {(g)} = \max \left\{G \left(\mathcal {M} (\tilde {\Psi})\right) \right\}, \tag {7}
+$$
+
+where $\mathcal{M}(\cdot)$ and $G(\cdot)$ are defined as the same in Eq. (2). We set multiple radii $\tilde{r}$ and aggregate keypoint features with different receptive fields, which are concatenated together for capturing richer multi-scale contextual information.
+
+After obtaining each grid's aggregated features from its surrounding keypoints, all RoI-grid features of the same RoI can be vectorized and transformed by a two-layer MLP with 256 feature dimensions to represent the overall proposal.
+
+Compared with the point cloud 3D RoI pooling operations in previous works [27, 40, 28], our proposed RoI-grid pooling operation targeting the keypoints is able to capture much richer contextual information with flexible receptive fields, where the receptive fields are even beyond the RoI boundaries for capturing the surrounding keypoint features outside the 3D RoI, while the previous state-of-the-art methods either simply average all point-wise features within the proposal as the RoI feature [27], or pool many uninformative zeros as the RoI features [28, 40].
+
+3D Proposal Refinement and Confidence Prediction. Given the RoI feature of each box proposal, the proposal refinement network learns to predict the size and location (i.e., center, size and orientation) residuals relative to the input 3D proposal. The refinement network adopts a 2-layer MLP and has two branches for confidence prediction and box refinement respectively.
+
+For the confidence prediction branch, we follow [15, 9, 28] to adopt the 3D Intersection-over-Union (IoU) between the 3D RoIs and their corresponding ground-truth boxes as the training targets. For the $k$ -th 3D RoI, its confidence training target $y_{k}$ is normalized to be between $[0,1]$ as
+
+$$
+y _ {k} = \min (1, \max (0, 2 \mathrm {I o U} _ {k} - 0. 5)), \tag {8}
+$$
+
+where $\mathrm{IoU}_k$ is the IoU of the $k$ -th RoI w.r.t. its ground-truth box, and this confidence branch is optimized with the binary cross entropy loss. Our experiments in Table 8 show that this quality-aware confidence prediction strategy achieves better performance than the traditional classification targets.
+
+The box regression targets of the box refinement branch are encoded by the traditional residual-based method as in [37, 28] and are optimized by smooth-L1 loss function.
+
+# 4. Experiments
+
+In this section, we introduce the implementation details of our PV-RCNN (Sec. 4.1) and compare with previous state-of-the-art methods on both the highly competitive KITTI dataset [4] (Sec. 4.2) and the newly introduced large-scale Waymo Open Dataset [31, 22, 44] (Sec. 4.3). In Sec. 4.4, we conduct extensive ablation studies to investigate each component of PV-RCNN to validate our design.
+
+# 4.1. Experimental Setup
+
+Datasets. KITTI Dataset [4] is one of the most popular dataset of 3D detection for autonomous driving. There are 7,481 training samples and 7,518 test samples, where the training samples are generally divided into the train split (3,712 samples) and the val split (3,769 samples).
+
+Waymo Open Dataset is a recently released and currently the largest dataset of 3D detection for autonomous driving. There are totally 798 training sequences with around 158,361 LiDAR samples, and 202 validation sequences with 40,077 LiDAR samples. It annotated the objects in the full $360^{\circ}$ field instead of $90^{\circ}$ in KITTI dataset. We evaluate our model on this large-scale dataset to further validate the effectiveness of our proposed method.
+
+Network Architecture. As shown in Fig. 2, the 3D voxel CNN has four levels with feature dimensions 16, 32, 64, 64, respectively. Their two neighboring radii $r_k$ of each level in the VSA module are set as (0.4m, 0.8m), (0.8m, 1.2m), (1.2m, 2.4m), (2.4m, 4.8m), and the neighborhood radii of set abstraction for raw points are (0.4m, 0.8m). For the proposed RoI-grid pooling operation, we uniformly sample $6 \times 6 \times 6$ grid points in each 3D proposal and the two neighboring radii $\tilde{r}$ of each grid point are (0.8m, 1.6m).
+
+For the KITTI dataset, the detection range is within $[0,70.4]m$ for the $X$ axis, $[-40,40]m$ for the $Y$ axis and $[-3,1]m$ for the $Z$ axis, which is voxelized with the voxel size $(0.05m,0.05m,0.1m)$ in each axis. For the Waymo Open dataset, the detection range is $[-75.2,75.2]m$ for the $X$ and $Y$ axes and $[-2,4]m$ for the $Z$ axis, and we set the voxel size to $(0.1m,0.1m,0.15m)$ .
+
+Training and Inference Details. Our PV-RCNN framework is trained from scratch in an end-to-end manner with the ADAM optimizer. For the KITTI dataset, we train the entire network with the batch size 24, learning rate 0.01 for 80 epochs on 8 GTX 1080 Ti GPUs, which takes around
+
+5 hours. For the Waymo Open Dataset, we train the entire network with batch size 64, learning rate 0.01 for 50 epochs on 32 GTX 1080 Ti GPUs, which takes around 25 hours. The cosine annealing learning rate strategy is adopted for the learning rate decay. For the proposal refinement stage, we randomly sample 128 proposals with 1:1 ratio for positive and negative proposals, where a proposal is considered as a positive proposal for box refinement branch if it has at least 0.55 3D IoU with the ground-truth boxes, otherwise it is treated as a negative proposal.
+
+During training, we utilize the widely adopted data augmentation strategy of 3D object detection, including random flipping along the $X$ axis, global scaling with a random scaling factor sampled from $[0.95, 1.05]$ , global rotation around the $Z$ axis with a random angle sampled from $[- \frac{\pi}{4}, \frac{\pi}{4}]$ . We also conduct the ground-truth sampling augmentation [37] to randomly "paste" some new ground-truth objects from other scenes to the current training scenes, for simulating objects in various environments.
+
+For inference, we keep the top-100 proposals generated from the 3D voxel CNN with a 3D IoU threshold of 0.7 for non-maximum-suppression (NMS). These proposals are further refined in the proposal refinement stage with aggregated keypoint features. We finally use an NMS threshold of 0.01 to remove the redundant boxes.
+
+# 4.2. 3D Detection on the KITTI Dataset
+
+To evaluate the proposed model's performance on the KITTI val split, we train our model on the train set and report the results on the val set. To conduct evaluation on the test set with the KITTI official test server, the model is trained with $80\%$ of all available train+val data and the remaining $20\%$ data is used for validation.
+
+Evaluation Metric. All results are evaluated by the mean average precision with a rotated IoU threshold 0.7 for cars and 0.5 for pedestrian and cyclists. The mean average precisions on the test set are calculated with 40 recall positions on the official KITTI test server [11]. The results on the val set in Table 2 are calculated with 11 recall positions to compare with the results by the previous works.
+
+Comparison with state-of-the-art methods. Table 1 shows the performance of PV-RCNN on the KITTI test set from the official online leaderboard. For the most important 3D object detection benchmark of the car class, our method outperforms previous state-of-the-art methods with remarkable margins, i.e. increasing the mAP by $1.58\%$ , $1.72\%$ , $1.73\%$ on easy, moderate and hard difficulty levels, respectively. For the bird-view detection of the car class, our method also achieves new state-of-the-art performance on the easy and moderate difficulty levels while dropping slightly on the hard difficulty level. For the performance of pedestrian and cyclist, our method achieves better or comparable results on all the moderate and hard difficulty levels
+
+| Method | Modality | Car - 3D Detection | Car - BEV Detection | Ped. - 3D Detection | Ped. - BEV Detection | Cyc. - 3D Detection | Cyc. - BEV Detection |
| Easy | Mod. | Hard | Easy | Mod. | Hard | Easy | Mod. | Hard | Easy | Mod. | Hard | Easy | Mod. | Hard | Easy | Mod. | Hard |
| MV3D [1] | RGB + LiDAR | 74.97 | 63.63 | 54.00 | 86.62 | 78.93 | 69.80 | - | - | - | - | - | - | - | - | - | - | - | - |
| ContFuse [18] | RGB + LiDAR | 83.68 | 68.78 | 61.67 | 94.07 | 85.35 | 75.88 | - | - | - | - | - | - | - | - | - | - | - | - |
| AVOD-FPN [12] | RGB + LiDAR | 83.07 | 71.76 | 65.73 | 90.99 | 84.82 | 79.62 | 50.46 | 42.27 | 39.04 | 58.49 | 50.32 | 46.98 | 63.76 | 50.55 | 44.93 | 69.39 | 57.12 | 51.09 |
| F-PointNet [24] | RGB + LiDAR | 82.19 | 69.79 | 60.59 | 91.17 | 84.67 | 74.77 | 50.53 | 42.15 | 38.08 | 57.13 | 49.57 | 45.48 | 72.27 | 56.12 | 49.01 | 77.26 | 61.37 | 53.78 |
| F-ConvNet [35] | RGB + LiDAR | 87.36 | 76.39 | 66.69 | 91.51 | 85.84 | 76.11 | 52.16 | 43.38 | 38.80 | 57.04 | 48.96 | 44.33 | 81.98 | 65.07 | 56.54 | 84.16 | 68.88 | 60.05 |
| UberATG-MMF [17] | RGB + LiDAR | 88.40 | 77.43 | 70.22 | 93.67 | 88.21 | 81.99 | - | - | - | - | - | - | - | - | - | - | - | - |
| SECOND-V1.5 [37] | LiDAR only | 84.65 | 75.96 | 68.71 | 91.81 | 86.37 | 81.04 | - | - | - | - | - | - | - | - | - | - | - | - |
| PointPillars [13] | LiDAR only | 82.58 | 74.31 | 68.99 | 90.07 | 86.56 | 82.81 | 51.45 | 41.92 | 38.89 | 57.60 | 48.64 | 45.78 | 77.10 | 58.65 | 51.92 | 79.90 | 62.73 | 55.58 |
| PointRCNN [27] | LiDAR only | 86.96 | 75.64 | 70.70 | 92.13 | 87.39 | 82.72 | 47.98 | 39.37 | 36.01 | 54.77 | 46.13 | 42.84 | 74.96 | 58.82 | 52.53 | 82.56 | 67.24 | 60.28 |
| 3D IoU Loss [43] | LiDAR only | 86.16 | 76.50 | 71.39 | 91.36 | 86.22 | 81.20 | - | - | - | - | - | - | - | - | - | - | - | - |
| Fast Point R-CNN [2] | LiDAR only | 85.29 | 77.40 | 70.24 | 90.87 | 87.84 | 80.52 | - | - | - | - | - | - | - | - | - | - | - | - |
| STD [40] | LiDAR only | 87.95 | 79.71 | 75.09 | 94.74 | 89.19 | 86.42 | 53.29 | 42.47 | 38.35 | 60.02 | 48.72 | 44.55 | 78.69 | 61.59 | 55.30 | 81.36 | 67.23 | 59.35 |
| Patches [14] | LiDAR only | 88.67 | 77.20 | 71.82 | 92.72 | 88.39 | 83.19 | - | - | - | - | - | - | - | - | - | - | - | - |
| Part-\( A^2 \) [28] | LiDAR only | 87.81 | 78.49 | 73.51 | 91.70 | 87.79 | 84.61 | 53.10 | 43.35 | 40.06 | 59.04 | 49.81 | 45.92 | 79.17 | 63.52 | 56.93 | 83.43 | 68.73 | 61.85 |
| PV-RCNN (Ours) | LiDAR only | 90.25 | 81.43 | 76.82 | 94.98 | 90.65 | 86.14 | 52.17 | 43.29 | 40.29 | 59.86 | 50.57 | 46.74 | 78.60 | 63.71 | 57.65 | 82.49 | 68.89 | 62.41 |
| Improvement | - | +1.58 | +1.72 | +1.73 | +0.24 | +1.46 | -0.28 | -1.12 | -0.06 | +0.23 | -0.16 | +0.76 | +0.82 | -0.57 | +0.19 | +0.72 | -0.94 | +0.16 | +0.56 |
+
+Table 1. Performance comparison on the KITTI test set. The results are evaluated by the mean Average Precision with 40 recall positions.
+
+| Method | Reference | Modality | 3D mAP |
| MV3D [1] | CVPR 2017 | RGB + LiDAR | 62.68 |
| ContFuse[18] | ECCV 2018 | RGB + LiDAR | 73.25 |
| AVOD-FPN [12] | IROS 2018 | RGB + LiDAR | 74.44 |
| F-PointNet [24] | CVPR 2018 | RGB + LiDAR | 70.92 |
| VoxelNet [45] | CVPR 2018 | LiDAR only | 65.46 |
| SECOND [37] | Sensors 2018 | LiDAR only | 76.48 |
| PointRCNN [27] | CVPR 2019 | LiDAR only | 78.63 |
| Fast Point R-CNN [2] | ICCV 2019 | LiDAR only | 79.00 |
| STD [40] | ICCV 2019 | LiDAR only | 79.80 |
| PV-RCNN (Ours) | - | LiDAR only | 83.90 |
+
+Table 2. Performance comparison on the moderate level car class of KITTI val split with mAP calculated by 11 recall positions.
+
+| IoU
+Thresh. | 3D mAP | BEV mAP |
| Easy | Moderate | Hard | Easy | Moderate | Hard |
| 0.7 | 92.57 | 84.83 | 82.69 | 95.76 | 91.11 | 88.93 |
+
+Table 3. Performance on the KITTI val split set with mAP calculated by 40 recall positions for car class.
+
+| Method | PointRCNN [27] | STD [40] | PV-RCNN (Ours) |
| Recall (IoU=0.7) | 74.8 | 76.8 | 85.5 |
+
+Table 4. Recall of different proposal generation networks on the car class at moderate difficulty level of the KITTI val split set.
+
+while achieving slightly worse results on the easy difficulty levels, where we think the limited number of keypoints may harm the performance of the objects with small sizes.
+
+As of Nov. 15th, 2019, our method ranks $1^{st}$ on the car 3D detection leaderboard among all methods including both the RGB+LiDAR methods and LiDAR-only methods, and ranks $1^{st}$ on the cyclist 3D detection leaderboard among all published LiDAR-only methods. The significant improvements manifest the effectiveness of the PV-RCNN.
+
+We also report the performance of the most important car class on the KITTI val split with mAP from $R11$ . Similarly, as shown in Table 2, our method outperforms previous state-of-the-art methods with large margins. The performance with $R40$ are also provided in Table 3 for reference.
+
+# 4.3. 3D Detection on the Waymo Open Dataset
+
+To further validate the effectiveness of our proposed PV-RCNN, we evaluate the performance of PV-RCNN on the newly released large-scale Waymo Open Dataset.
+
+Evaluation Metric. We adopt the official released evaluation tools for evaluating our method, where the mean average precision (mAP) and the mean average precision weighted by heading (mAPH) are used for evaluation. The rotated IoU threshold is set as 0.7 for vehicle. The test data are split in two ways. The first way is based on objects' different distances to the sensor: $0 - 30m$ , $30 - 50m$ and $>50m$ . The second way is to split the data into two difficulty levels, where the LEVEL_1 denotes the ground-truth objects with more than 5 inside points while the LEVEL_2 denotes the ground-truth objects with at least 1 inside points.
+
+Comparison with state-of-the-art methods. Table 5 shows that our method outperforms previous state-of-the-art [44] significantly with a $7.37\%$ mAP gain for the 3D object detection and a $2.56\%$ mAP gain for the bird-view object detection. The results show that our method achieves remarkably better mAP on all distance ranges of interest, where the maximum gain is $9.19\%$ for the 3D detection in the range of $30 - 50m$ , which validates that our proposed multi-scale point-voxel integration strategy is able to effectively capture more accurate contextual information for improving the 3D detection performance. As shown in Table 5, our method also achieves superior performance in terms of mAPH, which demonstrates that our model predicted accurate heading direction for the vehicles. The results on the LEVEL_2 difficult level are also reported in Table 5 for reference, and we could see that our method performs well even for the objects with fewer than 5 inside points. The experimental results on the large-scale Waymo Open dataset further validate the generalization ability of our proposed framework on various datasets.
+
+# 4.4. Ablation Studies
+
+In this section, we conduct extensive ablation experiments to analyze individual components of our proposed method. All models are trained on the train split and evaluated on the val split for the car class of KITTI dataset [4].
+
+Effects of voxel-to-keypoint scene encoding. We validate the effectiveness of voxel-to-keypoint scene encoding strategy by comparing with the native solution that directly
+
+| Difficulty | Method | 3D mAP (IoU=0.7) | 3D mAPH (IoU=0.7) | BEV mAP (IoU=0.7) | BEV mAPH (IoU=0.7) |
| Overall | 0-30m | 30-50m | 50m-Inf | Overall | 0-30m | 30-50m | 50m-Inf | Overall | 0-30m | 30-50m | 50m-Inf | Overall | 0-30m | 30-50m | 50m-Inf |
| LEVEL_1 | PointPillar [13] | 56.62 | 81.01 | 51.75 | 27.94 | - | - | - | - | 75.57 | 92.1 | 74.06 | 55.47 | - | - | - | - |
| MVF [44] | 62.93 | 86.30 | 60.02 | 36.02 | - | - | - | - | 80.40 | 93.59 | 79.21 | 63.09 | - | - | - | - |
| PV-RCNN (Ours) | 70.30 | 91.92 | 69.21 | 42.17 | 69.69 | 91.34 | 68.53 | 41.31 | 82.96 | 97.35 | 82.99 | 64.97 | 82.06 | 96.71 | 82.01 | 63.15 |
| Improvement | +7.37 | +5.62 | +9.19 | +6.15 | - | - | - | - | +2.56 | +3.76 | +3.78 | +1.88 | - | - | - | - |
| LEVEL_2 | PV-RCNN (Ours) | 65.36 | 91.58 | 65.13 | 36.46 | 64.79 | 91.00 | 64.49 | 35.70 | 77.45 | 94.64 | 80.39 | 55.39 | 76.60 | 94.03 | 79.40 | 53.82 |
+
+Table 5. Performance comparison on the Waymo Open Dataset with 202 validation sequences for the vehicle detection. Note that the results of PointPillar [13] on the Waymo Open Dataset are reproduced by [44].
+
+| Method | RPN with 3D
+Voxel CNN | Keypoints
+Encoding | RoI-grid
+Pooling | Easy Mod. Hard |
| RPN Baseline | ✓ | | | 90.46 80.87 77.30 |
| Pool from Encoder | ✓ | | ✓ | 91.88 82.86 80.52 |
| PV-RCNN | ✓ | ✓ | ✓ | 92.57 84.83 82.69 |
+
+Table 6. Effects of voxel-to-keypoint scene encoding strategy and RoI-grid pooling refinement.
+
+| fiv(pv1) | fiv(pv2) | fiv(pv3) | fiv(pv4) | fiv(bev) | fivraw) | Moderate mAP |
| | | | | ✓ | 81.98 |
| | | | ✓ | | 83.32 |
| | | ✓ | | | 83.17 |
| | ✓ | ✓ | | | 84.54 |
| | ✓ | ✓ | ✓ | | 84.69 |
| | ✓ | ✓ | ✓ | ✓ | 84.72 |
| ✓ | ✓ | ✓ | ✓ | ✓ | 84.75 |
| ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | 84.83 |
+
+aggregating feature volumes from encoder to the RoI-grid points (see Sec. 3.1). As shown in the $2^{nd}$ and $3^{rd}$ rows of Table 6, the voxel-to-keypoint scene encoding strategy contributes significantly to the performance in all difficulty levels. This benefits from that the keypoints enlarge the receptive fields by bridging the 3D voxel CNN and RoI-grid points, and the segmentation supervision of keypoints also enables a better multi-scale feature learning from the 3D voxel CNN. Besides, a small set of keypoints as the intermediate feature representation also decreases the GPU memory usage when compared with the directly pooling strategy.
+
+Effects of different features for VSA module. In Table 7, we investigate the importance of each feature component of keypoints in Eq. (3) and Eq. (4). The $1^{st}$ row shows that the performance drops a lot if we only aggregate features from $f_{i}^{(\text{raw})}$ , since the shallow semantic information is not enough for the proposal refinement. The high level semantic information from $f_{i}^{(\text{pv}_3)}$ , $f_{i}^{(\text{pv}_4)}$ and $f_{i}^{(\text{bev})}$ improves the performance significantly as shown in $2^{nd}$ to $5^{th}$ rows. As shown in last four rows, the additions of relative shallow semantic features $f_{i}^{(\text{pv}_1)}$ , $f_{i}^{(\text{pv}_2)}$ , $f_{i}^{(\text{raw})}$ further improves the performance slightly and the best performance is achieved with all the feature components as the keypoint features.
+
+Effects of PKW module. We propose the predicted keypoint weighting (PKW) module in Sec. 3.2 to re-weight the point-wise features of keypoint with extra keypoint segmentation supervision. Table 8 ( $1^{st}$ and $4^{th}$ rows) shows that removing the PKW module drops performance a lot, which demonstrates that the PKW module enables better multi-scale feature aggregation by focusing more on the
+
+Table 7. Effects of different feature components for VSA module.
+
+| PKW | RoI Pooling | Confidence Prediction | Easy | Moderate | Hard |
| X | RoI-grid Pooling | IoU-guided scoring | 92.09 | 82.95 | 81.93 |
| ✓ | RoI-aware Pooling | IoU-guided scoring | 92.54 | 82.97 | 80.30 |
| ✓ | RoI-grid Pooling | Classification | 91.71 | 82.50 | 81.41 |
| ✓ | RoI-grid Pooling | IoU-guided Scoring | 92.57 | 84.83 | 82.69 |
+
+Table 8. Effects of predicted keypoint weighting module, RoI-grid pooling module and IoU-guided confidence prediction.
+
+foreground keypoints, since they are more important for the succeeding proposal refinement network.
+
+Effects of RoI-grid pooling module. We investigate the effects of RoI-grid pooling module by replacing it with the RoI-aware pooling [28] and keeping the other modules consistent. Table 8 shows that the performance drops significantly when replacing RoI-grid pooling module, which validates that our proposed set abstraction based RoI-grid pooling could learn much richer contextual information, and the pooled features also encode more discriminative RoI features by pooling more effective features with large search radii for each grid point. $1^{st}$ and $2^{nd}$ rows of Table 6 also shows that comparing with the 3D voxel RPN, the performance increases a lot after the proposal is refined by the features aggregated from the RoI-grid pooling module.
+
+# 5. Conclusion
+
+We have presented the PV-RCNN framework, a novel method for accurate 3D object detection from point clouds. Our method integrates both the multi-scale 3D voxel CNN features and the PointNet-based features to a small set of keypoints by the new proposed voxel set abstraction layer, and the learned discriminative features of keypoints are then aggregated to the RoI-grid points with multiple receptive fields to capture much richer context information for the fine-grained proposal refinement. Experimental results on the KITTI dataset and the Waymo Open dataset demonstrate that our proposed voxel-to-keypoint scene encoding and keypoint-to-grid RoI feature abstraction strategy significantly improve the 3D object detection performance compared with previous state-of-the-art methods.
+
+Acknowledgments This work is supported in part by SenseTime Group Limited, in part by the General Research Fund through the Research Grants Council of Hong Kong under Grants CUHK14202217, CUHK14203118, CUHK14205615, CUHK14207814, CUHK14213616, CUHK14208417, CUHK14239816, in part by Research Impact Fund R5001-18, and in part by CUHK Direct Grant.
+
+# References
+
+[1] Xiaozhi Chen, Huimin Ma, Ji Wan, Bo Li, and Tian Xia. Multi-view 3d object detection network for autonomous driving. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017.
+[2] Yilun Chen, Shu Liu, Xiaoyong Shen, and Jiaya Jia. Fast point r-cnn. In Proceedings of the IEEE international conference on computer vision (ICCV), 2019.
+[3] Christopher Choy, JunYoung Gwak, and Silvio Savarese. 4d spatio-temporal convnets: Minkowski convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3075-3084, 2019.
+[4] Andreas Geiger, Philip Lenz, and Raquel Urtasun. Are we ready for autonomous driving? the kitti vision benchmark suite. In Conference on Computer Vision and Pattern Recognition (CVPR), 2012.
+[5] Benjamin Graham, Martin Engelcke, and Laurens van der Maaten. 3d semantic segmentation with submanifold sparse convolutional networks. CVPR, 2018.
+[6] Benjamin Graham and Laurens van der Maaten. Submanifold sparse convolutional networks. CoRR, abs/1706.01307, 2017.
+[7] Qiangui Huang, Weiyue Wang, and Ulrich Neumann. Recurrent slice networks for 3d segmentation of point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2626-2635, 2018.
+[8] Maximilian Jaritz, Jiayuan Gu, and Hao Su. Multi-view pointnet for 3d scene understanding. In Proceedings of the IEEE International Conference on Computer Vision Workshops, pages 0-0, 2019.
+[9] Borui Jiang, Ruixuan Luo, Jiayuan Mao, Tete Xiao, and Yun-ting Jiang. Acquisition of localization confidence for accurate object detection. In Proceedings of the European Conference on Computer Vision (ECCV), pages 784–799, 2018.
+[10] Li Jiang, Hengshuang Zhao, Shu Liu, Xiaoyong Shen, ChiWing Fu, and Jiaya Jia. Hierarchical point-edge interaction network for point cloud semantic segmentation. In Proceedings of the IEEE International Conference on Computer Vision, pages 10433-10441, 2019.
+[11] KITTI leader board of 3D object detection benchmark. http://www.cvlibs.net/datasets/kitti/eval_object.php?obj_benchmark=3d, Accessed on 2019-11-15.
+[12] Jason Ku, Melissa Mozifian, Jungwook Lee, Ali Harakeh, and Steven Waslander. Joint 3d proposal generation and object detection from view aggregation. IROS, 2018.
+[13] Alex H Lang, Sourabh Vora, Holger Caesar, Lubing Zhou, Jiong Yang, and Oscar Beijbom. Pointpillars: Fast encoders for object detection from point clouds. CVPR, 2019.
+[14] Johannes Lehner, Andreas Mitterecker, Thomas Adler, Markus Hofmacher, Bernhard Nessler, and Sepp Hochreiter. Patch refinement - localized 3d object detection. CoRR, abs/1910.04093, 2019.
+[15] Buyu Li, Wanli Ouyang, Lu Sheng, Xingyu Zeng, and Xiaogang Wang. Gs3d: An efficient 3d object detection framework for autonomous driving. In Proceedings of the IEEE
+
+Conference on Computer Vision and Pattern Recognition, pages 1019-1028, 2019.
+[16] Yangyan Li, Rui Bu, Mingchao Sun, Wei Wu, Xinhan Di, and Baoquan Chen. Pointcnn: Convolution on x-transformed points. In Advances in Neural Information Processing Systems, pages 820-830, 2018.
+[17] Ming Liang*, Bin Yang*, Yun Chen, Rui Hu, and Raquel Urtasun. Multi-task multi-sensor fusion for 3d object detection. In CVPR, 2019.
+[18] Ming Liang, Bin Yang, Shenlong Wang, and Raquel Urtasun. Deep continuous fusion for multi-sensor 3d object detection. In ECCV, 2018.
+[19] Tsung-Yi Lin, Priyal Goyal, Ross Girshick, Kaiming He, and Piotr Dólár. Focal loss for dense object detection. IEEE transactions on pattern analysis and machine intelligence, 2018.
+[20] Zhijian Liu, Haotian Tang, Yujun Lin, and Song Han. Point-voxel CNN for efficient 3d deep learning. CoRR, abs/1907.03739, 2019.
+[21] Jiageng Mao, Xiaogang Wang, and Hongsheng Li. Interpolated convolutional networks for 3d point cloud understanding. In Proceedings of the IEEE International Conference on Computer Vision, pages 1578-1587, 2019.
+[22] Jiquan Ngiam, Benjamin Caine, Wei Han, Brandon Yang, Yuning Chai, Pei Sun, Yin Zhou, Xi Yi, Ouais Alsharif, Patrick Nguyen, Zhifeng Chen, Jonathon Shlens, and Vijay Vasudevan. Starnet: Targeted computation for object detection in point clouds. CoRR, abs/1908.11069, 2019.
+[23] Charles R. Qi, Or Litany, Kaiming He, and Leonidas J. Guibas. Deep hough voting for 3d object detection in point clouds. In The IEEE International Conference on Computer Vision (ICCV), October 2019.
+[24] Charles R. Qi, Wei Liu, Chenxia Wu, Hao Su, and Leonidas J. Guibas. Frustum pointnets for 3d object detection from rgb-d data. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018.
+[25] 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.
+[26] Charles Ruizhongtai Qi, Li Yi, Hao Su, and Leonidas J Guibas. Pointnet++: Deep hierarchical feature learning on point sets in a metric space. In Advances in Neural Information Processing Systems, pages 5099-5108, 2017.
+[27] Shaoshuai Shi, Xiaogang Wang, and Hongsheng Li. Pointr-cnn: 3d object proposal generation and detection from point cloud. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 770-779, 2019.
+[28] Shaoshuai Shi, Zhe Wang, Jianping Shi, Xiaogang Wang, and Hongsheng Li. From points to parts: 3d object detection from point cloud with part-aware and part-aggregation network. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2020.
+[29] Shuran Song and Jianxiong Xiao. Deep sliding shapes for amodal 3d object detection in rgb-d images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 808-816, 2016.
+
+[30] Hang Su, Varun Jampani, Deqing Sun, Subhransu Maji, Evangelos Kalogerakis, Ming-Hsuan Yang, and Jan Kautz. Splatnet: Sparse lattice networks for point cloud processing. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2530-2539, 2018.
+[31] Pei Sun, Henrik Kretzschmar, Xerxes Dotiwalla, Aurelien Chouard, Vijaysai Patnaik, Paul Tsui, James Guo, Yin Zhou, Yuning Chai, Benjamin Caine, et al. Scalability in perception for autonomous driving: Waymo open dataset. arXiv, pages arXiv-1912, 2019.
+[32] 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 The IEEE International Conference on Computer Vision (ICCV), October 2019.
+[33] Bei Wang, Jianping An, and Jiayan Cao. Voxel-fpn: multiscale voxel feature aggregation in 3d object detection from point clouds. CoRR, abs/1907.05286, 2019.
+[34] 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 Transactions on Graphics (TOG), 38(5):146, 2019.
+[35] Zhixin Wang and Kui Jia. Frustum convnet: Sliding frustums to aggregate local point-wise features for amodal 3d object detection. In IROS. IEEE, 2019.
+[36] Wenxuan Wu, Zhongang Qi, and Li Fuxin. Pointconv: Deep convolutional networks on 3d point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9621-9630, 2019.
+[37] Yan Yan, Yuxing Mao, and Bo Li. Second: Sparsely embedded convolutional detection. Sensors, 18(10):3337, 2018.
+[38] Bin Yang, Ming Liang, and Raquel Urtasun. Hdnet: Exploiting hd maps for 3d object detection. In 2nd Conference on Robot Learning (CoRL), 2018.
+[39] Bin Yang, Wenjie Luo, and Raquel Urtasun. *Pixor: Real-time 3d object detection from point clouds*. In *Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition*, pages 7652-7660, 2018.
+[40] Zetong Yang, Yanan Sun, Shu Liu, Xiaoyong Shen, and Jiaya Jia. STD: sparse-to-dense 3d object detector for point cloud. ICCV, 2019.
+[41] Hongwei Yi, Shaoshuai Shi, Mingyu Ding, Jiankai Sun, Kui Xu, Hui Zhou, Zhe Wang, Sheng Li, and Guoping Wang. Segvoxelnet: Exploring semantic context and depth-aware features for 3d vehicle detection from point cloud. In IEEE International Conference on Robotics and Automation, 2020.
+[42] Hengshuang Zhao, Li Jiang, Chi-Wing Fu, and Jiaya Jia. Pointweb: Enhancing local neighborhood features for point cloud processing. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5565-5573, 2019.
+[43] Dingfu Zhou, Jin Fang, Xibin Song, Chenye Guan, Junbo Yin, Yuchao Dai, and Ruigang Yang. Iou loss for 2d/3d object detection. In International Conference on 3D Vision (3DV). IEEE, 2019.
+
+[44] Yin Zhou, Pei Sun, Yu Zhang, Dragomir Anguelov, Jiyang Gao, Tom Ouyang, James Guo, Jiquan Ngiam, and Vijay Vasudevan. End-to-end multi-view fusion for 3d object detection in lidar point clouds. CoRR, abs/1910.06528, 2019.
+[45] Yin Zhou and Oncel Tuzel. Voxelnet: End-to-end learning for point cloud based 3d object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4490-4499, 2018.
+[46] Benjin Zhu, Zhengkai Jiang, Xiangxin Zhou, Zeming Li, and Gang Yu. Class-balanced grouping and sampling for point cloud 3d object detection. CoRR, abs/1908.09492, 2019.
\ No newline at end of file
diff --git a/pvrcnnpointvoxelfeaturesetabstractionfor3dobjectdetection/images.zip b/pvrcnnpointvoxelfeaturesetabstractionfor3dobjectdetection/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..d68cb8e1c8dc0b79d45641f977c869a7b31f3130
--- /dev/null
+++ b/pvrcnnpointvoxelfeaturesetabstractionfor3dobjectdetection/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9bcfa482bf21a3e7763d40a1244b9355b67fe1cfca260f2a9527ca20808da7f4
+size 526129
diff --git a/pvrcnnpointvoxelfeaturesetabstractionfor3dobjectdetection/layout.json b/pvrcnnpointvoxelfeaturesetabstractionfor3dobjectdetection/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..db44866af4a76cfaeba22c617a160de311304bce
--- /dev/null
+++ b/pvrcnnpointvoxelfeaturesetabstractionfor3dobjectdetection/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ca65189a3619ad2814191624f603f47b39fc2e7c121c59f31bf5f0f5dc171f44
+size 412195