diff --git a/multimodalcategorizationofcrisiseventsinsocialmedia/60ee740a-3778-41e2-b0a0-e04fea03c2a5_content_list.json b/multimodalcategorizationofcrisiseventsinsocialmedia/60ee740a-3778-41e2-b0a0-e04fea03c2a5_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..d57823125d1078d3f84b51967480b5567507f652
--- /dev/null
+++ b/multimodalcategorizationofcrisiseventsinsocialmedia/60ee740a-3778-41e2-b0a0-e04fea03c2a5_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2639b424867cd7b39f3cd8446d65b7155a8ab7217131acbc36c4e3afd2deef04
+size 92264
diff --git a/multimodalcategorizationofcrisiseventsinsocialmedia/60ee740a-3778-41e2-b0a0-e04fea03c2a5_model.json b/multimodalcategorizationofcrisiseventsinsocialmedia/60ee740a-3778-41e2-b0a0-e04fea03c2a5_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..19bc992b6979c3fe9c61919057eca7ad583d3df5
--- /dev/null
+++ b/multimodalcategorizationofcrisiseventsinsocialmedia/60ee740a-3778-41e2-b0a0-e04fea03c2a5_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e1a49c9a783054cbaa1a9f1170a0783c567167f9248460aa2f0729ad54d5b338
+size 116620
diff --git a/multimodalcategorizationofcrisiseventsinsocialmedia/60ee740a-3778-41e2-b0a0-e04fea03c2a5_origin.pdf b/multimodalcategorizationofcrisiseventsinsocialmedia/60ee740a-3778-41e2-b0a0-e04fea03c2a5_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..5cb434b54dda82cc455138ea5a08cdb0fb0099cd
--- /dev/null
+++ b/multimodalcategorizationofcrisiseventsinsocialmedia/60ee740a-3778-41e2-b0a0-e04fea03c2a5_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1fd5f5a3933c13ca65e5a90ad9711dddb10bda2afdd21a019d4bb6c7fb42d13a
+size 780669
diff --git a/multimodalcategorizationofcrisiseventsinsocialmedia/full.md b/multimodalcategorizationofcrisiseventsinsocialmedia/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..6f6854983b26d20feb0d00b013f4bd50bc0cfc71
--- /dev/null
+++ b/multimodalcategorizationofcrisiseventsinsocialmedia/full.md
@@ -0,0 +1,423 @@
+# Multimodal Categorization of Crisis Events in Social Media
+
+Mahdi Abavisani*
+
+Dataminr Inc., New York, NY
+
+mabavisani@dataminr.com
+
+Liwei Wu*
+
+Department of Statistics
+
+University of California, Davis
+
+Davis, CA
+
+liwu@ucdavis.edu
+
+Shengli Hu
+
+Dataminr Inc., New York, NY
+
+shu@dataminr.com
+
+Joel Tetreault
+
+Dataminr Inc., New York, NY
+
+jtetreault@dataminr.com
+
+Alejandro Jaimes
+
+Dataminr Inc., New York, NY
+
+ajaimes@dataminr.com
+
+# Abstract
+
+Recent developments in image classification and natural language processing, coupled with the rapid growth in social media usage, have enabled fundamental advances in detecting breaking events around the world in real-time. Emergency response is one such area that stands to gain from these advances. By processing billions of texts and images a minute, events can be automatically detected to enable emergency response workers to better assess rapidly evolving situations and deploy resources accordingly. To date, most event detection techniques in this area have focused on image-only or text-only approaches, limiting detection performance and impacting the quality of information delivered to crisis response teams. In this paper, we present a new multimodal fusion method that leverages both images and texts as input. In particular, we introduce a cross-attention module that can filter uninformative and misleading components from weak modalities on a sample by sample basis. In addition, we employ a multimodal graph-based approach to stochastically transition between embeddings of different multimodal pairs during training to better regularize the learning process as well as dealing with limited training data by constructing new matched pairs from different samples. We show that our method outperforms the unimodal approaches and strong multimodal baselines by a large margin on three crisis-related tasks.
+
+# 1. Introduction
+
+Each second, billions of images and texts that capture a wide range of events happening around us are uploaded to
+
+Oh shit...no injuries..no fire...but somehow two private jets here just North of San Antonio Airport...bizarre accident..
+
+
+Figure 1. A Crisis-related Image-text Pair from Social Media
+
+social media platforms from all over the world. At the same time, the fields of Computer Vision (CV) and Natural Language Processing (NLP) are rapidly advancing [25, 23, 15] and are being deployed at scale. With large-scale visual recognition and textual understanding available as fundamental tools, it is now possible to identify and classify events across the world in real-time. This is possible, to some extent, in images and text separately, and in limited cases, using a combination. A major difficulty in crisis events, $^{1}$ in particular, is that as events surface and evolve, users post fragmented, sometimes conflicting information in the form of image-text pairs. This makes the automatic identification of notable events significantly more challenging.
+
+Unfortunately, in the middle of a crisis, the information that is valuable for first responders and the general public often comes in the form of image-text pairs. So while traditional CV and NLP methods that treat visual and textual information separately can help, a big gap exists in current approaches. Despite the general consensus on the importance of using AI for Social Good [22, 20, 4], the power of social media, and a long history of interdisciplinary research on humanitarian crisis efforts, there has been very little work on automatically detecting crisis events jointly using visual and textual information.
+
+Prior approaches that tackle the detection of crisis events have focused on either image-only or text-only approaches. As shown in Figure 1, however, an image alone can be ambiguous in terms of its urgency whereas the text alone may lack details.
+
+To address these issues, we propose a framework to detect crisis events using a combination of image and text information. In particular, we present an approach to automatically label images, text, and image-text pairs based on the following criteria/tasks: 1) Informativeness: whether the social media post is useful for providing humanitarian aid in an emergency event, 2) Event Classification: identifying the type of emergency (in Figure 2, we show some of the categories that different image-text pairs belong to in our event classification task), and 3) Severity: rating how severe the emergency is based on the damage indicated in the image and text. Our framework consists of several steps in which, given an image-text pair, we create a feature map for the image, generate word embeddings for the text, and propose a cross-attention mechanism to fuse information from the two modalities. It differs from previous multimodal classification in how it deals with fusing that information.
+
+In short, we present a novel, multimodal framework for classification of multimodal data in the crisis domain. This approach, "Cross Attention", avoids transferring negative knowledge between modalities and makes use of stochastic shared embeddings to mitigate overfitting in small data as well as dealing with training data with inconsistent labels for different modalities. Our model outperforms strong unimodal and multimodal baselines by up to 3 F-score points across three crisis tasks.
+
+# 2. Related Work
+
+AI for Emergency Response: Recent years have seen an explosion in the use of Artificial Intelligence for Social Good [22, 20, 4]. Social media has proven to be one of most relevant and diverse resources and testbeds, whether it be for identifying risky mental states of users [11, 17, 21], recognizing emergent health hazards [16], filtering for and detecting natural disasters [48, 40, 47], or surfacing violence and aggression in social media [10].
+
+
+
+
+
+
+Figure 2. Samples from Task 2; Event Classification with Texts and Images.
+
+
+
+Most prior work on detecting crisis events in social media has focused on text signals. For instance, Kumar et al. [33] propose a real-time tweet-tracking system to help first responders gain situational awareness once a disaster happens. Shekhar et al. [50] introduce a crisis analysis system to estimate the damage level of properties and the distress level of victims. At a large scale, filtering (e.g., by anomaly or burst detection), identifying (e.g., by clustering), and categorizing (e.g., by classifying) disaster-related texts on social media have been the foci of multiple research groups [53, 57, 62], achieving accuracy levels topping at 0.75 on small annotated datasets collected from Twitter.
+
+Disaster detection in images has been an active front, whether it be user-generated content or satellite images (for a detailed survey, refer to Said et al. [48]). For instance, Ahmad et al. [5] introduce a pipeline method to effectively link remote sensor data with social media to better assess damage and obtain detailed information about a disaster. Li et al. [37] use convolutional neural networks and visualization methods to locate and quantify damage in a disaster images. Nalluru et al. [42] combine semantic textual and image features to classify the relevancy of social media posts in emergency situations.
+
+Our framework focuses on combining images and text, yielding performance improvements on three disaster classification tasks.
+
+Deep Multimodal Learning: In deep multimodal learning, neural networks are used to integrate the complementary information from multiple representations (modalities) of the same phenomena [59, 43, 3, 13, 2]. In many applications, including image captioning [9, 45], visual question
+
+answering [8, 19], and text-image matching [51, 18, 35], combining image and text signals is of interest. Thus many recent works study image-text fusion [39, 36, 55, 54].
+
+Existing multimodal learning frameworks applied to the crisis domain are relatively limited. Lan et al. [34] combine early fusion and late fusion methods to incorporate their advantages, Ilyas [28] introduce a disaster classification system based on naive-bayes classifiers and support vector machines. Kelly et al. [30] introduce a system for real-time extraction of information from text and image content in Twitter messages with exploiting the spatio-temporal metadata for filtering, visualizing, and monitoring flooding events. Mouzannar et al. [41] propose a multimodal deep learning framework to identify damage related information on social media posts with texts, images, and video.
+
+In the application of crisis tweets categorization, one modality may contain uninformative or even misleading information. The attention module in our model passes information based on the confidence in the usefulness of different modalities. The more confident modality blocks weak or misleading features from the other modality through their cross-attention link. The partially blocked results of both modalities are later judged by a self-attention layer to decide which information should be passed to the next layer. While our attention module is closely related to co-attention and self-attention mechanisms [58, 24, 38, 19, 27, 45], unlike them, it does not need the input features to be homogeneous. In contrast, self-attention and co-attention layers can be sensitive to heterogeneous inputs. The details of the model are described in the next section.
+
+# 3. Methodology
+
+The architecture we propose is designed for classification problems that takes as input image-text pairs such as user generated tweets in social media, as illustrated in Figure 3, where the DenseNet and BERT graphs are from [26] and [15]. Our methodology consists of 4 parts: the first two parts extract feature maps from the image and extract embeddings from the text, respectively; the third part comprises our cross-attention approach to fuse projected image and text embeddings; and the fourth part uses Stochastic Shared Embeddings (SSE) [60] as our regularization technique to prevent over-fitting and deal with training data with inconsistent labels for image and text pairs.
+
+We describe each module in the sub-sections that follow.
+
+# 3.1. Image Model for Feature Map Extraction:
+
+We extract feature maps from images using Convolutional Neural Networks (CNNs). In our model we select DenseNet [26], which reduces module sizes and increases connections between layers to address parameter redundancy and improve accuracy (other approaches, such as EfficientNet [56] could also be used, but DenseNet is efficient
+
+
+Figure 3. Illustration of Our Framework. Embedding features are extracted from images and texts by DenseNet and BERT networks, respectively, and are integrated by the cross-attention module. In the training process, the embeddings of different samples are stochastically transitioned between each other to provide a robust regularization.
+
+and commonly used for this task).
+
+For each image $v_{i}$ , we therefore have:
+
+$$
+f _ {i} = \mathbf {D e n s e N e t} (v _ {i}), \tag {1}
+$$
+
+where $v_{i}$ is the input image, $f_{i}\in \mathbb{R}^{D_{f}}$ is the vectorized form of a deep feature map in the DenseNet with dimension $D_{f} = W\times H\times C$ , where $W,H,C$ are the feature map's height, width and number of channels respectively.
+
+# 3.2. Text Model for Embedding Extraction:
+
+Full-network pre-training [44, 15] has led to a series of breakthroughs in language representation learning. Specifically, deep-bidirectional Transformer models such as BERT [15] and its variants [61, 7] have achieved state-of-the-art results on various natural language processing tasks by leveraging close and next-sentence prediction tasks as weakly-supervised pre-training. Therefore, we use BERT as our core model for extracting embeddings from text (variants such as XLNET [61] and ALBERT [7] could also be used). We use the BERT model pre-trained on Wiki and Books data[29] on crisis-related tweets $t_i$ 's. For each text input $t_i$ , we have
+
+$$
+e _ {i} = \mathbf {B E R T} (t _ {i}), \tag {2}
+$$
+
+where $t_i$ is a sequence of word-piece tokens and $e_i \in \mathbb{R}^{756}$ is the sentence embedding. Similar to the BERT paper [15], we take the embedding associated with [CLS] to represent the whole sentence.
+
+In the next subsection we detail how DenseNet and BERT are fused.
+
+# 3.3. Cross-attention module for avoiding negative knowledge in fusion:
+
+After we obtain the image feature map $f_{i}$ (DenseNet) and the sentence embedding $e_{i}$ (BERT), we use a new cross
+
+attention mechanism to fuse the information they represent. In many text-vision tasks, the input pair can contain noise. In particular, in classification of tweets, one modality may contain non-informative or even misleading information. In such a case, negative information transfer can occur. Our model can mitigate the effects of one modality over another on a case by case basis.
+
+To address this issue, in our cross-attention module, we use a combination of cross-attention layers and a self-attention layer. In this module, each modality can block the features of the other modality based on its confidence in the usefulness of its input. This happens with the cross-attention layer. The result of partially blocked features from both modalities is later fed to a self-attention layer to decide which information should be passed to the next layer.
+
+The self-attention layer exploits a fully-connected layer to project the image feature map into a fixed dimensionality $K$ (we use $K = 100$ ), and similarly project the sentence embedding so that:
+
+$$
+\tilde {f} _ {i} = F \left(W _ {v} ^ {T} f _ {i} + b _ {v}\right),
+$$
+
+$$
+\tilde {e} _ {i} = F \left(W _ {e} ^ {T} e _ {i} + b _ {e}\right), \tag {3}
+$$
+
+where $F$ represents an activation function such as ReLU (used in our experiments) and both $\tilde{f}_i$ and $\tilde{e}_i$ are of dimension $K = 100$ .
+
+In the case of misleading information in one modality, without an attention mechanism (such as co-attention [39]), the resulting $\tilde{f}_i$ and $\tilde{e}_i$ cannot be easily combined without hurting performance. Here, we propose a new attention mechanism called cross-attention (Figure 3), which differs from standard co-attention mechanisms: the attention mask $\alpha_{v_i}$ for the image is completely dependent on the text embedding $e_i$ , while the attention mask $\alpha_{e_i}$ for the text is completely dependent on the image embedding $f_i$ . Mathematically, this can be expressed as follows:
+
+$$
+\alpha_ {v _ {i}} = \sigma \left(W _ {v} ^ {\prime T} f _ {i} + b _ {v} ^ {\prime}\right),
+$$
+
+$$
+\alpha_ {e _ {i}} = \sigma \left(W _ {e} ^ {\prime T} e _ {i} + b _ {e} ^ {\prime}\right), \tag {4}
+$$
+
+where $\sigma$ is the Sigmoid function. Co-attention, in contrast, can be expressed as follows:
+
+$$
+\alpha_ {v _ {i}} = \sigma \left(W _ {v} ^ {\prime T} [ f _ {i} | e _ {i} ] + b _ {v} ^ {\prime}\right),
+$$
+
+$$
+\alpha_ {e _ {i}} = \sigma \left(W _ {e} ^ {\prime T} \left[ f _ {i} \mid e _ {i} \right] + b _ {e} ^ {\prime}\right), \tag {5}
+$$
+
+where | means concatenation.
+
+After we have the attention masks $\alpha_{v_i},\alpha_{e_i}$ for image and text respectively, we can augment the projected image and text embeddings $\tilde{f}_i,\tilde{e}_i$ with $\alpha_{v_i}\cdot \tilde{f}_i$ and $\alpha_{e_i}\cdot \tilde{e}_i$ before performing concatenation or adding. In our experiments, we use concatenation but obtained similar performance using addition.
+
+The last step of this module takes the concatenated embedding which jointly represents the image and text tuple in and feeds into the two-layer fully-connected networks. We add self-attention in the fully-connected networks and use the standard softmax cross-entropy loss for the classification.
+
+In Section 4, we show that the combination of cross-attention layers and the self-attention layer on their concatenation works better than co-attention and self-attention mechanisms for the tasks we address in this paper.
+
+# 3.4. SSE for Better Regularization
+
+Due to unforeseeable and unpredictable nature of disasters, and also because they require fast processing and reaction, one often has to deal with limited annotations for user-generated content during crises. Using regularization techniques to mitigate this issue becomes especially important. In this section, we extend Stochastic Shared Embeddings (SSE) technique [60] to its multimodal version for taking the full advantage from the annotated data by 1) generating new artificial multimodal pairs. 2) also including the annotated data with inconsistent labels for text and image in the training process.
+
+SSE-Graph [60], a variation of SSE, is a data-driven approach for regularizing embedding layers which uses a knowledge graph to stochastically make transitions between embeddings of different samples during the stochastic gradient descent (SGD). That means, during the training, based on a knowledge graph, there is a chance that embeddings of different samples being swapped. We use the text and image labels to construct knowledge graphs that can be used to create stochastic multimodal training samples with consistent labels for both the image and text.
+
+We treat feature maps of images as embeddings and use class labels to construct knowledge graphs. The feature maps of two images are connected by an edge in the graph, if and only if they belong to the same class (e.g. they are both labeled "affected individuals"). We follow the same procedure for text embeddings and construct a knowledge graph for text embeddings as well. Finally, we connect the nodes associated with the knowledge graph of image feature maps with an edge to nodes in text's knowledge graph if and only if they belong to the same class.
+
+Let $\Phi^v$ and $\Phi^t$ be sets of parameters. We define the transition probability $p(i^v, j^v | \Phi^v)$ as probability of transition from $i^v$ to $j^v$ , where $i^v$ and $j^v$ are nodes in the image knowledge graph that correspond to image features $f_i$ and $f_j$ . Similarly, we define $p(i^t, k^t | \Phi^t)$ as probability of transition from $i^t$ to $k^t$ (nodes corresponding to text embeddings $e_i$ and $e_k$ , respectively).
+
+Taking image feature maps as an example, if $i^v$ is connected to $j^v$ but not connected to $l^v$ in the knowledge graph, one simple and effective way to generate more multimodal
+
+pairs is to use a random walk (with random restart and self-loops) on the knowledge graph. Since we are more interested in transitions within embeddings of consistent labels, in each transition probability, we set the ratio of $p(i^v,j^v|\Phi^v)$ and $p(i^v,l^v|\Phi^v)$ to be a constant greater than 1. In more formal notation, we have
+
+$$
+i ^ {v} \sim j ^ {v}, i ^ {v} \not \sim l ^ {v} \longrightarrow p (i ^ {v}, j ^ {v} | \Phi^ {v}) / p (i ^ {v}, l ^ {v} | \Phi^ {v}) = \rho^ {v}, \tag {6}
+$$
+
+where $\rho^v$ is a tuning parameter and $\rho^v > 1$ , and $\sim$ and $\gamma$ denote connected and not connected nodes in the knowledge graph. We also have:
+
+$$
+p \left(i ^ {v}, i ^ {v} \mid \Phi\right) = 1 - p _ {0} ^ {v}, \tag {7}
+$$
+
+where $p_0^v$ is called the SSE probability for image features.
+
+We similarly define $\rho^t$ and $p_0^t$ in $\Phi^t = \{\rho^t, p_0^t\}$ for text embeddings. Note that $\rho^t$ is defined with respect to the image features' label. That is
+
+$$
+i ^ {v} \sim j ^ {t}, i ^ {v} \not \sim l ^ {t} \longrightarrow p (i ^ {t}, j ^ {t} | \Phi^ {t}) / p (i ^ {t}, l ^ {t} | \Phi^ {t}) = \rho^ {t}. \tag {8}
+$$
+
+Both $\Phi^v$ and $\Phi^t$ parameters sets are treated as tuning hyper-parameters in experiments and can be tuned fairly easily. With Eq. (8), Eq. (7) and $\sum_{k^v}p(j^v,k^v|\Phi^v),\sum_{k^t}p(j^t,k^t|\Phi^t) = 1$ , we can derive transition probabilities between any two sets of feature maps in images and texts to fill out the transition probability table.
+
+With the right parameter selection, each multimodal pair in the training can be transitioned to many more multimodal pairs that are highly likely to have consistent labels for the image and text pairs which can mitigate both the issues of limited number of training samples and inconsistency in the annotations of image-text pairs.
+
+# 4. Experimental Setup
+
+The image-text classification problem we consider can be formulated as follows: we have as input $(v_{1},t_{1}),\ldots ,(v_{i},t_{i}),\ldots ,(v_{n},t_{n})$ , where $n$ is the number of training tuples and the $i$ -th tuple consists of both image $v_{i}$ and text $t_i$ . The respective labels for $v_{i}$ and $t_i$ 's are also given in training data. Our goal is to predict the correct label for any unseen $(v,t)$ pair. To simplify the evaluation, we assume there is only one correct label associated with the unseen $(v,t)$ pairs. As a result, this paper targets a multi-class classification problem instead of a multi-label problem.
+
+# 4.1. Dataset
+
+There are very few crisis datasets, and to the best of our knowledge there is only one multimodal crisis dataset, CrisisMMD [6]. It consists of annotated image-tweet pairs where images and tweets are independently labeled as
+
+described below. We use this dataset for our experiments. The dataset was collected using event-specific keywords and hashtags during seven natural disasters in 2017: Hurricane Irma, Hurricane Harvey, Hurricane Maria, the Mexico earthquake, California wildfires, Iraq-Iran earthquakes, and Sri Lanka floods. The corpus is comprised of three types of manual annotations:
+
+Task 1: Informative vs. Not Informative: whether a given tweet text or image is useful for humanitarian aid purposes, defined as providing assistance to people in need.
+
+Task 2: Humanitarian Categories: given an image, or tweet, or both, categorize it into one of the five following categories:
+
+Infrastructure and utility damage
+- Vehicle damage
+- Rescue, volunteering, or donation efforts
+- Affected individuals (injury, dead, missing, found, etc.)
+- Other relevant information
+
+Note that we merge the data that are labeled as injured or dead people and missing or found people in the CrisisMMD with those that are labeled as affected individuals and view all of them as one class of data.
+
+Task 3: Damage Severity: assess the severity of damage reported in a tweet image and classify it into Severe, Mild, and Little/None.
+
+It is important to note that while the annotations for the last task are only on images. Our experiments reveal that using tweet texts along with the images can boost performance. In addition, our paper is the first one to perform all three tasks on this dataset (text-only, image-only, combined).
+
+# 4.2. Settings
+
+Images and text from tweets in this dataset were annotated independently. Thus, in many cases, images and text in the same pairs may not share the same labels for either Task 1 or Task 2 (labels for Task 3 were only created by annotating the images). Given the different evaluation conditions, we carry out three evaluation settings for the sake of being comprehensive in our model assessment but also to establish best practices for the community: Setting A: we exclude the image-text pairs with differing labels for image and text; Setting B: we include the image-text pairs with different labels in the training set but keep the test set the same as in A.
+
+In addition, we introduce Setting $C$ to mimic a realistic crisis tweet classification task where we only train on events that have transpired before the event(s) in the test set.
+
+Table 1 shows the number of samples in each set for
+
+Table 1. Number of samples in different splits of our settings.
+
+
| Setting | # of Training samples | # of Dev samples | # of Test samples |
| Setting A |
| Task1: | 7876 | 553 | 2821 |
| Task2: | 1352 | 540 | 1467 |
| Task3: | 2590 | 340 | 358 |
| Setting B |
| Task1: | 12680 | 553 | 2821 |
| Task2: | 5433 | 540 | 1467 |
| Setting C |
| Experiment 1: | 174 | - | 217 |
| Experiment 2: | 4037 | - | 217 |
| Experiment 3: | 4761 | - | 217 |
+
+different setting and tasks.
+
+Setting A: In this setting our train and test data is sampled from tweets in which the text and image pairs have the same label. That is:
+
+$$
+\mathcal {C} \left(v _ {i}\right) = \mathcal {C} \left(t _ {i}\right), \tag {9}
+$$
+
+where $\mathcal{C}(x)$ denotes the class of data point $x$ . This results in a small, yet potentially more reliable training set. We mix the data from all seven crisis events and split the data into training, dev and test sets.
+
+Setting B: We relax the assumption in Equation 9 and allow in training:
+
+$$
+\mathcal {C} \left(v _ {i}\right) \neq \mathcal {C} \left(t _ {i}\right), \tag {10}
+$$
+
+As the training set of this setting contains samples with inconsistent labels for image and text, multimodal fusion methods such as late feature fusion cannot deal with the training data. Our method, on the other hand, with the use of the proposed multimodal SSE, can transition the training instance with in consistent labels to a new training pair with consistent labels. We do this by manually setting $p_0^t = 1$ for the training cases with inconsistent image-text labels (i.e. all the text samples are transitioned). Since unimodal models only receive one of the modalities, it is also possible to train them separately on images and texts and use an average of their prediction in the testing stage (also known as score level fusion).
+
+However, we maintain the assumption of Eq. (9) for the test data. This helps to directly compare the two settings with the same test samples. In fact, in practice, the data is most valuable when the class labels match for both image and text. The rationale is that detecting an event is more valuable to crisis managers than the categorization of different parts of that event. Our dev and test sets for this setting are similar to the previous setting. However, the training set contains a larger number of samples where their image-text pairs are not necessarily labeled as the same class.
+
+Setting C: This setting is closest to the real-world scenario where we analyze the new event of a crisis with a model
+
+trained on previous crisis events. First, we require the training and test sets to be from crisis events of a different nature (i.e., wildfire vs. flood). Second, we maintain the temporal component and only train on events that have happened before the tweets of the testing set. Since collecting annotated data on an urgent ongoing-event is not possible, and also because an event of crisis may do not have a similar annotated event in the past, these two restrictions often simulate a real-world scenario. For the experiments of this setting, there is no dev set. Instead, we use a random portion of the training data to tune the hyper-parameters.
+
+We test on the tweets that are related to the California Wildfire (Oct 10 - 27, 2017), and train on the following three sets:
+
+1. Sri Lanka Floods tweets (May 31- Jul. 3, 2017)
+2. Sri Lanka Floods, and Hurricane Harvey and Hurricane Irma tweets (May 31-Sept. 21, 2017)
+3. Sri Lanka Floods, Hurricanes Harvey and Irma and Mexico Earthquakes (May 31 - Oct. 5, 2017).
+
+Similar to setting B, for the test set (i.e. California Wildfire) we only consider the samples with consistent labels for image and text, but for the training sets, we use all the available samples.
+
+# 4.3. Baselines
+
+We compare our method against several state-of-the-art methods for text and/or image classification. There are a number of categories of baseline methods we compare against. In the first category, we compare to DenseNet and BERT, which are of the most commonly used unimodal classification networks for images and texts respectively. We use Wikipedia pre-trained BERT and pre-trained DenseNet on ImageNet [14], and fine-tune them on the training sets.
+
+The second category of baseline methods include several recently proposed multimodal fusion methods for classification:
+
+- Compact Bilinear Pooling [19]: multimodal compact bilinear pooling is a fusion technique first used in visual question answering task but can be easily modified to perform standard classification task.
+- Compact Bilinear Gated Pooling [32]: this fusion method is an adaptation of the compact bilinear pooling method where an extra attention gate is added on top the compact bilinear pooling module.
+- MMBT [31]: recently proposed supervised multimodal bittransformers model for classifying images and text.
+
+The third category is the score level Score Fusion and late feature fusion Feature Fusion of DenseNet and BERT networks. Score level fusion is one of the most common fusion techniques. It averages the predictions of separate networks trained on the different modalities. Feature Fusion is one of the most effective methods for integrating two
+
+Table 2. Setting A: Informativeness Task, Humanitarian Categorization Task and Damage Severity Task Evaluations
+
+| Model | Informativeness Task | Humanitarian Categorization Task | Damage Severity Task |
| Acc | Macro F1 | Weighted F1 | Acc | Macro F1 | Weighted F1 | Acc | Macro F1 | Weighted F1 |
| DenseNet [26] | 81.57 | 79.12 | 81.22 | 83.44 | 60.45 | 86.96 | 62.85 | 52.34 | 66.10 |
| BERT [15] | 84.90 | 81.19 | 83.30 | 86.09 | 66.83 | 87.83 | 68.16 | 45.04 | 61.09 |
| Compact Bilinear Pooling[19] | 88.12 | 86.18 | 87.61 | 89.30 | 67.18 | 90.33 | 66.48 | 61.03 | 70.58 |
| Compact Bilinear Gated Pooling [32] | 88.76 | 87.50 | 88.80 | 85.34 | 65.95 | 89.42 | 68.72 | 51.46 | 65.34 |
| MMBT [31] | 82.48 | 81.27 | 82.15 | 85.82 | 64.78 | 88.66 | 65.36 | 52.12 | 69.34 |
| Score Fusion | 88.16 | 83.46 | 85.26 | 86.98 | 54.01 | 88.96 | 71.23 | 53.48 | 66.26 |
| Feature Fusion | 87.56 | 85.20 | 86.55 | 89.17 | 67.28 | 91.40 | 67.60 | 40.62 | 56.47 |
| Attention Variant 1 (Ours) | 89.29 | 85.68 | 87.04 | 88.41 | 64.60 | 90.71 | 71.51 | 55.41 | 69.71 |
| Attention Variant 2 (Ours) | 88.34 | 86.12 | 87.42 | 89.23 | 67.63 | 91.56 | 63.13 | 58.03 | 69.39 |
| Attention Variant 3 (Ours) | 88.20 | 86.22 | 87.47 | 87.18 | 64.67 | 90.24 | 68.99 | 57.42 | 69.16 |
| SSE-Cross-BERT-DenseNet (Ours) | 89.33 | 88.09 | 89.35 | 91.14 | 68.41 | 91.82 | 72.65 | 59.76 | 70.41 |
+
+Table 3. Setting B: Informativeness Task and Humanitarian Categorization Task Evaluations
+
+| Model | Informativeness Task | Humanitarian Categorization Task |
| Accuracy | Macro F1 | Weighted F1 | Accuracy | Macro F1 | Weighted F1 |
| DenseNet [26] | 83.36 | 80.95 | 82.95 | 82.89 | 66.68 | 83.13 |
| BERT [15] | 86.26 | 84.44 | 86.01 | 87.73 | 83.72 | 87.57 |
| Score Fusion | 87.03 | 85.19 | 86.90 | 91.41 | 83.26 | 91.36 |
| SSE-Cross-BERT-DenseNet (Ours) | 90.05 | 88.88 | 89.90 | 93.46 | 84.16 | 93.35 |
| Best from Table 2 | 89.33 | 88.09 | 89.35 | 91.48 | 67.87 | 91.34 |
+
+modalities [46]. It concatenates deep layers from modality networks to predict a shared output. We also provide three variations of our attention modules and report their performance: The first variant is to replace cross-attention of Eq. (4) with co-attention of Eq. (5); the second variant is to remove self-attention; the third variant is to change the cross-attention with self-attention modules.
+
+We compare our model, SSE-Cross-BERT-DenseNet, to the baseline models above.
+
+# 4.4. Evaluation Metrics
+
+We evaluate the models in this paper using classification accuracy, $^{2}$ Macro F1-score and weighted F1-score. Note that while in the event of a crisis, the number of samples from different categories often significantly varies, it is important to detect all of them. F1-score and weighted F1-score take both false positives and false negatives into account, and therefore, along with accuracy as an intuitive measure, are proper evaluation metrics for our datasets.
+
+# 4.5. Training Details
+
+We use pre-trained DenseNet and BERT as our image and text backbone networks, and fine-tune them separately on text-only and image-only training samples. The details of their implementations can be found in [26] and [15], respectively. We do not freeze the pre-trained weights and train all the layers for both the backbone networks.
+
+We use the standard SGD optimizer. We start with the base learning rate of $2 \times 10^{-3}$ with a $10 \times$ reduction
+
+when the dev loss is saturated. We use a batch size of 32. The models were implemented in Keras and Tensorflow-1.4 [1]. In all the applicable experiments, we select hyperparameters with cross-validation on the accuracy of dev set. For the experiments in Setting 3 that we do not have an evaluation set, we tune hyper-parameters on $15\%$ of the training samples. We select $\rho^v,\rho^t$ and $p_0^v,p_0^t$ respectively in the range of $\rho^v,\rho^t\in [10,20000]$ and $p_0^v,p_0^t\in [0,1]$ .
+
+We employ the following data augmentations on the images during the training stage. Images are resized such that the smallest side is 228 pixels, and then randomly cropped with a $224 \times 224$ patch. In addition, we produce more images by randomly flipping the resulting image horizontally.
+
+For tweet normalization, we remove double spaces and lower case all characters. In addition, we replace any hyperlink in the tweet with the sentinel word "link".
+
+# 5. Experimental Results
+
+# 5.1. Setting A: Excluding The Training Pairs with Inconsistent Labels
+
+As shown in Table 2, our proposed framework, SSE-Cross-BERT-DenseNet, easily outperforms the standalone DenseNet and BERT models. Compared with baseline methods Compact Bilinear Pooling [19], Compact Bilinear Gated Pooling [32], and MMBT [31], our proposed cross-attention fusion method does enjoy an edge over previous known fusion methods, including the standard score fusion and feature fusion. This edge holds true across Settings A, B and C. In section 5.4, we conduct an ablation study to investigate which components (SSE, cross-attention, and self-attention) have the most impact on model performance.
+
+One important observation we find across the three tasks is that despite the fact that accuracy percentages are reasonably good for simple feature fusion method, the macro F1 scores improve much more once we add attention mechanisms.
+
+Table 4. Comparing our proposed method with baselines for Humanitarian Categorization Task in Setting 3. We fix the last occurred crisis namely 'California wildfires' as test data and vary the training data which is specified in the columns.
+
+| Model | Sri Lanka Floods | Sri Lanka Floods + Hurricanes Harvey & Irma | Sri Lanka Floods + Hurricanes Harvey & Irma + Mexico earthquake |
| Accuracy | Macro F1 | Weighted F1 | Accuracy | Macro F1 | Weighted F1 | Accuracy | Macro F1 | Weighted F1 |
| DenseNet [26] | 55.71 | 35.77 | 56.85 | 70.32 | 52.23 | 68.55 | 70.32 | 44.80 | 68.79 |
| BERT [15] | 31.96 | 20.90 | 27.21 | 73.97 | 53.90 | 73.51 | 74.43 | 56.98 | 74.21 |
| Score Fusion | 56.62 | 36.77 | 57.96 | 81.74 | 56.54 | 81.03 | 81.28 | 55.90 | 80.54 |
| SSE-Cross-BERT-DenseNet (Ours) | 62.56 | 39.82 | 62.08 | 84.02 | 63.12 | 83.55 | 86.30 | 65.55 | 85.93 |
+
+Table 5. Ablation Study of our proposed method for Humanitarian Categorization Task in Setting A.
+
+| Model | Test Set |
| Accuracy | Macro F1 | Weighted F1 |
| SSE-Cross-BERT-DenseNet (Ours) | 91.14 | 68.41 | 91.82 |
| - Self-Attention | 89.23 | 56.50 | 87.70 |
| - Cross-Attention | 88.48 | 56.38 | 87.10 |
| - Cross-Attention + Co-Attention | 88.41 | 64.60 | 90.71 |
| - Cross-Attention + Self-Attention | 86.30 | 58.33 | 85.27 |
| - Dropout | 83.37 | 54.83 | 82.46 |
| - SSE | 88.41 | 64.60 | 90.71 |
| - SSE + Shuffling Within Class | 88.68 | 62.91 | 88.33 |
| - SSE + Mix-up [63] | 89.16 | 54.63 | 87.37 |
+
+# 5.2. Setting B: Including The Training Pairs with Inconsistent Labels
+
+In this setting, we investigate whether our models can perform better if we can make use of more labelled data for un-matched images and texts. Note that this involves training on noisier data than the prior setting. In Table 3, our proposed framework SSE-Cross-BERT-DenseNet beats the best results from Setting A for both the Informativeness Task (89.90 to 89.35 Weighted F1) and the Humanitarian Categorization Task (93.35 to 91.34). The gap between our method versus standalone BERT and DenseNet also widens. Note that the test sets are the same for setting A and setting B while only the training data differs.
+
+# 5.3. Setting C: Temporal
+
+This setting is designed to resemble a realistic scenario where the available data is (1) only from the past (i.e. the train / test sets are split in the order they occurred in the real world). (2) train and test sets are not from the same crisis. We find that our proposed model consistently performs better than standalone image and text models (see Table 4). Additionally, performance increases for all models, including ours, with the inclusion of more crisis data to train on. This emphasizes the importance of collecting and labelling more crisis data even if there is no guarantee that the crises we collected data from will be similar to a future one. In the experiments, training crises contain floods, hurricanes and earthquakes but the test crisis is fixed at wildfires.
+
+# 5.4. Ablation Study
+
+In our ablation study, we examine each component of the model in Figure 3: namely self-attention on concatenated
+
+embedding, cross-attention on fusing image feature map & sentence embedding, dropout and SSE regularization. All the experiments in this section are conducted in Setting A. First, we find self-attention plays an important role on the final performance, accuracy drops to 89.23 from 91.14 if self-attention is removed. Second, the choice of cross-attention over co-attention and self-attention is well justified: we see the accuracy performance drops to around 88 by replacing the cross-attention. Third, dropout regularization [52] plays an important role in regularizing the hidden units: if we remove dropout completely, performance suffers a large drop from 91.14 to 83.37. Fourthly, we justify the usage of SSE [60] over the choice of Mixup [63] or within-class shuffling data augmentation. SSE performs better than mixup in terms of accuracy $91.14\%$ versus $89.16\%$ , and even much better in terms of F1 scores, 68.41 versus 54.63 for macro F1 score and 91.82 versus 87.37 for weighted F1 score.
+
+# 6. Conclusions and Future Work
+
+In this paper, we presented a novel multimodal framework for fusing image and textual inputs. We introduced a new cross attention module that can filter not-informative or misleading information from modalities and only fuse the useful information. We also presented a multimodal version of Stochastic Shared Embeddings (SSE) to regularize the training process and deal with limited training data. We evaluate this approach on three crisis tasks involving social media posts with images and text captions. We show that our approach not only outperforms image-only and text-only approaches which have been the mainstay in the field, but also other multimodal combination approaches.
+
+For future work we plan to test how our approach generalizes to other multimodal problems such as sarcasm detection in social media posts [12, 49], as well as experiment with different image and text feature extractors. Given that the CrisisMMD corpus is the only dataset available for this task and it is limited in size, we also aim to construct a larger set, which is a major effort.
+
+# References
+
+[1] Mart'in Abadi, Paul Barham, Jianmin Chen, Zhifeng Chen, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Geoffrey Irving, Michael Isard, et al. Tensorflow: A system for large-scale machine learning. In 12th USENIX
+
+Symposium on Operating Systems Design and Implementation (OSDI 16), pages 265-283, 2016. 7
+[2] Mahdi Abavisani, Hamid Reza Vaezi Joze, and Vishal M Patel. Improving the performance of unimodal dynamic hand-gesture recognition with multimodal training. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1165-1174, 2019. 2
+[3] Mahdi Abavisani and Vishal M Patel. Deep multimodal subspace clustering networks. IEEE Journal of Selected Topics in Signal Processing, 12(6):1601-1614, 2018. 2
+[4] Rediet Abebe, Shawndra Hill, Jennifer Wortman Vaughan, Peter M Small, and H Andrew Schwartz. Using search queries to understand health information needs in africa. In Proceedings of the International AAAI Conference on Web and Social Media, volume 13, pages 3-14, 2019. 2
+[5] Kashif Ahmad, Michael Riegler, Konstantin Pogorelov, Nicola Concí, Pál Halvorsen, and Francesco De Natale. Jord: a system for collecting information and monitoring natural disasters by linking social media with satellite imagery. In Proceedings of the 15th International Workshop on Content-Based Multimedia Indexing, page 12. ACM, 2017. 2
+[6] Firoj Alam, Ferda Ofli, and Muhammad Imran. Crisismmd: Multimodal twitter datasets from natural disasters. In Twelfth International AAAI Conference on Web and Social Media, 2018. 5
+[7] Anonymous. {ALBERT}: A lite {bert} for self-supervised learning of language representations. In Submitted to International Conference on Learning Representations, 2020. under review. 3
+[8] Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C Lawrence Zitnick, and Devi Parikh. Vqa: Visual question answering. In Proceedings of the IEEE international conference on computer vision, pages 2425-2433, 2015. 3
+[9] Raffaella Bernardi, Ruket Cakici, Desmond Elliott, Aykut Erdem, Erkut Erdem, Nazli Ikizler-Cinbis, Frank Keller, Adrian Muscat, and Barbara Plank. Automatic description generation from images: A survey of models, datasets, and evaluation measures. Journal of Artificial Intelligence Research, 55:409-442, 2016. 2
+[10] Terra Blevins, Robert Kwiatkowski, Jamie MacBeth, Kathleen McKeown, Desmond Patton, and Owen Rambow. Automatically processing tweets from gang-involved youth: Towards detecting loss and aggression. In Proceedings of COLING 2016, the 26th International Conference on Computational Linguistics: Technical Papers, pages 2196-2206, Osaka, Japan, Dec. 2016. The COLING 2016 Organizing Committee. 2
+[11] Sven Buechel, Anneke Buffone, Barry Slaff, Lyle Ungar, and Joao Sedoc. Modeling empathy and distress in reaction to news stories. arXiv preprint arXiv:1808.10399, 2018. 2
+[12] Santiago Castro, Devamanyu Hazarika, Verónica Pérez-Rosas, Roger Zimmermann, Rada Mihalcea, and Soujanya Poria. Towards multimodal sarcasm detection (an _Obviously_ perfect paper). In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 4619-4629, Florence, Italy, July 2019. Association for Computational Linguistics. 8
+
+[13] Shizhe Chen and Qin Jin. Multi-modal dimensional emotion recognition using recurrent neural networks. In Proceedings of the 5th International Workshop on Audio/Visual Emotion Challenge, pages 49-56. ACM, 2015. 2
+[14] Jia Deng, R. Socher, Li Fei-Fei, Wei Dong, Kai Li, and Li-Jia Li. Imagenet: A large-scale hierarchical image database. In 2009 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), volume 00, pages 248–255, 06 2009. 6
+[15] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018. 1, 3, 7, 8
+[16] Johannes C. Eichstaedt, H Andrew Schwartz, Salvatore Giorgi, Margaret L Kern, Gregory Park, Maarten Sap, Darwin R Labarthe, Emily E Larson, Martin Seligman, Lyle H Ungar, et al. More evidence that twitter language predicts heart disease: A response and replication. 2018. 2
+[17] Johannes C Eichstaedt, Robert J Smith, Raina M Merchant, Lyle H Ungar, Patrick Crutchley, Daniel Preoticiuc-Pietro, David A Asch, and H Andrew Schwartz. Facebook language predicts depression in medical records. Proceedings of the National Academy of Sciences, 115(44):11203-11208, 2018. 2
+[18] Andrea Frome, Greg S Corrado, Jon Shlens, Samy Bengio, Jeff Dean, Marc'Aurelio Ranzato, and Tomas Mikolov. Devise: A deep visual-semantic embedding model. In Advances in neural information processing systems, pages 2121-2129, 2013. 3
+[19] Akira Fukui, Dong Huk Park, Daylen Yang, Anna Rohrbach, Trevor Darrell, and Marcus Rohrbach. Multimodal compact bilinear pooling for visual question answering and visual grounding. arXiv preprint arXiv:1606.01847, 2016. 3, 6, 7
+[20] Timnit Gebru, Jonathan Krause, Yilun Wang, Duyun Chen, Jia Deng, Erez Lieberman Aiden, and Li Fei-Fei. Using deep learning and google street view to estimate the demographic makeup of neighborhoods across the united states. Proceedings of the National Academy of Sciences, 114(50):13108-13113, 2017. 2
+[21] Sharath Chandra Guntuku, Daniel Preotiuc-Pietro, Johannes C Eichstaedt, and Lyle H Ungar. What twitter profile and posted images reveal about depression and anxiety. arXiv preprint arXiv:1904.02670, 2019. 2
+[22] Charles Harding, Francesco Pompei, Dmitriy Burmistrov, H Gilbert Welch, Rediet Abebe, and Richard Wilson. Breast cancer screening, incidence, and mortality across us counties. JAMA internal medicine, 175(9):1483-1489, 2015. 2
+[23] 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. 1
+[24] Jack Hessel, Bo Pang, Zhenhai Zhu, and Radu Soricut. A case study on combining asr and visual features for generating instructional video captions. arXiv preprint arXiv:1910.02930, 2019. 3
+[25] Andrew G Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andreetto, and Hartwig Adam. Mobilenets: Efficient convolu
+
+tional neural networks for mobile vision applications. arXiv preprint arXiv:1704.04861, 2017. 1
+[26] Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4700-4708, 2017. 3, 7, 8
+[27] Ilija Ilievski and Jiashi Feng. Multimodal learning and reasoning for visual question answering. 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 551-562. Curran Associates, Inc., 2017. 3
+[28] Andrew Ilyas. Microfilters: Harnessing twitter for disaster management. In IEEE Global Humanitarian Technology Conference (GHTC 2014), pages 417-424. IEEE, 2014. 3
+[29] Wolfram Inc. Bert trained on bookcorpus and english wikipedia data. https://resources.wolframcloud.com/NeuralNetRepository/resources/BERT-Trained-on-BookCorpus-and-English-Wikipedia-Data. Accessed: 2020-03-30. 3
+[30] Stephen Kelly, Xiubo Zhang, and Khurshid Ahmad. Mining multimodal information on social media for increased situational awareness. 2017. 3
+[31] Douwe Kiela, Suvrat Bhooshan, Hamed Firooz, and Davide Testuggine. Supervised multimodal bittransformers for classifying images and text. arXiv preprint arXiv:1909.02950, 2019.6,7
+[32] Douwe Kiela, Edouard Grave, Armand Joulin, and Tomas Mikolov. Efficient large-scale multi-modal classification. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018. 6, 7
+[33] Shamanth Kumar, Geoffrey Barbier, Mohammad Ali Abbasi, and Huan Liu. Tweettracker: An analysis tool for humanitarian and disaster relief. In Fifth international AAAI conference on weblogs and social media, 2011. 2
+[34] Zhen-Zhong Lan, Lei Bao, Shouu-I Yu, Wei Liu, and Alexander G Hauptmann. Multimedia classification and event detection using double fusion. Multimedia tools and applications, 71(1):333-347, 2014. 3
+[35] Kuang-Huei Lee, Xi Chen, Gang Hua, Houdong Hu, and Xiaodong He. Stacked cross attention for image-text matching. In Proceedings of the European Conference on Computer Vision (ECCV), pages 201-216, 2018. 3
+[36] Liunian Harold Li, Mark Yatskar, Da Yin, Cho-Jui Hsieh, and Kai-Wei Chang. Visualbert: A simple and perform-. mant baseline for vision and language. arXiv preprint arXiv:1908.03557, 2019. 3
+[37] Xukun Li, Doina Caragea, Huaiyu Zhang, and Muhammad Imran. Localizing and quantifying damage in social media images. In 2018 IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining (ASONAM), pages 194-201. IEEE, 2018. 2
+[38] Kuan Liu, Yanen Li, Ning Xu, and Prem Natarajan. Learn to combine modalities in multimodal deep learning. arXiv preprint arXiv:1805.11730, 2018. 3
+
+[39] Jiasen Lu, Dhruv Batra, Devi Parikh, and Stefan Lee. Vilbert: Pretraining task-agnostic visiolinguistic representations for vision-and-language tasks. arXiv preprint arXiv:1908.02265, 2019. 3, 4
+[40] Sreenivasulu Madichetty and M Sridevi. Detecting informative tweets during disaster using deep neural networks. In 2019 11th International Conference on Communication Systems & Networks (COMSNETS), pages 709-713. IEEE, 2019. 2
+[41] Hussein Mouzzannar, Yara Rizk, and Mariette Awad. Damage identification in social media posts using multimodal deep learning. In ISCRAM, 2018. 3
+[42] Ganesh Nalluru, Rahul Pandey, and Hemant Purohit. Relevancy classification of multimodal social media streams for emergency services. In 2019 IEEE International Conference on Smart Computing (SMARTCOMP), pages 121-125. IEEE, 2019. 2
+[43] Jiquan Ngiam, Aditya Khosla, Mingyu Kim, Juhan Nam, Honglak Lee, and Andrew Y Ng. Multimodal deep learning. In Proceedings of the 28th international conference on machine learning (ICML-11), pages 689–696, 2011. 2
+[44] Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding by generative pre-training. URL https://s3-us-west-2. amazonaws. com/openai-assets/ assets/researchcovers/languageeunsupervised/language understanding paper.pdf, 2018. 3
+[45] Tanzila Rahman, Bicheng Xu, and Leonid Sigal. Watch, listen and tell: Multi-modal weakly supervised dense event captioning. In CVPR, pages 8908-8917, 2019. 2, 3
+[46] Dhanesh Ramachandram and Graham W Taylor. Deep multimodal learning: A survey on recent advances and trends. IEEE Signal Processing Magazine, 34(6):96-108, 2017. 7
+[47] Tim GJ Rudner, Marc Rußwurm, Jakub Fil, Ramona Pelich, Benjamin Bischke, and Veronika Kopacková. Rapid computer vision-aided disaster response via fusion of multiresolution, multisensor, and multitemporal satellite imagery. 2
+[48] Naina Said, Kashif Ahmad, Michael Regular, Konstantin Pogorelov, Laiq Hassan, Nasir Ahmad, and Nicola Conc. Natural disasters detection in social media and satellite imagery: a survey. arXiv preprint arXiv:1901.04277, 2019. 2
+[49] Rossano Schifanella, Paloma de Juan, Joel Tetreault, and LiangLiang Cao. Detecting sarcasm in multimodal social platforms. Proceedings of the 2016 ACM on Multimedia Conference - MM '16, 2016. 8
+[50] Himanshu Shekhar and Shankar Setty. Disaster analysis through tweets. In 2015 International Conference on Advances in Computing, Communications and Informatics (ICACCI), pages 1719-1723. IEEE, 2015. 2
+[51] Richard Socher, Milind Ganjoo, Christopher D Manning, and Andrew Ng. Zero-shot learning through cross-modal transfer. In Advances in neural information processing systems, pages 935-943, 2013. 3
+[52] 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. 8
+
+[53] Kevin Stowe, Michael J Paul, Martha Palmer, Leysia Palen, and Kenneth Anderson. Identifying and categorizing disaster-related tweets. In Proceedings of The Fourth International Workshop on Natural Language Processing for Social Media, pages 1-6, 2016. 2
+[54] Weijie Su, Xizhou Zhu, Yue Cao, Bin Li, Lewei Lu, Furu Wei, and Jifeng Dai. Vl-bert: Pre-training of generic visual-linguistic representations. arXiv preprint arXiv:1908.08530, 2019. 3
+[55] Hao Tan and Mohit Bansal. Lxmert: Learning cross-modality encoder representations from transformers. arXiv preprint arXiv:1908.07490, 2019. 3
+[56] Mingxing Tan and Quoc V Le. Efficientnet: Rethinking model scaling for convolutional neural networks. arXiv preprint arXiv:1905.11946, 2019. 3
+[57] Hien To, Sumeet Agrawal, Seon Ho Kim, and Cyrus Shahabi. On identifying disaster-related tweets: Matching-based or learning-based? In 2017 IEEE Third International Conference on Multimedia Big Data (BigMM), pages 330-337. IEEE, 2017. 2
+[58] 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
+[59] Martin Wöllmer, Angeliki Metallinou, Florian Eyben, Björn Schuller, and Shrikanth Narayanan. Context-sensitive multimodal emotion recognition from speech and facial expression using bidirectional LSTM modeling. In Proc. INTER-SPEECH 2010, Makuhari, Japan, pages 2362-2365, 2010. 2
+[60] Liwei Wu, Shuqing Li, Cho-Jui Hsieh, and James L Sharpnack. Stochastic shared embeddings: Data-driven regularization of embedding layers. In Advances in Neural Information Processing Systems, pages 24-34, 2019. 3, 4, 8
+[61] Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Ruslan Salakhutdinov, and Quoc V Le. Xlnet: Generalized autoregressive pretraining for language understanding. arXiv preprint arXiv:1906.08237, 2019. 3
+[62] Jie Yin, Sarvnaz Karimi, Andrew Lampert, Mark Cameron, Bella Robinson, and Robert Power. Using social media to enhance emergency situation awareness. In Twenty-fourth international joint conference on artificial intelligence, 2015.
+[63] Hongyi Zhang, Moustapha Cisse, Yann N. Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. In International Conference on Learning Representations, 2018. 8
\ No newline at end of file
diff --git a/multimodalcategorizationofcrisiseventsinsocialmedia/images.zip b/multimodalcategorizationofcrisiseventsinsocialmedia/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..775f44ab921f224bdb59729f9f0cc909f2f49286
--- /dev/null
+++ b/multimodalcategorizationofcrisiseventsinsocialmedia/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4d190ad45f5f76022758bfff243482234969fa9ae655f944ec097ed831304c6e
+size 374464
diff --git a/multimodalcategorizationofcrisiseventsinsocialmedia/layout.json b/multimodalcategorizationofcrisiseventsinsocialmedia/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..866a525142f2d327d50861524ee613943f9368f6
--- /dev/null
+++ b/multimodalcategorizationofcrisiseventsinsocialmedia/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:15bce466e7303045f01d58a83a31912061815131687d555872ad8cdf2bd5b9a9
+size 453086
diff --git a/multimodalfuturelocalizationandemergencepredictionforobjectsinegocentricviewwithareachabilityprior/9fa52f02-ca93-41c1-a52c-8c41cef6f2aa_content_list.json b/multimodalfuturelocalizationandemergencepredictionforobjectsinegocentricviewwithareachabilityprior/9fa52f02-ca93-41c1-a52c-8c41cef6f2aa_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..ebecb4cbd03d6a04dd84d143229138af52534028
--- /dev/null
+++ b/multimodalfuturelocalizationandemergencepredictionforobjectsinegocentricviewwithareachabilityprior/9fa52f02-ca93-41c1-a52c-8c41cef6f2aa_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:05219029c8d0fa3be18c09d69b7c0e6650ff243efc575bbd6a1bd8ff44341fb7
+size 72584
diff --git a/multimodalfuturelocalizationandemergencepredictionforobjectsinegocentricviewwithareachabilityprior/9fa52f02-ca93-41c1-a52c-8c41cef6f2aa_model.json b/multimodalfuturelocalizationandemergencepredictionforobjectsinegocentricviewwithareachabilityprior/9fa52f02-ca93-41c1-a52c-8c41cef6f2aa_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..167de7db0d303eaee209c0b6857124e9ae6ea223
--- /dev/null
+++ b/multimodalfuturelocalizationandemergencepredictionforobjectsinegocentricviewwithareachabilityprior/9fa52f02-ca93-41c1-a52c-8c41cef6f2aa_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6646e75c0fd22eeefbfa8918b4859695a8f61684c6c028d25a3dc821a67791bb
+size 92862
diff --git a/multimodalfuturelocalizationandemergencepredictionforobjectsinegocentricviewwithareachabilityprior/9fa52f02-ca93-41c1-a52c-8c41cef6f2aa_origin.pdf b/multimodalfuturelocalizationandemergencepredictionforobjectsinegocentricviewwithareachabilityprior/9fa52f02-ca93-41c1-a52c-8c41cef6f2aa_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..0a068550f5da6faae1f661ba7f75fa29c5b13bf2
--- /dev/null
+++ b/multimodalfuturelocalizationandemergencepredictionforobjectsinegocentricviewwithareachabilityprior/9fa52f02-ca93-41c1-a52c-8c41cef6f2aa_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:43cac91c2ed8ec068f06fd0951a15bfdb19ba07092b086bfade8e51216dd49d8
+size 4361745
diff --git a/multimodalfuturelocalizationandemergencepredictionforobjectsinegocentricviewwithareachabilityprior/full.md b/multimodalfuturelocalizationandemergencepredictionforobjectsinegocentricviewwithareachabilityprior/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..2b1eb69746cd72d21e4e3b1ea97a1f5df6a2a689
--- /dev/null
+++ b/multimodalfuturelocalizationandemergencepredictionforobjectsinegocentricviewwithareachabilityprior/full.md
@@ -0,0 +1,293 @@
+# Multimodal Future Localization and Emergence Prediction for Objects in Egocentric View with a Reachability Prior
+
+Osama Makansi1 Özgün Çiçek1
+1University of Freiburg
+makansio, cicek, brox@cs.uni-freiburg.de
+
+Kevin Buchicchio Thomas Brox1
+2IMRA-EUROPE buchicchio@imra-europe.com
+
+# Abstract
+
+In this paper, we investigate the problem of anticipating future dynamics, particularly the future location of other vehicles and pedestrians, in the view of a moving vehicle. We approach two fundamental challenges: (1) the partial visibility due to the egocentric view with a single RGB camera and considerable field-of-view change due to the egomotion of the vehicle; (2) the multimodality of the distribution of future states. In contrast to many previous works, we do not assume structural knowledge from maps. We rather estimate a reachability prior for certain classes of objects from the semantic map of the present image and propagate it into the future using the planned egomotion. Experiments show that the reachability prior combined with multi-hypotheses learning improves multimodal prediction of the future location of tracked objects and, for the first time, the emergence of new objects. We also demonstrate promising zero-shot transfer to unseen datasets.
+
+# 1. Introduction
+
+Figure 1 shows the view of a driver approaching pedestrians who are crossing the street. To safely control the car, the driver must anticipate where these pedestrians will be in the next few seconds. Will the last pedestrian (in blue) have completely crossed the street when I arrive or must I slow down more? Will the pedestrian on the sidewalk (in orange) continue on the sidewalk or will it also cross the street?
+
+This important task comes with many challenges. First of all, the future is not fully predictable. There are typically multiple possible outcomes, some of them being more likely than others. The controller of a car must be aware of these multiple possibilities and their likelihoods. If a car crashes into a pedestrian who predictably crosses the street, this will be considered a severe failure, whereas extremely unlikely behaviour, such as the pedestrian in purple turning around and crossing the street in the opposite direction, must be ignored to enable efficient control. The approach
+
+
+Figure 1. An example from the nuScenes dataset [9]. Given the past observations of pedestrians (colored bounding boxes (top)) and the egomotion of the car (red arrow), our framework predicts multiple modes of their future visualized by a set of bounding boxes and their distribution as an overlaid heatmap. Prediction covers possible options for (2nd row) turning left or right, (3rd row) slowing down or accelerating, (4th row) being on the sidewalk.
+
+we propose predicts two likely modes for this pedestrian: continuing left or right on the sidewalk.
+
+Ideally this task can be accomplished directly in the sensor data without the requirement of privileged information such as a third person view, or a street map that marks all lanes, sidewalks, crossings, etc.. Independence of such information helps the approach generalize to situations not covered by maps or extra sensors, e.g., due to changes not yet captured in the map or GPS failures. However, mak
+
+ing predictions in egocentric views suffers from partial visibility: we only see the context of the environment in the present view - other relevant parts of the environment are occluded and only become visible as the car moves. Figure 1 shows that the effect of the egomotion is substantial even in this example with relatively slow motion.
+
+In this paper, we approach these two challenges in combination: multimodality of the future and egocentric vision. For the multimodality, we build upon the recent work by Makansi et al. [36], who proposed a technique to overcome mode collapse and stability issues of mixture density networks. However, the work of Makansi et al. assumes a static bird's-eye view of the scene. In order to carry the technical concept over to the egocentric view, we introduce an intermediate prediction which improves the quality of the multimodal distribution: a reachability prior. The reachability prior is learned from a large set of egocentric views and tells where objects of a certain class are likely to be in the image based on the image's semantic segmentation; see Figure 2 top. This prior focuses the attention of the prediction based on the environment. Even more important, we can propagate this prior much more easily into the future - using the egomotion of the vehicle - than a whole image or a semantic map. The reachability prior is a condensation of the environment, which contains the semantic context most relevant to the task.
+
+The proposed framework of estimating and propagating a multimodal reachability prior is not only beneficial for future localization of a particular object (Figure 2 left), but it also enables the task of emergence prediction (Figure 2 right). For safe operation, it is not sufficient to reason about the future location of the observed objects, but also potentially emerging objects in the scene must be anticipated, if their emergence exceeds a certain probability. For example, passing by a school requires extra care since the probability that a child can jump on the street is higher. Autonomous systems should behave differently near a school exit than on a highway. Predicting emergence of new objects did not yet draw much attention in literature.
+
+The three tasks in Fig. 2 differ via their input conditions: the reachability prior is only conditioned by the semantic segmentation of the environment and the class of interest. It is independent of a particular object. Future localization includes the additional focus on an object of interest and its past trajectory. These conditions narrow down the space of solutions and make the output distribution much more peaked. Emergence prediction is a reduced case of the reachability prior, where new objects can only emerge from unobserved areas of the scene.
+
+In this paper (1) we propose a future localization framework in egocentric view by transferring the work by Makansi et al. [36] from bird's-eye view to egocentric observations, where multimodality is even more difficult to
+
+
+Figure 2. Top: The reachability prior (white rectangles) answers the general question of where a pedestrian could be in a scene. Left: Future localization (green rectangles) of a particular pedestrian crossing the street narrows down the solution from the reachability prior by conditioning the solution on past and current observations. The true future is shown as purple box. Right: The emergence prediction (green rectangles) shows where a pedestrian could suddenly appear and narrows down the solution from the reachability prior by conditioning the solution on the current observation of the scene.
+
+capture. Thus, (2) we propose to compute a reachability prior as intermediate result, which serves as attention to prevent forgetting rare modes, and which can be used to efficiently propagate scene priors into the future taking into account the egomotion. For the first time, (3) we formulate the problem of object emergence prediction for egocentric view with multimodality. (4) We evaluate our approach and the existing methods on the recently largest public nuScenes dataset [9] where the proposed approach shows clear improvements over the state of the art. In contrast to most previous works, the proposed approach is not restricted to a single object category. (5) We include heterogeneous classes like pedestrians, cars, buses, trucks and tricycles. (6) The prediction horizon was tripled from 1 second to 3 seconds into the future compared to existing methods. Moreover, (7) we show that the approach allows zero-shot transfer to unseen and noisy datasets (Waymo [50] and FIT).
+
+# 2. Related Work
+
+Bird's-Eye View Future Localization. Predicting the future locations or trajectories of objects is a well studied problem. It includes techniques like the Kalman filter [26], linear regression [39], and Gaussian processes [42, 57, 43, 56]. These techniques are limited to low-dimensional data, which excludes taking into account the semantic context provided by an image. Convolutional networks allow processing such inputs and using them for future localization.
+
+LSTMs have been very popular due to time series processing. Initial works exploited LSTMs for trajectories to model the interaction between objects [2, 59, 65], for scenes to exploit the semantics [4, 38], and LSTMs with attention to focus on the relevant semantics [46].
+
+Another line of works tackle the multimodal nature of the future by sampling through cVAEs [30], GANs [3, 21, 45, 66, 27], and latent decision distributions [31]. Choi et al. [12] model future locations as nonparametric distribution, which can potentially result in multimodality but often collapses to a single mode. Given the instabilities of Mixture Density Networks (MDNs) in unrestricted environments, some works restrict the solution space to a set of predefined maneuvers or semantic areas [15, 24]. Makansi et al. [36] proposed a method to learn mixture densities in unrestricted environments. Their approach first predicts diverse samples and then fits a mixture model on these samples. All these methods have been applied on static scenes recorded from a bird's-eye view, i.e., with full local observability and no egomotion. We build on the technique from Makansi et al. [36] to estimate multimodal distributions in egocentric views.
+
+Egocentric Future Localization. The egocentric camera view is the typical way of observing the scene in autonomous driving. It introduces new challenges due to the egomotion and the narrow field of view. Multiple works have addressed these challenges by projecting the view into bird's-eye view using 3D sensors [14, 17, 16, 47, 35, 44, 13]. This is a viable approach, but it suffers from nondense measurements or erroneous measurements in case of LIDAR and stereo sensors, respectively.
+
+Alternative approaches try to work directly in the egocentric view. Yagi et al. [62] utilized the pose, locations, scales and past egomotion for predicting the future trajectory of a person. TraPHic [10] exploits the interaction between nearby heterogeneous objects. DTP [49] and STED [48] use encoder-decoder schemes using optical flow and past locations and scales of the objects. Yao et al. [63] added the planned egomotion to further improve the prediction. For autonomous driving, knowing the planned motion is a reasonable assumption [20], and we also make use of this assumption. All these models work with a deterministic model and fail to account for the multimodality and uncertainty of the future. The effect of this is demonstrated by our experiments.
+
+The most related work to our approach, in the sense that it works on egocentric views and predicts multiple modes, is the Bayesian framework by Bhattacharyya et al. [7]. It uses Bayesian RNNs to sample multiple futures with uncertainties. Additionally, they learn the planned egomotion and fuse it to the main future prediction framework. NEMO [37] extends this approach by learning a multimodal distribution for the planned egomotion leading to better accuracy. Both
+
+methods need multiple runs to sample different futures and suffer from mode collapse, i.e., tend to predict only the most dominant mode, as demonstrated by our experiments.
+
+Egocentric Emergence Prediction. To reinforce safety in autonomous driving, it is important to not only predict the future of the observed objects but also predict where new objects can emerge. Predicting the whereabouts of an emerging object inherits predicting the future environment itself. Predicting the future environment was addressed by predicting future frames [55, 52, 51, 1, 28, 32, 61] and future semantic segmentation [34, 25, 54, 33, 8, 6]. These methods can only hallucinate new objects in the scene in a photorealistic way, but none of them explicitly predicts the structure where new objects can actually emerge. Vondrick et al. [53] consider a higher-level task and predict the probability of a new object to appear in an egocentric view. However, they only predict "what" object to appear but not "where". Fan et al. [19] suggested transferring current object detection features to the future. This way they anticipate both observed and new objects.
+
+Reachability Prior Prediction. The environment poses constraints for objects during navigation. While some recent works use an LSTM to learn environment constraints from images [38, 60], others [4, 12] choose a more explicit approach by dividing the environment into meaningful grids to learn the grid-grid, object-object and object-grid interactions. Also soft attention mechanisms are commonly used to focus on relevant features of the environments [45, 46]. While these methods reason about static environment constraints within the model proposed, we propose to separate this task and learn a scene prior before the future localization in dynamic scenes. Lee et al [29] proposed a similar module, where a GAN per object class generates multiple locations to place an object photorealistically.
+
+# 3. Multimodal Egocentric Future Prediction
+
+Figure 3 shows the pipeline of our framework for the future localization task consisting of three main modules: (1) reachability prior network (RPN), which learns a prior of where members of an object class could be located in semantic map, (2) reachability transfer network (RTN), which transfers the reachability prior from the current to a future time step taking into account the planned egomotion, and (3) future localization network (FLN), which is conditioned on the past and current observations of an object and learns to predict a multimodal distribution of its future location based on the general solution from the RTN.
+
+Emergence prediction shares the same first two modules and differs only in the third network where we drop the condition on the past object trajectory. We refer to it as emergence prediction network (EPN). The aim of EPN is to learn a multimodal distribution of where objects of a class emerge in the future.
+
+
+Figure 3. Overview of the overall future localization framework. (a) The reachability prior network (RPN) learns the relation between objects of a certain class ID and the static elements of a semantic map by generating multiple bounding box hypotheses. (b) The reachability transfer network (RTN) transfers the reachability prior into the future given the observed image, its semantic, and the planned egomotion. The ground truth for training this network is obtained in a self-supervised manner by running RPN on the future static semantic map. (c) The future localization network (FLN) yields a multimodal distribution of the future bounding boxes of the object of interest through a sampling network (to generate multiple bounding boxes (samples)) and then a fitting network to fit the samples to a Gaussian mixture model (shown as heatmap overlayed on the future image with the means of the mixture components shown as green bounding boxes). The emergence prediction network (EPN) is identical to the FLN, except that it lacks the object-of-interest masks in the input.
+
+
+
+# 3.1. Reachability Prior Network (RPN)
+
+Given an observed scene from an egocentric view, the reachability prior network predicts where an object of a certain class can be at the same time step in the form of bounding box hypotheses. Let $\pmb{b}_{i,t}^{rpn} = [x,y,w,h]$ for $i\in [1,N]$ be the set of bounding box hypotheses predicted by our RPN at time step $t$ , where $(x,y)$ represents the center coordinates and $(w,h)$ the width and height.
+
+Since the reachability prior network should learn the relation between a class of objects (e.g., vehicle) and the scene semantics (e.g., road, sidewalk, and so on), we remove all dynamic objects from the training samples. This is achieved by inpainting [64]. Because inpainting on the semantic map causes fewer artifacts, in contrast to inpainting in the raw RGB image [5], the reachability prior is based on the semantic map. On one hand, the semantic map does not show some of the useful details visible in the raw image (e.g. the type of traffic sign or building textures). On the other hand, it is important that the inpainting does not introduce strong artifacts. These would be picked up during training and would bias the result (similar to keeping the original objects in the image).
+
+For each image $I_{t}$ at time $t$ , we compute its semantic segmentation $S_{t}$ using deeplabV3plus [11] and derive its static semantic segmentation $S_{t}^{\dagger}$ after inpainting all dynamic objects. This yields the training data for the reachability prior network: the static semantic segmentation is the input to the network, and the removed objects of class $c$ are ground-truth samples for the reachability. The network yields multiple
+
+hypotheses $\pmb{b}_{i,t}^{rpn}$ as output and is trained using the EWTA scheme [36] with the loss:
+
+$$
+L _ {R P N} = l \left(\boldsymbol {b} _ {i, t} ^ {r p n}, \hat {\boldsymbol {b}} _ {t}\right). \tag {1}
+$$
+
+$\hat{b}_t$ denotes a ground-truth bounding box of one instance from class $c$ (e.g., vehicle or pedestrian) in image $\pmb{I}_t$ and $l(.)$ denotes the $L_{2}$ norm. EwTA applies this loss to the hypotheses in a hierarchical way. It penalizes all hypotheses (i.e., $i\in [1,N]$ where $N = 20$ ). After convergence, it halves the hypotheses ( $N = 10$ ) and penalizes only the best 10 hypotheses. This halving is repeated until only the best hypothesis is penalized; see Makansi et al. [36] for details. A sample output of the reachability prior network for a car is shown in Figure 4 (top).
+
+# 3.2. Reachability Transfer Network (RTN)
+
+When running RPN on the semantic segmentation at time $t$ , we obtain a solution for the same time step $t$ . However, at test time, we require this prior in the unobserved future. Thus, we train a network to transfer the reachability at time $t$ to time $t + \Delta t$ , where $\Delta t$ is the fixed prediction horizon and $e_{t \rightarrow t + \Delta t}$ is the relative pairwise transformation between the pose at time $t$ and $t + \Delta t$ (referred to as planned egomotion) which is represented as a transformation vector (3d translation vector $[t_x, t_y, t_z]$ and rotation quaternions $[q_w, q_x, q_y, q_z]$ ). This transfer network can be learned with a self-supervised loss from a time series
+
+$$
+L _ {R T N} = \sum_ {i = 1} ^ {N} \left| \boldsymbol {b} _ {i, t + \Delta t} ^ {r t n} - \boldsymbol {b} _ {i, t + \Delta t} ^ {r p n} \right|. \tag {2}
+$$
+
+
+Figure 4. An example from the Waymo [50] dataset showing the reachability prior for the class car in the current time step (RPN: top), the reachability prior transferred to the future (RTN: middle), and final future localization further conditioned on a specific instance (FLN: bottom). For clarity, we draw the hypotheses on both image and semantic domains. Note that none of our networks has access to the future image or its semantic map (at time $t + \Delta t$ ).
+
+where $b_{i,t + \Delta t}^{rtn} = RTN(b_{i,t}^{rpn},e_{t\Rightarrow t + \Delta t},I_t,S_t^\dagger)$ is the output of the RTN network. $I_{t}$ is the image and $S_{t}^{\dagger}$ is the static semantic segmentation at time $t$ . Figure 4 (middle) shows the reachability prior (top) transferred to the future. Given the ego motion as moving forward (red arrow) and the visual cues for upcoming traffic light and a right turn, the RTN anticipates that some more cars can be on the street emerging and transforms some of the RPN hypotheses to cover these new locations.
+
+# 3.3. Future Localization Network (FLN)
+
+Given an object which is observed for a set of frames from $t - \delta t$ to $t$ , where $\delta t$ denotes the observation period, FLN predicts the distribution of bounding boxes in the future frame $t + \Delta t$ . Figure 3c shows the input to this network: the past images $(I_{t - \delta t}, \dots, I_t)$ , the past semantic maps $(S_{t - \delta t}, \dots, S_t)$ , the past masks of the object of interest $(M_{t - \delta t}, \dots, M_t)$ , the planned egomotion $(e_{t \Rightarrow t + \Delta t})$ , and the reachability prior in the future frame $(b_{i,t + \Delta t}^{rtn})$ . The object masks $M_s$ are provided as images, where pixels inside the object bounding box are object class $c$ and 0 elsewhere.
+
+We use the sampling-fitting framework from Makansi et al. [36] to predict a Gaussian mixture for the future bounding box of the object of interest. The sampling network generates multiple hypotheses and is trained with EWTA, just like the RPN. The additional fitting network estimates the parameters $(\pi_k,\mu_k,\sigma_k)$ of a Gaussian mixture model with $K = 4$ from these hypotheses, similar to the expectation-maximization algorithm but via a network; see Makansi et
+
+al. [36] for details. An example of the FLN prediction is shown in figure 4 (bottom). The fitting network is trained with the negative log-likelihood (NLL) loss
+
+$$
+\boldsymbol {L} _ {n l l} = - \log \left[ \sum_ {k = 1} ^ {K} \pi_ {k} \mathcal {N} \left(\boldsymbol {\mu} _ {k}, \boldsymbol {\sigma} _ {k} ^ {2}\right) \right]. \tag {3}
+$$
+
+# 3.4. Emergence Prediction Network (EPN)
+
+Rather than predicting the future of a seen object, the emergence prediction network predicts where an unseen object can emerge in the scene. The EPN is very similar to the FLN shown in figure 3c. The only difference is that the object masks are missing in the input, since the task is not conditioned on a particular object but predicts the general distribution of objects emerging.
+
+The network is trained on scenes where an object is visible in a later image $I_{t + \Delta t}$ (ground truth), but not in the current image $I_{t}$ . Like for the future localization network, we train the sampling network with EWTA and the fitting network with NLL.
+
+# 4. Experiments
+
+# 4.1. Datasets
+
+Mapillary Vistas [41]. We used the Mapillary Vistas dataset for training the inpainting method from [64] on semantic segmentation and for training our reachability prior network. This dataset contains around $25K$ images recorded in different cities across 6 continents, from different viewpoints, and in different weather conditions. For each image, pixelwise semantic and instance segmentation are provided. The images of this dataset are not temporally ordered, which prevents its usage for training the RTN, FLN, or EPN.
+
+nuScenes [9]. nuScenes is very large autonomous driving dataset consisting of 1000 scenes with 20 seconds each. We used it for training and evaluating the proposed framework. We did not re-train the reachability prior network on this dataset, as to test generalization of the reachability prior network across different datasets. The nuScenes dataset provides accurate bounding box tracking for different types of traffic objects and the egomotion of the observer vehicle. We used the standard training/validation split (700/150 scenes) of the dataset for training/evaluating all experiments.
+
+Waymo Open Dataset [50]. Waymo is the most recent autonomous driving dataset and contains 1000 scenes with 20 seconds each. To show zero-shot transfer of our framework (i.e., without re-training the model), we used the standard 202 testing scenes.
+
+FIT Dataset. We collected 18 scenes from different locations in Europe and relied on MaskRCNN [22] and deep
+
+sort [58] to detect and track objects, and DSO [18] to estimate the egomotion. This dataset allows testing the robustness to noisy inputs (without human annotation). We will make these sequences and the annotations publicly available.
+
+# 4.2. Evaluation Metrics
+
+FDE. For evaluating both future localization and emergence prediction, we report the common Final Displacement Error (FDE), which estimates the $L_{2}$ distance of the centers of two bounding boxes in pixels.
+
+IOU. We report the Intersection Over Union (IOU) metric to evaluate how well two bounding boxes overlap.
+
+The above metrics are designed for single outputs, not distributions. In case of multiple hypotheses, we applied the above metrics between the ground truth and the closest mode to the ground truth (known as Oracle [36, 30]).
+
+NLL. To evaluate the accuracy of the multimodal distribution, we compute the negative log-likelihood of the ground-truth samples according to the estimated distribution.
+
+# 4.3. Training Details
+
+We used ResNet-50 [23] as sampling network in all parts of this work. The fitting network consisted of two fully connected layers (each with 500 nodes) with a dropout layer (rate $= 0.2$ ) in between. In the FLN, we observed $\delta t = 1$ second and predicted $\Delta t = 3$ seconds into the future. For the EPN, we observed only one frame and predicted $\Delta t = 1$ second into the future. We used $N = 20$ for all sampling networks, and $K = 4$ and $K = 8$ as the number of mixture components for the FLN and the EPN, respectively. The emergence prediction task requires more modes compared to the future localization task since the distribution has typically more modes in this task.
+
+# 4.4. Baselines
+
+As there is only one other work so far on egocentric multimodal future prediction [7], we compare also to unimodal baselines, which are already more established.
+
+Kalman Filter [26]. This linear filter is commonly used for estimating the future state of a dynamic process through a set of (low-dimensional) observations. It is not expected to be competitive, since it considers only the past trajectory and ignores all other information.
+
+DTP [49]. DTP is a dynamic trajectory predictor for pedestrians based on motion features obtained from optical flow. We used their best performing framework, which predicts the difference to the constant velocity solution.
+
+STED [48]. STED is a spatial-temporal encoder-decoder that models visual features by optical flow and temporal features by the past bounding boxes through GRU en
+
+coders. It later fuses the encoders into another GRU decoder to obtain the future bounding boxes.
+
+RNN-ED-XOE [63]. RNN-ED-XOE is an RNN-based encoder-decoder framework which models both temporal and visual features similar to STED. RNN-ED-XOE additionally encodes the future egomotion before fusing all information into a GRU decoder for future bounding boxes.
+
+FLN-Bayesian using [7]. The work by Bhattacharyya et al. [7] is the only multimodal future prediction work for the egocentric scenario in the literature. It uses Bayesian optimization to estimate multiple future hypotheses and their uncertainty. Since they use a different network architecture and data modalities, rather than direct method comparison we port their Bayesian optimization into our framework for fair comparison. We re-trained our FLN with their objective to create samples by dropout during training and testing time as replacement for the EWTA hypotheses. We used the same number of samples, $N = 20$ , as in our standard approach.
+
+All these baselines predict the future trajectory of either pedestrians [49, 48, 7] or vehicles [63]. Thus, we re-trained them on nuScenes [9] to handle both pedestrian and vehicle classes. Moreover, some baselines utilize the future egomotion obtained from ORB-SLAM2 [40] or predicted by their framework, as in [7]. For a fair comparison, we used the egomotion from nuScenes dataset when re-training and testing their models, thus eliminating the effect of different egomotion estimation methods.
+
+FLN w/o reachability. To measure the effect of the reachability prior, we ran this version of our framework without RPN and RTN.
+
+FLN + reachability. Our full framework including all 3 networks: RPN, RTN, FLN.
+
+Due to the lack of comparable work addressing the emergence prediction task, so far, we conduct an ablation study on the emergence prediction to analyze the effect of the proposed reachability prior on the accuracy of the prediction.
+
+# 4.5. Egocentric Future Localization
+
+Table 1 shows a quantitative evaluation of our proposed framework against all the baselines listed above. To distinguish test cases that can be solved with simple extrapolation from more difficult cases, we use the performance of the Kalman filter [26]; see also [63]. A test sample, where the Kalman filter [26] has a displacement error larger than average is counted as challenging. An error more than twice the average is marked very challenging. In Table 1, we show the error only for the whole test set (all) and the very challenging subset (hard). More detailed results are in the supplemental material.
+
+As expected, deep learning methods outperform the extrapolation by a Kalman filter on all metrics. Both variants of our framework show a significant improvement over all
+
+ | nuScenes [9] (all 11k / hard 1.4k) | Waymo [50] (all 47.2k / hard 7.1k) | FIT (all 1.4k / hard 223) |
| FDE ↓ | IOU ↑ | NLL ↓ | FDE ↓ | IOU ↑ | NLL ↓ | FDE ↓ | IOU ↑ | NLL ↓ |
| Kalman [26] | 45.02/179.92 | 0.31/0.01 | - | 31.69/124.71 | 0.39/0.02 | - | 38.33/146.50 | 0.36/0.03 | - |
| DTP [49] | 35.88/111.49 | 0.34/0.05 | - | 28.31/82.64 | 0.38/0.10 | - | 34.99/118.36 | 0.37/0.09 | - |
| RNN-ED-XOE [63] | 30.47/78.54 | 0.34/0.13 | - | 25.23/59.23 | 0.36/0.18 | - | 35.74/88.58 | 0.36/0.17 | - |
| STED [48] | 27.71/82.71 | 0.39/0.13 | - | 20.73/58.14 | 0.42/0.20 | - | 31.80/86.58 | 0.35/0.16 | - |
| FLN-Bayesian using [7] | 28.51/82.23 | 0.37/0.13 | 19.75/28.44 | 23.75/64.67 | 0.38/0.17 | 18.80/27.54 | 32.64/87.63 | 0.38/0.16 | 20.56/28.83 |
| FLN w/o RPN | 15.91/47.15 | 0.54/0.29 | 19.46/26.85 | 13.20/36.57 | 0.54/0.34 | 18.84/26.19 | 18.12/47.92 | 0.53/0.33 | 20.38/27.88 |
| FLN + RPN | 12.82/32.68 | 0.55/0.33 | 17.90/24.17 | 10.35/27.15 | 0.58/0.37 | 16.63/22.95 | 15.41/32.14 | 0.54/0.39 | 19.08/24.73 |
+
+basielines for the FDE and IOU metrics. When we use FDE or IOU, we use the oracle selection of the hypotheses (i.e, the closest bounding box to the ground truth). Hence, a multimodal method is favored over a unimodal one. Still, such significant improvement indicates the need for multimodality. To evaluate without the bias introduced by the oracle selection, we also report the negative log-likelihood (NLL).
+
+Both variants of the proposed framework outperform the Bayesian framework on all metrics including the NLL. In fact, the Bayesian baseline is very close to the best unimodal baseline. This indicates its tendency for mode collapse, which we also see qualitatively. The use of the reachability prior is advantageous on all metrics and for all difficulties.
+
+As the networks (ours and all baselines) were trained on nuScenes, the results on Waymo and FIT include a zero-shot transfer to unseen datasets. We obtain the same ranking for unseen datasets as for the test set of nuScenes. This indicates that overfitting to a dataset is not an issue for this task. We recommend having cross-dataset experiments (as we show) also in future works to ensure that this stays true and future improvements in numbers are really due to better models and not just overfitting.
+
+Figure 5 shows some qualitative example in four challenging scenarios, where there are multiple options for the future location. (1) A pedestrian starts crossing the street and his future is not deterministic due to different speed estimates. (2) A pedestrian enters the scene from the left and will either continue walking to cross the street or will stop at the traffic light. (3) A tricycle driving from a parking area will continue driving to cross the road or will stop to give way to our vehicle. (4) A car entering the scene from the left will either slow down to yield or drive faster to overpass.
+
+For all scenarios, we observe that the reachability prior (shown as set of colored bounding boxes) defines the general relation between the object of interest and the static elements of the scene. Similar to the observation from our quantitative evaluation, the Bayesian baseline predicts a single future with some uncertainty (unimodal distribution). Our framework without exploiting the reachability prior (FLN w/o RPN) tends to predict more diverse futures
+
+Table 1. Result for future localization on the nuScenes [9], the Waymo [50], and our FIT datasets. The bottom three methods predict a multimodal distribution. The other methods are not probabilistic and do not allow evaluation of the NLL. For each cell, we report the average over (all testing scenarios/the very challenging scenarios). The number of all/very challenging scenarios for each dataset is shown in parentheses (top).
+
+ | FDE ↓ | IOU ↑ | NLL ↓ |
| EPN w/o RPN | 21.48 | 0.18 | 22.99 |
| EPN + RPN | 15.89 | 0.19 | 21.03 |
+
+Table 2. Quantitative results for the emergence prediction task on the nuScenes dataset [9].
+
+but still lacks predicting many of the modes. The reachability prior helps the approach to cover more of the possible future locations.
+
+We highly recommend watching the supplementary video, which gives a much more detailed qualitative impression of the results, as it allows the observer to get a much better feeling for the situation than the static pictures in the paper.
+
+# 4.6. Egocentric Emergence Prediction
+
+Table 2 shows the ablation study on the importance of using the reachability prior for the task of predicting object emergence in a scene. Similar to future localization, exploiting the reachability prior yields a higher accuracy and captures more of the modes. Two qualitative examples for this task are shown in Figure 6. Examples include scenarios (1) where a vehicle could emerge in the scene from the left street, could pass by or could be oncoming; (2) where a car could emerge from the left, from the right, it could pass by, or could be oncoming. EPN learns not only the location in the image, but also meaningful scales. For instance, the anticipation of passing-by cars has a larger scale compared to expected oncoming cars. The distributions for the two examples are different since more modes for emerging vehicles are expected in the second example (e.g, emerging from the right side). Notably, the reachability prior solution is different from the emergence solution, where close-by cars in front of the egocar are part of the reachability prior solution but are ruled out, since a car cannot suddenly appear there. More results are provided in the supplemental material.
+
+# 5. Conclusions
+
+In this work, we introduced a method for predicting future locations of traffic objects in egocentric views without
+
+
+Figure 5. Results for future localization on Waymo [50] (1st row) and nuScenes [9] (2-4 rows). For each row (scenario), we show (a) the observed trajectory of the object of interest (pink) and the planned egomotion (red arrow) to the future (red circle indicates no egomotion), (b) the reachability prior resulted from the RTN in the future frame, (c) a heatmap overlayed on the future image and the mean prediction (green bounding box) visualizing the distribution predicted by the Bayesian method and the ground-truth bounding box (pink), (d-e) both variants of our future localization framework.
+
+
+Figure 6. Sample results for emergence prediction on nuScenes [9]. For each row (scenario), we show (a) the observed image and the planned egomotion to the future (red circle indicates no egomotion), (b) the reachability prior from the RTN in the future frame, (c-d) both variants of the emergence prediction framework.
+
+predefined assumptions on the scene and by taking into account the multimodality of the future. We showed that a reachability prior and multi-hypotheses learning help overcome mode collapse. We also introduced a new task relevant for autonomous driving: predicting locations of suddenly emerging objects. Overall, we obtained quite good results even in difficult scenarios, but careful qualitative in
+
+spection of many results still shows a lot of potential for improvement on future prediction.
+
+# 6. Acknowledgments
+
+This work was funded in parts by IMRA Europe S.A.S. and the German Ministry for Research and Education (BMBF) via the project Deep-PTL.
+
+# References
+
+[1] Sandra Aigner and Marco Krner. Futuregan: Anticipating the future frames of video sequences using spatio-temporal 3d convolutions in progressively growing gans. arXiv preprint arXiv:1810.01325, 2018.
+[2] A. Alahi, K. Goel, V. Ramanathan, A. Robicquet, L. Fei-Fei, and S. Savarese. Social lstm: Human trajectory prediction in crowded spaces. In CVPR, 2016.
+[3] Javad Amirian, Jean-Bernard Hayet, and Julien Pettre. Social ways: Learning multi-modal distributions of pedestrian trajectories with gans. In CVPR Workshops, 2019.
+[4] Federico Bartoli, Giuseppe Lisanti, Lamberto Ballan, and Alberto Del Bimbo. Context-aware trajectory prediction. arXiv preprint arXiv:1705.02503, 2017.
+[5] Lorenzo Berlincioni, Federico Becattini, Leonardo Galteri, Lorenzo Seidenari, and Alberto Del Bimbo. Semantic road layout understanding by generative adversarial inpainting. arXiv preprint arXiv:1805.11746, 2018.
+[6] Apratim Bhattacharyya, Mario Fritz, and Bernt Schiele. Bayesian prediction of future street scenes through importance sampling based optimization. arXiv preprint arXiv:1806.06939, 2018.
+[7] A. Bhattacharyya, M. Fritz, and B. Schiele. Long-term onboard prediction of people in traffic scenes under uncertainty. In CVPR, June 2018.
+[8] Apratim Bhattacharyya, Mario Fritz, and Bernt Schiele. Bayesian prediction of future street scenes using synthetic likelihoods. In ICLR, 2019.
+[9] 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.
+[10] Rohan Chandra, Uttaran Bhattacharya, Aniket Bera, and Dinesh Manocha. Traphic: Trajectory prediction in dense and heterogeneous traffic using weighted interactions. In CVPR, June 2019.
+[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.
+[12] Chiho Choi and Behzad Dariush. Looking to relations for future trajectory forecast. In ICCV, 2019.
+[13] Chiho Choi, Abhishek Patil, and Srikanth Malla. Drogon: A causal reasoning framework for future trajectory forecast. arXiv preprint arXiv:1908.00024, 2019.
+[14] Henggang Cui, Thi Nguyen, Fang-Chieh Chou, Tsung-Han Lin, Jeff Schneider, David Bradley, and Nemanja Djuric. Deep kinematic models for physically realistic prediction of vehicle trajectories. arXiv preprint arXiv:1908.00219, 2019.
+[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. arXiv preprint arXiv:1809.10732, 2018.
+
+[16] N. Deo, A. Rangesh, and M. M. Trivedi. How would surround vehicles move? a unified framework for maneuver classification and motion prediction. T-IV, June 2018.
+[17] Nemanja Djuric, Vladan Radosavljevic, Henggang Cui, Thi Nguyen, Fang-Chieh Chou, Tsung-Han Lin, and Jeff Schneider. Short-term motion prediction of traffic actors for autonomous driving using deep convolutional networks. arXiv preprint arXiv:1808.05819, 2018.
+[18] J. Engel, V. Koltun, and D. Cremers. Direct sparse odometry. In arXiv:1607.02565, 2016.
+[19] Chenyou Fan, Jangwon Lee, and Michael S. Ryoo. Forecasting hands and objects in future frames. In ECCV, September 2018.
+[20] D. Gonzlez, J. Prez, V. Milans, and F. Nashashibi. A review of motion planning techniques for automated vehicles. T-ITS, April 2016.
+[21] Agrim Gupta, Justin Johnson, Li Fei-Fei, Silvio Savarese, and Alexandre Alahi. Social gan: Socially acceptable trajectories with generative adversarial networks. In CVPR, 2018.
+[22] K. He, G. Gkioxari, P. Dollr, and R. Girshick. Mask r-cnn. In ICCV, pages 2980-2988, Oct 2017.
+[23] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, June 2016.
+[24] Yeping Hu, Wei Zhan, and Masayoshi Tomizuka. Probabilistic prediction of vehicle semantic intention and motion. arXiv preprint arXiv:1804.03629, 2018.
+[25] Xiaojie Jin, Huaxin Xiao, Xiaohui Shen, Jimei Yang, Zhe Lin, Yunpeng Chen, Zequn Jie, Jiashi Feng, and Shuicheng Yan. Predicting scene parsing and motion dynamics in the future. In NIPS, pages 6915-6924, 2017.
+[26] R. E. Kalman. A new approach to linear filtering and prediction problems. ASME Journal of Basic Engineering, 1960.
+[27] Vineet Kosaraju, Amir Sadeghian, Roberto Martin-Martin, Ian Reid, S. Hamid Rezatofighi, and Silvio Savarese. Socialbigat: Multimodal trajectory forecasting using bicyclegan and graph attention networks. arXiv preprint arXiv:1907.03395, 2019.
+[28] Yong-Hoon Kwon and Min-Gyu Park. Predicting future frames using retrospective cycle gan. In CVPR, June 2019.
+[29] Donghoon Lee, Sifei Liu, Jinwei Gu, Ming-Yu Liu, Ming-Hsuan Yang, and Jan Kautz. Context-aware synthesis and placement of object instances. In NIPS, 2018.
+[30] 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, pages 336-345, 2017.
+[31] Yuke Li. Which way are you going? imitative decision learning for path forecasting in dynamic scenes. In CVPR, June 2019.
+[32] Yijun Li, Chen Fang, Jimei Yang, Zhaowen Wang, Xin Lu, and Ming-Hsuan Yang. Flow-grounded spatial-temporal video prediction from still images. In ECCV, 2018.
+[33] Pauline Luc, Camille Couprie, Yann Lecun, and Jakob Verbeek. Predicting future instance segmentations by forecasting convolutional features. arXiv preprint arXiv:1803.11496, 2018.
+
+[34] Pauline Luc, Natalia Neverova, Camille Couprie, Jakob Verbeek, and Yann LeCun. Predicting deeper into the future of semantic segmentation. In ICCV, 2017.
+[35] Yuexin Ma, Xinge Zhu, Sibo Zhang, Ruigang Yang, Wenping Wang, and Dinesh Manocha. Trafficpredict: Trajectory prediction for heterogeneous traffic-agents. In AAAI, pages 6120-6127, 2019.
+[36] Osama Makansi, Eddy Ilg, Ozgun Cicek, and Thomas Brox. Overcoming limitations of mixture density networks: A sampling and fitting framework for multimodal future prediction. In CVPR, June 2019.
+[37] Srikanth Malla and Chiho Choi. Nemo: Future object localization using noisy ego priors. arXiv preprint arXiv:1909.08150, 2019.
+[38] Huynh Manh and Gita Alaghband. Scene-lstm: A model for human trajectory prediction. arXiv preprint arXiv:1808.04018, 2018.
+[39] P. McCullagh and J.A. Nelder. Generalized Linear Models, Second Edition. Chapman & Hall/CRC Monographs on Statistics & Applied Probability. Taylor & Francis, 1989.
+[40] R. Mur-Artal and J. D. Tards. Orb-slam2: An open-source slam system for monocular, stereo, and rgb-d cameras. IEEE Transactions on Robotics, 2017.
+[41] Gerhard Neuhold, Tobias Ollmann, Samuel Rota Bulò, and Peter Kontschieder. The mapillary vistas dataset for semantic understanding of street scenes. In ICCV, 2017.
+[42] A. O'Hagan. Curve fitting and optimal design for prediction. Journal of the Royal Statistical Society: Series B (Methodological), 40(1):1-24, 1978.
+[43] Carl Edward Rasmussen and Christopher K. I. Williams. Gaussian Processes for Machine Learning (Adaptive Computation and Machine Learning). The MIT Press, 2005.
+[44] Nicholas Rhinehart, Rowan McAllister, Kris Kitani, and Sergey Levine. Precog: Prediction conditioned on goals in visual multi-agent settings. In ICCV, 2019.
+[45] Amir Sadeghian, Vineet Kosaraju, Ali Sadeghian, Noriaki Hirose, Hamid Rezatofighi, and Silvio Savarese. Sophie: An attentive gan for predicting paths compliant to social and physical constraints. In CVPR, 2019.
+[46] Amir Sadeghian, Ferdinand Legros, Maxime Voisin, Ricky Vesel, Alexandre Alahi, and Silvio Savarese. Car-net: Clairvoyant attentive recurrent network. In ECCV, 2018.
+[47] Shashank Srikanth, Junaid Ahmed Ansari, Karnik Ram R, Sarthak Sharma, Krishna Murthy J., and Madhava Krishna K. Infer: Intermediate representations for future prediction. arXiv preprint arXiv:1903.10641, 2019.
+[48] Olly Styles, Tanaya Guha, and Victor Sanchez. Multiple object forecasting: Predicting future object locations in diverse environments. arXiv preprint arXiv:1909.11944, 2019.
+[49] O. Styles, A. Ross, and V. Sanchez. Forecasting pedestrian trajectory with machine-annotated training data. In IV, June 2019.
+[50] Pei Sun, Henrik Kretzschmar, Xerxes Dotiwalla, Aurelien Chouard, Vijaysai Patnaik, Paul Tsui, James Guo, Yin Zhou, Yuning Chai, Benjamin Caine, Vijay Vasudevan, Wei Han, Jiquan Ngiam, Hang Zhao, Aleksei Timofeev, Scott Ettinger, Maxim Krivokon, Amy Gao, Aditya Joshi, Yu Zhang,
+
+Jonathon Shlens, Zhifeng Chen, and Dragomir Anguelov. Scalability in perception for autonomous driving: Waymo open dataset, 2019.
+[51] Ruben Villegas, Jimei Yang, Seunghoon Hong, Xunyu Lin, and Honglak Lee. Decomposing motion and content for natural video sequence prediction. In ICLR, 2017.
+[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 Pirsiavash, and Antonio Torralba. Anticipating visual representations from unlabeled video. In CVPR, pages 98-106, 2016.
+[54] Suhani Vora, Reza Mahjourian, Soeren Pirk, and Anelia Angelova. Future segmentation using 3d structure. arXiv preprint arXiv:1811.11358, 2018.
+[55] J. Walker, A. Gupta, and M. Hebert. Patch to the future: Unsupervised visual prediction. In CVPR, 2014.
+[56] J. M. Wang, D. J. Fleet, and A. Hertzmann. Gaussian process dynamical models for human motion. TPAMI, 30(2):283-298, 2008.
+[57] C. K. I. Williams. Prediction with gaussian processes: From linear regression to linear prediction and beyond. In Learning and Inference in Graphical Models, pages 599-621. Kluwer, 1997.
+[58] Nicolai Wojke, Alex Bewley, and Dietrich Paulus. Simple online and realtime tracking with a deep association metric. arXiv preprint arXiv:1703.07402, 2017.
+[59] Y. Xu, Z. Piao, and S. Gao. Encoding crowd interaction with deep neural network for pedestrian trajectory prediction. In CVPR, pages 5275-5284, 2018.
+[60] H. Xue, D. Q. Huynh, and M. Reynolds. Ss-lstm: A hierarchical LSTM model for pedestrian trajectory prediction. In WACV, 2018.
+[61] Tianfan Xue, Jiajun Wu, Katherine Bouman, and Bill Freeman. Visual dynamics: Probabilistic future frame synthesis via cross convolutional networks. In NIPS, pages 91-99, 2016.
+[62] T. Yagi, K. Mangalam, R. Yonetani, and Y. Sato. Future person localization in first-person videos. In CVPR, June 2018.
+[63] Y. Yao, M. Xu, C. Choi, D. J. Crandall, E. M. Atkins, and B. Dariush. Egocentric vision-based future vehicle localization for intelligent driving assistance systems. In ICRA, May 2019.
+[64] Jiahui Yu, Zhe Lin, Jamei Yang, Xiaohui Shen, Xin Lu, and Thomas S. Huang. Generative image inpainting with contextual attention. In CVPR, June 2018.
+[65] Pu Zhang, Wanli Ouyang, Pengfei Zhang, Jianru Xue, and Nanning Zheng. Sr-lstm: State refinement for lstm towards pedestrian trajectory prediction. In CVPR, 2019.
+[66] Tianyang Zhao, Yifei Xu, Mathew Monfort, Wongun Choi, Chris Baker, Yibiao Zhao, Yizhou Wang, and Ying Nian Wu. Multi-agent tensor fusion for contextual trajectory prediction. In CVPR, June 2019.
\ No newline at end of file
diff --git a/multimodalfuturelocalizationandemergencepredictionforobjectsinegocentricviewwithareachabilityprior/images.zip b/multimodalfuturelocalizationandemergencepredictionforobjectsinegocentricviewwithareachabilityprior/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..3cf97953adcd5cfd37934f72fc7c74c6a8377dbf
--- /dev/null
+++ b/multimodalfuturelocalizationandemergencepredictionforobjectsinegocentricviewwithareachabilityprior/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0be51a9b6c295cbfc0feee7bfb1e76fcdabbbf9c3fdc4fab83088fe18cee3fc1
+size 629102
diff --git a/multimodalfuturelocalizationandemergencepredictionforobjectsinegocentricviewwithareachabilityprior/layout.json b/multimodalfuturelocalizationandemergencepredictionforobjectsinegocentricviewwithareachabilityprior/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..0418c3987c7568dd19714b386eb5b9c44211af21
--- /dev/null
+++ b/multimodalfuturelocalizationandemergencepredictionforobjectsinegocentricviewwithareachabilityprior/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:59812be99b0607cd5e1ef4eebda04f6467a9066337de8aa6ac5b265714ad5539
+size 343365
diff --git a/multipleanchorlearningforvisualobjectdetection/b4f6a0d8-5896-4dc8-ae72-b494274284b7_content_list.json b/multipleanchorlearningforvisualobjectdetection/b4f6a0d8-5896-4dc8-ae72-b494274284b7_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..f71e98892a663136c7b18c04e27fb029b9c8a540
--- /dev/null
+++ b/multipleanchorlearningforvisualobjectdetection/b4f6a0d8-5896-4dc8-ae72-b494274284b7_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:83046b946b142962e87a3f63cc859a5af6e3fdd2a19c1080a4d598d7b70bdbc4
+size 77255
diff --git a/multipleanchorlearningforvisualobjectdetection/b4f6a0d8-5896-4dc8-ae72-b494274284b7_model.json b/multipleanchorlearningforvisualobjectdetection/b4f6a0d8-5896-4dc8-ae72-b494274284b7_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..b810721f8a8bec81e08dee8935749c1a0f4fb033
--- /dev/null
+++ b/multipleanchorlearningforvisualobjectdetection/b4f6a0d8-5896-4dc8-ae72-b494274284b7_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8ecee0fdf02091c35f8f3c7f7bd07707694ca50f39dc090b66cc98352e6a0daf
+size 92874
diff --git a/multipleanchorlearningforvisualobjectdetection/b4f6a0d8-5896-4dc8-ae72-b494274284b7_origin.pdf b/multipleanchorlearningforvisualobjectdetection/b4f6a0d8-5896-4dc8-ae72-b494274284b7_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..de1138c67c9363222cbf1de498841da198abafca
--- /dev/null
+++ b/multipleanchorlearningforvisualobjectdetection/b4f6a0d8-5896-4dc8-ae72-b494274284b7_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2542eedb5ef9379619af061bcb5d4f7214f06e0120f32d569f9305532cb792f6
+size 558524
diff --git a/multipleanchorlearningforvisualobjectdetection/full.md b/multipleanchorlearningforvisualobjectdetection/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..5602b7ce4570f03fdaa9f94b1c1aa1a596addf22
--- /dev/null
+++ b/multipleanchorlearningforvisualobjectdetection/full.md
@@ -0,0 +1,339 @@
+# Multiple Anchor Learning for Visual Object Detection
+
+Wei $\mathrm{Ke}^{*1,2}$ , Tianliang Zhang $^{*3}$ , Zeyi Huang $^{2}$ , Qixiang Ye $^{\dagger 3}$ , Jianzhuang Liu $^{4}$ , and Dong Huang $^{2}$
+
+$^{1}$ Xi'an Jiaotong University, Xi'an, China
+
+$^{2}$ Carnegie Mellon University, Pittsburgh, US
+
+3University of Chinese Academy of Sciences, Beijing, China
+
+4 Shenzhen Institutes of Advanced Technology, Shenzhen, China
+
+wei.ke@xjtu.edu.cn, zhangtianliang17@mails.ucas.ac.cn, zeyih@andrew.cmu.edu
+
+qxye@ucas.ac.cn, jz.liu@siat.ac.cn, donghuang@cmu.edu
+
+# Abstract
+
+Classification and localization are two pillars of visual object detectors. However, in CNN-based detectors, these two modules are usually optimized under a fixed set of candidate (or anchor) bounding boxes. This configuration significantly limits the possibility to jointly optimize classification and localization. In this paper, we propose a Multiple Instance Learning (MIL) approach that selects anchors and jointly optimizes the two modules of a CNN-based object detector. Our approach, referred to as Multiple Anchor Learning (MAL), constructs anchor bags and selects the most representative anchors from each bag. Such an iterative selection process is potentially NP-hard to optimize. To address this issue, we solve MAL by repetitively depressing the confidence of selected anchors by perturbing their corresponding features. In an adversarial selection-depression manner, MAL not only pursues optimal solutions but also fully leverages multiple anchors/features to learn a detection model. Experiments show that MAL improves the baseline RetinaNet with significant margins on the commonly used MS-COCO object detection benchmark and achieves new state-of-the-art detection performance compared with recent methods.
+
+# 1. Introduction
+
+Convolutional Neural Network (CNN) based object detectors have achieved unprecedented advances in the past few years [9, 8, 27, 25, 21, 17, 18]. In both recent two-stage and single-stage object detectors, the bounding box classification and localization modules are highly integrated: they
+
+
+
+
+
+
+(a) Baseline
+
+
+(b) MAL
+Figure 1: Detection outputs of the baseline detector (RetinaNet) and the Multiple Anchor Learning (MAL), before and after NMS. The baseline detector may produce bounding boxes with high localization IoU with a low classification score (the yellow bbox), or low localization IoU with a high classification score (the red bbox), which lead to suboptimal results after NMS. MAL produces bounding boxes with high co-occurrence of top classification and localization, leading to better detection results after NMS.
+
+are conducted on the shared local features, and are optimized over the sum of the loss functions.
+
+To provide rich candidates of shared local features, a prevalent approach is the introduce hand-crafted dense anchors [18] on the convolutional feature maps. These anchors create a uniform distribution of bounding box scales and aspect ratios, enabling objects with various scales and
+
+aspect ratios to be equally represented in training a detector.
+
+However, optimization under a fixed set of hand-crafted anchors significantly limits the possibility to jointly optimize classification and localization. During training, detectors leverage spatial alignment, i.e., Intersection over Unit (IoU) between objects and anchors, as the sole criterion to assign anchors. Each assigned anchor independently supervises network learning for classification and localization. Without direct interactions of the two optimizations, the detections of accurate localization may have lower classification confidence, and be suppressed by the following Non-Maximum Suppression (NMS) procedure (see the baseline example in Fig. 1).
+
+Recent remedy for the problem includes IoU-Net [13] and FreeAnchor [34]. However, it remains using independent classification and localization confidence during the training procedure. FreeAnchor selects anchors according to a joint probability over classification and localization. Nevertheless, the matching procedure based on maximum likelihood estimation (MLE) is not optimal considering the non-convexity of the problem.
+
+In this paper, we present Multiple Anchor Learning (MAL), an automatic anchor learning approach that jointly optimizes object classification and localization from the perspective of anchor-object matching. In training phase of MAL, an anchor bag for each object is constructed by choosing the top ranked anchor with IoUs between anchors and the object bounding box. MAL evaluates positive anchors in each bag by combining their classification and localization scores. In each training iteration, MAL uses all positive anchors to optimize the training loss but selects the high/top-scored anchors as the solutions. This leads to high co-occurrence of top classification and localization (see the MAL example in Fig. 2).
+
+MAL is optimized over an anchor selection loss based on Multiple Instance Learning (MIL) [23]. However, the iterative selection process under conventional MIL is potentially NP-hard to optimize. Selecting the top-scored instance (anchor) in each learning iteration could produce sub-optimal solutions, e.g., falsely localized object parts. To address this issue, we solve MAL by repetitively depressing the confidence of top-scored anchors by perturbing their features, which tends to that potential optimal solutions, i.e., positive anchors of lower confidence, have an opportunity to participate in learning. By upgrading the supervision from independent anchors to multiple anchors, MAL fully leverages multiple anchors/features to learn a better detector. The contributions of this work include:
+
+- We propose an Multiple Anchor Learning (MAL) approach, jointly optimizing classification and localization modules for object detection by evaluating and selecting anchors.
+- We propose a selection-depression optimization strategy, providing an elegant-yet-effective way to prevent
+
+MAL from getting stuck into sub-optimal solutions during detector training.
+
+- We improve state-of-the-arts with significant margins on the commonly used MS COCO dataset.
+
+# 2. Related Work
+
+Various taxonomies [20] have been used to categorize the large amount of CNN-based object detection methods, e.g., one-stage [27] vs. two-stage [18], single-scale features [27] vs. multi-scale representation [17, 16, 24], and handcrafted architectures [21] vs. Network Architecture Search (NAS) [7]. In this paper, we review the related works from the perspective of object localization.
+
+# 2.1. Anchor-Based Method
+
+Training a detector requires to generate a set of bounding boxes along with their classification labels associated with the objects in an image. However, it is not trivial for CNNs to directly predict an order-less set of arbitrary cardinals [32]. One commonly used strategy is to introduce anchors, which employs a divide-and-conquer strategy to match objects with convolutional features, spatially.
+
+Anchor Assignment. Anchor-based detection methods include the well-known Faster R-CNN [27], FPN [17], RetinaNet [18], SSD [21], DSSD [6], andYOLO [26]. In these detectors, a large amount of anchors are scattered over convolutional feature maps so that they can match objects of various aspect ratios and scales. During training, the anchors are assigned to objects (positive anchors) or backgrounds (negative anchors) by threshold their IoUs with the ground-truth bounding boxes [27]. During inference, anchors independently predict object bounding boxes, where the box with the highest classification score is retained after the NMS procedure.
+
+Despite of the simplicity, these approaches rely on the assumption that anchors are optimal for both object classification and localization. For objects of partially occlusion and irregular shapes, however, such heuristics are implausible and they could miss the best anchors/features [34].
+
+Anchor Optimization. To pursue optimal feature-object matching, MetaAnchor [32] learns to predict anchors from the arbitrary customized prior boxes with a subnet. GuidedAnchoring [31] leverages semantic features to guide the prediction of anchors while replacing dense anchors with predicted anchors. FreeAnchor [34] upgrades handcrafted anchor assignment to "free" anchor matching. This approach formulates detector training as a maximum likelihood estimation (MLE) procedure. Its goal is to learn features that best explain a class of objects in terms of both classification and localization. IoU-Net [13] selects anchors while predicting the IoU between a detected bounding box and a ground-truth box. Combined with an
+
+
+Figure 2: The main idea of MAL. In the feature pyramid network, an anchor bag $A_{i}$ is constructed for each object $b_{i}$ . Together with the network parameter learning, i.e., back-propagation, MAL evaluates the joint classification and localization confidence of each anchor in $A_{i}$ . Such confidence is used for anchor selection and indicates the importance of anchors during network parameter evolution.
+
+IoU-guided NMS, IoU-Net reduces the suppression failure caused by the misleading classification confidences. Gaussian YOLO [3] introduces localization uncertainty that indicates the reliability of anchors/bounding boxes. By using the estimated localization uncertainty during inference, this approach improves classification and localization accuracy.
+
+All above approaches have taken some steps towards anchor learning. Nevertheless, how to efficiently select optimal anchors remains to be further elaborated. Considering a non-convex objective function which could cause sub-optimal solutions, we propose an adversarial selection-depression strategy to alleviate this issue.
+
+# 2.2. Anchor-Free Method
+
+Instead of using anchors as bases to conduct detection, researchers have recently explored anchor-free approaches, which operates on individual cells of the convolutional feature maps. FCOS leverages cell-level supervision and center-ness bounding-box regression [29] for object detection. CornerNet [15] and CenterNet [5] replace bounding box supervision with key-point supervision. Extreme point [35] and RepPoint [33] use point sets to predict object bounding boxes.
+
+As a new direction for object detection, anchor-free methods show great potential for extreme object scales and aspect ratios, without constraints set by hand-craft anchors. However, without the anchor box as the reference point, direct regression of bounding boxes from convolutional features remains a very challenging problem. As an anchor-based approach, MAL outperforms the current top anchor-free detectors such as CenterNet and CornerNet.
+
+# 3. The Proposed Approach
+
+MAL is implemented based on RetinaNet [18] network architecture. MAL upgrades RetinaNet by finding optimal selection of anchors/features for both classification and localization. In what follows, we briefly revisit RetinaNet on
+
+its original mechanism in object classification and localization. We then elaborate how MAL improve classification and localization by evaluating anchors. We finally propose an anchor selection-depression strategy to pursue optimal solutions of MAL.
+
+# 3.1. RetinaNet Revisit
+
+RetinaNet is a representative architecture of single-stage detectors with state-of-the-art performance. A RetinaNet detector is made up of a backbone network and two subnets, one for object classification and other for object localization. Feature Pyramid Network (FPN) is used at the end of RetinaNet backbone network. From each feature map in the feature pyramid, a classification subnet predicts category probabilities while a box regression subnet predicts object locations using anchor boxes as the reference locations. The input features of the two subnets are shared across the feature pyramid levels for efficiency. Considering the extreme imbalance of foreground-background classes, presented as positive-negative anchors after anchor-object matching, Focal Loss is adopted to prevent the vast number of easy negatives from overwhelming the detector during training.
+
+Let $x \in \mathcal{X}$ be an input image with label $y \in \mathcal{Y}$ , where $\mathcal{X}$ is the training image set and $\mathcal{Y}$ is the label set of the categories. Without loss of generality, denote $B$ as the ground-truth bounding boxes of the objects in a positive image. $b_{i} \in B$ consists of the class label $b_{i}^{cls}$ and the spatial position $b_{i}^{loc}$ . The classification confidence $a_{j}^{cls}$ and bounding-box output $a_{j}^{loc}$ of the anchor $a_{j}$ are predicted by the classification and the box regression subnets, respectively. The anchors in an image are divided into positive ones $a_{j+}$ if their IoUs with the ground-truth boxes are larger than a threshold, and negative ones $a_{j-}$ otherwise. Anchors are used to supervise network learning, as
+
+$$
+\theta^ {*} = \arg \max _ {\theta} \left(f _ {\theta} \left(a _ {j +}, b _ {i} ^ {c l s}\right) - \gamma f _ {\theta} \left(a _ {j -}, b _ {i} ^ {c l s}\right)\right), \tag {1}
+$$
+
+where $f_{\theta}(\cdot)$ denotes the classification procedure, and $\gamma$ is
+
+
+Figure 3: MAL implementation. During training, it includes the additional anchor selection and anchor depression modules added to RetinaNet. During test, it uses exactly the same architecture as RetinaNet. “ $U$ ” and “ $V$ ” respectively denote convolutional feature maps before and after depression. “ $M$ ” and “ $M'$ ” respectively denote an activation map before and after depression.
+
+a factor to balance the importance of negative/positive anchors. Simultaneously, positive anchors are used to optimize the object localization, as
+
+$$
+\theta^ {*} = \arg \max _ {\theta} g _ {\theta} \left(a _ {j +}, b _ {i} ^ {l o c}\right), \tag {2}
+$$
+
+where $\theta$ denotes the network parameters, and $g_{\theta}(\cdot)$ denotes the bounding-box regression procedure. Eq. 1 and Eq. 2 are actually implemented by minimizing the Focal Loss, $\mathcal{L}_{cls}(a_j,b_i^{cls})$ , and the Smooth-L1 loss, $\mathcal{L}_{loc}(a_j,b_i^{loc})$ ,
+
+During network learning, each assigned anchor independently supervises the learning for object classification and object localization, without considering whether the detection and localization are compatible on assigned anchors. This could cause the anchors of accurate localization but with lower classification confidence to be suppressed by the following Non-Maximum Suppression (NMS) procedure.
+
+# 3.2. Multiple Anchor Learning
+
+To alleviate the drawbacks of independent anchor optimization, we propose the Multiple Anchor Learning (MAL) approach, Fig. 2. In each learning iteration, MAL selects high-scored instances in an anchor bag to update the model. After updating, the model evaluates each instance with new confidence. Model learning and anchor selection iteratively perform towards final optimization.
+
+To fulfill this purpose, we first construct an anchor bag $A_{i}$ for the $i^{th}$ object. The anchor bag includes the top- $k$ anchors according to the IoUs between the anchors and the ground truth. Together with network parameter learning, i.e., back-propagation, MAL evaluates the joint classification and localization confidence of each anchor in $A_{i}$ . Such confidence is used for anchor selection and indicates the importance of anchors during network parameter evolution. For simplicity, consider solely the learning upon positive anchors, while that for negative anchors follows Eq. 1.
+
+MAL has the following objective function:
+
+$$
+\begin{array}{l} \left\{\theta^ {*}, a _ {i} ^ {*} \right\} = \arg \max _ {\theta , a _ {j} \in A _ {i}} F _ {\theta} \left(a _ {j}, b _ {i}\right) \\ = \arg \max _ {\theta , a _ {j} \in A _ {i}} f _ {\theta} \left(a _ {j}, b _ {i} ^ {c l s}\right) + \beta g _ {\theta} \left(a _ {j}, b _ {i} ^ {l o c}\right), \tag {3} \\ \end{array}
+$$
+
+where $f_{\theta}(.)$ and $g_{\theta}(.)$ give the classification and localization scores, respectively, and $\beta$ is a regularization factor. It is towards selecting a best positive anchor $a_{i}^{*}$ for the $i^{th}$ object, as well as learning the network parameters $\theta^{*}$ .
+
+The objective function defined in Eq. 3 is converted to a loss function as:
+
+$$
+\begin{array}{l} \left\{\theta^ {*}, a _ {i} ^ {*} \right\} = \arg \min _ {\theta , a _ {j} \in A _ {i}} \mathcal {L} _ {d e t} \left(a _ {j}, b _ {i}\right) \\ = \arg \min _ {\theta , a _ {j} \in A _ {i}} \mathcal {L} _ {c l s} \left(a _ {j}, b _ {i} ^ {c l s}\right) + \beta \mathcal {L} _ {r e g} \left(a _ {j}, b _ {i} ^ {l o c}\right), \tag {4} \\ \end{array}
+$$
+
+where $\mathcal{L}_{cls}$ and $\mathcal{L}_{reg}$ are the classification and detection losses, respectively, as defined in Section 3.1. The loss for negative anchors follows the Focal Loss defined in [18].
+
+# 3.3. Selection-Depression Optimization
+
+Optimizing Eq. 3 or Eq. 4 with Stochastic Gradient Descent (SGD) is a non-convex problem, which could cause a sub-optimal anchor selection. To alleviate the problem and select optimal anchors, we propose repetitively depressing the confidence of selected anchors by perturbing their corresponding features. Such a learning strategy, referred to as selection-depression optimization, solves the MAL problem in an adversarial manner.
+
+Anchor Selection. According to $F_{\theta}(a_j, b_i)$ , the conventional MIL algorithm tends to select the top-scored anchor. Nevertheless, in the context of object detection, selecting a top-scored anchor from each bag is difficult, as validated by the continuation MIL method [30]. Instead of selecting the highest-scored anchor in Eq. 3 in the training phase, we propose an "All-to-Top-1" anchor selection strategy from each
+
+anchor bag for back-propagation. When learning proceeds, we linearly decrease the number from $|A_i|$ (number of anchors in a bag) to 1. Formally, let $\lambda = t / T$ , where $t$ and $T$ are the current and total numbers of iterations for training. Then let $\phi(\lambda)$ indicate the indices of high-ranked anchors and $|\phi(\lambda)| = |A_i| * (1 - \lambda) + 1$ . Finally, Eq. 3 is re-written as:
+
+$$
+\left\{\theta^ {*}, a _ {i} ^ {*} \right\} = \arg \max _ {\theta , a _ {j} \in A _ {i}} \sum_ {j \in \phi (\lambda)} F _ {\theta} (a _ {j}, b _ {i}), \tag {5}
+$$
+
+Along this pipeline, MAL leverages multiple anchors/features within the object region to learn a detection model in early training epochs, and converges to use a single optimal anchor at the last epoch.
+
+Anchor Depression. Inspired by the inverted attention network [12], we developed an anchor depression procedure to perturb the features of selected anchors in order to decrease their confidence (see more Fig. 3). To further optimize the training losses, MAL is forced to learn stronger features for selected anchors. The rational is to endow unselected anchors with extra chances to participate the training. Formally, we denote the feature map and the attention map as $U$ and $M$ , where $M$ is computed as $M = \sum_{l} w_{l} * U_{l}$ with $w$ being the global average pooling of $U$ and $l$ being the channel index of $U$ . We then generate a new depressed attention map $M' = (1 - \mathbb{1}_{P}) * M$ by cutting down the high values to zero, where $\mathbb{1}$ is the 0-1 indicator function. and $P$ is the high-value position. The feature map is perturbed as:
+
+$$
+V = \left(\mathbf {1} + M ^ {\prime}\right) \circ U _ {l}, \tag {6}
+$$
+
+where $\mathbf{1}$ is the identity matrix and $\circ$ denotes the elementwise multiplication. With the continuation strategy, the depression in Eq. 6 is reformulated as:
+
+$$
+V = \left(\mathbf {1} + \left(1 - \mathbb {1} _ {\psi (\lambda)}\right) * M\right) \circ U _ {l}, \tag {7}
+$$
+
+where $\psi (\lambda)$ indicates how many pixels to be perturbed.
+
+# 3.4. Implementation
+
+The implementation of an MAL detector is based on the RetinaNet detector where the features of the input image are extracted by a FPN backbone [17]. The anchor generation settings are the same as those of RetinaNet, i.e., 9 anchors with three sizes $\{2^0, 2^{1/3}, 2^{2/3}\}$ and three aspect ratios $\{1:2, 1:1, 2:1\}$ for each pixel on the feature maps. Across the levels, the anchors cover the scale range from 32 to 813 pixels with respect to the input image.
+
+During the feed-forward procedure of the network training, we calculate the detection confidence of each anchor, $F_{\theta}(a_j,b_i)$ , to minimize the detection loss defined in Eq. 4. According to the confidence, top- $k$ anchors are selected. The network parameters are then updated under the supervision of the selected anchors. After anchor selection, anchor
+
+
+Figure 4: Optimization analysis. In the first curve, MAL selects a sub-optimal anchor and gets stuck into a local minimum. In the second curve, anchor depression increases the loss so that MAL continues the optimization. In this way, MAL has a greater chance to find optimal solutions.
+
+
+
+depression is carried out, as described in Section 3.3. In the next iteration, anchor selection is carried out again to select high-scored anchors.
+
+The inference procedure of our approach is exactly the same as RetinaNet, i.e., we use the learned network parameters to predict classification scores and object bounding boxes, which are fed to a NMS procedure for object detection. As MAL is only applied in the detector training procedure to learn more representative features, our learned detector achieves performance improvement with negligible additional computation cost.
+
+# 3.5. Optimization Analysis
+
+The anchor selection-depression strategy approximates an adversarial procedure. The selection operation finds top-scored anchors that minimize the detection loss $\mathcal{L}_{det}$ . The depression operation perturbs the corresponding features of selected anchors so that their confidence decreases and the detection loss increases again. The selection-depression strategy helps the learner find better solutions for the nonconvex objective function of MAL. As illustrated by the first curve of Fig. 4, MAL selects a sub-optimal anchor and gets stuck into a local minimum of the loss function. In the second curve, the anchor depression increases the loss, so that the local minimum is "filled". Consequently, MAL continues to find the next local minimum. After learning converges, MAL has a better chance to find optimal solutions.
+
+# 4. Experiments
+
+In this section, we present experimental results of the proposed Multiple Anchor Learning approach on the bounding-box detection track of the challenging COCO
+
+benchmark [19]. We follow the common practice and use $\sim 118\mathrm{k}$ images for training, $5\mathrm{k}$ for validation and $\sim 20\mathrm{k}$ for testing without provided annotations (test-dev). AP is computed over ten different IoU thresholds, i.e., 0.5: 0.05: 0.95, with all categories. It is the commonly used evaluation metric for object detection.
+
+# 4.1. Experimental Setting
+
+We utilize ResNet-50, ResNet-101, and ResNeXt-101 with FPN as backbones. The batch normalization layers are fixed to be frozen in the training phase. We use a minibatch of 2 images per GPU, thus making a total mini-batch of 16 images on 8 GPUs. The initial learning rate is set to 0.01 and decreased by a factor of 10 after 90k and 120k for the 135k setting (ResNet-50), and 120k and 160k for the 180k setting (ResNet-101 and ResNeXt-101). The synchronized Stochastic Gradient Descent (SGD) is adopted for network optimization. The weight decay of 0.0001 and the momentum of 0.9 are used. A linear warmup strategy is adopted in the first 500 iterations. We set the weight parameter $\beta = 0.75$ experimentally. Following [34], we assign anchors to ground-truth using IoU threshold of 0.5, and to background if their IoUs are in [0, 0.4).
+
+# 4.2. Ablation Study
+
+For ablation study, we used ResNet-50 as the backbone. All detection performances were evaluated on the COCOMinval dataset (5k images). Firstly, we visualize the effectiveness of MAL in Fig. 5 on feature activation maps. Comparing MAL with RetinaNet, MAL activates more parts on the object and suppresses the more parts in the background. It demonstrates that MAL improved features for better object detection.
+
+Anchor Selection: Without the depression component of MAL, we evaluate the selection component individually first. We compare the results of different $k$ for anchor bag construction, as shown in Table 1a. The AP is stable when $k = 40, 50,$ or 60. We choose 50 anchors in the following experiments. The results of different anchor selection strategies are shown in Table 1b. It improves AP from $35.46\%$ to $38.14\%$ when anchor bags are used instead of the scattered anchors in RetinaNet, as $\mathrm{MAL} + \mathrm{S}(\mathrm{all})$ in Table 1b. In the RetinaNet, if an anchor is with good localization but without the highest score, it does not affect the network parameters. While using the anchor bags, this kind of anchor has potential to be selected for detector learning. By the continuation optimization which selects all anchors at the beginning and gradually reduces the selected anchors to the top-1, the performance is further improved to $38.39\%$ as $\mathrm{MAL} + \mathrm{S}(\mathrm{all - top1})$ in Table 1b. It verifies that continuation optimization is also efficient in MAL.
+
+Anchor Depression: We only add the depression component to RetinaNet to find the preferable indicator func
+
+
+
+
+
+
+
+
+
+
+10k
+
+
+
+
+
+
+
+
+#50k
+Figure 5: The activation map comparison between RetinaNet (the first and third rows) and MAL (the second and fourth rows). The attention maps at the $10\mathrm{k}$ , $50\mathrm{k}$ and $90\mathrm{k}$ iterations are overlaid on input images. As highlighted by red boxes at the $90\mathrm{k}th$ iteration, MAL gets better attention maps which activate more parts in the bicycle image and suppress irrelevant parts in the cat image.
+
+
+
+
+
+
+
+
+#90k
+
+tion $\psi (\lambda)$ . We employ three kinds of indicator function. The first one is the constant function, which means keeping the same depression ratio in the whole training phase. We depress the top $50\%$ pixels in the attention map. The AP decreases a little from $35.46\%$ to $35.25\%$ , as MAL+D(constant) shown in Table 1c. The reason is that at the beginning of the training phase, the parameters of the network are randomly initialized, and the depression is meaningless for the adversarial learning. If a step function is utilized for $\psi (\lambda)$ , which increases the depression part from $0.0\%$ to $50.0\%$ by step, the performance is increased to $35.88\%$ , as MAL+D(step) shown in Table 1c. It illustrates that the detector should be optimized in a way before depression. The third one is the symmetric step function, which increases the depression part from $0.0\%$ to $50\%$ and then decreases it from $50\%$ to $0.0\%$ . It achieves the best performance of $36.18\%$ , as MAL+D(symmetric step) shown in Table 1c.
+
+Selection-Depression: The efficient combination of selection and depression is shown in Fig. 6. We compare the AP, $\mathrm{AP}_{75}$ , and $\mathrm{AP}_{50}$ . The AP is increased to $36.2\%$ with the depression component and to $38.4\%$ with the selection component. When the adversarial manner is taken between selection and the depression, the AP is further improved to $39.2\%$ , which is $3.7\%$ (35.5% vs. $39.2\%$ ) performance gain compared with the original RetinaNet. The $\mathrm{AP}_{75}$ and $\mathrm{AP}_{50}$ have the same trend of growth as the AP.
+
+Localization Improvement: In Fig. 7, we show an error factor analysis [2] of the localization results. It can be seen that poor localization (Loc) hinders the improvement of detection performance for objects of irregular shapes, i.e., tilted and slender objects. Compared with the baseline
+
+| Method | AP | \( AP_{50} \) | \( AP_{75} \) |
| MAL(k=40) | 38.27 | 56.67 | 40.81 |
| MAL(k=50) | 38.39 | 56.81 | 41.14 |
| MAL(k=60) | 38.08 | 56.11 | 40.18 |
+
+(a) Detection performance upon different anchor numbers $k$ in each anchor bag.
+
+| Method | AP | \( AP_{50} \) | \( AP_{75} \) |
| RetinaNet | 35.46 | 51.61 | 39.37 |
| MAL+S(all) | 38.14 | 56.81 | 40.81 |
| MAL+S(all-top1) | 38.39 | 56.81 | 41.14 |
+
+(b) Anchor selection strategy $\phi (\lambda)$ . "S" denotes "Selection". We compare selecting all instances and all-top1 instance.
+
+| Method | AP | \( AP_{50} \) | \( AP_{75} \) |
| MAL+D(constant) | 35.25 | 51.72 | 38.92 |
| MAL+D(step) | 35.88 | 52.34 | 39.63 |
| MAL+D(symmetric step) | 36.18 | 52.66 | 39.88 |
+
+(c) Depression strategy $\psi (\lambda)$ . "D" denotes "Depression". The constant function, step function, and symmetric step function are compared.
+
+
+Figure 6: Ablation studies of the anchor selection and depression modules on the COCO-minval dataset. On the metrics AP, $AP_{75}$ and $AP_{50}$ , MAL outperforms the baseline detector (RetinaNet) with significant margins. "S" and "D" respectively denote "Selection" and "Detection".
+
+| Method | Backbone | AP | \( AP_{50} \) | \( AP_{75} \) |
| RetinaNet [18] | ResNet-50 | 35.5 | 51.6 | 39.4 |
| MAL (ours) | ResNet-50 | 39.2 | 58.0 | 42.3 |
| RetinaNet [18] | ResNet-101 | 39.1 | 59.1 | 42.3 |
| MAL (ours) | ResNet-101 | 43.6 | 62.8 | 47.1 |
| RetinaNet [18] | ResNeXt-101 | 40.8 | 61.1 | 44.1 |
| MAL (ours) | ResNeXt-101 | 45.9 | 65.4 | 49.7 |
+
+Table 2: Performance comparison with the baseline method (single-scale results) on the MS-COCO test-dev dataset. MAL improves the baseline with significant margins.
+
+method, MAL significantly reduces the localization error (blue part in Fig. 7) of these objects. For instance, the area under curve (AUC) decreases from $15.7\%$ ( $45.5\% - 29.8\%$ ) to $11.6\%$ ( $58.7\% - 47.1\%$ ) for the toothbrush category and from $13.6\%$ ( $63.3\% - 49.7\%$ ) to $10.6\%$ ( $74.8\% - 64.2\%$ ) for the kite category.
+
+# 4.3. Comparison with State-of-the-Art Detectors
+
+Keeping the best setting in the ablation study, we compare the proposed MAL with the baseline, i.e., RetinaNet, in Table 2. For ResNet-50, MAL improves the baseline from $35.5\%$ to $39.2\%$ with $3.7\%$ improvement. For ResNet101 and ResNeXt-101, the improvements are $4.5\%$ and $4.1\%$ , respectively. It illustrates that MAL achieves reliable
+
+
+Table 1: Ablation study on the COCO minval dataset with the backbone ResNet50. We show the AP, $\mathrm{AP}_{50}$ , and $\mathrm{AP}_{75}$ (\%).
+
+
+(c) Baseline (label=kite)
+
+
+
+
+(d) MAL (label=kite)
+Figure 7: Quantitative evaluation of detection performance. Top row: performance comparison on toothbrush detection. Bottom row: performance summary for the kit category.
+
+gains with various of backbones.
+
+In Table 3, MAL is compared with the state-of-the-art detectors of two-stage methods and one-stage methods on the MS COCO test dataset, which are arranged in the increasing order of AP. For fair comparison, we re-scale the images such that their shorter sides are 800 pixels and the longer sides not more than 1333 pixels.
+
+For one-stage methods, we compare the state-of-the-art including YOLO [25, 26], SSD [21], FCOS [29], FreeAnchor [34] and CenterNet [5]. With the ResNet-101 backbone, MAL achieves $43.6\%$ AP of single-scale, which outperforms the anchor-free approach FCOS [29] by $2.1\%$ $(43.6\%$ vs. $41.5\%)$ . With the ResNeXt-101 backbone, MAL achieves $45.9\%$ AP of single scale, which achieves $1.1\%$ $(45.9\%$ vs. $44.8\%)$ gain compared with the recent FreeAnchor [34]. It also outperforms state-of-the-art CenterNet [5] by $1.0\%$ AP $(45.9\%$ vs. $44.9\%)$ . Note that CenterNet uses the Hourglass-104 backbone which has much more network parameters than ResNeXt-101. These are significant margins for the challenging object detection task. The multi-scale testing APs of MAL are further improved to $45.0\%$ and $47.0\%$ with ResNet-101 and
+
+| Method | Backbone | AP | \( AP_{50} \) | \( AP_{75} \) | \( AP_S \) | \( AP_M \) | \( AP_L \) |
| Two-stage methods |
| Faster R-CNN+++ [11] | ResNet-101 | 34.9 | 55.7 | 37.4 | 15.6 | 38.7 | 50.9 |
| Faster R-CNN w FPN [17] | ResNet-101 | 36.2 | 59.1 | 39.0 | 18.2 | 39.0 | 48.2 |
| Faster R-CNN w TDM [28] | Inception-ResNet-v2-TDM | 36.8 | 57.7 | 39.2 | 16.2 | 39.8 | 52.1 |
| Deformable R-FCN [4] | Inception-ResNet-v2 | 37.5 | 58.0 | 40.8 | 19.4 | 40.1 | 52.5 |
| Mask R-CNN [10] | ResNeXt-101 | 39.8 | 62.3 | 43.4 | 22.1 | 43.2 | 51.2 |
| IoU-Net [13] | ResNet-101 | 40.6 | 59.0 | - | - | - | - |
| Cascade RCNN [1] | ResNet-101 | 42.8 | 62.1 | 46.3 | 23.7 | 45.5 | 55.2 |
| Grid R-CNN w/ FPN [22] | ResNeXt-101 | 43.2 | 63.0 | 46.6 | 25.1 | 46.5 | 55.2 |
| One-stage methods |
| YOLOv2 [25] | DarkNet-19 | 21.6 | 44.0 | 19.2 | 5.0 | 22.4 | 35.5 |
| SSD513 [21] | ResNet-101 | 31.2 | 50.4 | 33.3 | 10.2 | 34.5 | 49.8 |
| YOLOv3 [26] | Darknet-53 | 33.0 | 57.9 | 34.4 | 18.3 | 35.4 | 41.9 |
| DSSD513 [21] | ResNet-101 | 33.2 | 53.3 | 35.2 | 13.0 | 35.4 | 51.1 |
| GA-RetinaNet [31] | ResNet-50 | 37.1 | 56.9 | 40.0 | 20.1 | 40.1 | 48.0 |
| MetaAnchor [32] | ResNet-50 | 37.9 | - | - | - | - | - |
| RetinaNet [18] | ResNet101 | 39.1 | 59.1 | 42.3 | 21.8 | 42.7 | 50.2 |
| CornerNet [15] | Hourglass-104 | 40.6 | 56.4 | 43.2 | 19.1 | 42.8 | 54.3 |
| RetinaNet [18] | ResNeXt-101 | 40.8 | 61.1 | 44.1 | 24.1 | 44.2 | 51.2 |
| FCOS [29] | ResNet-101 | 41.5 | 60.7 | 45.0 | 24.4 | 44.8 | 51.6 |
| FoveaBox [14] | ResNeXt-101 | 42.1 | 61.9 | 45.2 | 24.9 | 46.8 | 55.6 |
| AB+FSAF [36] | ResNeXt-101 | 42.9 | 63.8 | 46.3 | 26.6 | 46.2 | 52.7 |
| FreeAnchor [34] | ResNeXt-101 | 44.8 | 64.3 | 48.4 | 27.0 | 47.9 | 56.0 |
| CenterNet [5] | Hourglass-104 | 44.9 | 62.4 | 48.1 | 25.6 | 47.4 | 57.4 |
| ours |
| MAL | ResNet-101 | 43.6 | 62.8 | 47.1 | 25.0 | 46.9 | 55.8 |
| MAL | ResNeXt-101 | 45.9 | 65.4 | 49.7 | 27.8 | 49.1 | 57.8 |
| MAL (multi-scale) | ResNet-101 | 45.0 | 63.7 | 48.9 | 28.0 | 48.0 | 57.0 |
| MAL (multi-scale) | ResNeXt-101 | 47.0 | 66.1 | 51.2 | 30.2 | 50.1 | 58.9 |
+
+Table 3: Performance comparison with the state-of-the-art methods on the MS-COCO test-dev dataset (single-scale results unless explicitly stated). MAL achieves new state-of-the-art performance. As a one-stage detector, MAL also outperforms most two-stage detectors.
+
+# ResNeXt101, respectively.
+
+Table 3 also compares MAL with representative two-stage detectors including Faster-RCNN with FPN [17], Mask R-CNN [10], IoU-Net [13], and Grid R-CNN [22]. MAL outperforms most two-stage detectors. Particularly, it outperforms the recent Grid R-CNN detector by $2.7\%$ (45.9 vs. $43.2\%$ ) with the same backbone. As a one-stage detector with simpler implementation, MAL shows great potential to surpass two-stage detectors.
+
+# 5. Conclusion
+
+We have proposed an elegant and effective training approach, referred to as Multiple Anchor Learning (MAL), for visual object detection. By selecting anchors to jointly optimize bounding box classification and localization, MAL upgrades the standard hand-crafted anchor assignment mechanism to a learnable object-anchor matching mechanism. We proposed a simple selection-depression strategy to al
+
+leviate the sub-optimization issue of MAL. MAL improved object detection with significant margins compared with the baseline detector RetinaNet, achieves the best result on MSCOCO among single-stage methods, and outperforms many recent two-stage approaches. Such improvements root in not only the optimal selection of anchors but also implicit feature assembling based on a bag of anchors. Our work presents a promising direction to relax anchor design in learning a visual object detection.
+
+# Acknowledgement
+
+This work was partially supported by the Intelligence Advanced Research Projects Activity (IARPA) via Department of Interior/ Interior Business Center (DOI/IBC) contract number D17PC00340. This work was also supported in part by the National Natural Science Foundation of China under Grant 61836012 and 61671427.
+
+# References
+
+[1] Zhaowei Cai and Nuno Vasconcelos. Cascade r-cnn: Delving into high quality object detection. In IEEE CVPR, pages 6154-6162, 2018. 8
+[2] 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:1906.07155, 2019. 6
+[3] Jiwoong Choi, Dayoung Chun, Hyun Kim, and Hyuk-Jae Lee. Gaussian yolov3: An accurate and fast object detector using localization uncertainty for autonomous driving. In IEEE ICCV, pages 502-511, 2019. 3
+[4] Jifeng Dai, Haozhi Qi, Yuwen Xiong, Yi Li, Guodong Zhang, Han Hu, and Yichen Wei. Deformable convolutional networks. In IEEE ICCV, page 764-773, 2017. 8
+[5] Kaiwen Duan, Song Bai, Lingxi Xie, Honggang Qi, Qingming Huang, and Qi Tian. Centernet: Object detection with keypoint triplets. In IEEE CVPR, 2019. 3, 7, 8
+[6] Cheng-Yang Fu, Wei Liu, Ananth Ranga, Ambrish Tyagi, and Alexander C. Berg. DSSD: Deconvolutional single shot detector. In arXiv preprint arXiv:1701.06659. 2
+[7] Golnaz Ghiasi, Tsung-Yi Lin, and Quoc V. Le. NAS-FPN: learning scalable feature pyramid architecture for object detection. In IEEE CVPR, pages 7036-7045, 2019. 2
+[8] Ross B. Girshick. Fast R-CNN. In IEEE ICCV, pages 1440-1448, 2015. 1
+[9] Ross B. Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. In IEEE CVPR, pages 580-587, 2014. 1
+[10] Kaiming He, Georgia Gkioxari, Piotr Dolkar, and Ross B. Girshick. Mask R-CNN. In IEEE ICCV, pages 2980-2988, 2017. 8
+[11] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In IEEE CVPR, pages 770-778, 2016. 8
+[12] Zeyi Huang, Wei Ke, and Dong Huang. Improving object detection with inverted attention. arXiv:1903.12255, 2019. 5
+[13] Borui Jiang, Ruixuan Luo, Jiayuan Mao, Tete Xiao, and Yun-ting Jiang. Acquisition of localization confidence for accurate object detection. In ECCV, pages 784–799, 2018. 2, 8
+[14] Tao Kong, Fuchun Sun, Huaping Liu, Yuning Jiang, and Jianbo Shi. Foveabox: Beyond anchor-based object detector. arXiv:1904.03797, 2019.8
+[15] Hei Law and Jia Deng. Cornernet: Detecting objects as paired keypoints. In ECCV, pages 765-781, 2018. 3, 8
+[16] Yanghao Li, Yuntao Chen, Naiyan Wang, and Zhaoxiang Zhang. Scale-aware trident networks for object detection. In IEEE ICCV, pages 502-511, 2019. 2
+[17] Tsung-Yi Lin, Piotr Dólar, Ross B. Girshick, Kaiming He, Bharath Hariharan, and Serge J. Belongie. Feature pyramid
+
+networks for object detection. In IEEE CVPR, pages 936-944, 2017. 1, 2, 5, 8
+[18] Tsung-Yi Lin, Priya Goyal, Ross B. Girshick, Kaiming He, and Piotr Dollar. Focal loss for dense object detection. In IEEE ICCV, pages 2999-3007, 2017. 1, 2, 3, 4, 7, 8
+[19] Tsung-Yi Lin, Michael Maire, Serge J. Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dólár, and C. Lawrence Zitnick. Microsoft COCO: common objects in context. In ECCV, 2014. 6
+[20] Li Liu, Wanli Ouyang, XiaogangWang, Paul Fieguth, Jie Chen, Xinwang Liu, and Matti Pietikainen. Deep learning for generic object detection: A survey. Int. J. Comp. Vis., 2019. 2
+[21] Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott E. Reed, Cheng-Yang Fu, and Alexander C. Berg. SSD: single shot multibox detector. In ECCV, pages 21-37, 2016. 1, 2, 7, 8
+[22] Xin Lu, Buyu Li, Yuxin Yue, Quanquan Li, and Junjie Yan. Grid R-CNN. In IEEE CVPR, 2019. 8
+[23] Oded Maron and Tomás Lozano-Pérez. A framework for multiple-instance learning. In NeurIPS, pages 570-576, 1997. 2
+[24] Junran Peng, Ming Sun, Zhaoxiang Zhang, Tieniu Tan, and Junjie Yan. Pod: Practical object detection with scale-sensitive network. In IEEE ICCV, pages 6054-6063, 2019. 2
+[25] Joseph Redmon, Santosh Kumar Divvala, Ross B. Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In IEEE CVPR, pages 779-788, 2016. 1, 7, 8
+[26] Joseph Redmon and Ali Farhadi. YOLO9000: better, faster, stronger. In IEEE CVPR, pages 6517-6525, 2017. 2, 7, 8
+[27] Shaoqing Ren, Kaiming He, Ross B. Girshick, and Jian Sun. Faster R-CNN: towards real-time object detection with region proposal networks. In NeurIPS, pages 91-99, 2015. 1, 2
+[28] Abhinav Shrivastava, Rahul Sukthankar, Jitendra Malik, and Abhinav Gupta. Beyond skip connections: Top-down modulation for object detection. arXiv:1612.06851, 2016. 8
+[29] Zhi Tian, Chunhua Shen, Hao Chen, and Tong He. Fcos: Fully convolutional one-stage object detection. arXiv:1904.01355, 2019. 3, 7, 8
+[30] Fang Wan, Chang Liu, Wei Ke, Xiangyang Ji, Jianbin Jiao, and Qixiang Ye. C-MIL: continuation multiple instance learning for weakly supervised object detection. In IEEE CVPR, pages 2199-2208, 2019. 4
+[31] Jiaqi Wang, Kai Chen, Shuo Yang, Chen Change Loy, and Dahua Lin. Region proposal by guided anchoring. In IEEE CVPR, pages 2965-2974, 2019. 2, 8
+[32] Tong Yang, Xiangyu Zhang, Zeming Li, Wenqiang Zhang, and Jian Sun. Metaanchor: Learning to detect objects with customized anchors. In NeurIPS, pages 320-330, 2018. 2, 8
+[33] Ze Yang, Shaohui Liu, Han Hu, Liwei Wang, and Stephen Lin. Repoints: Point set representation for object detection. In IEEE ICCV, pages 502-511, 2019. 3
+[34] Xiaosong Zhang, Fang Wan, Chang Liu, Rongrong Ji, and Qixiang Ye. FreeAnchor: Learning to match anchors for visual object detection. In NeurIPS, 2019. 2, 6, 7, 8
+
+[35] Xingyi Zhou, Jiacheng Zhuo, and Philipp Krahenbuhl. Bottom-up object detection by grouping extreme and center points. In IEEE CVPR, pages 850-859, 2019. 3
+[36] Chenchen Zhu, Yihui He, and Marios Savvides. Feature selective anchor-free module for single-shot object detection. In IEEE CVPR, pages 840-849, 2019. 8
\ No newline at end of file
diff --git a/multipleanchorlearningforvisualobjectdetection/images.zip b/multipleanchorlearningforvisualobjectdetection/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..3731f2ff9ab6cd5630a173ecb8c82fde7935977d
--- /dev/null
+++ b/multipleanchorlearningforvisualobjectdetection/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a3dac263d2eb964f77002b0cbca9f6a1348dd24e382691efa5192422b4401a4c
+size 658349
diff --git a/multipleanchorlearningforvisualobjectdetection/layout.json b/multipleanchorlearningforvisualobjectdetection/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..f42972f76dd68455ef0ec91fe34daff03e71c711
--- /dev/null
+++ b/multipleanchorlearningforvisualobjectdetection/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4afd73a66e686a70aadae0d6a9f57a6d05c814b46e8467cab9e31885398c089b
+size 442232
diff --git a/multiscaledomainadversarialmultipleinstancecnnforcancersubtypeclassificationwithunannotatedhistopathologicalimages/562334c5-99e7-4640-a29b-df10a26e7edf_content_list.json b/multiscaledomainadversarialmultipleinstancecnnforcancersubtypeclassificationwithunannotatedhistopathologicalimages/562334c5-99e7-4640-a29b-df10a26e7edf_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..840acf03b955026a37cbe90fd58a5617cf2ca2d4
--- /dev/null
+++ b/multiscaledomainadversarialmultipleinstancecnnforcancersubtypeclassificationwithunannotatedhistopathologicalimages/562334c5-99e7-4640-a29b-df10a26e7edf_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fab6d7537bf37dd6218fca9c52415eabea6a961d7fd66b8eee2c8b6864ef3de2
+size 68122
diff --git a/multiscaledomainadversarialmultipleinstancecnnforcancersubtypeclassificationwithunannotatedhistopathologicalimages/562334c5-99e7-4640-a29b-df10a26e7edf_model.json b/multiscaledomainadversarialmultipleinstancecnnforcancersubtypeclassificationwithunannotatedhistopathologicalimages/562334c5-99e7-4640-a29b-df10a26e7edf_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..5c65f468462e1c01a3337d2ef8123ecc61e62073
--- /dev/null
+++ b/multiscaledomainadversarialmultipleinstancecnnforcancersubtypeclassificationwithunannotatedhistopathologicalimages/562334c5-99e7-4640-a29b-df10a26e7edf_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:34c9754d8982430e70f8d7ad6c1c40a3ff43a9f5e7d75e34cb81aecfecb9071a
+size 82030
diff --git a/multiscaledomainadversarialmultipleinstancecnnforcancersubtypeclassificationwithunannotatedhistopathologicalimages/562334c5-99e7-4640-a29b-df10a26e7edf_origin.pdf b/multiscaledomainadversarialmultipleinstancecnnforcancersubtypeclassificationwithunannotatedhistopathologicalimages/562334c5-99e7-4640-a29b-df10a26e7edf_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..84bb8c5e28f348b46cdad2f4b5901b9585ceb3f8
--- /dev/null
+++ b/multiscaledomainadversarialmultipleinstancecnnforcancersubtypeclassificationwithunannotatedhistopathologicalimages/562334c5-99e7-4640-a29b-df10a26e7edf_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8367f0e6e8af63a15db941d168035a97202d4e884e01f7856ba9e35073227e7e
+size 1259475
diff --git a/multiscaledomainadversarialmultipleinstancecnnforcancersubtypeclassificationwithunannotatedhistopathologicalimages/full.md b/multiscaledomainadversarialmultipleinstancecnnforcancersubtypeclassificationwithunannotatedhistopathologicalimages/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..b3ab733ab0630a1b03983d632f702340f3cd4154
--- /dev/null
+++ b/multiscaledomainadversarialmultipleinstancecnnforcancersubtypeclassificationwithunannotatedhistopathologicalimages/full.md
@@ -0,0 +1,272 @@
+# Multi-scale Domain-adversarial Multiple-instance CNN for Cancer Subtype Classification with Unannotated Histopathological Images
+
+Noriaki Hashimoto $^{1\dagger}$ , Daisuke Fukushima $^{1\dagger}$ , Ryoichi Koga $^{1}$ , Yusuke Takagi $^{1}$ , Kaho Ko $^{1}$ , Kei Kohno $^{2}$ , Masato Nakaguro $^{2}$ , Shigeo Nakamura $^{2}$ , Hidekata Hontani $^{1}$ , Ichiro Takeuchi $^{1,3*}$ , $^{1}$ Nagoya Institute of Technology, $^{2}$ Nagoya University Hospital, $^{3}$ RIKEN
+
+# Abstract
+
+We propose a new method for cancer subtype classification from histopathological images, which can automatically detect tumor-specific features in a given whole slide image (WSI). The cancer subtype should be classified by referring to a WSI, i.e., a large-sized image (typically 40,000 $\times$ 40,000 pixels) of an entire pathological tissue slide, which consists of cancer and non-cancer portions. One difficulty arises from the high cost associated with annotating tumor regions in WSIs. Furthermore, both global and local image features must be extracted from the WSI by changing the magnifications of the image. In addition, the image features should be stably detected against the differences of staining conditions among the hospitals/specimens. In this paper, we develop a new CNN-based cancer subtype classification method by effectively combining multiple-instance, domain adversarial, and multi-scale learning frameworks in order to overcome these practical difficulties. When the proposed method was applied to malignant lymphoma subtype classifications of 196 cases collected from multiple hospitals, the classification performance was significantly better than the standard CNN or other conventional methods, and the accuracy compared favorably with that of standard pathologists.
+
+# 1. Introduction
+
+In this study, we propose a novel convolutional neural network (CNN)-based method for cancer subtype classification by using digital pathological images of hematoxylin-and-eosin (H&E) stained tissue specimens as inputs. Since a whole slide image (WSI) obtained by digitizing an entire pathological tissue slide is too large to feed into a CNN [22, 31, 18, 8], it is common to extract a large number of patches from the WSI [9, 12, 27, 37, 19, 34, 5, 38, 2, 17]. If it can be known whether each patch is a tumor region or
+
+not, the CNN can be trained by using each patch as a labeled training instance. However, the cost to annotate each of a large number of patch labels is too high. When patch label annotation is not available, cancer subtype classification tasks are challenging in the following three respects.
+
+The first difficulty is that tumor and non-tumor regions are mixed in a WSI. Therefore, when pathologists actually conduct subtype classification, it is necessary to find out which part of the slide contains the tumor region, and perform subtype classification based on the features of the tumor region. The second practical difficulty is that staining conditions vary greatly depending on the specimen conditions and the hospital from which the specimen was taken. Therefore, pathologists perform tumor region identification and subtype classification by carefully considering the different staining conditions. The last difficulty is that different features of tissues are observed when the magnification of the pathological image is changed. Pathologists conduct diagnosis by changing the magnification of a microscope repeatedly to find out various features of the tissues.
+
+In order to develop a practical CNN-based subtype classification system, our main idea is to introduce mechanisms that mimic these pathologist's actual practices. To address the above three difficulties simultaneously, we effectively combine multiple instance learning (MIL), domain adversarial (DA) normalization, and multi-scale (MS) learning techniques. Although each of these techniques has been studied in the literatures, we demonstrate that their effective and careful combination enables us to develop a CNN-based system that performs significantly better than the standard CNN or other conventional methods.
+
+We applied the proposed method to malignant lymphoma subtype classifications of 196 cases collected from 80 hospitals, and demonstrated that the accuracy of the proposed method compared favorably with standard pathologists. It was also confirmed that the proposed method not only performed better than conventional methods, but also performed subtype classification in a similar way to pathologists in the sense that the method correctly paid attention to tumor regions in images of various different scales.
+
+The main contributions of our study are as follows. First, we developed a novel CNN-based digital pathology image classification method by effectively combining MIL, DA and MS approaches. Second, we applied the proposed method to malignant lymphoma classification tasks with 196 WSIs of H&E stained histological tissue slides, collected for the purpose of consultation by an expert pathologist on malignant lymphoma. Finally, as a result of confirmation by immunostaining in the above malignant lymphoma subtype classification tasks, it was confirmed that the proposed method performed subtype classification by correctly paying attention to the true tumor regions from images at various different scales of magnification.
+
+# 2. Preliminaries
+
+Here we present our problem setup and three related techniques that are incorporated into the proposed method in the next section. In this paper, we use the following notations. For any natural number $N$ , we define $[N] := \{1, \ldots, N\}$ . We call a vector for which the elements are non-negative and sum-to-one a probability vector. Given two probability vectors $p, q$ , $\mathcal{L}(p, q)$ represents their cross entropy.
+
+# 2.1. Problem setup
+
+Consider a training set for a binary pathological image classification problem obtained from $N$ patients. We denote the training set as $\{(\mathbb{X}_n,\mathbb{Y}_n)\}_{n = 1}^N$ , where $\mathbb{X}_n$ is the whole slide image (WSI) and $\mathbb{Y}_n$ is the two-dimensional class label one-hot vector of the $n^{\mathrm{th}}$ patient for $n\in [N]$ . We also define a set of $N$ -dimensional vectors $\{\mathbb{D}_n\}_{n = 1}^N$ for which the $n^{\mathrm{th}}$ element is one and the others are zero. Since each WSI is too huge to directly feed into a CNN, a patch-based approach is usually employed. In this paper, we consider patches with $224\times 224$ pixels.
+
+In cancer pathology, since tumor and non-tumor regions are mixed, not all patches from a positive-class slide contain positive class-specific (tumor) information. Thus, we borrow an idea from multiple instance learning (MIL) (the detail of MIL will be described in § 2.2). Specifically, we consider a group of patches, and assume that each group from a positive class slide contains at least a few patches having positive class-specific information, whereas each group from a negative class slide does not contain any patches having positive-class specific information. Furthermore, when pathologists diagnose patients, they observe the glass slide at multiple different scales. To mimic this, we consider patches with multiple different scales.
+
+We denote the groups of patches at different scales as follows. We use the notation $s \in [S]$ to indicate the index of scales (e.g., if scales 10x and 20x are considered, $S = 2$ ). The set of groups (called bags in MIL framework) in the $n^{\text{th}}$ WSI is denoted by $\mathcal{B}_n$ for $n \in [N]$ . Then, each group
+
+(bag) $b \in \mathcal{B}_n$ is characterized by a set of patches (called instances in the MIL framework) $\mathcal{T}_b^{(s)}$ for $b \in \mathcal{B}_n$ and $s \in [S]$ , where the superscript $(s)$ indicates that these patches are taken from scale $s$ . Figure 1 illustrates the notions of a WSI, groups (bags), patches (instances), and scales.
+
+# 2.2. Multiple instance learning (MIL)
+
+Multiple-instance learning (MIL) is a type of weakly supervised learning problem, where instance labels are not observed but labels for groups of instances called bags are observed. In the binary classification setting, a positive label is assigned to a bag if the bag contains at least one positive instance, while a negative label is assigned to a bag if the bag only contains negative instances. Figure 2 illustrates MIL for a binary classification problem. Various models and learning algorithms for MIL have been studied in the literatures [14, 26, 40, 1, 24, 7, 36].
+
+MIL has been successfully applied to classification problems with histopathological images [10, 13, 20, 11, 32, 6]. For example, for binary classification of malignant and benign patients, WSIs for malignant patients contain both malignant and benign patches, while WSIs for benign patients only contain benign patches. If we regard the WSIs for malignant/benign patients as positive/negative bags and malignant/benign patches as positive/negative instances, respectively, the above binary classification problem can be interpreted as an MIL problem. The MIL framework is useful in histopathological image classification when no annotation is made for each extracted patch. Our main idea in this paper is to use MIL framework in order to automatically identify multiple regions of interest at multiple different scales.
+
+# 2.3. Domain-adversarial neural network
+
+Slide-wise differences in staining conditions, as illustrated in Fig. 3, highly degrade the classification accuracy. To overcome this difficulty, appropriate pre-processing such as color normalization [30, 25, 21, 4, 39] or color augmentation [23, 29] would be required. Color normalization adjusts the color of input images to the target color distribution. Color augmentation suppresses the effect of outlying colors by generating augmented images while slightly changing the color of an original image.
+
+Domain-adversarial (DA) [15] training has been proposed to ignore the differences among training instances that do not contribute to the classification task. In the histopathological image classification setting, Lafarge et al. [23] introduced a DA training approach, and demonstrated that it was superior to color augmentation, stain normalization, and their combination. In the proposed method, we use a DA training approach within the MIL framework for histopathological image classification by regarding each patient as an individual domain so that the staining condition of each patient's slide can effectively be ignored.
+
+
+Figure 1: A brief illustration of the notions of a WSI, bags, instances (patches), and scales. A large number of $224 \times 224$ -pixel image patches are extracted from an entire WSI at multiple different scales. In the problem setup considered in this paper, instance class labels are not observed, but the class labels for groups of instances called bags are observed. It is important to note that each bag contains patches taken at multiple different scales. This enables us to detect multiple regions of interest from multiple different scale images.
+
+
+Figure 2: Explanation of MIL. Positive bags are generated from WSIs with positive subtype labels and negative bags are generated from WSIs with negative subtype labels. Only the image patches of class-specific regions, such as tumors in positive-class WSIs, are regarded as positive instances.
+
+# 2.4. Multi-scale pathology image analysis
+
+Pathologists observe different features at different scales of magnification. For example, global tissue structure and detailed shapes of nuclei can be seen at low and high scales of magnification, respectively. Although most of the existing studies on histopathological image analysis use a fixed single scale, some studies use multiple scales [3, 16, 35, 33].
+
+When multi-scale images are available in histopathological image analysis, a common approach is to use them hierarchically from low resolution to high resolution. Namely, a low-resolution image is first used to detect regions of interest, and then high-resolution images of the detected regions
+
+
+Figure 3: Entire WSIs of H&E stained tissues prepared at different facilities. Variety in staining conditions can be seen among different staining protocols.
+
+are used for further detailed analysis. Another approach is to automatically select the appropriate scale from the image itself. For example, Tokunaga et al. [33] employed a mixture-of-expert network, where each expert was trained with images of different scale, and the gating network selected which expert should be used for segmentation.
+
+In this study, we noted that expert pathologists conduct
+
+diagnosis by changing the magnification of a microscope repeatedly to find out various features of the tissues. This indicates that the analysis of multiple regions at multiple scales plays a significant role in subtype classification. In order to mimic this pathologists' practice, we propose a novel method to use multiple patches at multiple different scales within the MIL framework. In contrast to the hierarchical or selective usage of multi-scale images, our approach uses multi-scale images simultaneously.
+
+# 3. Proposed method
+
+In the proposed method, the subtype of each patient is predicted based on the H&E stained WSI by summarizing the predicted class labels of the bags taken from the WSI. Specifically, given a test WSI $\mathbb{X}_n$ , the class label probability is simply predicted as $P(\hat{\mathbb{Y}}_n = 1) = p_1 / (p_1 + p_0)$ , where
+
+$$
+p _ {1} = \exp \left(\frac {1}{| \mathcal {B} _ {n} |} \sum_ {b \in \mathcal {B} _ {n}} \log P (\hat {Y _ {b}} = 1)\right),
+$$
+
+$$
+p _ {0} = \exp \left(\frac {1}{| \mathcal {B} _ {n} |} \sum_ {b \in \mathcal {B} _ {n}} \log P (\hat {Y _ {b}} = 0)\right).
+$$
+
+Here, $P(\hat{Y}_b = 1)$ and $P(\hat{Y}_b = 0)$ are the class label probabilities of the bag $b \in \mathcal{B}_n$ .
+
+The bag's class label probability is obtained as the output of the proposed CNN network, as depicted in Fig. 4. It consists of the following three building blocks. Feature extractor $G_{\mathrm{f}}: \boldsymbol{x} \mapsto \boldsymbol{h}$ is a CNN which maps a $224 \times 224$ -pixel image $\boldsymbol{x}$ into a $Q$ -dimensional feature vector $\boldsymbol{h}$ . It is denoted as $\boldsymbol{h} = G_{\mathrm{f}}(\boldsymbol{x}; \theta_{\mathrm{f}})$ where $\theta_{\mathrm{f}}$ is the set of trainable parameters. Bag class label predictor $G_{\mathrm{y}}: \{\pmb{h}_i\}_{i \in \mathcal{I}_b} \mapsto P(\hat{Y}_b)$ is an NN with an attention mechanism [20] that maps the set of feature vectors in a bag $b$ into the probabilities of the bag class label $\hat{Y}_b$ . $G_{\mathrm{y}}(\cdot; \theta_{\mathrm{y}})$ is characterized by a set of trainable parameters $\theta_{\mathrm{y}}$ , where $(\boldsymbol{V}, \boldsymbol{w}) \in \theta_{\mathrm{y}}$ are the sets of parameters for the attention network. Using $Q'$ -dimensional feature vectors $\{\pmb{h}_i'\}_{i \in \mathcal{I}_b}$ generated through the fully connected layer, the attention weighted feature vector $z \in \mathbb{R}^{Q'}$ is obtained as $z = \sum_{i \in \mathcal{I}_b} a_i h_i'$ , where each attention is defined as
+
+$$
+a _ {i} = \frac {\exp \left(\boldsymbol {w} ^ {\top} \tanh (\boldsymbol {V h} _ {i} ^ {\prime})\right)}{\sum_ {j \in \mathcal {I} _ {b}} \exp \left(\boldsymbol {w} ^ {\top} \tanh (\boldsymbol {V h} _ {j} ^ {\prime})\right)}, i \in \mathcal {I} _ {b}.
+$$
+
+Domain predictor $G_{\mathrm{d}}: \pmb{h} \mapsto P(\hat{d})$ is a simple NN that maps a feature vector $\pmb{h}$ into domain label probabilities $P(\hat{d})$ . It is denoted as $G_{\mathrm{d}}(\pmb{h}; \theta_{\mathrm{d}})$ , where $\theta_{\mathrm{d}}$ is the set of trainable parameters. Training of the proposed CNN network is conducted in two stages. In the first stage, a single-scale DA-MIL network (the top one in Fig. 4) is trained to obtain the feature extractor $G_{\mathrm{f}}(\cdot; \theta_{\mathrm{f}}^{(s)})$ for each scale $s \in [S]$ . Then, in
+
+the second stage, a multi-scale DA-MIL network (the bottom one in Fig. 4) is trained by plugging the $S$ trained feature extractors into the network.
+
+# 3.1. Stage1: single-scale learning
+
+In stage 1, a single-scale DA-MIL network is trained for each scale $s \in [S]$ to predict the bag class labels where each bag only contains patches from the image of scale $s$ . Here we modified the DA regularization [15] in order to apply it to only image patches with lower attention weights of MIL. The training task of a single-scale DA-MIL network is formulated as the following minimization problem:
+
+$$
+\begin{array}{l} \left(\hat {\theta} _ {\mathrm {f}} ^ {(s)}, \hat {\theta} _ {\mathrm {y}} ^ {(s)}, \hat {\theta} _ {\mathrm {d}} ^ {(s)}\right) \leftarrow \arg \min _ {\theta_ {\mathrm {f}} ^ {(s)}, \theta_ {\mathrm {y}} ^ {(s)}, \theta_ {\mathrm {d}} ^ {(s)}} \sum_ {n = 1} ^ {N} \sum_ {b \in \mathcal {B} _ {n}} \mathcal {L} (\mathbb {Y} _ {n}, P (\hat {Y} _ {b} ^ {(s)})) \\ - \lambda \sum_ {n = 1} ^ {N} \sum_ {b \in \mathcal {B} _ {n}} \frac {1}{\left| \mathcal {I} _ {b} ^ {(s)} \right|} \sum_ {i \in \mathcal {I} _ {b} ^ {(s)}} \beta_ {i} \mathcal {L} \left(\mathbb {D} _ {n}, G _ {\mathrm {d}} \left(\boldsymbol {h} _ {i}; \theta_ {\mathrm {d}} ^ {(s)}\right)\right), \tag {1} \\ \end{array}
+$$
+
+where
+
+$$
+\begin{array}{l} P (\hat {Y} _ {b} ^ {(s)}) = G _ {\mathrm {y}} \left(\{G _ {\mathrm {f}} (\boldsymbol {x} _ {i}; \theta_ {\mathrm {f}} ^ {(s)}) \} _ {i \in \mathcal {I} _ {b} ^ {(s)}}; \theta_ {\mathrm {y}} ^ {(s)}\right), \\ \beta_ {i} = \max _ {a _ {j}} \{a _ {j} | j \in \mathcal {I} _ {b} ^ {(s)} \} - a _ {i}. \\ \end{array}
+$$
+
+In eq. (1), the first term is the loss function for bag class label prediction, while the second term is the penalty function for DA regularization, which is weighted by attentions for each instance. The loss function is simply defined by the cross entropy between the true class label and predicted class label probability. Here, the bag class label is predicted by only using instances for which the attentions are large. The DA regularization term is also defined by the cross entropy between the domain label and the predicted domain label probability. By penalizing the domain prediction capability using DA regularization, the feature extractor $G_{\mathrm{f}}(\cdot;\theta_{\mathrm{f}}^{(s)})$ for each $s \in [S]$ is trained so that the difference in staining conditions can be ignored.
+
+# 3.2. Stage2: multi-scale learning
+
+In stage 2, a multi-scale DA-MIL network is trained to predict the bag class label where each bag contains instances (patches) across different scales. The bag class label is predicted as
+
+$$
+P (\hat {Y} _ {b}) = G _ {\mathrm {y}} \left(\{\{G _ {\mathrm {f}} (\pmb {x} _ {i}; \hat {\theta} _ {\mathrm {f}} ^ {(s)}) \} _ {i \in \mathcal {I} _ {b} ^ {(s)}} \} _ {s = 1} ^ {S}; \theta_ {\mathrm {y}} ^ {(\mathrm {a l l})}\right),
+$$
+
+where the set of feature extractors $G_{\mathrm{f}}(\cdot ;\hat{\theta}_{\mathrm{f}}^{(s)})$ , $s\in [S]$ which were already trained in the first stage, are plugged in. The training of the set of parameters $\theta_{\mathrm{y}}^{\mathrm{(all)}}$ is formulated as the following minimization problem:
+
+$$
+\hat {\theta} _ {y} ^ {(\text {a l l})} \leftarrow \arg \min _ {\theta_ {y} ^ {(\text {a l l})}} \sum_ {n = 1} ^ {N} \sum_ {b \in \mathcal {B} _ {n}} \mathcal {L} \left(\mathbb {Y} _ {n}, P (\hat {Y} _ {b})\right). \tag {2}
+$$
+
+
+DA-MIL
+
+
+MS-DA-MIL
+Figure 4: An illustration of the structure of the proposed network. Single scale DA-MIL networks are trained in stage 1 for each scale $s \in [S]$ (top). A multi-scale DA-MIL (MS-DA-MIL) network is trained in stage 2 (bottom). Loss function $\mathcal{L}_{\mathrm{bag}}$ and $\mathcal{L}_{\mathrm{d}}$ are the loss functions for the predicted bag labels and domain labels in eq. (1). In MS-DA-MIL, feature extractors $G_{\mathrm{f}}^{(s)}$ , which were domain-adversarially trained with DA-MIL are employed to generate feature vectors from the instances in bags $\mathcal{I}_b^{(s)}$ and those feature vectors for all $S$ scales are aggregated for calculating attention weights.
+
+# 3.3. Algorithm
+
+The algorithm of our proposed method is described in Algorithm 1. Each parameter update is conducted by using the instances (patches) in each bag as a mini-batch.
+
+# 4. Experiments
+
+Dataset Our experimental database of malignant lymphoma was composed of 196 clinical cases, which represented difficult lymphoma cases from 80 different institutions, and had been sent to an expert pathologist for diag
+
+nostic consultation. As malignant lymphoma has a lot of subtypes, in addition to observing an H&E stained tissue, serial sections from the same patient's sample are immunohistochemically stained to confirm its expression patterns for final decision making. It is expected that predicting various subtypes of malignant lymphoma is quite difficult by analyzing only the H&E stained tissue images and its difficulty was not revealed. We use the cases with only five typical types of malignant lymphoma: diffuse large B-cell lymphoma (DLBCL), angioimmunoblastic T-cell lymphoma (AITL), classical Hodgkin's lymphoma mixed cellu
+
+
+
+
+
+
+
+
+Figure 5: Visualization of attention weights in DA-MIL and corresponding IHC stained tissues: The left column is original H&E stained tissue images, the center column is visualized attention weights and the right column is CD20 stained tissue images of the same case. Attention weights in each bag are normalized between 0 to 1, and heat map from blue to red is assigned to between 0 to 1. The attention-weight map in the upper row is generated from $10\mathrm{x}$ WSI, and the lower one is from $20\mathrm{x}$ WSI. We can confirm that the red regions in the visualization results correspond to the stained regions with brown in CD20 IHC stained tissue specimens.
+
+
+
+
+
+larity (HLMC) and classical Hodgkin's lymphoma nodular sclerosis (HLNS). In addition, DLBCL is classified into two subtypes; germinal center B-cell (GCB) and non-germinal center B-cell (non-GCB) types. In this experiment, as a first step, we perform two-class classification, which discriminates DLBCL consisting both GCB and non-GCB types from the other three non-DLBCL classes including AITL, HLMC and HLNS. In applying our proposed method to this classification problem, DLBCL and non-DLBCL are respectively defined as positive and negative classes, as explained in the previous sections. Here, the positive instance means that an instance has the capability to discriminate DLBCL from non-DLBCL, and it should be in tumor regions of DLBCL cases because non-tumor regions in DLBCL are expected to have similar features to those in nontumor regions in non-DLBCL cases. Hence, a bag indicates a set of image patches extracted from a WSI, where positive instances represent images from tumor regions in DLBCL and negative instances represent images from non-tumor regions in DLBCL and all patches in non-DLBCL. As the total number of DLBCL cases was 98, the same number of non-DLBCL cases were selected from AITL, HLMC and HLNS cases. All glass slides of the H&E stained tissue specimens collected as mentioned above were scanned with an Aperio ScanScopeXT (Leica Biosystems, Germany) at $20\mathrm{x}$ magnification $(0.50\mathrm{um / pixel})$
+
+Experimental setup In the experiments, we used 10x (1.0 um/pixel) and 20x-magnification (0.50 um/pixel) images,
+
+that is, the scale parameter $S$ was set to 2. We split the dataset mentioned above into $60\%$ training data, $20\%$ validation data and $20\%$ test data, with consideration of patient-wise separation. In order to generate bags, 100 of $224 \times 224$ -pixel image patches were randomly extracted from tissue regions in a WSI for each scale. The maximum number of bags generated from each WSI was determined as 50. In extracting image patches for multi-scale, the same regions were selected for each scale as shown in Fig. 1, and we obtained a total of 200 image patches of 100 regions for each bag in our experiment. In the case where the total number of image patches included in a WSI was less than 3,000, data augmentation was performed by rotating image patches by 90, 180 and 270 degrees. In the training step, the network trained a bag and renewed parameters for one iteration, and training was performed in 10 epochs where image patches in bags were shuffled for each training epoch. The domain-regularization parameter $\lambda$ was determined for each epoch as $\lambda = \frac{2}{1 + \exp(-10r)} - 1$ , with $r = \frac{\text{Current epoch } m}{\text{Total epochs } M} \times \alpha$ , where $\alpha$ is a hyperparameter, where the best parameter $\alpha$ that showed the highest accuracy on the validation data was set for testing. In this experiment, VGG16 [31] pre-trained with ImageNet was employed as the feature extractor $G_{\mathrm{f}}(\cdot; \theta_{\mathrm{f}})$ and the dimension of the output features was $Q = 25,088$ . In the label predictor $G_{\mathrm{y}}(\cdot; \theta_{\mathrm{y}})$ , a 25,088-dimensional vector was converted into a 512-dimensional vector by the fully connected layer, before the attention mechanism, namely $Q'$ was set to 512. In the attention network, the numbers of input and hidden units were 512 and 128, respectively. For
+
+Algorithm 1 Parameter update in MS-DA-MIL training.
+Input: training set $\{(\mathbb{X}_n,\mathbb{Y}_n)\}_{n = 1}^N$ with domain label $\{\mathbb{D}_n\}_{n = 1}^N$ , learning rate $\eta$ , domain regularization parameter $\lambda$ , train epochs $M$ $\%$ stage 1: train feature extractor $G_{\mathrm{f}}(\cdot ;\theta_{\mathrm{f}}^{(s)})$ , class predictor $G_{\mathrm{y}}(\cdot ;\theta_{\mathrm{y}}^{(s)})$ , domain predictor $G_{\mathrm{d}}(\cdot ;\theta_{\mathrm{d}}^{(s)})$
+for $m = 1$ to $M$ do
+for $s = 1$ to $S$ do
+for $n = 1$ to $N$ do
+for $b = 1$ to $|\mathcal{B}_n|$ do
+ $\{h_i\}_{i\in \mathcal{I}_b^{(s)}}\gets \{G_{\mathrm{f}}(\pmb {x}_i;\theta_{\mathrm{f}}^{(s)})\}_{i\in \mathcal{I}_b^{(s)}}$ $\mathcal{L}_{\mathrm{bag}}\gets \mathcal{L}\left(\mathbb{Y}_n,G_{\mathrm{y}}(\{h_i\}_{i\in \mathcal{I}_b^{(s)}};\theta_{\mathrm{y}}^{(s)})\right)$ $\mathcal{L}_{\mathrm{d}}\gets \frac{1}{|\mathcal{I}_b^{(s)}|}\sum_{i\in \mathcal{I}_b^{(s)}}\mathcal{L}\left(\mathbb{D}_n,G_{\mathrm{d}}(\pmb {h}_i;\theta_{\mathrm{d}}^{(s)})\right)$ $\mathcal{L}'_{\mathrm{d}}\gets \frac{1}{|\mathcal{I}_b^{(s)}|}\sum_{i\in \mathcal{I}_b^{(s)}}\beta_i\mathcal{L}\left(\mathbb{D}_n,G_{\mathrm{d}}(\pmb {h}_i;\theta_{\mathrm{d}}^{(s)})\right)$ $\beta_{i} = \max_{a_{j}}\{a_{j}|j\in \mathcal{I}_{b}^{(s)}\} -a_{i}$ $\theta_{\mathrm{y}}^{(s)}\gets \theta_{\mathrm{y}}^{(s)} - \eta \frac{\partial L_{\mathrm{bag}}}{\partial\theta_{\mathrm{y}}^{(s)}}$ $\theta_{\mathrm{d}}^{(s)}\gets \theta_{\mathrm{d}}^{(s)} - \eta \lambda \frac{\partial L_{\mathrm{d}}}{\partial\theta_{\mathrm{d}}^{(s)}}$ $\theta_{\mathrm{f}}^{(s)}\gets \theta_{\mathrm{f}}^{(s)} - \eta \left(\frac{\partial L_{\mathrm{bag}}}{\partial\theta_{\mathrm{f}}^{(s)}} -\lambda \frac{\partial L_{\mathrm{d}}^{\prime}}{\partial\theta_{\mathrm{f}}^{(s)}}\right)$
+end for
+end for
+end for
+end for
+ $\%$ stage 2: train class predictor $G_{\mathrm{y}}(\cdot ;\theta_{\mathrm{y}}^{(\mathrm{all})})$
+for $m = 1$ to $M$ do
+for $n = 1$ to $N$ do
+for $b = 1$ to $|\mathcal{B}_n|$ do
+ $L_{\mathrm{all}}\gets \mathcal{L}(\mathbb{Y}_n,P(\hat{Y}_b))$ $P(\hat{Y}_b) = G_{\mathrm{y}}(\{\{G_{\mathrm{f}}(\pmb {x}_i;\theta_{\mathrm{f}}^{(s)})\}_{i\in \mathcal{I}_b^{(s)}}\}_{s = 1}^S;\theta_{\mathrm{y}}^{(\mathrm{all})})$ $\theta_{\mathrm{y}}^{(\mathrm{all})}\gets \theta_{\mathrm{y}}^{(\mathrm{all})} - \eta \frac{\partial L_{\mathrm{all}}}{\partial\theta_{\mathrm{y}}^{(\mathrm{all})}}$
+end for
+end for
+end for
+Output: neural network. $\{\{\theta_{\mathrm{f}}^{(s)}\}_{s = 1}^S,\theta_{\mathrm{y}}^{(\mathrm{all})}\}$
+
+the domain predictor $G_{\mathrm{d}}(\cdot ;\theta_{\mathrm{d}})$ , a 25,088-dimensional vector was reduced to a 1,024-dimensional vector by the fully connected layer, and a domain label was predicted from it. The variety of staining conditions could have occurred even if the slides were produced at the same institution, so we regarded each patient as an individual domain in DA learning, and assigned different domain labels to each slide. Parameters in the network were optimized by SGD momentum [28], where the learning rate and momentum were set to 0.0001 and 0.9, respectively.
+
+Results Table 1 shows the classification results of each method, where the values are the means and standard errors determined by 5-fold cross validation. In the table, "patch-based" indicates a CNN classification method whereby the same corresponding label to a case was given for all image patches extracted from the WSI, and where pre-trained VGG16 was used as a CNN model. The output probability $P_{\mathrm{patch}}$ of the patch-based method is defined as $P_{\mathrm{patch}}(\hat{\mathbb{Y}}_n = 1) = p_{1\_ \mathrm{patch}} / (p_{1\_ \mathrm{patch}} + p_{0\_ \mathrm{patch}})$ , where
+
+$$
+p _ {\mathrm {1 - p a t c h}} = \exp \left(\frac {1}{| \mathcal {I} _ {n} |} \sum_ {i \in \mathcal {I} _ {n}} \log P (\hat {y} _ {i} = 1)\right),
+$$
+
+$$
+p _ {0 \mathrm {- p a t c h}} = \exp \left(\frac {1}{| \mathcal {I} _ {n} |} \sum_ {i \in \mathcal {I} _ {n}} \log P (\hat {y} _ {i} = 0)\right).
+$$
+
+Here, $\mathcal{I}_n$ is a set of image patches extracted from the $n^{\mathrm{th}}$ WSI, and $P(\hat{y}_i = 1)$ is the probability for an input image patch $\pmb{x}_i$ to be classified to DLBCL. The maximum number of $224\times 224$ -pixel image patches extracted from each WSI was set to 5,000, as the case had instances from the same number of regions. DA-MIL in the table has the same meaning as MS-DA-MIL with scale parameter $S = 1$ . We confirmed that MS-DA-MIL showed the highest classification accuracy compared with those of patch-based and attentionMIL. In particular, it was confirmed that the classification accuracy of MS-DA-MIL was higher than that of DA-MIL, which could provide us with encouragement to make use of multi-scale input for pathology image classification.
+
+In addition, we visualized the distribution of attention weights, which were calculated for correctly classified cases into DLBCL. Figure 5 shows the images of an H&E stained tissue, corresponding attention-weight map and CD20 immunohistochemically stained tissue specimen for a serial section of the same case. For the attention-weight maps in the middle columns of Fig. 5, attention weights were normalized between 0 to 1 in each bag, and blue to red (0 to 1) heat map was generated. Thus, red regions in the attention-weight maps represent the highest contribution for classification in each bag. Because CD20 is an IHC staining that neoplastic B-cells mainly react and shows strong positivity, we can visually confirm the validity of the attention weights of the proposed DA-MIL. In CD20 stained images, positive regions are stained in brown by diaminobenzidine and negative regions are stained in blue by hematoxylin. In comparison to those images, we can see that the attention weights showed higher values in the CD20-positive regions. On the other hand, CD20-negative regions showed low values in the attention-weight maps, and image patches in such regions did not contribute to classification. According to the above results, we showed the appropriate assignment of attention weights. Figure 6 shows the images of an H&E image and its attention-weight maps calculated by MS-DA
+
+
+
+
+
+
+
+
+Figure 6: Visualization of attention weights in MS-DA-MIL inputs: The left column is the original H&E stained tissue images, and the center and right-hand columns are the visualized attention weights for $10\mathrm{x}$ and $20\mathrm{x}$ by MS-DA-MIL, respectively. We can confirm that one scale had a higher contribution for classification than the other, which means that class-specific features exist at different magnification scales depending on the individual cases.
+
+
+
+
+
+Table 1: Comparison of the validation measurement among conventional and proposed methods at each magnification scale, where each result shows the mean value and standard error determined by 5-fold cross validation. Patch-based, attention-based MIL, DA-MIL and MS-DA-MIL were compared, and our proposed method MS-DA-MIL showed the highest accuracy.
+
+| Method | Magnification | Accuracy | Precision | Recall |
| Patch-based | 10x | 0.740±0.030 | 0.812±0.054 | 0.641±0.049 |
| Patch-based | 20x | 0.754±0.023 | 0.799±0.033 | 0.692±0.057 |
| Attention-based MIL | 10x | 0.811±0.018 | 0.860±0.046 | 0.772±0.071 |
| Attention-based MIL | 20x | 0.826±0.022 | 0.909±0.044 | 0.742±0.061 |
| DA-MIL (ours) | 10x | 0.836±0.012 | 0.927±0.037 | 0.743±0.046 |
| DA-MIL (ours) | 20x | 0.857±0.014 | 0.927±0.039 | 0.793±0.061 |
| MS-DA-MIL (ours) | 10x, 20x | 0.871±0.028 | 0.927±0.025 | 0.813±0.066 |
+
+MIL. Similarly to DA-MIL, attention weights in each bag were normalized from 0 to 1, and attention-weight maps for each scale were generated with heat map. As we can see in Fig. 6, one of them has high attention weights in the $10\mathrm{x}$ image, while the other shows high attention weights in the $20\mathrm{x}$ image. Therefore, there exists appropriate magnification to obtain class-specific features depending on the cases, and MS-DA-MIL could consider this and show the effectiveness of multi-scale input analysis.
+
+# 5. Conclusion
+
+We proposed a new CNN for cancer subtype classification from unannotated histopathological images which effectively combines MI, DA, and MS learning frameworks
+
+in order to mimic the actual diagnosis process of pathologists. When the proposed method was applied to malignant lymphoma subtype classifications of 196 cases, the performance was significantly better than that of standard CNN or other conventional methods, and the accuracy compared favorably with that of standard pathologists.
+
+# Acknowledgment
+
+This work was partially supported by Hori Sciences and Arts Foundation to N.H., S.N., H.H. and I.T., MEXT KAKENHI 26108003 to H.H., 17H00758, 16H06538 to I.T., JST CREST JPMJCR1502 to I.T. and RIKEN Center for Advanced Intelligence Project to I.T.
+
+# References
+
+[1] S. Andrews, I. Tsochantaridis, and T. Hofmann. Support vector machines for multiple-instance learning. In Advances in neural information processing systems, pages 577-584, 2003. 2
+[2] P. Bandi, O. Geessink, Q. Manson, M. Van Dijk, M. Balkenhol, M. Hermsen, B. E. Bejnordi, B. Lee, K. Paeng, A. Zhong, et al. From detection of individual metastases to classification of lymph node status at the patient level: the camelyon17 challenge. IEEE transactions on medical imaging, 38(2):550-560, 2018. 1
+[3] B. E. Bejnordi, G. Litjens, M. Hermsen, N. Karssemeijer, and J. A. van der Laak. A multi-scale superpixel classification approach to the detection of regions of interest in whole slide histopathology images. In Medical Imaging 2015: Digital Pathology, volume 9420, page 94200H. International Society for Optics and Photonics, 2015. 3
+[4] B. E. Bejnordi, G. Litjens, N. Timofeeva, I. Otte-Höller, A. Homeyer, N. Karssemeijer, and J. A. van der Laak. Stain specific standardization of whole-slide histopathological images. IEEE transactions on medical imaging, 35(2):404-415, 2015. 2
+[5] B. E. Bejnordi, M. Veta, P. J. Van Diest, B. Van Ginneken, N. Karssemeijer, G. Litjens, J. A. Van Der Laak, M. Hermsen, Q. F. Manson, M. Balkenhol, et al. Diagnostic assessment of deep learning algorithms for detection of lymph node metastases in women with breast cancer. Jama, 318(22):2199-2210, 2017. 1
+[6] G. Campanella, M. G. Hanna, L. Geneslaw, A. Miraflor, V. W. K. Silva, K. J. Busam, E. Brogi, V. E. Reuter, D. S. Klimstra, and T. J. Fuchs. Clinical-grade computational pathology using weakly supervised deep learning on whole slide images. Nature medicine, 25(8):1301-1309, 2019. 2
+[7] Z. Chen, Z. Chi, H. Fu, and D. Feng. Multi-instance multilabel image classification: A neural approach. Neurocomputing, 99:298-306, 2013. 2
+[8] F. Chollet. Xception: Deep learning with depthwise separable convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1251-1258, 2017. 1
+[9] D. C. Ciresan, A. Giusti, L. M. Gambardella, and J. Schmidhuber. Mitosis detection in breast cancer histology images with deep neural networks. In International Conference on Medical Image Computing and Computer-assisted Intervention, pages 411-418. Springer, 2013. 1
+[10] E. Cosatto, P.-F. Laquerre, C. Malon, H.-P. Graf, A. Saito, T. Kiyuna, A. Marugame, and K. Kamijo. Automated gastric cancer diagnosis on h&e-stained sections; ltraining a classifier on a large scale with multiple instance machine learning. In Medical Imaging 2013: Digital Pathology, volume 8676, page 867605. International Society for Optics and Photonics, 2013. 2
+[11] H. D. Couture, J. S. Marron, C. M. Perou, M. A. Troester, and M. Niethammer. Multiple instance learning for heterogeneous images: Training a cnn for histopathology. In International Conference on Medical Image Computing and
+
+Computer-Assisted Intervention, pages 254-262. Springer, 2018. 2
+[12] A. Cruz-Roa, A. Basavanhally, F. González, H. Gilmore, M. Feldman, S. Ganesan, N. Shih, J. Tomaszewski, and A. Madabhushi. Automatic detection of invasive ductal carcinoma in whole slide images with convolutional neural networks. In Medical Imaging 2014: Digital Pathology, volume 9041, page 904103. International Society for Optics and Photonics, 2014. 1
+[13] K. Das, S. Conjeti, A. G. Roy, J. Chatterjee, and D. Sheet. Multiple instance learning of deep convolutional neural networks for breast histopathology whole slide classification. In 2018 IEEE 15th International Symposium on Biomedical Imaging (ISBI 2018), pages 578-581. IEEE, 2018. 2
+[14] T. G. Dietterich, R. H. Lathrop, and T. Lozano-Pérez. Solving the multiple instance problem with axis-parallel rectangles. Artificial intelligence, 89(1-2):31-71, 1997. 2
+[15] Y. Ganin, E. Ustinova, H. Ajakan, P. Germain, H. Larochelle, F. Laviolette, M. Marchand, and V. Lempitsky. Domain-adversarial training of neural networks. The Journal of Machine Learning Research, 17(1):2096-2030, 2016. 2, 4
+[16] Y. Gao, W. Liu, S. Arjun, L. Zhu, V. Ratner, T. Kurc, J. Saltz, and A. Tannenbaum. Multi-scale learning based segmentation of glands in digital colonrectal pathology images. In Medical Imaging 2016: Digital Pathology, volume 9791, page 97910M. International Society for Optics and Photonics, 2016. 3
+[17] S. Graham, M. Shaban, T. Qaiser, N. A. Koohbanani, S. A. Khurram, and N. Rajpoot. Classification of lung cancer histology images using patch-level summary statistics. In Medical Imaging 2018: Digital Pathology, volume 10581, page 1058119. International Society for Optics and Photonics, 2018. 1
+[18] 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. 1
+[19] L. Hou, D. Samaras, T. M. Kurc, Y. Gao, J. E. Davis, and J. H. Saltz. Patch-based convolutional neural network for whole slide tissue image classification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2424-2433, 2016. 1
+[20] M. Ilse, J. M. Tomczak, and M. Welling. Attention-based deep multiple instance learning. arXiv preprint arXiv:1802.04712, 2018. 2, 4
+[21] A. M. Khan, N. Rajpoot, D. Treanor, and D. Magee. A nonlinear mapping approach to stain normalization in digital histopathology images using image-specific color deconvolution. IEEE Transactions on Biomedical Engineering, 61(6):1729-1738, 2014. 2
+[22] A. Krizhevsky, I. Sutskever, and G. E. Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pages 1097-1105, 2012. 1
+[23] M. W. Lafarge, J. P. Pluim, K. A. Eppenhof, P. Moeskops, and M. Veta. Domain-adversarial neural networks to address the appearance variability of histopathology images. In *Deep
+
+Learning in Medical Image Analysis and Multimodal Learning for Clinical Decision Support, pages 83-91. Springer, 2017. 2
+[24] C. H. Li, I. Gondra, and L. Liu. An efficient parallel neural network-based multi-instance learning algorithm. The Journal of Supercomputing, 62(2):724-740, 2012. 2
+[25] M. Macenko, M. Niethammer, J. S. Marron, D. Borland, J. T. Woosley, X. Guan, C. Schmitt, and N. E. Thomas. A method for normalizing histology slides for quantitative analysis. In 2009 IEEE International Symposium on Biomedical Imaging: From Nano to Macro, pages 1107-1110. IEEE, 2009. 2
+[26] O. Maron and T. Lozano-Pérez. A framework for multiple-instance learning. In Advances in neural information processing systems, pages 570-576, 1998. 2
+[27] H. S. Mousavi, V. Monga, G. Rao, and A. U. Rao. Automated discrimination of lower and higher grade gliomas based on histopathological image analysis. Journal of pathology informatics, 6, 2015. 1
+[28] N. Qian. On the momentum term in gradient descent learning algorithms. Neural networks, 12(1):145-151, 1999. 7
+[29] A. Rakhlin, A. Shvets, V. Iglovikov, and A. A. Kalinin. Deep convolutional neural networks for breast cancer histology image analysis. In International Conference Image Analysis and Recognition, pages 737-744. Springer, 2018. 2
+[30] E. Reinhard, M. Adhikhmin, B. Gooch, and P. Shirley. Color transfer between images. IEEE Computer graphics and applications, 21(5):34-41, 2001. 2
+[31] K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. 1, 6
+[32] P. Sudharshan, C. Petitjean, F. Spanhol, L. E. Oliveira, L. Heutte, and P. Honeine. Multiple instance learning for histopathological breast cancer image classification. Expert Systems with Applications, 117:103-111, 2019. 2
+[33] H. Tokunaga, Y. Teramoto, A. Yoshizawa, and R. Bise. Adaptive weighting multi-field-of-view cnn for semantic segmentation in pathology. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 12597-12606, 2019. 3
+[34] D. Wang, A. Khosla, R. Gargeya, H. Irshad, and A. H. Beck. Deep learning for identifying metastatic breast cancer. arXiv preprint arXiv:1606.05718, 2016. 1
+[35] R. Wetteland, K. Engan, T. Eftestøl, V. Kvikstad, and E. A. Janssen. Multiscale deep neural networks for multiclass tissue classification of histological whole-slide images. arXiv preprint arXiv:1909.01178, 2019. 3
+[36] J. Wu, Y. Yu, C. Huang, and K. Yu. Deep multiple instance learning for image classification and auto-annotation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3460–3469, 2015. 2
+[37] Y. Xu, Z. Jia, Y. Ai, F. Zhang, M. Lai, I. Eric, and C. Chang. Deep convolutional activation features for large scale brain tumor histopathology image classification and segmentation. In 2015 IEEE international conference on acoustics, speech and signal processing (ICASSP), pages 947-951. IEEE, 2015. 1
+
+[38] Y. Xu, Z. Jia, L.-B. Wang, Y. Ai, F. Zhang, M. Lai, I. Eric, and C. Chang. Large scale tissue histopathology image classification, segmentation, and visualization via deep convolutional activation features. BMC bioinformatics, 18(1):281, 2017. 1
+[39] F. G. Zanjani, S. Zinger, B. E. Bejnordi, J. A. van der Laak, et al. Histopathology stain-color normalization using deep generative models. 2018. 2
+[40] Z.-H. Zhou and M.-L. Zhang. Neural networks for multi-instance learning. In Proceedings of the International Conference on Intelligent Information Technology, Beijing, China, pages 455-459, 2002. 2
\ No newline at end of file
diff --git a/multiscaledomainadversarialmultipleinstancecnnforcancersubtypeclassificationwithunannotatedhistopathologicalimages/images.zip b/multiscaledomainadversarialmultipleinstancecnnforcancersubtypeclassificationwithunannotatedhistopathologicalimages/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..3ae8f237b1b185e929f35f621ce7a4dd358b8547
--- /dev/null
+++ b/multiscaledomainadversarialmultipleinstancecnnforcancersubtypeclassificationwithunannotatedhistopathologicalimages/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6756a26ada36cae34c0f1d7837b9d452990de3c47d5ceb45768cc1668d082e99
+size 546510
diff --git a/multiscaledomainadversarialmultipleinstancecnnforcancersubtypeclassificationwithunannotatedhistopathologicalimages/layout.json b/multiscaledomainadversarialmultipleinstancecnnforcancersubtypeclassificationwithunannotatedhistopathologicalimages/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..f3aa058a1b4ad11cfb451c030ad2943a94a987d5
--- /dev/null
+++ b/multiscaledomainadversarialmultipleinstancecnnforcancersubtypeclassificationwithunannotatedhistopathologicalimages/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:354b769bc8b2f8fef623ba67305011c62173fd1c5f5bc4dfe41ba472106af028
+size 385370
diff --git a/multiviewconsistentsemisupervisedlearningfor3dhumanposeestimation/be40a050-980c-448b-9f30-50e35676f426_content_list.json b/multiviewconsistentsemisupervisedlearningfor3dhumanposeestimation/be40a050-980c-448b-9f30-50e35676f426_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..cfd3a75ea544106e06dc56d5ebd3360b013e62b3
--- /dev/null
+++ b/multiviewconsistentsemisupervisedlearningfor3dhumanposeestimation/be40a050-980c-448b-9f30-50e35676f426_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b54bb1f5b3805beacc1e0ce07794bbf65d7dcb1208a8be99940cdb96dd76756c
+size 82324
diff --git a/multiviewconsistentsemisupervisedlearningfor3dhumanposeestimation/be40a050-980c-448b-9f30-50e35676f426_model.json b/multiviewconsistentsemisupervisedlearningfor3dhumanposeestimation/be40a050-980c-448b-9f30-50e35676f426_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..1906ed7324e855c2a53b3360848847be6dd8051d
--- /dev/null
+++ b/multiviewconsistentsemisupervisedlearningfor3dhumanposeestimation/be40a050-980c-448b-9f30-50e35676f426_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:76901f9bed31fef0e46879d573f57fa8fd7cf131ab6394f1c91333111cb93e29
+size 99024
diff --git a/multiviewconsistentsemisupervisedlearningfor3dhumanposeestimation/be40a050-980c-448b-9f30-50e35676f426_origin.pdf b/multiviewconsistentsemisupervisedlearningfor3dhumanposeestimation/be40a050-980c-448b-9f30-50e35676f426_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..6a2cd14fe9126f33692690fc3095df7176f4a0ed
--- /dev/null
+++ b/multiviewconsistentsemisupervisedlearningfor3dhumanposeestimation/be40a050-980c-448b-9f30-50e35676f426_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:489fa164a626f7791d4d029e8d211ae2ca19094e8d93e98c3bb40f80516d041a
+size 912656
diff --git a/multiviewconsistentsemisupervisedlearningfor3dhumanposeestimation/full.md b/multiviewconsistentsemisupervisedlearningfor3dhumanposeestimation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..000d773f97576cc357ca7b20c34e946fd3e08ed8
--- /dev/null
+++ b/multiviewconsistentsemisupervisedlearningfor3dhumanposeestimation/full.md
@@ -0,0 +1,360 @@
+# Multiview-Consistent Semi-Supervised Learning for 3D Human Pose Estimation
+
+Rahul Mitra*
+
+IIT Bombay
+
+rmitter@cse.iitb.ac.in
+
+Nitesh B. Gundavarapu*
+
+UC San Diego
+
+nbgunday@ucsd.edu
+
+Abhishek Sharma
+
+Axogyan AI
+
+abhisharayiya@gmail.com
+
+Arjun Jain
+
+IISc Bangalore
+
+arjun Jain@iisc.ac.in
+
+# Abstract
+
+The best performing methods for 3D human pose estimation from monocular images require large amounts of in-the-wild 2D and controlled 3D pose annotated datasets which are costly and require sophisticated systems to acquire. To reduce this annotation dependency, we propose Multiview-Consistent Semi Supervised Learning (MCSS) framework that utilizes similarity in pose information from unannotated, uncalibrated but synchronized multi-view videos of human motions as additional weak supervision signal to guide 3D human pose regression. Our framework applies hard-negative mining based on temporal relations in multi-view videos to arrive at a multi-view consistent pose embedding. When jointly trained with limited 3D pose annotations, our approach improves the baseline by $25\%$ and state-of-the-art by $8.7\%$ , whilst using substantially smaller networks. Lastly, but importantly, we demonstrate the advantages of the learned embedding and establish view-invariant pose retrieval benchmarks on two popular, publicly available multi-view human pose datasets, Human 3.6M and MPI-INF-3DHP, to facilitate future research.
+
+# 1. Introduction
+
+Over the years, the performance of monocular 3D human pose estimation has improved significantly due to increasingly sophisticated CNN models [55, 35, 46, 45, 30, 49]. For training, these methods depend on the availability of large-scale 3D-pose annotated data, which is costly and challenging to obtain, especially under in-the-wild setting for articulated poses. The two most popular 3D-pose annotated datasets, Human3.6M [15] (3.6M samples) and MPIINF-3DHP [29] (1.3M samples), are biased towards indoor-like environment with uniform background and illumination. Therefore, 3D-pose models trained on these datasets don't generalize well for real-world scenarios [8, 55].
+
+Limited training data, or costly annotation, poses seri
+
+ous challenges to not only deep-learning based methods, but other machine-learning methods as well. Semi-supervised approaches [10, 22, 24, 14] have been extensively used in the past to leverage large-scale unlabelled datasets along with small labelled dataset to improve performance. Semisupervised methods try to exploit the structure/invariances in the data to generate additional learning signals for training. Unlike classical machine-learning models that use fixed feature representation, deep-learning models can also learn a suitable feature representation from data as part of the training process. This unique ability calls for semisupervised approaches to encourage better feature representation learning from large-scale unlabelled data for generalization. Intuitively it's more appealing to leverage semisupervised training signals that are more relevant to the final application. Therefore, given the vast diversity of computer-vision tasks, it remains an exciting area of research to innovate novel semi-supervision signals.
+
+To this end, we leverage projective multiview consistency to create a novel metric-learning based semi-supervised framework for 3D human-pose estimation. Multiview consistency has served as a fundamental paradigm in computer vision for more than 40 years and gave rise to some of the most used algorithms such as stereo [42], structure from motion [20], motion capture [32], simultaneous localization and mapping [4], etc. From human-pose estimation perspective, the intrinsic 3D-pose of the human-body remains the same across multiple different views. Therefore, a deep-CNN should ideally be able to map 2D-images corresponding to a common 3D-pose, captured from different viewpoints, to nearby points in an embedding space. Intuitively, such a deep-CNN is learning feature representations that are invariant to different views of the human-pose. Therefore, we posit that perhaps it can learn to project 2D images, from different viewpoints, into a canonical 3D-pose space in $\mathbb{R}^N$ . In Fig. 1b, we show a few embedding distances between different images from the Human 3.6M dataset [15] and provide empirical evidence to the aforementioned hypothesis via a novel cross-view pose-retrieval experiment. Unfortunately, embedding-vectors, $x$ , from such a space do not translate directly to
+
+the 3D coordinates of human-pose. Therefore, we learn another transformation function from embedding to pose space and regress with small 3D-pose supervision while training. Since, the embedding is shared between the pose-supervision and semi-supervised metric-learning, it leads to better generalizable features for 3D-pose estimation. We name our proposed framework as Multiview Consistent Semi-Supervised learning, or MCSS for short.
+
+The proposed framework fits really well with the practical requirements of our problem because it's relatively easy to obtain real-world time-synchronized video streams of humans from multiple viewpoints vs. setting up capture rigs for 3D-annotated data out in-the-wild. An alternative approach could be to setup a calibrated multi-camera capture rig in-the-wild and use triangulation from 2D-pose annotated images to obtain 3D-pose. But, it still requires hand-annotated 2D-poses or an automated 2D-pose generation system. In [19], a pre-trained 2D-pose network has been used to generate pseudo 3D-pose labels for training a 3D-pose network. Yet another approach exploits relative camera extrinsics for cross-view image generation via a latent embedding [39]. We, on the other hand, don't assume such requirements to yield a more practical solution for the limited data challenge.
+
+We use MCSS to improve 3D-pose estimation performance with limited 3D supervision. In Sec. 5, we show the performance variation as 3D supervision is decreased. Sec. 6 demonstrates the richness of view-invariant MCSS embedding for capturing human-pose structure with the help of a carefully designed cross-view pose-retrieval task on Human3.6M and MPI-INF-3DHP to serve as a benchmark for future research in this direction. To summarize our contribution, we
+
+- Propose a novel Multiview-Consistent Semi-Supervised learning framework for 3D-human-pose estimation.
+- Achieve state-of-the-art performance on Human 3.6M dataset with limited 3D supervision.
+- Formulate a cross-view pose-retrieval benchmark on Human3.6M and MPI-INF-3DHP datasets.
+
+# 2. Related Work
+
+This section first reviews prior approaches for learning human-pose embedding followed by a discussion of previous weakly supervised methods for monocular 3D human pose estimation to bring out their differences with our approach.
+
+# 2.1. Human Pose Embedding
+
+Historically, human-posed embeddings have been employed in tracking persons [50, 25]. Estimation of 3D human pose and viewpoint from input silhouettes via learning
+
+a low dimension manifold is shown in [9]. 2D-pose regression and retrieval by pose similarity embedding is shown in [23, 33], but requiring 2D-pose labels. In [44], the need for 2D-pose labels is eliminated by using human motion videos and temporal ordering as weak supervision. Unlike the aforementioned approaches, we learn a 3D-pose embedding by leveraging intrinsic 3D-pose consistency from synchronized multi-view videos. In [47], a 3D-pose embedding is learnt using an over-complete auto-encoder for better structure preservation, but it still required 3D-pose annotations.
+
+# 2.2. Weakly Supervised 3D Human Pose Estimation
+
+Majority of the supervised 3D-pose Estimation algorithms [30, 28, 49, 37, 46, 54, 45, 55, 43] require 3D-pose labels in conjunction with either 2D-pose labels or a pretrained 2D pose estimator to learn a deep-CNN mapping from images or predicted 2D-pose to 3D-pose. Some methods refine these pose estimates using either temporal cues, anthropometric constraints, geometric constraints or additional supervision [8, 53, 52, 3, 26, 12]. A complete decoupling between 2D and 3D pose estimation is presented in [52] with the use of generative lifting network followed by a back-projection constraint to achieve generalization. Another line of work focuses on augmenting 2D/3D-pose labels using mesh representation [16, 17, 3, 21, 34] or a dense pose representation [1, 11] to improve pose estimation. All the aforementioned approaches require large amount of annotated 2D and/or 3D labels while our method is designed for limited 3D-pose labels only.
+
+Strong 2D and Limited/no 3D Supervision In recent years, weak-supervision from limited 3D-pose labels along with in-the-wild 2D-pose labels has gained popularity, because labelling 2D-pose is easier than labelling 3D-pose [36, 19, 40, 6, 51, 5]. A weak-supervision in the form of reprojection constraints on the predicted 3D pose is proposed [36]. Mostly, such approaches take advantage of multi-view images during training by means of geometric constraints [40, 19, 5], domain adaptation and adversarial constraints [5], or cross-view reprojection constraints [6]. In [6], a latent 3D-pose embedding is learned by reconstructing 2D-pose from the embedding in a different view. A shallow network with limited 3D-pose supervision is learned to regress 3D-pose from the embedding. A network with pre-trained weights for 2D-pose estimation is used for 3D-pose estimation in [40] followed by multi-view geometric consistency loss. Pseudo 3D-pose labels are generated in [19] for training, while adversarial losses between the 2D skeleton and re-projection of predicted 3D-pose on different views is used for learning in [5]. In [51], starting with 2D pose inputs, a lifting network is trained with siamese loss on the embedding from multiple views to achieve a weak supervision for 3D-pose. Unlike us, [40, 5, 19] require strong 2D
+
+
+
+
+Figure 1: (a) Framework for learning our pose embedding and subsequent canonical pose estimation. $x_{\text{anchor}}$ and $x_{\text{positive}}$ are a batch of anchor and positive image pairs taken from different camera views. $x_{\text{supervise}}$ is the batch of images with 3D-pose supervision. $\mathcal{F}$ - ResNet based feature extractor. $\mathcal{G}$ maps features extracted from $\mathcal{F}$ to embedding $\phi$ . The Hard Negative Sampling module performs in-batch hard mining as given in Eq. 1. Module $\mathcal{H}$ regresses pose $\hat{p}$ from our embedding $\phi$ . See Sec. 3.1, 3.2 for details. (b) Distances between a few images in our learned embedding space. Each column represents images in the same pose from different view. Images across rows have different poses. The numbers between a pair of images represent its embedding distance. The distance is low for pairs with the same pose irrespective of viewpoint and high for those having different poses.
+
+pose estimation systems trained on MPII or COCO datasets while [36, 51, 6] directly work on 2D-pose detections. We, on the other hand, don't need any 2D-pose labels or pretrained 2D-pose estimation systems.
+
+Limited/no 2D and Limited 3D Supervision - To alleviate the need for a large amount of 2D-pose labels, [39, 38] learn an unsupervised geometry aware embedding and estimate 3D-pose from embedding with limited 3D supervision. Novel view synthesis using multi-view synchronized videos of human motions is used to learn a geometry-aware embedding. These methods, however, still require camera extrinsics and background extraction and perform worse than our approach. Our approach falls in the same category as we don't use any 2D-pose labels. We utilize synchronized videos from multiple views to learn a pose embedding with limited 3D-pose labels such that similar pose samples are mapped close to each other in the embedding space. Unlike [39], we don't require camera extrinsics or background extraction.
+
+# 3. Proposed Approach
+
+Our proposed MCSS approach consists of two modules-i) Multiview-consistent metric-learning from time synchronised videos (Sec. 3.1) and ii) 3D-pose regression with limited 3D supervision (Sec. 3.2). Both the modules are jointly trained as shown in Fig. 1a and explained in Sec. 3.1, 3.2. Metric-learning acts as semi- supervision signal to reduces the dependency on large-scale 3D-pose labels while pose
+
+regression encourages the network to learn pose-specific features.
+
+# 3.1. Multiview-Consistent Metric Learning
+
+We utilize the Hardnet framework [31] to learn pose embedding. The datasets used for training is divided into images belonging to one of $S = \{S_1, S_2, \ldots, S_n\}$ set of subjects. $\mathcal{P} \subset \mathbb{R}^{16 \times 3}$ is the set of all possible poses and each pose is viewed from $\mathcal{V} = \{v_1, v_2, \ldots, v_q\}$ viewpoints. For training hardnet, each batch consists of paired anchor $(\mathcal{X}_p^{v_a}(S_i) \in \mathcal{X})$ and positive $(\mathcal{X}_p^{v_b}(S_i) \in \mathcal{X})$ images, from subject $S_i$ , with the same pose, $p \in \mathcal{P}$ , taken from two different viewpoints $v_a$ and $v_b$ , here $\mathcal{X} \subset \mathbb{R}^{3 \times 256 \times 256}$ is the set of images.
+
+We pass both the anchor and positive images through feature extractor $(\mathcal{F}_{\theta_{\mathcal{F}}}: \mathcal{X} \to \Psi; \Psi \subset \mathbb{R}^{512 \times 4 \times 4})$ to generate features $\{\psi_p^{v_a}, \psi_p^{v_b}\} \in \Psi$ . The feature extractor network is parameterised by $\theta_{\mathcal{F}}$ . The features are then finally passed through an embedding generating network $(\mathcal{G}_{\theta_{\mathcal{G}}}: \Psi \to \Phi; \Phi \subset \mathbb{R}^{dim_{\phi}}$ ; where $dim_{\phi}$ is dimension of our embedding). Let's assume we feed anchor and positive images to $\mathcal{F}$ in batches of $m$ . Once corresponding features $\{\phi_{p_1}^{v_{a_1}}, \ldots, \phi_{p_m}^{v_{a_m}}\}$ and $\{\phi_{p_1}^{v_{b_1}}, \ldots, \phi_{p_m}^{v_{b_m}}\}$ are computed, we create a distance matrix $D$ of size of $m \times m$ with $D(i,j) = \| \phi_{p_i}^{v_{a_i}} - \phi_{p_j}^{v_{b_j}} \|_2$ . Negatives $\phi_{p_{j_{min}}}^{v_{k_{min}}}$ and $\phi_{p_{k_{min}}}^{v_{k_{min}}}$ for each of $\phi_{p_i}^{v_{a_i}}$ and $\phi_{p_i}^{v_{b_i}}$ are then sampled from the current batch which lie closest in the embedding space from $\phi_{p_i}^{v_{a_i}}$ and $\phi_{p_i}^{v_{b_i}}$ respectively. Mathematically, the sampling
+
+is formulated in Eq. 1. Here, $\beta$ denotes the minimum distance between a hard-mined negative and an anchor/positive in embedding space. The threshold $\beta$ is necessary for stable training and to avoid similar poses as negatives.
+
+$$
+j_{min} = \operatorname *{arg min}_{j\neq i}\delta (D(i,j))* D(i,j);
+$$
+
+$$
+k _ {\text {m i n}} = \underset {k \neq i} {\arg \min } \delta (D (k, i)) * D (k, i) \tag {1}
+$$
+
+$$
+\delta (x) = 1 \text {i f} x > \beta , 0 \text {o t h e r w i s e}
+$$
+
+$$
+D _ {m i n} ^ {i} = \min (D (i, j _ {m i n}), D (k _ {m i n}, i))
+$$
+
+The average contrastive loss is given in Eq. 2, with $\alpha$ being the margin.
+
+$$
+\mathcal {L} _ {c n s t r} = \frac {1}{m} \sum_ {i = 1} ^ {m} D (i, i) + \max \left(0, \alpha - D _ {\min } ^ {i}\right) \tag {2}
+$$
+
+Note that the above learning framework has the following two objectives, namely, a) to bring the anchors and its positives closer and b) to separate out the negatives from its anchors and positives. Intuitively, the goal is to learn embedding that captures 3D-pose information while ignoring irrelevant information, such as subject appearance or background. To this end, we propose the following mini-batch selection mechanism to promote the aforementioned goal:
+
+# 3.1.1 Mini-batch Selection
+
+We compose each mini-batch using anchor and positive pairs from the same subject, and in many cases with overlapping backgrounds, and the negatives are also from the same subject since Hardnet chooses the hardest negatives from the same mini-batch. The presented mini-batch selection scheme encourages the resulting embedding to capture pose information while discarding subject-appearance and background features when separating the hardest negatives from anchors and positives. It's due to the inclusion of same personal-appearance and background in both the negatives and anchor/positives, which cannot be used to separate negatives. We take care to not include temporally close images in a mini-batch by sub-sampling and appropriately choosing $\beta$ . Specific hyper-parameter choices are detailed in supplementary material. In Sec. 6, we show pose retrieval ability of the learned embedding to show that it has indeed successfully captured 3D-pose information.
+
+# 3.2. Pose Regression
+
+Most 3D-pose estimation approaches focus on regressing for pose in the local camera coordinate system [55, 35, 49, 28, 46, 52, 40]. In our framework, however, 2D-images captured from different views are all mapped to nearby embedding locations, if their intrinsic 3D-poses are the same.
+
+Therefore, 3D-pose regression using our embedding is ambiguous because the local camera coordinate system is lost. Moreover, the relation from our embedding to the view-specific 3D-pose is one-to-many. In order to address this issue, we make use of the MoCap system's global coordinate to represent the 3D-poses instead of view-specific 3D-poses. Hence, synchronous frames captured from different views are labelled as one global-coordinate 3D-pose. However, different frames can contain poses which are rigid transformations of one another with same 2D projections. In such cases, the mapping from our embedding to 3D-pose is again an ill-posed one-to-many mapping. In Fig. 2, an example of such ambiguity is illustrated.
+
+
+Figure 2: Top view of the bottom half of a human skeleton taken at two different time instants and view points. The left and middle images show two poses having different joint co-ordinates when presented in the global pose while having same projections in their respective cameras. On the contrary its canonical pose provides a uniform representation.
+
+
+
+
+
+# 3.2.1 Canonical Pose Representation
+
+In order to resolve the aforementioned ambiguities, we formulate a multiview-consistent and rigid rotation invariant 3D-pose representation and refer to it as canonical pose. Canonical pose is obtained by constraining the bone connecting the pelvis to the left hip joint to be always parallel to XZ plane. In Human3.6M dataset, the upward direction is $+Z$ axis while XY plane forms the horizontal. Therefore, we rotate the skeleton about the $+Z$ axis until the above mentioned bone is parallel to the XZ plane. We don't require any translation since the joint positions are relative to the pelvis. Mathematically, the transformation from global to canonical is given in Eq. 3,
+
+$$
+\hat {u} = \frac {p _ {l h} ^ {g l b} - p _ {r o o t} ^ {g l b}}{\| p _ {l h} ^ {g l b} - p _ {r o o t} ^ {g l b} \|}; u _ {\hat {x y}} = \frac {\hat {u} _ {\hat {x}} \hat {\hat {i}} + \hat {u} _ {\hat {y}} \hat {\hat {j}}}{\| \hat {u} _ {\hat {x}} \hat {\hat {i}} + \hat {u} _ {\hat {y}} \hat {\hat {j}} \|} \tag {3}
+$$
+
+$$
+\theta = \cos^ {- 1} (\hat {u _ {x y}} \cdot \hat {i}); p ^ {c a n} = R _ {\theta} ^ {z} * p ^ {g l b}
+$$
+
+where, $p_{root}^{glb}$ and $p_{lh}^{glb}$ are the root and left-hip joint respectively in the global representation. The unit vector along $(p_{lh}^{glb} - p_{root}^{glb})$ is represented as $\hat{u}$ , and $\theta$ is the required
+
+angle of rotation along the $+Z$ -axis to obtain the canonical pose representation. A positive side-effect of canonical pose representation vs. view-specific representation is that our predicted canonical pose doesn't change orientation with variations in camera view. Similar ground-plane rotations to achieve a rotation-invariant pose has also been used in [49]. Note that the canonical pose is constructed directly from MoCap system's coordinates and doesn't require camera extrinsics. Finally, we regress for canonical pose from the latent embedding $\Phi$ with the help of a shallow network $(\mathcal{H}_{\theta_{\mathcal{H}}}: \Phi \to \mathcal{P})$ , as shown in Fig. 1a. The loss-function is L1-norm between the predicted, $\hat{p}$ , and target, $p \in \mathcal{P}$ , canonical 3D-pose: $\mathcal{L}_{\text{pose}} = \| p - \hat{p} \|_1$ .
+
+# 4. Implementation and Training Details
+
+We use the first 4 residual blocks of an ImageNet [41] pre-trained ResNet-18 as our backbone. In addition, we modify the batch-norm (BN) layers by turning off the affine parameters as suggested in [31, 48]. For an input image of size $224 \times 224$ pixels, the output of ResNet is a $512 \times 7 \times 7$ blob, which is further down-sample by 2 using a max-pool operation to get $\Psi$ . The embedding network $\mathcal{G}$ is FC layers followed by L2-normalization and it maps $\Psi$ to an embedding of dimension $dim_{\phi}$ (128 in our case), following the approach of [31, 48].
+
+For 3D-posed regression, the input data is normalized for each joint. The pose regression network $\mathcal{G}$ consists of FC layers FC(128, 48), with $\Phi \subset \mathbb{R}^{128}$ . The margin $\alpha$ for $\mathcal{L}_{\text{connst}}$ is set at 0.6 and $\beta$ at 0.3. Adam [18] optimized is used with default parameters (0.9, 0.99) with initial learning rate $10^{-3}$ . The model is trained for 40 epochs with a drop in learning-rate by 0.1 at every 20 epochs. In our joint training frame work, ratio of the batch size for metric learning to pose regression is kept at 3:1 with batch size for regression is 22. A schematic diagram of our network architecture is shown in Fig. 1a.
+
+# 4.1. Datasets
+
+We use the popular Human3.6M [15] and MPI-INF-3DHP [29] datasets for our experiments.
+
+- Human3.6M [15] contains 3.6 million frames captured from an indoor MoCap system with 4 cameras $(\mathcal{V})$ . It comprises of 11 subjects $(S)$ , each performing 16 actions with each action having 2 sub-actions. Following the standard Protocol 2 [46], we use subjects (S1, S5, S6, S7, S8) for training and (S9, S11) for testing. Like several other methods, we also use cropped subjects' using bounding-boxes provided with the dataset and temporal sub-sampling is done to include every $5^{th}$ and $64^{th}$ frame for training and testing phase, respectively.
+
+- MPI-INF-3DHP [29] is generated from a MoCap system with 12 synchronized cameras in both indoor and outdoor settings. It contains 8 subjects(S) with diverse clothing. We use the 5 chest height cameras( $\nu$ ) for both training and test purposes. Since the test set doesn't contain annotated multi-view data, we use S1-S6 for training and S7-S8 for evaluation.
+
+# 5. Quantitative Evaluation for Pose Estimation
+
+We perform the same quantitative experiment as presented in [39] to assess the benefits of the learned embedding in 3D-pose estimation on the Human 3.6M dataset. We evaluate using three well adopted metrics, MPJPE, PA-MPJPE and Normalized MPJPE (N-MPJPE) (introduced in [40]) which incorporates a scale normalization to make the evaluation independent of person's height. We compare our proposed approach and its variants against a baseline which only uses $\mathcal{L}_{\text {pose }}$ . In addition, we compare our method against the approach proposed by Rhodin et al. [39] and [40], although it estimates human poses in the camera coordinate system. We also report the performance of Rhodin et al. [39] using ResNet-18 as the feature extractor instead of ResNet-50. It is to be noted that [39] uses additional information at training time in the form of relative camera rotation and background extraction which requires sophisticated, well calibrated setup. We acknowledge the existence of more accurate methods like [5, 19, 7] on Human3.6M when abundant 2D and limited 3D labels are available. For comparison with these approaches, however, we report results from [6] that requires limited 3D supervision but complete 2D supervision from both Human3.6M and MPII [2] dataset. Since, our focus is advancing the research in monocular 3D-pose estimation without using 2D labels under limited 3D-pose labels, we restrict our comparison to cases with limited supervision from both 2D and 3D labels. We don't include the results of [36] as it requires multiple temporally adjacent frames at inference-stage and uses pre-trained 2D-pose estimation models learned from large-scale 2D-pose annotated datasets. Note: We do not predict rotations required to convert from canonical pose to camera pose. Hence we use the canonical representation in MCSS(ours) and the camera coordinate representation in other methods for all evaluations in this section. In order to show performance variation as a function of 3D-pose supervision, we report N-MPJPE values for models trained using different amount of 3D-pose labels, in Fig. 3. In this experiment, 3D-pose supervision is reduced gradually using all 5 subjects, to $5\%$ S1. MCSS clearly outperforms the baseline by a margin of 37.34 N-MPJPE when only S1 is used for supervision. Moreover, MCSS degrades gracefully as 3D-pose supervision is reduced, which validates the importance of $\mathcal{L}_{\text {constrt }}$ in providing weak supervision to capture 3D-pose. Qualitative comparison of our method against the
+
+| Supervision | Method | N-MPJPE | MPJPE | PA-MPJPE |
| All | Rhodin [40]* | 63.30 | 66.80 | 51.60 |
| Chen [6]* | NA | 80.20 | 58.20 |
| Baseline | 95.07 | 97.90 | 77.18 |
| Rhodin [40] | 95.40 | NA | NA |
| Rhodin [39] | 115.00 | NA | NA |
| MCSS(Ours) | 92.60 | 94.25 | 72.48 |
| S1 | Rhodin [40]* | 78.20 | NA | NA |
| Chen [6]* | NA | 91.90 | 68.00 |
| Baseline | 149.28 | 154.78 | 113.69 |
| Rhodin [40] | NA | 153.30 | 128.60 |
| Rhodin [39] | 122.60 | 131.70 | 98.20 |
| Rhodin [39]-Res18 | 136.00 | NA | NA |
| MCSS(Ours) | 111.94 | 120.95 | 90.76 |
+
+
+Figure 3: N-MPJPE vs. 3D-posed supervision on test split (S9,S11) of Human3.6M. Our proposed model outperforms the baseline and the current state-of-the-art Rhodin et al. [39].
+
+baseline is shown in Fig. 3.
+
+In Tab. 1, we compare MPJPE, N-MPJPE and PA-MPJPE values of our approach against the baseline and [39]. Clearly, our method outperforms [39] by 22.4
+
+N-MPJPE when fully supervised on 3D data and by 10.7 N-MPJPE with 3D-pose supervision limited to S1. For MPJPE however, the margin is 10.75. Interestingly as mentioned in [39], the performance of [40] drastically falls when pretrained model from strong 2D-pose supervision is not used (reported in Tab. 1 as Rhodin $[40]^*$ and Rhodin [40]).
+
+Table 1: Comparing N-MPJPE and MPJPE values between different approaches on Human 3.6M dataset when supervised on all 5 subjects and on only S1. Note: Pre-trained ImageNet weights are used to initialize the networks by all the methods. Methods or its variants marked with “*” are supervised with large amount of in-the-wild 2D annotations from the MPII [2] dataset either during training or by means of a pre-trained 2D pose estimator. All other methods use much weaker supervision by assuming no 2D annotations and MCSS outperforms the state-of-the-art [39] in such settings. NA is assigned against a method if the corresponding result is not reported by the authors.
+
+| Supervision | Method | N-MPJPE |
| S1 | MCSS | 111.94 |
| MCSS-global | 157.30 |
| MCSS-ResNet34 | 115.85 |
+
+Table 2: N-MPJPE values when pose estimation is done in Mocap's (MCSS-global) and canonical(MCSS) representations when only subject S1 is used for supervision. Performance of using ResNet-34 as back-end is reported against MCSS-ResNet34.
+
+As part of ablation studies, we also compare the performance of our learning framework when target pose is represented in MoCap's(global pose) against our canonical representation in Tab. 2. We observe dramatic decrease in performance, 45 MPJPE, which validates the importance of canonical representation. We also show the results for a deeper ResNet-34 [13] back-end network. We observe a slight drop in performance, 3 MPJPE points, perhaps due to over-fitting.
+
+An additional benefit of our proposed framework is in the use of a much smaller ResNet-18 feature extractor as compared to ResNet-50 used in Rhodin et al [39]. This affords an inference time of $24.8\mathrm{ms}$ vs. $75.3\mathrm{ms}$ by [39] on a NVIDIA 1080Ti GPU. Note that Rhodin et al. [39] shows degradation in performance when using the smaller ResNet-18 backbone. We attribute it to direct latent embedding similarity learning instead of generative modelling that requires more representation capacity.
+
+Pose Estimation From Novel Viewpoint We study the impact of our semi-supervised framework when regressing canonical pose from unseen viewpoints. To this end, we train and test our model on disjoint sets of viewpoints from Human3.6M [15] dataset. In Tab. 3, the model is trained with our unsupervised loss $\mathcal{L}_{cnstr}$ using all the views and with our supervised loss $\mathcal{L}_{pose}$ on images from a subset of viewpoints 1, 2 and 3 (See details in Tab. 2 caption). At test time, we only use images from viewpoint 4 of the Human3.6M test split. We observe a minor increase in error of $4.5\mathrm{mm}$ even when pose supervision is from only from two viewpoints.
+
+# 6. Analysis of Learned Embedding
+
+In this section, we demonstrate the quality of our learned embedding in capturing 3D human-pose by showing i) pose
+
+
+nnnnne
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Ours
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Baaee
+
+
+Figure 4: Qualitative results on canonical pose estimation by our proposed framework (MCSS) against our Baseline on Human 3.6M test split (S9, S11). Both the models are trained with supervision from labels of subject S1. Our method produces more accurate estimates for even for challenging poses like 'sitting' and 'bending'.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+| Supervision | Method | N-MPJPE | PA-MPJPE |
| S1 | MCSS-V1234 | 111.7 | 91.9 |
| MCSS-V123 | 112.4 | 92.1 |
| Baseline-V123 | 158.6 | 116.1 |
| MCSS-V12 | 116.6 | 95.1 |
| Baseline-V12 | 159.4 | 122.5 |
+
+Table 3: N-MPJPE and PA-MPJPE values when pose estimation is performed on unseen viewpoints. Pose supervision is done only from subject S1 with varying number of views. Our weakly supervised loss $\mathcal{L}_{cnstr}$ is applied to all the views. MCSS-V1234 represents the model trained with $\mathcal{L}_{pose}$ (supervised loss) on all views. In MCSS-V123 and Baseline-V123, the supervised loss is from views (1, 2, 3) and so on. Testing is always on images from viewpoint 4.
+
+based cluster formation in our embedding space through retrieval tasks, ii) the correlation between embedding and pose distances. We additionally provide T-SNE [27] plots of our learned embedding space and qualitative results on view invariant pose retrieval in the supplementary.
+
+# 6.1. Cross-View and Cross-Subject Pose Retrieval
+
+Our learned embedding tries to project similar pose-samples close to each other irrespective of the subject, viewpoint and background. To validate this claim, we seek motivation from [44], [23] and propose Mean-PA-MPJPE@ $K$ to measure the Procrustes Aligned Mean Per Joint Position Error (PA-MPJPE) of $K$ closest neighbours from different views. Since, similar poses in terms of the intrinsic human-body pose can still have different orientations, we use Procrustes Aligned MPJPE to remove this artifact. We compare our model against an Oracle, which uses ground truth 3D-pose labels. Given a query image, we ensure that the
+
+retrieval database contains images taken from viewpoints other than that of the query image. It is done to clearly bring out the view invariance property of the proposed embedding. First, we report the Mean-PA-MPJPE@ $K$ between query pose and its $K$ nearest neighbors in the embedding space. In Fig. 5, we show the comparison of Mean-PA-MPJPE@ $K$ of retrieved poses when retrieval is done from images with:
+
+Case 1: all test subjects including that of query's.
+
+Case 2: all test subjects except that of query's - cross.
+
+We report our results relative to the Oracle. The nearly horizontal plots with low errors suggest that our model picks poses similar to that of the Oracle irrespective of $K$ . The error rate is slightly higher for $K = 1,2$ since our model
+
+
+
+
+Figure 5: Mean-PA-MPJPE for increasing number of retrievals $K$ on Human3.6M dataset. Prefix 'Cross-' indicates retrieval done on different subjects from that of query. $\mathcal{L}_{\text{pose}}$ is from subject S1 in both the cases. All values reported are relative to an Oracle. Low values indicate our retrieved poses are similar to that of the Oracle. PAMPJPE is in mm.
+
+retrieves images from clusters and does not always pick the one with the lowest error as done by the oracle. The error is lower for Case 1 than Case 2 due to the presence of images in the query database that share the exact same pose as that of query, but from different viewpoints. We can also note that upon $\mathcal{L}_{\text{pose}}$ from S1, the clustering and mean MPJPE improves in both same subject, Case 1, and cross-subject, Case 2, settings falling in line with our expectation that small amount of pose supervision improves clustering.
+
+| Method | K=1 | K=5 | K=10 | K=20 |
| \( \mathcal{L}_{cnstr} \) | 48.40 | 62.46 | 56.29 | 55.63 |
| Cross-\( \mathcal{L}_{cnstr} \) | 82.29 | 83.53 | 80.65 | 76.00 |
+
+Table 4: Mean-PA-MPJPE (mm) for increasing number of retrievals (K) on MPI-INF-3DHP dataset after finetuning with $\mathcal{L}_{cnstr}$ . Prefix Cross- indicates retrieval is done on subject other than query's. All values are reported with respect to the Oracle.
+
+# 6.2. Correlation between Embedding and Pose
+
+In this section, we illustrate the variation exhibited by our learned embedding with change in human pose. To this end, we plot mean embedding distance between a query image and stacks of images with increasing pose difference with that of the query in Fig. 6. Both the query and the image stacks belong to the same subject. One can observe a clear positive co-relation between embedding distance and corresponding pose difference. Further, same view and different view show similar correlations with poses justifying the fact that our learned embedding is multi-view consistent.
+
+# 6.3. Generalization & Limitations:
+
+To test cross-dataset generalization, we applied a model trained on Human 3.6M dataset and performed cross-view pose retrievals on MPI-INF-3DHP dataset. We obtained a mean MPJPE of $119.6\mathrm{mm}$ and $101.9\mathrm{mm}$ for $K = 10$ and $K = 20$ respectively. Further fine-tuning with $\mathcal{L}_{conrst}$ using multi-view images from MPI-INF-3DHP improved the performance to $62.46\mathrm{mm}$ and $56.29\mathrm{mm}$ , see Tab. 4. The dip in performance on cross dataset can be attributed to the fact that our feature extractor and embedding generating network has learnt a mapping from Human 3.6M images to a pose space and the same mapping is not applicable to the domain of MPI-INF-3DHP images because of huge variation in appearance and more challenging variations of poses. However, upon adding $\mathcal{L}_{conrst}$ , as shown in Tab. 4 the weak supervision generalizes to new dataset.
+
+
+
+
+Figure 6: Variation of mean embedding distance with increasing pose variation. We use the show results on (S9,S11) with model being trained with $\mathcal{L}_{cnstr}$ on (S1,S5,S6,S7,S8) and $\mathcal{L}_{pose}$ on (S1). Images are stacked in bins based on the MPJPE difference of their corresponding poses with that of the query. On the Y-axis, the mean embedding distance between the query and the image stacks is plotted. In Same View, the query image and image stacks belong to the same viewpoint while in Different View, belong to different viewpoints. The results are averaged over 200 random queries for each subject.
+
+# 7. Conclusion and Future Work
+
+In this paper, we demonstrated a novel Multiview-Consistent Semi-Supervised learning approach to capture 3D human structure for pose estimation and retrieval tasks. With the help of our semi-supervised framework, the need for 3D-pose is reduced. It enables our method to outperform contemporary weakly-supervised approaches even while using a smaller network. Furthermore, we provided strong benchmarks for view-invariant pose retrieval on publicly available datasets.
+
+In future, we plan to use multi-view synchronised videos captured in-the-wild from a larger set of viewpoints to improve generalisation further. We also plan to extend our framework to capture very fine grained pose variations with our embedding by learning distributions of pose variations in temporally consecutive frames using limited 3D annotations.
+
+Acknowledgement: This work was supported by grants from Mercedes-Benz Research & Development India (RD/0117-MBRDI00-001). We would also like to thank Anurag Mundhada and Rishabh Dabral for helping with initial discussions and visualizations.
+
+# References
+
+[1] Riza Alp Güler, Natalia Neverova, and Iasonas Kokkinos. Denseospe: Dense human pose estimation in the wild. In CVPR, pages 7297-7306, 2018. 2
+[2] Mykhaylo Andriluka, Leonid Pishchulin, Peter Gehler, and Bernt Schiele. 2d human pose estimation: New benchmark and state of the art analysis. In CVPR, pages 3686-3693, 2014. 5, 6
+[3] Anurag Arnab, Carl Doersch, and Andrew Zisserman. Exploiting temporal context for 3d human pose estimation in the wild. In CVPR, pages 3390-3399, 2019. 2
+[4] Raja Chatila and Jean-Paul Laumond. Position referencing and consistent world modeling for mobile robots. In ICRA, pages 138-145, 1985. 1
+[5] Ching-Hang Chen, Ambrish Tyagi, Amit Agrawal, Dylan Drover, Rohith MV, Stefan Stojanov, and James M Rehg. Unsupervised 3d pose estimation with geometric self-supervision. In CVPR, pages 5707-5717, 2019. 2, 5
+[6] Xipeng Chen, Kwan-Yee Lin, Wentao Liu, Chen Qian, and Liang Lin. Weakly-supervised discovery of geometry-aware representation for 3d human pose estimation. In CVPR, pages 10887-10896, 2019. 2, 3, 5, 6
+[7] Xipeng Chen, Kwan-Yee Lin, Wentao Liu, Chen Qian, and Liang Lin. Weakly-supervised discovery of geometry-aware representation for 3d human pose estimation. In CVPR, pages 10887-10896, 2019. 5
+[8] Rishabh Dabral, Anurag Mundhada, Uday Kusupati, Safeer Afaqque, Abhishek Sharma, and Arjun Jain. Learning 3d human pose from structure and motion. In ECCV, pages 679-696, 2018. 1, 2
+[9] Ahmed Elgammal and Chan-Su Lee. Inferring 3d body pose from silhouettes using activity manifold learning. In CVPR, 2004. 2
+[10] Rob Fergus, Yair Weiss, and Antonio Torralba. Semi-supervised learning in gigantic image collections. In NIPS, pages 522-530, 2009. 1
+[11] Riza Alp Guler and Iasonas Kokkinos. Holopose: Holistic 3d human reconstruction in-the-wild. In CVPR, pages 10876-10886, 2019. 2
+[12] Ikhsanul Habibie, Weipeng Xu, Dushyant Mehta, Gerard Pons-Moll, and Christian Theobalt. In the wild human pose estimation using explicit 2d features and intermediate 3d representations. In CVPR, pages 10897-10906, 2019. 2
+[13] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770-778, 2016. 6
+[14] Seunghoon Hong, Hyeonwoo Noh, and Bohyung Han. Decoupled deep neural network for semi-supervised semantic segmentation. In NIPS, pages 1495-1503, 2015. 1
+[15] Catalin Ionescu, Dragos Papava, Vlad Olaru, and Cristian Sminchisescu. Human3. 6m: Large scale datasets and predictive methods for 3d human sensing in natural environments. In T-PAMI, pages 1325-1339, 2013. 1, 5, 6
+[16] Angjoo Kanazawa, Michael J Black, David W Jacobs, and Jitendra Malik. End-to-end recovery of human shape and pose. In CVPR, pages 7122-7131, 2018. 2
+
+[17] Angjoo Kanazawa, Jason Y Zhang, Panna Felsen, and Jitendra Malik. Learning 3d human dynamics from video. In CVPR, pages 5607-5616, 2019. 2
+[18] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In arXiv, 2014. 5
+[19] Muhammed Kocabas, Salih Karagoz, and Emre Akbas. Self-supervised learning of 3d human pose using multi-view geometry. In CVPR, pages 1077–1086, 2019. 2, 5
+[20] Jan J Koenderink and Andrea J Van Doorn. Affine structure from motion. In JOSA A, 1991. 1
+[21] Nikos Kolotouros, Georgios Pavlakos, Michael J Black, and Kostas Daniilidis. Learning to reconstruct 3d human pose and shape via model-fitting in the loop. In CVPR, pages 2252-2261, 2019. 2
+[22] Yevhen Kuznietsov, Jorg Stuckler, and Bastian Leibe. Semi-supervised deep learning for monocular depth map prediction. In CVPR, pages 2215-2223, 2017. 1
+[23] Suha Kwak, Minsu Cho, and Ivan Laptev. Thin-slicing for pose: Learning to understand pose without explicit pose estimation. In CVPR, pages 4938-4947, 2016. 2, 7
+[24] Wei-Sheng Lai, Jia-Bin Huang, and Ming-Hsuan Yang. Semi-supervised learning for optical flow with generative adversarial networks. In NIPS, page 353-363, 2017. 1
+[25] Chan-Su Lee and Ahmed Elgammal. Modeling view and posture manifolds for tracking. In CVPR, pages 1-8, 2007. 2
+[26] Chen Li and Gim Hee Lee. Generating multiple hypotheses for 3d human pose estimation with mixture density network. In CVPR, pages 9879-9887, 2019. 2
+[27] Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. In JMLR, 2008. 7
+[28] Julieta Martinez, Rayat Hossain, Javier Romero, and James J Little. A simple yet effective baseline for 3d human pose estimation. In CVPR, pages 2659-2668, 2017. 2, 4
+[29] 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 3DV, pages 506-516, 2017. 1, 5
+[30] Dushyant Mehta, Srinath Sridhar, Oleksandr Sotnychenko, Helge Rhodin, Mohammad Shafiei, Hans-Peter Seidel, Weipeng Xu, Dan Casas, and Christian Theobalt. Vnect: Real-time 3d human pose estimation with a single rgb camera. In TOG, 2017. 1, 2
+[31] Anastasiia Mishchuk, Dmytro Mishkin, Filip Radenovic, and Jiri Matas. Working hard to know your neighbor's margins: Local descriptor learning loss. In NIPS, page 4829-4840, 2017. 3, 5
+[32] Thomas B Moeslund and Erik Granum. A survey of computer vision-based human motion capture. In CVIU, 2001. 1
+[33] Greg Mori, Caroline Pantofaru, Nisarg Kothari, Thomas Leung, George Toderici, Alexander Toshev, and Weilong Yang. Pose embeddings: A deep architecture for learning to match human poses. In arXiv, 2015. 2
+[34] Mohamed Omran, Christoph Lassner, Gerard Pons-Moll, Peter V. Gehler, and Bernt Schiele. Neural body fitting: Uni
+
+fying deep learning and model-based human pose and shape estimation. In 3DV, pages 484-494, 2018. 2
+[35] Georgios Pavlakos, Xiaowei Zhou, Konstantinos G Derpanis, and Kostas Daniilidis. Coarse-to-fine volumetric prediction for single-image 3d human pose. In CVPR, pages 1263-1272, 2017. 1, 4
+[36] Dario Pavllo, Christoph Feichtenhofer, David Grangier, and Michael Auli. 3d human pose estimation in video with temporal convolutions and semi-supervised training. In CVPR, pages 7745-7754, 2019. 2, 3, 5
+[37] Alin-Ionut Popa, Mihai Zanfir, and Cristian Sminchisescu. Deep multitask architecture for integrated 2d and 3d human sensing. In CVPR, pages 4714-4723, 2017. 2
+[38] Helge Rhodin, Victor Constantin, Isinsu Katircioglu, Mathieu Salzmann, and Pascal Fua. Neural scene decomposition for multi-person motion capture. In CVPR, pages 7695-7705, 2019. 3
+[39] Helge Rhodin, Mathieu Salzmann, and Pascal Fua. Unsupervised geometry-aware representation for 3d human pose estimation. In ECCV, pages 765-782, 2018. 2, 3, 5, 6
+[40] Helge Rhodin, Jörg Spörri, Isinsu Katircioglu, Victor Constantin, Frédéric Meyer, Erich Müller, Mathieu Salzmann, and Pascal Fua. Learning monocular 3d human pose estimation from multi-view images. In CVPR, pages 8437-8446, 2018. 2, 4, 5, 6
+[41] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. Imagenet large scale visual recognition challenge. In IJCV, 2015. 5
+[42] Steven M Seitz, Brian Curless, James Diebel, Daniel Scharstein, and Richard Szeliski. A comparison and evaluation of multi-view stereo reconstruction algorithms. In CVPR, pages 519-528, 2006. 1
+[43] Saurabh Sharma, Pavan Teja Varigonda, Prashast Bindal, Abhishek Sharma, and Arjun Jain. Monocular 3d human pose estimation by generation and ordinal ranking. In ICCV, pages 2325-2334, 2019. 2
+[44] Omer Sumer, Tobias Dencker, and Bjorn Ommer. Self-supervised learning of pose embeddings from spatiotemporal relations in videos. In ICCV, pages 4308-4317, 2017. 2, 7
+[45] Xiao Sun, Jiaxiang Shang, Shuang Liang, and Yichen Wei. Compositional human pose regression. In ICCV, pages 2621-2630, 2017. 1, 2
+[46] Xiao Sun, Bin Xiao, Fangyin Wei, Shuang Liang, and Yichen Wei. Integral human pose regression. In ECCV, pages 536-553, 2018. 1, 2, 4, 5
+[47] Bugra Tekin, Isinsu Katircioglu, Mathieu Salzmann, Vincent Lepetit, and Pascal Fua. Structured prediction of 3d human pose with deep neural networks. In BMVC, pages 130.1-130.11, 2016. 2
+[48] Yurun Tian, Bin Fan, and Fuchao Wu. L2-net: Deep learning of discriminative patch descriptor in euclidean space. In CVPR, pages 6128-6136, 2017. 5
+[49] Denis Tome, Chris Russell, and Lourdes Agapito. Lifting from the deep: Convolutional 3d pose estimation from a single image. In CVPR, pages 5689-5698, 2017. 1, 2, 4, 5
+
+[50] Raquel Urtasun, David J Fleet, and Pascal Fua. 3d people tracking with gaussian process dynamical models. In CVPR, pages 238-245, 2006. 2
+[51] Marton Véges, Viktor Varga, and András Lörincz. 3d human pose estimation with siamese equivariant embedding. In Neurocomputing, pages 194-201, 2019. 2, 3
+[52] Bastian Wandt and Bodo Rosenhahn. Repnet: Weakly supervised training of an adversarial reprojection network for 3d human pose estimation. In CVPR, pages 7774-7783, 2019, 2, 4
+[53] Keze Wang, Liang Lin, Chenhan Jiang, Chen Qian, and Pengxu Wei. 3d human pose machines with self-supervised learning. In T-PAMI, 2019. 2
+[54] Long Zhao, Xi Peng, Yu Tian, Mubbasir Kapadia, and Dimitris N Metaxas. Semantic graph convolutional networks for 3d human pose regression. In CVPR, pages 3420-3430, 2019, 2
+[55] Xingyi Zhou, Qixing Huang, Xiao Sun, Xiangyang Xue, and Yichen Wei. Weakly-supervised transfer for 3d human pose estimation in the wild. In ICCV, pages 398-407, 2017. 1, 2, 4
\ No newline at end of file
diff --git a/multiviewconsistentsemisupervisedlearningfor3dhumanposeestimation/images.zip b/multiviewconsistentsemisupervisedlearningfor3dhumanposeestimation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..5e92875d9c3fe96881fe843df17204d2ffbf0d9e
--- /dev/null
+++ b/multiviewconsistentsemisupervisedlearningfor3dhumanposeestimation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:24a146cf8819b1b60a16be1b8470c82dc86c224f855156287c3d63d59161f2e2
+size 379719
diff --git a/multiviewconsistentsemisupervisedlearningfor3dhumanposeestimation/layout.json b/multiviewconsistentsemisupervisedlearningfor3dhumanposeestimation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..f121a38d757547210a03dcb6d7485ded2177cc06
--- /dev/null
+++ b/multiviewconsistentsemisupervisedlearningfor3dhumanposeestimation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:93ee6b4d480f02ff2b3b8205ae5c18523e4809b58ea917a0ae3c618cb31fe23a
+size 442194
diff --git a/musicgestureforvisualsoundseparation/34f74f88-f44e-49bf-921e-0bbb214eb547_content_list.json b/musicgestureforvisualsoundseparation/34f74f88-f44e-49bf-921e-0bbb214eb547_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..e83faf59967b7dd4685f36d45a47596028d15b76
--- /dev/null
+++ b/musicgestureforvisualsoundseparation/34f74f88-f44e-49bf-921e-0bbb214eb547_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2a516e206dc157235c8a9923fb84dfb05aa8c6a8328067f574ffe604e1ec2238
+size 67676
diff --git a/musicgestureforvisualsoundseparation/34f74f88-f44e-49bf-921e-0bbb214eb547_model.json b/musicgestureforvisualsoundseparation/34f74f88-f44e-49bf-921e-0bbb214eb547_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..678a4a6952ea4b3496be75b6e3fee69d90522a10
--- /dev/null
+++ b/musicgestureforvisualsoundseparation/34f74f88-f44e-49bf-921e-0bbb214eb547_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9561b20055560165e89ef8eb89359a6864bb0c03ca3b26114f57b82637f88b85
+size 87623
diff --git a/musicgestureforvisualsoundseparation/34f74f88-f44e-49bf-921e-0bbb214eb547_origin.pdf b/musicgestureforvisualsoundseparation/34f74f88-f44e-49bf-921e-0bbb214eb547_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..b335f0b4a87cc26c6a9c79ecedf069bd35af26b8
--- /dev/null
+++ b/musicgestureforvisualsoundseparation/34f74f88-f44e-49bf-921e-0bbb214eb547_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:250abf47673a765df4f0e3fe59ea6e3424c69b0a3c580a4b2f00c8e0a94d5fca
+size 1160392
diff --git a/musicgestureforvisualsoundseparation/full.md b/musicgestureforvisualsoundseparation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..99eb10933d56b5b994abc371a22070a4eb3bfe5a
--- /dev/null
+++ b/musicgestureforvisualsoundseparation/full.md
@@ -0,0 +1,302 @@
+# Music Gesture for Visual Sound Separation
+
+Chuang Gan $^{1,2}$ , Deng Huang $^{2}$ , Hang Zhao $^{1}$ , Joshua B. Tenenbaum $^{1}$ , Antonio Torralba $^{1}$ $^{1}$ MIT, $^{2}$ MIT-IBM Watson AI Lab
+
+
+
+
+
+
+
+
+Figure 1: We propose to leverage explicit body dynamics motion cues for visual sound separation in music performances. We show that our new model can perform well on both heterogeneous and homogeneous music separation tasks.
+
+
+
+
+
+# Abstract
+
+Recent deep learning approaches have achieved impressive performance on visual sound separation tasks. However, these approaches are mostly built on appearance and optical flow like motion feature representations, which exhibit limited abilities to find the correlations between audio signals and visual points, especially when separating multiple instruments of the same types, such as multiple violins in a scene. To address this, we propose "Music Gesture," a keypoint-based structured representation to explicitly model the body and finger movements of musicians when they perform music. We first adopt a context-aware graph network to integrate visual semantic context with body dynamics, and then apply an audio-visual fusion model to associate body movements with the corresponding audio signals. Experimental results on three music performance datasets show: 1) strong improvements upon benchmark metrics for hetero-musical separation tasks (i.e. different instruments);
+
+2) new ability for effective homo-musical separation for piano, flute, and trumpet duets, which to our best knowledge has never been achieved with alternative methods.
+
+# 1. Introduction
+
+Music performance is a profoundly physical activity. Body and instrument interact in nuanced gestures to produce unique sounds [21]. When performing, pianists may strike the keys at a lower register or "tickle the ivory" up high; Violin players may move vigorously through a progression while another player sways gently with a melodic base; Flautists press a combination of keys to produce a specific note. As humans, we have the remarkable ability to distinguish different sounds from one another, and associate the sound we hear with the corresponding visual perception from the musician's bodily gestures.
+
+Inspired by this human ability, we propose "Music Gesture" (shown in Figure 1), a structured keypoint-based
+
+visual representations to make use of the body motion cues for sound source separation. Our model is built on the mix-and-separate self-supervised training procedure initially proposed by Zhao et al. [56]. Instead of purely relying on visual semantic cues [56, 17, 19, 52] or low-level optical-flow like motion representations [55], we consider to exploit the explicit human body and hand movements in the videos. To achieve this goal, we design a new framework, which consists of a video analysis network and an audio-visual separation network. The video analysis network extracts body dynamics and semantic context of musical instruments from video frames. The audio-visual separation network is then responsible for separating each sound source based on the visual context. In order to better leverage the body dynamic motions for sound separations, we further design a new audio-visual fusion module in the middle of the audio-visual separation network to adjust sound features conditioned on visual features.
+
+We demonstrate the effectiveness of our model on three musical instrument datasets, URMP [31], MUSIC [56] and AtinPiano [35]. Experimental results show that by explicitly modeling the body dynamics through the keypoint-based structured visual representations, our approach performs favorably against state-of-the-art methods on both hetero-musical and homo-musical separation task. In summary, our work makes the following contributions:
+
+- We pave a new research direction on exploiting body dynamic motions with structured keypoint-based video representations to guide the sound source separation.
+- We propose a novel audio-visual fusion module to associate human body motion cues with the sound signals.
+- Our system outperforms previous state-of-the-arts approaches on hetero-musical separation tasks by a large margin.
+- We show that the keypoint-based structured representations open up new opportunities to solve harder homo-musical separation problem for piano, flute, and trumpet duets.
+
+# 2. Related Work
+
+Sound separation. Sound separation is a central problem in the audio signal processing area [33, 22], while the classic solutions for it are based on Non-negative Matrix Factorization (NMF) [51, 11, 47]. These are not very effective as they rely on low-level correlations in the signals. Deep learning based methods are taking over in the recent years. Simpson et al. [46] and Chandra et al. [9] proposed CNN models to predict time-frequency masks for music source separation and enhancement. Another challenging problem in speech separation is identity permutation: a spectrogram classification model could not deal with the case with arbitrary number of speakers talking simultaneously. To solve
+
+this problem, Hershey et al. [24] proposed Deep Clustering and Yu et al. [54] proposed a speaker-independent training framework.
+
+Visual sound separation. Our work falls into the category of visual sound separation. Early works [5] leveraged the tight associations between audio and visual onset signal to perform audio-visual sound attribution. Recently, Zhao et al. [56] proposed a framework that learns from unlabeled videos to separate and localize sounds with the help of visual semantics cues. Gao et al. [17] combined deep networks with NMF for sound separation. Ephrat et al. [12] and Owens et al. [37] proposed to used vision to improve the quality of speech separation. Xu et al. [52] and Gao et al. [19] further improved the models with recursive models and co-separation loss. Those works all demonstrated how semantic appearances could help with sound separation. However, these methods have limited capabilities to capture the motion cues, thus restricts their applicability to solve harder sound source separation problems.
+
+Most recently, Zhao et al. [55] proposed to leverage temporal motion information to improve the vision sound separation. However, this algorithm has not yet seen wide applicability to sound separation on real mixtures. This is primarily due to the trajectory and optical flow like motion features they used are still limited to model the human-object interactions, thus can not provide strong visual conditions for the sound separation. Our work overcomes these limitations in that we study the explicit body movement cues using structured keypoint-based structured representations for audio-visual learning, which has never been explored in the audio-visual sound separation tasks.
+
+Audio-visual learning. With the emergence of deep neural networks, bridging signals of different modalities becomes easier. A series of works have been published in the past few years on audio-visual learning. By learning audio model and image model jointly or separately by distillation, good audio/visual representations can be achieved [38, 4, 2, 32, 14, 30]. Another interesting problem is sounding object localization, where the goal is to associate sounds in the visual input spatially [26, 25, 3, 43, 56]. Some other interesting directions include biometric matching [36], sound generation for videos [57], auditory vehicle tracking [16], emotion recognition [1], audio-visual co-segmentation [42], audio-visual navigation [15], and 360/stereo sound from videos [18, 34].
+
+Audio and body dynamics. There are numerous works to explore the associations between speech and facial movements [7, 6]. Multi-model signals extracted from face and speech has been used to do facial animations using speech [28, 49], generate high-quality talking face from audio [48, 27] separate mixed speech signals of multiple
+
+
+Figure 2: An overview of our model architecture. It consists of two components: a video analysis network and a visual audio separation network. The video analysis network first takes video frames to extract global context and keypoint coordinates; Then a GCN is applied to integrate the body dynamic with semantic context, and outputs a latent representation. Finally, an audio-visual separation network separates sources from the mixture audio conditioned on the visual features.
+
+speakers [12], on/off screen audio source separation[37], and lip reading from raw videos [10]. In contrast, the correlations between body pose with sound were less explored. The most relevant to us are recent works on predicting body dynamics from music [44] and body rhythms from speech [20]. This is the inverse of our goal to separate sound sources using body dynamic cues.
+
+# 3. Approach
+
+We first formalize the visual sound separation task and summarize our system pipeline in Section 3.1. Then we present the video analysis network for learning structured representation (Section 3.2) and audio-visual separation model (Section 3.3). Finally, we introduce our training objective and inference procedures in Section 3.4.
+
+# 3.1. Pipeline Overview
+
+Our goal is to associate the body dynamics with the audio signals for sound source separation. We adopt the commonly used "mix-and-separate" self-supervised training procedure introduced in [56]. The main idea of this training procedure is to create synthetic training data by mixing arbitrary sound sources from different video clips. Then the learning objective is to separate each sound from
+
+mixtures conditioned on its associated visual context.
+
+Concretely, our framework consists of two major components: a video analysis network and a audio-visual separation network (see Figure 2). During training, we randomly select $N$ video clips with paired video frames and audio signal $\{V_k, S_k\}$ , and then mix their audios by linear combinations of the audio inputs to form a synthetic mixture $S_{mix} = \sum_{k=1}^{N} S_k$ . Given a video clip $V_k$ , the video analysis network extracts global context and body dynamic features from videos. The audio-visual separation network is then responsible for separating its audio signal $S_k$ from the mixture audio $S_{mix}$ conditioned on the corresponding visual context $V_k$ . To be noted, we trained the neural network in a supervised fashion, but it learned from unlabeled video data. Therefore, we consider the training pipeline as self-supervised learning.
+
+# 3.2. Video Analysis Network
+
+Our proposed video analysis network integrates keypoint-based structured visual representations, together with global semantic context features.
+
+Visual semantic and keypoint representations. To extract global semantic features from video frames, we use ResNet-50 [23] to extract the features after the last spatial
+
+average pooling layer from the first frame of each video clip. Therefore, we obtain a 2048-dimensional context feature vector for each video clip. We also aim to capture the explicit movement of the human body parts and hand fingers through the keypoint representations. To achieve that, we adopt the AlphaPose toolbox [13] to estimate the 2D locations of human body joints. For estimation of hand pose, we first apply a pre-trained hand detection model and then use the OpenPose [8] hand API [45] to estimate the coordinates of hand keypoints. As a result, we extract 18 keypoints for human body and 21 keypoints for each hand. Since the keypoints estimation in videos in the wild is challenging and noisy, we maintain both 2D coordinates $(X,Y)$ and the confidence score of each estimated keypoint.
+
+Context-Aware Graph CNN. Once the visual semantic feature and keypoints are extracted from the raw video, we adopt a context-aware Graph CNN (CT-GCN) to fuse the semantic context of instruments and human body dynamics. This architecture is designed for the non-grid data, suitable for explicitly modeling the spatial-temporal relationships among different keypoints on the body and hands.
+
+The network architecture design is inspired by previous work on action recognition [53] and human shape reconstruction [29]. Similar to [53], we start by constructing a undirected spatial-temporal graph $G = \{V, E\}$ on a human skeleton sequence. In this graph, each node $v_{i} \in \{V\}$ corresponds to a keypoint of the human body; edges reflect the natural connectivity of body keypoints.
+
+The input features for each node is represented as 2D coordinates and the confidence score of a detected keypoint over time $T$ . To model the spatial-temporal body dynamics, we first apply a Graph Convolution Network to encode the pose at each time step independently. Then, we perform a standard temporal convolution on the resulting tensor to fuse the temporal information. The encoded pose feature $f_{v}$ is defined as follows:
+
+$$
+f _ {v} = \hat {A} X W _ {s} W _ {t}, \tag {1}
+$$
+
+where $X \in R^{N \times T \times D_n}$ is the input features, $W_s$ and $W_t$ are the weight matrices of spatial graph convolution and 2D convolution, and $\hat{A} \in R^{N \times N}$ is the row-normalized adjacency matrix of the graph; $N$ represents the number of keypoints; $D_n$ represents the feature dimension for each input node. Inspired by previous work [53], we define the adjacency matrix based on the joint connections of the body and fingers. The output of the GCNs is updated features of each keypoint node.
+
+To further incorporate the visual semantic cues, we concatenated the visual appearance context features to each node feature as the final output of the video analysis network. The context-aware graph CNN is capable of modeling both semantic context and body dynamics, thus providing strong visual cues to guide sound separations. There
+
+could be other model designs options. We leave this to future work.
+
+# 3.3. Audio-Visual Separation Network
+
+Finally, we have an audio-visual separation network, which takes the spectrogram of mixture audio with visual representation produced by the video analysis network as input, to predict a spectrogram mask and generate the audio signal for the selected video.
+
+Audio Network. We adopt a U-Net style architecture [41], namely an encoder-decoder network with skip connections for the audio network. It consists of 4 dilated convolution layers and 4 dilated up-convolution layers. All dilated convolutions and up-convolutions use $3 \times 3$ spatial filters with stride 2, dilation 1 and followed by a BatchNorm layer and a Leaky ReLU. The input of the audio network is a 2D time-frequency spectrogram of mixture sound and the output is a same-size binary spectrogram mask. We infuse the visual features into the middle part of the U-Net for guiding the sound separation.
+
+Audio-visual fusion. To better leverage body dynamic cues to guide the sound separation, we adopt a self-attention [50] based cross-modal early fusion module to capture the correlations between body movement with the sound signals. As shown in Figure 3, the fused feature $z_{t}$ at each time step $t$ is defined as follows:
+
+$$
+h _ {t} = \operatorname {S o f t m a x} \left(f _ {s} ^ {t} \cdot f _ {v} ^ {t T}\right) f _ {v} ^ {t} + f _ {s} ^ {t}, \tag {2}
+$$
+
+$$
+z _ {t} = M L P \left(h _ {t}\right) + h _ {t}, \tag {3}
+$$
+
+where $f_{s}^{t} \in R^{F \times D_{s}}$ and $f_{v}^{t} \in R^{N \times D_{v}}$ represents visual and sound features at time step $t$ . $F, D_{v}$ , and $D_{s}$ denote the frequency bases of the sound spectrogram, the dimensions of visual features, and the dimension of sound features, respectively. The softmax computation is along the dimension of visual feature channels. The visual feature is then weighted by attention matrix and concatenated with the sound feature. We further add a multi-layer perceptron (MPL) with residual connection to produce the output features. The MLP is
+
+
+Figure 3: Audio-visual fusion module of the model in Figure 2.
+
+implemented with two fully-connected layers with a ReLU activation function. This attention mechanism enforces the model to focus more on the discriminative body keypoints, and associate them with the corresponding sound components on the spectrogram.
+
+# 3.4. Training and Inferences
+
+The learning objective of our model is to estimate a binary mask $M_{k}$ . The ground truth mask of $k$ -th video is calculated whether the target sound is the dominant component in the input mixed sound on magnitude spectrogram $S$ , i.e.,
+
+$$
+M _ {k} (t, f) = \llbracket S _ {k} (t, f) \geq S _ {m i x} (t, f) \rrbracket , \quad \forall k = (1, \dots , N), \tag {4}
+$$
+
+where $(t, f)$ represents the time-frequency coordinates in the sound spectrogram. The network is trained by minimizing the per-pixel sigmoid cross entropy loss between the estimated masks and the ground-truth binary masks. Then the predicted mask is thresholded and multiplied with the input complex STFT coefficients to get a predicted sound spectrogram. Finally, we apply an inverse short-time Fourier Transform (iSTFT) with the same transformation parameters on the predicted spectrogram to reconstruct the waveform of separated sound.
+
+During testing, our model takes a single realistic multisource video to perform sound source separation. We first localize human in the video frames. For each detected person, we use the video analysis network to extract visual feature to isolate the portion of the sound belonging to this musician from the mixed audio.
+
+# 4. Experiments
+
+In this section, we discuss our experiments, implementation details, comparisons and evaluations.
+
+# 4.1. Dataset
+
+We perform experiments on three video music performance datasets, namely MUSIC-21[55], URMP [31] and AtinPiano [35]. MUSIC-21 is an untrimmed video dataset crawled by keyword query from Youtube. It contains music performances belonging to 21 categories. This dataset is relatively clean and collected for the purpose of training and evaluating visual sound source separation models. URMP [31] is a high quality multi-instrument video dataset recorded in studio and provides ground truth labels for each sound source. AtinPiano [35] is a dataset where the piano video recordings are filmed in a way that camera is looking down on the keyboard and hands.
+
+# 4.2. Hetero-musical Separation
+
+We first evaluate the model performance in the task of separating sounds from different kinds of instruments on
+
+the MUSIC dataset.
+
+Baseline and evaluation metrics
+
+We consider 5 state-of-
+
+the-art systems to compare against.
+
+- NMF [51] is a well-established pipeline for audio-only source separation based on matrix factorization;
+- Deep Separation [9] is a CNN-based audio-only source separation approach;
+- MIML [17] is a model that combines NMF decomposition and multi-instance multi-label learning;
+- Sound of Pixels [56] is a pioneering work that uses vision for sound source separations;
+- Co-separation [19] devices a new model that incorporates an object-level co-separation loss into the mix-and-separate framework [56];
+- Sound of Motions [55] is a recently proposed self-supervised model which leverages trajectory motion cues.
+
+We adopt the blind separation metrics, including signal-to-distortion ratio (SDR), and signal-to-interference ratio (SIR) to quantitatively compare the quality of the sound separation. The results reported in this paper were obtained by using the open-source mir_eval [40] library.
+
+Experimental Setup Following the experiment protocol in Zhao et al. [55], we split all videos on MUSCI dataset into a training set and a test set. We train and evaluate our model using mix-2 and mix-3 samples, which contain 2 and 3 sound sources of different instruments in mixtures. Since the real mix video data with multiple sounds on the MUSIC dataset do not have ground-truth labels for quantitative evaluation, we construct a synthetic testing set by mixing solo videos. The result of model performances are reported on a validation set with 256 pairs of sound mixtures, the same as [55]. We also perform a human study on the real mixtures on MUSIC and URMP dataset to measure human's perceptual quality.
+
+Implementation Details We implement our framework using Pytorch. We first extract a global context feature from a video clip using ResNet-50 [23] and the coordinates of body and hand key points for each frame using OpenPose [8] and AlphaPose [13]. Our GCN model consists of 11-layers with residual connections. When training the graph CNN network, we first pass the keypoint coordinates to a batch normalization layer to keep the scale of the input same. During training, we also randomly move the coordinates as data augmentation to avoid overfitting.
+
+For the audio data pre-processing, we first re-sample the audio to $11\mathrm{kHz}$ . During training, we randomly take a 6-second video clip from the dataset. The audio-visual separation network takes a 6-second mixed audio clip as input, and transforms it into spectrogram by Short Time Fourier Transform (STFT). We set the frame size and hop size as
+
+| Methods | 2-Mix | 3-Mix |
| SDR | SIR | SDR | SIR |
| NMF [51] | 2.78 | 6.70 | 2.01 | 2.08 |
| Deep Separation [9] | 4.75 | 7.00 | - | - |
| MIML [17] | 4.25 | 6.23 | - | - |
| Sound of Pixels [56] | 7.52 | 13.01 | 3.65 | 8.77 |
| Co-Separation [19] | 7.64 | 13.8 | 3.94 | 8.93 |
| Sound of Motion [55] | 8.31 | 14.82 | 4.87 | 9.48 |
| Our | 10.12 | 15.81 | 5.41 | 11.47 |
+
+1022 and 256, respectively. The spectrogram is then fed into a U-Net with 4 dilated convolution and 4 deconvolution layers. The output of U-Net is an estimated binary mask. We set a threshold of 0.7 to obtain a binary mask, and then multiply it with the input mixture sound spectrogram. An iSTFT with the same parameters as the STFT is applied to obtain the final separated audio waveforms.
+
+We train our model using SGD optimizer with 0.9 momentum. The audio separation Network and the fusion module use a learning rate of 1e-2; the ST-GCN Network and Appearance Network use a learning rate of 1e-3.
+
+Quantitative Evaluation. Table 1 summarizes the comparison results against state-of-the-art methods on MUSIC. We observe that our method consistently outperforms all baselines in separation accuracy, as captured across metrics. Remarkably, our system outperforms a previous state-of-the-art algorithm [55] by 1.8dB on 2-mix and 0.6dB on 3-mix source separation in term of SDR score. These quantitative results suggest that our model can successfully exploit the explicit body dynamic motions to improve the sound separation quality.
+
+Qualitative evaluation on real mixtures. Our quantitative results demonstrate that our model achieves better results than baselines. However, these metrics are limited in their ability to reflect the actual perceptual quality of the sound separation result on real-world videos. Therefore, we further conduct a subjective human study using real mixture videos from MUSIC and URMP datasets on Amazon Mechanical Turk (AMT).
+
+Specifically, we compare sound separation results of our own model with best baseline system [55] The AMT workers are required to compare these two systems and answer the following question: "Which sound separation result is better?." We randomly shuffle the orders of two models to
+
+Table 1: Sound source separation performance ( $N = 2,3$ mixture) on different instruments. Compared to previous approaches, our models with body dynamic motion information perform better in sound separation.
+
+| Method | 2-Mix | 3-Mix |
| Sound of Motions [55] | 24% | 16% |
| Ours | 76% | 84% |
+
+Table 2: Human evaluation results for the sound source separation on mixtures of the different instruments.
+
+| Method | SDR |
| Ours w/o fusion | 9.64 |
| Ours w/o RGB | 10.22 |
| Our | 10.12 |
+
+Table 3: Ablated study on SDR metric for mixtures of 2 different instruments.
+
+avoid shortcut solutions. Each job is performed independently by 3 AMT workers. Results are shown in Table 2 using majority voting. From this table, we find workers favor our system for both 2-mix and 3-mix sound separation.
+
+# 4.3. Ablated study
+
+In this section, we perform in-depth ablation studies to evaluate the impact of each component of our model.
+
+Keypoint-based representation. The main contribution of our paper is to use explicit body motions through keypoint-based structure representations for source separation. To further understand the ability of these representations, we conduct an ablated study using the keypoint-based structure representation only, without the RGB context features. Interestingly, we can observe that keypoint-based representations alone could also achieve very strong results (see Table 3). We hope our findings could inspire more works using structured keypoint-based representations for the audio-visual scene analysis tasks.
+
+Visual-Audio Fusion Module. We propose a novel attention based audio-visual fusion model. To verify its efficacy, we replace this module with Feature-wise Linear Modulation (FiLM) [39] used in [55]. The comparison results are shown in Table 3. We can find that the proposed audio-visual fusion module brings 0.5dB improvement in term of SDR metric on 2-mix sound source separation.
+
+# 4.4. Homo-musical Separation
+
+In this section, we conduct experiments on a more challenging task, sound separation when sound is generated by the same instruments.
+
+Experiment Setup We select 5 kinds of musical instruments whose sounds are closely related to body dynamic: trumpet, flute, piano, violin, and cello for evaluation.
+
+Inspired by previous work [55, 37], we also adopt a 2-stage curriculum learning strategy to train the sound separation model of the same instruments. In particular, we first pre-train the model on multiple instrument separation, then learn to separate the same instrument. We compare our model against SoM [55], since previous appearance based models fail to produce meaningful results in this challenging setting. The results are measured by both automatic SDR scores and human evaluations on AMT.
+
+Results Analysis. Results are shown in Table 4 and Table 5. From these tables, we have three key observations: 1) our proposed model consistently outperforms the SoM system [55] for all five instruments measured by both automatic and human evaluation metrics; 2) The quantitative results on separating violin and cello duets are close (See Table 4). However, we find that the SoM system is quite brittle when testing on the real mixtures. People tend to vote our system more on real mixtures, as shown in Table 5; 3) The SoM provides much inferior results on trumpet, piano, and flute duets compared to our model, since the gap is larger than $3\mathrm{dB}$ . This is not very surprising since separating duet of these three instruments mainly relies on hand pose movements. It is very hard for the trajectory and optical flow features to capture such fine-grained hand movements. Our approach can overcome this challenge in that we explicit model the body motions by tracking the coordinates changes of hand keypoints. These results further validate the efficacy of body dynamics motions on solving more and harder visual sound separation problems.
+
+# 4.5. Visualizations
+
+As a further analysis, we would like to understand how body keypoints matters the sound source separation. Figure 4 visualize the learned attention map of keypoints in the audio-visual fusion module. We observe that our model tends to focus more on hand keypoints when separating gui
+
+| Instrument | SoM [55] | Ours |
| trumpet | 1.8 | 4.9 |
| flute | 1.5 | 5.3 |
| piano | 0.8 | 3.8 |
| violin | 6.3 | 6.7 |
| cello | 5.4 | 6.1 |
+
+Table 4: Sound source separation performance on duets of the same instruments under the SDR metric.
+
+| Instrument | SoM [55] | Ours |
| trumpet | 18% | 82% |
| flute | 14% | 86% |
| piano | 30% | 70% |
| violin | 26% | 74% |
| cello | 28% | 72% |
+
+Table 5: Human evaluation result for the sound source separation on mixture of the same instruments.
+
+tar and flute sounds, while pays more attention to elbows when separating the cello and violin.
+
+Fig 5 shows qualitative results comparison between our model and the previous state-of-the-art SoM [55] on separating 3 different instruments and 2 same instruments. The first row shows the video frame example, the second row shows the spectrogram of the audio mixture. The third to fifth rows show ground truth masks, masks predicted by SoM, and masks predicted by our method. The sixth to eighth rows show the ground truth spectrogram and comparisons of predicted spectrogram after applying masks on the input spectrogram. We can observe that our system produces cleaner sound separation outputs.
+
+Though the results are remarkable and constitute a noticeable step towards more challenging visual sound separation, our system is still far from perfect. We observed that
+
+
+Figure 4: The attention map of body keypoints. Brighter color means higher attention score.
+
+
+Figure 5: Qualitative results on visual sound separation compared with Sound of Motions (SoM) [55].
+
+our method is not resilient against camera viewpoint change and body part occlusions of the musician. We conjecture that unsupervised learning of keypoints from raw images for visual sound separation might be a promising direction to explore for future work.
+
+# 5. Conclusions and Future Work
+
+In this paper, we show that keypoint-based structured visual representations are powerful for visual sound separation. Extensive evaluations show that, compared to previous appearance and low-level motion-based models, we are able to perform better on audio-visual source separation of dif
+
+ferent instruments; we can also achieve remarkable results on separating sounds of same instruments (e.g. piano, flute, and trumpet), which was impossible before. We hope our work will open up avenues of using structured visual representations for audio-visual scene analysis. In their future, we plan to extend our approach to more general audio-visual data with more complex human-object interactions.
+
+Acknowledgement This work is supported by ONR MURI N00014-16-1-2007, the Center for Brain, Minds, and Machines (CBMM, NSF STC award CCF-1231216), and IBM Research.
+
+# References
+
+[1] Samuel Albanie, Arsha Nagrani, Andrea Vedaldi, and Andrew Zisserman. Emotion recognition in speech using cross-modal transfer in the wild. ACM Multimedia, 2018. 2
+[2] Relja Arandjelovic and Andrew Zisserman. Look, listen and learn. In 2017 IEEE International Conference on Computer Vision (ICCV), pages 609-617. IEEE, 2017. 2
+[3] Relja Arandjelović and Andrew Zisserman. Objects that sound. arXiv preprint arXiv:1712.06651, 2017. 2
+[4] Yusuf Aytar, Carl Vondrick, and Antonio Torralba. Sound-net: Learning sound representations from unlabeled video. In Advances in Neural Information Processing Systems, pages 892-900, 2016. 2
+[5] Zohar Barzelay and Yoav Y Schechner. Harmony in motion. In Computer Vision and Pattern Recognition, 2007. CVPR'07. IEEE Conference on, pages 1-8. IEEE, 2007. 2
+[6] Matthew Brand. Voice puppetry. In Proceedings of the 26th annual conference on Computer graphics and interactive techniques, pages 21-28, 1999. 2
+[7] Christoph Bregler, Michele Covell, and Malcolm Slaney. Video rewrite: driving visual speech with audio. 1997. 2
+[8] Zhe Cao, Gines Hidalgo, Tomas Simon, Shih-En Wei, and Yaser Sheikh. OpenPose: realtime multi-person 2D pose estimation using Part Affinity Fields. In arXiv preprint arXiv:1812.08008, 2018. 4, 5
+[9] Pritish Chandna, Marius Miron, Jordi Janer, and Emilia Gómez. Monoaural audio source separation using deep convolutional neural networks. In ICLVASS, pages 258-266, 2017. 2, 5, 6
+[10] Joon Son Chung, Andrew W Senior, Oriol Vinyals, and Andrew Zisserman. Lip reading sentences in the wild. In CVPR, pages 3444-3453, 2017. 3
+[11] Andrzej Cichocki, Rafal Zdunek, Anh Huy Phan, and Shunichi Amari. Nonnegative matrix and tensor factorizations: applications to exploratory multi-way data analysis and blind source separation. John Wiley & Sons, 2009. 2
+[12] Ariel Ephrat, Inbar Mosseri, Oran Lang, Tali Dekel, Kevin Wilson, Avinatan Hassidim, William T Freeman, and Michael Rubinstein. Looking to listen at the cocktail party: a speaker-independent audio-visual model for speech separation. ACM Transactions on Graphics (TOG), 37(4):112, 2018. 2, 3
+[13] Hao-Shu Fang, Shuqin Xie, Yu-Wing Tai, and Cewu Lu. RMPE: Regional multi-person pose estimation. In ICCV, 2017. 4, 5
+[14] Chuang Gan, Naiyan Wang, Yi Yang, Dit-Yan Yeung, and Alex G Hauptmann. Devnet: A deep event network for multimedia event detection and evidence recounting. In CVPR, pages 2568-2577, 2015. 2
+[15] Chuang Gan, Yiwei Zhang, Jiajun Wu, Boqing Gong, and Joshua B Tenenbaum. Look, listen, and act: Towards audio-visual embodied navigation. ICRA, 2020. 2
+[16] Chuang Gan, Hang Zhao, Peihao Chen, David Cox, and Antonio Torralba. Self-supervised moving vehicle tracking with stereo sound. In ICCV, pages 7053-7062, 2019. 2
+
+[17] Ruohan Gao, Rogerio Feris, and Kristen Grauman. Learning to separate object sounds by watching unlabeled video. In ECCV, 2018. 2, 5, 6
+[18] Ruohan Gao and Kristen Grauman. 2.5 d visual sound. arXiv preprint arXiv:1812.04204, 2018. 2
+[19] Ruohan Gao and Kristen Grauman. Co-separating sounds of visual objects. ICCV, 2019. 2, 5, 6
+[20] Shiry Ginosar, Amir Bar, Gefen Kohavi, Caroline Chan, Andrew Owens, and Jitendra Malik. Learning individual styles of conversational gesture. In CVPR, pages 3497-3506, 2019. 3
+[21] Rolf Inge Godoy and Marc Leman. Musical gestures: Sound, movement, and meaning. Routledge, 2010. 1
+[22] Simon Haykin and Zhe Chen. The cocktail party problem. Neural computation, 17(9):1875-1902, 2005. 2
+[23] 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. 3, 5
+[24] John R Hershey, Zhuo Chen, Jonathan Le Roux, and Shinji Watanabe. Deep clustering: Discriminative embeddings for segmentation and separation. In Acoustics, Speech and Signal Processing (ICASSP), 2016 IEEE International Conference on, pages 31-35. IEEE, 2016. 2
+[25] John R. Hershey and Javier R. Movellan. Audio vision: Using audio-visual synchrony to locate sounds. In S. A. Solla, T. K. Leen, and K. Müller, editors, Advances in Neural Information Processing Systems 12, pages 813–819. MIT Press, 2000. 2
+[26] Hamid Izadinia, Imran Saleemi, and Mubarak Shah. Multimodal analysis for identification and segmentation of moving-sounding objects. IEEE Transactions on Multimedia, 15(2):378-390, 2013. 2
+[27] Amir Jamaludin, Joon Son Chung, and Andrew Zisserman. You said that?: Synthesising talking faces from audio. International Journal of Computer Vision, pages 1-13, 2019. 2
+[28] Tero Karras, Timo Aila, Samuli Laine, Antti Herva, and Jaakko Lehtinen. Audio-driven facial animation by joint end-to-end learning of pose and emotion. ACM Transactions on Graphics (TOG), 36(4):94, 2017. 2
+[29] Nikos Kolotouros, Georgios Pavlakos, and Kostas Dani-ilidis. Convolutional mesh regression for single-image human shape reconstruction. In CVPR, pages 4501–4510, 2019. 4
+[30] Bruno Korbar, Du Tran, and Lorenzo Torresani. Co-training of audio and video representations from self-supervised temporal synchronization. arXiv preprint arXiv:1807.00230, 2018. 2
+[31] Bochen Li, Xinzhao Liu, Karthik Dinesh, Zhiyao Duan, and Gaurav Sharma. Creating a multitrack classical music performance dataset for multimodal music analysis: Challenges, insights, and applications. IEEE Transactions on Multimedia, 21(2):522-535, 2018. 2, 5
+[32] Xiang Long, Chuang Gan, Gerard De Melo, Jiajun Wu, Xiao Liu, and Shilei Wen. Attention clusters: Purely attention based local feature integration for video classification. In CVPR, pages 7834-7843, 2018. 2
+
+[33] Josh H McDermott. The cocktail party problem. Current Biology, 19(22):R1024-R1027, 2009. 2
+[34] Pedro Morgado, Nuno Nvasconcelos, Timothy Langlois, and Oliver Wang. Self-supervised generation of spatial audio for 360 video. In NIPS, 2018. 2
+[35] Amit Moryossef, Yanai Elazar, and Yoav Goldberg. At your fingertips: Automatic piano fingering detection, 2020. 2, 5
+[36] Arsha Nagrani, Samuel Albanie, and Andrew Zisserman. Seeing voices and hearing faces: Cross-modal biometric matching. arXiv preprint arXiv:1804.00326, 2018. 2
+[37] Andrew Owens and Alexei A Efros. Audio-visual scene analysis with self-supervised multisensory features. ECCV, 2018. 2, 3, 7
+[38] Andrew Owens, Jiajun Wu, Josh H McDermott, William T Freeman, and Antonio Torralba. Ambient sound provides supervision for visual learning. In European Conference on Computer Vision, pages 801-816. Springer, 2016. 2
+[39] Ethan Perez, Florian Strub, Harm De Vries, Vincent Dumoulin, and Aaron Courville. Film: Visual reasoning with a general conditioning layer. arXiv preprint arXiv:1709.07871, 2017. 7
+[40] Colin Raffel, Brian McFee, Eric J Humphrey, Justin Salamon, Oriol Nieto, Dawen Liang, Daniel PW Ellis, and C Colin Raffel. mir.eval: A transparent implementation of common mir metrics. In In Proceedings of the 15th International Society for Music Information Retrieval Conference, ISMIR. Citeseer, 2014. 5
+[41] 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
+[42] Andrew Rouditchenko, Hang Zhao, Chuang Gan, Josh McDermott, and Antonio Torralba. Self-supervised audio-visual co-segmentation. In ICASSP 2019-2019 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 2357-2361. IEEE, 2019. 2
+[43] Arda Senocak, Tae-Hyun Oh, Junsik Kim, Ming-Hsuan Yang, and In So Kweon. Learning to localize sound source in visual scenes. arXiv preprint arXiv:1803.03849, 2018. 2
+[44] Eli Shlizerman, Lucio Dery, Hayden Schoen, and Ira Kemelmacher-Shlizerman. Audio to body dynamics. In CVPR, pages 7574-7583, 2018. 3
+[45] Tomas Simon, Hanbyul Joo, Iain Matthews, and Yaser Sheikh. Hand keypoint detection in single images using multiview bootstrapping. In CVPR, 2017. 4
+[46] Andrew JR Simpson, Gerard Roma, and Mark D Plumbley. Deep karaoke: Extracting vocals from musical mixtures using a convolutional deep neural network. In International Conference on Latent Variable Analysis and Signal Separation, pages 429-436. Springer, 2015. 2
+[47] Paris Smaragdis and Judith C Brown. Non-negative matrix factorization for polyphonic music transcription. In Applications of Signal Processing to Audio and Acoustics, 2003 IEEE Workshop on., pages 177-180. IEEE, 2003. 2
+[48] Supasorn Suwajanakorn, Steven M Seitz, and Ira Kemelmacher-Shlizerman. Synthesizing obama: learn
+
+ing lip sync from audio. ACM Transactions on Graphics (TOG), 36(4):95, 2017. 2
+[49] Sarah Taylor, Taehwan Kim, Yisong Yue, Moshe Mahler, James Krahe, Anastasio Garcia Rodriguez, Jessica Hodgins, and Iain Matthews. A deep learning approach for generalized speech animation. ACM Transactions on Graphics (TOG), 36(4):93, 2017. 2
+[50] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NIPS, pages 5998-6008, 2017. 4
+[51] Tuomas Virtanen. Monaural sound source separation by nonnegative matrix factorization with temporal continuity and sparseness criteria. IEEE transactions on audio, speech, and language processing, 15(3):1066-1074, 2007. 2, 5, 6
+[52] Xudong Xu, Bo Dai, and Dahua Lin. Recursive visual sound separation using minus-plus net. In The IEEE International Conference on Computer Vision (ICCV), October 2019. 2
+[53] Sijie Yan, Yuanjun Xiong, and Dahua Lin. Spatial temporal graph convolutional networks for skeleton-based action recognition. In AAAI, 2018. 4
+[54] Dong Yu, Morten Kolbæk, Zheng-Hua Tan, and Jesper Jensen. Permutation invariant training of deep models for speaker-independent multi-talker speech separation. In Acoustics, Speech and Signal Processing (ICASSP), 2017 IEEE International Conference on, pages 241-245. IEEE, 2017. 2
+[55] Hang Zhao, Chuang Gan, Wei-Chiu Ma, and Antonio Torralba. The sound of motions. ICCV, 2019. 2, 5, 6, 7, 8
+[56] Hang Zhao, Chuang Gan, Andrew Rouditchenko, Carl Vondrick, Josh McDermott, and Antonio Torralba. The sound of pixels. In *The European Conference on Computer Vision (ECCV)*, September 2018. 2, 3, 5, 6
+[57] Yipin Zhou, Zhaowen Wang, Chen Fang, Trung Bui, and Tamara L Berg. Visual to sound: Generating natural sound for videos in the wild. arXiv preprint arXiv:1712.01393, 2017. 2
\ No newline at end of file
diff --git a/musicgestureforvisualsoundseparation/images.zip b/musicgestureforvisualsoundseparation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..a84308c80c682b9559f2f6080779e519e95c474e
--- /dev/null
+++ b/musicgestureforvisualsoundseparation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f189aa648db0d37afe835c64ff82700f7e4183acc3281516591c63cd8abddeb2
+size 643610
diff --git a/musicgestureforvisualsoundseparation/layout.json b/musicgestureforvisualsoundseparation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..452a8bd2d37c8213ac00c5cce4581722b2531ea9
--- /dev/null
+++ b/musicgestureforvisualsoundseparation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:95c0ab5f9302efea80764942fdb6d356dc4e9a7c6be9cd59506aad9e0628dadf
+size 331165
diff --git a/nasfcosfastneuralarchitecturesearchforobjectdetection/79a4edf5-3b22-4630-b44f-a57292a0b1b8_content_list.json b/nasfcosfastneuralarchitecturesearchforobjectdetection/79a4edf5-3b22-4630-b44f-a57292a0b1b8_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..3c4ada8c83a02b218f5adcae94d5f77f640152cb
--- /dev/null
+++ b/nasfcosfastneuralarchitecturesearchforobjectdetection/79a4edf5-3b22-4630-b44f-a57292a0b1b8_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4e046b6b649f310f25c14c0516d366dbf32429ab8ea00e53dc313e4080eaee8e
+size 67709
diff --git a/nasfcosfastneuralarchitecturesearchforobjectdetection/79a4edf5-3b22-4630-b44f-a57292a0b1b8_model.json b/nasfcosfastneuralarchitecturesearchforobjectdetection/79a4edf5-3b22-4630-b44f-a57292a0b1b8_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..0c54349b5d4375e7678a6ffa774e6cce345b21ca
--- /dev/null
+++ b/nasfcosfastneuralarchitecturesearchforobjectdetection/79a4edf5-3b22-4630-b44f-a57292a0b1b8_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fc0424a9f81308da2e7fccef328da1e4b84ce54d8113f8721a238378fc8b5d59
+size 81784
diff --git a/nasfcosfastneuralarchitecturesearchforobjectdetection/79a4edf5-3b22-4630-b44f-a57292a0b1b8_origin.pdf b/nasfcosfastneuralarchitecturesearchforobjectdetection/79a4edf5-3b22-4630-b44f-a57292a0b1b8_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..91f9e00c4cb23c58172d7af1b9d8a12b90261aff
--- /dev/null
+++ b/nasfcosfastneuralarchitecturesearchforobjectdetection/79a4edf5-3b22-4630-b44f-a57292a0b1b8_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6a55773e9edd79cff678b9be0e0561297d004b48889c80b6fcedb05d09b6510e
+size 537243
diff --git a/nasfcosfastneuralarchitecturesearchforobjectdetection/full.md b/nasfcosfastneuralarchitecturesearchforobjectdetection/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..50ecae75dc81936a496c358f59c3a0c4bc872b2f
--- /dev/null
+++ b/nasfcosfastneuralarchitecturesearchforobjectdetection/full.md
@@ -0,0 +1,281 @@
+# NAS-FCOS: Fast Neural Architecture Search for Object Detection*
+
+Ning Wang†‡, Yang Gao†‡, Hao Chen, Peng Wang†‡, Zhi Tian, Chunhua Shen, Yanning Zhang†‡ † School of Computer Science, Northwestern Polytechnical University, China
+
+$\ddagger$ National Engineering Lab for Integrated Aero-Space-Ground-Ocean Big Data Application Technology, China
+ $\diamond$ The University of Adelaide, Australia
+
+# Abstract
+
+The success of deep neural networks relies on significant architecture engineering. Recently neural architecture search (NAS) has emerged as a promise to greatly reduce manual effort in network design by automatically searching for optimal architectures, although typically such algorithms need an excessive amount of computational resources, e.g., a few thousand GPU-days. To date, on challenging vision tasks such as object detection, NAS, especially fast versions of NAS, is less studied. Here we propose to search for the decoder structure of object detectors with search efficiency being taken into consideration. To be more specific, we aim to efficiently search for the feature pyramid network (FPN) as well as the prediction head of a simple anchor-free object detector, namely FCOS [24], using a tailored reinforcement learning paradigm. With carefully designed search space, search algorithms and strategies for evaluating network quality, we are able to efficiently search a top-performing detection architecture within 4 days using 8 V100 GPUs. The discovered architecture surpasses state-of-the-art object detection models (such as Faster R-CNN, RetinaNet and FCOS) by 1.5 to 3.5 points in AP on the COCO dataset, with comparable computation complexity and memory footprint, demonstrating the efficacy of the proposed NAS for object detection.
+
+# 1. Introduction
+
+Object detection is one of the fundamental tasks in computer vision, and has been researched extensively. In the past few years, state-of-the-art methods for this task are based on deep convolutional neural networks (such as Faster R-CNN [20], RetinaNet [11]), due to their impressive performance. Typically, the designs of object detection networks are much more complex than those for image classification, because the former need to localize and classify multiple objects in an image simultaneously while the latter
+
+only need to output image-level labels. Due to its complex structure and numerous hyper-parameters, designing effective object detection networks is more challenging and usually needs much manual effort.
+
+On the other hand, Neural Architecture Search (NAS) approaches [4, 17, 32] have been showing impressive results on automatically discovering top-performing neural network architectures in large-scale search spaces. Compared to manual designs, NAS methods are data-driven instead of experience-driven, and hence need much less human intervention. As defined in [3], the workflow of NAS can be divided into the following three processes: 1) sampling architecture from a search space following some search strategies; 2) evaluating the performance of the sampled architecture; and 3) updating the parameters based on the performance.
+
+One of the main problems prohibiting NAS from being used in more realistic applications is its search efficiency. The evaluation process is the most time consuming part because it involves a full training procedure of a neural network. To reduce the evaluation time, in practice a proxy task is often used as a lower cost substitution. In the proxy task, the input, network parameters and training iterations are often scaled down to speedup the evaluation. However, there is often a performance gap for samples between the proxy tasks and target tasks, which makes the evaluation process biased. How to design proxy tasks that are both accurate and efficient for specific problems is a challenging problem. Another solution to improve search efficiency is constructing a supernet that covers the complete search space and training candidate architectures with shared parameters [15, 18]. However, this solution leads to significantly increased memory consumption and restricts itself to small-to-moderate sized search spaces.
+
+To our knowledge, studies on efficient and accurate NAS approaches to object detection networks are rarely touched, despite its significant importance. To this end, we present a fast and memory saving NAS method for object detection networks, which is capable of discovering top-performing architectures within significantly reduced search time. Our
+
+overall detection architecture is based on FCOS [24], a simple anchor-free one-stage object detection framework, in which the feature pyramid network and prediction head are searched using our proposed NAS method.
+
+Our main contributions are summarized as follows.
+
+- In this work, we propose a fast and memory-efficient NAS method for searching both FPN and head architectures, with carefully designed proxy tasks, search space and evaluation strategies, which is able to find top-performing architectures over 3,000 architectures using 28 GPU-days only.
+
+Specifically, this high efficiency is enabled with the following designs.
+
+- Developing a fast proxy task training scheme by skipping the backbone finetuning stage;
+
+- Adapting progressive search strategy to reduce time cost taken by the extended search space;
+
+- Using a more discriminative criterion for evaluation of searched architectures.
+
+- Employing an efficient anchor-free one-stage detection framework with simple post processing;
+
+- Using NAS, we explore the workload relationship between FPN and head, proving the importance of weight sharing in head.
+- We show that the overall structure of NAS-FCOS is general and flexible in that it can be equipped with various backbones including MobileNetV2, ResNet-50, ResNet-101 and ResNeXt-101, and surpasses state-of-the-art object detection algorithms using comparable computation complexity and memory footprint. More specifically, our model can improve the AP by $1.5 \sim 3.5$ points on all above models comparing to their FCOS counterparts.
+
+# 2. Related Work
+
+# 2.1. Object Detection
+
+The frameworks of deep neural networks for object detection can be roughly categorized into two types: one-stage detectors [12] and two-stage detectors [6, 20].
+
+Two-stage detection frameworks first generate class-independent region proposals using a region proposal network (RPN), and then classify and refine them using extra detection heads. In spite of achieving top performance, the two-stage methods have noticeable drawbacks: they are computationally expensive and have many hyperparameters that need to be tuned to fit a specific dataset.
+
+In comparison, the structures of one-stage detectors are much simpler. They directly predict object categories and
+
+bounding boxes at each location of feature maps generated by a single CNN backbone.
+
+Note that most state-of-the-art object detectors (including both one-stage detectors [12, 16, 19] and two-stage detectors [20]) make predictions based on anchor boxes of different scales and aspect ratios at each convolutional feature map location. However, the usage of anchor boxes may lead to high imbalance between object and non-object examples and introduce extra hyper-parameters. More recently, anchor-free one-stage detectors [9, 10, 24, 29, 30] have attracted increasing research interests, due to their simple fully convolutional architectures and reduced consumption of computational resources.
+
+# 2.2. Neural Architecture Search
+
+NAS is usually time consuming. We have seen great improvements from 24,000 GPU-days [32] to 0.2 GPU-day [28]. The trick is to first construct a supernet containing the complete search space and train the candidates all at once with bi-level optimization and efficient weight sharing [13, 15]. But the large memory allocation and difficulties in approximated optimization prohibit the search for more complex structures.
+
+Recently researchers [1, 5, 23] propose to apply single-path training to reduce the bias introduced by approximation and model simplification of the supernet. DetNAS [2] follows this idea to search for an efficient object detection architecture. One limitation of the single-path approach is that the search space is restricted to a sequential structure. Single-path sampling and straight through estimate of the weight gradients introduce large variance to the optimization process and prohibit the search for more complex structures under this framework. Within this very simple search space, NAS algorithms can only make trivial decisions like kernel sizes for manually designed modules.
+
+Object detection models are different from single-path image classification networks in their way of merging multilevel features and distributing the task to parallel prediction heads. Feature pyramid networks (FPNs) [4, 8, 11, 14, 27], designed to handle this job, plays an important role in modern object detection models. NAS-FPN [4] targets on searching for an FPN alternative based on one-stage framework RetinaNet [12]. Feature pyramid architectures are sampled with a recurrent neural network (RNN) controller. The RNN controller is trained with reinforcement learning (RL). However, the search is very time-consuming even though a proxy task with ResNet-10 backbone is trained to evaluate each architecture.
+
+Since all these three kinds of research ([2, 4] and ours) focus on object detection framework, we demonstrate the differences among them that DetNAS [2] aims to search for the designs of better backbones, while NAS-FPN [4] searches the FPN structure, and our search space contains
+
+# both FPN and head structure.
+
+To speed up reward evaluation of RL-based NAS, the work of [17] proposes to use progressive tasks and other training acceleration methods. By caching the encoder features, they are able to train semantic segmentation decoders with very large batch sizes very efficiently. In the sequel of this paper, we refer to this technique as fast decoder adaptation. However, directly applying this technique to object detection tasks does not enjoy similar speed boost, because they are either not in using a fully-convolutional model [11] or require complicated post processing that are not scalable with the batch size [12].
+
+To reduce the post processing overhead, we resort to a recently introduced anchor-free one-stage framework, namely, FCOS [24], which significantly improve the search efficiency by cancelling the processing time of anchor-box matching in RetinaNet.
+
+Compared to its anchor-based counterpart, FCOS significantly reduces the training memory footprint while being able to improve the performance.
+
+# 3. Our Approach
+
+In our work, we search for anchor-free fully convolutional detection models with fast decoder adaptation. Thus, NAS methods can be easily applied.
+
+# 3.1. Problem Formulation
+
+We base our search algorithm upon a one-stage framework FCOS due to its simplicity. Our training tuples $\{(\mathbf{x},Y)\}$ consist of input image tensors $\mathbf{x}$ of size $(3\times H\times W)$ and FCOS output targets $Y$ in a pyramid representation, which is a list of tensors $\mathbf{y}_l$ each of size $((K + 4 + 1)\times H_l\times W_l)$ where $H_{l}\times W_{l}$ is feature map size on level $p$ of the pyramid. $(K + 4 + 1)$ is the output channels of FCOS, the three terms are length- $K$ one-hot classification labels, 4 bounding box regression targets and 1 centerness factor respectively.
+
+The network $g: \mathbf{x} \rightarrow \hat{Y}$ in original FCOS consists of three parts, a backbone $b$ , FPN $f$ and multi-level subnets we call prediction heads $h$ in this paper. First backbone $b: \mathbf{x} \rightarrow C$ maps the input tensor to a set of intermediate-leveled features $C = \{\mathbf{c}_3, \mathbf{c}_4, \mathbf{c}_5\}$ , with resolution $(H_i \times W_i) = (H/2^i \times W/2^i)$ . Then FPN $f: C \rightarrow P$ maps the features to a feature pyramid $P = \{\mathbf{p}_3, \mathbf{p}_4, \mathbf{p}_5, \mathbf{p}_6, \mathbf{p}_7\}$ . Then the prediction head $h: \mathbf{p} \rightarrow \mathbf{y}$ is applied to each level of $P$ and the result is collected to create the final prediction. To avoid overfitting, same $h$ is often applied to all instances in $P$ .
+
+Since objects of different scales require different effective receptive fields, the mechanism to select and merge intermediate-leveled features $C$ is particularly important in object detection network design. Thus, most researches [16,
+
+[20] are carried out on designing $f$ and $h$ while using widely-adopted backbone structures such as ResNet [7]. Following this principle, our search goal is to decide when to choose which features from $C$ and how to merge them.
+
+To improve the efficiency, we reuse the parameters in $b$ pretrained on target dataset and search for the optimal structures after that. For the convenience of the following statement, we call the network components to search for, namely $f$ and $h$ , together the decoder structure for the objection detection network.
+
+$f$ and $h$ take care of different parts of the detection job. $f$ extracts features targeting different object scales in the pyramid representations $P$ , while $h$ is a unified mapping applied to each feature in $P$ to avoid overfitting. In practice, people seldom discuss the possibility of using a more diversified $f$ to extract features at different levels or how many layers in $h$ need to be shared across the levels. In this work, we use NAS as an automatic method to test these possibilities.
+
+# 3.2. Search Space
+
+Considering the different functions of $f$ and $h$ , we apply two search space respectively. Given the particularity of FPN structure, a basic block with new overall connection and $f$ 's output design is built for it. For simplicity, sequential space is applied for $h$ part.
+
+We replace the cell structure with atomic operations to provide even more flexibility. To construct one basic block, we first choose two layers $\mathbf{x}_1$ , $\mathbf{x}_2$ from the sampling pool $X$ at $\mathrm{id}1$ , $\mathrm{id}2$ , then two operations $\mathrm{op}1$ , $\mathrm{op}2$ are applied to each of them and an aggregation operation $\mathrm{agg}$ merges the two output into one feature. To build a deep decoder structure, we apply multiple basic blocks with their outputs added to the sampling pool. Our basic block $bb_{t}: X_{t-1} \to X_{t}$ at time step $t$ transforms the sampling pool $X_{t-1}$ to $X_{t} = X_{t-1} \cup \{\mathbf{x}_{t}\}$ , where $\mathbf{x}_{t}$ is the output of $bb_{t}$ .
+
+The candidate operations are listed in Table 1. We include only separable/depth-wise convolutions so that the decoder can be efficient. In order to enable the decoder to apply convolutional filters on irregular grids, here we have also included deformable $3 \times 3$ convolutions [31]. For the aggregation operations, we include element-wise sum and concatenation followed by a $1 \times 1$ convolution.
+
+The decoder configuration can be represented by a se
+
+| ID | Description |
| 0 | separable conv 3 × 3 |
| 1 | separable conv 3 × 3 with dilation rate 3 |
| 2 | separable conv 5 × 5 with dilation rate 6 |
| 3 | skip-connection |
| 4 | deformable 3 × 3 convolution |
+
+Table 1.Unary operations used in the search process.
+
+quence with three components, FPN configuration, head configuration and weight sharing stages. We provide detailed descriptions to each of them in the following sections. The complete diagram of our decoder structure is shown in Fig. 1.
+
+# 3.2.1 FPN Search Space
+
+As mentioned above, the FPN $f$ maps the convolutional features $C$ to $P$ . First, we initialize the sampling pool as $X_0 = C$ . Our FPN is defined by applying the basic block 7 times to the sampling pool, $f := bb_1^f \circ bb_2^f \circ \dots \circ bb_7^f$ . To yield pyramid features $P$ , we collect the last three basic block outputs $\{\mathbf{x}_5, \mathbf{x}_6, \mathbf{x}_7\}$ as $\{\mathbf{p}_3, \mathbf{p}_4, \mathbf{p}_5\}$ .
+
+To allow shared information across all layers, we use a simple rule to create global features. If there is some dangling layer $\mathbf{x}_t$ which is not sampled by later blocks $\{bb_i^T | i > t\}$ nor belongs to the last three layers $t < 5$ , we use element-wise add to merge it to all output features
+
+$$
+\mathbf {p} _ {i} ^ {*} = \mathbf {p} _ {i} + \mathbf {x} _ {t}, i \in \{3, 4, 5 \}. \tag {1}
+$$
+
+Same as the aggregation operations, if the features have different resolution, the smaller one is upsampled with bilinear interpolation.
+
+To be consistent with FCOS, $\mathbf{p}_6$ and $\mathbf{p}_7$ are obtained via a $3\times 3$ stride-2 convolution on $\mathbf{p}_5$ and $\mathbf{p}_6$ respectively.
+
+# 3.2.2 Prediction Head Search Space
+
+Prediction head $h$ maps each feature in the pyramid $P$ to the output of corresponding $y$ , which in FCOS and RetinaNet, consists of four $3 \times 3$ convolutions. To explore the potential of the head, we therefore extend a sequential search space for its generation. Specifically, our head is defined as a sequence of six basic operations. Compared with candidate operations in the FPN structures, the head search space has two slight differences. First, we add standard convolution modules (including conv1x1 and conv3x3) to the head sampling pool for better comparison. Second, we follow the design of FCOS by replacing all the Batch Normalization (BN) layers to Group Normalization (GN) [25] in the operations sampling pool of head, considering that head needs to share weights between different levels, which causes BN invalid. The final output of head is the output of the last (sixth) layer.
+
+# 3.2.3 Searching for Head Weight Sharing
+
+To add even more flexibility and understand the effect of weight sharing in prediction heads, we further add an index $i$ as the location where the prediction head starts to share weights. For every layer before stage $i$ , the head $h$ will create independent set of weights for each FPN output level, otherwise, it will use the global weights for sharing purpose.
+
+Considering the independent part of the heads being extended FPN branch and the shared part as head with adaptive-length, we can further balance the workload for each individual FPN branch to extract level-specific features and the prediction head shared across all levels.
+
+# 3.3. Search Strategy
+
+RL based strategy is applied to the search process. We rely on an LSTM-based controller to predict the full configuration. We consider using a progressive search strategy rather than the joint search for both FPN structure and prediction head part, since the former requires less computing resources and time cost than the latter. The training dataset is randomly split into a meta-train $D_{t}$ and meta-val $D_{v}$ subset. To speed up the training, we fix the backbone network and cache the pre-computed backbone output $C$ . This makes our single architecture training cost independent from the depth of backbone network. Taking this advantage, we can apply much more complex backbone structures and utilize high quality multilevel features as our decoder's input. We find that the process of backbone finetuning can be skipped if the cached features are powerful enough. Speedup techniques such as Polyak weight averaging are also applied during the training.
+
+The most widely used detection metric is average precision (AP). However, due to the difficulty of object detection task, at the early stages, AP is too low to tell the good architectures from the bad ones, which makes the controller take much more time to converge. To make the architecture evaluation process easier even at the early stages of the training, we therefore use negative loss sum as the reward instead of average precision:
+
+$$
+\begin{array}{l} R (a) = - \sum_ {(x, Y) \in D _ {v}} \left(L _ {c l s} (x, Y | a) \right. \tag {2} \\ + L _ {r e g} (x, Y | a) + L _ {c t r} (x, Y | a)) \\ \end{array}
+$$
+
+where $L_{cls}$ , $L_{reg}$ , $L_{ctr}$ are the three loss terms in FCOS. Gradient of the controller is estimated via proximal policy optimization (PPO) [22].
+
+# 4. Experiments
+
+# 4.1. Implementation Details
+
+# 4.1.1 Searching Phase
+
+We design a fast proxy task for evaluating the decoder architectures sampled in the searching phase. PASCAL VOC is selected as the proxy dataset, which contains 5715 training images with object bounding box annotations of 20 classes. Transfer capacity of the structures can be illustrated since the search and full training phase use different datasets. The VOC training set is randomly split into a meta-train
+
+
+Figure 1. A conceptual example of our NAS-FCOS decoder. It consists of two sub networks, an FPN $f$ and a set of prediction heads $h$ which have shared structures. One notable difference with other FPN-based one-stage detectors is that our heads have partially shared weights. Only the last several layers of the predictions heads (marked as yellow) are tied by their weights. The number of layers to share is decided automatically by the search algorithm. Note that both FPN and head are in our actual search space; and have more layers than shown in this figure. Here the figure is for illustration only.
+
+set with 4,000 images and a meta-val set with 1715 images. For each sampled architecture, we train it on metatron and compute the reward (2) on meta-val. Input images are resized to short size 384 and then randomly cropped to $384 \times 384$ . Target object sizes of interest are scaled correspondingly. We use Adam optimizer with learning rate $8e-4$ and batch size 200. Polyak averaging is applied with the decay rates of 0.9. The decoder is evaluated after 300 iterations. As we use fast decoder adaptation, the backbone features are fixed and cached during the search phase. To enhance the cached backbone features, we first initialize them with pre-trained weights provided by open-source implementation of FCOS and then finetune on VOC using the training strategies of FCOS. Note that the above finetuning process is only performed once at the beginning of the search phase.
+
+A progressive strategy is used for the search of $f$ and $h$ . We first search for the FPN part and retain the original head. All operations in the FPN structure have 64 output channels. The decoder inputs $C$ are resized to fit output channel width of FPN via $1 \times 1$ convolutions. After this step, a searched FPN structure is fixed and the second stage searching for the head will be started based on it. Most parameters for searching head are identical to those for searching FPN structure, with the exception that the output channel width is adjusted from 64 to 128 to deliver more information.
+
+For the FPN search part, the controller model nearly converged after searching over 2.8K architectures on the proxy task as shown in Fig. 2. Then, the top-20 best performing architectures on the proxy task are selected for the next full training phase. For the head search part, we choose the best searched FPN among the top-20 architectures and pre-drop its features. It takes about 600 rounds for the controller to
+
+
+Figure 2. Performance of reward during the proxy task, which has been growing throughout the process, indicating that the model of reinforcement learning works.
+
+nearly converge, which is much faster than that for searching FPN architectures. After that, we select for full training the top-10 heads that achieve best performance on the proxy task. In total, the whole search phase can be finished within 4 days using 8 V100 GPUs.
+
+# 4.1.2 Full Training Phase
+
+In this phase, we fully train the searched models on the MS COCO training dataset, and select the best one by evaluating them on MS COCO validation images. Note that our training configurations are exactly the same as those in FCOS for fair comparison. Input images are resized to short size 800 and the maximum long side is set to be 1333. The models are trained using 4 V100 GPUs with batch size 16 for 90K iterations. The initial learning rate is 0.01 and reduces to one tenth at the 60K-th and 80K-th iterations. The improving tricks are applied only on the final model (w/improv).
+
+| Decoder | Backbone | FLOPs (G) | Params (M) | AP |
| FPN-RetinaNet @256 | MobileNetV2 | 133.4 | 11.3 | 30.8 |
| FPN-FCOS @256 | MobileNetV2 | 105.4 | 9.8 | 31.2 |
| NAS-FCOS (ours) @128 | MobileNetV2 | 39.3 | 5.9 | 32.0 |
| NAS-FCOS (ours) @128-256 | MobileNetV2 | 95.6 | 9.9 | 33.8 |
| NAS-FCOS (ours) @256 | MobileNetV2 | 121.8 | 16.1 | 34.7 |
| FPN-RetinaNet @256 | R-50 | 198.0 | 33.6 | 36.1 |
| FPN-FCOS @256 | R-50 | 169.9 | 32.0 | 37.4 |
| NAS-FCOS (ours) @128 | R-50 | 104.0 | 27.8 | 37.9 |
| NAS-FCOS (ours) @128-256 | R-50 | 160.4 | 31.8 | 39.1 |
| NAS-FCOS (ours) @256 | R-50 | 189.6 | 38.4 | 39.8 |
| FPN-RetinaNet @256 | R-101 | 262.4 | 52.5 | 37.8 |
| FPN-FCOS @256 | R-101 | 234.3 | 50.9 | 41.5 |
| NAS-FCOS (ours) @256 | R-101 | 254.0 | 57.3 | 43.0 |
| FPN-FCOS @256 | X-64x4d-101 | 371.2 | 89.6 | 43.2 |
| NAS-FCOS (ours) @128-256 | X-64x4d-101 | 361.6 | 89.4 | 44.5 |
| FPN-FCOS @256 w/improvements | X-64x4d-101 | 371.2 | 89.6 | 44.7 |
| NAS-FCOS (ours) @128-256 w/improvements | X-64x4d-101 | 361.6 | 89.4 | 46.1 |
+
+Table 2. Results on test-dev set of MS COCO after full training. R-50 and R-101 represents ResNet backbones and X-64x4d-101 represents ResNeXt-101 (64 × 4d). All networks share the same input image resolution. FLOPs and parameters are being measured on 1088 × 800, which is the median of the input size on COCO. For RetinaNet and FCOS, we use official models provided by the authors. For our NASFCOS, @128 and @256 means that the decoder channel width is 128 and 256 respectively. @128-256 is the decoder with 128 FPN width and 256 head width. The same improving tricks used on the newest FCOS version are used in our model for fair comparison.
+
+
+Figure 3. Our discovered FPN structure. $C_2$ is omitted from this figure since it is not chosen by this particular structure during the search process.
+
+# 4.2. Search Results
+
+The best FPN structure is illustrated in Fig. 3. The controller identifies that deformable convolution and concatenation are the best performing operations for unary and aggregation respectively. From Fig. 4, we can see that the controller chooses to use 4 operations (with two skip connections), rather than the maximum allowed 6 operations. Note that the discovered "dconv + 1x1 conv" structure achieves a good trade-off between accuracy and FLOPs. Compared with the original head, our searched head has
+
+
+Figure 4. Our discovered Head structure.
+
+fewer FLOPs/Params (FLOPs 79.24G vs. 89.16G, Params 3.41M vs. 4.92M) and significantly better performance (AP 38.7 vs. 37.4).
+
+We use the searched decoder together with either lightweight backbones such as MobileNet-V2 [21] or more powerful backbones such as ResNet-101 [7] and ResNeXt-101 [26]. To balance the performance and efficiency, we implement three decoders with different computation budgets: one with feature dimension of 128 (@128), one with 256 (@256) and another with FPN channel width 128 and prediction head 256 (@128-256). The results on the COCO test-dev with short side being 800 is shown in Table 2. The searched decoder with feature dimension of 256 (@256) surpasses its FCOS counterpart by 1.5 to 3.5 points in AP under different backbones. The one with 128 channels (@128) has significantly reduced parameters and calculation, making it more suitable for resource-constrained environments. In particular, our searched model with 128 channels and MobileNetV2 backbone suparsses the original FCOS with the same backbone by 0.8 AP points with only 1/3 FLOPS. The third type of decoder (@128-256) achieves a good balance between accuracy and parameters. Note that our searched model outperforms the strongest FCOS variant by 1.4 AP points (46.1 vs. 44.7) with slightly smaller FLOPs and Params. The comparison of FLOPs and
+
+
+Figure 5. Trend graph of head weight sharing during search. The coordinates in the horizontal axis represent the number of the statistical period. A period consists of 50 head structures. The vertical axis represents the proportion of heads that fully share weights in 50 structures.
+
+
+Figure 6. Correlation between the search reward obtained on the VOC meta-val dataset and the AP evaluated on COCO-val.
+
+number of parameters with other models are illustrated in Fig. 7 and Fig. 8 respectively.
+
+In order to understand the importance of weight sharing in head, we add the number of layers shared by weights as an object of the search. Fig. 5 shows a trend graph of head weight sharing during search. We set 50 structures as a statistical cycle. As the search deepens, the proportion of fully shared structures increases, indicating that on the multi-scale detection model, head weight sharing is a necessity.
+
+We also demonstrate the comparison with other NAS methods for object detection in Table 3. Our method is able to search for twice more architectures than DetNAS [2] per GPU-day. Note that the AP of NAS-FPN [4] is achieved by stacking the searched FPN 7 times, while we do not stack our searched FPN. Our model with ResNeXt-101 (64x4d) as backbone outperforms NAS-FPN by 1.3 AP points while using only 1/3 FLOPs and less calculation cost.
+
+
+Figure 7. Diagram of the relationship between FLOPs and AP with different backbones. Points of different shapes represent different backbones. NAS-FCOS@128 has a slight increase in precision which also gains the advantage of computation quantity. One with 256 channels obtains the highest precision with more computation complexity. Using FPN channel width 128 and prediction head 256 (@128-256) offers a trade-off.
+
+
+Figure 8. Diagram of the relationship between parameters and AP with different backbones. Adjusting the number of channels in the FPN structure and head helps to achieve a balance between accuracy and parameters.
+
+We further measure the correlation between rewards obtained during the search process with the proxy dataset and APs attained by same architectures trained on COCO. Specifically, we randomly sample 15 architectures from all the searched structures trained on COCO with batch size 16. Since full training on COCO is time-consuming, we reduce the iterations to $60\mathrm{K}$ . The model is then evaluated on the COCO 2017 validation set. As visible in Fig. 6, there is a strong correlation between search rewards and APs obtained from COCO. Poor- and well-performing architectures can be distinguished by the rewards on the proxy task very well.
+
+# 4.3. Ablation Study
+
+# 4.3.1 Design of Reinforcement Learning Reward
+
+As we discussed above, it is common to use widely accepted indicators as rewards for specific tasks in the search,
+
+| Arch | FLOPs (G) | Search Cost (GPU-day) | Searched Archs | AP |
| NAS-FPN @256 R-50 | >325.0 | 333×#TPUs | 17000 | <38.0 |
| NAS-FPN 7@256 R-50 | 1125.5 | 333×#TPUs | 17000 | 44.8 |
| DetNAS-FPN-Faster | - | 44 | 2200 | 40.2 |
| DetNAS-RetinaNet | - | 44 | 2200 | 33.3 |
| NAS-FCOS (ours) @256 R-50 | 189.6 | 28 | 3000 | 39.8 |
| NAS-FCOS (ours) @128-256 X-64x4d-101 | 361.6 | 28 | 3000 | 46.1 |
+
+
+Figure 9. Comparison of two different RL reward designs. The vertical axis represents AP obtained from the proxy task on the validation dataset.
+
+Table 3. Comparison with other NAS methods. For NAS-FPN, the input size is $1280 \times 1280$ and the search cost should be timed by their number of TPUs used to train each architecture. Note that the FLOPs and AP of NAS-FPN @256 here are from Figure 11 in NAS-FPN [4], and NAS-FPN 7@256 stacks the searched FPN structure 7 times. The input images are resized such that their shorter size is 800 pixels in DetNASNet [2] and our models.
+
+| Decoder | Search Space | AP |
| FPN-FCOS @256 | - | 37.4 |
| NAS-FCOS @256 | h only | 38.7 |
| NAS-FCOS @256 | f only | 38.9 |
| NAS-FCOS @256 | f + h | 39.8 |
+
+Table 4. Comparisons between APs obtained under different search space with ResNet-50 backbone.
+
+such as mIOU for segmentation and AP for object detection. However, we found that using AP as reward did not show a clear upward trend in short-term search rounds (blue curve in Fig. 9). We further analyze the possible reason to be that the controller tries to learn a mapping from the decoder to the reward while the calculation of AP itself is complicated, which makes it difficult to learn this mapping within a limited number of iterations. In comparison, we clearly see the increase of AP with the validation loss as RL rewards (red curve in Fig. 9).
+
+# 4.3.2 Effectiveness of Search Space
+
+To further discuss the impact of the search spaces $f$ and $h$ , we design three experiments for verification. One is to search $f$ with the original head being fixed, one is to search
+
+$h$ with the original FPN being fixed and another is to search the entire decoder $(f + h)$ . As shown in Table 4, it turns out that searching $f$ brings slightly more benefits than searching $h$ only. And our progressive search which combines both $f$ and $h$ achieves a better result.
+
+# 4.3.3 Impact of Deformable Convolution
+
+As aforementioned, deformable convolutions are included in the set of candidate operations for both $f$ and $h$ , which are able to adapt to the geometric variations of objects. For fair comparison, we also replace the whole standard $3 \times 3$ convolutions with deformable $3 \times 3$ convolutions in FPN structure of the original FCOS and repeat them twice, making the FLOPs and parameters nearly equal to our searched model. The new model is therefore called DeformFPN-FCOS. It turns out that our NAS-FCOS model still achieves better performance (AP = 38.9 with FPN search only, and AP = 39.8 with both FPN and Head searched) than the DeformFPN-FCOS model (AP = 38.4) under this circumstance.
+
+# 5. Conclusion
+
+In this paper, we have proposed to use Neural Architecture Search to further optimize the process of designing object detection networks. It is shown in this work that top-performing detectors can be efficiently searched using carefully designed proxy tasks, search strategies and model evaluation metrics. The experiments on COCO demonstrate the efficiency of our discovered model NAS-FCOS and its flexibility to be used with various backbone architectures.
+
+# Acknowledgements
+
+NW, YG, PW's participation in this work were in part supported by the National Natural Science Foundation of China (No.61876152, No.U19B2037). CS' participation was in part supported by ARC DP project "Deep Learning that Scales".
+
+# References
+
+[1] Han Cai, Ligeng Zhu, and Song Han. Proxylessnas: Direct neural architecture search on target task and hardware. In Proc. Int. Conf. Learn. Representations, 2019.
+[2] Yukang Chen, Tong Yang, Xiangyu Zhang, Gaofeng Meng, Chunhong Pan, and Jian Sun. DetNAS: Neural architecture search on object detection. In Proc. Advances in Neural Inf. Process. Syst., 2019.
+[3] Thomas Elsken, Jan Hendrik Metzen, and Frank Hutter. Neural architecture search: A survey. In J. Mach. Learn. Res., 2019.
+[4] Golnaz Ghiasi, Tsung-Yi Lin, Ruoming Pang, and Quoc V. Le. NAS-FPN: Learning scalable feature pyramid architecture for object detection. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., 2019.
+[5] 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. In arXiv preprint arXiv:1904.00420, 2019.
+[6] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross Girshick. Mask r-cnn. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 2961-2969, 2017.
+[7] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks. In Proc. Eur. Conf. Comp. Vis., pages 630-645, 2016.
+[8] Alexander Kirillov, Ross Girshick, Kaiming He, and Piotr Dollr. Panoptic feature pyramid networks. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., 2019.
+[9] Tao Kong, Fuchun Sun, Huaping Liu, Yuning Jiang, and Jianbo Shi. Foveabox: Beyond anchor-based object detector. In arXiv preprint arXiv:1904.03797, 2019.
+[10] Hei Law and Jia Deng. Cornernet: Detecting objects as paired keypoints. In Proc. Eur. Conf. Comp. Vis., pages 734-750, 2018.
+[11] 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., pages 2117-2125, 2017.
+[12] Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dólár. Focal loss for dense object detection. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 2980-2988, 2017.
+[13] 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 Proc. IEEE Conf. Comp. Vis. Patt. Recogn., 2019.
+[14] Huanyu Liu, Chao Peng, Changqian Yu, Jingbo Wang, Xu Liu, Gang Yu, and Wei Jiang. An end-to-end network for panoptic segmentation. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., 2019.
+[15] Hanxiao Liu, Karen Simonyan, and Yiming Yang. Darts: Differentiable architecture search. In Proc. Int. Conf. Learn. Representations, 2019.
+[16] Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, and Alexander Berg.
+
+SSD: Single shot multibox detector. In Proc. Eur. Conf. Comp. Vis., pages 21-37, 2016.
+[17] Vladimir Nekrasov, Hao Chen, Chunhua Shen, and Ian Reid. Fast neural architecture search of compact semantic segmentation models via auxiliary cells. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., 2019.
+[18] Hieu Pham, Melody Y. Guan, Barret Zoph, Quoc V. Le, and Jeff Dean. Efficient neural architecture search via parameter sharing. In Proc. Int. Conf. Mach. Learn., 2018.
+[19] Joseph Redmon and Ali Farhadi. Yolov3: An incremental improvement. In arXiv preprint arXiv:1804.02767, 2018.
+[20] 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 Inf. Process. Syst., pages 91-99, 2015.
+[21] Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zh-moginov, and Liang-Chieh Chen. Mobilenetv2: Inverted residuals and linear bottlenecks. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 4510-4520, 2018.
+[22] John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. In arXiv preprint arXiv:1707.06347, 2017.
+[23] Dimitrios Stamoulis, Ruizhou Ding, Di Wang, Dimitrios Lymberopoulos, Bodhi Priyantha, Jie Liu, and Diana Marculescu. Single-path NAS: Designing hardware-efficient convnets in less than 4 hours. In arXiv preprint arXiv:1904.02877, 2019.
+[24] Zhi Tian, Chunhua Shen, Hao Chen, and Tong He. FCOS: Fully convolutional one-stage object detection. In Proc. IEEE Int. Conf. Comp. Vis., 2019.
+[25] Yuxin Wu and Kaiming He. Group normalization. In Proc. Eur. Conf. Comp. Vis., pages 3-19, 2018.
+[26] Saining Xie, Ross Girshick, Piotr Dollr, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., 2017.
+[27] Ting Zhao and Xiangqian Wu. Pyramid feature attention network for saliency detection. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., 2019.
+[28] Hongpeng Zhou, Minghao Yang, Jun Wang, and Wei Pan. BayesNAS: A bayesian approach for neural architecture search. In Proc. Int. Conf. Mach. Learn., 2019.
+[29] Xingyi Zhou, Dequan Wang, and Philipp Krahenbuhl. Objects as points. In arXiv preprint arXiv:1904.07850, 2019.
+[30] Chenchen Zhu, Yihui He, and Marios Savvides. Feature selective anchor-free module for single-shot object detection. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., 2019.
+[31] Xizhou Zhu, Han Hu, Stephen Lin, and Jifeng Dai. Deformable convnets v2: More deformable, better results. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., 2019.
+[32] Barret Zoph and Quoc V. Le. Neural architecture search with reinforcement learning. In Proc. Int. Conf. Learn. Representations, 2017.
\ No newline at end of file
diff --git a/nasfcosfastneuralarchitecturesearchforobjectdetection/images.zip b/nasfcosfastneuralarchitecturesearchforobjectdetection/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..f57a39c9dc0e29a888df2f6a50ed919efc9392ef
--- /dev/null
+++ b/nasfcosfastneuralarchitecturesearchforobjectdetection/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5af28f388b48e32362fe26a04e1de2404574ff1f3ce22824271637731a0b8728
+size 409556
diff --git a/nasfcosfastneuralarchitecturesearchforobjectdetection/layout.json b/nasfcosfastneuralarchitecturesearchforobjectdetection/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..04e4e7855472931a3bb766b27d867d08e572f673
--- /dev/null
+++ b/nasfcosfastneuralarchitecturesearchforobjectdetection/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f192e6d10d0b61131373afb921baa4823eab706002b5e20db6f194de8c2a24f2
+size 358362
diff --git a/nestedscaleeditingforconditionalimagesynthesis/13c575f9-7a5f-4222-bbd3-d11d279e2ba2_content_list.json b/nestedscaleeditingforconditionalimagesynthesis/13c575f9-7a5f-4222-bbd3-d11d279e2ba2_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..bad83d412d3d903554d8f9d9ff38208cf6ca9734
--- /dev/null
+++ b/nestedscaleeditingforconditionalimagesynthesis/13c575f9-7a5f-4222-bbd3-d11d279e2ba2_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5561b45bcbb3d4e85c705ec0b52aa769626fa0c07fe838459061c72717a5e8b8
+size 73539
diff --git a/nestedscaleeditingforconditionalimagesynthesis/13c575f9-7a5f-4222-bbd3-d11d279e2ba2_model.json b/nestedscaleeditingforconditionalimagesynthesis/13c575f9-7a5f-4222-bbd3-d11d279e2ba2_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..b1440894409979be34356991dc34fb7775e62f87
--- /dev/null
+++ b/nestedscaleeditingforconditionalimagesynthesis/13c575f9-7a5f-4222-bbd3-d11d279e2ba2_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:085bd232838ef4d77581188610d7313b7d548f9cec10f055e04c727aed363a24
+size 93875
diff --git a/nestedscaleeditingforconditionalimagesynthesis/13c575f9-7a5f-4222-bbd3-d11d279e2ba2_origin.pdf b/nestedscaleeditingforconditionalimagesynthesis/13c575f9-7a5f-4222-bbd3-d11d279e2ba2_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..d1d27c0e9c0c2b932c51b9f1602bf61b89d6e52e
--- /dev/null
+++ b/nestedscaleeditingforconditionalimagesynthesis/13c575f9-7a5f-4222-bbd3-d11d279e2ba2_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b517de88c41814fefe6d06ea937dd6985b58b81dbfb9c695a498580870014740
+size 1026119
diff --git a/nestedscaleeditingforconditionalimagesynthesis/full.md b/nestedscaleeditingforconditionalimagesynthesis/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..350f756e204085e7d1a59758eadf7da487d8ea27
--- /dev/null
+++ b/nestedscaleeditingforconditionalimagesynthesis/full.md
@@ -0,0 +1,314 @@
+# Nested Scale-Editing for Conditional Image Synthesis
+
+Lingzhi Zhang* Jiancong Wang* Yinshuang Xu Jie Min Tarmily Wen James C. Gee Jianbo Shi
+
+
+University of Pennsylvania
+Figure 1: Our approach enables scale-specific visual editorings in conditional image synthesis. We can choose to surgically manipulate coarse-level structural information or fine-level details in Cat2Dog translation and image outpainting tasks.
+
+# Abstract
+
+We propose an image synthesis approach that provides stratified navigation in the latent code space. With a tiny amount of partial or very low-resolution image, our approach can consistently out-perform state-of-the-art counterparts in terms of generating the closest sampled image to the ground truth. We achieve this through scale-independent editing while expanding scale-specific diversity. Scale-independence is achieved with a nested scale disentanglement loss. Scale-specific diversity is created by incorporating a progressive diversification constraint. We introduce semantic persistency across the scales by sharing common latent codes. Together they provide better control of the image synthesis process. We evaluate the effectiveness of our proposed approach through various tasks, including image outpainting, image superresolution, and cross-domain image translation.
+
+# 1. Introduction
+
+Imagine that we want to identify a person based on the appearance of their eyes and nose, or a lower resolution image, as shown in figure 1. One solution may be to outpaint the entire face, conditioned on the partial information available.
+
+We want to be as imaginative and as detailed as possible to give us a greater chance of success in finding the right person. These tasks are multimodal in nature, i.e., a single input corresponds to many plausible outputs.
+
+Conditional image synthesis approaches aim to solve this problem by sampling stochastic latent codes to generate images in a GAN setting. However, these image synthesis methods of sampling operate as uncontrollable "black boxes". During inference, we can only hope that a sampled random variable generates the ideal image we desire; otherwise, we need to keep sampling.
+
+We propose a steerable conditional image synthesis approach. Inspired by the steerable filtering in the wavelet process [48], we wish to 'steer' the image synthesis across the spatial scales consistently. While in steerable filtering we are concerned with angular edge orientation, in our domain, we focus on object semantics. Specifically, we aim to create visual information from a coarse-level structure to fine-level texture. The key objectives are 1) scale-independence: we learn disentangled representations that model scale-specific visual details, and 2) diversity/model covering: we ensure that the decoder covers diverse variations presented on ground truth images.
+
+To implement the scale-independent objective, we take inspiration from the Laplacian image pyramid decomposi
+
+
+
+
+
+
+Figure 2: Demonstration of an application scenario in which a user interactively recovers a facial identity by sampling scale-specific visual details using our proposed approach. Image you look at this occluded face, you might have a rough mental picture of someone. We can edit the image at multi-scale to recover the identity.
+
+
+
+
+
+
+
+
+
+
+
+tion: our algorithm essentially learns to generate progressively more refined image along spatial scales, with each level of refinement independent of each other. To implement the diversity objective, we extend a successful diversity constraint [36] to multi-scale and ensure scale-specific diversity.
+
+Unlike current multi-scale noise injection methods [7, 25], our multi-scale injected noises share same latent variable during training. This introduces semantic persistency, meaning the decoder expects latent variables on different scales to have similar semantic meaning. Semantic-persistence can play a major role in search efficiency, since it enables stratified navigation in the latent code space. Fig.2 illustrates the stratified navigation process for face superresolution. We first coarsely sample a widespread set of latent random variables to find an image roughly matching the ground truth. Because of our scale-independent representation, we can efficiently edit the image by adjusting any of the latent variable at a specific scale and edit the image information at the corresponding scale. Therefore we can generate a refined image by adjusting the existing latent variable at next scale and repeat, until final scale is reached. This is the ideal steering behavior we seek.
+
+In summary, we highlight our contributions as follows:
+
+- We are the first to propose a multi-scale feature disentanglement loss and a progressive diversification regularization to achieve scale-specific control for conditional image synthesis.
+- To the best of our knowledge, our work is the first to utilize diverse conditional image generation for identity recovery. We developed three evaluation metrics for identity recovery in diverse conditional synthesis scenarios.
+- We evaluate our aforementioned development on tasks of image outpainting, image superresolution, and mul
+
+timodal image translation. Our methods achieve competitive image quality and diversity compared to state-of-the-art counterparts, while consistently outperforming them in terms of identity recovery.
+
+# 2. Related Work
+
+# 2.1. Multimodal Conditional Generation
+
+Deep generative models have been widely used in many conditional image synthesis tasks, such as super-resolution [9,28,54,60-62], inpainting missing regions [21,35,43,44, 56,58,59,65], style transfer [15,18,22,34,39], image blending [40,49,55,66], and text-to-image [23,32,46]. The majority of these tasks are in nature multimodal, where single input condition may correspond to multiple plausible outputs. BicycleGAN [68] first proposed to model this one-to-many distribution by explicitly encoding the target domain into a compact Gaussian latent distribution from which the generator samples. During inference, the generator maps a random variable drawn from the latent distribution, combined with the given input, to the output. StackedGAN and its variant StackedGAN++ [63, 64] proposed to use a hierarchical generator which incorporates conditional code on multiple scales and were able to generate high quality synthetic images. DRIT [31] and MUNIT [20] proposed to disentangle the features into domain-invariant content codes and domain-specific style codes for unpaired imagedto-image translations. During inference, the sampled style codes combined with the content code can be transformed into many plausible outputs.
+
+Although the above approaches can generate multimodal outputs given a conditional input, there is no explicit constraint to prevent the generator from mapping the various sampled random variables to similar outputs, which is known as mode collapse. Two concurrent works aim to al
+
+leviate this issue by proposing diversity regularization techniques for generative training. Mode Seeking GAN (MSGAN) [41] proposes to maximize the ratio of two sampled images over the corresponding latent variables. Normalized Diversification (NDiv) [36] proposes to enforce the generator to preserve the normalized pairwise distance between the sparse samples from a latent distribution to the corresponding high-dimensional output space.
+
+In addition to image synthesis, other applications with multimodal predictions include but are not limited to predicting uncertain motion flows in the future [14, 51, 57], hallucinating diverse body pose affordance in 2D [52] and 3D [33] scenes.
+
+Different from previous work, our focus is to achieve scale-specific control for image synthesis and progressively inject stochasticity into different scales of the synthesized image. Therefore, our proposed techniques can be readily added into these orthogonal previous approaches. We demonstrate that our techniques work with face outpainting, face superresolution, and multimodal animal translation with modified MUNIT [20].
+
+# 2.2. Feature Disentanglement
+
+Recently there is increasing interest in disentanglement of distinct image characteristics for image synthesis. [26, 29, 53] attempt to decouple image style and content, while [12, 13, 38] target object shape and appearance. These approaches explicitly incorporate two codes that denote the two characteristics, respectively, into the generative model and introduce a guided loss or incorporate the invariance constraint to orthogonalize the two codes, while our method disentangles the scale-specific variations from global structural feature to local texture feature through hierarchical input of latent variables into the generative model.
+
+Besides the disentanglement of two specific characteristics, several prior efforts [4, 5, 8, 10, 17] have explored partially or fully interpretable representations of independent factors for generative modeling. Some current work learn representations of the specific attribute by supervised learning [2, 45] with a conditioning discriminator. Our method focuses on multi-scale disentanglement through unsupervised learning, which is distinct from the concept of disentangling specific semantic factors.
+
+[24] has first proposed synthesize images from low-resolution scale to higher-resolution scale in a progressive manner. Similarly, other closely related work is [7] and [25]. [7] pioneered the use of the hierarchical generator with latent codes injected at each level for multi-scale control of image synthesis and further advanced in [25]. Both [7] and [25], however, only target unconditional image synthesis and do not explicitly enforce diversity of outputs. Our work extends to conditional synthesis and incorporates explicit diversity constraints.
+
+Since the purpose and definition of disentanglement in our method are different from previous work, the existing metrics for evaluating disentanglement [4,11,17,25,27] are not appropriate for measuring feature disentanglement for our method. We therefore develop a new means to quantify the hierarchical disentanglement for our approach.
+
+# 3. Methods
+
+Multimodal conditional image synthesis combines a given input conditional code with sampled latent codes drawn from a compact latent space (usually a standard normal or uniform distribution) and decodes the combination into an output image. Unlike previous efforts [20, 36, 41, 68], we propose a cascading disentangled decoder inspired by Laplacian image pyramid [1]. With a central multi-scale backbone, it generates output images at every feature spatial scale through a single convolutional layer. We enforce the generated images at every scale to be average-pooled back into a lower-resolution generated image. By doing so, we distill features at each spatial scale to only focus on image details — similar to a Laplacian image — at the corresponding spatial resolution. With these scale-independent features, we can inject random variables into each scale of the image features to model the scale-specific stochasticity of image details.
+
+# 3.1. Multiscale Disentanglement
+
+To enable scale-specific editing of visual contents, we need a model that has a disentangled latent code representation. This implies that visual content on specific scales can be modified by changing corresponding latent codes, while visual contents on other scales remain unaffected.
+
+In a decoder network that receives only a single latent code at the coarsest scale, the single latent code controls image generation at all scales and hence changing the code will affect all scales. This motivates the multi-latent code design: injecting latent codes on all spatial scales and allowing each individual latent code to control the image on corresponding scales. Let $Z_{0}$ denote the random base latent code, and $Z_{1} = A_{1}(Z_{0}), Z_{2} = A_{2}(Z_{0}), Z_{k} = A_{k}(Z_{0})$ , and the latent variable at each scale level $i \in \{1 \dots k\}$ , where $A_{i}$ is an affine mapping matrix. Intuitively, the latent code at coarse scale may mostly affect global structure while latent code at fine scale is more likely to alter local texture at its respective scale. Such behavior can be seen in [7] and [25].
+
+However, this design does not guarantee that visual information represented by the latent code at different scales are disentangled. For example, latent code at coarse scale might control texture and color that are also affected by latent code at fine scale. With such a decoder, it is still difficult to edit the scale-specific visual information while keeping information on other scales unchanged.
+
+
+Figure 3: Our decoder network takes a conditional code and a single random variable as inputs. A single latent variable is injected into multi-scale feature representations through the first several shared layers of MLPs. Then that output is injected into different affine transformation layers with Adaptive Instance Normalization (AdaIN) [19]. At every spatial scale, a single convolutional layer is used to decode a real image at each corresponding resolution. Our proposed disentanglement loss enforces the generated images at every scale to be averaged-pooled back into a lower-resolution generated image. At each iteration, we sample four latent variables and generate four images at each spatial scale, where we also enforce the pairwise distance between sampled images and latent variables to encourage diverse synthesized outputs.
+
+Therefore, we propose a simple but effective approach to disentangle features at each layer of the decoder to only control the visual information at the corresponding spatial scale. At each layer in the decoder, we add a single convolution layer to synthesize an image at the corresponding spatial resolution. Then, we enforce that each synthesized image, when downsampled, matches the synthesized image at the previous spatial scale. We call this constraint a multi-scale disentanglement loss $L_{\text{disent}}$ . Specifically, we use average pooling to downsample the synthesized image and pixel-wise Euclidean distance to constraint the down-sampling consistency. Our intuition is that, by doing so, the features at each layer are not allowed to change any visual information at the previous or deeper layers. In this way, we distill each level of features to only edit the visual information at its corresponding spatial scale.
+
+Formally, we denote $S$ as the downsampling operation on image $x$ , specifically, average $2 \times 2$ pooling with stride of 2. The loss function of progressive downsampling consistency is defined as follows,
+
+$$
+\mathcal {L} _ {\text {d i s e n t}} = \sum_ {i = 1} ^ {n - 1} d \left(S \left(G _ {i + 1} (c, z)\right), G _ {i} (c, z)\right), \tag {1}
+$$
+
+where $n$ is the number of resolution scales, $c$ is the conditional code, $z$ is random variable, and $G_{i}$ is the generator, whose subscript refers to the network layers that
+
+are responsible for synthesizing images at each scale. For $G_{i}(2 \leq i \leq n)$ , they have iterative format:
+
+$$
+G _ {i} (c, z) = U \left[ G _ {i - 1} (c, z), A _ {i} (z) \right] \tag {2}
+$$
+
+and,
+
+$$
+G _ {1} (c, z) = U [ c, A _ {1} (z) ]. \tag {3}
+$$
+
+where $\mathrm{U}$ denotes the Upsampling Module.
+
+At each spatial scale, we also applied conditional GAN to synthesize photo-realistic images, where the loss functions are as follows,
+
+$$
+\begin{array}{l} \mathcal {L} _ {G A N} = E _ {\mathbf {x} \sim p _ {\mathrm {d a t a}} (\mathbf {x})} \left[ \sum_ {i = 1} ^ {n} \log \left(D _ {i} \left(S ^ {n - i} (\mathbf {x}) | c\right)\right) \right] \tag {4} \\ + E _ {\mathbf {z} \sim p (\mathbf {z})} \left[ \sum_ {i = 1} ^ {n} l o g (1 - D _ {i} (G _ {i} (\mathbf {z}, c))) \right]. \\ \end{array}
+$$
+
+The similar multi-scale adversarial loss has been applied in SinGAN [47] as well.
+
+# 3.2. Progressive Diversification
+
+To avoid mode collapse and increase diversity of the synthesized images, we leverage the normalized diversification [36], which forces the normalized pairwise distance of generative outputs to be at least as large as that of the corresponding latent variables.
+
+
+Best Identity Recovery
+
+
+Figure 4: Qualitative comparison for multimodal image outpainting.
+
+| Method | Quality ↓ | Diversity ↑ | Identity |
| Shortest Distance ↓ | Recovery Count(%) ↑ | Landmark Alignment ↓ |
| BicycleGAN | 64.133 | 0.093 | 0.233 | 15.34 | 5.914 |
| MSGAN | 56.998 | 0.232 | 0.237 | 28.93 | 4.754 |
| Ndiv | 68.855 | 0.319 | 0.256 | 20.95 | 5.126 |
| Ours | 55.854 | 0.333 | 0.228 | 34.78 | 4.540 |
+
+Table 1: Quantitative Comparison with state-of-the-art approaches in multimodal image outpainting task.
+
+Here we introduce normalized diversification in a progressive manner, that is, we add normalized diversification loss at each layer of the hierarchical decoder. In comparison, previous work [36,41,42] applied the diversity penalty only at the final scale output of the model, which enforces in a brute force way the final output diversity but does not prevent individual levels of the model from mode collapse (for a 3-layer model where latent code $z$ is injected at each level, previous efforts only enforce that the final output varies by $z$ , but allow individual layers to collapse. For example, the first layer of the model utilizes the $z$ while second and third layer ignore $z$ entirely).
+
+Mode collapses at individual levels prevent us from exactly controlling the diversity on a specific level of structure or texture for synthesized data. Thus, we propose progressive diversification, effectively unfolding manifold topology for different scales. In this way, we achieve not only independent multi-scale control during the generative process but also guarantee latent that the code $z$ introduces variation on every scale, likely from structure to texture.
+
+The inserted progressive normalized diversification can
+
+be formulated as loss function 5.
+
+$$
+\mathcal {L} _ {N d i v} = \sum_ {k = 1} ^ {n} \frac {1}{N ^ {2} - N} \sum_ {i = 1} ^ {N} \sum_ {j = 1} ^ {N} \max \left(\alpha D _ {i j} ^ {z} - D _ {i j} ^ {G _ {k} (z, c)}\right), \tag {5}
+$$
+
+where $N$ is the number of samples to calculate the normalized pairwise distance matrix and $D_{ij}^{z}$ , $D_{ij}^{G_k(z|y)}$ are defined as elements in normalized pairwise distance matrix $D^{z}, D^{G_{k}(z|y)} \in \mathbb{R}^{N \times N}$ of $z_{i_{i=1}}^{N} \sim p(z)$ :
+
+$$
+D _ {i j} ^ {z} = \frac {d \left(z _ {i} - z _ {j}\right)}{\sum_ {j} d \left(z _ {i} - z _ {j}\right)} \tag {6}
+$$
+
+$$
+D _ {i j} ^ {G _ {k} (z, c)} = \frac {d (G _ {k} (z , c) _ {i} - G _ {k} (z , c) _ {j})}{\sum_ {j} d (G _ {k} (z , c) _ {i} - G _ {k} (z , c) _ {j})}.
+$$
+
+Here, $d$ the latent variable is the Euclidean distance, and for generative outputs is the pixel-wise Euclidean distance.
+
+# 4. Experiments
+
+The proposed approaches were evaluated through their performance on various tasks, including image outpainting, image superresolution, and dog2cat/cat2dog translation. In
+
+
+Figure 5: Qualitative comparison for multimodal image superresolution
+
+
+
+| Method | Quality ↓ | Diversity ↑ | Identity |
| Shortest Distance ↓ | Recovery Count(%) ↑ | Landmark Alignment ↓ |
| BicycleGAN | 40.837 | 0.019 | 0.129 | 26.49 | 7.062 |
| MSGAN | 49.647 | 0.0438 | 0.131 | 29.48 | 5.907 |
| Ndiv | 81.4213 | 0.0758 | 0.143 | 5.60 | 5.938 |
| Ours | 46.346 | 0.0677 | 0.125 | 38.43 | 4.261 |
+
+Table 2: Quantitative Comparison with state-of-the-art approaches in multimodal image superresolution task.
+
+addition to conventional quality and diversity assessment, we propose to evaluate the extent to which diverse sampling can improve identity recovery, especially in the context of facial recognition. We believe that this is a first attempt that aims to apply diverse synthesis for better recognition. Our premise is that given a conditional code containing only partial information of the ground truth image, a decoder capable of generating diverse output can produce at least one or more results that is close to or recovers the ground truth image, as long as sufficient latent code is sampled. This property would be useful in many difficult recognition situations, such as identifying criminals in largely occluded or very low-resolution images. Diverse sampling would provide a set of candidates, which can then be narrowed down further by human reviewers. We describe next three newly proposed evaluation metrics in this work for identity recovery.
+
+# 4.1. Evaluation Metrics
+
+To perform evaluation of our approach, we use the following metrics.
+
+FID. We use FID [16] to evaluate the quality of generated data. This metric applies the Inception Network [50] to ex
+
+tract features from real and synthesized data, and then calculates the Frechet distance between the two distributions of collected real and synthesized features, respectively. A lower FID score indicates less discrepancy between real and synthesized data and hence higher quality.
+
+LPIPS. We apply LPIPS [67] to quantify the diversity, which calculates the pairwise average feature distance across the whole generated dataset. We use AlexNet [30] pretrained on ImageNet [6] to extract features. Larger values of the pairwise LPIPS score indicate increased image diversity.
+
+Identity Recovery. To quantify how well diverse sampling recovers the true facial identity, we propose to evaluate the distance between the most similar sampled output and the ground truth image. First, we compute the shortest embedding distance between a set of sampled outputs and the ground truth, where the embedding distance is given by LPIPS. We average this shortest embedding distance across all training examples, which we denote as Shortest Distance in Table (1) and (2). We also count the chance that each method generates the most similar outputs under evaluation of this embedding distance, and denote this as Recovery Count. We also evaluate the identity recovery of
+
+
+Figure 6: Qualitative comparison against the state-of-the-art in multi-modal translation for cat/dog identity recovery. The input (left column) indicates a MUNIT content code. Only one channel of the content code is shown for easier.
+
+
+Best Identity Recovery
+
+| Method | Quality ↓ | Diversity ↑ | Identity |
| Shortest Distance ↓ | Recovery Count(%) ↑ |
| MUNIT [20] | 15.74 | 0.533 | 0.445 | 15.0 |
| Ours | 21.22 | 0.547 | 0.393 | 85.0 |
+
+Table 3: Quantitative comparison with state-of-the-art approaches on the cross-modal image-to-image translation task.
+
+face images using facial landmarks, which are obtained using a pretrained facial landmark detector [3]. Specifically, the similarity between a sampled output and the ground truth is given by the mean squared error distance between the corresponding 68 facial landmark locations for the sampled and ground-truth images. We refer to this evaluation as Landmark Alignment.
+
+# 4.2. Image Outpainting
+
+We first present experimental results in an image outpainting task, where the goal is to fill in large areas of missing pixels in a highly occluded image, which may have many different solutions for a given input. In terms of model implementations, we only need to add our proposed multiscale disentanglement and diversification into a standard conditional encoder-decoder. The experiment is conducted over the CelebA dataset [37] with cropped 128x128 images.
+
+We compare our model with the current state-of-the-art multimodal conditional synthesis approaches, including BicycleGAN [68], MSGAN [41], and NDiv [36]. The experimental results show that our model can generate the best results in terms of image quality, diversity as well as identity, as shown in Table.1. In our qualitative comparison figure.4, we show that one of the sampled image could best recover the ground truth facial identity. We think that this is because our model can sample not only very diverse but also realistic images.
+
+# 4.3. Image Super-Resolution
+
+Another multimodal conditional synthesis we run on face data is super-resolution. While most of other super-resolution approaches model this task as a deterministic image-to-image process, we consider super-resolution from
+
+a very low resolution image as a one-to-many process because of its uncertainty in nature. For example, the 16x16 low resolution in Figure.5 can be very difficult to identified. Even for human, it is very difficult to tell what is the ground true high-resolution image is. Or, every human would probably have a different answer. In this task, we use bilinearly downsampled 16x16 image as low-resolution input and 128x128 image as high-resolution output in CelebA dataset [37].
+
+Our implementation of superresolution model is similar to image outpainting, but we start to decode image at scale of 16x16, which is the same as input resolution. The disentanglement and diversification is added at every other higher resolution scale. As seen from Table. (2), even though our approach does not reach the best quality or diversity, but it achieves the best identity score. We think that the simply measuring quality or diversity separately is not sufficient. BicycleGAN has the best quality but lack diversity, so it is difficult to "hit" the ground truth image. NDiv has the largest diversity but lacks quality, and thus it is also very difficult to recover the realistic ground truth image. In contrast, our model can produce reasonably large diversity and good quality, and thus has the highest chance to recover the ground truth image. Our implementation of super-resolution model is similar to image outpainting, but we start to decode image at scale of 16x16, which is the same as input resolution. The disentanglement and diversification is added at every other higher resolution scale. As seen from Table. (2), even though our approach does not reach the best quality or diversity, but it achieves the best identity score. We think that the simply measuring quality or diversity separately is not sufficient. BicycleGAN [68] has the best quality but lack diversity, so it is difficult to "hit" the
+
+
+Figure 7: This figure demonstrates how much the generated image would change by varying noise injection at a specific resolution scale. This is implemented by sampling a reference code, and only varying random variable at one scale at a time and fixing the random variables at the other scales constant.
+
+
+
+ground truth image. NDiv [36] has the largest diversity but lacks quality, and thus it is also very difficult to recover the realistic ground truth image. In contrast, our model can produce reasonably large diversity and good quality, and thus has the highest chance to recover the ground truth image.
+
+# 4.4. Dog to Cat Image Translation
+
+We conduct an unpaired cross-modal image translation using the MUNIT backbone [20] on the cat and dog dataset from [31]. This dataset contains 1264 training/100 testing dog and 771 training/100 testing cat images. We modify the MUNIT backbone for multi latent codes injection and implemented the disentanglement loss and progressive diversification loss as mentioned in section 3.1 and 3.2. Detailed network architecture before and after modification can be found in the supplemental material. We compare FID and LPIPS of our model against the original MUNIT model trained on the cat and dog dataset and report the performance in Table.3. For identity recovery evaluation, we pass the ground truth image through the content encoder from the MUNIT framework and derive a content code, which is recombined with sampled latent codes and decoded into images. Quantitatively, we evaluate identity recovery using the LPIPS metric from 4.1. Qualitative results of identity recovery is demonstrated in Fig.6.
+
+# 4.5. Multi-scale Disentanglement Evaluation
+
+To quantify the multiscale disentanglement, we evaluate perceptual variations on output images against different noise varying scales. In specific, for scale $k$ in our $n$ scale decoder, a given fixed input condition code $c$ , we sample a center latent code $z$ . We fixed the input latent codes on every scale to be $z$ except for for scale $k$ , where we sample 10 latent codes centered around $z$ and generate 10 different output images. Pairwise perceptual distances (using LPIPS) among these 10 images are calculated. We calculate the pairwise perceptual distance for scale $k$ across 1000 dif
+
+ferent input condition codes and averaged them. We plotted the averaged perceptual distance against the scale on Fig.7. For a general decoder (left) without the disentanglement constraint, the perceptual variation were not monotonically decreasing along the scale. Our scale disentangled decoder (right) on the other hand achieves multiscale disentanglement: latent codes at finer scales monotonically introduce less variation to the image, therefore editing latent code at finer level has little effect on visual information on coarse scale.
+
+# 5. Conclusion
+
+We develop a conditional image synthesis network that enables scale-specific and diverse control of image content. We instantiate our design with a cascading decoder network. We couple it with multi-scale feature disentanglement constraints and a progressive diversification regularization. In addition, we gain semantic persistency in the decoder by sharing latent code across scales during training. This allows for stratified navigation and search within latent code space, and motivate the task of identity recovery. We propose three evaluation metrics for identity recovery within conditional image synthesis scenarios. On tasks of image outpainting, image superresolution, and multimodel image translation, our method consistently outperforms state-of-the-art counterparts in terms of identity recovery, while having competitive image quality and diversity. Hence we believe our method may potentially be useful in extreme image recognition situations, such as recognizing criminals in largely occluded or very low-resolution images, and finding lost pets from low quality surveillance images.
+
+# Acknowledgement
+
+We gratefully appreciate the support from Honda Research Institute Curious Minded Machine Program. We also gratefully acknowledge a GPU donation from NVIDIA.
+
+# References
+
+[1] Edward H Adelson, Charles H Anderson, James R Bergen, Peter J Burt, and Joan M Ogden. Pyramid methods in image processing. RCA engineer, 29(6):33-41, 1984. 4323
+[2] Grigory Antipov, Moez Baccouche, and Jean-Luc Dugelay. Face aging with conditional generative adversarial networks. In 2017 IEEE International Conference on Image Processing (ICIP), pages 2089-2093. IEEE, 2017. 4323
+[3] Adrian Bulat and Georgios Tzimiropoulos. Super-fan: Integrated facial landmark localization and super-resolution of real-world low resolution faces in arbitrary poses with gans. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 109-117, 2018. 4327
+[4] Tian Qi Chen, Xuechen Li, Roger B Grosse, and David K Duvenaud. Isolating sources of disentanglement in variational autoencoders. In Advances in Neural Information Processing Systems, pages 2610-2620, 2018. 4323
+[5] Xi Chen, Yan Duan, Rein Houthooft, John Schulman, Ilya Sutskever, and Pieter Abbeel. Infogan: Interpretable representation learning by information maximizing generative adversarial nets. In Advances in neural information processing systems, pages 2172-2180, 2016. 4323
+[6] J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. ImageNet: A Large-Scale Hierarchical Image Database. In CVPR09, 2009. 4326
+[7] Emily L Denton, Soumith Chintala, Rob Fergus, et al. Deep generative image models using a laplacian pyramid of adversarial networks. In Advances in neural information processing systems, pages 1486-1494, 2015. 4322, 4323
+[8] Jeff Donahue, Philipp Krahenbuhl, and Trevor Darrell. Adversarial feature learning. arXiv preprint arXiv:1605.09782, 2016. 4323
+[9] Chao Dong, Chen Change Loy, Kaiming He, and Xiaou Tang. Image super-resolution using deep convolutional networks. IEEE transactions on pattern analysis and machine intelligence, 38(2):295-307, 2016. 4322
+[10] Vincent Dumoulin, Ishmael Belghazi, Ben Poole, Olivier Mastropietro, Alex Lamb, Martin Arjovsky, and Aaron Courville. Adversarily learned inference. arXiv preprint arXiv:1606.00704, 2016. 4323
+[11] Cian Eastwood and Christopher KI Williams. A framework for the quantitative evaluation of disentangled representations. 2018. 4323
+[12] Patrick Esser, Johannes Haux, and Bjorn Ommer. Unsupervised robust disentangling of latent characteristics for image synthesis. In Proceedings of the IEEE International Conference on Computer Vision, pages 2699-2709, 2019. 4323
+[13] Patrick Esser, Ekaterina Sutter, and Björn Ommer. A variational u-net for conditional appearance and shape generation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8857-8866, 2018. 4323
+[14] Ruohan Gao, Bo Xiong, and Kristen Grauman. Im2flow: Motion hallucination from static images for action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5937-5947, 2018. 4323
+
+[15] Leon A Gatys, Alexander S Ecker, and Matthias Bethge. Image style transfer using convolutional neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2414-2423, 2016. 4322
+[16] Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. In Advances in Neural Information Processing Systems, pages 6626-6637, 2017. 4326
+[17] Irina Higgins, 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. ICLR, 2(5):6, 2017. 4323
+[18] 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. 4322
+[19] 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. 4324
+[20] Xun Huang, Ming-Yu Liu, Serge Belongie, and Jan Kautz. Multimodal unsupervised image-to-image translation. In Proceedings of the European Conference on Computer Vision (ECCV), pages 172-189, 2018. 4322, 4323, 4327, 4328
+[21] Satoshi Iizuka, Edgar Simo-Serra, and Hiroshi Ishikawa. Globally and locally consistent image completion. ACM Transactions on Graphics (ToG), 36(4):107, 2017. 4322
+[22] 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. 4322
+[23] Justin Johnson, Agrim Gupta, and Li Fei-Fei. Image generation from scene graphs. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1219–1228, 2018. 4322
+[24] Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of gans for improved quality, stability, and variation. arXiv preprint arXiv:1710.10196, 2017. 4323
+[25] Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4401-4410, 2019. 4322, 4323
+[26] Hadi Kazemi, Seyed Mehdi Iranmanesh, and Nasser Nasrabadi. Style and content disentanglement in generative adversarial networks. In 2019 IEEE Winter Conference on Applications of Computer Vision (WACV), pages 848-856. IEEE, 2019. 4323
+[27] Hyunjik Kim and Andriy Mnih. Disentangling by factorising. arXiv preprint arXiv:1802.05983, 2018. 4323
+[28] Jiwon Kim, Jung Kwon Lee, and Kyoung Mu Lee. Accurate image super-resolution using very deep convolutional networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1646-1654, 2016. 4322
+
+[29] Dmytro Kotovenko, Artsiom Sanakoyeu, Sabine Lang, and Bjorn Ommer. Content and style disentanglement for artistic style transfer. In Proceedings of the IEEE International Conference on Computer Vision, pages 4422-4431, 2019. 4323
+[30] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pages 1097-1105, 2012. 4326
+[31] Hsin-Ying Lee, Hung-Yu Tseng, Jia-Bin Huang, Maneesh Singh, and Ming-Hsuan Yang. Diverse image-to-image translation via disentangled representations. In Proceedings of the European Conference on Computer Vision (ECCV), pages 35-51, 2018. 4322, 4328
+[32] Wenbo Li, Pengchuan Zhang, Lei Zhang, Qiuyuan Huang, Xiaodong He, Siwei Lyu, and Jianfeng Gao. Object-driven text-to-image synthesis via adversarial training. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 12174-12182, 2019. 4322
+[33] Xueting Li, Sifei Liu, Kihwan Kim, Xiaolong Wang, Ming-Hsuan Yang, and Jan Kautz. Putting humans in a scene: Learning affordance in 3d indoor environments. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 12368-12376, 2019. 4323
+[34] Yijun Li, Chen Fang, Jimei Yang, Zhaowen Wang, Xin Lu, and Ming-Hsuan Yang. Universal style transfer via feature transforms. In Advances in neural information processing systems, pages 386-396, 2017. 4322
+[35] 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. 4322
+[36] Shaohui Liu, Xiao Zhang, Jianqiao Wangni, and Jianbo Shi. Normalized diversification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 10306-10315, 2019. 4322, 4323, 4324, 4325, 4327, 4328
+[37] Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaou Tang. Deep learning face attributes in the wild. In Proceedings of International Conference on Computer Vision (ICCV), December 2015. 4327
+[38] Dominik Lorenz, Leonard Bereska, Timo Milbich, and Björn Ommer. Unsupervised part-based disentangling of object shape and appearance. arXiv preprint arXiv:1903.06946, 2019. 4323
+[39] Fujun Luan, Sylvain Paris, Eli Shechtman, and Kavita Bala. Deep photo style transfer. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4990-4998, 2017. 4322
+[40] Fujun Luan, Sylvain Paris, Eli Shechtman, and Kavita Bala. Deep painterly harmonization. In Computer Graphics Forum, volume 37, pages 95-106. Wiley Online Library, 2018. 4322
+[41] Qi Mao, Hsin-Ying Lee, Hung-Yu Tseng, Siwei Ma, and Ming-Hsuan Yang. Mode seeking generative adversarial networks for diverse image synthesis. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1429-1437, 2019. 4323, 4325, 4327
+
+[42] Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks. arXiv preprint arXiv:1802.05957, 2018. 4325
+[43] Kamyar Nazeri, Eric Ng, Tony Joseph, Faisal Qureshi, and Mehran Ebrahimi. Edgeconnect: Generative image inpainting with adversarial edge learning. arXiv preprint arXiv:1901.00212, 2019. 4322
+[44] 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. 4322
+[45] Guim Perarnau, Joost Van De Weijer, Bogdan Raducanu, and Jose M Álvarez. Invertible conditional gans for image editing. arXiv preprint arXiv:1611.06355, 2016. 4323
+[46] Scott Reed, Zeynep Akata, Xinchen Yan, Lajanugen Logeswaran, Bernt Schiele, and Honglak Lee. Generative adversarial text to image synthesis. arXiv preprint arXiv:1605.05396, 2016. 4322
+[47] Tamar Rott Shaham, Tali Dekel, and Tomer Michaeli. Singan: Learning a generative model from a single natural image. In Proceedings of the IEEE International Conference on Computer Vision, pages 4570-4580, 2019. 4324
+[48] Eero P Simoncelli and William T Freeman. The steerable pyramid: A flexible architecture for multi-scale derivative computation. In Proceedings., International Conference on Image Processing, volume 3, pages 444-447. IEEE, 1995. 4321
+[49] Yi-Hsuan Tsai, Xiaohui Shen, Zhe Lin, Kalyan Sunkavalli, Xin Lu, and Ming-Hsuan Yang. Deep image harmonization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3789-3797, 2017. 4322
+[50] Catherine Wah, Steve Branson, Peter Welinder, Pietro Perona, and Serge Belongie. The caltech-ucsd birds-200-2011 dataset. 2011. 4326
+[51] 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. 4323
+[52] Xiaolong Wang, Rohit Girdhar, and Abhinav Gupta. Binge watching: Scaling affordance learning from sitcoms. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2596-2605, 2017. 4323
+[53] Xiaolong Wang and Abhinav Gupta. Generative image modeling using style and structure adversarial networks. In European Conference on Computer Vision, pages 318-335. Springer, 2016. 4323
+[54] 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), pages 0–0, 2018. 4322
+[55] Huikai Wu, Shuai Zheng, Junge Zhang, and Kaiqi Huang. Gp-gan: Towards realistic high-resolution image blending. In Proceedings of the 27th ACM International Conference on Multimedia, pages 2487-2495, 2019. 4322
+
+[56] Li Xu, Jimmy SJ Ren, Ce Liu, and Jiaya Jia. Deep convolutional neural network for image deconvolution. In Advances in Neural Information Processing Systems, pages 1790-1798, 2014. 4322
+[57] 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. 4323
+[58] Raymond A Yeh, Chen Chen, Teck Yian Lim, Alexander G Schwing, Mark Hasegawa-Johnson, and Minh N Do. Semantic image inpainting with deep generative models. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5485-5493, 2017. 4322
+[59] Jiahui Yu, Zhe Lin, Jimei Yang, Xiaohui Shen, Xin Lu, and Thomas S Huang. Generative image inpainting with contextual attention. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5505-5514, 2018. 4322
+[60] Xin Yu and Fatih Porikli. Ultra-resolving face images by discriminative generative networks. In European Conference on Computer Vision, pages 318-333. Springer, 2016. 4322
+[61] Xin Yu and Fatih Porikli. Face hallucination with tiny unaligned images by transformative discriminative neural networks. In AAAI, volume 2, page 3, 2017. 4322
+[62] Xin Yu and Fatih Porikli. Hallucinating very low-resolution unaligned and noisy face images by transformative discriminative autoencoders. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3760-3768, 2017. 4322
+[63] Han Zhang, Tao Xu, Hongsheng Li, Shaoting Zhang, Xiaogang Wang, Xiaolei Huang, and Dimitris N Metaxas. Stackgan: Text to photo-realistic image synthesis with stacked generative adversarial networks. In Proceedings of the IEEE International Conference on Computer Vision, pages 5907-5915, 2017. 4322
+[64] Han Zhang, Tao Xu, Hongsheng Li, Shaoting Zhang, Xiaogang Wang, Xiaolei Huang, and Dimitris N Metaxas. Stackgan++: Realistic image synthesis with stacked generative adversarial networks. IEEE transactions on pattern analysis and machine intelligence, 41(8):1947-1962, 2018. 4322
+[65] Lingzhi Zhang, Jiancong Wang, and Jianbo Shi. Multimodal image outpainting with regularized normalized diversification. In The IEEE Winter Conference on Applications of Computer Vision, pages 3433-3442, 2020. 4322
+[66] Lingzhi Zhang, Tarmily Wen, and Jianbo Shi. Deep image blending. In The IEEE Winter Conference on Applications of Computer Vision, pages 231-240, 2020. 4322
+[67] 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. 4326
+[68] 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, pages 465-476, 2017. 4322, 4323, 4327
\ No newline at end of file
diff --git a/nestedscaleeditingforconditionalimagesynthesis/images.zip b/nestedscaleeditingforconditionalimagesynthesis/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..990be4a42773d519fbb5816e7826413558f049d7
--- /dev/null
+++ b/nestedscaleeditingforconditionalimagesynthesis/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:893a8f62aba2604d77d2879427769463d00b5ea1c139c1c3bdf159936c7395c0
+size 789020
diff --git a/nestedscaleeditingforconditionalimagesynthesis/layout.json b/nestedscaleeditingforconditionalimagesynthesis/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..d2c5b3ea42ef5a7dbf69af9f097f60f375d699c1
--- /dev/null
+++ b/nestedscaleeditingforconditionalimagesynthesis/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:75f3e011663330a9c4d38d38b5c574cab9fa4f8d229340c92e002c53b6e612ae
+size 344550
diff --git a/nestedvaeisolatingcommonfactorsviaweaksupervision/541c3b54-866e-4c39-8dc7-fac3a67f24d3_content_list.json b/nestedvaeisolatingcommonfactorsviaweaksupervision/541c3b54-866e-4c39-8dc7-fac3a67f24d3_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..565572f69f6ad836df614dfe36a484b43f050a3e
--- /dev/null
+++ b/nestedvaeisolatingcommonfactorsviaweaksupervision/541c3b54-866e-4c39-8dc7-fac3a67f24d3_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7a8a6c9cfb3f8799e7ed2cd7647b4978e58afef8c9a52781953e37684dc80a25
+size 84360
diff --git a/nestedvaeisolatingcommonfactorsviaweaksupervision/541c3b54-866e-4c39-8dc7-fac3a67f24d3_model.json b/nestedvaeisolatingcommonfactorsviaweaksupervision/541c3b54-866e-4c39-8dc7-fac3a67f24d3_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..b08e60fca2bc95e94f687acd998f160be54530c3
--- /dev/null
+++ b/nestedvaeisolatingcommonfactorsviaweaksupervision/541c3b54-866e-4c39-8dc7-fac3a67f24d3_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5c324d9991754cee4d17bfe540601607cda24d62d60b6e4e5be7b4ec23e3fbeb
+size 111648
diff --git a/nestedvaeisolatingcommonfactorsviaweaksupervision/541c3b54-866e-4c39-8dc7-fac3a67f24d3_origin.pdf b/nestedvaeisolatingcommonfactorsviaweaksupervision/541c3b54-866e-4c39-8dc7-fac3a67f24d3_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..4e86fd4db84073936a8b86a05d0ca0f746d8a6f0
--- /dev/null
+++ b/nestedvaeisolatingcommonfactorsviaweaksupervision/541c3b54-866e-4c39-8dc7-fac3a67f24d3_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:799b694cb77630e744649186d2f8e9af77ba52a9ba05631f9d85488eb2d7023f
+size 426850
diff --git a/nestedvaeisolatingcommonfactorsviaweaksupervision/full.md b/nestedvaeisolatingcommonfactorsviaweaksupervision/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..47419de5e22b7678255ca6431ee88ba4caa0beed
--- /dev/null
+++ b/nestedvaeisolatingcommonfactorsviaweaksupervision/full.md
@@ -0,0 +1,335 @@
+# NestedVAE: Isolating Common Factors via Weak Supervision.
+
+Matthew J. Vowels
+
+m.j.vowels@surrey.ac.uk
+
+Necati Cihan Camgoz
+
+n.camgoz@surrey.ac.uk
+
+Richard Bowden
+
+r.bowden@surrey.ac.uk
+
+Centre for Vision, Speech and Signal Processing
+University of Surrey
+Guildford, UK
+
+# Abstract
+
+Fair and unbiased machine learning is an important and active field of research, as decision processes are increasingly driven by models that learn from data. Unfortunately, any biases present in the data may be learned by the model, thereby inappropriately transferring that bias into the decision making process. We identify the connection between the task of bias reduction and that of isolating factors common between domains whilst encouraging domain specific invariance. To isolate the common factors we combine the theory of deep latent variable models with information bottleneck theory for scenarios whereby data may be naturally paired across domains and no additional supervision is required. The result is the Nested Variational AutoEncoder (NestedVAE). Two outer VAEs with shared weights attempt to reconstruct the input and infer a latent space, whilst a nested VAE attempts to reconstruct the latent representation of one image, from the latent representation of its paired image. In so doing, the nested VAE isolates the common latent factors/causes and becomes invariant to unwanted factors that are not shared between paired images. We also propose a new metric to provide a balanced method of evaluating consistency and classifier performance across domains which we refer to as the Adjusted Parity metric. An evaluation of NestedVAE on both domain and attribute invariance, change detection, and learning common factors for the prediction of biological sex demonstrates that NestedVAE significantly outperforms alternative methods.
+
+# 1. Introduction
+
+One of the goals of representation learning is to achieve an embedding that informatively captures the underlying factors of variation in data [10]. However, many techniques for learning such embeddings have been found to also learn unwanted or confounding factors, irrelevant or detrimental to the intended task(s) [54]. Such factors can include distribution specific bias, which impairs the generalizability of a model across empirical samples or in the face of distri
+
+
+Figure 1. Top-level architecture of NestedVAE. Images (or alternative data modality) are paired according to shared attributes or domains. Latent representations $\mathbf{z}_i$ and $\mathbf{z}_j$ for images $\mathbf{x}_i$ and $\mathbf{x}_j$ are derived and fed to a secondary 'nested' VAE. Using the principles from Information Bottleneck theory, a sufficient and minimal representation $\mathbf{z}_s$ for $\mathbf{z}_j$ may be derived from $\mathbf{z}_i$ and vice versa. $\mathbf{z}_s$ may therefore be interpreted as representing the common factors, or common causes for the two images. Sufficiency indicates it contains the information common to both, and minimality indicates that it is invariant to information specific to each.
+
+butional shift [14, 54, 74, 11], or bias associated with culturally sensitive or legally protected characteristics such as race, age, gender or sex [55, 17, 53, 36, 71, 57, 65, 15].
+
+Indeed, the prevalence of reports of systemic bias arising from the use of machine learning algorithms is increasing [35, 66, 77]. Furthermore, conceptually distinct factors, such as object type and pose, may be entangled in the embedding, despite a prior expectation that they ought to be factorized. Learning models that solve these problems is therefore important from a number of converging engineering and societal perspectives [55]. In terms of engineer-
+
+
+(a)
+
+
+(b)
+Figure 2. Probabilistic Graphic Model for (a) inferring the common factors $\mathbf{z}_{\mathbf{s}}$ from pairs of images $\mathbf{x}_i$ and $\mathbf{x}_j$ and (b) the inference and generative processes of a VAE. Dotted lines indicate inference and solid lines indicate generation. $\phi$ and $\theta$ are the VAE encoder (inference) and decoder (generation) parameters respectively.
+
+ing, we may wish for our models to be informative, to be invariant to nuisance factors, to perform well and generalize across domains, and to disentangle independent factors of variation. From a societal perspective, we may wish to achieve statistical and demographic parity such that our models do not reflect or amplify any unfairness present in our data or in society itself [65, 91, 35, 66].
+
+Success at these overlapping tasks has implications for a range of more specific downstream tasks including attribute transfer [80, 81, 33, 39, 94], person re-identification [8, 27], change detection [32] adversarial robustness [37], and machine learning based decision processes [55, 9, 63].
+
+The contributions of this work are as follows:
+
+- A unified interpretation of prior work on bias, disentanglement, fairness, domain/attribute invariance, and common causes.
+- A novel deep latent variable model (Figure 1) called the Nested Variational Autoencoder (NestedVAE) that combines deep, amortized variational inference [43] and Information Bottleneck (IB) theory [82, 83].
+- A demonstration that NestedVAE achieves significant improvements in classification and regression by learning the common factors between domains.
+- A novel metric for evaluating regression and classification parity across domains, referred to as the Adjusted Parity Metric, that accounts for predictive performance and the variation in performance across domains.
+
+# 2. Formulation
+
+# 2.1. Problem Formulation
+
+We consider the problem of encoding an informative, latent representation $\mathbf{z} \sim p(\mathbf{z})$ from observation $\mathbf{x} \sim p(\mathbf{x}|\mathbf{z},\mathbf{c})$ such that $\mathbf{z}$ is invariant to some irrelevant/nuisance/confounding covariate $\mathbf{c}$ [58]. From a statistical parity perspective, we wish to be able to use the latent
+
+representation for some arbitrary downstream prediction of label $\mathbf{y}$ such that $p(\hat{y} = y|\mathbf{c},\mathbf{z}) = p(\hat{y} = y|\mathbf{z})\forall y,\mathbf{c},\mathbf{z}$ [56]. We therefore wish for $\mathbf{z}\perp \perp \mathbf{c}$ and $y\perp \perp \mathbf{c}$ . From a domain invariance perspective, we wish learning to transfer as much as possible between the different domains, where each domain is associated with its own confounders or covariates. In other words, the learnt latent representation should be independent of nuisance or confounding factors, thereby resulting in downstream task performance that is invariant to these factors. Further, the resulting representation will represent the latent factors common to each domain.
+
+For the development of NestedVAE, we consider the incorporation of weak supervision whereby the supervision takes the form of data pairs [75]. Scenarios for which natural pairings occur or may be straightforwardly derived include: time series data whereby individuals appearing in frames from the same scene vary in terms of pose and expression but maintain identity [23, 26]; pairings within domains where the domains may be hospitals or patients and the data may be medical images [54]; pairings arising from dyadic interactions such as conversations [40]; and pairings of data representing images of objects (e.g. hands from sign language data) from multiple viewpoints. Without loss of generality we primarily consider the application of computer vision with face images, whereby the images are paired according to sex.
+
+For the following formalization we assume two domains, although the model can be extended to include any number of domains for which we can form pairs. The Probabilistic Graphic Model (PGM) corresponding with our world model is depicted in Figure 2a. We assume that each image $\mathbf{x}_i\in X_1$ and $\mathbf{x}_j\in X_2$ has latent factors/causes $\mathbf{z}_i$ and $\mathbf{z}_j$ specific to the respective domains $X_{1}$ or $X_{2}$ , as well as shared factors/causes $\mathbf{z}_s$ common to both domains. From the perspective of learning domain invariance, $\mathbf{z}_i$ and $\mathbf{z}_j$ represent confounders $\mathbf{c}_i$ and $\mathbf{c}_j$ respectively, and $X_{1}$ and $X_{2}$ represent different domains to which the representation $\mathbf{z}_s$ should be agnostic/invariant. From the perspectives of causal modelling, $\mathbf{z}_i$ and $\mathbf{z}_j$ are domain specific latent causes, and $\mathbf{z}_s$ are common latent causes [50]. This is similar to the confounding additive noise model [38, 50] where $\mathbf{x}_i = f_i(\mathbf{z}_i) + g_i(\mathbf{z}_s) + \epsilon_i$ and $\mathbf{x}_j = f_j(\mathbf{z}_j) + g_j(\mathbf{z}_s) + \epsilon_j$ , $f$ and $g$ are arbitrary functions, and $\epsilon$ is additive noise.
+
+For each pair of images we wish to learn a representation $\mathbf{z}_{\mathrm{s}}$ that represents only the common factors between images in the pair. In order to do so, we leverage the information gain achieved from specific pairings in order to infer $\mathbf{z}_s$ from $\mathbf{z}_i$ and $\mathbf{z}_j$ , and take inspiration from the information bottleneck perspective [82, 83, 65, 2]. To do so, we model the shared and common factors as a Markov chain:
+
+$$
+\mathbf {z} _ {i} \longrightarrow \mathbf {z} _ {s} \longrightarrow \mathbf {z} _ {j} \text {s . t .} p \left(\mathbf {z} _ {j} \mid \mathbf {z} _ {i}, \mathbf {z} _ {s}\right) = p \left(\mathbf {z} _ {j} \mid \mathbf {z} _ {s}\right) \tag {1}
+$$
+
+The Data Processing Inequality [20] means that $\mathbf{z}_s$ cannot contain more information about $\mathbf{z}_j$ than $\mathbf{z}_i$ [2]. The
+
+information about $\mathbf{z}_j$ in $\mathbf{z}_s$ can therefore only be what is common to both $\mathbf{z}_i$ and $\mathbf{z}_j$ . The image pairings are formed as non-ordered combinations such that we pair $\mathbf{x}_i$ with $\mathbf{x}_j$ but also $\mathbf{x}_j$ with $\mathbf{x}_i$ . As such, our task becomes that of predicting $\mathbf{z}_j$ from $\mathbf{z}_i$ via $\mathbf{z}_s$ . Finally, if we make the (albeit strong) assumption that $\mathbf{z}_i \approx \mathbf{z}_j + \epsilon$ , where $\epsilon$ represents random perturbations specific to the respective domain, then we can apply VAEs to the task of learning the minimal and sufficient representation $\mathbf{z}_s$ by seeking to generate $\mathbf{z}_i$ from $\mathbf{z}_j$ , and vice versa. Sufficiency describes the Markov chain condition in Eq. 1 whereby $I(\mathbf{z}_s; \mathbf{z}_j) = I(\mathbf{z}_i; \mathbf{z}_j)$ , and minimality describes the fact that there is minimal redundant information in the representation [2, 20]. In other words, $\mathbf{z}_s$ only contains the information in $\mathbf{z}_j$ which is also in $\mathbf{z}_i$ .
+
+# 2.2. VAEs
+
+We now turn our attention to VAEs. For a detailed review of the theory, interested readers are directed to [24, 43, 70]. The PGM for the inference and generation (or, equivalently, encoding and decoding) processes of the VAE is shown in Figure 2b. Following the theory for variational inference [12] for a distribution of latent variables $\mathbf{z}$ , we start by sampling $\mathbf{z} \sim p(\mathbf{z})$ and generate dataset $X$ of images $\mathbf{x} \in \mathbb{R}^N$ with reconstructed/generated distribution $p_{\theta}(\mathbf{x}|\mathbf{z})$ . We may derive an inferred posterior for the conditional latent distribution as $q_{\phi}(\mathbf{z}|\mathbf{x})$ that approximates the true conditional inference distribution $p_{\theta}(\mathbf{z}|\mathbf{x})$ . Both $q_{\phi}(\mathbf{z}|\mathbf{x})$ and $p_{\theta}(\mathbf{x}|\mathbf{z})$ are parameterised by neural network encoder and decoder parameters $\phi$ and $\theta$ respectively [85, 24, 93]. The approximating distribution $q$ is chosen to circumvent the intractability of the integral when computing (in order to maximize) the marginal likelihood $p(\mathbf{x}) = \int p_{\theta}(\mathbf{x}|\mathbf{z}) p(\mathbf{z}) d\mathbf{z}$ and is introduced according to the identity trick:
+
+$$
+\log p (\mathbf {x}) = \log \int p _ {\theta} (\mathbf {x} | \mathbf {z}) \frac {p (\mathbf {z})}{q _ {\phi} (\mathbf {z} | \mathbf {x})} q _ {\phi} (\mathbf {z} | \mathbf {x}) d \mathbf {z} \tag {2}
+$$
+
+This may be further manipulated to establish a lower bound on the marginal log likelihood $\log p(\mathbf{x})$ :
+
+$$
+\log p _ {\theta} (\mathbf {x}) =
+$$
+
+$$
+\begin{array}{l} \mathbb {E} _ {\mathbf {z} \sim q _ {\phi} (\mathbf {z} | \mathbf {x})} \left[ \log p _ {\theta} (\mathbf {x} | \mathbf {z}) \right] - \operatorname {K L} \left[ q _ {\phi} (\mathbf {z} | \mathbf {x}) | | p (\mathbf {z}) \right] + \dots \tag {3} \\ \dots + \mathrm {K L} \left[ q _ {\phi} (\mathbf {z} | \mathbf {x}) | | p _ {\theta} (\mathbf {z} | \mathbf {x}) \right] \\ \end{array}
+$$
+
+The last term on the right hand side of Eq. 3 represents the divergence between our true inference distribution and our choice of approximating distribution, and forms what is known as the 'approximation gap' between the true log likelihood, and its estimation [61]. Once we choose our approximating distribution and optimise it, we are unable to reduce this divergence further. This term is usually omitted such that we are left with what is known as either the Variational Lower Bound (VLB) or the Evidence Lower Bound
+
+(ELBO), which serves as a proxy for the log-likelihood. We can then maximize the ELBO as follows [43, 47]:
+
+$$
+\max _ {\theta , \phi} \mathbb {E} _ {\mathbf {x}} \left[ \mathcal {L} _ {\mathrm {E L B O}} (x) \right] =
+$$
+
+$$
+\max _ {\theta , \phi} \mathbb {E} _ {\mathbf {x}} \left[ \mathbb {E} _ {\mathbf {z} \sim q _ {\phi} (\mathbf {z} | \mathbf {x})} [ \log p _ {\theta} (\mathbf {x} | \mathbf {z}) ] - \beta \mathrm {K L} (q _ {\phi} (\mathbf {z} | \mathbf {x}) \| p (\mathbf {z})) \right] \tag {4}
+$$
+
+The first term on the RHS of Eq. 4 encourages reconstruction accuracy, and the Kullback-Liebler divergence term (weighted by parameter $\beta$ [33]) acts as a prior regularizer, penalising approximations for $q_{\phi}(\mathbf{z}|\mathbf{x})$ that do not resemble the prior. The objective is therefore to maximise the lower bound to the marginal log-likelihood of $\mathbf{x}$ over the latent distribution $\mathbf{z}$ [33], which is assumed to be Gaussian with identity covariance $\mathbf{z} \sim \mathcal{N}(0, \mathbf{I})$ . If sample quality is not of primary concern, there is some incentive to weaken the decoder capacity in order to maintain pressure to encode useful information in the latent space (i.e. increase $I(x;z)$ ) and to prevent decoupling of the decoder from the encoder [59]. The assumption of Gaussianity means that Eq. 4 may be written using an analytical reduction of the KL divergence term [47]:
+
+$$
+\begin{array}{l} \underset {\theta , \phi} {\max} \mathbb {E} _ {\mathbf {x}} \left[ \mathcal {L} _ {\mathrm {E L B O}} (x) \right] = \underset {\theta , \phi} {\max} \mathbb {E} _ {\mathbf {x}} \left[ \mathbb {E} _ {\mathbf {z} \sim q _ {\phi} (\mathbf {z} | \mathbf {x})} \left[ \log p _ {\theta} (\mathbf {x} | \mathbf {z}) \right] - \right. \\ \left. \frac {\beta}{2} \left(\sum_ {i} \left([ \Sigma_ {\phi} (\mathbf {x}) ] _ {i i} - \ln [ \Sigma_ {\phi} (\mathbf {x}) ] _ {i i}\right) + \left\| \boldsymbol {\mu} _ {\phi} (\mathbf {x}) \right\| _ {2} ^ {2}\right) \right] \tag {5} \\ \end{array}
+$$
+
+In Eq. 5 the $[\Sigma_{\phi}(\mathbf{x})]_{ii}$ indicates the diagonal covariance, and $\pmb{\mu}_{\phi}(\mathbf{x})$ is the mean. Both the mean and covariance are learned by the network encoder and parameterize a multivariate Gaussian that forms the inferred latent distribution $q_{\phi}(\mathbf{z}|\mathbf{x})$ . The decoder network samples from $\mathbf{z} \sim q_{\phi}(\mathbf{z}|\mathbf{x})$ using the reparameterization trick [24] such that $\mathbf{z} = \mu_{\phi}(\mathbf{x}) + \epsilon \sqrt{\Sigma_{\phi}(\mathbf{x})}$ where we redefine $\epsilon = \mathcal{N}(0,\mathbf{I})$ . One interpretation of disentanglement posits it is achieved if $q_{\phi}(\mathbf{z}) = \int q_{\phi}(\mathbf{z}|\mathbf{x}) p(\mathbf{x}) d\mathbf{x} = \prod_{i} q_{i}(\mathbf{z}_{i})$ [47].
+
+Applying VAEs to our task: we can learn the latent factors $\mathbf{z}_i$ and $\mathbf{z}_j$ for images $\mathbf{x}_i \sim X_1$ and $\mathbf{x}_j \sim X_2$ respectively. The following section describes the means to utilise these embeddings to learn the shared factors $\mathbf{z}_s$ .
+
+# 2.3. Combining VAEs and Information Bottleneck
+
+VAEs are closely related to information bottleneck theory through the Information Bottleneck Lagrangian [85, 5, 4, 65]:
+
+$$
+\mathcal {L} (p (\mathbf {z} | \mathbf {x})) = H (\mathbf {y} | \mathbf {z}) + \beta I (\mathbf {z}; \mathbf {x}) \tag {6}
+$$
+
+Notice that $H$ , the Shannon entropy of the conditional distribution, is equivalent to the cross-entropy reconstruction term in Eq. 4, except that in VAEs the target $\mathbf{y}$ is $\mathbf{x}$ and
+
+the network generates a reconstruction $\hat{\mathbf{x}}\sim p(\hat{\mathbf{x}} |\mathbf{z})$ . Further, notice that $I(\mathbf{z};\mathbf{x}) = \mathbb{E}_{\mathbf{x}}\mathrm{KL}\left[q_{\phi}(\mathbf{z}|\mathbf{x})||p(\mathbf{z})\right]$ which is the prior regularizer in Eq. 4. Finally the $\beta$ term is proposed to be learned via Lagrangian optimization [2] although, for VAEs, it may also be annealed during training [16] or evaluated as a hyperparameter [33].
+
+Making the assumption that $\mathbf{z}_i\approx \mathbf{z}_j + \epsilon$ , we can reapply the VAE model to this problem. As such, we apply an 'outer' VAE to the problem of learning $\mathbf{z}_i$ and $\mathbf{z}_j$ and a 'nested' VAE to the problem of learning the common factors $\mathbf{z}_s$ . The full loss function over $\mathbf{x}_i\sim X_1$ and $\mathbf{x}_j\sim X_2$ is simply a combination of the outer and nested VAE objectives for each image in a pair, and is presented in Eq. 7. Here, $\phi_{1}$ $\theta_{1}$ ,and $\phi_{2}$ $\theta_{2}$ are the encoder and decoder parameters for the 'outer' and 'nested' VAEs respectively. We have assumed the same prior distribution $p(\mathbf{z})$ and the same approximating distribution family $q$ for both outer and nested VAEs.
+
+$$
+\begin{array}{l} \max _ {\theta_ {1}, \phi_ {1}, \theta_ {2}, \phi_ {2}} \mathbb {E} _ {\mathbf {x} _ {i} \sim X _ {1}, \mathbf {x} _ {j} \sim X _ {2}} \left[ \mathcal {L} _ {\text {N e s t e d}} \right] = \\ \max _ {\theta_ {1}, \phi_ {1}, \theta_ {2}, \phi_ {2}} \mathbb {E} _ {\mathbf {x} _ {i j} \sim X _ {1}, X _ {2}} \left[ \gamma \left(\mathcal {L} (\mathbf {x} _ {i}, \mathbf {z} _ {i}) + \mathcal {L} (\mathbf {x} _ {j}, \mathbf {z} _ {j})\right) + \dots \right. \\ \left. \dots \lambda \left(\mathcal {L} \left(\mathbf {z} _ {i}, \mathbf {z} _ {s}\right) + \mathcal {L} \left(\mathbf {z} _ {j}, \mathbf {z} _ {s}\right)\right) \right] \tag {7} \\ \end{array}
+$$
+
+Here, $\gamma$ and $\lambda$ are hyperparameters that weight the outer and nested VAE ELBO functions respectively. Note that we optimise over all parameters $\phi_{1}$ , $\theta_{1}$ , $\phi_{2}$ and $\theta_{2}$ jointly. In summary, we propose to use VAEs to simultaneously learn both the latent factors $\mathbf{z}_i$ for image $\mathbf{x}_i$ and the latent factors $\mathbf{z}_j$ for image $\mathbf{x}_j$ , while ensuring a sufficient and minimal representation $\mathbf{z}_{\mathrm{s}}$ exists between these latent factors. The network architecture is depicted in Figure 1. Note that, in practice, we find that feeding the nested VAE the latent codes $\mu_{i}$ and $\mu_{j}$ rather than $\mathbf{z}_i$ and $\mathbf{z}_j$ occasionally yields better performance. Furthermore, we also find that the $\beta$ KL weight for the nested VAE should be set close to, or equal to zero for the best results. This is coherent with the application of IB to the derivation of common factors and therefore does not contradict the formulation: $\mathbf{z}_s$ is being derived from the commonality between the parameters $\mu_{i}$ and $\mu_{j}$ of the latent random variables $\mathbf{z}_i$ and $\mathbf{z}_j$ , which have already been regularized by the outer VAE. We can therefore adjust the IB aspect of NestedVAE in Eq. 1 to:
+
+$$
+\boldsymbol {\mu} _ {i} \xrightarrow {q (z | \mu_ {i})} \mathbf {z} _ {s} \xrightarrow {p (\mu_ {j} | z)} \boldsymbol {\mu} _ {j} \tag {8}
+$$
+
+# 3. Prior Work: A Unifying Perspective
+
+Previous work has aimed to achieve a range of seemingly distinct goals which include disentanglement, domain/attribute invariance, fair encodings and bias reduction, generalization, and common causes. In this section, we review examples of such work, whilst drawing attention to the significant commonality between the goals. By noting the commonality, we hope that progress in one area may be leveraged to make progress in the others.
+
+We have identified the problem of achieving domain invariance, which is to transfer learning between domains whilst being invariant to the confounders and covariates unique to each domain. When such confounders are considered to be 'sensitive' attributes, achieving domain invariance may also be considered to be achieving bias reduction, fairness, or demographic parity; when such confounders cause distributional shift, achieving invariance may be considered to be achieving model generalization. Such tasks either require that the confounding information is 'forgotten' or ignored, or that it be disentangled from the domain invariant (i.e. task relevant) factors. However, the task of forgetting is often treated as being distinct from disentanglement. We argue that these tasks complement each other: one researcher's disentangled, generative attribute may be another's confounder. For instance, in facial recognition, the identity of an individual should be predicted from an image in such a way that the prediction is invariant to the head-pose and facial expression; it does not benefit the model to provide a different identity representation for a different head-pose. For such an application, a method may either 'learn to forget' head-pose, or to disentangle headpose from identity such that the information encoding identity is independent of, and separable from, the information for pose. In both disentanglement and domain invariance, task-relevant information needs to be separated from task-irrelevant information.
+
+Furthermore, many of the models utilized for disentanglement are deep latent variable models [33, 46, 16, 26, 93, 47, 56]. Such models aim to infer the generative or causal factors behind the observed data. As such, using these models to identify factors which are common between domains (as NestedVAE does) becomes equivalent both to identifying the common causes as well as to identifying the factors which generalize across domains. Much of the prior work on unsupervised disentanglement [33, 73, 75, 26, 16, 93, 47, 56] therefore also indirectly contributes to the field of domain invariance and fairness. Indeed, recent work [55] has specifically explored the connection between disentanglement and fairness.
+
+Previous research has sought to disentangle and/or learn invariant representations by incorporating supervision with fully supervised VAEs [46, 21], semi-supervised VAEs [57, 65, 54, 76], adversarial training [30, 31, 27, 74, 90, 88, 48, 60, 69, 94, 3], Shannon Mutual Information regularization [44, 68] and paired images with auxiliary classifiers [14, 8]. In other scenarios, we may only have access to indirect supervision for c e.g. in the form of grouped or paired images [81, 25, 1] or pairwise similarities [19, 18]. In such cases, previous work has incorporated such weak supervision into VAEs [72, 23, 13, 19, 87], cycle-consistent networks [39, 51], autoencoders [25], and autoencoders with adversarial training [80]. In scenarios whereby no supervi
+
+sion is available to assist in learning invariant embeddings, unsupervised approaches are possible which may involve testing for disentanglement and interventional robustness [79, 56]. Existing methods that aim to achieve domain invariance and/or disentanglement therefore vary in the level of incorporation of supervision.
+
+Acquiring high quality labelled datasets is both time consuming and expensive, and supervised methods such as those that require labels for class, domain, and/or covariate (e.g. as for [3, 54]) may not always be feasible. Disentanglement may allow for an embedding to be learned such that the undesired covariate is identifiable or extricable at a later time for a specific downstream task. However, the efficacy of completely unsupervised methods for disentanglement has recently been shown to vary as much by random-seed as by architecture and design [56].
+
+Given the disadvantages of both fully supervised and fully unsupervised methods, it is pertinent to consider methods that incorporate minimal levels of weak supervision. Despite some overlap between definitions [29], weak supervision is generally used to describe the scenario whereby labels are available but the labels only relate to a limited number of factors [80]. Semi-supervision, in contrast, describes the scenario whereby fully informative labelling is available but only for a subset of the data [42]. Whilst adversarial methods have been shown to work well for 'forgetting' information, they are also notoriously difficult and unreliable to train [65, 52, 26]. Further, previous work has highlighted that adversarial training is unnecessary, and that non-adversarial training can achieve comparable or better results [65, 26]. Given the disadvantages of adversarial training and the comparable success of VAEs, we consider developing a new method using the VAE as a foundation. VAEs are a form of latent variable model [43] and are therefore suitable for the task of deriving invariant representations from observations with limited supervision.
+
+The closest prior work to ours in terms of architectural similarity is probably Joint Autoencoders for Disentangle-ment (JADE) [8]. JADE pairs images according to a common label, feeds each image through a separate VAE and uses a partition from each VAE latent space to predict the shared label, thereby attempting to disentangle label relevant information from label irrelevant information. JADE is evaluated according to its capacity for transfer learning from one, data abundant domain (the full MNIST dataset [49]) to a data scarce domain (chosen to be a reduced version SVHN dataset [67]). The NestedVAE differs in that we do not use labels indicating the domain, thereby significantly weakening the level of explicit supervision. Work by [23] pairs images according to whether or not they derive from the same video sequence, and is classified by the researchers as being an unsupervised method. We take a similar approach with NestedVAE by pairing images, but
+
+broaden the input pairings beyond those from the same video sequence to those that are from two domains but that share some common attribute(s). The result is a network that ' forgets' information specific to each domain, and learns factors common to both without adversarial training, and with only minimal, weak supervision.
+
+# 4. Evaluation of NestedVAE
+
+In light of the overlap between domain/attribute invariance, fairness, and bias reduction discussed in the previous section, we evaluate NestedVAE on a range of tasks. NestedVAE is first evaluated for domain/attribute invariance and change detection on a synthetic dataset with ground-truth factors: rotated MNIST [28, 49]. For this first evaluation, NestedVAE is compared against $\beta$ -VAE [33] (which increases the pressure on the KL-divergence loss), infoVAE [93] (which minimises maximum mean discrepancy) and DIP-VAE-I and DIP-VAE-II [47]. For a non-synthetic evaluation, we test for fairness and bias reduction with biological sex prediction across individuals of different race using the UTKFace dataset [92], and compare with $\beta$ -VAE and DIP-VAE-I. Additional results can be found in the supplementary material.
+
+# 4.1. Adjusted Parity Metric
+
+For evaluation of domain invariance we propose a (to the best of our knowledge) new parity metric that accounts for both discrepancies in accuracy between domains as well as classifier accuracy or normalized regressor performance. The metric is referred to in this work as the adjusted parity metric (adjusted for accuracy) and is defined as follows:
+
+$$
+\Delta_ {\mathrm {a d j}} = \bar {S} (1 - 2 \sigma_ {\mathrm {a c c}}) \tag {9}
+$$
+
+Here, $\bar{S}$ is the average accuracy $^2$ of the classifier over the domains, normalized to be between [0,1] according to the baseline accuracy of a random prediction. For example, if we have equal chance of predicting any of the 10 MNIST digits by random chance, the baseline is 0.1. $\sigma_{\mathrm{acc}}$ is the standard deviation of the normalized classifier accuracies. Any classifier that is minimally consistent or minimally accurate will have $\Delta_{\mathrm{adj}} = 0$ and any classifier that is maximally consistent and maximally accurate will have $\Delta_{\mathrm{adj}} = 1$ . This metric was motivated by the fact that although a representation may be domain or attribute invariant, this does not imply that it is also a good classifier: it must also be informative for the intended task.
+
+# 4.2. Models
+
+For the purposes of the evaluations in this work, the VAEs that constitute NestedVAE do not deviate from the
+
+
+Figure 3. UMAP projections of the representations learned from the rotated MNIST dataset by NestedVAE and $\beta$ VAE. The representations are coloured according to digit class (left) and rotation domain (right). It can be seen that NestedVAE representations contain significantly less information about rotation than do the $\beta$ VAE representations. Best viewed in color.
+
+ | Transfer Domain | Nested (ours) | β-VAE | infoVAE | DIP-VAE-I | DIP-VAE-II |
| Digit Classification (higher is better) | 0° | 0.708±0.211 | 0.551±0.262 | 0.629±0.141 | 0.561±0.213 | 0.519±0.274 |
| 15° | 0.696±0.202 | 0.546±0.261 | 0.633±0.132 | 0.597±0.189 | 0.527±0.270 |
| 30° | 0.714±0.152 | 0.555±0.251 | 0.657±0.076 | 0.602±0.206 | 0.539±0.244 |
| 45° | 0.738±0.124 | 0.575±0.212 | 0.681±0.056 | 0.587±0.208 | 0.510±0.275 |
| 60° | 0.721±0.127 | 0.573±0.203 | 0.682±0.057 | 0.577±0.224 | 0.487±0.278 |
| 75° | 0.647±0.250 | 0.509±0.249 | 0.588±0.183 | 0.417±0.203 | 0.488±0.253 |
| Δadj Parity | n/a | 0.664 | 0.525 | 0.603 | 0.486 | 0.492 |
| Rotation Classification (lower is better) | 0° | 0.373±0.029 | 0.530±0.011 | 0.523±0.005 | 0.511±0.012 | 0.541±0.007 |
| 15° | 0.343±0.008 | 0.534±0.005 | 0.516±0.008 | 0.493±0.007 | 0.547±0.005 |
| 30° | 0.295±0.050 | 0.534±0.007 | 0.546±0.005 | 0.494±0.005 | 0.538±0.006 |
| 45° | 0.316±0.025 | 0.532±0.006 | 0.540±0.001 | 0.493±0.007 | 0.541±0.003 |
| 60° | 0.321±0.014 | 0.534±0.005 | 0.542±0.006 | 0.495±0.007 | 0.549±0.007 |
| 75° | 0.347±0.057 | 0.517±0.012 | 0.509±0.010 | 0.496±0.016 | 0.518±0.012 |
+
+Table 1. Average F1-scores and standard errors over 10 runs for digit class (higher is better) and rotation domain (lower is better) classification. NestedVAE is compared against $\beta$ -VAE [33], infoVAE [93], and DIP-VAE-II [47]. For digit classification, 'Transfer domain' refers to the test domain used for classifying the image representations, and this domain is not used during training (i.e. domain $0^{\circ}$ means the network has been trained on domains $15^{\circ} - 75^{\circ}$ and is being tested on data from domain $0^{\circ}$ ). For rotation classification, the setup is similar in that it represents the domain on training not used during training, although all domains are used for testing (i.e. domain $0^{\circ}$ means the network has been trained on domains $15^{\circ} - 75^{\circ}$ and is being tested on data from ALL domains). We see that NestedVAE learns more informative representations for digit classification than the alternatives, as well as 'forgetting' more domain specific information. $\bar{\Delta}_{\mathrm{adj}}$ is the average parity metric presented in Eq. 9. Best results are shown in bold.
+
+'vanilla' implementations, in that they have isotropic Gaussian priors and approximating distributions [43]. The outer VAE $\beta$ KL weight is increased gradually from zero and then annealed during training [78, 33, 16]. Other more exotic formulations of the VAE may certainly be implemented within the NestedVAE formulation (e.g. see [5, 34, 84, 58, 93, 22, 47]). However, the focus of this work is on the adaptation of the general VAE framework for purposes of domain invariance, rather than the optimality of the VAE itself. Full details of the NestedVAE network architectures used for the experiments can be found in the supp. material.
+
+# 4.3. Rotated MNIST
+
+The rotated MNIST training dataset is generated as follows [28, 54]: for each digit class, 100 random samples are drawn and 6 rotations of $\{0^{\circ}, 15^{\circ}, 30^{\circ}, 45^{\circ}, 60^{\circ}, 75^{\circ}\}$ are applied resulting in $(100 \times 10 \times 6) = 6000$ images (one tenth the size of the original MNIST training set). This is repeated to produce a non-overlapping test set of the same structure. For each training pair, a random digit class is chosen and two images are chosen with that digit class across a randomly selected pair of (different) rotations. Each ro
+
+tation group is treated as a domain to which the learned embedding should be invariant. The network is trained on data from 5 out of 6 of the rotation domains, and tested for digit classification performance on the remaining domain (for which the network has seen no samples from the same distribution during training) using a Random Forest classification algorithm. This is then repeated until the network has been trained and tested on all combinations of domains. If the network achieves domain transfer, we should see a good digit classification performance on the test domain. If the network achieves attribute invariance, we should see poor rotation classification performance across all domains.
+
+NestedVAE is then evaluated for its usefulness at change detection using the same methodology as [32]. Images are alternately paired according to shared or not shared digit class. If the pair shares the digit class, a '0' ground-truth label is generated, representing no change. If the pair does not share the same digit class, a '1' label is generated, representing a change. The L2 norm is calculated between the representations of the images in each pair, and a k-means clustering algorithm is trained on the L2 distance and evaluated against the labels.
+
+Finally, the Uniform Manifold Approximation Projection (UMAP) [62] algorithm is applied to assess domain invariance visually. UMAP is a more recent, more efficient algorithm for manifold projection than the well-known t-distributed Stochastic Neighbor Embedding (tSNE) [86]. The results are compared against the best alternative from the quantitative evaluation.
+
+In terms of model parameter values, for $\beta$ -VAE, $\beta = 4$ and is annealed during training (as suggested by [33, 16]), for DIP-VAE-I, $\lambda_{od} = 10$ and $\lambda_d = 100$ , for DIP-VAE-II, $\lambda_{od} = \lambda_d = 250$ , and for InfoVAE $\alpha = 0$ and $\lambda_v = 500$ (as suggested by [93]) where all $\alpha$ , $\lambda$ -parameters represent a weight on the respective component(s) of the models' objective functions. All models were trained for 100 epochs with an Adam optimizer [41], a learning rate of 0.0008 and a batch size of 64. NestedVAE had an inner latent dimensionality of 8, whilst the outer VAE had a latent dimensionality of 10. The nested and outer VAE weights $\gamma = \delta = 0.5$ . All alternative models had a latent dimensionality of 10.
+
+Rotated MNIST Results: The results for domain and attribute invariance on rotated MNIST dataset are shown in Table 1. The results show that NestedVAE is significantly better at learning domain irrelevant information (digit class) as well as being much better at forgetting domain specific information (rotation), than the alternative methods. The Adjusted Parity results are presented in the row labelled $\bar{\Delta}_{\mathrm{adj}}$ . Note that, because F1 ranges from [0,1], we do not need to normalize F1 according to that of a random prediction before computing the Adjusted Parity. The results for the adjusted parity metric $\bar{\Delta}_{\mathrm{adj}}$ demonstrate that Nested-VAE outperforms the alternatives.
+
+The UMAP projections are shown in Figure 3. This figure demonstrates that a 2D projection of the rotated MNIST embeddings may be clearly clustered according to digit labels (left). However, when the projections are coloured according to rotation labels (right), it can be seen that $\beta$ -VAE encodes rotation vertically, whilst NestedVAE has, as intended, learned embeddings that are invariant to rotation.
+
+The results for the change detection task are shown in Table 2. Nested VAE is evaluated against 7 other methods, some of which are specifically designed for change detection and which utilise significantly more powerful network architectures than ours [32, 13, 60]. It can be seen that NestedVAE outperforms the best alternative.
+
+| Method | Accuracy |
| Outlier AutoEncoder[89] | 0.5427 |
| VAE [43] | 0.5495 |
| Clustering AutoEncoder [7] | 0.5514 |
| Reconstruction Prob. VAE [6] | 0.5724 |
| Adversarial VAE [60] | 0.5834 |
| Multi-Level VAE [13] | 0.6072 |
| Rare-Event VAE [32] | 0.7166 |
| NestedVAE (ours) | 0.7380 |
+
+Table 2. Change detection accuracy on rotated MNIST. L2 distances between pairs of representations where images are paired according to whether they contain the same (no change) or different (change) digits. K-means clustering is then used to group the representation distances. Alternative results taken from [32]. The best result is shown in bold.
+
+# 4.4.UTKFace
+
+The UTKFace dataset [92] comprises $+20\mathrm{k}$ images with labels for race (White, Black, Asian, Indian, or other) and sex (male or female). Previous work has noted the bias in gender prediction software [15, 45, 64], particularly in relation to the accuracy of gender prediction for white individuals compared to the (significantly lower) accuracy for black individuals. We note a distinction between biological sex and gender, and assume that any labels in UTKFace are actually for biological sex. This is because, despite UTKFace referring to gender, the actual labels are for 'male' and 'female' which are terms more sensitively attributed to sex (see [17] for a discussion on the sociological aspects of gender).
+
+| Method | Δadj Parity (Female) | Δadj Parity (Male) |
| β-VAE | 0.410 | 0.537 |
| DIPVAE-I | 0.394 | 0.547 |
| NestedVAE (ours) | 0.641 | 0.699 |
+
+Table 3. This table shows the Adjusted Parity calculated from F1 scores across race using the UTKFace dataset. Methods with high Adjusted Parity are methods which have high F1 score for the prediction of biological sex and which are consistent across race. Best results are shown in bold. NestedVAE outperforms alternatives.
+
+The dataset is first restricted to comprise only white and black individuals. This is done in order to reduce the ambiguity associated with the definition of race across ethnicity, as applied in UTKFace, which uses labels such as 'Indian' or 'Other'. Next, the dataset is split into train and test sets, and the training set is further reduced in size such that the number of white individuals is equal to the number of black individuals. We then create 5 versions of the training dataset, whereby the proportion of white individuals is increased from $50\%$ to $100\%$ . The model is trained on each of these versions and embeddings for the test set are generated by passing the test set images through the trained model. Gradient boosting classifiers are used to predict sex across white and black individuals and we present the corresponding F1 classification scores and Area Under Receiver Operator Characteristic (AU-ROC) scores.
+
+In terms of model parameter values, for $\beta$ -VAE, $\beta = 4$ and is annealed during training (as suggested by [33, 16]), for DIP-VAE-I, $\lambda_{od} = 10$ and $\lambda_{d} = 100$ . The models were trained for 1000 epochs with an ADAM optimizer with a learning rate of 0.001 and a batch size of 64. NestedVAE had an inner latent dimensionality of 50, whilst the outer VAE had a latent dimensionality of 256. The nested and outer VAE weights $\gamma = \delta = 0.5$ . All alternative models had a latent dimensionality of 50. A hyperparameter search yielded gradient boosting classifier parameters as follows: maximum features=50; maximum depth=5; learning rate=0.25, number of estimators=300, minimum samples per split=0.7. Averages and standard deviations are acquired over 5 runs.
+
+UTKFace Results: The results for Adjusted Parity are shown in Table 3. These results provide a measure of consistency and performance (F1 score) of the classifier for the prediction of biological sex across race domains. It can be seen that NestedVAE outperforms alternatives, and also shows the smallest discrepancy in Adjusted Parity between female and male classification performance (0.699 for male, compared with 0.641 for female). Notably, sex is poorly predicted using embeddings from the other models. The poor prediction could be because the alternative models have embedded sex as a continuous variable (e.g. degrees of masculinity/femininity) which is entangled with other appearance dimensions, whereas NestedVAE has been explicitly trained using binary pairings of sex, thereby providing significant inductive bias. The results for the Area Under Receiver Operator Characteristic (AU-ROC) score are shown in Figure 4. These results demonstrate the classifier performance for predicting biological sex for black individuals and white individuals using embeddings from models trained on data varying in the proportion of white and black individuals. Interestingly, we do not see a large variation across the training sets, suggesting that the information about sex encoded in the network embeddings is not sub
+
+stantially confounded by race. Nevertheless, NestedVAE clearly outperforms the alternative methods by a significant margin in its ability to isolate the common factors (i.e. factors relating to sex).
+
+
+Figure 4. Area Under Receiver Operator Characteristic (AU-ROC) scores for models trained on datasets with varying proportions of white and black individuals. NestedVAE significantly outperforms alternatives. Best viewed in color.
+
+# 5. Conclusion and Further Work
+
+NestedVAE provides a means to learn representations that are invariant to the covariates specific to domains, whilst being able to isolate the common causes across domains. The method combines the theory of deep latent variable VAE models with Information Bottleneck principle and is trained on pairs of images with common factors and where the two images in a pair are sampled from different domains. Results demonstrate NestedVAE's superior performance for achieving domain invariance, change detection, and sex prediction. We have also presented a new (to the best of our knowledge) 'adjusted parity metric' in order to facilitate comparison between methods with significantly different classification performance.
+
+The principles behind NestedVAE can be applied to more exotic VAEs, and even non-VAEs. Further work should explore the application of the principles to different models.
+
+# 6. Acknowledgements
+
+This work received funding from the SNSF Sinergia project 'SMILE' (CRSII2_160811), the European Union's Horizon2020 research and innovation programme under grant agreement no. 762021 'Content4All' and the EPSRC project 'ExTOL' (EP/R03298X/1). This work reflects only the author's view and the Commission is not responsible for any use that may be made of the information it contains.
+
+# References
+
+[1] A. Abid and J. Zou. Contrastive variational autoencoder enhances salient features. arXiv:1902.04601v1, 2019.
+[2] A. Achille and S. Soatto. Emergence of invariance and disentanglement in deep representations. Journal of Machine Learning Research, 18, 2018.
+[3] E. Adeli, Q. Zhao, A. Pfefferbaum, E. V. Sullivan, L. Fei-Fei, J. C. Niebles, and K. M. Pohl. Bias-resilient neural network. arXiv:1910.03676v1, 2019.
+[4] A. A. Alemi, I. Fischer, J. V. Dillon, and K. Murphy. Deep variational information bottleneck. arXiv:1612.00410v7, 2017.
+[5] A. A. Alemi, B. Poole, I. Fischer, J. V. Dillon, R. A. Saurous, and K. Murphy. Fixing a broken ELBO. arXiv:1711.00464v3, 2018.
+[6] J. An and S. Cho. Variational autoencoder based anomaly detection using reconstruction probability. SNU Data Mining Center Tech. Report, 2015.
+[7] C. Aytekin, X. Ni, F. Cricri, and E. Aksu. Clustering and unsupervised anomaly detection with L2 normalized deep autoencoder representations. arXiv:1802.00187, 2018.
+[8] E. Banijamali, A. H. Karimi, A. Wong, and A. Ghodsi. Jade: Joint autoencoders for dis-entanglement. arXiv:1711.09163v1, 2017.
+[9] S. Barocas, M. Hardt, and A. Narayanan. *Fairness and machine learning*. fairmlbook.org, 2019.
+[10] Y. Bengio, A. Courville, and P. Vincent. Representation learning: A review and new perspectives. IEEE Transactions on pattern analysis and machine intelligence, 2013.
+[11] Y. Bengio, T. Deleu, N. Rahaman, N. R. Ke, S. Lachapelle, O. Bilaniuk, A. Goyal, and C. Pal. A meta-transfer objective for learning to disentangle causal mechanisms. arXiv:1901.10912v2, 2019.
+[12] C. M. Bishop. Pattern Recognition and Machine Learning. Springer, New York, 2006.
+[13] D. Bouchacourt, R. Tomioka, and S. Nowozin. Multi-level variational autoencoder: learning disentangled representations from grouped observations. arXiv:1705.08841v1, 2017.
+[14] K. Bousmalis, G. Trigeorgis, N. Silberman, D. Krishnan, and D. Erhan. Domain separation networks. arXiv:1608.06019, 2016.
+[15] J. Buolamwini and T. Gebru. Gender Shades: Intersectional accuracy disparities in commercial gender classification. Proc. of Machine Learning Research, 81:1-15, 2018.
+[16] C. P. Burgess, I. Higgins, A. Pal, L. Matthew, N. Watters, G. Desjardins, and A. Lerchner. Understanding disentangling in Beta-VAE. arXiv:1804.03599v1, 2018.
+[17] Y. T. Cao and H. Daume III. Toward gender-inclusive coreference resolution. arXiv:1910.13913v2, 2019.
+[18] J. Chen and K. Batmanghelich. Robust ordinal VAE: employing noisy pairwise comparisons for disentanglement. arXiv:1910.05898v1, 2019.
+[19] J. Chen and K. Batmanghelich. Weakly supervised disentanglement by pairwise similarities. arXiv:1906.01044v1, 2019.
+[20] T. M. Cover and J. A. Thomas. Elements of information theory. John Wiley and Sons Inc., New York, 2006.
+
+[21] E. Creager, D. Madras, J-H. Jacobsen, M. A. Weis, K. Swersky, T. Pitassi, and R. Zemel. Flexibly fair representation learning by disentanglement. arXiv:1906.02589v1, 2019.
+[22] C. Cremer, Q. Morris, and D. Duvenaud. Reinterpreting importance-weighted autoencoders. arXiv:1704.02916v2, 2017.
+[23] E. Denton and V. Birodkar. Unsupervised learning of disentangled representations from video. NIPS, 2017.
+[24] C. Doersch. Tutorial on variational autoencoders. arXiv:1606.05908v2, 2016.
+[25] Z. Feng, X. Wang, C. Ke, A. Zeng, D. Tao, and M. Song. Dual swap disentangling. 32nd Conference on Neural Information Processing Systems (NeurIPS), 2018.
+[26] A. Gabbay and Y. Hosen. Demystifying inter-class disentanglement. arXiv:1906.11796v2, 2019.
+[27] Y. Ganin, E. Ustinova, H. Ajakan, H. Larochelle, F. Laviolette, M. Marchand, and V. Lempitsky. Domain-adversarial training of neural networks. arXiv:1505.07818, 2016.
+[28] M. Ghifary, W. B. Kleijn, M. Zhang, and D. Balduzzi. Domain generalization for object recognition with multi-task autoencoders. ICCV, (2551-2559), 2015.
+[29] I. Goodfellow, Y. Bengio, and A. Courville. Deep Learning. MIT Press, Cambridge, Massachusetts, 2016.
+[30] I. J. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio. Generative adversarial nets. arXiv:1406.2661, 2014.
+[31] N. Hadad, L. Wolf, and M. Shahar. A two-step disentanglement method. CVPR, 2018.
+[32] R. Hamaguchi, K. Sakurada, and R. Nakamura. Rare event detection using disentangled representation learning. CVPR, 2019.
+[33] I. Higgins, L. Matthew, A. Pal, C. Burgess, X. Glorot, M. Botvinick, S. Mohamed, and A. Lerchner. Beta-VAE: Learning basic visual concepts with a constrained variational framework. *ICLR*, 2017.
+[34] M. D. Hoffman and M. J. Johnson. ELBO surgery: yet another way to carve up the variational evidence lower bound. 30th Conference on Neural Information Processing Systems, 2016.
+[35] K. Holstein, J. W. Vaughan, H. Daume III, M. Dudik, and H. Wallach. Improving fairness in machine learning systems: what do industry practitioners need? arXiv:1812.05239v2, 2019.
+[36] A. Howard and J. Borenstein. The ugly truth about ourselves and our robot creations: the problem of bias and social inequity. Science and engineering ethics, 24(5):1521-1536, 2018.
+[37] U. Hwang, J. Park, H. Jang, S. Yoon, and N. I. Cho. PuVAE: a variational autoencoder to purify adversarial examples. arXiv:1903.00585, 2019.
+[38] D. Janzing, J. Peters, J. Mooij, and B. Scholkopf. Identifying confounders using additive noise models. *Porceedings of the 25th Conference on Uncertainty in Artificial Intelligence*, 2009.
+[39] A. H. Jha, S. Anand, M. Singh, and V. S. R. Veeravasarapu. Disentangling factors of variational with cycle-consistent variational auto-encoders. ECCV, 2018.
+
+[40] David A. Kenny, Deborah A. Kashy, and William L. Cook. Dyadic data analysis. Methodology in the social sciences. Guilford Press, New York, 2006.
+[41] D. P. Kingma and J. L. Ba. Adam: a method for stochastic optimization. arXiv:1412.6980v9, 2017.
+[42] D. P. Kingma, D. J. Rezende, S. Mohamed, and M. Welling. Semi-supervised learning with deep generative models. arXiv:1406.5298, 2014.
+[43] D. P. Kingma and M. Welling. Auto-encoding variational Bayes. arXiv:1312.6114v10, 2014.
+[44] J. Klys, J. Snell, and R. Zemel. Learning latent subspaces in variational autoencoders. 32nd Conference on Neural Information Processing Systems (NeurIPS), 2018.
+[45] A. Kortylewski, B. Egger, A. Morel-Forster, A. Schneider, T. Gereg, C. Blumer, C. Reyneke, and T. Vetter. Can synthetic faces undo the damage of dataset bias to face recognition and facial landmark detection? arXiv:1811.08565v2, 2019.
+[46] T. D. Kulkarni, W. Whitney, P. Kohli, and J. B. Tenenbaum. Deep convolutional inverse graphics network. arXiv:1503.03167v4, 2015.
+[47] A. Kumar, P. Sattigeri, and A. Balakrishnan. Variational inference of disentangled latent concepts from unlabeled observations. arXiv:1711.00848v3, 2018.
+[48] G. Lample, N. Zeghidour, N. Usunier, A. Bordes, L. Denoyer, and M.A. Ranzato. Fader networks: Manipulating images by sliding attributes. arXiv:1706.00409, 2018.
+[49] Y. LeCun, C. Cortes, and C. J. Burges. MNIST handwritten digit database. AT&T Labs, 2010.
+[50] C. M. Lee, C. Hart, J. G. Richens, and S. Johri. Leveraging directed causal discovery to detect latent common causes. arXiv:1910.10174v1, 2019.
+[51] H.Y. Lee, H.Y. Tseng, J.B. Huang, M. Singh, and M.H. Yang. Diverse image-to-image translation via disentangled representations. arXiv:1808.00948, 2018.
+[52] J. Lezama. Overcoming the disentanglement vs reconstruction trade-off via Jacobian supervision. *ICLR*, 2019.
+[53] H. Liu, J. Dacon, W. Fan, H. Liu, and J. Liu, Z.and Tang. Does gender matter? towards fairness in dialogue systems. arXiv:1910.10486v1, 2019.
+[54] M. Ilse, J. M. Tomczak, C. Louizos, and M. Welling. DIVA: domain invariant variational autoencoders. arXiv:1905.10427, 2019.
+[55] F. Locatello, G. Abbati, T. Rainforth, T. Bauer, S. Bauer, B. Scholkopf, and O. Bachem. On the fairness of disentangled representations. arXiv:1905.13662v1, 2019.
+[56] F. Locatello, S. Bauer, M. Lucic, G. Ratsch, S. Gelly, B. Scholkopf, and Bachem O. Challenging common assumptions in the unsupervised learning of disentangled representations. arXiv:1811.12359v3, 2019.
+[57] C. Louizos, K. Swersky, Y. Li, M. Welling, and R. Zemel. The variational fair autoencoder. arXiv:1511.00830, 2017.
+[58] C. Louizos and M. Welling. Structured and efficient variational deep learning with matrix Gaussian posteriors. arXiv:1603.04733v5, 2016.
+[59] T. Lucas and J. Verbeek. Auxiliary guided autoregressive variational autoencoders. arXiv:1711.11479, 2018.
+
+[60] M. Mathieu, J. Zhao, P. Sprechmann, A. Ramesh, and Y. LeCun. Disentangling factors of variation in deep representations using adversarial training. arXiv:1611.03383v1, 2016.
+[61] P.A. Mattei and J. Frellsen. Leveraging the exact likelihood of deep latent variable models. arXiv:1802.04826v4, 2018.
+[62] L. McInnes and J. Healy. UMAP: uniform manifold approximation and projection for dimension reduction. arXiv:1802.03426v1, 2018.
+[63] N. Mehrabi, F. Morstatter, N. Saxena, K. Lerman, and A. Galstyan. A survey on bias and fairness in machine learning. arXiv:1908.09635, 2019.
+[64] M. Merler, N. Rather, R. Feris, and J. R. Smith. Diversity in faces. arXiv:1901.10436v6, 2019.
+[65] D. Moyer, S. Gao, R. Brekelmans, G. V. Steeg, and A. Galstyan. Invariant representations without adversarial training. NeurIPS, 2018.
+[66] R. Nabi, D. Malinsky, and I. Shpitser. Optimal training of fair predictive models. arXiv:1910.04109v1, 2019.
+[67] Y. Netzer, T. Wang, A. Coates, A. Bissacco, B. Wu, and A. Y. Ng. Reading digits in natural iages with unsupervised feature learning. NIPS, 2011.
+[68] B. T. M. Phuong, N. Kushman, S. Nowozin, R. Tomioka, and M. Welling. The mutual autoencoder: controlling information in latent code representations. *ICLR*, 2018.
+[69] O. Press, T. Galatni, S. Benaim, and L Wolf. Emerging disentanglement in auto-encoder based unsupervised image content transfer. ICLR, 2019.
+[70] D. J. Rezende, S. Mohamed, and D. Wierstra. Stochastic backpropagation and approximate inference in deep generative models. arXiv:1401.4082, 2014.
+[71] A. Rose. Are face-detection cameras racist? Time Business, 2010.
+[72] A. Ruiz, O. Martinez, X. Binefa, and J. Verbeek. Learning disentangled representations with reference-based variational autoencoders. arXiv:1901.08534v1, 2019.
+[73] A. Sepliarskaia, J. Kiseleva, and M. de Rijke. Evaluating disentangled representations. arXiv:1910.05587v1, 2019.
+[74] S. Shankar, V. Piratla, S. Chakrabarti, S. Chaudhuri, P. Jyothi, and S. Sarawagi. Generalizing across domains via cross-gradient training. arXiv:1804.10745.v2, 2018.
+[75] R. Shu, Chen Y., A. Kumar, S. Ermon, and B. Poole. Weakly supervised disentanglement with guarantees. arXiv:1910.09772v1, 2019.
+[76] N. Siddharth, B. Paige, V. de Meent, A. Desmaison, F. Wood, N. D. Goodman, P. Kohli, and P. H. Torr. Learning disentangled representations with semi-supervised deep generative models. arXiv:1706.00400, 2017.
+[77] D. Slack, S. Hilgard, E. Jia, S. Singh, and H. Lakkaraju. How can we fool LIME and SHAP? adversarial attacks on post hoc explanation methods. arXiv:1911.02508v1, 2019.
+[78] C. K. Sonderby, T. Raiko, L. Maaloe, S. K. Sonderby, and O Winther. How to train deep variational autoencoders and probabilistic ladder networks. arXiv:1602.02282v1, 2016.
+[79] R. Suter, D. Miladinovic, S. Bauer, and B. Scholkopf. Interventional robustness of deep latent variable models. arXiv:1811.00007v1, 2018.
+
+[80] A. Szabo, Q. Hu, T. Portenier, and P. Favaro. Challenges in disentangling independent factors of variation. arXiv:1711.02245v1, 2017.
+[81] A. Szabo, Q. Hu, T. Portenier, M. Zwicker, and P. Favaro. Understanding degeneracies and ambiguities in attribute transfer. ECCV, 2018.
+[82] N. Tishby, F. C. Pereira, and W. Bialek. The information bottleneck method. arXiv:physics/0004057v1, 2000.
+[83] N. Tishby and N. Zaslavsky. Deep learning and the information bottleneck principle. arXiv:1503.02406v1, 2015.
+[84] J. M. Tomczak and M. Welling. VAE with a VampPrior. arXiv:1705:07120v5, 2018.
+[85] M. Tschannen, O. Bachen, and M. Lucic. Recent advances in autoencoder-based representation learning. arXiv:1812.05069v1, 2018.
+[86] L. van der Maaten and G. E. Hinton. Visualizing data using t-SNE. Journal of Machine Learning Research, 9:2579-2605, 2008.
+[87] M. J. Vowels, N. C. Camgoz, and R. Bowden. Gated variational autoencoders: Incorporating weak supervision to encourage disentanglement. arXiv:1911.06443v1, 2019.
+[88] H. Wang, Z. He, Z. C. Lipton, and E. P. Xing. Learning robust representations by projecting supervicial statistics out. ICLR, 2019.
+[89] Y. Xia, X. Cao, F. Wen, G. Hua, and J. Sun. Learning discriminative reconstructions for unsupervised outlier removal. ICCV, 2015.
+[90] Q. Xie, Z. Dai, Y. Du, E. Hovy, and G. Neubig. Controllable invariance through adversarial feature learning. arXiv:1705.1122v3.
+[91] R. Zemel, Y. L. Wu, K. Swersky, T. Pitassi, and C. Dwork. Learning fair representations. Proc. of the 30th International Conference on Machine Learning, 28, 2013.
+[92] Z. Zhang, Y. Song, and H. Qi. Age progression/regression by conditional adversarial autoencoder. arXiv:1702.08423, 2017.
+[93] S. Zhao, J. Song, and S. Ermon. InfoVAE: Balancing learning and inference in variational autoencoders. arXiv:1706.02262v3, 2018.
+[94] Sun Zheng. Disentangling latent space for VAE by label relevant/irrelevant dimensions. CVPR, 2018.
\ No newline at end of file
diff --git a/nestedvaeisolatingcommonfactorsviaweaksupervision/images.zip b/nestedvaeisolatingcommonfactorsviaweaksupervision/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..fcee667d27d0018ea8d268028354b96299abdf1e
--- /dev/null
+++ b/nestedvaeisolatingcommonfactorsviaweaksupervision/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:61ac1842463e7953b9f26b121731e8657c5bf2e0b61f0f6d54fc849b4c059bed
+size 411389
diff --git a/nestedvaeisolatingcommonfactorsviaweaksupervision/layout.json b/nestedvaeisolatingcommonfactorsviaweaksupervision/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..52c4dcd9f9d4188fe7e95740aeb643307e266554
--- /dev/null
+++ b/nestedvaeisolatingcommonfactorsviaweaksupervision/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:234234db84d2469c15ff7880ec1036356aaf74971e0231bac23de553f0b80ab6
+size 508780
diff --git a/netnetneighborerasingandtransferringnetworkforbettersingleshotobjectdetection/dc51fcfb-762a-4f4b-8dd6-2598dfac7f3b_content_list.json b/netnetneighborerasingandtransferringnetworkforbettersingleshotobjectdetection/dc51fcfb-762a-4f4b-8dd6-2598dfac7f3b_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..d4282c210d795704a2a479f820c60399ee72183c
--- /dev/null
+++ b/netnetneighborerasingandtransferringnetworkforbettersingleshotobjectdetection/dc51fcfb-762a-4f4b-8dd6-2598dfac7f3b_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:87621a9be1e5cd557865857512eaacaa1e207bdaa32a38b2ff5d0bc201fb5f92
+size 85180
diff --git a/netnetneighborerasingandtransferringnetworkforbettersingleshotobjectdetection/dc51fcfb-762a-4f4b-8dd6-2598dfac7f3b_model.json b/netnetneighborerasingandtransferringnetworkforbettersingleshotobjectdetection/dc51fcfb-762a-4f4b-8dd6-2598dfac7f3b_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..693ab3a4db5d831bee8c6606d4de4ec50b243397
--- /dev/null
+++ b/netnetneighborerasingandtransferringnetworkforbettersingleshotobjectdetection/dc51fcfb-762a-4f4b-8dd6-2598dfac7f3b_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e2e98748d30e922bc10df96f43a8c626e361f915530c7bb65b05bd24fd82e747
+size 109483
diff --git a/netnetneighborerasingandtransferringnetworkforbettersingleshotobjectdetection/dc51fcfb-762a-4f4b-8dd6-2598dfac7f3b_origin.pdf b/netnetneighborerasingandtransferringnetworkforbettersingleshotobjectdetection/dc51fcfb-762a-4f4b-8dd6-2598dfac7f3b_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..bf65c49d651e896ec7d8e9ca9898d7f173614f0d
--- /dev/null
+++ b/netnetneighborerasingandtransferringnetworkforbettersingleshotobjectdetection/dc51fcfb-762a-4f4b-8dd6-2598dfac7f3b_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bf9cb6578d511a3298c86187f475eec4a6db5f48aee221df79ba3c10917b76f4
+size 2907113
diff --git a/netnetneighborerasingandtransferringnetworkforbettersingleshotobjectdetection/full.md b/netnetneighborerasingandtransferringnetworkforbettersingleshotobjectdetection/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..474462f0454e4c0a75e982bd3aec12d507ccbf30
--- /dev/null
+++ b/netnetneighborerasingandtransferringnetworkforbettersingleshotobjectdetection/full.md
@@ -0,0 +1,366 @@
+# NETNet: Neighbor Erasing and Transferring Network for Better Single Shot Object Detection
+
+Yazhao Li $^{1}$ , Yanwei Pang $^{1*}$ , Jianbing Shen $^{2}$ , Jiale Cao $^{1}$ , Ling Shao $^{2}$
+
+$^{1}$ Tianjin Key Laboratory of Brain-inspired Intelligence Technology, School of Electrical and Information Engineering, Tianjin University, Tianjin, China
+
+$^{2}$ Inception Institute of Artificial Intelligence, Abu Dhabi, UAE
+
+1{lyztju, pyw, connor}@tju.edu.cn, 2{shenjianbingcg@gmail.com, ling.shao@ieee.org}
+
+# Abstract
+
+Due to the advantages of real-time detection and improved performance, single-shot detectors have gained great attention recently. To solve the complex scale variations, single-shot detectors make scale-aware predictions based on multiple pyramid layers. However, the features in the pyramid are not scale-aware enough, which limits the detection performance. Two common problems in single-shot detectors caused by object scale variations can be observed: (1) small objects are easily missed; (2) the salient part of a large object is sometimes detected as an object. With this observation, we propose a new Neighbor Erasing and Transferring (NET) mechanism to reconfigure the pyramid features and explore scale-aware features. In NET, a Neighbor Erasing Module (NEM) is designed to erase the salient features of large objects and emphasize the features of small objects in shallow layers. A Neighbor Transferring Module (NTM) is introduced to transfer the erased features and highlight large objects in deep layers. With this mechanism, a single-shot network called NETNet is constructed for scale-aware object detection. In addition, we propose to aggregate nearest neighboring pyramid features to enhance our NET. NETNet achieves $38.5\%$ AP at a speed of 27 FPS and $32.0\%$ AP at a speed of 55 FPS on MS COCO dataset. As a result, NETNet achieves a better trade-off for real-time and accurate object detection.
+
+# 1. Introduction
+
+With the emergence of deep neural networks [26, 43, 7], object detection built on deep networks has achieved significant progress both in detection accuracy [13, 5, 27] and detection efficiency [39, 40, 18]. Despite this success, complex scale variations in practical scenes exist as a fundamental challenge and a bottleneck for accurate object de
+
+
+
+
+
+
+
+
+
+
+(a) baseline
+(c) ours
+(I) Tackle false negative problem
+
+
+(b) baseline feature
+(d) our feature
+
+
+(e) baseline
+(g)ours
+(II) Tackle part false positive problem
+
+
+(f) baseline feature
+(h) our feature
+
+Figure 1. Two common detection problems for baseline SSD [35] and the solution using our NETNet. The visualized features are extracted from the first pyramid layer for detecting small objects. (I) False negative problem. The small objects (tennis racket, sports ball) are missed in (a) because features of small objects are not salient on the corresponding pyramid features (b). Our NETNet can detect small objects with high confidence by erasing the features of large objects and focusing on small objects as (c, d). (II) Part false positive problem. The head is detected as another person in baseline because this part region is highlighted on the features (f) for detecting small objects. Our NETNet can solve this problem by suppressing the salient part features of large objects, as (h).
+
+tection [44, 45, 20]. Beneficial from an optimal trade-off between real-time detection efficiency and accurate detection performance, single-shot detectors [35, 31] have gained increased popularity recently.
+
+Exploring multi-level features is essential [36, 58, 50] to tackle complex scale variations. The single-shot detector SSD [35] has been proposed and developed based on pyramid feature representation. SSD implements scale-aware object detection by detecting different-sized objects within different layers of the pyramid, which is motivated by the fact that deep-layer features with small feature resolution contain more semantic information for large objects, while the features for small objects are found in the shallow layers with large feature resolution [24, 59]. Therefore, shallow layers are responsible for detecting small objects and
+
+deep layers are devoted to detecting large objects. Based on feature pyramid, some methods explore to further enhance the feature representation by fusing multi-scale features using an extra feature pyramid, which has proven useful [25, 12, 30, 31, 22] for improving detection performance. Although single-shot detectors have made great progress by adopting the feature pyramid, several failure cases, such as missing small objects and poor localization [17, 23], still exist limiting detection performance.
+
+In most previous single-shot detectors, features are scale-confused instead of scale-aware even on one specific pyramid layer. For example, in some shallow layers of a feature pyramid, features for both small and large objects exist. As shown in Fig. 1, in the shallow features (b) used for detecting small objects, the large-object features dominate the main saliency, weakening the small-object features and thus preventing the detection of small objects (e.g., the sports ball from (a) is not detected in the final result). Additionally, some parts of large objects have strong response regions on shallow features. For example, the head region in Fig. 1(e) is highlighted in (f), which leads to the wrongly detection of the head region. Thus, the features are scale-confused making it difficult to solve these two problems, i.e., false negative problem and part false positive problem.
+
+With this observation, we propose to generate scale-aware features for better single-shot object detection. To achieve this, redundant features are erased to alleviate feature scale-confusion. Thus, we only retain features of small objects in the shallow layers, erasing features of large objects. Then, we use these small-scale-aware features to detect small objects. As shown in Fig. 1(d), most of the features of large objects are removed. The features of small objects are thus emphasized, enabling the small sports ball to be detected precisely. The salient features of large objects can also be suppressed to alleviate the part false positive problem, as shown in (h). Meanwhile, transferring these erased features to a suitable scale (i.e., large-scale) space could enhance the features of large objects and improve the overall detection performance.
+
+The main contributions of our method are as follows: We propose a Neighbor Erasing and Transferring (NET) mechanism to generate scale-aware features. Two modules, the Neighbor Erasing Module (NEM) and Neighbor Transferring Module (NTM), are designed in our NET mechanism to unmix the scale confusion and enhance feature aggregation, respectively. The NEM, embedded with a reversed gate-guided erasing procedure, is to extract and erase the large object features from the shallow layers. Then, the large object features are transferred to the deep pyramid layers by the NTM for enhancing the deep features. With our NET mechanism, a modified single-shot network, NET-Net, is constructed by simultaneously embedding the scale-aware features and the scale-aware prediction. In NETNet,
+
+
+
+
+
+
+Figure 2. Different detectors for object detection.
+
+
+
+we enrich the pyramid features by introducing a Nearest Neighbor Fusion Module (NNFM). As a result, our NETNet is capable of achieving fast and accurate object detection with a better trade-off than previous single-shot detectors.
+
+# 2. Related Work
+
+Scale-agnostic detectors. Most recent object detectors are built upon deep networks. The regions with CNN features (R-CNN) methods [14, 13] integrate a CNN into object detection and achieve promising performance. As a two-stage method, the Faster R-CNN [41] proposes a lightweight network for generating proposals and construct the detection network as a complete end-to-end network. Methods likeYOLO [39], Faster R-CNN [13], R-FCN [5], and other variants [29, 6, 1] have made significant progress for improving detection accuracy and efficiency. As shown in Fig. 2(a), this type of methods detect all objects of various scales by utilizing the deepest single-scale high-level features. Thus, these detectors are scale-agnostic detectors.
+
+Scale-aware detectors. Due to the complex scale variations, many researchers have explored to exploit multi-scale pyramid features for object detection [30, 10] as well as other visual tasks [37, 48, 46, 51]. SSD [35] is a single-shot (i.e., single-stage) detector that proposes to make scale-aware prediction based on multi-layer pyramid features. Features in shallow layers are used for detecting small objects and features in deep layers for large objects. RF-BNet [33] embeds multi-scale receptive fields to enhance feature discriminability. DES [59] enriches the semantics of object features through a semantic segmentation branch and a global activation module. FPN [30], DSSD [10], and RONet [24] involve extra top-down feature pyramids and detect objects on each scale of these pyramids as shown in Fig. 2(c). Most recent methods [31, 21, 19, 61, 60] have explored the advantages of the pyramid features and have achieved promising results. Kong et al. [22] proposed to reconfigure the pyramid features by aggregating multi-layer features and reassigning them into different levels. Recent TridentNet [28] attempts to generate scale-specific features through a parallel multi-branch architectures as shown in Fig. 2(b) by embedding different receptive fields, which
+
+achieves promising improvement on two-stage detectors.
+
+Different from these methods, we propose to generate scale-aware features for single-shot object detection by introducing an erasing and transferring mechanism. The adversarial erasing strategy has also been investigated in weakly supervised object localization [54, 57], weakly supervised semantic segmentation [16], and salient object detection [4]. In these methods, the well recognized regions are erased to refine the prediction results iteratively. Different from them, we propose to reconfigure the pyramid features to scale-aware features by removing the scale-uncorrelated features using an erasing strategy. The erased features in shallow layers are further transferred to enhance features in deep layers, instead of discarding them as previous erasing methods. Besides, attention mechanism has been widely explored recently [53, 11, 49, 52, 9]. We introduce an attention to guide the erasing and transferring. As shown in Fig. 2(d), we aim to reconfigure the pyramid features to scale-aware features and alleviate the scale-confusion using the Erasing and Transferring operation. We then build a single-shot scale-aware detector for more accurate object detection.
+
+# 3. NET Mechanism
+
+To tackle complex scale variations, we propose to generate scale-aware features for object detection. As can be observed from Fig. 1(b) and (f), features in the shallow pyramid layers contain detailed information for both large objects and small objects. However, features for large objects are more salient, which causes small objects to be missed in Fig. 1(a) and the part false positive problem in Fig. 1(e). Instead of applying feature fusion as previous top-down feature pyramids [30, 10], we propose a NET mechanism to reconfigure the basic pyramid features to scale-aware features for scale-aware object detection. As shown in Fig. 3(a), in the NET mechanism, a feature erasing module (i.e., NEM) and a feature transferring module (i.e., NTM) are contained. The NEM is designed to remove large-object features from the shallow layers and emphasize the features of small objects. Then the NTM is used to transfer these features to enhance the deep features. Because our method aims to generate scale-aware features for scale-aware prediction, we take the typical single-shot detector SSD [35] as our baseline in which a pyramid from the backbone network is adopted for multi-scale prediction. We first analyze the feature pyramid in the baseline SSD. Then, we present the details of our NEM and NTM in the NET mechanism.
+
+# 3.1. Basic Feature Pyramid
+
+In SSD, a feature pyramid is explored to detect objects with different scales. We denote the objects with a specific scale $s^{th}$ as $x_{s}$ . The objects for all $S$ scales are represented
+
+as $X = \{x_{1}, x_{2}, \ldots, x_{S}\}$ , where $x_{1}$ represents objects with smallest scale and $x_{S}$ refers to objects with largest scale.
+
+SSD detects objects in a pyramidal hierarchy by exploiting multiple CNN layers, with each layer is responsible for detecting objects of a specific scale [38]. In the feature pyramid with $S$ layers, we denote the features from $s^{th}$ layer as $p_s$ and express all the pyramid features as $P = \{p_1, p_2, \dots, p_S\}$ , where $p_1$ represents features with largest resolution in the shallow pyramid layer for detecting small objects $x_1$ . With feature pooling in the pyramid, feature resolution is decreased from $p_1$ to $p_S$ . Obviously, information for small objects are gradually discarded from shallow to deep layers. Because of the small input image size (e.g., $300 \times 300$ ) for SSD, the deep layers (e.g., with spatial size $5 \times 5$ ) only contain features for large objects. Thus, we can approximately get:
+
+$$
+p _ {s} = f _ {s} \left(x _ {s}, x _ {s + 1},..., x _ {S}\right), \tag {1}
+$$
+
+where $f_{s}(x)$ represents the feature extraction of the pyramid. The feature scale-confusion in a shallow layer ( $e.g., p_{1}$ contains features for various-scale objects) makes detecting small objects difficult and leads to much part detection, as shown in Fig. 1. We propose to reconfigure the pyramid features to be scale-aware features and solve these problems.
+
+# 3.2. Neighbor Erasing Module
+
+To alleviate feature scale-confusion, we propose a Neighbor Erasing Module (NEM) to filter out the redundant features. Suppose two adjacent pyramid layers, $s^{th}$ layer and $(s + 1)^{th}$ layer. Obviously, features in the $s^{th}$ layer $p_{s} = f_{s}(x_{s}, x_{s + 1}, \dots, x_{S}) \in \mathbb{R}^{h_{s} \times w_{s} \times c_{s}}$ have more information for objects $x_{s}$ than features in the $(s + 1)^{th}$ layer $p_{s + 1} = f_{s + 1}(x_{s + 1}, \dots, x_{S}) \in \mathbb{R}^{h_{s + 1} \times w_{s + 1} \times c_{s + 1}}$ , where $(h_{s} > h_{s + 1}, w_{s} > w_{s + 1})$ . Based on this feature distribution, we can generate features $\tilde{p}_{s} = f_{s}(x_{s})$ for objects with scale $s$ from the pyramid feature $p_{s}$ , by erasing features $p_{es} = f_{s}(x_{s + 1}, \dots, x_{S})$ of objects in a scale range of $[s + 1, S]$ as:
+
+$$
+\tilde {p} _ {s} = p _ {s} \ominus p _ {e s} = f _ {s} \left(x _ {s}, \dots , x _ {S}\right) \ominus f _ {s} \left(x _ {s + 1}, \dots , x _ {S}\right), \tag {2}
+$$
+
+with an element-wise subtraction operation $\ominus$ .
+
+Noticing that pyramid feature $p_{s+1}$ only contains information for objects with a scale range of $[s+1, S]$ , we therefore use $p_{s+1}$ to guide the feature erasing in Eq. 2. Specifically, we extract the feature $p_{es}$ from $p_s$ by:
+
+$$
+p _ {e s} = p _ {s} \odot \mathcal {F} _ {s + 1 \rightarrow s} (p _ {s + 1}), \tag {3}
+$$
+
+where $\odot$ refers to Hadamard product. $\mathcal{F}_{s + 1\to s}(p_{s + 1})$ can be represented as a soft spatial gate $g_{s + 1}^{s}\in [0,1]^{h_{s}\times w_{s}\times c}$ ( $c$ is from $\{1,c_s\}$ ). We generate this gate by using the features from the $(s + 1)^{th}$ pyramid layer and adopt it to guide suppressing features of objects $\{x_{s + 1},\dots,x_S\}$ in $p_s$ . In our implementation, we calculate this spatial gate as:
+
+$$
+g _ {s + 1} ^ {s} = \mathcal {F} _ {s + 1 \rightarrow s} \left(p _ {s + 1}\right) = \frac {1}{1 + e ^ {- \mathcal {G} \left(\mathcal {U} \left(p _ {s + 1}\right) ; W _ {s + 1} ^ {s}\right)}}, \tag {4}
+$$
+
+
+Figure 3. The Neighbor Erasing and Transferring (NET) mechanism (a), with (b) Neighbor Erasing Module (NEM), and (c) Neighbor Transferring Module (NTM). After NETM, $\tilde{p}_s$ highlights small objects, and deep feature $\tilde{p}_{s + 1}$ contains more information for larger objects.
+
+where $\mathcal{U}(p_{s + 1})$ upsamples $p_{s + 1}$ to $p_{s + 1}^s\in \mathbb{R}^{h_s\times w_s\times c_{s + 1}}$ to keep the consistent spatial resolution between the gate $g_{s + 1}^s$ and feature $p_s$ . We implement the gate function $\mathcal{G}(.)$ with learnable weights $W_{s + 1}^s$ .
+
+In actual, since $\mathcal{G}(.)$ can be represented as a self-attention function [53] in which attention for objects can be extracted from the input features, we can construct it based on the spatial attention mechanism in [53] and [11]. Alternately, we can choose to use max pooling or average pooling along channel direction to generate a spatial attention map ( $c = 1$ ) like that in [55] as:
+
+$$
+\mathcal {G} \left(p _ {s + 1} ^ {s}\right) = \mathcal {P} _ {\max } \left(p _ {s + 1} ^ {s}\right) \text {o r} \mathcal {P} _ {\text {a v g}} \left(p _ {s + 1} ^ {s}\right), \tag {5}
+$$
+
+or combining max pooling $\mathcal{P}_{max}(.)$ and average pooling $\mathcal{P}_{avg}(.)$ by a convolution layer with $W_{s+1}^{s}$ . In our implementation, we use a $1 \times 1 \times c_{s}$ convolution layer $\mathcal{C}_{1 \times 1}$ as:
+
+$$
+\mathcal {G} \left(p _ {s + 1} ^ {s}\right) = \mathcal {C} _ {1 \times 1} \left(p _ {s + 1} ^ {s}; W _ {s + 1} ^ {s}\right), \tag {6}
+$$
+
+to generate a channel-wise spatial gate for extracting and suppressing the features of larger objects in $p_{s}$ , since it is proved an optimal trade-off between precision and efficiency as Sec. 5.1. In summary, we generate the scale-aware features $\tilde{p}_{s}$ for smaller objects $x_{s}$ by suppressing the features of larger objects via a reversed gate as:
+
+$$
+\tilde {p} _ {s} = f _ {s} \left(x _ {s}\right) = p _ {s} \ominus p _ {e s} = p _ {s} \ominus \left(p _ {s} \odot g _ {s + 1} ^ {s}\right). \tag {7}
+$$
+
+# 3.3. Neighbor Transferring Module
+
+As discussed above, in the pyramid feature $p_{s}$ , some detailed information for objects $\{x_{s + 1}, x_{s + 2}, \dots, x_{S}\}$ is also contained. Although this detailed information disturbs features for detecting smaller objects $x_{s}$ , it is helpful for enhancing the features of larger objects $x_{n}$ ( $n > s$ ) for more accurate classification and localization. Therefore, we propose to transfer these features from a shallow layer ( $e.g., p_{s}$ ) to a deep layer ( $e.g., p_{s + 1}$ ).
+
+As formulated in Sec. 3.2, the soft spatial gate $g_{s+1}^s$ generated by $p_{s+1}$ has larger activation values on the regions for objects $\{x_{s+1}, \ldots, x_S\}$ . Thus, $p_{es}$ in Eq. 3 helps extract the
+
+detailed information of these larger objects. We then transfer this detailed information $p_{es}$ and obtain the new pyramid features $\tilde{p}_{s+1} \in \mathbb{R}^{h_{s+1} \times w_{s+1} \times c_{s+1}}$ as:
+
+$$
+\begin{array}{r l}\tilde {p} _ {s + 1}&= \mathcal {T} _ {s \rightarrow s + 1} \left(p _ {e s}, p _ {s + 1}\right)\\&= \mathcal {C} _ {1 \times 1} \left(\mathcal {D} \left(p _ {e s}\right); W _ {s} ^ {s + 1}\right) \oplus p _ {s + 1},\end{array}\tag {8}
+$$
+
+composed of a downsampling operation $\mathcal{D}(.)$ to match the feature resolution and a convolutional layer $\mathcal{C}_{1\times 1}$ with learnable $W_{s}^{s + 1}\in \mathbb{R}^{1\times 1\times c_s\times c_{s + 1}}$ to maintain the consistent channel number. We perform an element-wise sum operation $\oplus$ to enhance $p_{s + 1}$ by combining the detailed information from $p_{es}$ . We illustrate this Neighbor Transferring Module (NTM) in Fig. 3(c). The enhanced feature $\tilde{p}_{s + 1}$ is used as the new pyramid feature for the subsequent scale-aware features generation and scale-aware object detection.
+
+# 4. Single-Shot Detector: NETNet
+
+Single-shot object detectors like SSD [35] directly carry out regression and classification based on predefined anchors. This provides the SSD with a better trade-off to achieve real-time detection and promising performance. However, SSD performs poorly for detecting small objects and also suffers from inaccurate localization, as shown in Fig. 1. To solve these problems, we design a new single-shot object detection network, called NETNet embedding the proposed NET mechanism as a scale-aware detector.
+
+In NETNet, we build our backbone network as that of SSD. Taking the network with an input image size $300 \times 300$ as an example, we show the main network architecture of NETNet in Fig. 4(a). Features of six pyramid levels $\{p_1, p_2, p_3, p_4, p_5, p_6\}$ with resolutions $\{38 \times 38, 19 \times 19, 10 \times 10, 5 \times 5, 3 \times 3, 1 \times 1\}$ are extracted from the backbone as the basic feature pyramid. Based on the basic pyramid, we construct our NET Module (NETM) to generate scale-aware features and solve the aforementioned scale problems. In implementation, there are some scale-overlaps [34, 62] between the nearest neighbor pyramid lev
+
+(a) The main architecture of NETNet
+
+Downsample $\oplus$ Element-wise sum U Upsample
+$p_{s}$ Pyramid Feature $p_{fs}$ Enhanced Feature by fusion
+$\mathrm{DH}_{\#}$ Detection Head C,1x1 Convolution layer
+NNFM Nearest Neighbor Fusion Module
+
+(b) Nearest Neighbor Fusion Module
+Figure 4. The proposed NETNet. (a) The main architecture of NETNet. We illustrate this architecture with an input size of $300 \times 300$ . Six pyramid layers are used for building detectors, as in SSD [35]. The embedded NNFM (b) is used for feature fusion before NETM.
+
+NETM Neighbor Erasing and Transferring Module
+
+els $(e.g., p_1$ and $p_2)$ , when configuring the detection anchors and assigning ground truth. Therefore, we build the NETM in a skip manner. Additionally, considering that the scale-overlaps make features for one object existing in the nearest neighboring pyramid layers complementary, we introduce a Nearest Neighbor Fusion Module (NNFM) as shown in Fig. 4(b) to enhance the pyramid features firstly by fusing the nearest neighboring pyramid features. Based on the NNFM and NETM, six different detection heads for box regression and classification, are built upon the scale-aware features to construct our scale-aware detector NETNet. We present the details of NETM and NNFM as follows.
+
+# 4.1. NETM in a Skip Manner
+
+In typical single-shot detectors, features in the shallow layers (e.g., $p_1$ with larger feature resolution $38 \times 38$ ) are used for detecting smaller objects, while features in deeper layers (e.g., $p_3$ with smaller resolution $10 \times 10$ ) are used for detecting larger objects. Because features with small resolutions (e.g., $3 \times 3$ ) have large receptive fields and less spatial information, we finally embed two NETMs in NETNet for feature erasing and transferring without using features $p_5$ and $p_6$ . Due to the anchor configuration in SSD, two anchors in the nearest pyramid layers (e.g., $p_1$ and $p_2$ ) may share the same ground truth. That is, one small object should be detected in $p_1$ and $p_2$ simultaneously. To avoid disturbing the overlapped supervision, our NETNet is elaborately designed by embedding two skipped NETMs.
+
+One NETM is built upon the pyramid features of $p_1$ and $p_3$ . To erase the features of larger objects from the shallow layer $p_1$ , we first upsample $p_3$ and use a $1 \times 1$ convolution to generate soft spatial gate as Eq. 4 for larger objects. We evaluate the effects of several different spatial attention methods and choose channel-wise spatial attention as Eq. 6. Then, an erasing operation in Eq. 7 generates features for smaller objects. We also embed a light fusion module into
+
+NETM to make the generated scale-aware features more robust. The fusion module is constructed as a residual block as in [15] by stacking $(1\times 1,3\times 3$ , and $1\times 1$ convolutional layers) with a skip connection. When applying the transferring module NTM, we first acquire the detailed information $p_{es}$ that is helpful for larger objects from $p_1$ as Eq. 3. Then, this detailed information enhances the features $p_3$ as Eq. 8. The other NETM is built upon pyramid features of $p_2$ and $p_4$ with the similar configuration.
+
+# 4.2. Nearest Neighbor Fusion Module
+
+As pointed out in feature pyramid studies [19, 38], features from neighboring pyramid layers are complementary. Thus, incorporating context information from different layers promotes feature representation. Combining features from top to bottom is typically done to build a feature pyramid [10]. However, since our purpose is to remove large-object features from the shallow layers and generate scale-aware features, introducing other more scale features may increase the feature scale-confusion problem. Therefore, we propose a more effective fusion module, NNFM, to enhance the pyramid features.
+
+As shown in Fig. 4(b), in NNFM, only features from the adjacent pyramid layers are fused as:
+
+$$
+p _ {f s} = \mathcal {H} _ {s - 1} \left(p _ {s - 1}\right) \oplus \mathcal {H} _ {s} \left(p _ {s}\right) \oplus \mathcal {H} _ {s + 1} \left(p _ {s + 1}\right), \tag {9}
+$$
+
+where we denote the fused features of $s^{th}$ pyramid layer as $p_{fs} \in \mathbb{R}^{h_s \times w_s \times c_s}$ . $\mathcal{H}_{s-1}$ is constructed by a pooling layer and a $1 \times 1$ convolutional layer. $\mathcal{H}_s$ is constructed by a $1 \times 1$ convolutional layer. $\mathcal{H}_{s+1}$ is constructed by a bilinear upsampling layer and a $1 \times 1$ convolutional layer. Finally, these features are fused by an element-wise sum operation. Thus, we enhance the $p_2$ features by aggregating complementary information from $p_1, p_2$ , and $p_3$ , instead of using the features $\{p6, p5, p4, p3, p2\}$ like a top-down pyramid network. Performing NNFM will not aggravate the feature
+
+| Methods | AP | \( AP_{50} \) | \( AP_{75} \) | \( AP_s \) | \( AP_m \) | \( AP_l \) |
| Baseline SSD | 25.1 | 41.8 | 26.1 | 6.3 | 28.3 | 43.3 |
| NEM | 29.4 | 48.9 | 30.4 | 13.2 | 32.2 | 44.3 |
| NTM | 25.8 | 42.4 | 26.9 | 6.5 | 28.5 | 44.4 |
| NETM | 30.4 | 49.7 | 31.4 | 13.4 | 33.0 | 45.6 |
| NETM + TDP | 30.6 | 49.9 | 31.9 | 12.8 | 33.0 | 46.3 |
| NETNet | 31.1 | 50.5 | 32.4 | 13.6 | 35.0 | 45.4 |
+
+Table 1. Evaluation for NETM and NNFM on COCO minival.
+
+| Methods | AP | AP50 | AP75 | APs | APm | APl |
| Max Attention | 28.7 | 47.3 | 29.9 | 11.5 | 31.4 | 43.4 |
| Mean Attention | 28.8 | 47.6 | 29.6 | 12.5 | 32.0 | 43.9 |
| Global Attention | 29.3 | 48.6 | 30.5 | 12.5 | 32.0 | 44.2 |
| NEM | 29.4 | 48.9 | 30.4 | 13.2 | 32.2 | 44.3 |
+
+scale-confusion, since the information of tiny objects from $p_1$ is discarded using pooling operation and the information of larger objects from $p_3$ will be erased by the subsequent NEM. As a result, the features of objects which should be detected on $p_2$ , are enhanced by fusing the complementary information with NNFM.
+
+# 5. Experiments
+
+Dataset: We evaluate our method on the benchmark detection dataset, MS COCO [32] dataset (i.e., COCO). It has 80 object categories and more than $140\mathrm{k}$ images. Following [35, 30], we train our NETNet on the union (trainval35k) of $80\mathrm{k}$ training images and a $35\mathrm{k}$ subset of validation images, and conduct ablation evaluations on the remaining $5\mathrm{k}$ validation images (minival). The final results are obtained by testing on the $20\mathrm{k}$ test images (test-dev) and submitted to the official server. The variations in scale of objects in COCO are complex. $\mathrm{AP}_s$ , $\mathrm{AP}_m$ , and $\mathrm{AP}_l$ evaluate the detection precision for three scales of objects.
+
+Training protocols: We re-implement the SSD [35] as our baseline based on a Pytorch framework. All the models are trained over 160 epochs with the same training loss as SSD. For ablation experiments, we set the initial learning rate as 0.002 and decrease it by a factor of 0.1 after the $90^{th}$ , $120^{th}$ , and $140^{th}$ epochs, respectively. We follow [33], using a warm-up learning rate in the first 5 epochs. We set the weight decay to 0.0005 and the momentum to 0.9. Each model is trained with a batch size of 32 on 2 GPUs.
+
+# 5.1. Ablation Study
+
+Configuration of NETNet. For ablation experiments, we construct NETNet with a VGG-16 backbone pretrained on ImageNet [42], and train the models with an input size of $300 \times 300$ . Following SSD, we truncate the final fully connected layers of the backbone and add a series of smaller convolutional layers to construct the feature pyramid.
+
+Table 2. Evaluation for different attention methods of NEM.
+
+| Methods | AP | \( AP_{50} \) | \( AP_{75} \) | \( AP_s \) | \( AP_m \) | \( AP_l \) |
| Baseline SSD | 25.1 | 41.8 | 26.1 | 6.3 | 28.3 | 43.3 |
| \( NEM_{13} \) | 28.9 | 48.7 | 30.2 | 12.8 | 31.0 | 44.4 |
| \( NEM_{24} \) | 28.5 | 46.6 | 30.0 | 10.6 | 31.7 | 44.5 |
| NNEM | 29.1 | 48.8 | 30.1 | 12.7 | 31.9 | 44.4 |
| NEM | 29.4 | 48.9 | 30.4 | 13.2 | 32.2 | 44.3 |
+
+Table 3. Evaluation for different configurations of NEM.
+
+# Evaluation of NETNet:
+
+Overall NEM. As shown in Table 1, compared with SSD, NEM yields a large margin of absolute improvement of $4.3\%$ AP. Because our NEM can remove the features of larger objects from the shallow layer to solve feature confusion, features for smaller objects can be activated to improve the performance for detecting smaller objects. We obtain a $6.9\%$ AP improvement for small objects and $3.9\%$ AP improvement for medium objects, which demonstrates the effectiveness of NEM for feature erasing.
+
+NTM and NETM. We propose to transfer features using NTM to complement the detailed information of larger objects. As shown in Table 1, using only NTM brings a $1.1\%$ improvement for large objects because of the enhanced features for large objects. Combining NEM and NTM promotes each module to learn better features through an adversarial strategy. Our NETM using NEM and NTM further improves the overall AP by $1.0\%$ .
+
+NNFM. We compare our NNFM with a typical Top-Down Pyramid (TDP) like FPN [30] based on our NETM. When combing the TDP with our NETM, a slight overall improvement, $0.2\%$ AP, is achieved. However, we find the detection performance for small objects degrades by using TDP (from $13.4\%$ AP to $12.8\%$ AP), which may be caused by the feature confusion that is not consistent with our NET mechanism. When combining the NETM with NNFM (i.e., NETNet), a $31.1\%$ AP performance is obtained. Our NNFM further improves the performance for medium objects by a large margin (i.e., $2.0\%$ ).
+
+# Evaluation of NEM:
+
+Attention for NEM. We train our network with only two NEMs to evaluate different spatial gate generation methods as discussed in Sec. 3.2. Due to the large computation consumption of self-attention method in [53, 11], we only implement a simplified one as 'Global Attention' by reducing the inner channel number. As presented in Table 2, using attention as Eq. 6 in our NEM, which generates a channel-wise spatial gate for each channel of the shallow pyramid features, obtains a better performance of $29.4\%$ AP.
+
+NEM on different layers. We evaluate the influence of each NEM and show the results in Table 3. By only adding NEM on $p_1$ and $p_3$ as $\mathrm{NEM}_{13}$ , we obtain a $6.5\%$ AP improvement on $\mathrm{AP}_s$ , which is better than that of $\mathrm{NEM}_{24}$ (on $p_2$ and $p_4$ ) because there are more small objects features in $p_1$ . We obtain a better improvement for medium objects by
+
+| Methods | Backbone | Image Size | Time (ms) | FPS | AP | \( AP_{50} \) | \( AP_{75} \) | \( AP_s \) | \( AP_m \) | \( AP_l \) |
| Anchor-free detectors: |
| CornerNet [27] | Hourglass-104 | 511×511 | 244 | 4.1 | 40.5 | 56.5 | 43.1 | 19.4 | 42.7 | 53.9 |
| CenterNet [8] | Hourglass-104 | 511×511 | 340 | 2.9 | 44.9 | 62.4 | 48.1 | 25.6 | 47.4 | 57.4 |
| FCOS [47] | Res101-FPN | 1333×800 | - | - | 41.5 | 60.7 | 45.0 | 24.4 | 44.8 | 51.6 |
| Single-stage detectors: |
| SSD300 [35] | VGG-16 | 300×300 | 17* | 58.9 | 25.1 | 43.1 | 25.8 | 6.6 | 25.9 | 41.4 |
| DFPR [22] | VGG-16 | 300×300 | - | - | 28.4 | 48.2 | 29.1 | - | - | - |
| PFPNet-S300 [19] | VGG-16 | 300×300 | - | - | 29.6 | 49.6 | 31.1 | 10.6 | 32.0 | 44.9 |
| RefineDet320 [56] | VGG-16 | 320×320 | 26 | 38.7 | 29.4 | 49.2 | 31.3 | 10.0 | 32.0 | 44.4 |
| RFBNet [33] | VGG-16 | 300×300 | 15 (19*) | 66.7 | 30.3 | 49.3 | 31.8 | 11.8 | 31.9 | 45.9 |
| EFIP [38] | VGG-16 | 300×300 | 14 | 71.4 | 30.0 | 48.8 | 31.7 | 10.9 | 32.8 | 46.3 |
| HSD [2] | VGG-16 | 320×320 | 25 | 40.0 | 33.5 | 53.2 | 36.1 | 15.0 | 35.0 | 47.8 |
| NETNet (ours) | VGG-16 | 300×300 | 18 | 55.6 | 32.0 | 51.5 | 33.6 | 13.9 | 34.5 | 46.2 |
| NETNet+Ref [2] | VGG-16 | 320×320 | - | - | 34.9 | 53.8 | 37.8 | 16.3 | 37.7 | 48.2 |
| DSSD513 [10] | ResNet-101 | 513×513 | 182 | 5.5 | 33.2 | 53.3 | 35.2 | 13.0 | 35.4 | 51.1 |
| RetinaNet [31] | ResNet-101 | 500×500 | 90 | 11.1 | 34.4 | 53.1 | 36.8 | 14.7 | 38.5 | 48.5 |
| STDN512 [61] | DenseNet-169 | 513×513 | - | - | 31.8 | 51.0 | 33.6 | 14.4 | 36.1 | 43.4 |
| DFPR [22] | ResNet-101 | 512×512 | - | - | 34.6 | 54.3 | 37.3 | 14.7 | 38.1 | 51.9 |
| RefineDet512 [56] | ResNet-101 | 512×512 | - | - | 36.4 | 57.5 | 39.5 | 16.6 | 39.9 | 51.4 |
| SSD512 [35] | VGG-16 | 512×512 | 28 | 35.7 | 28.8 | 48.5 | 30.3 | 10.9 | 31.8 | 43.5 |
| DES512 [59] | VGG-16 | 512×512 | - | - | 32.8 | 53.2 | 34.6 | 13.9 | 36.0 | 47.6 |
| RFBNet [33] | VGG-16 | 512×512 | 33 (37*) | 30.3 | 34.4 | 55.7 | 36.4 | 17.6 | 37.0 | 47.6 |
| EFIP [38] | VGG-16 | 512×512 | 29 | 34.5 | 34.6 | 55.8 | 36.8 | 18.3 | 38.2 | 47.1 |
| TripleNet [3] | ResNet-101 | 512×512 | - | - | 37.4 | 59.3 | 39.6 | 18.5 | 39.0 | 52.7 |
| NETNet (ours) | VGG-16 | 512×512 | 33 | 30.3 | 36.7 | 57.4 | 39.2 | 20.2 | 39.2 | 49.0 |
| NETNet (ours) | ResNet-101 | 512×512 | 37 | 27.0 | 38.5 | 58.6 | 41.3 | 19.0 | 42.3 | 53.9 |
+
+Table 4. Comparison on the COCO test-dev set. The results are reported for the case of single-scale inference. We test the time on a Titan X Pascal GPU with Pytorch 0.3.1. Times with * are obtained by testing in the same environment with NETNet.
+
+$\mathrm{NEM}_{24}$ . There is some ground truth and feature overlap in $p_1$ and $p_2$ , which yields the improvements for both small and medium objects using each NEM. We obtain the best result by combining them. These results demonstrate the effectiveness of our method for erasing redundant features.
+
+Skipped NEM. We also construct a model by adding three regular NEMs built upon $(p_1, p_2)$ , $(p_2, p_3)$ , and $(p_3, p_4)$ , respectively. This is a type of nearest neighbor erasing module built upon the features of two nearest neighbor layers. We denote this model as NNEM in Table 3. The NNEM model obtains a lower performance (29.1%) than our NEM (29.4%). Because the same ground truth may be assigned to predefined anchors from two neighboring layers, using NNEM disturbs the ground truth supervision. Using the skipped NEM eases the network training for better results.
+
+Evaluation of network configurations: We evaluate the performance of NETNet with different configurations. By refining the learning rate (using 0.004 as the initial learning rate), we achieve a final best performance of $31.8\%$ AP with a $300 \times 300$ input size. When we further use the refined prediction procedure in [2], a $34.7\%$ AP performance is obtained. In addition, larger image size and better backbone help improve the performance. With VGG-16 and a $512 \times 512$ size, $36.1\%$ AP is obtained. Using ResNet-101 brings NETNet to a top performance, $38.2\%$ AP.
+
+# 5.2. Results on COCO Test Set
+
+We evaluate NETNet on the COCO test-dev set and compare it with previous state-of-the-art methods, as shown in Table 4. Our NETNet outperforms the baseline SSD significantly with only a slight extra time cost. With an input size of $300 \times 300$ and VGG-16, our NETNet obtains $32.0\%$ AP with 55.6 FPS, which outperforms other state-of-the
+
+
+Figure 5. Accuracy (mAP) vs. speed (ms) comparison. Methods in the top-left corner have better overall performance.
+
+art single-shot detectors with a similar configuration. Employing the refinement in [2] helps NETNet obtain a top performance $34.9\%$ AP. When testing with an image size of $512 \times 512$ , NETNet obtains $36.7\%$ (30.3 FPS) with VGG-16 and $38.5\%$ (27.0 FPS) with ResNet-101. Some anchor-free methods achieve better detection accuracy, but they are generally require more than $100\mathrm{ms}$ to process one image. As shown in Fig. 5, our method achieves an better trade-off for accurate detection while maintaining a fast speed.
+
+# 6. Discussion
+
+Different from previous pyramid methods, NET mechanism helps reconfigure the basic pyramid to be scale-aware features which are more suitable for scale-aware detection. In another side, because we need use shallow features to generate deep features by progressively convolution opera
+
+
+(a) baseline
+
+
+(b) ours
+
+
+(c) baseline
+
+
+(d) ours
+Figure 6. Detection results visualization. Our method can alleviate the part false positive problem as (b) and the small objects missing (false negative problem) as (d).
+
+tions in a network, using a direct hard supervision will force the large object regions in shallow layers of the backbone to be background and harm the feature learning of deep layers. NET works like a soft supervision by introducing a reversed feedback from high-level features for feature erasing, which will not harm the feature learning but enhance the information aggregation in the backbone pyramid.
+
+In addition, we carry out an error analysis to further demonstrate the effectiveness of our method for solving the false positive (FP) problem and false negative problem (FN, i.e., missing detection). For comparison, we use the detection results on the minival set by SSD and NETNet $(31.8\%)$ AP with VGG-16 and $300\times 300$ image size.
+
+Tackling FP problem. By treating the predicted box, which has a IoU $< 0.5$ with the ground truth as a FP sample, we conduct a statistical analysis for the FP problem. In total, there are about 20k less FP samples by our method than SSD as shown in Fig. 7(a), which demonstrates our method can alleviate this problem. We further analyze the part false positive (PFP) problem based on the PFP samples under different thresholds $\tau$ . The part rate $p_{\theta}$ is calculated as the ratio of intersection region (between one predicted FP box and the ground truth) over the area of the predicted box. If $p_{\theta} > \tau$ , the FP box is regarded as a PFP sample. As shown in Fig. 7(b), the x-axis denotes the thresholds and y-axis represents the ratio of PFP sample number over total predicted box number. Our method can reduce the PFP error. We visualize some results in Fig. 6 (a) and (b).
+
+Tackling FN problem. We show the error analysis plots of our baseline SSD and our NETNet in Fig. 8 for small objects. Each plot describes a Precision Recall (PR) curve obtained by eliminating the corresponding detection errors except 'C75' (i.e., $\mathrm{AP}_{75}$ ) and 'C50'(i.e., $\mathrm{AP}_{50}$ ). Thus, the area of each color can measure the corresponding errors. Overall, our method is more significant on small object detection (i.e., $39.8\%$ FN error by NETNet vs $60.8\%$ error by SSD). As shown in Fig. 6(d), our NETNet can detect small objects precisely, and alleviate the FN problem well.
+
+
+(a) False positive analysis
+
+
+(b) Part false positive analysis
+Figure 7. Error analysis for total false positive problem (a) and part false positive problem (b) on COCO minival.
+
+
+(a) SSD
+
+
+(b) NETNet
+Figure 8. Error analysis for (a) baseline SSD and (b) our NETNet on small objects. 'FN' represents the missing detection error (false negative). The overall false negative error can be measured by subtracting the AP value of BG from FN. The overall false negative error is $60.8\%$ for SSD and $39.8\%$ for NETNet. Lower is better.
+
+# 7. Conclusion
+
+In this paper, we have proposed a Neighbor Erasing and Transferring (NET) mechanism with feature reconfiguration for tackling complex scale variations in object detection. Scale-aware features are generated by erasing the features of larger objects from the shallow layers and transferring them into deep pyramid layers. We have constructed a single-shot network called NETNet by embedding NETM and NNFM to achieve fast and accurate scale-aware object detection. As demonstrated by experiments on the MS COCO dataset, our NETNet is able to solve the missing detection and part false positive problems effectively, leading to an improved trade-off for real-time and accurate detection. In future work, we consider to explore the advantages of NET on other detectors for scale-aware object detection.
+
+Acknowledgement This work was supported by the National Key R&D Program of China (Grant Nos. 2018AAA0102800 and 2018AAA0102802), National Natural Science Foundation of China (Grant No. 61632018, Grant Nos. 61906131), Postdoctoral Program for Innovative Talents (No. BX20180214), China Postdoctoral Science Foundation (No. 2018M641647).
+
+# References
+
+[1] Zhaowei Cai and Nuno Vasconcelos. Cascade R-CNN: delving into high quality object detection. In CVPR, 2018. 2
+[2] Jiale Cao, Yanwei Pang, Jungong Han, and Xuelong Li. Hierarchical shot detector. In ICCV, 2019. 7
+[3] Jiale Cao, Yanwei Pang, and Xuelong Li. Triply supervised decoder networks for joint detection and segmentation. In CVPR, 2019. 7
+[4] Shuhan Chen, Xiuli Tan, Ben Wang, and Xuelong Hu. Reverse attention for salient object detection. In ECCV, 2018. 3
+[5] Jifeng Dai, Yi Li, Kaiming He, and Jian Sun. R-FCN: object detection via region-based fully convolutional networks. In NeurIPS, 2016. 1, 2
+[6] Jifeng Dai, Haozhi Qi, Yuwen Xiong, Yi Li, Guodong Zhang, Han Hu, and Yichen Wei. Deformable convolutional networks. In ICCV, 2017. 2
+[7] Xingping Dong and Jianbing Shen. Triplet loss in siamese network for object tracking. In ECCV, pages 472-488, 2018. 1
+[8] Kaiwen Duan, Song Bai, Lingxi Xie, Honggang Qi, Qingming Huang, and Qi Tian. Centernet: Keypoint triplets for object detection. In ICCV, 2019. 7
+[9] Deng-Ping Fan, Wenguan Wang, Ming-Ming Cheng, and Jianbing Shen. Shifting more attention to video salient object detection. In CVPR, 2019. 3
+[10] Cheng-Yang Fu, Wei Liu, Ananth Ranga, Ambrish Tyagi, and Alexander C. Berg. DSSD: Deconvolutional single shot detector. CoRR, abs/1701.06659, 2017. 2, 3, 5, 7
+[11] Jun Fu, Jing Liu, Hajie Tian, Yong Li, Yongjun Bao, Zhiwei Fang, and Hanqing Lu. Dual attention network for scene segmentation. In CVPR, 2019. 3, 4, 6
+[12] Golnaz Ghiasi, Tsung-Yi Lin, and Quoc V. Le. NAS-FPN: learning scalable feature pyramid architecture for object detection. In CVPR, 2019. 2
+[13] Ross B. Girshick. Fast R-CNN. In ICCV, 2015. 1, 2
+[14] Ross B. Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. In CVPR, 2014. 2
+[15] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 5
+[16] Qibin Hou, Peng-Tao Jiang, Yunchao Wei, and Ming-Ming Cheng. Self-erasing network for integral object attention. In NeurIPS, 2018. 3
+[17] Borui Jiang, Ruixuan Luo, Jiayuan Mao, Tete Xiao, and Yun-ting Jiang. Acquisition of localization confidence for accurate object detection. In ECCV, 2018. 2
+[18] Nie Jing, Anwer Rao Muhammad, Cholakkal Hisham, Khan Fahad Shahbaz, Pang Yanwei, and Shao Ling. Enriched feature guided refinement network for object detection. In ICCV, 2019. 1
+[19] Seung-Wook Kim, Hyong-Keun Kook, Jee-Young Sun, Mun-Cheon Kang, and Sung-Jea Ko. Parallel feature pyramid network for object detection. In ECCV, 2018. 2, 5, 7
+
+[20] Yonghyun Kim, Bong-Nam Kang, and Daijin Kim. SAN: learning relationship between convolutional features for multi-scale object detection. In ECCV, 2018. 1
+[21] Alexander Kirillov, Ross B. Girshick, Kaiming He, and Piotr Dollár. Panoptic feature pyramid networks. In CVPR, 2019.
+[22] Tao Kong, Fuchun Sun, Wen-bing Huang, and Huaping Liu. Deep feature pyramid reconfiguration for object detection. In ECCV, 2018. 2, 7
+[23] Tao Kong, Fuchun Sun, Huaping Liu, Yuning Jiang, and Jianbo Shi. Consistent optimization for single-shot object detection. CoRR, abs/1901.06563, 2019. 2
+[24] Tao Kong, Fuchun Sun, Anbang Yao, Huaping Liu, Ming Lu, and Yurong Chen. RON: reverse connection with objectness prior networks for object detection. In CVPR, 2017. 1, 2
+[25] Tao Kong, Anbang Yao, Yurong Chen, and Fuchun Sun. Hypernet: Towards accurate region proposal generation and joint object detection. In CVPR, 2016. 2
+[26] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In NeurIPS, 2012. 1
+[27] Hei Law and Jia Deng. Cornernet: Detecting objects as paired keypoints. In ECCV, 2018. 1, 7
+[28] Yanghao Li, Yuntao Chen, Naiyan Wang, and Zhaoxiang Zhang. Scale-aware trident networks for object detection. In ICCV, 2019. 2
+[29] Zeming Li, Chao Peng, Gang Yu, Xiangyu Zhang, Yangdong Deng, and Jian Sun. Light-head R-CNN: in defense of two-stage object detector. CoRR, abs/1711.07264, 2017. 2
+[30] Tsung-Yi Lin, Piotr Dólár, Ross B. Girshick, Kaiming He, Bharath Hariharan, and Serge J. Belongie. Feature pyramid networks for object detection. In CVPR, 2017. 2, 3, 6
+[31] Tsung-Yi Lin, Priya Goyal, Ross B. Girshick, Kaiming He, and Piotr Dollar. Focal loss for dense object detection. In ICCV, 2017. 1, 2, 7
+[32] Tsung-Yi Lin, Michael Maire, Serge J. Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dólar, and C. Lawrence Zitnick. Microsoft COCO: common objects in context. In ECCV, 2014. 6
+[33] Songtao Liu, Di Huang, and Yunhong Wang. Receptive field block net for accurate and fast object detection. In ECCV, 2018. 2, 6, 7
+[34] Shu Liu, Lu Qi, Haifang Qin, Jianping Shi, and Jiaya Jia. Path aggregation network for instance segmentation. In CVPR, 2018. 4
+[35] Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott E. Reed, Cheng-Yang Fu, and Alexander C. Berg. SSD: single shot multibox detector. In ECCV, 2016. 1, 2, 3, 4, 5, 6, 7
+[36] Shuai Ma, Yanwei Pang, Jing Pan, and Ling Shao. Preserving details in semantics-aware context for scene parsing. Sci. China Inf. Sci., 2020. 1
+[37] Yanwei Pang, Yazhao Li, Jianbing Shen, and Ling Shao. Towards bridging semantic gap to improve semantic segmentation. In ICCV, 2019. 2
+[38] Yanwei Pang, Tiancai Wang, Rao Muhammad Anwer, Fahad Shahbaz Khan, and Ling Shao. Efficient featurized im
+
+age pyramid network for single shot detector. In CVPR, 2019.3,5,7
+[39] Joseph Redmon, Santosh Kumar Divvala, Ross B. Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In CVPR, 2016. 1, 2
+[40] Joseph Redmon and Ali Farhadi. Yolov3: An incremental improvement. CoRR, abs/1804.02767, 2018. 1
+[41] Shaoqing Ren, Kaiming He, Ross B. Girshick, and Jian Sun. Faster R-CNN: towards real-time object detection with region proposal networks. In NeurIPS, 2015. 2
+[42] 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, 2015. 6
+[43] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. 1
+[44] Bharat Singh and Larry S. Davis. An analysis of scale invariance in object detection. SNIP. In CVPR, 2018. 1
+[45] Bharat Singh, Mahyar Najibi, and Larry S. Davis. SNIPER: efficient multi-scale training. In NeurIPS, 2018. 1
+[46] Hongmei Song, Wenguan Wang, Sanyuan Zhao, Jianbing Shen, and Kin-Man Lam. Pyramid dilated deeper convlstm for video salient object detection. In ECCV, 2018. 2
+[47] Zhi Tian, Chunhua Shen, Hao Chen, and Tong He. Fcos: Fully convolutional one-stage object detection. In ICCV, 2019. 7
+[48] Wenguan Wang, Qiuxia Lai, Huazhu Fu, Jianbing Shen, and Haibin Ling. Salient object detection in the deep learning era: An in-depth survey. CoRR, abs/1904.09146, 2019. 2
+[49] Wenguan Wang and Jianbing Shen. Deep visual attention prediction. TIP, 2018. 3
+[50] Wenguan Wang, Jianbing Shen, Ming-Ming Cheng, and Ling Shao. An iterative and cooperative top-down and bottom-up inference network for salient object detection. In CVPR, 2019. 1
+[51] Wenguan Wang, Jianbing Shen, Xingping Dong, and Ali Borji. Salient object detection driven by fixation prediction. In CVPR, 2018. 2
+[52] Wenguan Wang, Shuyang Zhao, Jianbing Shen, Steven C. H. Hoi, and Ali Borji. Salient object detection with pyramid attention and salient edges. In CVPR, 2019. 3
+[53] Xiaolong Wang, Ross B. Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. In CVPR, 2018. 3, 4, 6
+[54] Yunchao Wei, Jiashi Feng, Xiaodan Liang, Ming-Ming Cheng, Yao Zhao, and Shuicheng Yan. Object region mining with adversarial erasing: A simple classification to semantic segmentation approach. In CVPR, 2017. 3
+[55] Sanghyun Woo, Jongchan Park, Joon-Young Lee, and In So Kweon. CBAM: convolutional block attention module. In ECCV, 2018. 4
+[56] Shifeng Zhang, Longyin Wen, Xiao Bian, Zhen Lei, and Stan Z. Li. Single-shot refinement neural network for object detection. In CVPR, 2018. 7
+
+[57] Xiaolin Zhang, Yunchao Wei, Jiashi Feng, Yi Yang, and Thomas S. Huang. Adversarial complementary learning for weakly supervised object localization. In CVPR, 2018. 3
+[58] Zhijie Zhang and Yanwei Pang. Cgnet: cross-guidance network for semantic segmentation. Sci. China Inf. Sci., 2020. 1
+[59] Zhishuai Zhang, Siyuan Qiao, Cihang Xie, Wei Shen, Bo Wang, and Alan L. Yuille. Single-shot object detection with enriched semantics. In CVPR, 2018. 1, 2, 7
+[60] Qijie Zhao, Tao Sheng, Yongtao Wang, Zhi Tang, Ying Chen, Ling Cai, and Haibin Ling. M2det: A single-shot object detector based on multi-level feature pyramid network. In AAAI, 2019. 2
+[61] Peng Zhou, Bingbing Ni, Cong Geng, Jianguo Hu, and Yi Xu. Scale-transferrable object detection. In CVPR, 2018. 2, 7
+[62] Yousong Zhu, Chaoyang Zhao, Jinqiao Wang, Xu Zhao, Yi Wu, and Hanqing Lu. Couplenet: Coupling global structure with local parts for object detection. In ICCV, 2017. 4
\ No newline at end of file
diff --git a/netnetneighborerasingandtransferringnetworkforbettersingleshotobjectdetection/images.zip b/netnetneighborerasingandtransferringnetworkforbettersingleshotobjectdetection/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..e8b3ecb71f6fdd93c8eebf6634cbbd2e1521d23e
--- /dev/null
+++ b/netnetneighborerasingandtransferringnetworkforbettersingleshotobjectdetection/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8431083e3e7d9273e42cedb74559047f631a83fd5908405fc06859f70bf174cc
+size 630352
diff --git a/netnetneighborerasingandtransferringnetworkforbettersingleshotobjectdetection/layout.json b/netnetneighborerasingandtransferringnetworkforbettersingleshotobjectdetection/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..7d6164b2f276742d0043ffdb8acf982e60331612
--- /dev/null
+++ b/netnetneighborerasingandtransferringnetworkforbettersingleshotobjectdetection/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bdd8d42224a6fdbf931dd4361d8f4c14093b0ef445d9bfde1422fd8f54447bd6
+size 546374
diff --git a/networkadjustmentchannelsearchguidedbyflopsutilizationratio/6c37793a-146b-44cc-9e0c-dde7f9bf95f8_content_list.json b/networkadjustmentchannelsearchguidedbyflopsutilizationratio/6c37793a-146b-44cc-9e0c-dde7f9bf95f8_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..6aff110431a59a1991dc219ff8f067711ca3d681
--- /dev/null
+++ b/networkadjustmentchannelsearchguidedbyflopsutilizationratio/6c37793a-146b-44cc-9e0c-dde7f9bf95f8_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:676aa1790f13d7437337f0ae4e4aed716220691bce83e15893a21d644fb60f65
+size 76300
diff --git a/networkadjustmentchannelsearchguidedbyflopsutilizationratio/6c37793a-146b-44cc-9e0c-dde7f9bf95f8_model.json b/networkadjustmentchannelsearchguidedbyflopsutilizationratio/6c37793a-146b-44cc-9e0c-dde7f9bf95f8_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..feaea5d77c1e5b49a1c2e6118228818d2d20b074
--- /dev/null
+++ b/networkadjustmentchannelsearchguidedbyflopsutilizationratio/6c37793a-146b-44cc-9e0c-dde7f9bf95f8_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7edfa20d7f0a23c8ec60aae337211e479d4b16806dfc27eac8f681035e13acd1
+size 93509
diff --git a/networkadjustmentchannelsearchguidedbyflopsutilizationratio/6c37793a-146b-44cc-9e0c-dde7f9bf95f8_origin.pdf b/networkadjustmentchannelsearchguidedbyflopsutilizationratio/6c37793a-146b-44cc-9e0c-dde7f9bf95f8_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..e55d8e23e4f418f0ec845427ecfc45cac9dadc7a
--- /dev/null
+++ b/networkadjustmentchannelsearchguidedbyflopsutilizationratio/6c37793a-146b-44cc-9e0c-dde7f9bf95f8_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:04667a8c7ccb03fb0f18b34540e322f9e85572cf3c44e59231aaeee773ce16f8
+size 279400
diff --git a/networkadjustmentchannelsearchguidedbyflopsutilizationratio/full.md b/networkadjustmentchannelsearchguidedbyflopsutilizationratio/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..a6786f14291fca2149c4f29b9e04002583dc925f
--- /dev/null
+++ b/networkadjustmentchannelsearchguidedbyflopsutilizationratio/full.md
@@ -0,0 +1,288 @@
+# Network Adjustment: Channel Search Guided by FLOPs Utilization Ratio
+
+Zhengsu Chen $^{1}$ , Jianwei Niu $^{1}$ , Lingxi Xie $^{2}$ , Xuefeng Liu $^{1}$ , Longhui Wei $^{3}$ , Qi Tian $^{4}$ $^{1}$ Beihang University, $^{2}$ Johns Hopkins University, $^{3}$ Peking University, $^{4}$ Xidian University
+
+danczs@buaa.edu.cn, niujianwei@buaa.edu.cn, 198808xc@gmail.com, liu_xuefeng@buaa.edu.cn, longhuiwei@pku.edu.cn, wywqtian@gmail.com
+
+# Abstract
+
+Automatic designing computationally efficient neural networks has received much attention in recent years. Existing approaches either utilize network pruning or leverage the network architecture search methods. This paper presents a new framework named network adjustment, which considers network accuracy as a function of FLOPs, so that under each network configuration, one can estimate the FLOPs utilization ratio (FUR) for each layer and use it to determine whether to increase or decrease the number of channels on the layer. Note that FUR, like the gradient of a non-linear function, is accurate only in a small neighborhood of the current network. Hence, we design an iterative mechanism so that the initial network undergoes a number of steps, each of which has a small 'adjusting rate' to control the changes to the network. The computational overhead of the entire search process is reasonable, i.e., comparable to that of re-training the final model from scratch. Experiments on standard image classification datasets and a wide range of base networks demonstrate the effectiveness of our approach, which consistently outperforms the pruning counterpart. The code is available at https://github.com/danczs/NetworkAdjustment.
+
+# 1. Introduction
+
+In the deep learning era [24], as researchers designed more and more complicated neural networks [23, 35, 14, 19, 50] for various computer vision problems [8, 30], it becomes increasingly important to find efficient architectures that are friendly to real-world applications. The computational overhead of a deep neural network is closely related to its width, i.e., the number of channels on each layer of it. Beyond manually designed networks which have fixed configurations of width [14, 35, 38], researchers have also explored the direction of automatically determining the numbers of channels. Representative methods include network pruning [25, 28, 21] and channel search [40, 1], both of which obtained success in improving the computational
+
+efficiency (accuracy with respect to overhead) of the network. However, both of these two approaches have some limitations. Network pruning methods usually start with a wide network and try to reduce the channel number of each layer. These methods are mostly not sensitive to specific efficiency criteria (e.g., FLOPs) so that the computational resource is not always assigned to the places that need it most. On the other hand, the main drawbacks of the network search techniques are the computational complexity and search strategy which limit the search space and increase the search cost.
+
+In this paper, we propose a novel pipeline named network adjustment which starts with a pre-trained network, and simultaneously adds channels to some layers and subtracts channels from some others, with the criterion of the utilization ratio of resources at each layer. Network adjustment stands out from existing approaches in two aspects. First, we can estimate the state of each individual convolutional layer and optimize the channel numbers simultaneously. Therefore, our method is very efficient for channel search. Second, we search the channel configuration with an efficiency-aware strategy, by which we can find computationally efficient networks. The top-level design of our approach is an iterative process, in which each iteration involves training the given network, computing the utilization ratio on each layer, and adjusting the channel numbers accordingly. The computational overhead of the entire process is often comparable to that of training the initial network from scratch, yet we can observe gradual improvements of computational efficiency throughout iterations.
+
+As a particular example, we aim to optimize the FLOPs (floating point operations) of deep networks, and calculate the FLOPs utilization ratio (FUR) for this purpose. FUR is defined on each layer of a network, measuring the accuracy gain that can be obtained by increasing unit FLOPs on that layer. To compute it, we assume that network accuracy is a function of FLOPs and that FUR, like the gradient of a non-linear function, can be estimated with an acceptable error in a small neighborhood of each state. To mimic a small amount of FLOPs change, we propose a randomized
+
+approach which discards channels with a small drop probability (also named as SpatialDropout [41]) in each layer individually, and approximate FUR to be the ratio of accuracy drop over FLOPs drop, assuming that SpatialDropout removes the equivalent number (may be a floating point number) of channels. Note that FUR computation only involves network inference and thus executes efficiently.
+
+We evaluate network adjustment on the standard benchmark of designing efficient networks. On both the CIFAR100 and ImageNet datasets, our approach consistently improves the accuracy of a few popular network backbones, with the FLOPs barely changed. Compared with state-of-the-art structured pruning or channel search algorithms, network adjustment also enjoys advantages in terms of recognition accuracy under the same FLOPs.
+
+The remainder of this paper is organized as follows. Section 2 briefly reviews the previous literature, and Section 3 elaborates the network adjustment approach. Experiments are shown in Section 4 and conclusions are drawn in Section 5.
+
+# 2. Related Work
+
+The number of channels in each layer is an important factor in designing deep neural networks. Researchers started with empirical methods. A popular example is VG-GNet [35] which increases the channel number each time when the spatial resolution is reduced. This strategy was followed by a lot of work with either manual [46, 50, 38, 37] or automatic architecture designs [50, 33, 27, 32]. There also exist methods that increased the channel number gradually with the layer index, such as PyramidNet [11] and DenseNet [19]. To reduce the computational burden, researchers proposed a 'bottleneck' module [14] which reduces the number of channels before a costly computation and recovers it thereafter. Nevertheless, such work requires considerable manual efforts and the designed architectures were believed imperfect in many aspects.
+
+To explore a larger number of possibilities, the idea of neural architecture search (NAS) was introduced [50, 45], so that the number of channels at each layer is determined with an automatic algorithm guided by general heuristics, e.g., the computational efficiency of the network. A typical example is to optimize a RNN controller to control the strategy of sampling architectures from the large search space [40, 18]. However, the computational burden largely limits the search space of such methods. For acceleration, researchers had to reduce the number of candidates to be used in each layer [1], or trained a wide network beforehand and sampled channels from each layer to mimic the behavior of networks with different widths [10, 3, 36]. Both strategies introduced inaccuracy to the network, which leads to sub-optimal search results. The differentiable methods [27, 2, 47] have not been applied to channel search yet.
+
+Another line of research lies in channel pruning, which aims to speed up the network by removing a part of channels which contribute little to recognition [25, 28, 21]. The typical pipeline of pruning starts with a well-trained network, on which various criteria are used to measure the importance of a neuron [13, 12], a channel [25, 28], or a layer [44, 43]. After that, less important units are removed and the network gets fine-tuned [25]. Recently, researchers started rethinking the value or working mechanism of network pruning [29, 7], which led to novel designs of pruning approaches [48, 31].
+
+# 3. Our Approach
+
+# 3.1. Problem
+
+Given a network $\mathbb{N}$ with $L$ convolutional layers, a channel configuration of $\mathbf{c} = (c_{1}, c_{2}, \dots, c_{L})$ , and a FLOPs function, FLOPs(c), the goal is to improve the network performance by adjusting the channel configuration with predefined FLOPs, $F_{0}$ :
+
+$$
+\mathbf {c} ^ {\star} = \underset {\mathbf {c}} {\arg \max } \operatorname {A c c} _ {\text {v a l}} (\mathbf {c}, \mathbf {W} ^ {\star}) \tag {1}
+$$
+
+$$
+\text {s . t .} \quad \operatorname {F L O P s} (\mathbf {c}) = F _ {0}, \quad \mathbf {W} ^ {\star} = \underset {\mathbf {W}} {\arg \max } \operatorname {A c c} _ {\operatorname {t r a i n}} (\mathbf {c}, \mathbf {W})
+$$
+
+where $\mathbf{W}$ is the parameters of the network and $F_{0}$ is the FLOPs of the initial network. Acctrain and Accval denote the training and validation accuracy, respectively.
+
+The problem is the channel numbers $\mathbf{c}$ are discrete integers for a network and cannot be solved by optimization algorithms directly. To solve $\mathbf{c}$ like gradient based optimization algorithms, we, therefore, propose a method to estimate the gradients of them, which will be detailed in Section 3.3. The estimated gradients are also named as FLOPs utilization ratios or FLOPs utilization efficiency in this paper. The gradients of $\mathbf{c}$ are positive in general because most networks will benefit from increasing channels. To ensure $\mathrm{FLOPs}(\mathbf{c}) = F_0$ , we increase the channels in the layers with higher FURs and reduce the same amount of FLOPs from the layers with lower FURs. The channel adjustment will be executed iteratively like gradient based optimization algorithms until the FURs are similar in every layer.
+
+# 3.2. Pipeline: Network Adjustment
+
+Our method aims to search for more efficient channel configuration by considering the efficiency more accurately. During search, the channel numbers are adjusted iteratively. There are three steps within each iteration: network training, FUR estimation and channel adjustment as shown in Figure 1. First, we optimize the current network on the training set. This process starts from scratch, but the number of epochs can be significantly smaller than a regular, complete training process because we only need to determine the FLOPs utilization efficiency of each layer, which
+
+
+Figure 1. The framework of our channel number search approach (best viewed in color). The leftmost shows the original network, which undergoes an iterative process. In each round, the current network is trained from scratch, after which we estimate the FUR of each layer (marked in different colors) by individually performing SpatialDropout [41] on each layer. A taller bar indicates a higher FUR. After that, we choose the layers (only 1 in this example) with the highest FUR and increase its width, and do the opposite thing for the layers with the lowest FUR. This iteration continues till convergence, or a pre-defined number of iterations has been arrived.
+
+does not necessarily mean that the network has arrived at a high accuracy. Second, we compute the FLOPs utilization ratio on each layer with the method described in the next part. This process only involves sampling-based inference on the validation set, and is thus relatively fast. Third and last, we use a pre-defined adjusting rate (similar to learning rate) to increase the numbers of channels of a few layers with top-ranked FURs, and decrease the numbers of a few layers with bottom-ranked FURs. The FLOPs of the entire network must remain close to the original amount after each iteration, if not, we use a scale function to slightly increase or decrease the channel numbers of all layers [9]. A typical search process involves a few (e.g., 10) iterations, or it can be terminated if the accuracy is saturated on the validation set.
+
+The pseudo code is summarized in Algorithm 1. The validation set is usually split from the original training set. The function 'Scale' scales the channel numbers to keep the FLOPs unchanged after adjustment. After search, the network with configuration $\mathbf{c}^*$ will be trained on the full training set and evaluated on the testing set.
+
+# - Difference from Prior Work
+
+Before continuing with the technical part, we elaborate the difference between our approach and two families of prior work. The difference between our method and network pruning mainly lies in two aspects. First, pruning methods mostly focus on finding the less important channels and evaluate it with absolute performance drop [48] or reconstruction loss [21]. In contrast, our method considers the channels in a layer as a whole and evaluates the layer with FUR. Second, our method adjusts the channel configuration finely and iteratively while most pruning methods obtain the pruned model from a pre-trained wide model di
+
+rectly.
+
+Our method is also different from channel search methods. Although many NAS systems update the channel numbers iteratively [50, 40], their methods usually need hundreds of GPU days to converge. That is because their search systems can only update channel numbers according to the network performance. In our method, we evaluate the FUR in each layer to guide the search process and the search system can converge after a few iterations (e.g., 10). Additionally, limited by memory and computational resource, most NAS systems only search configuration from a few channel number candidates. Our method, however, can learn the channel configuration with an increased degree of freedom.
+
+# 3.3. FLOPs Utilization Ratio
+
+Following the above, the FLOPs utilization ratio (FUR) of a layer is defined to be the contribution that a unit amount of FLOPs makes to the network accuracy, i.e., $\partial \mathrm{Acc}_{\mathrm{val}}(\mathbf{c},\mathbf{W}^{\star}) / \partial \mathrm{FLOPs}(\mathbf{c})$ . To compute this quantity, we make use of the channel numbers, $\mathbf{c}$ , as an intermediate variable, and compute two quantities. The first quantity is the gradient of $\mathrm{Acc}_{\mathrm{val}}(\mathbf{c},\mathbf{W}^{\star})$ with respect to $\mathbf{c}$ , denoted as $\partial \mathrm{Acc}_{\mathrm{val}}(\mathbf{c},\mathbf{W}^{\star}) / \partial \mathbf{c}$ . In particular, an element in this vector, $\partial \mathrm{Acc}_{\mathrm{val}}(\mathbf{c},\mathbf{W}^{\star}) / \partial c_l$ , indicates the contribution that a unit channel makes to the final accuracy. The second quantity involves FLOPs(c), and we use another vector, $\mathbf{f}$ , which shares the same dimensionality with $\mathbf{c}$ and each element, $f_{l}$ , denotes the FLOPs in the $l$ -th layer. We have FLOPs(c) = $\sum_{l=1}^{L} f_l + \text{const}$ , where the constant is often determined by the architecture topology. For a convolutional layer, $f_l$ is proportional to the spatial resolution, input and output channel numbers, and the convolutional kernel size of the $l$ -th layer. Similarly, computing $\partial \mathrm{FLOPs}(\mathbf{c}) / \partial c_l$ obtains the contribution that a unit channel makes to the re
+
+# Algorithm 1 Network Adjustment
+
+Input: training set $\mathcal{D}_{\mathrm{train}}$ , validation set $\mathcal{D}_{\mathrm{val}}$ , initial channel configuration $\mathbf{c}^{(1)}$ , adjusted layers $K$ , adjusting rate $r_{\mathrm{A}}$ , max iterations $T$ ;
+
+Output: adjusted channel configuration $\mathbf{c}^{\star}$
+
+1: for $t = 1,2,\ldots ,T$ do
+
+2: Build a network $\mathbb{N}$ with $\mathbf{c}^{(t)}$ ;
+
+3: Train the network $\mathbb{N}$ on the training set $\mathcal{D}_{\mathrm{train}}$
+
+4: Test the network $\mathbb{N}$ and obtain the accuracy $\mathrm{Acc}_{\mathrm{val}}^{(t)}$ on the validation set $\mathcal{D}_{\mathrm{val}}$ ;
+
+5: Compute the FUR for each layer of $\mathbb{N}$ on the validation set: $\mathbf{F}^{(t)} = (\mathrm{FUR}_1^{(t)},\mathrm{FUR}_2^{(t)},\dots,\mathrm{FUR}_L^{(t)})$
+
+6: Sort the elements in $\mathbf{F}^{(t)}$ and obtain a top index set, $\mathcal{I}_{\mathrm{top}}^{(t)}$ , with $K$ largest elements in $\mathbf{F}^{(t)}$ , and a bottom set $\mathcal{I}_{\mathrm{hot}}^{(t)}$ , with $K$ smallest elements in $\mathbf{F}^{(t)}$ ;
+
+7: $\mathbf{c}^{t + 1} = \mathbf{c}^t$
+
+8: for $i$ in $\mathcal{I}_{\mathrm{top}}^{(t)}$ do
+
+9: $c_{i}^{(t + 1)} = \mathrm{Round}(c_{i}^{(t)} + r_{\mathrm{A}}\cdot c_{i}^{(1)})$
+
+10: end for
+
+11: for $i$ in $\mathcal{I}_{\mathrm{bot}}^{(t)}$ do
+
+12: $c_{i}^{(t + 1)} = \mathrm{Round}(c_{i}^{(t)} - r_{\mathrm{A}}\cdot c_{i}^{(1)})$
+
+13: end for
+
+14: $\mathbf{c}^{(t + 1)} = \mathrm{Scale}(\mathbf{c}^{(t + 1)})$ ;
+
+15: end for
+
+16: $t^{\star} = \arg \max_{t}(\mathbf{A}\mathbf{c}\mathbf{c}_{\mathrm{val}}^{(t)})$
+
+17: $\mathbf{c}^{\star} = \mathbf{c}^{(t^{\star})}$
+
+Return: $\mathbf{c}^{\star}$
+
+source usage. With these quantities, the FUR of the $l$ -th layer is defined as:
+
+$$
+\mathrm {F U R} _ {l} = \frac {\partial \operatorname {A c c} _ {\text {v a l}} (\mathbf {c} , \mathbf {W} ^ {\star})}{\partial \operatorname {F L O P s} (\mathbf {c})} = \frac {\partial \operatorname {A c c} _ {\text {v a l}} (\mathbf {c} , \mathbf {W} ^ {\star}) / \partial c _ {l}}{\partial \operatorname {F L O P s} (\mathbf {c}) / \partial c _ {l}} \tag {2}
+$$
+
+Here we have omitted the notation of the network topology, $\mathbb{N}$ , in all terms, for simplicity.
+
+In writing $\partial \mathrm{Acc}_{\mathrm{val}}(\mathbf{c},\mathbf{W}^{\star}) / \partial c_{l}$ and $\partial \mathrm{FLOPs}(\mathbf{c}) / \partial c_{l}$ , we assume that $c_{l}$ , the number of channels in each layer, can take continuous (non-integer) values. To mimic this behavior, we introduce a probabilistic mechanism which involves adding SpatialDropout [41] to each layer individually, and observing how the network accuracy is affected by this operation. SpatialDropout is proposed as a regularization method and randomly discards channels with a certain probability. To our best knowledge, it is the first time that SpatialDropout is used for channel evaluation.
+
+To reduce the systematic error in computing FUR, we discard the same FLOPs in every layer. In other words, the change of FLOPs is the same for all layers, by which we can rank the FURs with the accuracy drop directly. Since the data drop probability is continuous, we can simulate
+
+dropping fractional channels to guarantee that the discarded FLOPs in all layers are the same.
+
+# 3.4. Towards a Slightly Different Network
+
+FUR is like the gradient of network performance with respect to FLOPs and is very likely to be accurate only for the current network. Therefore, like the gradient based optimization method, we only slightly adjust the channel numbers in each iteration, so that FURs are still accurate enough.
+
+Specifically, we increase the channels of the top- $k$ -layers ranked by FURs and reduce the channels in the bottom- $k$ -layers. The hyperparameter $k$ will be deceased during search. The 'adjusting rate' is like the learning rate in gradient based optimization algorithms and is used to adjust the channels in an iteration. It should not be too big (We use 0.1 for most of our experiments). Big adjusting rates may make the search system unstable.
+
+When the channel configuration is updated, the FUR in each layer will change. To obtain new FUR of the new network, we will retrain the new networks from scratch. Since evaluating a trained network on the validation set is relatively fast, the most time-consuming step in our framework is training a network. In every searching iteration, a network should be trained. For tasks like training big models on ImageNet, this strategy becomes impractical. There are two methods that can tackle this problem: dataset sampling [45] and reducing the training epochs [40]. In our experiment, it is observed that reducing the training epochs has less effect on FUR estimation than dataset sampling. When training for much fewer epochs, the FUR ranking can still be revealed, even though the network performance is relatively low. Hence, we train our model on ImageNet for about ten percent of the full epochs. In this way, the time for search channel numbers on ImageNet is comparable to training a model on ImageNet.
+
+# 3.5. Implementation Details
+
+SpatialDropout and network training. As mentioned above, we evaluate the FUR by randomly discarding some channels (SpatialDropout). To make the evaluation reasonable, we should reduce unexpected changes (e.g. the change of data distribution) caused by discarding channels as much as possible, so that the test accuracy can reveal the real effect caused by channel change. Generally speaking, discarding some channels will not sharply degrade the network performance. The network accuracy usually decreases smoothly as the drop probability increases. In fact, even discarding whole layers in residual blocks will not disable a residual network [20, 42].
+
+Moreover, we use some tricks to make the neural layers accustomed to data drop. Firstly, Spatial Dropout is used during network training. Since the network is trained with
+
+
+Figure 2. The equivalent structure when utilizing zero padding. Padding zeros to the path with fewer channels is equivalent to introducing a new path to the residual block.
+
+SpatialDropout, it will not be sensitive to SpatialDropout during test. Secondly, the data distribution is balanced after SpatialDropout like standard Dropout. For example, if $10\%$ of the channels are discarded, the remaining channels will be scaled by $10/9$ . Finally, we reduce the disharmony between BN and data drop. There exists disharmony between BN and dropout [26]. It is demonstrated that Gaussian dropout and using dropout after BN can solve this problem [26].
+
+Zero padding for neural layers. For single-path networks like VGGNets, the channel numbers in every layer can be set freely. For multi-path networks like ResNets, there are some constraints on setting channel numbers. Taking residual blocks as an example, since the output of convolutions should be added to the residual shortcut, the channel numbers of these two paths should be the same. To solve this problem, we simply pad zeros to the path with fewer channels. Zero padding not only enables us to set the channel numbers freely in multi-path networks but also introduces some network structure implicitly. As displayed in Figure 2, in residual blocks, padding zeros to shortcut is equivalent to add a convolution path between input and output [11]. Padding zeros to convolution output is equivalent to concatenate an extra shortcut to the output. Therefore, searching channel numbers for multi-path networks with zero padding is also searching the network structure implicitly.
+
+# 4. Experiments
+
+# 4.1. Results on CIFAR-100
+
+We test our method on CIFAR-100, since the results on CIFAR-100 are more stable than those on CIFAR-10. CIFAR-100 is a publicly available dataset proposed by [22]. The dataset consists of $32 \times 32$ colored natural im
+
+Table 1. Accuracy $(\%)$ comparison on CIFAR-100 between our approach and other competitors. Here, 'D' indicates the network depth, 'FT' indicates that the searched network is only finetuned, not trained from scratch, and 'KD' is for knowledge distillation. The mark 'imp' indicates our own implementation. Legend: LCCL [5], SFP [15], FPGA [16], TAS [6].
+
+| D | Method | FT | KD | Acc (%) | FLOPs (M) |
| 20 | LCCL | | | 64.66 (-2.87) | 27.3 |
| SFP | | | 64.37 (-3.25) | 24.3 |
| FPGM | | | 66.86 (-0.76) | 24.3 |
| TAS | ✓ | | 68.90 (+0.21) | 22.4 |
| original (imp) | | | 69.52 | 40.1 |
| original 0.75× | | | 65.90 | 22.7 |
| searched 0.75× | | | 69.04 (-0.48) | 22.4 |
| searched 0.75× | ✓ | | 70.03 (+0.51) | 22.4 |
| 32 | LCCL | | | 67.39 (-2.69) | 43.2 |
| SFP | | | 68.37 (-1.40) | 40.3 |
| FPGM | | | 68.52 (-1.25) | 40.3 |
| TAS | ✓ | | 68.95 (-1.66) | 42.5 |
| TAS | | | 69.70 (-0.91) | 42.5 |
| TAS | ✓ | | 72.41 (+1.80) | 42.5 |
| original (imp) | | | 72.57 | 68.4 |
| original 0.75× | | | 69.68 | 38.5 |
| searched 0.75× | | | 71.93 (-0.64) | 42.2 |
| searched 0.75× | ✓ | | 73.82 (+1.25) | 42.2 |
| 110 | LCCL | | | 70.78 (-2.01) | 173 |
| SFP | ✓ | | 71.28 (-2.86) | 121 |
| FPGM | ✓ | | 72.55 (-1.59) | 121 |
| TAS | ✓ | | 73.16 (-1.90) | 120 |
| original (imp) | | | 75.68 | 252 |
| original 0.7× | | | 73.46 | 119 |
| searched 0.7× | | | 74.84 (-0.84) | 120 |
| searched 0.7× | ✓ | | 75.96 (+0.28) | 120 |
+
+ages that fall in 100 classes. There are 50,000 images in the training set and 10,000 images in the testing set. We randomly sample 5,000 images from the training set as the validation set to search the channel numbers. Afterwards, we retrain the searched networks on the whole training set and release the results on the testing set. Data augmentation is conducted during training following the common practice [14, 49]. During search and test, the networks are trained for 200 epochs and SpatialDropout is used for convolutional layers. The learning rate is dropped from 0.15 to 1e-3 with cosine annealing.
+
+# Comparison to Network Pruning
+
+The results of our method and some pruning methods are shown in Table 1. To compare our method to the pruning methods, we first narrow down the original networks to a comparable FLOPs level and then search for channel configuration based on the thin networks.
+
+For network testing, the pruning models are usually
+
+Table 2. The accuracy (on CIFAR-100) and FLOPs of ResNet-20, throughout a complete iterative process of network adjustment.
+
+| iteration | 0 (original network) | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| accuracy (%) | 69.52 | 70.12 | 70.24 | 70.34 | 70.48 | 70.94 | 71.09 | 71.55 | 71.47 | 71.36 | 71.57 |
| FLOPs (M) | 40.1 | 40.5 | 39.8 | 40.2 | 40.1 | 40.3 | 40.4 | 40.3 | 40.3 | 40.4 | 40.2 |
+
+
+Figure 3. The configuration of ResNet-20 before and after the entire network adjustment process (10 rounds) on CIFAR-100. Red and blue indicate increased and decreased channel numbers, respectively.
+
+initialized with the weights of the original model (finetuning), which is usually better than training from scratch. Some methods transfer the knowledge in original models by knowledge distillation [17], which usually can significantly improve the pruned networks. Since we aim to search for better channel configuration, our models are mainly evaluated by training from scratch. We also report the knowledge distillation results for a fair comparison. The methods in Table 1 have different baselines. Thus the main criterion is the accuracy drops of the pruning networks compared to their original networks. As can be seen, our searched models outperform most of the pruning methods on accuracy drop. For ResNet-32, although the TAS model with knowledge distillation performs better than our model, our search network outperforms the TAS model when trained from scratch, which demonstrates that our channel configuration is better. For ResNet-110, our searched model that is trained from scratch even performs better than the TAS model with knowledge distillation.
+
+# Diagnostic Studies
+
+Different iterations on CIFAR-100. The channel number search results of ResNet-20 on CIFAR-100 is shown in Table 2. As can be seen, the performance of the network is consistently improved in the first seven iterations. Afterwards, the performance gain becomes saturated. Since we have balanced the increase and decrease of FLOPs in different layers, the FLOPs of the network are almost unchanged. Note that the parameters of the networks are increased. It reveals that the network is exploring the unconstrained resources to improve its performance. A similar phenomenon is observed in [4]. We think the exchange of parameters and performance can be a new direction of designing networks. Because for most current devices, FLOPs rather than pa
+
+Table 3. The searched results for different networks.
+
+| Networks | method | Accuracy (%) | FLOPs (M) |
| ResNet-20 | original | 69.52 | 40.1 |
| searched | 71.57 (+2.05) | 40.2 |
| ResNet-32 | original | 72.57 | 68.4 |
| searched | 74.14 (+1.57) | 68.2 |
| ResNet-56 | original | 74.90 | 125 |
| searched | 76.15 (+1.25) | 126 |
| ResNet-110 | original | 75.68 | 252 |
| searched | 76.98 (+1.30) | 254 |
| ResNet-20 2.0× | original | 75.60 | 160 |
| searched | 76.87 (+1.27) | 161 |
| ResNet-20 4.0× | original | 78.84 | 642 |
| searched | 79.51 (+0.67) | 641 |
| Plain-20 | original | 65.62 | 40.1 |
| searched | 68.89 (+3.27) | 40.1 |
| DenseNet-40 | original | 76.32 | 282 |
| searched | 76.95 (+0.63) | 282 |
| PyramidNet-20 | original | 66.58 | 40.4 |
| searched | 71.53 (+4.95) | 40.1 |
+
+rameters are the bottleneck.
+
+The searched architecture. The searched channel configuration in ResNet-20 is different from the original network both at network-level and substructure-level. The structure of the original ResNet-20 and searched ResNet20 are shown in Figure 3. At network-level, more channels are assigned to the deep layers. It demonstrates that these layers are more efficient in FLOPs utilization. At substructure-level, as for the layers that closed to the in
+
+put, a more efficient residual block structure is found. In the first residual block, the output channel number of the first layer decreases from 16 to 6. Afterwards, the channel number is increased to 17 by the second convolutional layer. Although the output channel numbers of the block are slightly increased compared to the original block, the FLOPs of the residual block are sharply reduced. In this residual block, reducing the output of the first convolution will decrease the FLOPs of the two convolutional layers at the same time. Reducing the output of the second convolution may only decrease the FLOPs of the second layer, because the output will be added to the residual connection and the FLOPs of the following layer will not change if its channels are fewer than the residual connection. Our method is sensitive to FLOPs utilization and, thus, can find this 'compression-expansion' structure. The result also indicates that our method can not only reset the channel numbers at network-level but also find more efficient substructure in neural networks.
+
+Without FUR. We study FUR by searching ResNet-20 without it. It means that when evaluating channels, we randomly drop a fixed ratio of channels in each layer and rank the layers by the accuracy drops instead of FURs. Under this setting, the searched ResNet-20, which achieves $71.06\%$ , still outperforms the original network $(69.52\%)$ but performs worse than the network searched with FUR $(71.57\%)$ . At substructure-level, the fixed-ratio network can not learn the 'compression-expansion' structure shown in Figure 3, because it is not aware of the difference of FLOPs utilization between the two convolutional layers.
+
+Different initialization of channel numbers. To test the effect of the initialization channel numbers, we construct a 20 layer PyramidNet [11]. The channels of this network are linearly increased and the FLOPs are similar to ResNet-20. With the same FLOPs, ResNet-20 outperforms PyramidNet-20 by $2.94\%$ . From the perspective of FLOPs, PyramidNet-20 is a bad initialization of channel configuration for a 20 layer residual network. After channel search, the two searched networks achieve similar performance as shown in Table 3. It indicates that our method can overcome the bad initialization of channel numbers.
+
+Different depths, different widths, different architectures. We test our model on different width and depth ResNets. When increasing depth, our method still works well. ResNet-32, 56 and 110 outperform the original networks by over $1\%$ . For these deep networks, more FLOPs are assigned to the last several layers like ResNet-20. In ResNet-56 and 110, the 'compression-expansion' structure is learned not only in the first stage but also in the last network stage. ResNet-20 $2.0 \times$ and ResNet-20 $4.0 \times$ are networks widened from ResNet-20 by 2.0 and 4.0. These wide networks can also benefit from channel adjustment.
+
+Plain-20 is the non-residual version of ResNet-20. The
+
+searched result on Plain-20 outperforms the original network by $3.27\%$ . The searched channel configuration of DenseNet-40 is different from ResNet-20. More FLOPs are assigned to 28th-36th layers rather than the last several layers. It indicates that the FURs in these layers are higher than the others for the original DenseNet-40.
+
+Channel configuration transfer. To evaluate the generalization of the searched channel configuration, the searched configuration of ResNet-20 is transferred to ResNet-20 $2.0 \times$ by doubling the channels. The transferred model has the same FLOPs with ResNet-20 $2.0 \times$ and the accuracy is $76.34\%$ on CIFAR-100. Although the transferred model outperforms the original model, it performs worse than the directly searched model ( $76.87\%$ ). It indicates that there are biases when transferring channel configuration among networks with different widths.
+
+# 4.2. Results on ImageNet
+
+ILSVRC2012 is a subset of ImageNet database [34]. There are 1.3M, 50K and 150K images in training, validation and testing set. The images fall into 1K categories. We randomly sample 50K images from the training set as the searching validation set. Afterwards, we retrain the searched networks on the whole training set and release the results on the original validation set. The images are augmented with the method in [39]. On ImageNet, networks are trained for 10 epochs in each iteration and the channel number of the first convolutional layer is fixed during search. During the re-training process, ResNet-18 is trained on the full training set for 90 epochs. The learning rate is decayed from 0.1 to 0.001 with cosine annealing. MnasNet is trained for 500 epochs and the learning rate is dropped from 0.075 to 0.0001.
+
+First, we compare our results to those produced by network pruning. For ResNet-18, the searched model outperforms the original model by $0.91\%$ for top-1 accuracy as shown in Table 4. To compare our method to pruning approaches, we scale the channel numbers in ResNet-18 by a factor of 0.8 and search for channel configuration based on it. The top-1 accuracy of ResNet-18 $0.8 \times$ outperforms the other pruning approaches on accuracy drop and with knowledge distillation, our model performs much better.
+
+The original and searched ResNet-18 $0.8 \times$ are shown in Figure 4. As can be seen, the first stage also learned the 'compression-expansion' structure and more FLOPs are assigned to the last several layers. In addition, the downsampling layers in the networks are assigned more channels, indicating that the downsampling layers are different from other layers and should be specifically designed. We also show the FURs of some layers during the adjustment process in Figure 5, from which one can observe how the FURs differ from each other in the beginning and gradually become similar during the adjustment.
+
+Table 4. Top-1 accuracy (%) comparison on ImageNet between our approach and other competitors. Here, 'FT' indicates that the searched network is only fine-tuned, not trained from scratch, and 'KD' is for knowledge distillation. The mark 'imp' indicates our own implementation. Legend: LCCL [5], SFP [15], FPGM [16], TAS [6], AutoSlim [48].
+
+| Networks | Method | FT | KD | Top-1 (%) | Top-5 (%) | FLOPs (M) | Parameters(M) |
| ResNet-18 | LCCL | | | 66.33 (-3.65) | 86.94 (-2.29) | 1.19E3 | - |
| SFP | | | 67.10 (-3.18) | 87.78 (-1.85) | 1.06E3 | - |
| FPGM | ✓ | | 68.41 (-1.87) | 88.48 (-1.15) | 1.06E3 | - |
| TAS | | ✓ | 69.15 (-1.5) | 89.19 (-0.68) | 1.21E3 | - |
| original (imp) | | | 70.31 | 89.45 | 1.81E3 | 11.7 |
| searched | | | 71.22 (+0.91) | 90.07 (+0.62) | 1.81E3 | 18.5 |
| searched 0.8× | | | 69.41 (-0.90) | 88.71 (-0.74) | 1.17E3 | 11.8 |
| searched 0.8× | | ✓ | 71.00 (+0.69) | 90.05 (+0.60) | 1.17E3 | 11.8 |
| MnasNet | original (imp) | | | 74.21 | 91.83 | 312 | 3.89 |
| AutoSlim | | | 74.60 (+0.60) | - | 315 | 6.00 |
| ours | | | 74.88 (+0.67) | 92.15 (+0.32) | 312 | 4.96 |
+
+
+Figure 4. The configuration of ResNet-18 $0.8 \times$ before and after the entire network adjustment process (10 rounds) on ImageNet. Red and blue indicate increased and decreased channel numbers, respectively.
+
+
+Figure 5. FURs of convolutional layers in ResNet-18 $0.8 \times$ We sampled 8 out of 16 layers for better visualization.
+
+Second, we adjust beyond MnasNet [40], a searched network architecture based on MobileNetV2. By changing the channel configuration, we improve the network performance with the same FLOPs, as shown in Table 4. It indicates that our method can find the more efficient channel configuration compared to a NAS approach in a limited search space. Our method slightly outperforms AutoSlim with fewer parameters. Like ResNet-18 $0.8 \times$ , the searched MnasNet also assigns more FLOPs to the downsampling
+
+layers, which indicates that the current structure of down-sampling can be further improved.
+
+# 5. Conclusions
+
+This paper presents a new pipeline named network adjustment for designing efficient network architectures. Our approach is motivated by the idea of measuring how FLOPs are utilized in a pre-trained model, so that it is possible to adjust the number of network channels according to the efficiency of computational resource utilization. For this purpose, we consider network performance as a function of FLOPs and its 'gradient', FLOPs utilization ratio (FUR), can be estimated and utilized in a small neighborhood. Integrating all the above yields an iterative pipeline, which outperforms state-of-the-art network pruning methods in terms of recognition accuracy under the same amount of computation. Our research puts forward a new point that network accuracy and speed should be optimized jointly, for which network adjustment provides a preliminary solution. More efforts are required along this path.
+
+Acknowledgements This work was supported by the National Key R&D Program of China (2017YFB1301100), National Natural Science Foundation of China (61772060, U1536107, 61472024, 61572060, 61976012, 61602024), and the CERNET Innovation Project (NGII20160316).
+
+# References
+
+[1] Han Cai, Ligeng Zhu, and Song Han. Proxylessnas: Direct neural architecture search on target task and hardware. arXiv preprint arXiv:1812.00332, 2018.
+[2] Xin Chen, Lingxi Xie, Jun Wu, and Qi Tian. Progressive differentiable architecture search: Bridging the depth gap between search and evaluation. arXiv preprint arXiv:1904.12760, 2019.
+[3] Yukang Chen, Tong Yang, Xiangyu Zhang, Gaofeng Meng, Chunhong Pan, and Jian Sun. Detnas: Neural architecture search on object detection. arXiv preprint arXiv:1903.10979, 2019.
+[4] 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.
+[5] Xuanyi Dong, Junshi Huang, Yi Yang, and Shuicheng Yan. More is less: A more complicated network with less inference complexity. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5840-5848, 2017.
+[6] Xuanyi Dong and Yi Yang. Network pruning via transformable architecture search. arXiv preprint arXiv:1905.09717, 2019.
+[7] Jonathan Frankle and Michael Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. arXiv preprint arXiv:1803.03635, 2018.
+[8] 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.
+[9] Ariel Gordon, Elad Eban, Ofir Nachum, Bo Chen, Hao Wu, Tien-Ju Yang, and Edward Choi. Morphnet: Fast & simple resource-constrained structure learning of deep networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1586-1595, 2018.
+[10] Zichao Guo, Xiangyu Zhang, Haoyuan Mu, Wen Heng, Zechun Liu, Yichen Wei, and Jian Sun. Single path oneshot neural architecture search with uniform sampling. arXiv preprint arXiv:1904.00420, 2019.
+[11] Dongyoon Han, Jiwhan Kim, and Junmo Kim. Deep pyramidal residual networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5927-5935, 2017.
+[12] 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.
+[13] 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, pages 1135-1143, 2015.
+[14] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 770-778, 2016.
+
+[15] Yang He, Guoliang Kang, Xuanyi Dong, Yanwei Fu, and Yi Yang. Soft filter pruning for accelerating deep convolutional neural networks. arXiv preprint arXiv:1808.06866, 2018.
+[16] Yang He, Ping Liu, Ziwei Wang, Zhilan Hu, and Yi Yang. Filter pruning via geometric median for deep convolutional neural networks acceleration. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4340-4349, 2019.
+[17] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.
+[18] 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. arXiv preprint arXiv:1905.02244, 2019.
+[19] Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In CVPR, volume 1, page 3, 2017.
+[20] 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.
+[21] Zehao Huang and Naiyan Wang. Data-driven sparse structure selection for deep neural networks. In Proceedings of the European Conference on Computer Vision (ECCV), pages 304-320, 2018.
+[22] Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. 2009.
+[23] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pages 1097-1105, 2012.
+[24] Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. nature, 521(7553):436-444, 2015.
+[25] Hao Li, Asim Kadav, Igor Durdanovic, Hanan Samet, and Hans Peter Graf. Pruning filters for efficient convnets. arXiv preprint arXiv:1608.08710, 2016.
+[26] Xiang Li, Shuo Chen, Xiaolin Hu, and Jian Yang. Understanding the disharmony between dropout and batch normalization by variance shift. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2682-2690, 2019.
+[27] Hanxiao Liu, Karen Simonyan, and Yiming Yang. Darts: Differentiable architecture search. arXiv preprint arXiv:1806.09055, 2018.
+[28] Zhuang Liu, Jianguo Li, Zhiqiang Shen, Gao Huang, Shoumeng Yan, and Changshui Zhang. Learning efficient convolutional networks through network slimming. In Proceedings of the IEEE International Conference on Computer Vision, pages 2736-2744, 2017.
+[29] Zhuang Liu, Mingjie Sun, Tinghui Zhou, Gao Huang, and Trevor Darrell. Rethinking the value of network pruning. arXiv preprint arXiv:1810.05270, 2018.
+[30] 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.
+
+[31] Sangkug Lym, Esha Choukse, Siavash Zangeneh, Wei Wen, Mattan Erez, and Sujay Shanghavi. Prunetrain: Gradual structured pruning from scratch for faster neural network training. arXiv preprint arXiv:1901.09290, 2019.
+[32] Hieu Pham, Melody Y Guan, Barret Zoph, Quoc V Le, and Jeff Dean. Efficient neural architecture search via parameter sharing. arXiv preprint arXiv:1802.03268, 2018.
+[33] Esteban Real, Alok Aggarwal, Yanping Huang, and Quoc V Le. Regularized evolution for image classifier architecture search. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 4780-4789, 2019.
+[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] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
+[36] Dimitrios Stamoulis, Ruizhou Ding, Di Wang, Dimitrios Lymberopoulos, Bodhi Priyantha, Jie Liu, and Diana Marculescu. Single-path nas: Designing hardware-efficient convnets in less than 4 hours. arXiv preprint arXiv:1904.02877, 2019.
+[37] Christian Szegedy, Sergey Ioffe, Vincent Vanhoucke, and Alex Alemi. Inception-v4, inception-resnet and the impact of residual connections on learning. arXiv preprint arXiv:1602.07261, 2016.
+[38] Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1-9, 2015.
+[39] Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2818-2826, 2016.
+[40] Mingxing Tan, Bo Chen, Ruoming Pang, Vijay Vasudevan, Mark Sandler, Andrew Howard, and Quoc V Le. Mnasnet: Platform-aware neural architecture search for mobile. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2820-2828, 2019.
+[41] Jonathan Tompson, Ross Goroshin, Arjun Jain, Yann LeCun, and Christoph Bregler. Efficient object localization using convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 648-656, 2015.
+[42] Andreas Veit, Michael J Wilber, and Serge Belongie. Residual networks behave like ensembles of relatively shallow networks. In Advances in Neural Information Processing Systems, pages 550-558, 2016.
+[43] Xin Wang, Fisher Yu, Zi-Yi Dou, Trevor Darrell, and Joseph E Gonzalez. Skipnet: Learning dynamic routing in convolutional networks. In Proceedings of the European Conference on Computer Vision (ECCV), pages 409-424, 2018.
+
+[44] Wei Wen, Chunpeng Wu, Yandan Wang, Yiran Chen, and Hai Li. Learning structured sparsity in deep neural networks. In Advances in neural information processing systems, pages 2074-2082, 2016.
+[45] Bichen Wu, Xiaoliang Dai, Peizhao Zhang, Yanghan Wang, Fei Sun, Yiming Wu, Yuandong Tian, Peter Vajda, Yangqing Jia, and Kurt Keutzer. Fbnet: Hardware-aware efficient convnet design via differentiable neural architecture search. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 10734-10742, 2019.
+[46] Saining Xie, Ross Girshick, Piotr Dólár, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. arXiv preprint arXiv:1611.05431, 2016.
+[47] Yuhui Xu, Lingxi Xie, Xiaopeng Zhang, Xin Chen, Guo-Jun Qi, Qi Tian, and Hongkai Xiong. Pc-darts: Partial channel connections for memory-efficient differentiable architecture search. arXiv preprint arXiv:1907.05737, 2019.
+[48] Jiahui Yu and Thomas Huang. Network slimming by slimmable networks: Towards one-shot architecture search for channel numbers. arXiv preprint arXiv:1903.11728, 2019.
+[49] Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016.
+[50] Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V Le. Learning transferable architectures for scalable image recognition. arXiv preprint arXiv:1707.07012, 2(6), 2017.
\ No newline at end of file
diff --git a/networkadjustmentchannelsearchguidedbyflopsutilizationratio/images.zip b/networkadjustmentchannelsearchguidedbyflopsutilizationratio/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..11f6880e6999b1d71c5db5c1b7450e706adb3631
--- /dev/null
+++ b/networkadjustmentchannelsearchguidedbyflopsutilizationratio/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5fb7ea3d0f265a2ffaeb15d0918cd02744c6640accf96afcd6fc7f655f1218cf
+size 480721
diff --git a/networkadjustmentchannelsearchguidedbyflopsutilizationratio/layout.json b/networkadjustmentchannelsearchguidedbyflopsutilizationratio/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..e0400ac97b87966c9309350a0c0610a8cb3cb166
--- /dev/null
+++ b/networkadjustmentchannelsearchguidedbyflopsutilizationratio/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d7de7e69edd2c9bc7e8e98bb63c68b8e258af5e2a810c482bfaf97ebc7f5a628
+size 362867
diff --git a/neuralarchitecturesearchforlightweightnonlocalnetworks/82c25b12-a81d-4057-914b-8aa997760afc_content_list.json b/neuralarchitecturesearchforlightweightnonlocalnetworks/82c25b12-a81d-4057-914b-8aa997760afc_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..256bf75ebbcc6886bcf6bf4a496d16e47f4d697f
--- /dev/null
+++ b/neuralarchitecturesearchforlightweightnonlocalnetworks/82c25b12-a81d-4057-914b-8aa997760afc_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:83b7d29c11c0652e806fe63f1bab2210d8068193bdfc757d204f292783c7cf83
+size 77863
diff --git a/neuralarchitecturesearchforlightweightnonlocalnetworks/82c25b12-a81d-4057-914b-8aa997760afc_model.json b/neuralarchitecturesearchforlightweightnonlocalnetworks/82c25b12-a81d-4057-914b-8aa997760afc_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..546e934ed996d85e73f07858489b602bb58933b2
--- /dev/null
+++ b/neuralarchitecturesearchforlightweightnonlocalnetworks/82c25b12-a81d-4057-914b-8aa997760afc_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0b2790a9e53474b9959e0357b35307eb7ada778bdff3d2832840fa281c0edf50
+size 95322
diff --git a/neuralarchitecturesearchforlightweightnonlocalnetworks/82c25b12-a81d-4057-914b-8aa997760afc_origin.pdf b/neuralarchitecturesearchforlightweightnonlocalnetworks/82c25b12-a81d-4057-914b-8aa997760afc_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..2e0dfc5ce0884196319ca7e3c5438e4037e46d58
--- /dev/null
+++ b/neuralarchitecturesearchforlightweightnonlocalnetworks/82c25b12-a81d-4057-914b-8aa997760afc_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ccf546a576b9306eae372dd3edbf3da13aa16f6d93b89d168525cb7dbbdd9ee6
+size 480144
diff --git a/neuralarchitecturesearchforlightweightnonlocalnetworks/full.md b/neuralarchitecturesearchforlightweightnonlocalnetworks/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..f2370958501cffa1a5a8840bdb52ccf6361020ed
--- /dev/null
+++ b/neuralarchitecturesearchforlightweightnonlocalnetworks/full.md
@@ -0,0 +1,327 @@
+# Neural Architecture Search for Lightweight Non-Local Networks
+
+Yingwei Li $^{1*}$ Xiaojie Jin $^{2}$ Jieru Mei $^{1*}$ Xiaochen Lian $^{2}$ Linjie Yang $^{2}$ Cihang Xie $^{1}$ Qihang Yu $^{1}$ Yuyin Zhou $^{1}$ Song Bai $^{3}$ Alan Yuille $^{1}$ $^{1}$ Johns Hopkins University $^{2}$ ByteDance AI Lab $^{3}$ University of Oxford
+
+# Abstract
+
+Non-Local (NL) blocks have been widely studied in various vision tasks. However, it has been rarely explored to embed the NL blocks in mobile neural networks, mainly due to the following challenges: 1) NL blocks generally have heavy computation cost which makes it difficult to be applied in applications where computational resources are limited, and 2) it is an open problem to discover an optimal configuration to embed NL blocks into mobile neural networks. We propose AutoNL to overcome the above two obstacles. Firstly, we propose a Lightweight Non-Local (LightNL) block by squeezing the transformation operations and incorporating compact features. With the novel design choices, the proposed LightNL block is $400 \times$ computationally cheaper than its conventional counterpart without sacrificing the performance. Secondly, by relaxing the structure of the LightNL block to be differentiable during training, we propose an efficient neural architecture search algorithm to learn an optimal configuration of LightNL blocks in an end-to-end manner. Notably, using only 32 GPU hours, the searched AutoNL model achieves $77.7\%$ top-1 accuracy on ImageNet under a typical mobile setting (350M FLOPs), significantly outperforming previous mobile models including MobileNetV2 $(+5.7\%)$ , FBNet $(+2.8\%)$ and MnasNet $(+2.1\%)$ . Code and models are available at https://github.com/LiYingwei/AutoNL.
+
+# 1. Introduction
+
+Non-Local (NL) block [2, 39] aims to capture long-range dependencies in deep neural networks, which have been used in a variety of vision tasks such as video classification [39], object detection [39], semantic segmentation [39, 46], image classification [2], and adversarial robustness [41]. Despite the remarkable progress, the general utilization of non-local modules under resource-constrained scenarios such as mobile devices remains underexplored. This may be due to the following two factors.
+
+
+Figure 1. ImageNet Accuracy vs. Computation Cost. Details can be found in Table 3.
+
+First, NL blocks compute the response at each position by attending to all other positions and computing a weighted average of the features in all positions, which incurs a large computation burden. Several efforts have been explored to reduce the computation overhead. For instance, [7, 22] use associative law to reduce the memory and computation cost of matrix multiplication; Yue et al. [44] use Taylor expansion to optimize the non-local module; Cao et al. [4] compute the affinity matrix via a convolutional layer; Bello et al. [2] design a novel attention-augmented convolution. However, these methods either still lead to relatively large computation overhead (via using heavy operators, such as large matrix multiplications) or result in a less accurate outcome (e.g., simplified NL blocks [4]), making these methods undesirable for mobile-level vision systems.
+
+Second, NL blocks are usually implemented as individual modules which can be plugged into a few manually selected layers (usually relatively deep layers). While it is intractable to densely embed it into a deep network due to the high computational complexity, it remains unclear where to insert those modules economically. Existing methods have not fully exploited the capacity of NL blocks in relational modeling under mobile settings.
+
+Taking the two factors aforementioned into account, we aim to answer the following questions in this work: is it pos-
+
+sible to develop an efficient NL block for mobile networks? What is the optimal configuration to embed those modules into mobile neural networks? We propose AutoNL to address these two questions. First, we design a Lightweight Non-Local (LightNL) block, which is the first work to apply non-local techniques to mobile networks to our best knowledge. We achieve this with two critical design choices 1) lighten the transformation operators (e.g., $1 \times 1$ convolutions) and 2) utilize compact features. As a result, the proposed LightNL blocks are usually $400 \times$ computationally cheaper than conventional NL blocks [39], which is favorable to be applied to mobile deep learning systems. Second, we propose a novel neural architecture search algorithm. Specifically, we relax the structure of LightNL blocks to be differentiable so that our search algorithm can simultaneously determine the compactness of the features and the locations for LightNL blocks during the end-to-end training. We also reuse intermediate search results by acquiring various affinity matrices in one shot to reduce the redundant computation cost, which speeds up the search process.
+
+Our proposed searching algorithm is fast and delivers high-performance lightweight models. As shown in Figure 1, our searched small AutoNL model achieves $76.5\%$ ImageNet top-1 accuracy with 267M FLOPs, which is faster than MobileNetV3 [16] with comparable performance (76.6% top-1 accuracy with 356M FLOPs). Also, our searched large AutoNL model achieves $77.7\%$ ImageNet top-1 accuracy with 353M FLOPs, which has similar computation cost as MobileNetV3 but improves the top-1 accuracy by $1.1\%$ .
+
+To summarize, our contributions are three-fold: (1) We design a lightweight and search compatible NL block for visual recognition models on mobile devices and resource-constrained platforms; (2) We propose an efficient neural architecture search algorithm to automatically learn an optimal configuration of the proposed LightNL blocks; 3) Our model achieves state-of-the-art performance on the ImageNet classification task under mobile settings.
+
+# 2. Related Work
+
+Attention mechanism. The attention mechanism has been successfully applied to neural language processing in recent years [1, 36, 11]. Wang et al. [39] bridge attention mechanism and non-local operator, and use it to model long-range relationships in computer vision applications. Attention mechanisms can be applied along two orthogonal directions: channel attention and spatial attention. Channel attention [18, 37, 27] aims to model the relationships between different channels with different semantic concepts. By focusing on a part of the channels of the input feature and deactivating non-related concepts, the models can focus on the concepts of interest. Due to its simplicity and effectiveness [18], it is widely used in neural architecture
+
+search [33, 35, 16, 9].
+
+Our work explores in both directions of spatial/channel attention. Although existing works [7, 44, 4, 2, 38] exploit various techniques to improve efficiency, they are still too computationally heavy under mobile settings. To alleviate this problem, we design a lightweight spatial attention module with low computational cost and it can be easily integrated into mobile neural networks.
+
+Efficient mobile architectures. There are a lot of handcrafted neural network architectures [19, 42, 17, 30, 45, 25] for mobile applications. Among them, the family of MobileNet [17, 30] and the family of ShuffleNet [45, 25] stand out due to their superior efficiency and performance. MobileNetV2 [30] proposes the inverted residual block to improve both efficiency and performance over MobileNetV1 [17]. ShuffleNet [25] proposes to use efficient shuffle operations along with group convolutions to design efficient networks. Above methods are usually subject to trial-and-errors by experts in the model design process.
+
+Neural Architecture Search. Recently, it has received much attention to use neural architecture search (NAS) to design efficient network architectures for various applications [34, 13, 23, 43, 21]. A critical part of NAS is to design proper search spaces. Guided by a meta-controller, early NAS methods either use reinforcement learning [49] or evolution algorithm [29] to discover better architectures. These methods are computationally inefficient, requiring thousands of GPU days to search. ENAS [28] shares parameters across sampled architectures to reduce the search cost. DARTS [24] proposes a continuous relaxation of the architecture parameters and conducts one-shot search and evaluation. These methods all adopt a NASNet [49] like search space. Recently, more expert knowledge in handcrafting network architectures are introduced in NAS. Using MobileNetV2 basic blocks in search space [3, 40, 33, 35, 31, 14, 26] significantly improves the performance of searched architectures. [3, 14] reduce the GPU memory consumption by executing only part of the super-net in each forward pass during training. [26] proposes an ensemble perspective of the basic block and simultaneously searches and trains the target architecture in the fine-grained search space. [31] proposes a super-kernel representation to incorporate all architectural hyper-parameters (e.g., kernel sizes, expansion rations in MobileNetV2 blocks) in a unified search framework to reuse model parameters and computations. In our proposed searching algorithm, we focus on seeking an optimal configuration of LightNL blocks in low-cost neural networks which brought significant performance gains.
+
+# 3. AutoNL
+
+In this section, we present AutoNL: we first elaborate on how to design a Lightweight Non-Local (LightNL) block in
+
+
+(a)
+
+
+(b)
+Figure 2. Original NL vs. LightNL Block. (a) A typical architecture of the NL block contains several heavy operators, such as $1 \times 1$ convolution ops and large matrix multiplications. (b) The proposed LightNL block contains much more lightweight operators, such as depthwise convolution ops and small matrix multiplications.
+
+Section 3.1; then we introduce a novel neural architecture search algorithm in Section 3.2 to automatically search for an optimal configuration of LightNL blocks.
+
+# 3.1. Lightweight Non-Local Blocks
+
+In this section, we first revisit the NL blocks, then we introduce our proposed Lightweight Non-Local (LightNL) block in detail.
+
+Revisit NL blocks. The core component in the NL blocks is the non-local operation. Following [39], a generic non-local operation can be formulated as
+
+$$
+\mathrm {y} _ {i} = \frac {1}{\mathcal {C} (\mathrm {x})} \sum_ {\forall j} f \left(\mathrm {x} _ {i}, \mathrm {x} _ {j}\right) g \left(\mathrm {x} _ {j}\right), \tag {1}
+$$
+
+where $i$ indexes the position of input feature $\mathbf{x}$ whose response is to be computed, $j$ enumerates all possible positions in $\mathbf{x}$ , $f(\mathrm{x}_i,\mathrm{x}_j)$ outputs the affinity matrix between $\mathrm{x}_i$ and its context features $\mathrm{x}_j$ , $g(\mathrm{x}_j)$ computes an embedding of the input feature at the position $j$ , and $C(\mathbf{x})$ is the normalization term. Following [39], the non-local operation in Eqn. (1) is wrapped into a NL block with a residual connection from the input feature $\mathbf{x}$ . The mathematical formulation is given as
+
+$$
+z _ {i} = W _ {z} y _ {i} + x _ {i}, \tag {2}
+$$
+
+where $W_{z}$ denotes a learnable feature transformation.
+
+Instantiation. Dot product is used as the function form of $f(x_{i},x_{j})$ due to its simplicity in computing the correlation between features. Eqn. (1) thus becomes
+
+$$
+\mathrm {y} = \frac {1}{\mathcal {C} (\mathrm {x})} \theta (\mathrm {x}) \theta (\mathrm {x}) ^ {\mathrm {T}} g (\mathrm {x}). \tag {3}
+$$
+
+Here the shape of $\mathbf{x}$ is denoted as $(H, W, C)$ where $H$ , $W$ and $C$ are the height, width and number of channels, respectively. $\theta(\cdot)$ and $g(\cdot)$ are $1 \times 1$ convolutional layers with $C$ filters. Before matrix multiplications, the outputs of $1 \times 1$ convolution are reshaped to $(H \times W, C)$ .
+
+Levi et al. [22] discover that for NL blocks instantiated in the form of Eqn. (3), employing the associative law of
+
+matrix multiplication can largely reduce the computation overhead. Based on the associative rules, Eqn. (3) can be written in two equivalent forms:
+
+$$
+\mathrm {y} = \frac {1}{\mathcal {C} (\mathrm {x})} \left(\theta (\mathrm {x}) \theta (\mathrm {x}) ^ {\mathrm {T}}\right) g (\mathrm {x}) = \frac {1}{\mathcal {C} (\mathrm {x})} \theta (\mathrm {x}) \left(\theta (\mathrm {x}) ^ {\mathrm {T}} g (\mathrm {x})\right). \tag {4}
+$$
+
+Although the two forms produce the same numerical results, they have different computational complexity [22]. Therefore in computing Eqn. (3), one can always choose the form with smaller computation cost for better efficiency.
+
+Design principles. The following part introduces two key principles to reduce the computation cost of Eqn. (3).
+
+Design principle 1: Share and lighten the feature transformations. Instead of using two different transformations $(\theta$ and $g)$ on the same input feature $\mathbf{x}$ in Eqn. (3), we use a shared transformation in the non-local operation. In this way, the computation cost of Eqn. (3) is significantly reduced by reusing the result of $g(\mathrm{x})$ in computing the affinity matrix. The simplified non-local operation is
+
+$$
+\mathrm {y} = \frac {1}{\mathcal {C} (\mathrm {x})} g (\mathrm {x}) g (\mathrm {x}) ^ {\mathrm {T}} g (\mathrm {x}). \tag {5}
+$$
+
+The input feature $\mathbf{x}$ (output of hidden layer) can be seen as the transformation of input data $\mathbf{x}_0$ through a feature transformer $F(\cdot)$ . Therefore Eqn. (5) can be written as
+
+$$
+\mathrm {y} = \frac {1}{\mathcal {C} (F (\mathrm {x} _ {0}))} g (F (\mathrm {x} _ {0})) g (F (\mathrm {x} _ {0})) ^ {\mathrm {T}} g (F (\mathrm {x} _ {0})). \tag {6}
+$$
+
+In the scenario of using NL blocks in neural networks, $F(\cdot)$ is represented by a parameterized deep neural network. In contrast, $g(\cdot)$ is a single convolution operation. To further simplify Eqn. (6), we integrate the learning process of $g(\cdot)$ into that of $F(\cdot)$ . Taking advantage of the strong capability of deep neural networks on approximating functions [15], we remove $g(\cdot)$ and Eqn. (6) is simplified as
+
+$$
+\mathrm {y} = \frac {1}{\mathcal {C} (\mathrm {x})} \mathrm {x x} ^ {\mathrm {T}} \mathrm {x}. \tag {7}
+$$
+
+At last, we introduce our method to simplify " $W_{z}$ ", another heavy transformation function in Eqn. (2). Recent works [39] instantiate it as a $1\times 1$ convolutional layer. To further reduce the computation cost of NL blocks, we propose to replace the $1\times 1$ convolution with a $3\times 3$ depthwise convolution [17] since the latter is more efficient. Eqn. (2) is then modified to be
+
+$$
+z = \operatorname {D e p t h w i s e C o n v} (y, W _ {d}) + x, \tag {8}
+$$
+
+where $W_{d}$ denotes the depthwise convolution kernel.
+
+Design principle 2: Use compact features for computing affinity matrices. Since x is a high-dimensional feature, directly performing matrix multiplication using the full-sized x per Eqn. (7) leads to large computation overhead. To solve this problem, we propose to downsample x first to obtain a more compact feature which replaces x in Eqn. (7). Since x is a three-dimensional feature with depth (channels), width and height, we propose to downsample x along either channel dimension, spatial dimension or both dimensions to obtain compact features $\mathrm{x_c}$ , $\mathrm{x_s}$ and $\mathrm{x_{sc}}$ respectively. Consequently, the computation cost of Eqn. (7) is reduced.
+
+Therefore, based on Eqn. (7), we can simply apply the compact features $\{\mathrm{x_c},\mathrm{x_{sc}},\mathrm{x_s}\}$ in the NL block to compute $\mathrm{x_cX_{sc}^T}$ and $\mathrm{x_{sc}^T}\mathrm{x_s}$ as
+
+$$
+y = \frac {1}{\mathcal {C} (\mathrm {x})} \mathrm {x} _ {c} \mathrm {x} _ {s c} ^ {\mathrm {T}} \mathrm {x} _ {s}. \tag {9}
+$$
+
+Note that there is a trade-off between the computation cost and the representation capacity of the output (i.e., y) of the non-local operation: using more compact features (with a lower downsampling ratio) reduces the computation cost but the output fails to capture the informative context information in those discarded features; on the other hand, using denser features (with a higher downsampling ratio) helps the output capture richer contexts, but it is more computationally demanding. Manually setting the downsampling ratios requires trial-and-errors. To solve this issue, we propose a novel neural network architecture search (NAS) method in Section 3.2 to efficiently search for the configuration of NL blocks that achieve descent performance under specific resource constraints.
+
+Before introduce our NAS method, let's briefly summarize the advantages of the proposed LightNL blocks. Thanks to the aforementioned two design principles, our proposed LightNL block is empirically demonstrated to be much more efficient (refer to Section 4) than the conventional NL block [39], making it favorable to be deployed in mobile devices with limited computational budgets. In addition, since the computational complexity of the blocks can be easily adjusted by the downsampling ratios, the proposed LightNL blocks can provide better support on deep learning models at different scales. We illustrate the struc-
+
+
+Figure 3. MobileNetV2 vs. MobileNetV2 + LightNL. The proposed LightNL block improves the baseline by $1.6\%$ in ImageNet top-1 accuracy and $2.3\%$ in PASCAL VOC 2012 mIoU.
+
+ture of the conventional NL block and that of the proposed block in Figure 2.
+
+# 3.2. Neural Architecture Search for LightNL
+
+To validate the efficacy and generalization of the proposed LightNL block for deep networks, we perform a proof test by applying it to every MobileNetV2 block. As shown in Figure 3, such a simple way of using the proposed LightNL blocks can already significantly boost the performance on both image classification and semantic segmentation. This observation motivates us to search for a better configuration of the proposed LightNL blocks in neural networks to fully utilize its representation learning capacity. As can be seen in Section 3.1, except for the insert locations in a neural network, the downsampling scheme that controls the complexity of the LightNL blocks is another important factor to be determined. We note that both insert locations and downsampling schedule of LightNL blocks are critical to the performance and computational cost of models. To automate the process of model design and find an optimal configuration of the proposed LightNL blocks, we propose an efficient Neural Architecture Search (NAS) method. Concretely, we propose to jointly search the configurations of LightNL blocks and the basic neural network architectural parameters (e.g., kernel size, number of channels) using a cost-aware loss function.
+
+Insert location. Motivated by [31], we select several candidate locations for inserting LightNL blocks throughout the network and decide whether a LightNL block should be used by comparing the $L_{2}$ norm of the depthwise convolution kernel $W_{d}$ to a trainable latent variable $t$ :
+
+$$
+\hat {W} _ {d} = \mathbb {1} \left(\left\| W _ {d} \right\| ^ {2} > t\right) \cdot W _ {d}, \tag {10}
+$$
+
+where $\hat{W}_d$ replaces $W_d$ to be used in Eqn. (8), and $\mathbb{1}(\cdot)$ is an indicator function. $\mathbb{1}(\cdot) = 1$ indicates that a LightNL block will be used with $\hat{W}_d = W_d$ being the depthwise convolution kernel. Otherwise, $\hat{W}_d = 0$ when $\mathbb{1}(\cdot) = 0$ and thus Eqn. (8) is degenerated to $z = x$ meaning no lightweight non-local block will be inserted.
+
+
+Figure 4. Illustrate the feature reuse paradigm along channel dimension.
+
+Instead of manually selecting the value of threshold $t$ , we set it to be a trainable parameter, which is jointly optimized with other parameters via gradient decent. To compute the gradient of $t$ , we relax the indicator function $I(x,t) = \mathbb{1}(x > t)$ to a differentiable sigmoid function $\sigma(\cdot)$ during the back-propagation process.
+
+Module compactness. As can be seen from Eqn. (7), the computational cost of LightNL block when performing the matrix multiplication is determined by the compactness of downsampled features. Given a search space $R$ which contains $n$ candidate downsampling ratios, i.e., $R = \{r_1, r_2, r_3, \dots, r_n\}$ where $0 \leq r_1 < r_2 < r_3 < \dots < r_n \leq 1$ , our goal is to search for an optimal downsampling ratio $r^*$ for each LightNL block. For the sake of clarity, here we use the case of searching down sampling ratios along the channel dimension to illustrate our method. Note that searching down sampling ratios along other dimensions can be performed in the same manner.
+
+Different from searching for the insert locations through Eqn. (10), we encode the choice of downsampling ratios in the process of computing affinity matrix:
+
+$$
+\begin{array}{l} \mathrm {x} _ {\text {a t t}} = \mathbb {1} (r _ {1}) \cdot \mathrm {x} _ {\mathrm {r} _ {1}} \mathrm {x} _ {\mathrm {r} _ {1}} ^ {\mathrm {T}} + \mathbb {1} (r _ {2}) \cdot \mathrm {x} _ {\mathrm {r} _ {2}} \mathrm {x} _ {\mathrm {r} _ {2}} ^ {\mathrm {T}} + \dots \tag {11} \\ + \mathbb {1} (r _ {n - 1}) \cdot \mathrm {x} _ {\mathrm {r} _ {n - 1}} \mathrm {x} _ {\mathrm {r} _ {n - 1}} ^ {\mathrm {T}} + \mathbb {1} (r _ {n}) \cdot \mathrm {x} _ {\mathrm {r} _ {n}} \mathrm {x} _ {\mathrm {r} _ {n}} ^ {\mathrm {T}}, \\ \end{array}
+$$
+
+where $\mathbf{x}_{\mathrm{att}}$ denotes the computed affinity matrix, $\mathbf{x}_r$ denotes the downsampled feature with downsampling ratio $r$ , and $\mathbb{1}(r)$ is an indicator which holds true when $r$ is selected. By setting the constraint that only one downsampling ratio is used, Eqn. (11) can be simplified as $\mathbf{x}_{\mathrm{att}} = \mathbf{x}_{\mathrm{ri}}\mathbf{x}_{\mathrm{ri}}^{\mathrm{T}}$ when $r_i$ is selected as the downsampling ratio.
+
+A critical step is how to formulate the condition of $\mathbb{1}(\cdot)$ for deciding which downsampling ratio to use. A reasonable intuition is that the criteria should be able to determine whether the downsampled feature can be used to compute an accurate affinity matrix. Thus, our goal is to define a "similarity" signal that models whether the affinity matrix from the downsampled feature is close to the "ground-truth" affinity matrix, denotes as $\mathrm{x_{gt}x_{gt}^T}$ . Specifically, we write the indicator as
+
+$$
+\begin{array}{l} \mathbb {1} \left(r _ {1}\right) = \mathbb {1} \left(\left\| \mathrm {x} _ {\mathrm {r} _ {1}} \mathrm {x} _ {\mathrm {r} _ {1}} ^ {\mathrm {T}} - \mathrm {x} _ {\mathrm {r} _ {\mathrm {g t}}} \mathrm {x} _ {\mathrm {g t}} ^ {\mathrm {T}} \right\| ^ {2} < t\right), \\ \mathbb {1} \left(r _ {2}\right) = \mathbb {1} \left(\left\| \mathrm {x} _ {\mathrm {r} _ {2}} \mathrm {x} _ {\mathrm {r} _ {2}} ^ {\mathrm {T}} - \mathrm {x} _ {\mathrm {g t}} \mathrm {x} _ {\mathrm {g t}} ^ {\mathrm {T}} \right\| ^ {2} < t\right) \wedge \neg \mathbb {1} \left(r _ {1}\right), \\ \dots \tag {12} \\ \end{array}
+$$
+
+$$
+\begin{array}{l} \mathbb {1} \left(r _ {n}\right) = \mathbb {1} \left(\left\| x _ {r _ {n}} x _ {r _ {n}} ^ {T} - x _ {g t} x _ {g t} ^ {T} \right\| ^ {2} < t\right) \\ \wedge \neg \mathbb {1} (r _ {1}) \wedge \neg \mathbb {1} (r _ {2}) \wedge \dots \wedge \neg \mathbb {1} (r _ {n - 1}), \\ \end{array}
+$$
+
+where $\wedge$ denotes the logical operator AND. An intuitive explanation to the rational of Eqn. (12) is the algorithm always selects the smallest $r$ with which the Euclidean distance between $\mathrm{x_r x_r}^T$ and $\mathrm{x_{gt}x_{gt}}^T$ is lower than threshold $t$ . To ensure $\mathbb{1}(r_n) = 1$ when all other indicators are zeros, we set $\mathrm{x_{gt} = x_{r_n}}$ so that $\mathbb{1}\left(\| \mathrm{x_{r_n}x_{r_n}^T - \mathrm{x_{gt}x_{gt}^T}\|^2 < t\right)\equiv 1$ . Meanwhile, we relax the indicator function to sigmoid when computing gradients and update the threshold $t$ via gradient descent. Since the output of indicator changes with different input feature $\mathbf{X}$ , for better training convergence, we get inspired from batch normalization [20] and use the exponential moving average of affinity matrices in computing Eqn. (12). After the searching stage, the downsampling ratio is determined by evaluating the following indicators:
+
+$$
+\begin{array}{l} \mathbb {1} \left(r _ {1}\right) = \mathbb {1} \left(\operatorname {E M A} \left(\left\| \mathrm {x} _ {\mathrm {r} _ {1}} \mathrm {x} _ {\mathrm {r} _ {1}} ^ {\mathrm {T}} - \mathrm {x} _ {\mathrm {r} _ {\mathrm {g} t}} \mathrm {x} _ {\mathrm {g} t} ^ {\mathrm {T}} \right\| ^ {2}\right) < t\right), \\ \dots \tag {13} \\ \end{array}
+$$
+
+$$
+\begin{array}{l} \mathbb {1} \left(r _ {n}\right) = \mathbb {1} \left(\operatorname {E M A} \left(\left\| \mathrm {x} _ {\mathrm {r} _ {n}} \mathrm {x} _ {\mathrm {r} _ {n}} ^ {\mathrm {T}} - \mathrm {x} _ {\mathrm {g t}} \mathrm {x} _ {\mathrm {g t}} ^ {\mathrm {T}} \right\| ^ {2}\right) < t\right) \\ \wedge \neg \mathbb {1} (r _ {1}) \wedge \neg \mathbb {1} (r _ {2}) \wedge \dots \wedge \neg \mathbb {1} (r _ {n - 1}). \\ \end{array}
+$$
+
+where $\mathrm{EMA(x)}$ denotes the exponential moving averaged value of $x$ .
+
+From Eqn. (12), one can observe that the output of indicator depends on indicators with smaller downsampling ratio. Based on this finding, we propose to reuse the affinity matrix computed with low-dimensional features (generated with lower downsampling ratios) when computing affinity matrix with high-dimensional features (generated with higher downsampling ratios). Concretely, $\mathbf{x}_{\mathrm{r_i}}$ can be partitioned into $[\mathbf{x}_{\mathrm{r_{i - 1}}},\mathbf{x}_{\mathrm{r_i}\backslash \mathrm{r_{i - 1}}}],i > 1.$ The calculation of affinity matrix using $\mathbf{x}_{\mathrm{r_i}}$ can be decomposed as
+
+$$
+\begin{array}{l} \mathrm {x} _ {\mathrm {r} _ {\mathrm {i}}} \mathrm {x} _ {\mathrm {r} _ {\mathrm {i}}} ^ {\mathrm {T}} = \left[ \begin{array}{l l} \mathrm {x} _ {\mathrm {r} _ {\mathrm {i} - 1}} & \mathrm {x} _ {\mathrm {r} _ {\mathrm {i}} \backslash \mathrm {r} _ {\mathrm {i} - 1}} \end{array} \right] \left[ \begin{array}{l} \mathrm {x} _ {\mathrm {r} _ {\mathrm {i} - 1}} ^ {\mathrm {T}} \\ \mathrm {x} _ {\mathrm {r} _ {\mathrm {i}} \backslash \mathrm {r} _ {\mathrm {i} - 1}} ^ {\mathrm {T}} \end{array} \right] \tag {14} \\ = \mathrm {x} _ {\mathrm {r} _ {\mathrm {i} - 1}} \mathrm {x} _ {\mathrm {r} _ {\mathrm {i} - 1}} ^ {\mathrm {T}} + \mathrm {x} _ {\mathrm {r} _ {\mathrm {i}} \backslash \mathrm {r} _ {\mathrm {i} - 1}} \mathrm {x} _ {\mathrm {r} _ {\mathrm {i}} \backslash \mathrm {r} _ {\mathrm {i} - 1}} ^ {\mathrm {T}}, \\ \end{array}
+$$
+
+where $\mathbf{x}_{\mathrm{r_i - 1}}\mathbf{x}_{\mathrm{r_i - 1}}^{\mathrm{T}}$ is the reusable affinity matrix computed with a smaller downsampling ratio (recall that $r_{i - 1} < r_i$ ). This feature reusing paradigm can largely reduce the search overhead since computing affinity matrices with more choices of downsampling ratios does not incur any additional computation cost. The process of feature reusing is illustrated in Figure 4.
+
+Searching process. We integrate our proposed search algorithm with Single-path NAS [31] and jointly search basic
+
+architectural parameters (following MNASNet [33]) along with the insert locations and downsampling schemes of LightNL blocks. We search downsampling ratios along both spatial and channel dimensions to achieve better compactness. To learn efficient deep learning models, the overall objective function is to minimize both standard classification loss and the model's computation complexity which is related to both the insert locations and the compactness of LightNL blocks:
+
+$$
+\min \mathcal {L} (\mathbf {w}, \mathbf {t}) = C E (\mathbf {w}, \mathbf {t}) + \lambda \cdot \log (C C (\mathbf {w}, \mathbf {t})), \tag {15}
+$$
+
+where $\mathbf{w}$ denotes model weights and $\mathbf{t}$ denotes architectural parameters which can be grouped in two categories: one is from LightNL block including the insert positions and downsampling ratios while the other follows MNas-Net [33] including kernel size, number of channels, etc. $CE(\cdot)$ is the cross-entropy loss and $CC(\cdot)$ is the computation (i.e., FLOPs) cost. We use gradient descent to optimize the above objective function in an end-to-end manner.
+
+# 4. Experiments
+
+We first demonstrate the efficacy and efficiency of LightNL by manually inserting it into lightweight models in Section 4.1. Then we apply the proposed search algorithm to the LightNL blocks in Section 4.2. The evaluation and comparison with state-of-the-art methods are done on ImageNet classification [10].
+
+# 4.1. Manually Designed LightNL Networks
+
+Models. Our experiments are based on MobileNetV2 1.0 [30]. We insert LightNL blocks after the second $1 \times 1$ point-wise convolution layer in every MobileNetV2 block. We use $25\%$ channels to compute the affinity matrix for the sake of low computation cost. Also, if the feature map is larger than $14 \times 14$ , we downsample it along the spatial axis with a stride of 2. We call the transformed model MobileNetV2-LightNL for short. We compare the two models with different depth multipliers, including 0.5, 0.75, 1.0 and 1.4.
+
+Training setup. Following the training schedule in MNasNet [33], we train the models using the synchronous training setup on 32 Tesla-V100-SXM2-16GB GPUs. We use an initial learning rate of 0.016, and a batch size of 4096 (128 images per GPU). The learning rate linearly increases to 0.256 in the first 5 epochs and then is decayed by 0.97 every 2.4 epochs. We use a dropout of 0.2, a weight decay of $1\mathrm{e} - 5$ and Inception image preprocessing [32] of size $224 \times 224$ . Finally, we use exponential moving average on model weights with a momentum of 0.9999. All batch normalization layers use a momentum of 0.99.
+
+ImageNet classification results. We compare the results between the original MobileNetV2 and MobileNetV2-
+
+
+Figure 5. MobileNetV2 vs. MobileNetV2-LightNL. We apply LightNL blocks to MobileNetV2 with different depth multipliers, i.e., 0.5, 0.75, 1.0, 1.4, from left to right respectively. Despite inserting LightNL blocks manually, consistent performance gains can be observed for different MobileNetV2 base models.
+
+| Non-local Module | FLOPs / ΔFLOPs | Acc (%) |
| Operator | Wrapper |
| - | - | 301M | 73.4 |
| Wang et al. [39] | Wang et al. | +6.2G | 75.2 |
| Levi et al. [22] | [39] | +146M | 75.2 |
| Zhu et al. [48] | +107M | - |
| Eqn. (3) | | +119M | 75.2 |
| Eqn. (5) | Wang et al. | +93M | 75.1 |
| Eqn. (7) | [39] | +66M | 75.0 |
| Eqn. (9) | | +38M | 75.0 |
| Eqn. (9) | Eqn. (8) | +15M | 75.0 |
+
+Table 1. Ablation Analysis. We present the comparison of different NL blocks and different variants in our design. The base model is MobileNetV2, which achieves a top-1 accuracy of 73.4 with 301M FLOPs.
+
+| Method | FLOPs (M) | mIoU |
| MobileNetV2 | 301 | 70.6 |
| MobileNetV2-LightNL (ours) | 316 | 72.9 |
+
+Table 2. Comparison of FLOPs and mIoU on PASCAL VOC 2012.
+
+LightNL in Figure 5. We observe consistent performance gain even without tuning the hyper-parameters of LightNL blocks for models with different depth multipliers. For example, when the depth multiplier is 1, the original MobileNetV2 model achieves a top-1 accuracy of $73.4\%$ with 301M FLOPs, while our MobileNetV2-LightNL achieves $75.0\%$ with 316M FLOPs. According to Figure 5, it is unlikely to boost the performance of the MobileNetV2 model to the comparable performance by simply increasing the width to get a 316M FLOPs model. When the depth multiplier is 0.5, LightNL blocks bring a performance gain of $2.2\%$ with a marginal increase in FLOPs (6M).
+
+Ablation study. To diagnose the proposed LightNL block, we present a step-by-step ablation study in Table 1. As shown in the table, every modification preserves the model performance but reduces the computation cost. By comparing with the baseline model, the proposed LightNL block
+
+
+Figure 6. Class Activation Map (CAM) [47] for MobileNetV2 and MobileNetV2-LightNL. The three columns correspond to the ground truth, predictions by MobileNetV2 and predictions by MobileNetV2-LightNL respectively. The proposed LightNL block helps the model attend to image regions with more class-specific discriminative features.
+
+improves ImageNet top-1 accuracy by $1.6\%$ (from $73.4\%$ to $75.0\%$ ), but only increases 15M FLOPs, which is only $5\%$ of the total FLOPs on MobileNetV2. Comparing with the standard NL block, the proposed LightNL block is about $400 \times$ computationally cheaper (6.2G vs. 15M) with comparable performance ( $75.2\%$ vs. $75.0\%$ ). Comparing with Levi et al. [22] which optimized the matrix multiplication with the associative law, the proposed LightNL block is still $10 \times$ computationally cheaper. Compared with a very recent work proposed by Zhu et al. [48] which leverages the pyramid pooling to reduce the complexity, LightNL is around $7 \times$ computationally cheaper.
+
+CAM visualization. In order to illustrate the efficacy of our LightNL, Figure 6 compares the class activation map [47] for the original MobileNetV2 and MobileNetV2-LightNL. We see that LightNL is capable of helping the model to focus on more relevant regions while it is much computationally cheaper than the conventional counterparts as analyzed above. For example, at the middle top of Figure 6, the model without the LightNL blocks focus on only a part of the sewing machine. When LightNL is applied, the model can "see" the whole machine, leading to more accurate and robust predictions.
+
+PASCAL VOC segmentation results. To demonstrate the generalization ability of our method, we compare the performance of MobileNetV2 and MobileNetV2-LightNL on the PASCAL VOC 2012 semantic segmentation dataset [12]. Following Chen et al. [8], we use the classification model as a drop-in replacement for the backbone feature extractor in the Deeplabv3 [6]. It is cascaded by an Atrous Spatial Pyramid Pooling module (ASPP) [5] with three $3 \times 3$ convolutions with different atrous rates. The modified architectures share the same computation costs as the backbone models due to the low computation cost of LightNL blocks. All models are initialized with ImageNet pre-trained weights and then fine-tuned with the same train-
+
+| Model | #Params | Flops | Top-1 | Top-5 |
| MobileNetV2 [30] | 3.4M | 300M | 72.0 | 91.0 |
| MBV2 (our impl.) | 3.4M | 301M | 73.4 | 91.4 |
| ShuffleNetV2 [25] | 3.5M | 299M | 72.6 | - |
| FBNet-A [40] | 4.3M | 249M | 73.0 | - |
| Proxyless [3] | 4.1M | 320M | 74.6 | 92.2 |
| MnasNet-A1 [33] | 3.9M | 312M | 75.2 | 92.5 |
| MnasNet-A2 | 4.8M | 340M | 75.6 | 92.7 |
| AA-MnasNet-A1 [2] | 4.1M | 350M | 75.7 | 92.6 |
| MobileNetV3-L | 5.4M | 217M | 75.2 | - |
| MixNet-S [35] | 4.1M | 256M | 75.8 | 92.8 |
| AutoNL-S (ours) | 4.4M | 267M | 76.5 | 93.1 |
| FBNet-C [40] | 5.5M | 375M | 74.9 | - |
| Proxyless (GPU) [3] | - | 465M | 75.1 | 92.5 |
| SinglePath [31] | 4.4M | 334M | 75.0 | 92.2 |
| SinglePath (our impl.) | 4.4M | 334M | 74.7 | 92.2 |
| FairNAS-A [9] | 4.6M | 388M | 75.3 | 92.4 |
| EfficientNet-B0 [34] | 5.3M | 388M | 76.3 | 93.2 |
| SCARLET-A [9] | 6.7M | 365M | 76.9 | 93.4 |
| MBV3-L (1.25x) [16] | 7.5M | 356M | 76.6 | - |
| MixNet-M [35] | 5.0M | 360M | 77.0 | 93.3 |
| AutoNL-L (ours) | 5.6M | 353M | 77.7 | 93.7 |
+
+Table 3. Comparison with the state-of-the-art models on ImageNet 2012 Val set.
+
+ing protocol in [5]. It should be emphasized here that the focus of this part is to assess the efficacy of the proposed LightNL while keeping other factors fixed. It is notable that we do not adopt complex training techniques such as multiscale and left-right flipped inputs, which may lead to better performance. The results are shown in Table 2, LightNL blocks bring a performance gain of 2.3 in mIoU with a minor increase in FLOPs. The results indicate the proposed LightNL blocks are well suitable for other tasks such as semantic segmentation.
+
+# 4.2.AutoNL
+
+We apply the proposed neural architecture search algorithm to search for an optimal configuration of LightNL blocks. Specifically, we have five LightNL candidates for
+
+
+Figure 7. The searched architecture of AutoNL-L. C and S denote channel downsampling ratio and the stride of spatial downsampling respectively. We use different colors to denote the kernel size (K) of the depthwise convolution and use height to denote the expansion rate (E) of the block. We use the round corner to denote adding SE [18] to the MobileNetV2 block.
+
+each potential insert location, i.e., sampling $25\%$ or $12.5\%$ channels to compute affinity matrix, sampling along spatial dimensions with stride 1 or 2, inserting a LightNL block at the current position or not. Note that it is easy to enlarge the search space by including other LightNL blocks with more hyper-parameters. In addition, similar to recent work [33, 40, 3, 31], we also search for optimal kernel sizes, optimal expansion ratios and optimal SE ratios with MobileNetV2 block [30] as the building block.
+
+We directly search on the ImageNet training set and use a computation cost loss and the cross-entropy loss as guidance, both of which are differentiable thanks to the relaxations of the indicator functions during the backpropagation process. It takes 8 epochs (about 32 GPU hours) for the search process to converge.
+
+Performance on classification. We obtain two models using the proposed neural architecture search algorithm; we denote the large one as AutoNL-L and the small one as AutoNL-S in Table 3. The architecture of AutoNL-L is presented in Figure 7.
+
+Table 3 shows that AutoNL outperforms all the latest mobile CNNs. Comparing to the handcrafted models, AutoNL-S improves the top-1 accuracy by $4.5\%$ over MobileNetV2 [30] and $3.9\%$ over ShuffleNetV2 [25] while saving about $10\%$ FLOPs. Besides, AutoNL achieves better results than the latest models from NAS approaches. For example, compared to EfficientNet-B0, AutoNL-L improves the top-1 accuracy by $1.4\%$ while saving about $10\%$ FLOPs. Our models also achieve better performance than the latest MobileNetV3 [16], which is developed with several manual optimizations in addition to architecture search.
+
+AutoNL-L also surpasses the state-of-the-art NL method (i.e., AA-MnasNet-A1) by $2\%$ with comparable FLOPs. Even AutoNL-S improves accuracy by $0.8\%$ while saving $25\%$ FLOPs. We also compare with MixNet, which is a very recent state-of-the-art model under mobile settings, both AutoNL-L and AutoNL-S achieve $0.7\%$ improvement with comparable FLOPs but with much less search time (32 GPU hours vs. 91,000 GPU hours [40], $2,800 \times$ faster).
+
+We also search for models under different combinations
+
+
+Figure 8. Performance comparison on different input resolutions and depth multipliers under extremely low FLOPs. For MobileNetV2 [30], FBNet [40] and our searched models, the tuples of (input resolution, depth multiplier) are (96,0.35), (128,0.5), (192,0.5) and (128,1.0) respectively from left to right. For MNasNet [33], we show the result of 128 input resolution with 1.0 depth multiplier.
+
+of input resolutions and channel sizes under extremely low FLOPs. The results are summarized in Figure 8. AutoNL achieves consistent improvement over MobileNetV2, FBNet, and MNasNet. For example, when the input resolution is 192 and the depth multiplier is 0.5, our model achieves $69.6\%$ accuracy, outperforming MobileNetV2 by $5.7\%$ and FBNet by $3.7\%$ .
+
+# 5. Conclusion
+
+As an important building block for various vision applications, NL blocks under mobile settings remain underexplored due to their heavy computation overhead. To our best knowledge, AutoNL is the first method to explore the usage of NL blocks for general mobile networks. Specifically, we design a LightNL block to enable highly efficient context modeling in mobile settings. We then propose a neural architecture search algorithm to optimize the configuration of LightNL blocks. Our method significantly outperforms prior arts with $77.7\%$ top-1 accuracy on ImageNet under a typical mobile setting (350M FLOPs).
+
+Acknowledgements This work was partially supported by ONR N00014-15-1-2356.
+
+# References
+
+[1] Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In ICLR, 2015. 2
+[2] Irwan Bello, Barret Zoph, Ashish Vaswani, Jonathon Shlens, and Quoc V Le. Attention augmented convolutional networks. arXiv preprint arXiv:1904.09925, 2019. 1, 2, 7
+[3] Han Cai, Ligeng Zhu, and Song Han. Proxylessnas: Direct neural architecture search on target task and hardware. In ICLR, 2019. 2, 7, 8
+[4] Yue Cao, Jiarui Xu, Stephen Lin, Fangyun Wei, and Han Hu. Gcnet: Non-local networks meet squeeze-excitation networks and beyond. arXiv preprint arXiv:1904.11492, 2019. 1, 2
+[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. TPAMI, 40(4):834-848, 2017. 7
+[6] Liang-Chieh Chen, George Papandreou, Florian Schroff, and Hartwig Adam. Rethinking atrous convolution for semantic image segmentation. arXiv preprint arXiv:1706.05587, 2017. 7
+[7] Yunpeng Chen, Yannis Kalantidis, Jianshu Li, Shuicheng Yan, and Jiashi Feng. A^2-nets: Double attention networks. In NeurIPS, pages 352-361, 2018. 1, 2
+[8] Yukang Chen, Gaofeng Meng, Qian Zhang, Shiming Xiang, Chang Huang, Lisen Mu, and Xinggang Wang. Renas: Reinforced evolutionary neural architecture search. In CVPR, pages 4787-4796, 2019. 7
+[9] Xiangxiang Chu, Bo Zhang, Jixiang Li, Qingyuan Li, and Ruijun Xu. Scarletnas: Bridging the gap between scalability and fairness in neural architecture search. CoRR, abs/1908.06022, 2019. 2, 7
+[10] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, 2009. 6
+[11] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: pre-training of deep bidirectional transformers for language understanding. In NAACL, pages 4171–4186, 2019. 2
+[12] 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, 111(1):98-136, 2015. 7
+[13] Golnaz Ghiasi, Tsung-Yi Lin, and Quoc V Le. Nas-fpn: Learning scalable feature pyramid architecture for object detection. In CVPR, pages 7036-7045, 2019. 2
+[14] 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. CoRR, abs/1904.00420, 2019. 2
+[15] Kurt Hornik, Maxwell Stinchcombe, and Halbert White. Multilayer feedforward networks are universal approximators. Neural networks, 2(5):359-366, 1989. 3
+[16] 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. arXiv preprint arXiv:1905.02244, 2019. 2, 7, 8
+[17] Andrew G Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andretto, and Hartwig Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. arXiv preprint arXiv:1704.04861, 2017. 2, 4
+[18] Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In CVPR, pages 7132-7141, 2018. 2, 8
+[19] Gao Huang, Shichen Liu, Laurens van der Maaten, and Kilian Q Weinberger. Condensenet: An efficient densenet using learned group convolutions. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 2
+[20] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, 2015. 5
+[21] Qing Jin, Linjie Yang, and Zhenyu Liao. Adabits: Neural network quantization with adaptive bit-widths. arXiv preprint arXiv:1912.09666, 2019. 2
+[22] Hila Levi and Shimon Ullman. Efficient coarse-to-fine nonlocal module for the detection of small objects. arXiv preprint arXiv:1811.12152, 2018. 1, 3, 6, 7
+[23] 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, pages 82–92, 2019. 2
+[24] Hanxiao Liu, Karen Simonyan, and Yiming Yang. DARTS: Differentiable architecture search. In ICLR, 2019. 2
+[25] Ningning Ma, Xiangyu Zhang, Hai-Tao Zheng, and Jian Sun. Shufflenet v2: Practical guidelines for efficient cnn architecture design. In ECCV, 2018. 2, 7, 8
+[26] Jieru Mei, Yingwei Li, Xiaochen Lian, Xiaojie Jin, Linjie Yang, Alan Yuille, and Jianchao Yang. Atomnas: Fine-grained end-to-end neural architecture search. In ICLR, 2020. 2
+[27] Jongchan Park, Sanghyun Woo, Joon-Young Lee, and In So Kweon. BAM: bottleneck attention module. In BMVC, page 147, 2018. 2
+[28] Hieu Pham, Melody Y. Guan, Barret Zoph, Quoc V. Le, and Jeff Dean. Efficient neural architecture search via parameter sharing. In ICML, pages 4092-4101, 2018. 2
+[29] Esteban Real, Alok Aggarwal, Yanping Huang, and Quoc V. Le. Regularized evolution for image classifier architecture search. In AAAI 2019, pages 4780-4789, 2019. 2
+[30] Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zh-moginov, and Liang-Chieh Chen. Mobilenetv2: Inverted residuals and linear bottlenecks. In CVPR, 2018. 2, 6, 7, 8
+[31] Dimitrios Stamoulis, Ruizhou Ding, Di Wang, Dimitrios Lymberopoulos, Bodhi Priyantha, Jie Liu, and Diana Marculescu. Single-path nas: Designing hardware-efficient convnets in less than 4 hours. arXiv preprint arXiv:1904.02877, 2019. 2, 4, 5, 7, 8
+[32] Christian Szegedy, Sergey Ioffe, Vincent Vanhoucke, and Alexander A Alemi. Inception-v4, inception-resnet and the impact of residual connections on learning. In AAAI, 2017. 6
+
+[33] Mingxing Tan, Bo Chen, Ruoming Pang, Vijay Vasudevan, Mark Sandler, Andrew Howard, and Quoc V Le. Mnasnet: Platform-aware neural architecture search for mobile. In CVPR, 2019. 2, 6, 7, 8
+[34] Mingxing Tan and Quoc Le. Efficientnet: Rethinking model scaling for convolutional neural networks. In ICML, pages 6105-6114, 2019. 2, 7
+[35] Mingxing Tan and Quoc V Le. Mixnet: Mixed depthwise convolutional kernels. In BMVC, 2019. 2, 7
+[36] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NeurIPS, pages 5998-6008, 2017. 2
+[37] Fei Wang, Mengqing Jiang, Chen Qian, Shuo Yang, Cheng Li, Honggang Zhang, Xiaogang Wang, and Xiaou Tang. Residual attention network for image classification. In CVPR, pages 6450-6458, 2017. 2
+[38] Huiyu Wang, Yukun Zhu, Bradley Green, Hartwig Adam, Alan Yuille, and Liang-Chieh Chen. Axial-deeplab: Standalone axial-attention for panoptic segmentation. arXiv preprint arXiv:2003.07853, 2020. 2
+[39] Xiaolong Wang, Ross Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. In CVPR, pages 7794-7803, 2018. 1, 2, 3, 4, 6
+[40] Bichen Wu, Xiaoliang Dai, Peizhao Zhang, Yanghan Wang, Fei Sun, Yiming Wu, Yuandong Tian, Peter Vajda, Yangqing Jia, and Kurt Keutzer. Fbnet: Hardware-aware efficient convnet design via differentiable neural architecture search. In CVPR, pages 10734–10742, 2019. 2, 7, 8
+[41] Cihang Xie, Yuxin Wu, Laurens van der Maaten, Alan L Yuille, and Kaiming He. Feature denoising for improving adversarial robustness. In CVPR, 2019. 1
+[42] Guotian Xie, Jingdong Wang, Ting Zhang, Jianhuang Lai, Richang Hong, and Guo-Jun Qi. IGCV2: interleaved structured sparse convolutional neural networks. In CVPR, 2018. 2
+[43] Qihang Yu, Dong Yang, Holger Roth, Yutong Bai, Yixiao Zhang, Alan L Yuille, and Daguang Xu. C2fnas: Coarse-to-fine neural architecture search for 3d medical image segmentation. In CVPR, 2020. 2
+[44] Kaiyu Yue, Ming Sun, Yuchen Yuan, Feng Zhou, Errui Ding, and Fuxin Xu. Compact generalized non-local network. In NeurIPS, pages 6510-6519, 2018. 1, 2
+[45] Xiangyu Zhang, Xinyu Zhou, Mengxiao Lin, and Jian Sun. Shufflenet: An extremely efficient convolutional neural network for mobile devices. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6848-6856, 2018. 2
+[46] Hengshuang Zhao, Yi Zhang, Shu Liu, Jianping Shi, Chen Change Loy, Dahua Lin, and Jiaya Jia. Psanet: Point-wise spatial attention network for scene parsing. In ECCV, pages 267-283, 2018. 1
+[47] Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In CVPR, pages 2921-2929, 2016. 7
+[48] Zhen Zhu, Mengde Xu, Song Bai, Tengteng Huang, and Xiang Bai. Asymmetric non-local neural networks for semantic segmentation. In ICCV, pages 593-602, 2019. 6, 7
+
+[49] Barret Zoph and Quoc V. Le. Neural architecture search with reinforcement learning. In ICLR, 2017. 2
\ No newline at end of file
diff --git a/neuralarchitecturesearchforlightweightnonlocalnetworks/images.zip b/neuralarchitecturesearchforlightweightnonlocalnetworks/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..eb3b614d2b6f9e677f162012611c37aeda87e599
--- /dev/null
+++ b/neuralarchitecturesearchforlightweightnonlocalnetworks/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2d74a4e4ccb6b658e6d19beade297277b5a5a7c082268ad011eea875ce3e661d
+size 493531
diff --git a/neuralarchitecturesearchforlightweightnonlocalnetworks/layout.json b/neuralarchitecturesearchforlightweightnonlocalnetworks/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..2ea604328cb748a482f538ba3884695f25c961da
--- /dev/null
+++ b/neuralarchitecturesearchforlightweightnonlocalnetworks/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b2a9e26500c7db7f248b7e3c6f3c6b9800aedaee4079149ccb87d25c5023a27d
+size 430827
diff --git a/neuralblinddeconvolutionusingdeeppriors/8fe02b33-b908-41a3-9c60-4938c6c0a893_content_list.json b/neuralblinddeconvolutionusingdeeppriors/8fe02b33-b908-41a3-9c60-4938c6c0a893_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..fa937c1eecab4149e6e251cb22c9aef9315def36
--- /dev/null
+++ b/neuralblinddeconvolutionusingdeeppriors/8fe02b33-b908-41a3-9c60-4938c6c0a893_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6dc526183279ac195c518c9751f11bef66e7771b302f41ad8f5a31504bb99d81
+size 85200
diff --git a/neuralblinddeconvolutionusingdeeppriors/8fe02b33-b908-41a3-9c60-4938c6c0a893_model.json b/neuralblinddeconvolutionusingdeeppriors/8fe02b33-b908-41a3-9c60-4938c6c0a893_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..23f3ee659d7f4d20a4a93205f8b027ba9c0cfff2
--- /dev/null
+++ b/neuralblinddeconvolutionusingdeeppriors/8fe02b33-b908-41a3-9c60-4938c6c0a893_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:efe09a119ce42487aab8feca867aef82f51c41b571356181c4e35dfa3c676d72
+size 108867
diff --git a/neuralblinddeconvolutionusingdeeppriors/8fe02b33-b908-41a3-9c60-4938c6c0a893_origin.pdf b/neuralblinddeconvolutionusingdeeppriors/8fe02b33-b908-41a3-9c60-4938c6c0a893_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..922d422042a96c68a24334218a1c892f1aacc5ac
--- /dev/null
+++ b/neuralblinddeconvolutionusingdeeppriors/8fe02b33-b908-41a3-9c60-4938c6c0a893_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:162f1804d7cd8b3527748f28be48c8c51bee432ad8ad67d8833391496e18228f
+size 3616450
diff --git a/neuralblinddeconvolutionusingdeeppriors/full.md b/neuralblinddeconvolutionusingdeeppriors/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..1ac3c81f587c818b656df9b765788acf936d4b70
--- /dev/null
+++ b/neuralblinddeconvolutionusingdeeppriors/full.md
@@ -0,0 +1,405 @@
+# Neural Blind Deconvolution Using Deep Priors
+
+Dongwei Ren $^{1}$ , Kai Zhang $^{2}$ , Qilong Wang $^{1}$ , Qinghua Hu $^{1(\boxtimes)}$ , and Wangmeng Zuo $^{2}$
+
+$^{1}$ Tianjin Key Lab of Machine Learning, College of Intelligence and Computing, Tianjin University, Tianjin, China
+
+$^{2}$ School of Computer Science and Technology, Harbin Institute of Technology, Harbin, China {csdren, huqinghua} $@$ tju.edu.cn
+
+# Abstract
+
+Blind deconvolution is a classical yet challenging low-level vision problem with many real-world applications. Traditional maximum a posteriori (MAP) based methods rely heavily on fixed and handcrafted priors that certainly are insufficient in characterizing clean images and blur kernels, and usually adopt specially designed alternating minimization to avoid trivial solution. In contrast, existing deep motion deblurring networks learn from massive training images the mapping to clean image or blur kernel, but are limited in handling various complex and large size blur kernels. To connect MAP and deep models, we in this paper present two generative networks for respectively modeling the deep priors of clean image and blur kernel, and propose an unconstrained neural optimization solution to blind deconvolution. In particular, we adopt an asymmetric Autoencoder with skip connections for generating latent clean image, and a fully-connected network (FCN) for generating blur kernel. Moreover, the SoftMax nonlinearity is applied to the output layer of FCN to meet the nonnegative and equality constraints. The process of neural optimization can be explained as a kind of "zero-shot" self-supervised learning of the generative networks, and thus our proposed method is dubbed SelfDeblur. Experimental results show that our SelfDeblur can achieve notable quantitative gains as well as more visually plausible deblurring results in comparison to state-of-the-art blind deconvolution methods on benchmark datasets and real-world blurry images. The source code is publicly available at https://github.com/csdwren/SelfDeblur.
+
+# 1. Introduction
+
+Camera shake during exposure inevitably yields blurry images and is a long-standing annoying issue in digital pho
+
+
+
+
+
+
+Blurry image
+Pan-L0 [27]
+
+
+Xu & Jia [48]
+Sun et al. [41]
+
+
+Pan-DCP [29]
+Figure 1: Visual quality comparison on a severe blurry image.
+
+
+SelfDeblur
+
+tography. The removal of distortion from a blurry image, i.e., image deblurring, is a classical ill-posed problem in low-level vision and has received considerable research attention [2-4,10,19,28,29,32,56]. When the blur kernel is spatially invariant, it is also known as blind deconvolution, where the blurry image $\mathbf{y}$ can be formulated as,
+
+$$
+\mathbf {y} = \mathbf {k} \otimes \mathbf {x} + \mathbf {n}, \tag {1}
+$$
+
+where $\otimes$ denotes the 2D convolution operator, $\mathbf{x}$ is the latent clean image, $\mathbf{k}$ is the blur kernel, and $\mathbf{n}$ is the additive white Gaussian noise (AWGN) with noise level $\sigma$ . It can be seen that blind deconvolution should estimate both $\mathbf{k}$ and $\mathbf{x}$ from a blurry image $\mathbf{y}$ , making it remain a very challenging problem after decades of studies.
+
+Most traditional blind deconvolution methods are based
+
+on the Maximum a Posterior (MAP) framework,
+
+$$
+\begin{array}{l} (\mathbf {k}, \mathbf {x}) = \operatorname * {a r g m a x} _ {\mathbf {x}, \mathbf {k}} \Pr \left(\mathbf {k}, \mathbf {x} | \mathbf {y}\right), \\ = \arg \max _ {\mathbf {x}, \mathbf {k}} \Pr (\mathbf {y} | \mathbf {k}, \mathbf {x}) \Pr (\mathbf {x}) \Pr (\mathbf {k}), \tag {2} \\ \end{array}
+$$
+
+where $\operatorname{Pr}(\mathbf{y}|\mathbf{k},\mathbf{x})$ is the likelihood corresponding to the fidelity term, and $\operatorname{Pr}(\mathbf{x})$ and $\operatorname{Pr}(\mathbf{k})$ model the priors of clean image and blur kernel, respectively. Although many priors have been suggested for $\mathbf{x}$ [2, 15, 27, 56] and $\mathbf{k}$ [19, 22, 24, 29, 29, 34, 41, 50, 56], they generally are handcrafted and certainly are insufficient in characterizing clean images and blur kernels. Furthermore, the non-convexity of MAP based models also increases the difficulty of optimization. Levin et al. [19] reveal that MAP-based methods may converge to trivial solution of delta kernel. Perrone and Favaro [32] show that the success of existing methods can be attributed to some optimization details, e.g., projected alternating minimization and delayed normalization of $\mathbf{k}$ .
+
+Motivated by the unprecedented success of deep learning in low-level vision [11, 12, 23, 42, 52], some attempts have also been made to solve blind deconvolution using deep convolutional neural networks (CNNs). Given the training set, deep CNNs can either be used to extract features to facilitate blur kernel estimation [1, 38], or be deployed to learn the direct mapping to clean image for motion deblurring [7, 25, 43, 51]. However, these methods do not succeed in handling various complex and large size blur kernels in blind deconvolution. Recently, Ulyanov et al. [45] suggest the deep image prior (DIP) framework, which adopts the structure of a DIP generator network to capture low-level image statistics and shows powerful ability in image denoising, super-resolution, inpainting, etc. Subsequently, Gandelsman et al. [6] combine multiple DIPs (i.e., Double-DIP) for multi-task layer decomposition such as image dehazing and transparency separation. However, Double-DIP cannot be directly applied to solve blind deconvolution due to that the DIP network is designed to generate natural images and is limited to capture the prior of blur kernels.
+
+In this paper, we propose a novel neural optimization solution to blind deconvolution. Motivated by the DIP network [45], an image generator network $\mathcal{G}_x$ , i.e., an asymmetric Autoencoder with skip connections, is deployed to capture the statistics of latent clean image. Nonetheless, image generator network cannot well characterize the prior on blur kernel. Instead, we adopt a fully-connected network (FCN) $\mathcal{G}_k$ to model the prior of blur kernel. Furthermore, the SoftMax nonlinearity is deployed to the output layer of $\mathcal{G}_k$ , and the non-negative and equality constraints on blur kernel can then be naturally satisfied. By fixing the network structures $(\mathcal{G}_k$ and $\mathcal{G}_x)$ and inputs $(\mathbf{z}_k$ and $\mathbf{z}_x)$ sampled from uniform distribution, blind deconvolution is thus formulated as an unconstrained neural optimization on network parameters of $\mathcal{G}_k$ and $\mathcal{G}_x$ . As illustrated in Fig. 2, given a blurry image $\mathbf{y}$ , the optimization process can also be explained as
+
+a kind of "zero-shot" self-supervised learning [39] of $\mathcal{G}_k$ and $\mathcal{G}_x$ , and our proposed method is dubbed SelfDeblur. Even though SelfDeblur can be optimized with either alternating optimization or joint optimization, our empirical study shows that the latter performs better in most cases.
+
+Experiments are conducted on two widely used benchmarks [18, 19] as well as real-world blurry images to evaluate our SelfDeblur. Fig. 1 shows the deblurring results on a severe real-world blurry image. While the competing methods either fail to estimate large size blur kernels or suffer from ringing effects, our SelfDeblur succeed in estimating the blur kernel and generating visually favorable deblurring image. In comparison to the state-of-the-art methods, our SelfDeblur can achieve notable quantitative performance gains and performs favorably in generating visually plausible deblurring results. It is worth noting that our SelfDeblur can both estimate blur kernel and generate latent clean image with satisfying visual quality, making the subsequent non-blind deconvolution not a compulsory choice.
+
+Our contributions are summarized as follows:
+
+- A neural blind deconvolution method, i.e., SelfDeblur, is proposed, where DIP and FCN are respectively introduced to capture the priors of clean image and blur kernel. And the SoftMax nonlinearity is applied to the output layer of FCN to meet the non-negative and equality constraints.
+- The joint optimization algorithm is suggested to solve the unconstrained neural blind deconvolution model for both estimating blur kernel and generating latent clean image, making the non-blind deconvolution not a compulsory choice for our SelfDeblur.
+- Extensive experiments show that our SelfDeblur performs favorably against the existing MAP-based methods in terms of quantitative and qualitative evaluation. To our best knowledge, SelfDeblur makes the first attempt of applying deep learning to yield state-of-the-art blind deconvolution performance.
+
+# 2. Related Work
+
+In this section, we briefly survey the relevant works including optimization-based blind deconvolution and deep learning based blind deblurring methods.
+
+# 2.1. Optimization-based Blind Deconvolution
+
+Traditional optimization-based blind deconvolution methods can be further categorized into two groups, i.e., Variational Bayes (VB)-based and MAP-based methods. VB-based method [20] is theoretically promising, but is with heavy computational cost. As for the MAP-based methods, many priors have been suggested for modeling clean images and blur kernels. In the seminal work of [2], Chan et al. introduce the total variation (TV) regularization
+
+
+Figure 2: Illustration of our SelfDeblur method. The generative networks $\mathcal{G}_x$ and $\mathcal{G}_k$ are deployed to respectively capture the deep priors of blur kernel and latent clean image, and are trained using only the input blurry image. In particular, $\mathcal{G}_x$ is an asymmetric Autoencoder with skip connections, and the Sigmoid nonlinearity is adopted to the output layer for constraining the pixels in $\mathbf{x}$ in the range [0, 1]. $\mathcal{G}_k$ adopts a fully-connected network, where the SoftMax nonlinearity is applied to the output layer for meeting the non-negative and equality constraints, and the 1D output of is reshaped to 2D blur kernel.
+
+to model latent clean image in blind deconvolution, and motivates several variants based on gradient-based priors, e.g., $\ell_0$ -norm [27] and $\ell_p$ -norm [56]. Other specifically designed regularizations, e.g., $\ell_1 / \ell_2$ -norm [15], patch-based prior [24, 41], low-rank prior [34] and dark channel prior [29, 50] have also been proposed to identify and preserve salient edges for benefiting blur kernel estimation. Recently, a discriminative prior [21] is presented to distinguish the clean image from a blurry one, but still heavily relies on $\ell_0$ -norm regularizer for attaining state-of-the-art performance. As for $\operatorname{Pr}(\mathbf{k})$ , gradient sparsity priors [19, 29, 56] and spectral prior [22] are usually adopted. In order to solve the MAP-based model, several tricks have been introduced to the projected alternating minimization algorithm, including delayed normalization of blur kernel [32], multi-scale implementation [15] and time-varying parameters [56].
+
+After blur kernel estimation, non-blind deconvolution is required to recover the latent clean image with fine texture details [15, 22, 27, 29, 41, 49]. Thus, the priors should favor natural images, e.g., hyper-Laplacian [14], GMM [55], non-local similarity [5], e.g., RTF [37], CSF [36] and CNN [16, 53], which are quite different from those used in blur kernel estimation. Our SelfDeblur can be regarded as a special MAP-based method, but two generative networks, i.e., DIP and FCN, are adopted to respectively capture the deep priors of clean image and blur kernel. Moreover, the joint optimization algorithm is effective to estimate blur kernel and generate clean image, making non-blind deconvolution not a compulsory choice for SelfDeblur.
+
+# 2.2. Deep Learning in Image Deblurring
+
+Many studies have been given to apply deep learning (DL) to blind deblurring. For example, DL can be used to help the learning of mapping to blur kernel. By imitating the alternating minimization steps in optimization-based methods, Schuler et al. [38] design the deep network architectures for blur kernel estimation. By studying the spectral property of blurry images, deep CNN is suggested to predict the Fourier coefficients [1], which can then be projected to
+
+estimate blur kernel. In [40], CNN is used to predict the parametric blur kernels for motion blurry images.
+
+For dynamic scene deblurring, deep CNNs have been developed to learn the direct mapping to latent clean image [17,25,40,43,51]. Motivated by the multi-scale strategy in blind deconvolution, multi-scale CNN [25] and scale-recurrent network [43] are proposed to directly estimate the latent clean image from the blurry image. The adversarial loss is also introduced for better recovery of texture details in motion deblurring [17]. Besides, by exploiting the temporal information between adjacent frames, deep networks have also been applied to video motion deblurring [9,26,30]. However, due to the severe ill-posedness caused by large size and complex blur kernels, existing DL-based methods still cannot outperform traditional optimization-based ones for blind deconvolution.
+
+Recently, DIP [45] and Double-DIP [6] have been introduced to capture image statistics, and have been deployed to many low-level vision tasks such as super-resolution, inpainting, dehazing, transparency separation, etc. Nonetheless, the DIP network is limited in capturing the prior of blur kernels, and Double-DIP still performs poorly for blind deconvolution. To the best of our knowledge, our SelfDeblur makes the first attempt of applying deep networks to yield state-of-the-art blind deconvolution performance.
+
+# 3. Proposed Method
+
+In this section, we first introduce the general formulation of MAP-based blind deconvolution, and then present our proposed neural blind deconvolution model as well as the joint optimization algorithm.
+
+# 3.1. MAP-based Blind Deconvolution Formulation
+
+According to Eqn. (1), we define the fidelity term as $-\log (\operatorname*{Pr}(\mathbf{y}|\mathbf{k},\mathbf{x})) = \| \mathbf{k}\otimes \mathbf{x} - \mathbf{y}\| ^2$ . And we further introduce two regularization terms $-\log (\operatorname*{Pr}(\mathbf{x})) = \phi (\mathbf{x})$ and $-\log (\operatorname*{Pr}(\mathbf{k})) = \varphi (\mathbf{k})$ for modeling the priors on latent clean image and blur kernel, respectively. The MAP-based blind deconvolution model in Eqn. (2) can then be reformu
+
+lated as,
+
+$$
+\begin{array}{l} (\mathbf {x}, \mathbf {k}) = \arg \min _ {(\mathbf {x}, \mathbf {k})} \| \mathbf {k} \otimes \mathbf {x} - \mathbf {y} \| ^ {2} + \lambda \phi (\mathbf {x}) + \tau \varphi (\mathbf {k}) \tag {3} \\ s. t. 0 \leq x _ {i} \leq 1, \forall i, k _ {j} \geq 0, \sum_ {j} k _ {j} = 1, \forall j, \\ \end{array}
+$$
+
+where $\lambda$ and $\tau$ are trade-off regularization parameters. Besides the two regularization terms, we further introduce the non-negative and equality constraints for blur kernel $\mathbf{k}$ [29, 32, 41, 56], and the pixels in $\mathbf{x}$ are also constrained to the range [0, 1].
+
+Under the MAP-based framework, many fixed and handcrafted regularization terms have been presented for latent clean image and blur kernel [22, 24, 29, 29, 34, 41, 50, 56]. To solve the model in Eqn. (3), projected alternating minimization is generally adopted, but several optimization details, e.g., delayed normalization [32] and multi-scale implementation [15], are also crucial to the success of blind deconvolution. Moreover, once the estimated blur kernel $\hat{\mathbf{k}}$ is obtained by solving Eqn. (3), another non-blind deconvolution usually is required to generate final deblurring result,
+
+$$
+\mathbf {x} = \arg \min _ {\mathbf {x}} \| \hat {\mathbf {k}} \otimes \mathbf {x} - \mathbf {y} \| ^ {2} + \lambda \mathcal {R} (\mathbf {x}), \tag {4}
+$$
+
+where $\mathcal{R}(\mathbf{x})$ is a regularizer to capture natural image statistics and is quite different from $\phi (\mathbf{x})$ .
+
+# 3.2. Neural Blind Deconvolution
+
+Motivated by the success of DIP [45] and Double-DIP [6], we suggest the neural blind deconvolution model by adopting generative networks $\mathcal{G}_x$ and $\mathcal{G}_k$ to capture the priors of $\mathbf{x}$ and $\mathbf{k}$ . By substituting $\mathbf{x}$ and $\mathbf{k}$ with $\mathcal{G}_x$ and $\mathcal{G}_k$ and removing the regularization terms $\phi (\mathbf{x})$ and $\varphi (\mathbf{k})$ , the neural blind deconvolution can be formulated as,
+
+$$
+\min _ {\left(\mathcal {G} _ {x}, \mathcal {G} _ {k}\right)} \left\| \mathcal {G} _ {k} \left(\mathbf {z} _ {k}\right) \otimes \mathcal {G} _ {x} \left(\mathbf {z} _ {x}\right) - \mathbf {y} \right\| ^ {2}
+$$
+
+$$
+s. t. 0 \leq \left(\mathcal {G} _ {x} \left(\mathbf {z} _ {x}\right)\right) _ {i} \leq 1, \forall i, \tag {5}
+$$
+
+$$
+\left(\mathcal {G} _ {k} \left(\mathbf {z} _ {k}\right)\right) _ {j} \geq 0, \sum_ {j} \left(\mathcal {G} _ {k} \left(\mathbf {z} _ {k}\right)\right) _ {j} = 1, \forall j,
+$$
+
+where $\mathbf{z}_x$ and $\mathbf{z}_k$ are sampled from the uniform distribution, $(\cdot)_i$ and $(\cdot)_j$ denote the $i$ -th and $j$ -th elements. We note that $\mathbf{z}_k$ is 1D vector, and $\mathcal{G}_k(\mathbf{z}_k)$ is reshaped to obtain 2D matrix of blur kernel.
+
+However, there remain several issues to be addressed with neural blind deconvolution. (i) The DIP network [45] is designed to capture low-level image statistics and is limited in capturing the prior of blur kernels. As a result, we empirically find that Double-DIP [6] performs poorly for blind deconvolution (see the results in Sec. 4.1.2). (ii) Due to the non-negative and equality constraints, the resulting model in Eqn. (5) is a constrained neural optimization problem and is difficult to optimize. (iii) Although the generative networks $\mathcal{G}_x$ and $\mathcal{G}_k$ present high impedance to image noise, the denoising performance of DIP heavily relies on the additional averaging over last iterations and different optimization runs [45]. Such heuristic solutions, however,
+
+both bring more computational cost and cannot be directly borrowed to handle blurry and noisy images.
+
+In the following, we present our solution to address the issues (i)&(ii) by designing proper generative networks $\mathcal{G}_x$ and $\mathcal{G}_k$ . As for the issue (iii), we introduce an extra TV regularizer and a regularization parameter to explicitly consider noise level in the neural blind deconvolution model.
+
+Generative Network $\mathcal{G}_x$ . The latent clean images usually contain salient structures and rich textures, which requires the generative network $\mathcal{G}_x$ to have sufficient modeling capacity. Fortunately, since the introduction of generative adversarial network [8], dramatic progress has been made in generating high quality natural images [45]. For modeling $\mathbf{x}$ , we adopt a DIP network, i.e., the asymmetric Autoencoder [35] with skip connections in [45], to serve as $\mathcal{G}_x$ . As shown in Fig. 2, the first 5 layers of encoder are skip connected to the last 5 layers of decoder. Finally, a convolutional output layer is used to generate latent clean image. To meet the range constraint for $\mathbf{x}$ , the Sigmoid nonlinearity is applied to the output layer. Please refer to the supplementary file for more architecture details of $\mathcal{G}_x$ .
+
+Generative Network $\mathcal{G}_k$ . On the one hand, the DIP network [45] is designed to capture the statistics of natural image but performs limited in modeling the prior of blur kernel. On the other hand, blur kernel $\mathbf{k}$ generally contains much fewer information than latent clean image $\mathbf{x}$ , and can be well generated by simpler generative network. Thus, we simply adopt a fully-connected network (FCN) to serve as $\mathcal{G}_k$ . As shown in Fig. 2, the FCN $\mathcal{G}_k$ takes a 1D noise $\mathbf{z}_k$ with 200 dimensions as input, and has a hidden layer of 1,000 nodes and an output layer of $K^2$ nodes. To guarantee the non-negative and equality constraints can be always satisfied, the SoftMax nonlinearity is applied to the output layer of $\mathcal{G}_k$ . Finally, the 1D output of $K^2$ entries is reshaped to a 2D $K \times K$ blur kernel. Please refer to Suppl. for more architecture details of $\mathcal{G}_k$ .
+
+Unconstrained Neural Blind Deconvolution with TV Regularization. With the above generative networks $\mathcal{G}_x$ and $\mathcal{G}_k$ , we can formulate neural blind deconvolution into an unconstrained optimization form. However, the resulting model is irrelevant with the noise level, making it perform poorly on blurry images with non-negligible noise. To address this issue, we combine both $\mathcal{G}_x$ and TV regularization to capture image priors, and our neural blind deconvolution model can then be written as,
+
+$$
+\min _ {\mathcal {G} _ {k}, \mathcal {G} _ {x}} \| \mathcal {G} _ {k} (\mathbf {z} _ {k}) \otimes \mathcal {G} _ {x} (\mathbf {z} _ {x}) - \mathbf {y} \| ^ {2} + \lambda \operatorname {T V} \left(\mathcal {G} _ {x} (\mathbf {z} _ {x})\right), \tag {6}
+$$
+
+where $\lambda$ denotes the regularization parameter controlled by noise level $\sigma$ . Albeit the generative network $\mathcal{G}_x$ is more powerful, the incorporation of $\mathcal{G}_x$ and another image prior generally is beneficial to deconvolution performance. Moreover, the introduction of the noise level related regularization parameter $\lambda$ can greatly improve the robustness in handling blurry images with various noise levels. In partic
+
+ular, we empirically set $\lambda = 0.1\times \sigma$ in our implementation, and the noise level $\sigma$ can be estimated using [54].
+
+# 3.3. Optimization Algorithm
+
+The optimization process of Eqn. (6) can be explained as a kind of "zero-shot" self-supervised learning [39], where the generative networks $\mathcal{G}_k$ and $\mathcal{G}_x$ are trained using only a test image (i.e., blurry image $\mathbf{y}$ ) and no ground-truth clean image is available. Thus, our method is dubbed SelfDeblur. In the following, we present two algorithms for SelfDeblur, i.e., alternating optimization and joint optimization.
+
+Alternating Optimization. Analogous to the alternating minimization steps in traditional blind deconvolution [2, 27, 29, 41, 56], the network parameters of $\mathcal{G}_k$ and $\mathcal{G}_x$ can also be optimized in an alternating manner. As summarized in Algorithm 1, the parameters of $\mathcal{G}_k$ are updated via the ADAM [13] by fixing $\mathcal{G}_x$ , and vice versa. In particular, the gradient w.r.t. either $\mathcal{G}_x$ or $\mathcal{G}_k$ can be derived using automatic differentiation [31].
+
+Joint Optimization. In traditional MAP-based framework, alternating minimization allows the use of projection operator to handle non-negative and equality constraints and the modification of optimization details to avoid trivial solution, and thus has been widely adopted. As for our neural blind deconvolution, the model in Eqn. (6) is unconstrained optimization, and the powerful modeling capacity of $\mathcal{G}_k$ and $\mathcal{G}_x$ is beneficial to avoid trivial delta kernel solution. We also note that the unconstrained neural blind deconvolution is highly non-convex, and alternating optimization may get stuck at saddle points [44]. Thus, joint optimization is more preferred than alternating optimization for SelfDeblur. Using the automatic differentiation techniques [31], the gradients w.r.t. $\mathcal{G}_k$ and $\mathcal{G}_x$ can be derived. Algorithm 2 summarizes the joint optimization algorithm, where the parameters of $\mathcal{G}_k$ and $\mathcal{G}_x$ can be jointly updated using the ADAM algorithm. Our empirical study in Sec. 4.1.1 also shows that joint optimization usually converges to better solutions than alternating optimization.
+
+Both alternating optimization and joint optimization algorithms are stopped when reaching $T$ iterations. Then, the estimated blur kernel and latent clean image can be generated using $\mathbf{k} = \mathcal{G}_k^T(\mathbf{z}_k)$ and $\mathbf{x} = \mathcal{G}_x^T(\mathbf{z}_x)$ , respectively. Benefited from the modeling capacity of $\mathcal{G}_x(\mathbf{z}_x)$ , the estimated $\mathbf{x}$ is with visually favorable textures, and it is not a compulsory choice for our SelfDeblur to adopt another non-blind deconvolution method to generate final deblurring result.
+
+# 4. Experimental Results
+
+In this section, ablation study is first conducted to analyze the effect of optimization algorithm and network architecture. Then, our SelfDeblur is evaluated on two benchmark datasets and is compared with the state-of-the-art blind deconvolution methods. Finally, we report the results of SelfDeblur on several real-world blurry images.
+
+Algorithm 1 SelfDeblur (Alternating Optimization)
+Input: Blur image y
+Output: Blur kernel k and clean image x
+1: Sample $\mathbf{z}_x$ and $\mathbf{z}_k$ from uniform distribution with seed 0.
+2: $\mathbf{k} = \mathcal{G}_k^0 (\mathbf{z}_k)$
+3: for $t = 1$ to $T$ do
+4: $\mathbf{x} = \mathcal{G}_x^{t - 1}(\mathbf{z}_x)$
+5: Compute the gradient w.r.t. $\mathcal{G}_k$
+6: Update $\mathcal{G}_k^t$ using the ADAM algorithm [13]
+7: $\mathbf{k} = \mathcal{G}_k^t (\mathbf{z}_k)$
+8: Compute the gradient w.r.t. $\mathcal{G}_x$
+9: Update $\mathcal{G}_x^t$ using the ADAM algorithm [13]
+10: end for
+11: $\mathbf{x} = \mathcal{G}_x^T (\mathbf{z}_x),\mathbf{k} = \mathcal{G}_x^T (\mathbf{z}_k)$
+
+Algorithm 2 SelfDeblur (Joint Optimization)
+Input: Blur image y
+Output: Blur kernel $\mathbf{k}$ and clean image x
+1: Sample $\mathbf{z}_x$ and $\mathbf{z}_k$ from uniform distribution with seed 0.
+2: for $t = 1$ to $T$ do
+3: $\mathbf{k} = \mathcal{G}_k^{t - 1}(\mathbf{z}_k)$
+4: $\mathbf{x} = \mathcal{G}_x^{t - 1}(\mathbf{z}_x)$
+5: Compute the gradients w.r.t. $\mathcal{G}_k$ and $\mathcal{G}_x$
+6: Update $\mathcal{G}_k^t$ and $\mathcal{G}_x^t$ using the ADAM algorithm [13]
+7: end for
+8: $\mathbf{x} = \mathcal{G}_x^T (\mathbf{z}_x),\mathbf{k} = \mathcal{G}_x^T (\mathbf{z}_k)$
+
+Our SelfDeblur is implemented using Pytorch [31]. The experiments are conducted on a PC equipped with one NVIDIA Titan V GPU. Unless specially stated, the experiments follow the same settings, i.e., $T = 5,000$ , and the noises $\mathbf{z}_x$ and $\mathbf{z}_k$ are sampled from the uniform distribution with fixed random seed 0. Following [45], we further perturb $\mathbf{z}_x$ randomly at each iteration. The initial learning rate is set as 0.01 and is decayed by multiplying 0.5 when reaching 2,000, 3,000 and 4,000 iterations.
+
+# 4.1. Ablation Study
+
+Ablation study is conducted on the dataset by Levin et al. [19], which is a popular blind deconvolution benchmark consisting of 4 clean images and 8 blur kernels. Using [54], the average estimated noise level of the blurry images in the dataset is $\sigma \approx 1\times 10^{-5}$ . Thus we simply adopt $\lambda = 1\times 10^{-6}$ on this dataset.
+
+4.1.1 Alternating Optimization vs. Joint Optimization We first evaluate the performance of SelfDeblur using alternating optimization (SelfDeblur-A) and joint optimization (SelfDeblur-J). Table 1 reports the average PSNR and S-SIM values. In terms of quantitative metrics, SelfDeblur-J significantly outperforms SelfDeblur-A, demonstrating the superiority of joint optimization. In the supplementary file, we provide several failure cases of SelfDeblur-A, where
+
+
+Figure 3: Intermediate results of estimated blur kernel and latent clean image at iteration $t = 1,20,100,600,2,000$ and 5,000.
+
+
+
+SelfDeblur-A may converge to delta kernel and worse solution while SelfDeblur-J performs favorably on these cases. Therefore, joint optimization is adopted as the default SelfDeblur method throughout the following experiments.
+
+Table 1: Average PSNR/SSIM comparison of SelfDeblur-A and SelfDeblur-J on the dataset of Levin et al. [19].
+
+| SelfDeblur-A | SelfDeblur-J |
| 30.53 / 0.8748 | 33.07 / 0.9313 |
+
+# 4.1.2 Network Architecture of $\mathcal{G}_k$
+
+In this experiment, we compare the results by considering four kinds of network architectures: (i) SelfDeblur, (ii) Double-DIP [6] (asymmetric Autoencoder with skip connections for both $\mathcal{G}_x$ and $\mathcal{G}_k$ ), (iii) SelfDeblur $_{k-}$ (removing the hidden layer from $\mathcal{G}_k$ ), and (iv) SelfDeblur $_{k+}$ (adding an extra hidden layer for $\mathcal{G}_k$ ). From Table 2 and Fig. 4, SelfDeblur significantly outperforms Double-DIP in estimating blur kernel and latent image. The result indicates that the DIP network is limited to capture the prior of blur kernel, and the simple FCN can be a good choice of $\mathcal{G}_k$ . We further compare SelfDeblur with SelfDeblur $_{k-}$ and SelfDeblur $_{k+}$ . One can see that the FCN without hidden layer (i.e., SelfDeblur $_{k-}$ ) also succeeds in estimating blur kernel and clean image (see Fig. 4), but performs much inferior to SelfDeblur. Moreover, the three-layer FCN (i.e., SelfDeblur $_{k+}$ ) is superior to SelfDeblur $_{k-}$ , but is inferior to SelfDeblur. To sum up, SelfDeblur is a good choice for modeling blur kernel prior.
+
+Table 2: Quantitavie comparison of SelfDeblur variants with different network structures of $\mathcal{G}_k$ .
+
+ | SelfDeblur | SelfDeblurk- | SelfDeblurk+ | Double-DIP |
| PSNR | 33.07 | 28.37 | 30.92 | 21.51 |
| SSIM | 0.9313 | 0.8396 | 0.8889 | 0.5256 |
+
+
+SelfDeblur
+
+
+SelfDeblurk
+
+
+SelfDeblurk+
+Figure 4: Visual comparison of SelfDeblur variants with different network structures of $\mathcal{G}_k$ .
+
+
+Double-DIP
+
+# 4.1.3 Visualization of Intermediate Results
+
+Using an image from the dataset of Levin et al. [19], Fig. 3 shows the intermediate results of estimated blur kernel and clean image at iteration $t =$
+
+1, 20, 100, 600, 2, 000 and 5, 000, along with the MSE curve for $\mathbf{k}$ and the PSNR curve for $\mathbf{x}$ . When iteration $t = 20$ , the intermediate result of $\mathbf{x}$ mainly contains the salient image structures, which is consistent with the observation that salient edges is crucial for initial blur kernel estimation in traditional methods. Along with the increase of iterations, $\mathcal{G}_x$ and $\mathcal{G}_k$ begin to generate finer details in $\mathbf{x}$ and $\mathbf{k}$ . Unlike traditional methods, SelfDeblur is effective in simultaneously estimating blur kernel and recovering latent clean image when iteration $t \geq 20$ , making the non-blind deconvolution not a compulsory choice for SelfDeblur.
+
+# 4.2. Comparison with State-of-the-arts
+
+# 4.2.1 Results on dataset of Levin et al. [19]
+
+Table 3: Average PSNR, SSIM, Error Ratio and running time (sec.) comparison on the dataset of Levin et al. [19]. $\triangle$ indicates the method generates final deblurring results using the non-blind deconvolution method from [20]. The running time only includes blur kernel estimation.
+
+ | PSNR | SSIM | Error Ratio | Time |
| Known kΔ | 34.53 | 0.9492 | 1.0000 | — |
| Krishnan et al. Δ [15] | 29.88 | 0.8666 | 2.4523 | 8.9400 |
| Cho&LeeΔ [4] | 30.57 | 0.8966 | 1.7113 | 1.3951 |
| Levin et al. Δ [20] | 30.80 | 0.9092 | 1.7724 | 78.263 |
| Xu&JiaΔ [49] | 31.67 | 0.9163 | 1.4898 | 1.1840 |
| Sun et al. Δ [41] | 32.99 | 0.9330 | 1.2847 | 191.03 |
| Zuo et al. Δ [56] | 32.66 | 0.9332 | 1.2500 | 10.998 |
| Pan-DCPΔ [29] | 32.69 | 0.9284 | 1.2555 | 295.23 |
| SRN [43] | 23.43 | 0.7117 | 6.0864 | N/A |
| SelfDeblurΔ | 33.32 | 0.9438 | 1.2509 | — |
| SelfDeblur | 33.07 | 0.9313 | 1.1968 | 224.01 |
+
+Using the dataset of Levin et al. [19], we compare our SelfDeblur with several state-of-the-art blind deconvolution methods, including Krishnan et al. [15], Levin et al. [19], Cho&Lee [4], Xu&Jia [48], Sun et al. [41], Zuo et al. [56] and Pan-DCP [29]. Besides, SelfDeblur is compared with one state-of-the-art deep motion deblurring method SRN [43], which is re-trained on 1,600 blurry images [33] synthesized using eight blur kernels in the dataset of Levin et al. For SelfDeblur, $\lambda = 1\times 10^{-6}$ is set for all the blurry images. Following [41, 56], we adopt the non-blind deconvolution method in [20] to generate final deblurring results. PSNR, SSIM [46] and Error Ratio [20] are used as quantitative metrics. And we also report the running time of blur kernel estimation for each competing method. Our SelfDeblur and SRN are ran on an NVIDIA Titan V GPU, while the other methods are ran on a PC with $3.30\mathrm{GHz}$ Intel(R)
+
+
+
+
+
+
+
+
+
+
+Blurry image
+Ground-truth
+
+
+Zuo et al. $\triangle$ [56]
+Sun et al. [41]
+Figure 5: Visual comparison on the dataset of Levin et al. [19].
+
+
+Xu&Jia[48]
+Pan-DCP[29]
+
+
+SelfDeblur
+SelfDeblur
+
+Table 4: Average PSNR/SSIM comparison on the dataset of Lai et al. [18], which has 5 categories. The methods marked with $\Delta$ adopt [47] and [14] as non-blind deconvolution after blur kernel estimation in Saturated and the other categories, respectively.
+
+| Images | Cho&Lee△ [4] | Xu&Jia△ [48] | Xu et al. △ [49] | Michaeli et al. △ [24] | Perroe et al. △ [32] | Pan-L0△ [27] | Pan-DCP△ [29] | SelfDeblur△ SelfDeblur |
| Manmade | 16.35/0.3890 | 19.23/0.6540 | 17.99/0.5986 | 17.43/0.4189 | 17.41/0.5507 | 16.92/0.5316 | 18.59/0.5942 | 20.08/0.7338 20.35/0.7543 |
| Natural | 20.14/0.5198 | 23.03/0.7542 | 21.58/0.6788 | 20.70/0.5116 | 21.04/0.6764 | 20.92/0.6622 | 22.60/0.6984 | 22.50/0.7183 22.05/0.7092 |
| People | 19.90/0.5560 | 25.32/0.8517 | 24.40/0.8133 | 23.35/0.6999 | 22.77/0.7347 | 23.36/0.7822 | 24.03/0.7719 | 27.41/0.8784 25.94/0.8834 |
| Saturated | 14.05/0.4927 | 14.79/0.5632 | 14.53/0.5383 | 14.14/0.4914 | 14.24/0.5107 | 14.62/0.5451 | 16.52/0.6322 | 16.58/0.6165 16.35/0.6364 |
| Text | 14.87/0.4429 | 18.56/0.7171 | 17.64/0.6677 | 16.23/0.4686 | 16.94/0.5927 | 16.87/0.6030 | 17.42/0.6193 | 19.06/0.7126 20.16/0.7785 |
| Avg. | 17.06/0.4801 | 20.18/0.7080 | 19.23/0.6593 | 18.37/0.5181 | 18.48/0.6130 | 18.54/0.6248 | 19.89/0.6656 | 21.13/0.7319 20.97/0.7524 |
+
+# Xeon(R) CPU.
+
+Table 3 lists the average metrics of the competing methods. We report the results of SelfDeblur with two settings, i.e., the deblurring results purely by SelfDeblur and those using the non-blind deconvolution from [20], denoted as SelfDeblur $\Delta$ . In terms of PSNR and Error Ratio, SelfDeblur significantly outperforms the competing methods. As for average SSIM, SelfDeblur performs slightly inferior to Sun et al. and Zuo et al. By incorporating with non-blind deconvolution from [20], SelfDeblur $\Delta$ can further boost quantitative performance and outperforms all the other methods. In terms of running time, SelfDeblur is time-consuming due to the optimization of two generative networks, but is comparable with Sun et al. [41] and Pan-DCP [29]. From the visual comparison in Fig. 5, the #4 blur kernel estimated by SelfDeblur is much closer to the ground-truth. As shown in the close-ups, SelfDeblur and SelfDeblur $\Delta$ can recover more visually favorable textures. We also note that both the performance gap and visual
+
+quality between SelfDeblur and SelfDeblur $\triangle$ are not significant, and thus non-blind deconvolution is not a compulsory choice for our SelfDeblur.
+
+# 4.2.2 Results on dataset of Lai et al. [18]
+
+We further evaluate SelfDeblur on the dataset of Lai et al. [18] consisting of 25 clean images and 4 large size blur kernels. The blurry images are divided into five categories, i.e., Manmade, Natural, People, Saturated and Text, where each category contains 20 blurry images. For each blurry image, the parameter $\lambda$ is set according to the noise level estimated using [54]. We compare our SelfDeblur with Cho&Lee [4], Xu&Jia [48], Xu et al. [49], Machaeli et al. [24], Perroe et al. [32], Pan-L0 [27] and Pan-DCP [29]. The results of competing methods except Pan-DCP [29] and ours are duplicated from [18]. The results of Pan-DCP [29] are generated using their default settings. Once the blur kernel is estimated, non-blind deconvolution [14] is applied to the images of Manmade, Natural, People and Text, while [47]
+
+
+Blurry image
+
+
+Xu&Jia[48]
+
+
+Perrone et al. $\Delta$ [32]
+
+
+SelfDeblur
+
+
+Ground-truth
+
+
+Michaeli et al. [48]
+
+
+Pan-DCP [32]
+
+
+SelfDeblur
+
+
+Blurry image
+
+
+Figure 6: Visual comparison on the dataset of Lai et al. [18].
+Xu&Jia [48]
+Figure 7: Visual comparison on two real-world blurry images.
+
+
+Pan-DCP [29]
+
+
+SelfDeblur
+
+is used to handle Saturated images. From Table 4, both SelfDeblur and SelfDeblur $\Delta$ can achieve better quantitative metrics than the competing methods. In terms of image contents, our SelfDeblur outperforms the other methods on any of the five categories. From the results in Fig. 6, the blur kernel estimated by our SelfDeblur is more accurate than those by the competing methods, and the deconvolution result is with more visually plausible textures.
+
+# 4.3. Evaluation on Real-world Blurry Images
+
+Our SelfDeblur is further compared with Xu&Jia [48] and Pan-DCP [29] on real-world blurry images. From Fig. 7, one can see that the blur kernel estimated by our SelfDeblur contains less noises, and the estimated clean image is with more visually plausible structures and textures. The kernel estimation errors by Xu&Jia and Pan-DCP are obvious, thereby yielding ringing artifacts in the estimated clean images. More results can be found in Suppl.
+
+# 5. Conclusion
+
+In this paper, we proposed a neural blind deconvolution method, i.e., SelfDeblur. It adopts an asymmetric Autoen-
+
+coder and a FCN to respectively capture the deep priors of latent clean image and blur kernel. And the SoftMax nonlinearity is applied to the output of FCN to meet the nonnegative and equality constraints of blur kernel. A joint optimization algorithm is suggested to solve the unconstrained neural blind deconvolution model. Experiments show that our SelfDeblur achieves notable performance gains over the state-of-the-art methods, and is effective in estimating blur kernel and generating clean image with visually favorable textures.
+
+# Acknowledgements
+
+This work was supported by the National Natural Science Foundation of China under Grants (Nos. 61801326, 61671182, 61732011 and 61925602), the SenseTime Research Fund for Young Scholars, and the Innovation Foundation of Tianjin University. We also gratefully acknowledge the support of NVIDIA Corporation with the donation of GPU.
+
+# References
+
+[1] A. Chakrabarti. A neural approach to blind motion deblurring. In European Conference on Computer Vision, pages 221-235, 2016. 2, 3
+[2] T. F. Chan and C.-K. Wong. Total variation blind deconvolution. IEEE Transactions on Image Processing, 7(3):370-375, 1998. 1, 2, 5
+[3] L. Chen, F. Fang, T. Wang, and G. Zhang. Blind image deblurring with local maximum gradient prior. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1742-1750, 2019. 1
+[4] S. Cho and S. Lee. Fast motion deblurring. ACM Transactions on Graphics, 28(5):145, 2009. 1, 6, 7
+[5] W. Dong, L. Zhang, G. Shi, and X. Li. Nonlocally centralized sparse representation for image restoration. IEEE Transactions on Image Processing, 22(4):1620-1630, 2013. 3
+[6] Y. Gandelsman, A. Shocher, and M. Irani. "double-dip": Unsupervised image decomposition via coupled deep-image-priors. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2019. 2, 3, 4, 6
+[7] H. Gao, X. Tao, X. Shen, and J. Jia. Dynamic scene deblurring with parameter selective sharing and nested skip connections. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3848-3856, 2019. 2
+[8] I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio. Generative adversarial nets. In Advances in Neural Information Processing Systems, pages 2672–2680, 2014. 4
+[9] T. Hyun Kim, K. Mu Lee, B. Scholkopf, and M. Hirsch. Online video deblurring via dynamic temporal blending network. In Proceedings of the IEEE International Conference on Computer Vision, pages 4038-4047, 2017. 3
+[10] M. Jin, S. Roth, and P. Favaro. Normalized blind deconvolution. In European Conference on Computer Vision, 2018. 1
+[11] J. Kim, J. Kwon Lee, and K. Mu Lee. Accurate image superresolution using very deep convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1646-1654, 2016. 2
+[12] J. Kim, J. Kwon Lee, and K. Mu Lee. Deeply-recursive convolutional network for image super-resolution. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1637–1645, 2016. 2
+[13] D. P. Kingma and J. Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representation, 2015. 5
+[14] D. Krishnan and R. Fergus. Fast image deconvolution using hyper-Laplacian priors. In Advances in Neural Information Processing Systems, pages 1033-1041, 2009. 3, 7
+[15] D. Krishnan, T. Tay, and R. Fergus. Blind deconvolution using a normalized sparsity measure. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 233-240, 2011. 2, 3, 4, 6
+
+[16] J. Kruse, C. Rother, and U. Schmidt. Learning to push the limits of efficient fft-based image deconvolution. In Proceedings of the IEEE International Conference on Computer Vision, pages 4586-4594, 2017. 3
+[17] O. Kupyn, V. Budzan, M. Mykhailych, D. Mishkin, and J. Matas. Deblurgan: Blind motion deblurring using conditional adversarial networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8183-8192, 2018. 3
+[18] W.-S. Lai, J.-B. Huang, Z. Hu, N. Ahuja, and M.-H. Yang. A comparative study for single image blind deblurring. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1701-1709, 2016. 2, 7, 8
+[19] A. Levin, Y. Weiss, F. Durand, and W. T. Freeman. Understanding and evaluating blind deconvolution algorithms. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1964-1971, 2009. 1, 2, 3, 5, 6, 7
+[20] A. Levin, Y. Weiss, F. Durand, and W. T. Freeman. Efficient marginal likelihood optimization in blind deconvolution. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2657-2664, 2011. 2, 6, 7
+[21] L. Li, J. Pan, W.-S. Lai, C. Gao, N. Sang, and M.-H. Yang. Learning a discriminative prior for blind image deblurring. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6616-6625, 2018. 3
+[22] G. Liu, S. Chang, and Y. Ma. Blind image deblurring using spectral properties of convolution operators. IEEE Transactions on Image Processing, 23(12):5047-5056, 2014. 2, 3, 4
+[23] R. Liu, S. Cheng, Y. He, X. Fan, Z. Lin, and Z. Luo. On the convergence of learning-based iterative methods for nonconvex inverse problems. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2019. 2
+[24] T. Michaeli and M. Irani. Blind deblurring using internal patch recurrence. In European Conference on Computer Vision, pages 783-798, 2014. 2, 3, 4, 7
+[25] S. Nah, T. Hyun Kim, and K. Mu Lee. Deep multi-scale convolutional neural network for dynamic scene deblurring. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3883-3891, 2017. 2, 3
+[26] S. Nah, S. Son, and K. M. Lee. Recurrent neural networks with intra-frame iterations for video deblurring. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8102-8111, 2019. 3
+[27] J. Pan, Z. Hu, Z. Su, and M.-H. Yang. $l\_ 0$ -regularized intensity and gradient prior for deblurring text images and beyond. IEEE Transactions on Pattern Analysis and Machine Intelligence, 39(2):342-355, 2017. 1, 2, 3, 5, 7
+[28] J. Pan, W. Ren, Z. Hu, and M.-H. Yang. Learning to deblur images with exemplars. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2018. 1
+[29] J. Pan, D. Sun, H. Pfister, and M.-H. Yang. Deblurring images via dark channel prior. IEEE Transactions on Pattern Analysis and Machine Intelligence, 40(10):2315-2328, 2018. 1, 2, 3, 4, 5, 6, 7, 8
+
+[30] L. Pan, Y. Dai, M. Liu, and F. Porikli. Simultaneous stereo video deblurring and scene flow estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4382-4391, 2017. 3
+[31] A. Paszke, S. Gross, S. Chintala, G. Chanan, E. Yang, Z. Devito, Z. Lin, A. Desmaison, L. Antiga, and A. Lerer. Automatic differentiation in pytorch. In NIPS Autodiff Workshop: The Future of Gradient-based Machine Learning Software and Techniques, 2017. 5
+[32] D. Perrone and P. Favaro. Total variation blind deconvolution: The devil is in the details. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2909-2916, 2014. 1, 2, 3, 4, 7, 8
+[33] D. Ren, W. Zuo, D. Zhang, L. Zhang, and M.-H. Yang. Simultaneous fidelity and regularization learning for image restoration. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2019. 6
+[34] W. Ren, X. Cao, J. Pan, X. Guo, W. Zuo, and M.-H. Yang. Image deblurring via enhanced low-rank prior. IEEE Transactions on Image Processing, 25(7):3426-3437, 2016. 2, 3, 4
+[35] 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, 2015. 4
+[36] U. Schmidt and S. Roth. Shrinkage fields for effective image restoration. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2774-2781, 2014. 3
+[37] U. Schmidt, C. Rother, S. Nowozin, J. Jancsary, and S. Roth. Discriminative non-blind deblurring. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 604-611, 2013. 3
+[38] C. J. Schuler, M. Hirsch, S. Harmeling, and B. Scholkopf. Learning to deblur. IEEE Transactions on Pattern Analysis and Machine Intelligence, 38(7):1439-1451, 2016. 2, 3
+[39] A. Shocher, N. Cohen, and M. Irani. zero-shot superresolution using deep internal learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3118-3126, 2018. 2, 5
+[40] J. Sun, W. Cao, Z. Xu, and J. Ponce. Learning a convolutional neural network for non-uniform motion blur removal. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 769-777, 2015. 3
+[41] L. Sun, S. Cho, J. Wang, and J. Hays. Edge-based blur kernel estimation using patch priors. In IEEE International Conference on Computational Photography, pages 1-8, 2013. 1, 2, 3, 4, 5, 6, 7
+[42] Y. Tai, J. Yang, and X. Liu. Image super-resolution via deep recursive residual network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, volume 1, page 5, 2017. 2
+[43] X. Tao, H. Gao, X. Shen, J. Wang, and J. Jia. Scale-recurrent network for deep image deblurring. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8174-8182, 2018. 2, 3, 6
+
+[44] P. Tseng. Convergence of a block coordinate descent method for nondifferentiable minimization. Journal of optimization theory and applications, 109(3):475-494, 2001. 5
+[45] D. Ulyanov, A. Vedaldi, and V. Lempitsky. Deep image prior. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9446-9454, 2018. 2, 3, 4, 5
+[46] 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, 2004. 6
+[47] O. Whyte, J. Sivic, and A. Zisserman. Deblurring shaken and partially saturated images. International Journal of Computer Vision, 110(2):185-201, 2014. 7
+[48] L. Xu and J. Jia. Two-phase kernel estimation for robust motion deblurring. In European Conference on Computer Vision, pages 157-170, 2010. 1, 6, 7, 8
+[49] L. Xu, S. Zheng, and J. Jia. Unnatural 10 sparse representation for natural image deblurring. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1107-1114, 2013. 3, 6, 7
+[50] Y. Yan, W. Ren, Y. Guo, R. Wang, and X. Cao. Image deblurring via extreme channels prior. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4003-4011, 2017. 2, 3, 4
+[51] J. Zhang, J. Pan, J. Ren, Y. Song, L. Bao, R. W. Lau, and M.-H. Yang. Dynamic scene deblurring using spatially variant recurrent neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2521-2529, 2018. 2, 3
+[52] K. Zhang, W. Zuo, Y. Chen, D. Meng, and L. Zhang. Beyond a gaussian denoiser: Residual learning of deep cnn for image denoising. IEEE Transactions on Image Processing, 26(7):3142-3155, 2017. 2
+[53] K. Zhang, W. Zuo, S. Gu, and L. Zhang. Learning deep cnn denoiser prior for image restoration. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3929-3938, 2017. 3
+[54] D. Zoran and Y. Weiss. Scale invariance and noise in natural images. In Proceedings of the IEEE International Conference on Computer Vision, pages 2209-2216, 2009. 5, 7
+[55] D. Zoran and Y. Weiss. From learning models of natural image patches to whole image restoration. In Proceedings of the IEEE International Conference on Computer Vision, pages 479-486, 2011. 3
+[56] W. Zuo, D. Ren, D. Zhang, S. Gu, and L. Zhang. Learning iteration-wise generalized shrinkage-thresholding operators for blind deconvolution. IEEE Transactions on Image Processing, 25(4):1751-1764, 2016. 1, 2, 3, 4, 5, 6, 7
\ No newline at end of file
diff --git a/neuralblinddeconvolutionusingdeeppriors/images.zip b/neuralblinddeconvolutionusingdeeppriors/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..7cb1ce06aa8c8844042e407f0947de0b3ffa6ff1
--- /dev/null
+++ b/neuralblinddeconvolutionusingdeeppriors/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:018eb5392b189d0add67738ae7367397554d552d66fc707dea1104ef8bc33c48
+size 767290
diff --git a/neuralblinddeconvolutionusingdeeppriors/layout.json b/neuralblinddeconvolutionusingdeeppriors/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..36903a04aacd4d510e8607530504e5a1183791a1
--- /dev/null
+++ b/neuralblinddeconvolutionusingdeeppriors/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:14349c63e5b0a2a0ae88bf2b47038d05dfd2aee3d4d9acbd11cd74b12c6a4994
+size 556429
diff --git a/neuralcagesfordetailpreserving3ddeformations/c300b25a-36b7-4de5-ae79-51257d65e8f0_content_list.json b/neuralcagesfordetailpreserving3ddeformations/c300b25a-36b7-4de5-ae79-51257d65e8f0_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..db43471bd1c8318d7ece385e10a2b282c6ccd342
--- /dev/null
+++ b/neuralcagesfordetailpreserving3ddeformations/c300b25a-36b7-4de5-ae79-51257d65e8f0_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8e17cadf1fbfe58875c7ca934f0efb1ec61143c4dd098c4448eb00cc61957255
+size 79726
diff --git a/neuralcagesfordetailpreserving3ddeformations/c300b25a-36b7-4de5-ae79-51257d65e8f0_model.json b/neuralcagesfordetailpreserving3ddeformations/c300b25a-36b7-4de5-ae79-51257d65e8f0_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..553c8950b93523b96b7c8dfba63fca31e9fc092b
--- /dev/null
+++ b/neuralcagesfordetailpreserving3ddeformations/c300b25a-36b7-4de5-ae79-51257d65e8f0_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:32746c8b2fa2f448cefc097a57b0e78c6ba94eb907eace0276c28725a5191529
+size 98563
diff --git a/neuralcagesfordetailpreserving3ddeformations/c300b25a-36b7-4de5-ae79-51257d65e8f0_origin.pdf b/neuralcagesfordetailpreserving3ddeformations/c300b25a-36b7-4de5-ae79-51257d65e8f0_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..e0d8d16f7aee3f649f45b8b992d4cf45d5a20779
--- /dev/null
+++ b/neuralcagesfordetailpreserving3ddeformations/c300b25a-36b7-4de5-ae79-51257d65e8f0_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5c29faaa49675e6fd69d657d87dbff15946570c6a409b133cdcd3f27e24d04de
+size 2150538
diff --git a/neuralcagesfordetailpreserving3ddeformations/full.md b/neuralcagesfordetailpreserving3ddeformations/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..340813cd6f8c0b25692ce9a2d5e412093033d523
--- /dev/null
+++ b/neuralcagesfordetailpreserving3ddeformations/full.md
@@ -0,0 +1,351 @@
+# Neural Cages for Detail-Preserving 3D Deformations
+
+Wang Yifan $^{1}$ Noam Aigerman $^{2}$ Vladimir G. Kim $^{2}$ Siddhartha Chaudhuri $^{2,3}$ Olga Sorkine-Hornung $^{1}$
+
+$^{1}$ ETH Zurich $^{2}$ Adobe Research $^{3}$ IIT Bombay
+
+# Abstract
+
+We propose a novel learnable representation for detail-preserving shape deformation. The goal of our method is to warp a source shape to match the general structure of a target shape, while preserving the surface details of the source. Our method extends a traditional cage-based deformation technique, where the source shape is enclosed by a coarse control mesh termed cage, and translations prescribed on the cage vertices are interpolated to any point on the source mesh via special weight functions. The use of this sparse cage scaffolding enables preserving surface details regardless of the shape's intricacy and topology. Our key contribution is a novel neural network architecture for predicting deformations by controlling the cage. We incorporate a differentiable cage-based deformation module in our architecture, and train our network end-to-end. Our method can be trained with common collections of 3D models in an unsupervised fashion, without any cage-specific annotations. We demonstrate the utility of our method for synthesizing shape variations and deformation transfer.
+
+# 1. Introduction
+
+Deformation of 3D shapes is a ubiquitous task, arising in many vision and graphics applications. For instance, deformation transfer [25] aims to infer a deformation from a given pair of shapes and apply the same deformation to a novel target shape. As another example, a small dataset of shapes from a given category (e.g., chairs) can be augmented by synthesizing variations, where each variation deforms a randomly chosen shape to the proportions and morphology of another while preserving local detail [29, 32].
+
+Deformation techniques usually need to simultaneously optimize at least two competing objectives. The first is alignment with the target, e.g., matching limb positions while deforming a human shape to another human in a different pose. The second objective is adhering to quality metrics, such as distortion minimization and preservation of local geometric features, such as the human's face. These two objectives are contradictory, since a perfect alignment of a deformed source shape to the target precludes preserving the original details of the source.
+
+
+Figure 1: Applications of our neural cage-based deformation method. Top: Complex source chairs (brown) deformed (blue) to match target chairs (green), while accurately preserving detail and style with nonhomogeneous changes that adapt different regions differently. No correspondences are used at any stage. Bottom: A cage-based deformation network trained on many posed humans (SMPL) can transfer various poses of novel targets (SCAPE, skeleton, X-Bot, in green) to a very dissimilar robot of which only a single neutral pose is available. A few matching landmarks between the robot and a neutral SMPL human are required. Dense correspondences between SMPL humans are used only during training.
+
+Due to these conflicting objectives, optimization techniques [17] require parameter tuning to balance the two competing terms, and are heavily reliant on an inferred or manually supplied correspondence between the source and the target. These parameters vary based on the shape category, representation, and the level of dissimilarity between the source and the target.
+
+To address these limitations, recent techniques train a neural network to predict shape deformations. This is achieved by predicting new positions for all vertices of a template shape [26] or by implicitly representing the deformation as a mapping of all points in 3D, which is then used to map each vertex of a source shape [6, 29]. Examples of the results of some of these methods can be seen in Fig 4, which demonstrates the limitations of such approaches: the predicted deformations corrupt features and exhibit distortion, especially in areas with thin structures, fine details or
+
+gross discrepancies between source and target. These artifacts are due to the inherent limitations of neural networks to capture, preserve, and generate high frequencies.
+
+In this paper, we circumvent the above issues via a classic geometry processing technique called cage-based deformation [14, 15, 18], abbreviated to CBD. In CBD, the source shape is enclosed in a very coarse scaffold mesh called the cage (Fig 2). The deformation of the cage is transferred to the enclosed shape by interpolating the translations of the cage vertices. Fittingly, the interpolation schemes in these classic works are carefully designed to preserve details and minimize distortion.
+
+Our main technical contribution is a novel neural architecture in which, given a source mesh, learnable parameters are optimized to predict both the positioning of the cage around the source shape, as well as the deformation of that cage, which drives the deformation of the enclosed shape in order to match a target shape. The source shape is deformed by deterministically interpolating the new positions of its surface points from those of the cage vertices, via a novel, differentiable, cage-based deformation layer. The pipeline is trained end-to-end on a collection of randomly chosen pairs of shapes from a training set.
+
+The first key advantage of our method is that cages provide a much more natural space for predicting deformations: CBD is feature-preserving by construction, the degrees of freedom in deformation only depends on the number of vertices on the coarse cage. In short, our network makes a prediction in a low-dimensional space of highly regular deformations.
+
+The second key advantage is that our method is not tied to a single source shape, nor to a single mesh topology. As the many examples in this paper demonstrate, the trained network can predict and deform cages for similar shapes not observed during training. The target shape can be crude and noisy, e.g., a shape acquired with cheap scanning hardware or reconstructed from an image. Furthermore, dense correspondences between the source and target shapes are not required in general, though they can help when the training set has very varied articulations. Thus the method can be trained on large datasets that are not co-registered and do not have consistently labeled landmarks.
+
+We show the utility of our method in two main applications. We generate shape variations by deforming a 3D model using other shapes as well as images as targets. We also use our method to pose a human according to a target humanoid character, and, given a few sparse correspondences, perform deformation transfer and pose an arbitrary novel humanoid. See Figures 1, 7, 9 and 4 for examples.
+
+# 2. Related work
+
+We now review prior work on learning deformations, traditional methods for shape deformation, and applications.
+
+Learning 3D deformations. Many recent works in learning 3D geometry have focused on generative tasks, such as synthesis [8, 20] and editing [36] of unstructured geometric data. These tasks are especially challenging if one desires high-fidelity content with intricate details. A common approach to producing intricate shapes is to deform an existing generic [28] or category-specific [7] template. Early approaches represented deformations as a single vector of vertex positions of a template [26], which limited their output to shapes constructable by deforming the specific template, and also made the architecture sensitive to the template tessellation. An alternative is to predict a freeform deformation field over 3D voxels [9, 13, 34]; however, this makes the deformation's resolution dependent on the voxel resolution, and thus has limited capability to adapt to a specific shape categories and source shapes.
+
+Alternatively, some architectures learn to map a single point at a time, conditioned on some global descriptor of the target shape [7]. These architectures can also work for novel sources by conditioning the deformation field on features of both source and target [6, 29]. Unfortunately, due to network capacity limits, these techniques struggle to represent intricate details and tend to blur high-frequency features.
+
+Traditional methods for mesh deformation. Research on detail-preserving deformations in the geometry processing community spans several decades and has contributed various formulations and optimization techniques [24]. These methods usually rely on a sparse set of control points whose transformations are interpolated to all remaining points of the shape; the challenge lies in defining this interpolation in a way that preserves details. This can be achieved by solving an optimization problem to reduce the distortion of the deformation such as [23]. However, defining the output deformation as the solution to an intricate non-convex optimization problem significantly limits the ability of a network to learn this deformation space.
+
+Instead, we use cage-based deformations as our representation, where the source shape is enclosed by a coarse cage mesh, and all surface points are written as linear combinations of the cage vertices, i.e., generalized barycentric coordinates. Many designs have been proposed for these coordinate functions such that shape structure and details are preserved under interpolations [2, 14, 15, 18, 21, 27, 31].
+
+Shape synthesis and deformation transfer. Automatically aligning a source shape to a target shape while preserving details is a common task, used to synthesize variations of shapes for amplification of stock datasets [11] or for transferring a given deformation to a new model, targeting animation synthesis [25]. To infer the deformation, correspondence between the two shapes needs to be accounted for, either by explicitly inferring corresponding points [12, 16, 17], or by implicitly conditioning the deformation fields on the latent code of the target shape [6, 9, 29]. Our work builds
+
+
+Figure 2: Overview. A source $S_{s}$ and a target $S_{t}$ are encoded by the same PointNet encoder $E^{\mathrm{PN}}$ into latent codes $f_{s}$ and $f_{t}$ , resp. An AtlasNet-style decoder $D_{c}^{\mathrm{AN}}$ decodes $f_{s}$ to a source cage $\mathcal{C}_{s}$ in the cage module $\mathcal{N}_{c}$ . Another decoder $D_{d}^{\mathrm{AN}}$ creates the offset for $\mathcal{C}_{s}$ in the deformation module $\mathcal{N}_{d}$ from the concatenation of $f_{s}$ and $f_{t}$ , yielding a deformed cage $\mathcal{C}_{s\rightarrow t}$ . Given a source cage and shape, our novel MVC layer computes the mean value coordinates $\phi^{\mathcal{C}_s}(\mathcal{S}_s)$ , which are used to produce a deformed source shape $S_{s\rightarrow t}$ from the cage deformation $\mathcal{C}_{s\rightarrow t}$ .
+
+upon the latter learning-based framework, but uses cages to parameterize the space of deformations.
+
+Gao et al. [4] automate the deformation transfer for unpaired shapes using cycled generative adversarial networks, thus the trained method cannot be easily adapted for new shape targets. Some prior techniques focus on transferring and interpolating attributes between various latent spaces trained for shape generation [5,33]. These generative models are not capable of fully preserving local geometric features, especially if the source is not pre-segmented into simpler primitives (as assumed by [5]). In general, such methods are only expected to perform well if the input shapes are relatively similar to those observed at training time.
+
+# 3. Method
+
+We now detail our approach for learning cage-based deformations (CBD). We start with a brief overview of the principles of CBD, and then explain how we train a network to control these deformations from data. The implementation is available at https://github.com/yifita/deep_cage.
+
+# 3.1. Cage-based deformations
+
+CBD are a type of freeform space deformations. Instead of defining a deformation solely on the surface $S$ , space deformations warp the entire ambient space in which the shape $S$ is embedded. In particular, a CBD controls this warping via a coarse triangle mesh, called a cage $\mathcal{C}$ , which typically encloses $S$ . Given the cage, any point in ambient space $\mathbf{p} \in \mathbb{R}^3$ is encoded via generalized barycentric coordinates, as a weighted average of the cage vertices $\mathbf{v}_j$ : $\mathbf{p} = \sum \phi_j^{\mathcal{C}}(\mathbf{p}) \mathbf{v}_j$ , where the weight functions $\{\phi_j^{\mathcal{C}}\}$ depend on the relative position of $\mathbf{p}$ w.r.t. to the cage vertices $\{\mathbf{v}_j\}$ . The deformation of any point in ambient space is obtained by simply offsetting the cage vertices and interpolating their new positions $\mathbf{v}_j'$ with the pre-computed weights, i.e.
+
+$$
+\mathbf {p} ^ {\prime} = \sum_ {0 \leq j < | V _ {c} |} \phi_ {j} ^ {\mathcal {C}} (\mathbf {p}) \mathbf {v} _ {j} ^ {\prime}. \tag {1}
+$$
+
+Previous works on CBD constructed various formulae to attain weight functions $\{\phi_j^{\mathcal{C}}\}$ with specific properties, such as interpolation, linear precision, smoothness and distortion minimization. We choose mean value coordinates (MVC) [15] for their feature preservation and interpolation properties, as well as simplicity and differentiability w.r.t. the source and deformed cages' coordinates.
+
+# 3.2. Learning cage-based deformation
+
+As our goal is an end-to-end pipeline for deforming shapes, we train the network to predict both the source cage and the target cage, in order to optimize the quality of the resulting deformation. Given a source shape $S_{s}$ and a target shape $S_{t}$ , we design a deep neural network that predicts a cage deformation that warps $S_{s}$ to $S_{t}$ while preserving the details of $S_{s}$ . Our network is composed of two branches, as illustrated in Fig 2: a cage-prediction model $\mathcal{N}_c$ , which predicts the initial cage $\mathcal{C}_s$ around $S_{s}$ , and a deformation-prediction model $\mathcal{N}_d$ , which predicts an offset from $\mathcal{C}_s$ , yielding the deformed cage $\mathcal{C}_{s\rightarrow t}$ , i.e.
+
+$$
+\mathcal {C} _ {s} = \mathcal {N} _ {c} \left(\mathcal {S} _ {s}\right) + \mathcal {C} _ {0}, \quad \mathcal {C} _ {s \rightarrow t} = \mathcal {N} _ {d} \left(\mathcal {S} _ {t}, \mathcal {S} _ {s}\right) + \mathcal {C} _ {s} \tag {2}
+$$
+
+Since both branches are differentiable, they can be both learned jointly in an end-to-end manner.
+
+The branches $\mathcal{N}_c$ and $\mathcal{N}_d$ only predict the cage and do not directly rely on the detailed geometric features of the input shapes. Hence, our network does not require high-resolution input nor involved tuning for the network architectures. In fact, both $\mathcal{N}_c$ and $\mathcal{N}_d$ follow a very streamlined design: their encoders and decoders are simplified versions of the ones used in AtlasNet [8]. We remove the batch normalization and reduce the channel sizes, and instead of feeding 2D surface patches to the decoders, we feed a template cage $\mathcal{C}_0$ and the predicted initial cage $\mathcal{C}_s$ to the cage predictor and deformer respectively, and let them predict the offsets. By default, $\mathcal{C}_0$ is a 42-vertex sphere.
+
+# 3.3. Loss terms
+
+Our loss incorporates three main terms. The first term optimizes the source cage to encourage positive mean value coordinates. The two latter terms optimize the deformation, the first by measuring alignment to target and the second by measuring shape preservation. Together, these terms comprise our basic loss function:
+
+$$
+\mathcal {L} = \alpha_ {\mathrm {M V C}} \mathcal {L} _ {\mathrm {M V C}} + \mathcal {L} _ {\text {a l i g n}} + \alpha_ {\text {s h a p e}} \mathcal {L} _ {\text {s h a p e}}. \tag {3}
+$$
+
+We use $\alpha_{\mathrm{MVC}} = 1$ , $\alpha_{\mathrm{shape}} = 0.1$ in all experiments.
+
+To optimize the mean value coordinates of the source cage, we penalize negative weight values, which emerge when the source cage is highly concave, self-overlapping, or when some of the shape's points lie outside the cage:
+
+
+Figure 3: Synthesizing variations of source shapes (brown), by deforming them to match targets (green).
+
+$$
+\mathcal {L} _ {\mathrm {M V C}} = \frac {1}{| \mathcal {C} _ {s} | | \mathcal {S} _ {s} |} \sum_ {i = 1} ^ {| \mathcal {S} _ {s} |} \sum_ {j = 1} ^ {| \mathcal {C} _ {s} |} \left| \min \left(\phi_ {j i}, 0\right) \right| ^ {2}, \tag {4}
+$$
+
+where $\alpha_{\mathrm{MVC}}$ is the loss weight, and $\phi_{ji}$ denotes the coordinates of $\mathbf{p}_i\in S_s$ w.r.t. $\mathbf{v}_j\in \mathcal{C}_s$
+
+$\mathcal{L}_{\mathrm{align}}$ is measured either via chamfer distance in the unsupervised case sans correspondences, or as the L2 distance when supervised with correspondences.
+
+The above two losses drive the deformation towards alignment with the target, but this may come at the price of preferring alignment over feature preservation. Therefore, we add terms that encourage shape preservation. Namely, we draw inspiration from Laplacian regularizers [7, 19, 29], but propose to use a point-to-surface distance as an orientation-invariant, second-order geometric feature. Specifically, for each point $\mathbf{p}$ on the source shape, we fit a PCA plane to a local neighborhood $\mathcal{B}$ (we use the one-ring of the mesh), and then compute the point-to-plane distance as $d = \| \mathbf{n}^T (\mathbf{p} - \mathbf{p}_{\mathcal{B}})\|$ , where $\mathbf{n}$ denotes the normal of the PCA plane and $\mathbf{p}_{\mathcal{B}} = \frac{1}{|\mathcal{B}|}\sum_{\mathbf{q}\in \mathcal{B}(\mathbf{p})}\mathbf{q}$ is the centroid of the local neighborhood around $\mathbf{p}$ . We then penalize change in the distance $d_{i}$ for each vertex on the surface:
+
+$$
+\mathcal {L} _ {\mathrm {p 2 f}} = \frac {1}{| \mathcal {S} _ {s} |} \sum_ {i = 1} ^ {| \mathcal {S} _ {s} |} \| d _ {i} - d _ {i} ^ {\prime} \| ^ {2} \tag {5}
+$$
+
+where $d_i'$ is the distance post deformation. In contrast to the uniform Laplacian, which considers the distance to the centroid and hence yields a non-zero value whenever the local neighborhood is not evenly distributed, the proposed point-to-surface distance better describes the local geometric features.
+
+For man-made shapes, we use two additional losses that leverage priors of this shape class. First, normal consistency is important for, e.g., preserving the planarity of elements like tabletops. To encourage this, we penalize the angular
+
+difference of PCA normals before and after deformation:
+
+$$
+\mathcal {L} _ {\text {n o r m a l}} = \frac {1}{| \mathcal {S} _ {s} |} \sum_ {i} ^ {| \mathcal {S} _ {s} |} (1 - \mathbf {n} _ {i} ^ {T} \mathbf {n} _ {i} ^ {\prime}), \tag {6}
+$$
+
+where $\mathbf{n}^{\prime}$ denotes the PCA-normal after the deformation. As demonstrated later, this normal penalty considerably improves the perceptual quality of the deformation. Second, similarly to Wang et al. [29], we also use the symmetry loss $\mathcal{L}_{\mathrm{symm}}$ , measured as the chamfer distance between the shape and its reflection around the $x = 0$ plane. We apply this loss to the deformed shape $S_{s\rightarrow t}$ as well as the cage $\mathcal{C}_s$ . Thus, our final shape preservation loss is: $\mathcal{L}_{\mathrm{shape}} = \mathcal{L}_{\mathrm{p2f}} + \mathcal{L}_{\mathrm{normal}} + \mathcal{L}_{\mathrm{symm}}$ for man-made shapes and $\mathcal{L}_{\mathrm{shape}} = \mathcal{L}_{\mathrm{p2f}}$ for characters.
+
+# 4. Applications
+
+We now showcase two applications of the trained cage-based deformation network.
+
+# 4.1. Stock amplification via deformation
+
+Creating high-quality 3D assets requires significant time, technical expertise, and artistic talent. Once the asset is created, the artist commonly deforms the model to create several variations of it. Inspired by prior techniques on automatic stock amplification [29], we use our method to learn a meaningful deformation space over a collection of shapes within the same category, and then use random pairs of source and target shapes to synthesize plausible variations of artist-generated assets.
+
+Training details. We train our model on the chair, car and table categories from ShapeNet [3] using the same splitting into training and testing sets as in Grouiex et al. [6]. We then randomly sample 100 pairs from the test set. Each shape is normalized to fit in a unit bounding box and is represented by 1024 points.
+
+Variation synthesis examples. Fig 3 shows variations generated from various source-target pairs, exhibiting the regularizing power of the cages: even though our training omits all semantic supervision such as part labels, these variations are plausible and do not exhibit feature distortions; fine details, such as chair slats, are preserved.
+
+Comparisons. We compared our target-driven deformation method to other methods that strive to achieve the same goal. Results are shown in Fig 4. While in many cases alternative techniques do align the deformed shape the target, in all cases they introduce significant artifacts in the deformed meshes.
+
+We first compare to a non-learning-based approach: non-rigid ICP [10], a classic registration technique that alternates between correspondence estimation and optimization of a non-rigid deformation to best align corresponding points. We show results with the optimal registration parameters we found to achieve detail preservation. Clearly,
+
+
+Figure 4: Comparison of our method with other non-homogeneous deformation methods. Our method achieves superior detail preservation of the source shape in comparison to optimization-based [10] and learning-based [6,9,29] techniques, while still aligning the output to the target.
+
+
+Figure 5: Quantitative evaluation of our method vs alternative methods. Each point represents a method, embedded according to its average alignment error (Chamfer Distance) and distortion ( $\Delta$ CotLaplacian). Points near the bottom-left corners are better.
+
+ICP is sensitive to wrong correspondences that cause convergence to artifact-ridden local minima. We also compare to learning-based methods that directly predict per-point transformations and leverage cycle-consistency (CC) [6] or feature-preserving regularization (3DN) [29] to learn low-distortion shape deformations. Both methods blur and omit features, while also creating artifacts by stretching small parts. We also compare to ALIGNNet [9], a method that predicts a freeform deformation over a voxel grid, yielding a volumetric deformation of the ambient space simi
+
+larly to our technique. Contrary to our method, the coarse voxel grid cannot capture the fine deformation of the surface needed to avoid large artifacts. Our training setup is identical to CC, and we retrained 3DN and ALIGNNet with the same setup using parameters suggested by the authors.
+
+In Fig 6 we compare our results to the simplest of deformation methods - anisotropic scaling, achieved by simply
+
+rescaling the source bounding box to match that of the target. While local structure is well preserved, this method cannot account for the different proportion changes required for different regions, highlighting the necessary intricacy of the optimal deformation in this case.
+
+
+Figure 6: Comparison of our method with anisotropic scaling. Our method better matches corresponding semantic parts.
+
+Quantitative comparisons. in Fig 5, we quantitatively evaluate the various methods using two metrics: distance to the target shape, and detail preservation, measured via
+
+
+Figure 7: We use our method to deform a 3D shape to match a real 2D image. We first use AtlasNet [8] to reconstruct a 3D proxy target. Despite the poor quality of the proxy, it still serves as a valid target for our network to generate a matching output preserving the fine details of the source.
+
+chamfer distance (computed over a dense set of 5000 uniformly sampled points) and difference in cotangent Laplacians, respectively. Note that these metrics do not favor any method, since all optimize for a variant of chamfer distance, and none of the methods optimize for the difference in the cotangent Laplacian. Each 2D point in the figure represents one method, with the point's coordinates prescribed with respect to the two metrics, the origin being ideal. This figure confirms our qualitative observations: our method is more effective at shape preservation than most alternatives while still capturing the gross structure of the target.
+
+Using images as targets. Often, a 3D target is not readily available. Images are more abundant and much easier to acquire, and thus pose an appealing alternative. We use a learning-based single-view reconstruction technique to create a proxy target to use with our method to find appropriate deformation parameters. We use publicly available product images of real objects and execute AtlasNet's SVR reconstruction [8] to generate a coarse 3D proxy as a target. Fig 7 shows that even though the proxy has coarse geometry and many artifacts, these issues do not affect the deformation, and the result is still a valid variation of the source.
+
+# 4.2. Deformation transfer
+
+Given a novel 3D model, it is much more time-efficient to automatically deform it to mimic an existing example deformation, than having an artist deform the novel model directly. This automatic task is called deformation transfer. The example deformation is given via a model in a rest pose $S_{s}$ , and a model in the deformed pose $S_{t}$ . The novel 3D model is given in a corresponding rest post $S_{s'}$ . The goal is to deform the novel model to a position $S_{t'}$ so that the deformation $S_{s'} \rightarrow S_{t'}$ is analogous to $S_{s} \rightarrow S_{t}$ . This task can be quite challenging, as the example deformation $S_{t}$ may have very different geometry, or even come from an ad-hoc scan, and thus dense correspondences between $S_{s}$ and $S_{t}$ are unavailable, preventing the use of traditional
+
+
+Figure 8: The deformation model, trained to deform a fixed source (left) to various articulations.
+
+mesh optimization techniques such as [25]. Furthermore, as the novel character $S_{s'}$ may be significantly different from all models observed during training, it is impossible to a priori learn a deformation subspace for $S_{s'}$ unless sufficient pose variations of $S_{s'}$ is available, as in Gao et al. [4].
+
+We demonstrate that our learning-based approach can be used to perform deformation transfer on arbitrary humanoid models. The network infers the deformation from the source $S_{s}$ to the target $S_{t}$ , without any given correspondences, and then an optimization-based method transfers this deformation to a novel shape $S_{s'}$ to obtain the desired deformation $S_{t'}$ . Hence, given any arbitrarily-complex novel character, all our method requires are sparse correspondences supplying the necessary alignment between the two rest poses, $S_{s}$ and $S_{s'}$ . We now overview the details of our learned cage-based human deformation model and the optimization technique used to transfer the deformations.
+
+Learning cage-based human deformation. To train our human-specific deformation model, we use the dataset [7] generated using the SMPL model [1] of 230K models of various humans in various poses. Since our application assumes that the exemplar deformation is produced from a single canonical character, we picked one human in the dataset to serve as $S_{s}$ . Subsequently, since we only have one static source shape $S_{s}$ , we use a static cage $C_{s}$ manually created with 77 vertices, and hence do not need the cage prediction network $N_{c}$ and only use the deformation network $N_{d}$ . We train $N_{d}$ to deform the static $S_{s}$ using the static $C_{s}$ into exemplars $S_{t}$ from the dataset (with targets not necessarily stemming from the same humanoid model as $S_{s}$ ). We then train with the loss in (3), but with one modification: in similar fashion to prior work, during training we use ground truth correspondences and hence replace the chamfer distance with the L2 distance w.r.t the known correspondences. Note that these correspondences are not used at inference time.
+
+Lastly, during training we also optimize the static source cage $\mathcal{C}_c$ by treating its vertices as degrees of freedom and directly optimizing them to reduce the loss so as to attain a more optimal, but still static cage after training.
+
+Fig 8 shows examples of human-specific cage deformations predicted for test targets (not observed while training). Note how our model successfully matches poses even without knowing correspondences at inference time, while preserving fine geometric details such as faces and fingers.
+
+
+Figure 9: Deformation transfer. We first learn the cage deformation space for a template source shape (top left) with known pose and body shape variations. Then, we annotate predefined landmarks on new characters in neutral poses (left column, rows 2-4). At test time, given novel target poses (top row, green) without known correspondences to the template, we transfer their poses to the other characters (blue).
+
+Transferring cage deformations. After training, we have at our disposal the deformation network $\mathcal{N}_d$ and the static $\mathcal{C}_s$ , $\mathcal{S}_s$ . We assume to be given a novel character $S_{s'}$ with 83 landmark correspondences aligning it to $S_s$ , and an example target pose $S_t$ . Our goal is to deform $S_{s'}$ into a new pose $S_{t'}$ that is analogous to the deformation of $S_s$ into $S_t$ .
+
+We first generate a new cage $\mathcal{C}_{s'}$ for the character $S_{s'}$ . Instead of a network-based prediction, we simply optimize the static cage $\mathcal{C}_s$ , trying to match mean value coordinates between corresponding points of $S_s, S_{s'}$ :
+
+$$
+\mathcal {L} _ {\text {c o n s i s t e n c y}} = \sum_ {j} \sum_ {(p, q)} \| \phi_ {j} ^ {\mathcal {C} _ {s}} (p) - \phi_ {j} ^ {\mathcal {C} _ {s} ^ {\prime}} (q) \| ^ {2} \tag {7}
+$$
+
+where $(p,q)$ are corresponding landmarks. We also regularize with respect to the cotangent Laplacian of the cage:
+
+$$
+\mathcal {L} _ {\mathcal {C} \text {l a p}} = \sum_ {0 \leq j < | \mathcal {C} _ {s} |} \left(\| L _ {\cot} \mathbf {v} _ {j} \| - \| L _ {\cot} \mathbf {v} _ {j} ^ {\prime} \|\right) ^ {2}. \tag {8}
+$$
+
+Then, we compute $\mathcal{C}_{s'}$ by minimizing $\mathcal{L} = \mathcal{L}_{\mathrm{consistency}} + 0.05\mathcal{L}_{\mathrm{Clap}}$ , with $\mathcal{C}_s$ used as initialization, solved via the Adam optimizer with step size $5 \cdot 10^{-4}$ and up to $10^{4}$ iterations (or until $\mathcal{L}_{\mathrm{consistency}} < 10^{-5}$ ).
+
+Finally, given the cage $\mathcal{C}_{s'}$ for the novel character, we compute the deformed cage $\mathcal{C}_{s' \to t'}$ , using our trained deformation network, by applying the predicted offset to the optimized cage: $\mathcal{C}_{s' \to t'} = \mathcal{N}_d(S_t, S_{s'}) + \mathcal{C}_{s'}$ . The final deformed shape $S_{t'}$ is computed by deforming $S_{s'}$ using the cage $\mathcal{C}_{s' \to t'}$ via (1). This procedure is illustrated in Fig 10, while more examples can be found in the supplemental material. Due to the agnostic nature of cage-deformations to the underlying shape, we are able to seamlessly combine machine learning and traditional geometry processing to generalize to never-observed characters. To demonstrate the expressiveness of our method, we show examples on extremely dissimilar target characters in Figures 1 and 9.
+
+
+template source
+
+
+novelsourc
+
+
+transferred deformation: cage and shape
+
+
+Figure 10: In deformation transfer, the manually created cage for a template shape (leftmost) is fitted to a novel source shape (second left) by optimizing MVC of a sparse set of aligned landmarks. The learnt deformation can be directly applied to the fitted source cage (columns 3-4), preserving rich geometric features (right).
+
+
+geometric details
+
+
+
+
+Source
+
+
+Example 1
+Target
+
+
+Opt.
+
+
+Ours
+Figure 11: Our approach produces more plausible inter-shape correspondences and deformations than per-pair optimization.
+
+
+Source
+
+
+Target
+
+
+Opt.
+
+
+Ours
+
+# 5. Evaluation
+
+In this section, we study the effects and necessity of the most relevant components of our methods. To measure the matching error we use chamfer distance computed on 5000 uniformly resampled points, and to measure the feature distortion we use the distance between cotangent Laplacians. All models are normalized to a unit bounding box.
+
+Benefit of learning CBD from data. Instead of learning the CBD from a collection of data, one could minimize (3) for a single pair of shapes, which is essentially a non-rigid Iterative-Closest-Point (ICP) parameterised by cage vertices. As shown in Fig 11, when correct correspondence estimation becomes challenging, the optimization alternative produces non-plausible outputs. In contrast, the learnt approach utilizes domain knowledge embedded in the network's parameters [22, 35], amounting to better reasoning about the plausibility of inter-shape correspondences and deformations. The learned domain knowledge can generalize to new data. As demonstrated in Sec 4.2, even though our network is trained with ground-truth correspondences, it is able to automatically associate the source shape to a new target without correspondences during inference, while optimization methods require accurate correspondence estimation for every new target.
+
+Effect of the negative MVC penalty, $\mathcal{L}_{\mathrm{MVC}}$ . in Fig 12 we show the effect of penalizing negative mean value coordinates. We train our architecture on 300 vase shapes from COSEG [30], while varying the weight $\alpha_{\mathrm{MVC}} \in \{0,1,10\}$ . Increasing this term brings the cages closer to the shapes' convex hulls, leading to more conservative deformations. Quantitative results in Table 1a also suggest that increasing the weight $\alpha_{\mathrm{MVC}}$ favors shape preservation over alignment accuracy. Completely eliminating this term hurts convergence, and increases the alignment error further.
+
+
+Source $S_{s}$ Target $S_{t}$
+
+
+Source
+
+
+Deformed Deformed
+Figure 12: Effect of $\mathcal{L}_{\mathrm{MVC}}$ . Higher regularization yields more conservative deformations.
+
+
+Source Deform
+ed Deformed
+
+
+
+| Ablation | CD | ΔCotLaplacian |
| αMVC = 0 | 1.64 | 9.04 |
| αMVC = 1 | 1.44 | 8.74 |
| αMVC = 10 | 2.65 | 8.27 |
| (a) Effect of the MVC loss, L_MVC |
| L_shape = L_lap + L.symm | 5.16 | 4.75 |
| L_shape = L_p2f + L.symm | 4.86 | 4.70 |
| L_shape = L_normal + L.symm | 5.45 | 4.33 |
| (b) Effect of the shape preservation losses, L_shape |
| Nc=Identity | 3.27 | 5.65 |
| Nc=Source-invariant | 3.11 | 12.05 |
| Nc=Ours | 3.06 | 10.45 |
| (c) Design choices for cage prediction network, Nc |
+
+Table 1: We evaluate effect of different losses $(\mathcal{L}_{\mathrm{MVC}},\mathcal{L}_{\mathrm{shape}})$ and components $(\mathcal{N}_c)$ of our pipeline with respect to chamfer distance (CD, scaled by $10^{2}$ ) and cotangent Laplacian (scaled by $10^{3}$ ).
+
+Effect of the shape preservation losses, $\mathcal{L}_{\mathrm{shape}}$ . In Fig 13 we compare deformations produced with the full loss $(\mathcal{L}_{\mathrm{shape}} = \mathcal{L}_{\mathrm{p2f}} + \mathcal{L}_{\mathrm{normal}} + \mathcal{L}_{\mathrm{symm}})$ to ones produced with only one of the first two loss terms. While we did not use the Laplacian regularizer $\mathcal{L}_{\mathrm{lap}}$ as in [29], it seems to have an effect equivalent to $\mathcal{L}_{\mathrm{p2f}}$ . As expected, $\mathcal{L}_{\mathrm{normal}}$ prevents bending of rigid shapes. We quantitatively evaluate these regularizers in Table 1b, which suggests that $\mathcal{L}_{\mathrm{p2f}}$ is slightly better as the deformed shape is more aligned with the target than $\mathcal{L}_{\mathrm{lap}}$ , even though shape preservation has not been sacrificed. $\mathcal{L}_{\mathrm{normal}}$ reduces distortion even further.
+
+Design choices for the cage prediction network, $\mathcal{N}_c$ . The cage prediction network $\mathcal{N}_c$ morphs the template cage mesh (a 42-vertex sphere) into the initial cage enveloping the source shape. In Fig 14 and Table 1c we compare to two alternative design choices for this module: an Identity module retains the template cage, and a source-invariant module in which we optimize the template cage's vertex coordinates with respect to all targets in the dataset, but then use the same fixed cage for testing. Learning source-specific cages produces deformations closest to the target with minimum detail sacrifice. As expected, fixing the template cage produces more rigid deformations, yielding lower distortion at the price of less-aligned results.
+
+# 6. Conclusion
+
+We show that classical cage-based deformation provides a low-dimensional, detail-preserving deformation space directly usable in a deep-learning setting. We implement cage
+
+
+Source $S_{s}$
+
+
+Target $S_{t}$
+
+
+$\mathcal{L}_{\mathrm{lap}}$
+
+
+$\mathcal{L}_{\mathrm{p2f}}$
+
+
+$\mathcal{L}_{\mathrm{normal}}$
+
+
+Figure 13: The effect of different shape preservation losses, note that all results include $\mathcal{L}_{\mathrm{symm}}$ .
+Figure 14: The effect of source-cage prediction. We compare our per-instance prediction of $\mathcal{N}_c$ with (1) a static spherical cage (top right) and (2) a single optimized cage prediction over the entire training set (bottom right). Our approach achieves better alignment with the target shape.
+
+weight computation and cage-based deformation as differentiable network layers, which could be used in other architectures. Our method succeeds in generating feature-preserving deformations for synthesizing shape variations and deformation transfer, and better preserves salient geometric features than competing methods.
+
+A limitation of our approach is that we focus on the deformation quality produced by the predicted cages: hence, the cage geometry itself is not designed to be comparable to professionally-created cages for 3D artists. Second, our losses are not quite sufficient to always ensure rectilinear/planar/parallel structures in man-made shapes are perfectly preserved (Fig 13). Third, for certain types of deformations other parameterizations might be a more natural choice, such as skeleton-based deformation for articulations, nonetheless the idea presented in this paper can be adopted for similarly.
+
+Our method provides an extensible and versatile framework for data-driven generation of high detail 3D geometry. In the future we would like to incorporate alternative cage weight computation layers, such as Green Coordinates [18]. Unlike MVC, this technique is not affine-invariant, and thus would introduce less affine distortion for large articulations (see the second row fourth column in Fig 9). We also plan to use our method in other applications such as registration, part assembly, and generating animations.
+
+# Acknowledgments
+
+We thank Rana Hanocka and Dominic Jack for their extensive help. The robot model in Figures 1 and 9 is from SketchFab, licensed under CC-BY. This work was supported in part by gifts from Adobe, Facebook and Snap.
+
+# References
+
+[1] Federica Bogo, Javier Romero, Matthew Loper, and Michael J Black. FAUST: Dataset and evaluation for 3D mesh registration. In CVPR, pages 3794-3801, 2014.
+[2] Stéphane Calderon and Tamy Boubekeur. Bounding proxies for shape approximation. ACM Trans. Graph., 36(4):57, 2017.
+[3] Angel X. Chang, Thomas Funkhouser, Leonidas Guibas, Pat Hanrahan, Qixing Huang, Zimo Li, Silvio Savarese, Manolis Savva, Shuran Song, Hao Su, Jianxiong Xiao, Li Yi, and Fisher Yu. ShapeNet: An information-rich 3D model repository. Technical Report arXiv:1512.03012 [cs.GR], 2015.
+[4] Lin Gao, Jie Yang, Yi-Ling Qiao, Yu-Kun Lai, Paul L Rosin, Weiwei Xu, and Shihong Xia. Automatic unpaired shape deformation transfer. In SIGGRAPH Asia, 2018.
+[5] 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 Trans. Graph., 38(6):243:1-243:15, 2019.
+[6] Thibault Groueix, Matthew Fisher, Vladimir Kim, Bryan Russell, and Mathieu Aubry. Unsupervised cycle-consistent deformation for shape matching. In SGP, 2019.
+[7] Thibault Groueix, Matthew Fisher, Vladimir G Kim, Bryan C Russell, and Mathieu Aubry. 3D-CODED: 3D correspondences by deep deformation. In ECCV, 2018.
+[8] Thibault Groueix, Matthew Fisher, Vladimir G Kim, Bryan C Russell, and Mathieu Aubry. AtlasNet: A papier-mâché approach to learning 3D surface generation. In CVPR, 2018.
+[9] Rana Hanocka, Noa Fish, Zhenhua Wang, Raja Giryes, Shachar Fleishman, and Daniel Cohen-Or. ALIGNNet: partial-shape agnostic alignment via unsupervised learning. ACM Trans. Graph., 38(1):1, 2018.
+[10] Haibin Huang, Evangelos Kalogerakis, Siddhartha Chaudhuri, Duygu Ceylan, Vladimir G Kim, and Ersin Yumer. Learning local shape descriptors from part correspondences with multiview convolutional networks. ACM Trans. Graph., 37(1), 2018.
+[11] Qixing Huang, Hai Wang, and Vladlen Koltun. Single-view reconstruction via joint analysis of image and shape collections. ACM Trans. Graph., 34(4):87:1-87:10, 2015.
+[12] Qi-Xing Huang, Bart Adams, Martin Wicke, and Leonidas J. Guibas. Non-rigid registration under isometric deformations. In SGP, 2008.
+[13] Dominic Jack, Jhony K Pontes, Sridha Sridharan, Clinton Fookes, Sareh Shirazi, Frederic Maire, and Anders Eriksson. Learning free-form deformations for 3D object reconstruction. In ACCV, 2018.
+[14] Pushkar Joshi, Mark Meyer, Tony DeRose, Brian Green, and Tom Sanocki. Harmonic coordinates for character articulation. ACM Trans. Graph., 26(3), 2007.
+[15] Tao Ju, Scott Schaefer, and Joe Warren. Mean value coordinates for closed triangular meshes. ACM Trans. Graph., 24(3):561-566, 2005.
+[16] Hao Li, Linjie Luo, Daniel Vlasic, Pieter Peers, Jovan Popovic, Mark Pauly, and Szymon Rusinkiewicz. Tempo
+
+rally coherent completion of dynamic shapes. ACM Trans. Graph., 31(1), 2012.
+[17] Hao Li, Robert W. Sumner, and Mark Pauly. Global correspondence optimization for non-rigid registration of depth scans. In SGP, 2008.
+[18] Yaron Lipman, David Levin, and Daniel Cohen-Or. Green coordinates. ACM Trans. Graph., 27(3), 2008.
+[19] Shichen Liu, Tianye Li, Weikai Chen, and Hao Li. Soft Rasterizer: A differentiable renderer for image-based 3D reasoning. In ICCV, 2019.
+[20] Lars Mescheder, Michael Oechsle, Michael Niemeyer, Sebastian Nowozin, and Andreas Geiger. Occupancy networks: Learning 3D reconstruction in function space. In CVPR, 2019.
+[21] Leonardo Sacht, Etienne Vouga, and Alec Jacobson. Nested cages. ACM Trans. Graph., 34(6):170:1-170:14, 2015.
+[22] Tamar Rott Shaham, Tali Dekel, and Tomer Michaeli. Singan: Learning a generative model from a single natural image. In ICCV, 2019.
+[23] Olga Sorkine and Marc Alexa. As-rigid-as-possible surface modeling. In SGP, 2007.
+[24] Olga Sorkine and Mario Botsch. Interactive shape modeling and deformation. In EUROGRAPHICS Tutorials, 2009.
+[25] Robert W. Sumner and Jovan Popovic. Deformation transfer for triangle meshes. ACM Trans. Graph., 23(3):399-405, 2004.
+[26] Qingyang Tan, Lin Gao, Yu-Kun Lai, and Shihong Xia. Variational autoencoders for deforming 3D mesh models. In CVPR, 2018.
+[27] Jean-Marc Thiery, Julien Tierny, and Tamy Boubekeur. CageR: Cage-based reverse engineering of animated 3D shapes. Computer Graphics Forum, 31(8):2303-2316, 2012.
+[28] 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.
+[29] Weiyue Wang, Duygu Ceylan, Radomir Mech, and Ulrich Neumann. 3DN: 3D deformation network. In CVPR, 2019.
+[30] Zizhao Wu, Ruyang Shou, Yunhai Wang, and Xinguo Liu. Interactive shape co-segmentation via label propagation. Computers & Graphics, 38:248-254, 2014.
+[31] Chuhua Xian, Hongwei Lin, and Shuming Gao. Automatic cage generation by improved OBBs for mesh deformation. The Visual Computer, 28(1):21-33, 2012.
+[32] Kai Xu, Honghua Li, Hao Zhang, Daniel Cohen-Or, Yueshan Xiong, and Zhi-Quan Cheng. Style-content separation by anisotropic part scales. ACM Trans. Graph., 29(6):184:1-184:10, 2010.
+[33] Kangxue Yin, Zhiqin Chen, Hui Huang, Daniel Cohen-Or, and Hao Zhang. LOGAN: Unpaired shape transform in latent overcomplete space. ACM Trans. Graph., 38(6):198:1-198:13, 2019.
+[34] M. E. Yumer and N. J. Mitra. Learning semantic deformation flows with 3D convolutional networks. In ECCV, 2016.
+[35] Matthew D Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. In ECCV, 2014.
+[36] Chenyang Zhu, Kai Xu, Siddhartha Chaudhuri, Renjiao Yi, and Hao Zhang. SCORES: Shape composition with recursive substructure priors. ACM Trans. Graph., 37(6), 2018.
\ No newline at end of file
diff --git a/neuralcagesfordetailpreserving3ddeformations/images.zip b/neuralcagesfordetailpreserving3ddeformations/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..1870255735b4e607b32dea990518758b1dac9914
--- /dev/null
+++ b/neuralcagesfordetailpreserving3ddeformations/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7c0b8b2b2f50522cb6ac27d7e911d6f5fde07f35b515d90145cd0a96e94c21ad
+size 558989
diff --git a/neuralcagesfordetailpreserving3ddeformations/layout.json b/neuralcagesfordetailpreserving3ddeformations/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..df49ab840cd159cd8cf7516195ee177c07565a7f
--- /dev/null
+++ b/neuralcagesfordetailpreserving3ddeformations/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f0011486e018e9c6a579bdfccf54e1d032ae53f78d2ce269bfd169aa8d64e817
+size 488245
diff --git a/neuralcontourslearningtodrawlinesfrom3dshapes/53410849-a51d-4e49-908f-05b46a35df7e_content_list.json b/neuralcontourslearningtodrawlinesfrom3dshapes/53410849-a51d-4e49-908f-05b46a35df7e_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..756eda1f3d605e507e15fd4def556759119fc701
--- /dev/null
+++ b/neuralcontourslearningtodrawlinesfrom3dshapes/53410849-a51d-4e49-908f-05b46a35df7e_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a3ff579aac30040c78097f189d4254f601c1bdc18fa4c66483a08a2b5a9f25d6
+size 78022
diff --git a/neuralcontourslearningtodrawlinesfrom3dshapes/53410849-a51d-4e49-908f-05b46a35df7e_model.json b/neuralcontourslearningtodrawlinesfrom3dshapes/53410849-a51d-4e49-908f-05b46a35df7e_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..7822a5bad763b3ecec37dc84b1bd9b61e880f052
--- /dev/null
+++ b/neuralcontourslearningtodrawlinesfrom3dshapes/53410849-a51d-4e49-908f-05b46a35df7e_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:68a6b38e064d75760a11c8d038ef3072030bdb015d4dd72cf9bfbfb73c663c6b
+size 97019
diff --git a/neuralcontourslearningtodrawlinesfrom3dshapes/53410849-a51d-4e49-908f-05b46a35df7e_origin.pdf b/neuralcontourslearningtodrawlinesfrom3dshapes/53410849-a51d-4e49-908f-05b46a35df7e_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..a090022e732a0c08ae652b517b18604b25538272
--- /dev/null
+++ b/neuralcontourslearningtodrawlinesfrom3dshapes/53410849-a51d-4e49-908f-05b46a35df7e_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e5d484029ae3a67ee6b4e996a13eb5fc98314d51c3c4913a291ce191c3f84987
+size 2483735
diff --git a/neuralcontourslearningtodrawlinesfrom3dshapes/full.md b/neuralcontourslearningtodrawlinesfrom3dshapes/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..d2a10ddea9e7b33628dd8ae5a2f37e527e9157b3
--- /dev/null
+++ b/neuralcontourslearningtodrawlinesfrom3dshapes/full.md
@@ -0,0 +1,356 @@
+# Neural Contours: Learning to Draw Lines from 3D Shapes
+
+
+Difan Liu1
+
+
+3D model
+Figure 1: Given a 3D model (left), our network creates a line drawing that conveys its structure more accurately compared to using other methods individually, such as Occluding Contours [1], Apparent Ridges [22], and pix2pix variants [37]. Please see supplementary material for results on many more models.
+
+
+1University of Massachusetts Amherst
+
+
+Occluding Contours
+
+
+Mohamed Nabail1
+
+
+Apparent Ridges
+
+
+Aaron Hertzmann2
+Evangelos Kalogerakis1
+$^{2}$ Adobe Research
+
+
+pix2pixHD
+
+
+
+
+Neural Contours
+
+# Abstract
+
+This paper introduces a method for learning to generate line drawings from 3D models. Our architecture incorporates a differentiable module operating on geometric features of the 3D model, and an image-based module operating on view-based shape representations. At test time, geometric and view-based reasoning are combined with the help of a neural module to create a line drawing. The model is trained on a large number of crowdsourced comparisons of line drawings. Experiments demonstrate that our method achieves significant improvements in line drawing over the state-of-the-art when evaluated on standard benchmarks, resulting in drawings that are comparable to those produced by experienced human artists.
+
+# 1. Introduction
+
+To draw an accurate line drawing of an object, an artist must understand the 3D shape, and select lines that will communicate that shape to a viewer. Modeling how artists perform this process remains an important open problem, intimately tied to 3D shape understanding, visual perception, and image stylization. Recent image stylization and
+
+image translation algorithms learn styles from examples, but do not take the underlying 3D geometry into account and generally do not capture outline drawing styles well. In contrast, analytic geometry-based algorithms effectively capture basic line drawing properties, and have been used in many computer animation films and games. However, these methods can still fail to capture properties of real drawings, and require parameter tuning for each individual model.
+
+This paper presents a method for learning to generate line drawings from 3D models. Our model employs two branches. The first branch implements geometric line drawing based on suggestive contours, apparent ridges, ridges, and valleys. Existing geometric line drawing approaches employ hard-to-tune user-specified parameters that need to be determined separately for each object. In contrast, our method learns to automatically select these parameters through a differentiable module. The second branch is represented as a standard image translation network, but using view-based shape representations as input. We show that combining both branches produces the best results.
+
+A number of challenges exist in developing such an approach. First, classic geometric lines are not readily dif
+
+ferentiable with respect to their parameters. We combine soft thresholding functions along with image-space rendered maps of differential surface properties. Another major challenge is to combine the different geometric lines with purely learned ones. We show that a ranking module trained to assess the plausibility of the line drawing can be used to drive this combination. Finally, another challenge is to gather suitable training sets. Previous work has performed laborious in-person data collection from artists [3]. While this can provide high-quality datasets, it does not scale well, and it also produces data without much stylistic consistency. Can we train effective drawing models without employing artists to create many drawings? We describe a crowdsourcing approach to gather data using unskilled crowdworkers for ranking evaluations.
+
+We evaluated our method based on Cole et al.'s [3] artist-created drawings, and find that our crowdsourced training produces state-of-the-art results. We also gathered a new extended test dataset involving more diverse 3D models following Cole et al.'s methodology. In all test datasets, our method generated line drawings that are significantly more accurate and perceptually more similar to artists' drawings compared to prior work, including geometric methods and image translation networks. We also conducted a MTurk evaluation study. We found that crowdworkers selected our line drawings as the best to convey a reference 3D model twice as frequently compared to the other techniques.
+
+# 2. Related Work
+
+How do artists create line drawings, and how do people perceive them? This question has been studied in art history [10], philosophy [11], neuroscience [36], and perceptual psychology [15, 24, 26]. Occluding contour algorithms are the foundation of non-photorealistic 3D computer graphics; see [1] for a survey.
+
+Generalizations of occluding contours improved line drawing algorithms, beginning with the suggestive contours [5, 27], and continuing with Apparent Ridges [22] and several other methods; see [4] for a survey of contour generalizations. Cole et al. [3] performed a thorough study, enlisting human artists to create line drawings of known 3D objects. They found that existing methods could account for the majority of human-drawn lines, but many differences remained between hand-drawn and computer-generated lines. Gryaditskaya et al. [12] collect and analyze professional illustrations of objects. While these analyses yield deep insights into the nature of hand-drawn lines, the synthesis algorithms fail to match the quality of hand-drawn lines, while also requiring several parameters to be set by a user on a case-by-case basis.
+
+Meanwhile, learned image stylization algorithms in computer vision and computer graphics, e.g., [16, 9, 40, 19], have shown the potential of learning to capture artistic
+
+styles. However, these methods do not capture dependence on an underlying 3D shape, and often neglect 3D understanding. Few style transfer methods are capable of effective stylization with line drawings. Two exceptions are Im2Pencil [28] and Inoue et al. [17], which separate object outlines from interiors, but do not explicitly consider 3D shape. StyLit stylizes 3D models [7] but does not capture line drawings.
+
+To date, there has been almost no previous work that learns artistic style for line drawings of 3D models. Lum and Ma [29] proposed an SVM for learning lines from interactive user feedback on a single shape. Kalogerakis et al. [23] proposed learning hatching styles from combinations of surface orientation fields and geometric features. Cole et al. [3] proposed linear combinations of geometric features and decision trees to learn line drawing parameters from a small number of examples. In contrast, we learn a model that combines existing geometric and stylization algorithms, a novel large dataset, and modern neural architectures to produce a state-of-the-art line drawing algorithm.
+
+# 3. Line Drawing Model
+
+We first describe our architecture for computing a line drawing from a 3D shape. The model takes a 3D shape and camera as input, and outputs a line drawing. The 3D shape is represented as a triangle mesh that approximates a smooth surface. The output line drawing is specified as a 2D grayscale image. Our architecture has two branches (Figure 3): a "geometry branch" that performs line drawing based on geometric features of the 3D model, and an "image translation branch" that learns lines through image-to-image translation. Parameters for the geometric lines are set at run-time by a "ranking module". Training for the model is described in Section 5.
+
+# 3.1. Geometry branch
+
+The first branch of our model is based on classic geometry-based line drawing definitions, namely suggestive contours, ridges, valleys, and apparent ridges. Given a camera viewpoint and 3D shape, each of these formulations contributes to a grayscale pixel intensity map, which are combined to produce the final image $\mathbf{I}$ . Their contributions depend on a set of thresholding parameters. Instead of setting these by hand, we introduce differentiable formulations to allow learning the thresholding parameters.
+
+The first set of curves produced are Occluding Contours [1]. The model generates a binary mask $\mathbf{I}_C$ with "on" pixels at projections of occluding contours (Figure 2b), computed using the interpolated contour algorithm [16]. Occluding contours are parameter-free, and do not require any learning; they are used in all of our renderings. Another parameter-free set of lines are mesh boundaries, also rendered as a binary mask $\mathbf{I}_B$ .
+
+
+(a)
+
+
+
+
+
+
+
+
+
+
+(c)
+(d)
+Figure 2: Given a 3D shape (a), we show (b) occluding contours, (c,d) unfiltered and filtered suggestive contours, (e,f) unfiltered and filtered ridges and valleys, (g,h) unfiltered and filtered apparent ridges.
+
+
+(e)
+(f)
+
+
+(g)
+(h)
+
+Suggestive Contours (SCs) [5] represent surface points that are occluding contours in nearby views. See DeCarlo [5] for a detailed explanation and definitions. Let $\kappa$ be the radial curvature, and $D\kappa$ be the directional derivative of the radial curvature at a surface point, as defined in [5]. SCs are points where $\kappa = 0$ and $D\kappa > 0$ . For meshes, these curves are computed by interpolation to find the zero set of $\kappa$ . As seen in Figure 2c, rendering all SCs is undesirable. Instead, "weak" SCs are filtered by only rendering SCs with $D\kappa > t_S$ for some threshold $t_S$ , and tapered off below $t_S$ (Figure 2d) [5]. In previous work, this $t_S$ parameter is manually adjusted for each 3D model. In order to determine this threshold automatically, we introduce a formulation that is differentiable with respect to $t_S$ . For a given threshold, the method outputs a per-pixel intensity map $\mathbf{I}_S$ . We build two image-space maps. First, $S(\mathbf{x})$ is a binary map that is 1 at the projections of suggestive contours, and 0 otherwise, where $\mathbf{x}$ indexes pixel locations in the image. Second, $D\kappa(\mathbf{x})$ associates each pixel $\mathbf{x}$ to the directional derivative of the radial curvature at the surface point visible from that pixel. Figure 3 shows these two image-space maps for an input 3D shape. Then, the SC image is computed for each pixel $\mathbf{x}$ as:
+
+$$
+\mathbf {I} _ {S} (\mathbf {x}, t _ {S}) = S (\mathbf {x}) \max \left(1 - \frac {t _ {S}}{D \kappa (\mathbf {x})}, 0\right) \tag {1}
+$$
+
+The second term filters out lines with small $D\kappa$ . For $t_S = 0$ , all suggestive contours are displayed, while, as $t_S$ increases, they are eliminated. The inverse function is used rather than a linear dependence, e.g., $\max(D\kappa(\mathbf{x}) - t_S, 0)$ , to produce a sharper tapering, following the implementation in rtsc [34]. DeCarlo et al. [5] also proposed filtering according to the radial direction magnitude, but we did not find that it was much different.
+
+Ridges and Valleys (RVs) are viewpoint-independent surface extrema; see [30] for a detailed explanation. As with SCs, we introduce a formulation that is differentiable with respect to the filtering function. We introduce a threshold for ridges $(t_R)$ and one for valleys $(t_V)$ . The per-pixel intensity maps showing locations of ridges and valleys are generated as $R(\mathbf{x})$ and $V(\mathbf{x})$ , along with maps $\kappa_1(\mathbf{x}), \kappa_2(\mathbf{x})$ containing the two principal curvatures of the surface point visible from each pixel, respectively. Ridges and valleys are then filtered as:
+
+$$
+\mathbf {I} _ {R} (\mathbf {x}, t _ {R}) = R (\mathbf {x}) \max \left(1. 0 - \frac {t _ {R}}{\kappa_ {1} (\mathbf {x})}, 0. 0\right) \tag {2}
+$$
+
+$$
+\mathbf {I} _ {V} (\mathbf {x}, t _ {V}) = V (\mathbf {x}) \max \left(1. 0 - \frac {t _ {V}}{\kappa_ {2} (\mathbf {x})}, 0. 0\right) \tag {3}
+$$
+
+The interpretation of the formula is similar to SCs and yields RVs consistent with rtsc [34]. Figures 2e and 2f show an example of RVs before and after filtering.
+
+Apparent Ridges (ARs) [22] are object ridges from a given camera position, e.g., object points that "stick out" to the viewer; see [22] for a detailed description. We define $A(\mathbf{x})$ as the map containing ARs, and filter by the view-dependent curvature $\kappa_{t}(\mathbf{x})$ :
+
+$$
+\mathbf {I} _ {A} (\mathbf {x}, t _ {A}) = A (\mathbf {x}) \max \left(1. 0 - \frac {t _ {A}}{\kappa_ {t} (\mathbf {x})}, 0. 0\right) \tag {4}
+$$
+
+Figures 2g and 2h show ARs before and after filtering.
+
+Line drawing function. Given each of these functions, we define a combined geometric line drawing function $\mathbf{I}_G$ conditioned on the set of parameters $\mathbf{t} = \{t_S, t_R, t_V, t_A\}$ (we drop the pixel id $\mathbf{x}$ for clarity):
+
+$$
+\mathbf {I} _ {G} (\mathbf {t}) = \max \left(\mathbf {I} _ {S} \left(t _ {S}\right), \mathbf {I} _ {R} \left(t _ {R}\right), \mathbf {I} _ {V} \left(t _ {V}\right), \mathbf {I} _ {A} \left(t _ {A}\right), \mathbf {I} _ {C}, \mathbf {I} _ {B}\right) \tag {5}
+$$
+
+where the max function operates per pixel independently.
+
+Preprocessing. In a pre-processing step, we compute the curvatures required for the above lines from the input mesh. using [33]. We normalize object size so that the longest dimension is equal to 1 and the curvature quantities are divided by the their $90th$ percentile value.
+
+
+Figure 3: Our network architecture: the input 3D model is processed by a geometry branch operating on curvature features, and an image-based branch operating on view-based representations. Their outputs are combined to create a line drawing, which is in turn evaluated by a ranking module that helps determining optimal line drawing parameters.
+
+# 3.2. Image translation branch
+
+An alternative approach to create line drawings from shapes is to use a neural network that directly translates shape representations to 2D images. To simplify the mapping, one can feed view-based shape representations as input to such network (i.e., depth images, shaded renderings), which also allows us to re-purpose existing image-to-image translation networks. Our method also incorporates this generative approach. Specifically, following pix2pixHD [37], we used an image translation network module, shown in Figure 3. Details about the architecture are provided in the supplementary material. As input to the network, we use a combination of view-based representations. First, we use a depth image $\mathbf{E}$ of the shape from the given camera. Then we also compute shaded rendering images representing Lambertian reflectance (diffuse shading) [31] created from the dot product of surface normals with light direction (light is at the camera). We use these shaded renderings because shading features are important predictors of where people draw lines [3]. To increase robustness to rendering artifacts, we also smooth the mesh normals using diffusion [20] with different smoothing parameters (more details in the supplementary material). As a result, we create a stack of six smoothed versions of shaded images $\mathbf{O} = \{\mathbf{O}_1,\mathbf{O}_2,\dots,\mathbf{O}_6\}$ , which are concatenated channelwise with the depth image (Figure 3, bottom left). The resolution of all images is set to $768\times 768$ . We found that using these combined multiple inputs produces better results.
+
+We also experimented with feeding rendered curvature maps, however, as we discuss in our experiments section, the results did not improve. Finally, since the network outputs per-pixel line probabilities, we use the ridge detection
+
+procedure of Cole et al. [3] so that the output image $\mathbf{I}_L$ contains cleaner curves.
+
+# 3.3. Neural Ranking Module
+
+As discussed earlier, the thresholding parameters $\mathbf{t}$ play an important role in determining the existence and tapering of the geometric lines. The threshold values determine how much intensity each geometric line will contribute to the final image, if at all. Our approach determines the threshold parameters $\mathbf{t}$ at test time, since different 3D models may be best rendered by different combinations of geometric lines. We employ a Neural Ranking Module (NRM) that scores the quality of a given line drawing. Then, at test time, the thresholds $\mathbf{t}$ are set by optimization of the NRM score.
+
+Specifically, the module is a function of the merged line drawing $\mathbf{I}(\mathbf{t}) = \max (\mathbf{I}_G(\mathbf{t}),\mathbf{I}_L)$ , the depth image of the shape from the given viewpoint $\mathbf{E}$ , and also the multi-scale shaded images $\mathbf{O}$ (Figure 3). The module is a neural network $f(\mathbf{I}(\mathbf{t}),\mathbf{E},\mathbf{O},\phi) = p$ , where $p$ is the output score, and $\phi$ are the learned network parameters. At test time, we aim to maximize this function (i.e., the quality of the drawing) by modifying the parameters $\mathbf{t}$ :
+
+$$
+\underset {\mathbf {t}} {\arg \max } f (\mathbf {I} (\mathbf {t}), \mathbf {E}, \mathbf {O}) \tag {6}
+$$
+
+The maximization is done with L-BFGS using analytic gradients $(\partial f / \partial \mathbf{I})\cdot (\partial \mathbf{I} / \partial \mathbf{t})$ , computed from backpropagation since our modules are differentiable. We also impose a nonnegativity constraint on the parameters $\mathbf{t}$ , as specified by the geometric definitions of the lines. To avoid local minima, we try multiple initializations of the parameter set $\mathbf{t}$ through a grid search.
+
+The function 6 is also used to choose whether to render mesh boundaries $\mathbf{I}_B$ . This is simply a binary check that passes if the function value is higher when boundaries are included in $\mathbf{I}(t)$ . Once the ranking network has determined the optimal parameters $\mathbf{t}_{opt}$ , the final drawing is output as $\mathbf{I}(\mathbf{t}) = \max (\mathbf{I}_G(\mathbf{t}_{opt}),\mathbf{I}_L)$ . We note that the NRM does not adjust the contribution of the image translation module at test time. We tried using a soft thresholding function on its output $\mathbf{I}_L$ , but it did not help. Instead, during training, the image translation module is fine-tuned with supervisory signal from the NRM. We also experimented with directly predicting the parameters $\mathbf{t}$ with a feed-forward network, but we found that this strategy resulted in much worse performance compared to test-time optimization of $\mathbf{t}$ ; see the supplemental material for details.
+
+NRM architecture. The neural ranking module follows the ResNet-34 architecture. The input is the line drawing $\mathbf{I}$ , depth $\mathbf{E}$ , and shaded maps $\mathbf{O}$ at $768 \times 768$ resolution that are concatenated channel-wise. To handle this input, we added one more residual block after the original four residual blocks of ResNet-34 to downsample the feature map by a factor of 2. The newly added residual block produces a $12 \times 12 \times 1024$ map. After mean pooling, we get a 1024-dimension feature vector. We remove the softmax layer of ResNet-34 and use a fully connected layer to output the "plausibility" value. Details about the architecture can be found in the supplementary material.
+
+# 4. Dataset
+
+To train the neural ranking and image translation modules, we need a dataset of line drawings. Although there are a few large-scale human line drawing datasets available online [21, 35], the drawings are not associated to reference 3D shapes and include considerable distortions. An alternative scenario is to ask artists to provide us with line drawings depicting training 3D shapes. However, gathering a large number of human line drawings for training is labor-intensive and time-consuming. Cole et al.'s dataset [3] was gathered this way, and is too small on its own to train a deep model. In contrast, for each training shape, we generated multiple synthetic line drawings using rtsc [34] through several combinations of different lines and thresholds, and asked human subjects to select the best drawing in a relative comparison setting. Since selecting the best drawing can be subjective, we gathered votes from multiple human subjects, and used only training drawings for which there was consensus. Below we describe our dataset, then we describe the losses to train our modules.
+
+Shape dataset. The first step to create our dataset was to select training 3D shapes from which reference line drawings will be generated. We used three collections: ShapeNet [2], Models Resource [32], and Thingi10K [39]. These
+
+
+Figure 4: A snapshot from our MTurk questionnaires used for gathering training line drawing comparisons. The most voted answer is highlighted as red.
+
+shape collections contain a large variety of human-made and organic objects. In the case of ShapeNet, we sampled a random subset of up to 200 shapes from each category, to avoid category imbalance. All models have oriented ground planes specified. We removed duplicate shapes and avoided sampling low-resolution shapes with fewer than 2K faces. We also processed the meshes by correctly orienting polygons (front-facing with respect to external viewpoints), and repairing connectivity (connect geometrically adjacent but topologically disconnected polygons, weld coincident vertices). The number of shapes in all collections is 23,477.
+
+Generating candidate line drawings. We select two random camera positions for each 3D model under the constraint that they are elevated 30 degrees from the ground plane, are aligned with the upright axis, and they point towards the centroid of the mesh (i.e., only the azimuth of each camera position is randomized). Then for each of the two camera positions, we generated 256 synthetic line drawings using all possible combinations of suggestive contours, apparent ridges, ridges with valleys under 4 thresholds (e.g. suggestive contours have 4 different thresholds [0.001, 0.01, 0.1, off]), including combinations with and without mesh creases and borders ( $4 \times 4 \times 4 \times 2 \times 2 = 256$ combinations). We also generated additional synthetic line drawings using Canny edges and edge-preserving filtering [8] on rendered shaded images of shapes, each with 4 different edge detection thresholds resulting in 8 more drawings. In total, this process resulted in 264 line drawings for each shape and viewpoint. These line drawings can be similar to each other, so we selected the 8 most distinct ones by applying k-mediods ( $k = 8$ ) and using Chamfer distance between drawn lines as metric to recover the clusters.
+
+Questionnaires. We then created Amazon MTurk questionnaires, where, on each page, we showed 8 candidate line drawings of a 3D shape, along with rendered images of it from different viewpoints [38] (Figure 4). Each page asked human participants to select the line drawing that best conveyed the rendered shape, and was most likely to be selected by other people as well. We also provided the option not to select any drawing (i.e., if none depicted the shape reliably).
+
+We employed sentinels (drawings of irrelevant shapes) to filter unreliable participants. We had total 3,739 reliable MTurk participants in our study (see supplementary material for details). For each shape and viewpoint, we gathered votes from 3 different participants. We accepted a drawing for training if it was chosen by at least two users. As a result, we gathered 21,609 training line drawings voted as "best" per shape and viewpoint. A random subset (10% of the original dataset) was kept for hold-out validation.
+
+# 5. Training
+
+The goal of our training procedure is to learn the parameters $\phi$ of the neural ranking module, and the parameters $\theta$ of the image translation branch from our training dataset, so that high-quality drawings can be generated for 3D models.
+
+NRM training. To train the Neural Ranking Module $f$ , we use a ranking loss based on above crowdsourced comparisons. Given a drawing $\mathbf{I}_{best}^{s,c}$ selected as "best" for shape $s$ and viewpoint $c$ , we generate 7 pairwise comparisons consisting of that drawing and every other drawing $\mathbf{I}_{other,j}^{s,c}$ that participated in the questionnaire. We use the hinge ranking loss to train the module [14, 6]:
+
+$$
+\begin{array}{l} L _ {R} = \sum_ {s, c, j} \max (m - f (\mathbf {I} _ {\text {b e s t}} ^ {s, c}, \mathbf {E}, \mathbf {O}, \phi) \\ + f \left(\mathbf {I} _ {\text {o t h e r}, j} ^ {s, c}, \mathbf {E}, \mathbf {O}, \phi\right), 0) \tag {7} \\ \end{array}
+$$
+
+where $m$ is the margin set to 1.0.
+
+Image translation module training. Based on the line drawings selected as "best" per reference shape and viewpoint, we use cross-entropy to train the image translation module. Specifically, we treat the intensity values $\mathbf{I}_{best}$ as target probabilities for drawing, and measure the cross-entropy of the predicted output $\mathbf{I}_L$ and $\mathbf{I}_{best}$ :
+
+$$
+L _ {c e} = - \sum_ {x} \left(\mathbf {I} _ {b e s t} (x) \log \mathbf {I} _ {L} (x) + \left(1 - \mathbf {I} _ {b e s t} (x)\right) \log \left(1 - \mathbf {I} _ {L} (x)\right)\right)
+$$
+
+We then further end-to-end fine-tune the image translation module along with the NRM module based on the ranking loss. We also experimented with adding the GAN-based losses of pix2pix [18] and pix2pixHD [37], yet, their main effect was only a slight sharpening of existing lines, without adding or removing any new ones.
+
+Implementation. For the ranking module, we used the Adam optimizer [25] with learning rate $2 \cdot 10^{-5}$ and batch size 32. For the image translation module, we used Adam with learning rate set to $2 \cdot 10^{-4}$ and batch size 2. The PyTorch implementation and our dataset are available at:
+
+http://github.com/DifanLiu/NeuralContours
+
+# 6. Results
+
+We evaluate our method and alternatives quantitatively and qualitatively. To perform our evaluation, we compare synthesized line drawings with ones drawn by humans for reference shapes. Below, we describe our test datasets, evaluation measures, and comparisons with alternatives.
+
+Test Datasets. Cole et al. [3] conducted a study in which artists made line drawings intended to convey given 3D shapes. The dataset contains 170 precise human line drawings of 12 3D models under different viewpoints and lighting conditions for each model. Their resolution is $1024 \times 768$ pixels. Since the number of 3D test models is small, we followed the same setup as Cole et al. to gather 88 more human line drawings from 3 artists for 44 3D models under two viewpoints (same resolution), including printing renderings, scanning their line drawings, and aligning them. Our new test dataset includes 13 3D animal models, 10 human body parts, 11 furniture, 10 vehicles and mechanical parts. All 3D models (including the ones from Cole et al.'s dataset) are disjoint from the training and validation sets.
+
+Evaluation measures. We use precision and recall measures for comparing synthetic drawings to human-made drawings, computed in the manner proposed by Cole et al. [3]. Each drawing is first binarized through thinning and thresholding. Precision is defined as the fraction of drawn pixels in a synthetic drawing that are near any drawn pixel of the human drawing of the same shape under the same viewpoint. Recall is defined as the fraction of pixels in the human drawing that are near any line of the synthetic drawing. Two pixels are "near" if they are within $1\mathrm{mm}$ in the coordinates of the physical page the drawing was made on; this distance was based on measurements of agreement between human drawings in Cole et al.'s dataset. We aggregate precision and recall into F1-score.
+
+We also report Intersection over Union (IoU) to measure overlap between synthetic and human drawings, based on the same definition of nearness. Lastly, we report the symmetric Chamfer distance, which measures the average distance between lines of synthetic and human drawings. Since both human and synthetic drawings include aligned silhouettes, all measures will appear artificially improved because of them. To avoid this biasing, we remove silhouettes from all human and synthetic drawings and measure performance based on the rest of the lines only.
+
+Comparisons. We compare our method, Neural Contours (NCs), with several alternatives. (1) Occluding Contours. (2-4) SC-rtsc, RV-rtsc, AR-rtsc using rtsc [34] with the default thresholding parameters; occluding contours are also included in all renderings. (5) all-rtsc renders SCs, RVs, and ARs all together with rtsc [34], using the default parameters. We note that we also tried to tune these parameters using an exhaustive grid search to minimize average Chamfer distance in the training set, but this resulted in worse performance (see supplementary material). (6) decision tree: The method of Cole et al. [3], namely, a decision tree (M5P from Weka [13]) operating on rendered curvature and gradient maps, trained on our dataset. (7) Canny edges extracted from the shaded shape rendering, as suggested by [3]. The edge detection parameters are selected using grid search to minimize average Chamfer distance in our training dataset. (8) pix2pixHD
+
+
+3D model
+
+
+all-rtsc
+
+
+AR-rtsc
+
+
+RV-rtsc
+
+
+SC-rtsc
+
+
+Canny Edges
+
+
+Decision Tree
+
+
+pix2pixHD
+
+
+Neural Contours
+Figure 5: Comparisons with other methods. Neural Contours are more consistent with underlying shape features.
+
+
+Artist's Drawing
+
+| Method | IoU | CD | F1 | P | R |
| contours | 31.5 | 31.70 | 34.8 | 83.0 | 22.0 |
| AR-rtsc | 53.4 | 12.56 | 54.1 | 52.5 | 55.7 |
| RV-rtsc | 49.8 | 12.96 | 52.3 | 44.5 | 63.5 |
| SC-rtsc | 40.5 | 13.96 | 44.0 | 43.9 | 44.1 |
| all-rtsc | 48.2 | 12.63 | 52.5 | 40.4 | 75.1 |
| Decision Tree | 46.9 | 12.17 | 49.9 | 38.6 | 70.4 |
| Canny Edges | 51.9 | 12.59 | 52.9 | 50.4 | 55.8 |
| pix2pixHD | 45.0 | 15.73 | 48.7 | 69.6 | 37.5 |
| NCs | 57.9 | 10.72 | 60.6 | 60.8 | 60.5 |
+
+image translation [37], trained to output line drawings from an input depth image and shaded renderings of a shape (same as $\mathbf{E}$ , $\mathbf{O}$ in our method). Training was done on the same dataset ("best" drawings) as ours using the GAN and feature matching loss [37]. The original architecture outputs a $4096 \times 2048$ image through three local enhancer networks. In our case, since the input and output have the same resolution ( $1024 \times 768$ ), we use only the global generator of pix2pixHD.
+
+Ablation study. We also compare with training the following reduced variants of our method. NC-geometry uses our geometry-based branch and our neural ranker module. NC-image uses the image translation module alone trained with the same losses as ours, and multi-scale shaded images as input. NC-image-noms uses the image translation module alone trained with the same losses as ours, and using a single shaded and depth image as input (no multi-scale shaded images). NC-curv is an alternative image translation module that uses curvature maps rendered in image-space concatenated with the multi-scale shaded images and depth.
+
+Table 1: Comparisons with competing methods using all drawings from Cole et al.'s dataset. IoU, F1, P, R are reported in percentages, CD is pixel distance.
+
+| Method | IoU | CD | F1 | P | R |
| contours | 43.5 | 24.63 | 49.6 | 90.2 | 34.3 |
| AR-rtsc | 59.9 | 10.64 | 63.3 | 62.6 | 64.0 |
| RV-rtsc | 52.6 | 10.76 | 55.3 | 47.0 | 67.3 |
| SC-rtsc | 46.6 | 12.27 | 50.6 | 52.1 | 49.1 |
| all-rtsc | 51.8 | 10.74 | 56.5 | 43.8 | 79.6 |
| Decision Tree | 49.7 | 11.12 | 53.0 | 41.1 | 74.6 |
| Canny Edges | 58.0 | 11.16 | 61.3 | 56.7 | 66.7 |
| pix2pixHD | 50.5 | 13.35 | 54.2 | 75.1 | 42.4 |
| NCs | 65.2 | 8.71 | 67.6 | 66.3 | 69.0 |
+
+Table 2: Comparisons with other methods using the most "consistent" human drawings from Cole et al.'s dataset.
+
+| Method | IoU | CD | F1 | P | R |
| contours | 49.0 | 19.11 | 54.9 | 92.2 | 39.1 |
| AR-rtsc | 66.8 | 9.19 | 69.9 | 69.2 | 70.7 |
| RV-rtsc | 64.8 | 9.36 | 66.2 | 62.8 | 70.1 |
| SC-rtsc | 65.0 | 9.88 | 63.3 | 61.5 | 65.2 |
| all-rtsc | 64.4 | 9.70 | 68.6 | 58.6 | 82.7 |
| Decision Tree | 62.1 | 8.93 | 61.1 | 50.9 | 76.6 |
| Canny Edges | 65.6 | 8.57 | 64.6 | 59.8 | 70.2 |
| pix2pixHD | 66.0 | 9.62 | 68.2 | 76.9 | 61.2 |
| NCs | 72.4 | 7.25 | 74.6 | 74.5 | 74.8 |
+
+Table 3: Comparisons in our new test dataset.
+
+Results. Tables 1 reports the evaluation measures for Cole et al.'s dataset for competing methods. Specifically, the synthetic drawings are compared with each human line drawing per shape and viewpoint, and the measures are averaged. Since there are artists that draw more consistently than others, we also include Table 2 as an alternative comparison. This table reports the evaluation measures in Cole et al.'s dataset when synthetic drawings are compared only with the most "consistent" human line drawing
+
+| Method | IoU | CD | F1 | P | R |
| NC-geometry | 60.3 | 10.34 | 64.5 | 76.9 | 55.6 |
| NC-image | 60.0 | 9.97 | 62.9 | 65.0 | 61.0 |
| NC-image-noms | 58.4 | 10.85 | 60.7 | 59.1 | 62.3 |
| NC-image-curv | 56.1 | 10.72 | 60.0 | 61.0 | 59.0 |
| NCs | 62.8 | 9.54 | 65.4 | 65.5 | 65.4 |
+
+Table 4: Ablation study.
+
+per shape and viewpoint, defined as the drawing that has the least Chamfer distance to the rest of the human drawings for that shape and viewpoint. We believe this comparison is more reliable than using all drawings, because in this manner, we disregard any "outlier" drawings, and also get a measure of how well methods match the most consistent, or agreeable, human line drawing. Table 3 also reports the evaluation measures for our new dataset. Based on the results, Neural Contours outperforms all competing methods in terms of IoU, Chamfer Distance, and F1, especially when we compare with the most consistent human drawings.
+
+Table 4 reports comparisons with reduced variants of our method for the purpose of our ablation study. Our two-branch architecture offers the best performance compared to using the individual branches alone.
+
+Figure 5 shows characteristic comparisons with competing methods, and Figure 6 shows comparisons with reduced variants of our method. We also include representative human drawings. Both figures indicate that our full method produces lines that convey shape features more similarly to what an artist would do. Figure 1 also shows comparisons with other alternatives. Our method tends to produce more accurate lines that are more aligned with underlying shape features, and with less artifacts.
+
+Are the two branches learning the same lines? To check this hypothesis, we measure the IoU between the line drawings created from the geometry branch alone and the ones created from the image translation branch. The average IoU is $69.4\%$ . This indicates that the two branches outputs have a partial overlap, but still they have substantial differences. As shown in Figure 6, the geometry branch makes explicit use of surface information in 3D, such as surface curvature, to identify important curves, which appear subtle or vanish in 2D rendered projections. In contrast, the image branch identifies curves that depend on view-based shading information that is not readily available in the 3D geometry (see supplementary material for other examples).
+
+Which geometric lines are used more in our method?
+
+The average percentage of SCs, RVs, ARs selected by our geometry-based stylization branch are $32.2\%$ $16.5\%$ $51.3\%$ respectively. It seems that ARs are used more dominantly, while RVs are the least frequent lines.
+
+User study. We also conducted an Amazon MTurk study as additional perceptual evaluation. Each questionnaire page showed participants shaded renderings of a shape, along with a randomly ordered pair of synthetic drawings: one synthetic drawing from our method, and another from a different one. We asked participants which drawing best conveyed the shown 3D model. Participants could pick either drawing, specify "none", or "both" draw-
+
+
+3D model
+
+
+NC-image-noms
+
+
+NC-image
+
+
+NC-geometry
+
+
+Neural Contours
+
+
+Artist's drawing
+
+
+Figure 6: Comparisons with reduced NCs variants.
+Figure 7: User study voting results.
+
+ings conveyed the shape equally well. We asked questions twice in a random order to verify participants' reliability. We had 187 reliable participants (see supplementary material for details). Figure 7 summarizes the number of votes for the above options. Our method received twice the number of votes compared to the best alternative (ARs) found in this study.
+
+# 7. Conclusion
+
+We presented a method that learns to draw lines for 3D models based on a combination of a differentiable geometric module and an image translation network. Surprisingly, since the study by Cole et al. [3], there has been little progress on improving line drawings for 3D models. Our experiments demonstrate that our method significantly improves over existing geometric and neural image translation methods. There are still avenues for further improvements. Mesh artifacts (e.g., highly irregular tessellation) affect curvature estimation and shading, and in turn the outputs of both branches. Learning to repair such artifacts to increase robustness would be fruitful. Predicting drawing parameters in real-time is an open problem. Rendering the lines with learned pressure, texture, or thickness could make them match human drawings even more. Finally, our method does not handle point clouds, which would either require a mesh reconstruction step or learning to extract lines directly from unstructured point sets.
+
+Acknowledgements. This research is partially funded by NSF (CHS-1617333) and Adobe. Our experiments were performed in the UMass GPU cluster obtained under the Collaborative Fund managed by the Massachusetts Technology Collaborative. We thank Keenan Crane for the Ogre, Snakeboard and Nefertiti 3D models.
+
+# References
+
+[1] Pierre Bénard and Aaron Hertzmann. Line drawings from 3D models: A tutorial. Foundations and Trends in Computer Graphics and Vision, 11(1-2), 2019. 1, 2
+[2] Angel X Chang et al. Shapenet: An information-rich 3d model repository. arXiv:1512.03012, 2015. 5
+[3] Forrester Cole, Aleksey Golovinskiy, Alex Limpaecher, Heather Stoddart Barros, Adam Finkelstein, Thomas Funkhouser, and Szymon Rusinkiewicz. Where do people draw lines? ACM Trans. Graph., 27(3), 2008. 2, 4, 5, 6, 8
+[4] Doug DeCarlo. Depicting 3d shape using lines. In Proc. SPIE Human Vision and Electronic Imaging XVII, 2012. 2
+[5] Doug DeCarlo, Adam Finkelstein, Szymon Rusinkiewicz, and Anthony Santella. Suggestive contours for conveying shape. ACM Trans. Graph., 22(3), 2003. 2, 3
+[6] Mostafa Dehghani, Hamed Zamani, Aliaksei Severyn, Jaap Kamps, and W. Bruce Croft. Neural ranking models with weak supervision. In Proc. SIGIR, 2017. 6
+[7] Jakub Fiser, Ondrej Jamriška, Michal Lukáč, Eli Shechtman, Paul Asente, Jingwan Lu, and Daniel Sykora. StyLit: Illumination-guided example-based stylization of 3d renderings. ACM Trans. Graph., 35(4), 2016. 2
+[8] Eduardo SL Gastal and Manuel M Oliveira. Domain transform for edge-aware image and video processing. ACM Trans. Graph., 30(4), 2011. 5
+[9] Leon A Gatys, Alexander S Ecker, and Matthias Bethge. Image style transfer using convolutional neural networks. In Proc. CVPR, 2016. 2
+[10] E. H. Gombrich. Art and Illusion: A Study in the Psychology of Pictorial Representation. Princeton U. Press, 1961. 2
+[11] Nelson Goodman. Languages of Art: An Approach to a Theory of Symbols. Bobbs-Merrill Company, 1968. 2
+[12] Yulia Gryaditskaya, Mark Sypesteyn, Jan Willem Hoftijzer, Sylvia Pont, Frédo Durand, and Adrien Bousseau. Opensketch: A richly-annotated dataset of product design sketches. ACM Trans. Graph., 38(6), 2019. 2
+[13] Mark Hall, Eibe Frank, Geoffrey Holmes, Bernhard Pfahringer, Peter Reutemann, and Ian H. Witten. The weka data mining software: An update. SIGKDD Explor. Newsl., 11(1), 2009. 6
+[14] R. Herbrich, T. Graepel, and K. Obermayer. Support vector learning for ordinal regression. In Proc. ICANN, 1999. 6
+[15] Aaron Hertzmann. Why do line drawings work? a realism hypothesis. Perception, 2020. 2
+[16] Aaron Hertzmann, Charles E. Jacobs, Nuria Oliver, Brian Curless, and David H. Salesin. Image analogies. In Proc. SIGGRAPH, 2001. 2
+[17] Naoto Inoue, Daichi Ito, Ning Xu, Jimei Yang, Brian Price, and Toshihiko Yamasaki. Learning to trace: Expressive line drawing generation from photographs. Computer Graphics Forum, 38(7), 2019. 2
+[18] Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. In Proc. CVPR, 2017. 6
+[19] Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. In Proc. ECCV, 2016. 2
+
+[20] Thouis R. Jones, Frédo Durand, and Mathieu Desbrun. Noniterative, feature-preserving mesh smoothing. ACM Trans. Graph., 22(3), 2003. 4
+[21] J. Jongejan, H. Rowley, T. Kawashima, J. Kim, and N. Fox-Gieg. The quick, draw dataset. https://quickdraw.withgoogle.com/, 2016.5
+[22] Tilke Judd, Frédo Durand, and Edward Adelson. Apparent ridges for line drawing. ACM Trans. Graph., 2007. 1, 2, 3
+[23] Evangelos Kalogerakis, Derek Nowrouzezahrai, Simon Breslav, and Aaron Hertzmann. Learning hatching for pen-and-ink illustration of surfaces. ACM Trans. Graph., 31(1), 2012. 2
+[24] John M. Kennedy. A Psychology of Picture Perception: Images and Information. Jossey-Bass Publishers, 1974. 2
+[25] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Proc. ICLR, 2015. 6
+[26] Jan J Koenderink and Andrea J van Doorn. The shape of smooth objects and the way contours end. Perception, 11(2), 1982. 2
+[27] Yunjin Lee, Lee Markosian, Seungyong Lee, and John F. Hughes. Line drawings via abstracted shading. ACM Trans. Graph., 26(3), 2007. 2
+[28] Yijun Li, Chen Fang, Aaron Hertzmann, Eli Shechtman, and Ming-Hsuan Yang. Im2pencil: Controllable pencil illustration from photographs. In Proc. CVPR, 2019. 2
+[29] Eric B Lum and Kwan-Liu Ma. Expressive line selection by example. The Visual Computer, 21(8-10), 2005. 2
+[30] Yutaka Ohtake, Alexander Belyaev, and Hans-Peter Seidel. Ridge-valley lines on meshes via implicit surface fitting. ACM Trans. Graph., 23(3), 2004. 3
+[31] Bui Tuong Phong. Illumination for computer generated pictures. Commun. ACM, 18(6), 1975. 4
+[32] VG Resource. The models resource, https://www.modelsresource.com/, 2019.5
+[33] Szymon Rusinkiewicz. Estimating curvatures and their derivatives on triangle meshes. In Proc. 3DPVT, 2004. 3
+[34] Szymon Rusinkiewicz and Doug DeCarlo. rtsc library. http://www.cs.princeton.edu/gfx/proj/sugcon/, 2007. 3, 5, 6
+[35] Patsorn Sangkloy, Nathan Burnell, Cusuh Ham, and James Hays. The sketchy database: Learning to retrieve badly drawn bunnies. ACM Trans. Graph., 35(4), 2016. 5
+[36] Bilge Sayim and Patrick Cavanagh. What line drawings reveal about the visual brain. Frontiers in Human Neuroscience, 5, 2011. 2
+[37] 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 Proc. CVPR, 2018. 1, 4, 6, 7
+[38] Michael J Wilber, Iljung S Kwak, and Serge J Belongie. Cost-effective hits for relative similarity comparisons. In Proc. HCOMP, 2014. 5
+[39] Qingnan Zhou and Alec Jacobson. Thingi10k: A dataset of 10,000 3d-printing models. arXiv:1605.04797, 2016. 5
+[40] Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In Proc. ICCV, 2017. 2
\ No newline at end of file
diff --git a/neuralcontourslearningtodrawlinesfrom3dshapes/images.zip b/neuralcontourslearningtodrawlinesfrom3dshapes/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..a7948ac7380782cbd46bef4e696f170ddcb79beb
--- /dev/null
+++ b/neuralcontourslearningtodrawlinesfrom3dshapes/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2dfcd2e5992976902a5f45efde89e951c6913382c5800faffa542d3875aa9e20
+size 704323
diff --git a/neuralcontourslearningtodrawlinesfrom3dshapes/layout.json b/neuralcontourslearningtodrawlinesfrom3dshapes/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..14425964408d752753874761ba0653382eb045e9
--- /dev/null
+++ b/neuralcontourslearningtodrawlinesfrom3dshapes/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5905da2eb7d0c72a11216ac732089844f1e4e240439caaad46e376fc2eda4dc8
+size 425602
diff --git a/neuraldataserveralargescalesearchenginefortransferlearningdata/110078a0-779b-44fc-8a4c-8acbe107b97c_content_list.json b/neuraldataserveralargescalesearchenginefortransferlearningdata/110078a0-779b-44fc-8a4c-8acbe107b97c_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..a00e27e0db5d0f54403fa9c03965d6f1e8fabbfb
--- /dev/null
+++ b/neuraldataserveralargescalesearchenginefortransferlearningdata/110078a0-779b-44fc-8a4c-8acbe107b97c_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b0559ea1d2954a3de90862586bb6ac5790d0091ccd14a7292434b93de00e65ff
+size 88701
diff --git a/neuraldataserveralargescalesearchenginefortransferlearningdata/110078a0-779b-44fc-8a4c-8acbe107b97c_model.json b/neuraldataserveralargescalesearchenginefortransferlearningdata/110078a0-779b-44fc-8a4c-8acbe107b97c_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..f8d0a52b6631e2e10a3916238988332a045ac006
--- /dev/null
+++ b/neuraldataserveralargescalesearchenginefortransferlearningdata/110078a0-779b-44fc-8a4c-8acbe107b97c_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fc8007d81739dac92d8c2b5abf81d1a397e7fbd33d58bbe400523313cdd277d1
+size 108564
diff --git a/neuraldataserveralargescalesearchenginefortransferlearningdata/110078a0-779b-44fc-8a4c-8acbe107b97c_origin.pdf b/neuraldataserveralargescalesearchenginefortransferlearningdata/110078a0-779b-44fc-8a4c-8acbe107b97c_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..21490bb9db09aec80a0b236109d1f8e2ed417787
--- /dev/null
+++ b/neuraldataserveralargescalesearchenginefortransferlearningdata/110078a0-779b-44fc-8a4c-8acbe107b97c_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f55ec72463d54038ccafb92c4b8d83f46ca9c62f5aac3c638c748104b4519a13
+size 966076
diff --git a/neuraldataserveralargescalesearchenginefortransferlearningdata/full.md b/neuraldataserveralargescalesearchenginefortransferlearningdata/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..8fac64021e8196393f4fe6b8b378f7b3136ba463
--- /dev/null
+++ b/neuraldataserveralargescalesearchenginefortransferlearningdata/full.md
@@ -0,0 +1,390 @@
+# Neural Data Server: A Large-Scale Search Engine for Transfer Learning Data
+
+Xi Yan $^{1,2*}$
+
+David Acuna $^{1,2,3*}$
+
+Sanja Fidler $^{1,2,3}$
+
+1University of Toronto
+
+$^{2}$ Vector Institute
+
+$^{3}$ NVIDIA
+
+xi.yan@mail.utoronto.ca, {davidj, fidler}@cs.toronto.edu
+
+# Abstract
+
+Transfer learning has proven to be a successful technique to train deep learning models in the domains where little training data is available. The dominant approach is to pretrain a model on a large generic dataset such as ImageNet and finetune its weights on the target domain. However, in the new era of an ever increasing number of massive datasets, selecting the relevant data for pretraining is a critical issue. We introduce Neural Data Server (NDS), a large-scale search engine for finding the most useful transfer learning data to the target domain. NDS consists of a dataserver which indexes several large popular image datasets, and aims to recommend data to a client, an end-user with a target application with its own small labeled dataset. The dataserver represents large datasets with a much more compact mixture-of-experts model, and employs it to perform data search in a series of dataserver-client transactions at a low computational cost. We show the effectiveness of NDS in various transfer learning scenarios, demonstrating state-of-the-art performance on several target datasets and tasks such as image classification, object detection and instance segmentation. Neural Data Server is available as a web-service at http://aidemos.cs.toronto.edu/nds/.
+
+# 1. Introduction
+
+In recent years, we have seen an explosive growth of the number and the variety of computer vision applications. These range from generic image classification tasks to surveillance, sports analytics, clothing recommendation, early disease detection, and to mapping, among others. Yet, we are only at the beginning of our exploration of what is possible to achieve with Deep Learning.
+
+One of the critical components of the new age of computer vision applications is the need for labeled data. To achieve high performance, typically a massive amount of data needs to be used to train deep learning models. Transfer learning provides a promising approach to reduce the need for large-scale labeled data for each target application. In transfer learning, a neural network is pretrained [11, 24,
+
+
+Figure 1: Neural Data Server: Search engine for finding relevant transfer learning data for the user's target domain. In NDS, a dataserver indexes several popular image datasets, represents them with a mixture-of-experts model, and uses client's target data to determine most relevant samples. Note that NDS indexes available public datasets and does not host them. Data recommendation is done by providing links to relevant examples.
+
+43] on existing large generic datasets and then fine-tuned in the target domain. While transfer learning is a well studied concept that has been proven successful in many applications [11, 24, 43], deciding which data to use for pretraining the model is an open research question that has received surprisingly little attention in the literature. We argue that this is a crucial problem to be answered in light of the ever increasing scale of the available datasets.
+
+To emphasize our point, recent efforts on curating computer vision benchmarks1 list over 400 public datasets, ranging from generic imagery, faces, fashion photos, to self-driving data. Furthermore, the dataset sizes are significantly increasing: the recently released OpenImages [31] contains 9M labeled images (600GB in size), and is 20 times larger compared to its predecessor MS-COCO [33] (330K images, 30GB). The video benchmark YouTube8m [1] (1.9B frames, 1.5TB), is $800 \times$ larger compared to Davis [9] (10k frames, 1.8GB), while the recently released autonomous driving dataset nuScenes [10] contains $100 \times$ the number of frames than KITTI [20] which was released in 2012.
+
+It is evident that downloading and storing these datasets locally is already cumbersome and expensive. This is further amplified by the computational resources required for training neural networks on this massive amount of data.
+
+
+Client Dataset
+Cityscapes
+
+
+Selected images from indexed datasets (OpenImages + COCO)
+
+
+miniModaNet
+
+
+
+
+Pascal-VOC
+
+
+Figure 2: Examples of images from the dataserver (COCO+OpenImages) recommended to each client dataset by our Neural Data Server.
+
+The latter is an even more pronounced issue in research, where the network architectures are continuously being developed and possibly many need to be tested. Furthermore, for commercial applications, data licensing may be another financial issue to consider. Recent works [23, 37] have also shown that there is not a "the more the better" relationship between the amount of pretraining data and the downstream task performance. Instead, they showed that selecting an appropriate subset of the data was important to achieve good performance on the target dataset.
+
+In this paper, we introduce Neural Data Server (NDS), a large-scale search engine for finding the most useful transfer learning data to the target domain. One can imagine NDS as a web-service where a centralized server, referred to as the dataserver, recommends data to clients (Fig 1). A client is an end-user with an A.I. application in mind, and has a small set of labeled target data. We assume that each client is only interested in downloading a subset of the server-indexed data that is most relevant to the client's target domain, limited to the user-specified budget (maximum desired size). We further require the transaction between the dataserver and the client to be both computationally efficient and privacy-preserving. This means the client's data should not be visible to the server. We also aim to minimize the amount of dataserver's online computation per client, as it may possibly serve many clients in parallel.
+
+We index several popular image datasets and represent them using a mixture-of-experts (MoE) model, which we store on the dataserver. MoE is significantly smaller in size than the data itself, and is used to probe the usefulness of data in the client's target domain. In particular, we determine the accuracy of each expert on the target dataset, and recommend data to the client based on these accuracies.
+
+We experimentally show significant performance improvements on several downstream tasks and domains compared to baselines. Furthermore, we show that with only $20\%$ of pretraining data, our method achieves comparable or better performance than pretraining on the entire dataserver-indexed datasets. We obtain significant im
+
+provements over ImageNet pretraining by downloading only $26\mathrm{Gb}$ of server's data in cases when training on the entire dataserver (538 Gb) would take weeks. Our Neural Data Server will be made available as a web-service with the aim of improving performance and reducing the development cost of the end-users' A.I. applications.
+
+# 2. Related Work
+
+Transfer Learning. The success of deep learning and the difficulty of collecting large scale datasets has recently brought significant attention to the long existing history of transfer learning, cross-domain annotation and domain adaptation [39, 15, 4, 44, 3, 46]. Specifically in the context of neural networks, fine-tuning a pretrained model on a new dataset is the most common strategy for knowledge transfer.
+
+Most literature in this domain analyzes the effect of pretraining on large-scale datasets [44, 34, 17] with respect to network architectures, network layers, and training tasks [49, 50]. Concurrent with our work, Achille et al. [2] proposes a framework for selecting the best pre-trained feature extractor for a new task from a collection of classifiers. In contrast, our work aims to identify the optimal set of data points for pre-training. Works most related to ours are [16, 37] which show that pretraining on only relevant examples is important to achieve good performance on fine-grained classification tasks. Specifically, in [16] the authors use a predefined similarity metric between the source and target categories in order to greedily select the most similar categories from the source dataset to be used for pretraining. [37], on the other hand, exploits a model pretrained on the source domain to obtain pseudolabels of the target images, and uses these to re-weight the source examples.
+
+Unlike ours, [16, 37] are limited to classification tasks, and do not easily scale to a constantly growing datacenter (the model needs to be retrained each time a new dataset is added). Thus, their approach does not naturally handle our scenario in which indexed datasets have diverse sets of tasks and labels, and where the number of indexed datasets may grow over time.
+
+Federated Learning. [35, 8] introduce a distributed ML
+
+
+Figure 3: Overview of Neural Data Server. NDS consists of a dataserver that represents indexed datasets using a mixture-of-experts model. Experts are sent to client in order to compute accuracies in the client's target domain. These accuracies are then used by dataserver to recommend relevant data samples.
+
+Algorithm 1 Dataserver's Modules
+1: Require representation learning alg. $\mathcal{E}$ , number of experts $K$
+2: $\pmb {g}_\theta \gets \mathrm{HARDGATING}(\mathcal{S},K)$ Sec 3.2: partition S into local subsets to obtain gating
+3: $S_{i}\coloneqq \{\pmb {x}\in S|g_{\theta ,i}(\pmb {x}) = 1\}$
+4: procedure MOE({Si},E,K):
+5: For $i = 1,\dots,K$
+6: Run $\mathcal{E}$ on $S_{i}$ to obtain expert $e_{\theta_i}$
+7: return $\{e_{\theta_i}\}$
+8: procedure OUTPUTDATA(\{Si},z,budget):
+9: $\pmb {w}\gets \mathrm{softmax}(\pmb {z},T = 0.1)$
+10: $\pi (\pmb {x}) = \sum_{i = 1}^{K}w_{i}g_{\theta ,i}(\pmb {x})\frac{1}{|S_{i}|}$
+11: Sample $S_{*}$ from S at rate according to $[\pi_{\pmb{x}_1},\dots,\pi_{\pmb{x}_n}]$
+12: return $S_{*}|_{\mathrm{budget}}$
+
+approach with the goal of training a centralized model on decentralized data over a large number of client devices, (i.e., mobile phones). Our work shares a similar idea of restricting the visibility of data in a client-server model. However, in our case the representation of data is centralized (dataserver) and the clients exploit the transfer learning scenario for their own (decentralized) models.
+
+Active and Curriculum Learning. In active learning [42] one searches over unlabeled data to find optimal samples to be labeled by an oracle, while in curriculum learning [7] subsets of data of increasing difficulty are sought for during training. In both scenarios, data search is performed at each iteration of training a particular model. Search is typically done by running inference on the data samples with the current snapshot of the model and selecting the examples based on uncertainty-based metrics. Our scenario differs in that we do not have the luxury of running inference with the client's model on the massive amount of indexed data as this would induce a prohibitive computational overhead on the dataserver per client. Moreover, we do not assume dataserver to have access to the client's model: this would entail the clients to share their inference code which many users may not be willing to do.
+
+Learning to Generate Synthetic Images. Related to NDS are also [41, 28, 47, 36]. These approaches aim to bridge the synthetic vs real imagery gap by optimizing/searching over the set of parameters of a surrogate function that interfaces with a synthesizer.
+
+In NDS, the search has to be done over massive (nonparametric) datasets and further, the target data cannot be sent to the server side. Our method is also significantly
+
+Algorithm 2 Overview of our Neural Data Server
+1: Input: $S$ (source), $\mathcal{T}$ (target), $b$ (desired budget of data)
+2: $\{e_{\theta_i}\} \leftarrow \mathrm{MOE}(\mathcal{D}_S, \mathcal{E}, K)$
+3: $z \gets \text{FASTADAPT}(\mathcal{T}, \{e_{\theta_i}\})$
+4: $S_* \gets \text{OUTPUTDATA}(S, z, b)$
+5: return $S_*$
+6: Output: $S_* \in S$ to download
+Algorithm 3 Client's Module
+1: procedure FASTADAPT( $\mathcal{D}_T$ , $\{e_{\theta_i}\}$ ):
+2: For $i = 1, \dots, K$
+3: $z_i \gets \text{PERFORMANCE/FINET}(e_{\theta_i}, \mathcal{T})$
+4: return $z$
+
+more computationally efficient.
+
+# 3. Neural Data Server
+
+Neural Data Server (NDS) is a search engine that aims to recommend transfer learning data. NDS consists of a dataserver which has access to a massive source dataset(s), and aims to suggest most relevant data samples to a client. A client is an end-user who wants a budget-constrained amount of data to improve the performance of her/his model in the target domain in a transfer learning scenario. We note that the dataserver does not host the data, and thus its recommendations are to be provided as a list ofurls to data samples hosted by the original datasets' providers.
+
+The dataserver's indexed datasets may or may not be completely labeled, and the types of labels (e.g., segmentation masks, detection boxes) across data samples may vary. The client's target dataset is considered to only have a small set of labeled examples, where further the type of labels may or may not be the same as the labels in the dataserver's dataset(s). The main challenge lies in requiring the dataserver-client transactions to have low computational overhead. As in any search engine that serves information to possibly numerous users, we want the online computation performed by the dataserver to be minimal. Thus we defer most of the computation to be performed on the client's side, while still aiming for this process to be fast. Furthermore, the transactions should ideally be privacy preserving for the client, i.e., the client's data nor the model's architecture are accessible, since the client may have sensitive information such as hospital records or secret tech. In NDS, we represent the dataserver's data using a mixture-of-experts (MoE) trained on a self-supervised task. MoE
+
+naturally partition the indexed datasets into different subsets and produce classifiers whose weights encode the representation of each of these subsets. The experts are trained offline and hosted on the dataserver for online transactions with the clients. In particular, the experts are sent to each client and used as a proxy to determine the importance of dataserver's data samples for the client's target domain.
+
+To compute importance, the experts are fast-adapted on the client's dataset, and their accuracy is computed on a simple self-supervised task. We experimentally validate that the accuracy of each adapted expert indicates the usefulness of the data partition used to train the expert. The dataserver then uses these accuracies to construct the final list of data samples that are relevant for the client. Figure 3 provides an illustration while Algorithm 2 summarizes our NDS.
+
+In Section 3.1 we formalize our problem. In Section 3.2 we describe how we train our mixture-of-experts model and analyze the different choices of representation learning algorithms for the experts (dataserver side). In Section 3.3.1 we propose how to exploit the experts' performance in the client's target domain for data selection.
+
+# 3.1. Problem Definition
+
+Let $\mathbb{X}$ denote the input space (images in this paper), and $\mathbb{Y}_a$ a set of labels for a given task $a$ . Generally, we will assume that multiple tasks are available, each associated with a different set of labels, and denote these by $\mathbb{Y}$ . Consider also two different distributions over $\mathbb{X} \times \mathbb{Y}$ , called the source domain $\mathcal{D}_s$ and target domain $\mathcal{D}_t$ . Let $\mathcal{S}$ (dataserver) and $\mathcal{T}$ (client) be two sample sets drawn i.i.d from $\mathcal{D}_s$ and $\mathcal{D}_t$ , respectively. We assume that $|\mathcal{S}| \gg |\mathcal{T}|$ .
+
+Our problem then relies on finding the subset $S_{*} \in \mathcal{P}(S)$ , where $\mathcal{P}(S)$ is the power set of $S$ , such that $S_{*} \cup \mathcal{T}$ minimizes the risk of a model $h$ on the target domain:
+
+$$
+\mathcal {S} _ {*} = \underset {\hat {\mathcal {S}} \in \mathcal {P} (S)} {\arg \min } \mathbb {E} _ {(\boldsymbol {x}, \hat {\boldsymbol {y}}) \sim \mathcal {D} _ {t}} [ \mathcal {L} \left(h _ {\hat {\mathcal {S}} \cup \mathcal {T}} (\boldsymbol {x}), \hat {\boldsymbol {y}}\right) ] \tag {1}
+$$
+
+Here, $h_{\hat{S} \cup \mathcal{T}}$ indicates that $h$ is trained on the union of data $\hat{S}$ and $\mathcal{T}$ . Intuitively, we are trying to find the subset of data from $S$ that helps to improve the performance of the model on the target dataset. However, what makes our problem particularly challenging and unique is that we are restricting the visibility of the data between the dataserver and the client.
+
+This means that fetching the whole sample set $S$ is prohibitive for the client, as it is uploading its own dataset to the server. We tackle this problem by representing the dataserver's indexed dataset(s) with a set of classifiers that are agnostic of the client (Section 3.2), and use these to optimize equation 1 on the client's side (Section 3.3.1).
+
+# 3.2. Dataserver
+
+We now discuss our representation of the dataserver's indexed datasets. This representation is pre-computed offline and stored on the dataserver.
+
+# 3.2.1 Dataset Representation with Mixture-of-Experts
+
+We represent the dataserver's data $S$ using the mixture-of-experts model [27]. In MoE, one makes a prediction as:
+
+$$
+\boldsymbol {y} (\boldsymbol {x}) = \sum_ {i = 1} ^ {K} g _ {\theta , i} (\boldsymbol {x}) e _ {\theta_ {i}} (\boldsymbol {x}) \tag {2}
+$$
+
+Here, $g_{\theta}$ denotes a gating function $(\sum_{i=1}^{K} g_{\theta,i}(.) = 1)$ , $e_{\theta_i}$ denotes the $i$ -th expert model with learnable weights $\theta_i$ , $x$ an input image, and $K$ corresponds to the number of experts. One can think of the gating function as softly assigning data points to each of the experts, which try to make the best guess on their assigned data points.
+
+The MoE model is trained by using maximum-likelihood estimation (MLE) on an objective $\mathcal{L}$ :
+
+$$
+\theta = \underset {\theta} {\arg \min } \mathbb {E} _ {(\boldsymbol {x}, \hat {\boldsymbol {y}}) \sim \mathcal {S}} [ \mathcal {L} (\boldsymbol {y} (\boldsymbol {x}), \hat {\boldsymbol {y}}) ] \tag {3}
+$$
+
+We discuss the choices for the objective $\mathcal{L}$ in Sec 3.2.2, dealing with the fact that the labels across the source datasets may be defined for different tasks.
+
+While the MoE objective allows end-to-end training, the computational cost of doing so on a massive dataset is extremely high, particularly when $K$ is considerably large (we need to backpropagate gradients to every expert on every training example). A straightforward way to alleviate this issue is to associate each expert with a local cluster defined by a hard gating, as in [26, 22]. In practice, we define a gating function $g$ that partitions the dataset into mutually exclusive subsets $S_{i}$ , and train one expert per subset. This makes training easy to parallelize as each expert is trained independently on its subset of data. Furthermore, this allows for new datasets to be easily added to the dataserver by training additional experts on them, and adding these to dataserver. This avoids re-training MoE over the full indexed set of datasets.
+
+In our work, we use two simple partitioning schemes to determine the gating: (1) superclass partition, and (2) unsupervised partition. For superclass partition (1), we represent each class $c$ in the source dataset as the mean of the image features $f_{c}$ for category $c$ , and perform $k$ -means clustering over $\{f_c\}$ . This gives a partitioning where each cluster is a superclass containing a subset of similar categories. This partitioning scheme only applies to datasets with class supervision. For unsupervised partitioning (2), we partition the source dataset using $k$ -means clustering on the image features. In both cases, the image features are obtained from a pretrained neural network (i.e., features extracted from the penultimate layer of a network pre-trained on ImageNet).
+
+# 3.2.2 Training the Experts
+
+We discuss two different scenarios to train the experts. In the simplified scenario, the tasks defined for both the dataserver's and client's datasets are the same, e.g., classification. In this case, we simply train a classifier for the
+
+task for each subset of the data in $S$ . We next discuss a more challenging case where the tasks across datasets differ.
+
+Ideally, we would like to learn a representation that can generalize to a variety of downstream tasks and can therefore be used in a task agnostic fashion. To this end, we use a self-supervised method to train the MoE. In self-supervision, one leverages a simple surrogate task that can be used to learn a meaningful representation.
+
+Furthermore, this does not require any labels to train the experts which means that the dataserver's dataset may or may not be labeled beforehand. This is useful if the client desires to obtain raw data and label the relevant subset on its own. To be specific, we select classifying image rotation as the task for self-supervision as in [21], which showed this to be a simple yet powerful proxy for representation learning. Formally, given an image $\pmb{x}$ , we define its corresponding self-supervised label $\pmb{y}$ by performing a set of geometric transformations $\{r(\pmb{x}, j)\}_{j=0}^{3}$ on $\pmb{x}$ , where $r$ is an image rotation operator, and $j$ defines a particular rotation by one of the predefined angles, $\{0, 90, 180, 270\}$ . We then minimize the following learning objective for the experts:
+
+$$
+\mathcal {L} \left(\theta_ {i}\right) = - \sum_ {\boldsymbol {x} \in \mathcal {S} _ {i}} \sum_ {j = 0} ^ {3} \log e _ {\theta_ {i}} (r (\boldsymbol {x}, j)) _ {j} \tag {4}
+$$
+
+Here, index $j$ in $e(.)_j$ denotes the output value for class $j$ .
+
+# 3.3. Dataserver-Client Transactions
+
+In this section, we describe the transactions between the dataserver and client that determines the relevant subset of the server's data. The client first downloads the experts in order to measure their performance on the client's dataset. If the tasks are similar, we perform a quick adaptation of the experts on the client's side. Otherwise, we evaluate the performance of the experts on the client's data using the surrogate task (i.e image rotation) (Section 3.3.1). The performance of each expert is sent back to the dataserver, which uses this information as a proxy to determine which data points are relevant to the client (Section 3.3.2). We describe these steps in more detail in the following subsections.
+
+# 3.3.1 FASTADAPT to a Target Dataset (on Client)
+
+Single Task on Server and Client: We first discuss the case where the dataset task is the same for both the client and the dataserver, e.g., classification. While the task may be the same, the label set may not be (classes may differ across domains). An intuitive way to adapt the experts is to remove their classification head that was trained on the server, and learn a small decoder network on top of the experts' penultimate representations on the client's dataset, as in [50]. For classification tasks, we learn a simple linear layer on top of each pre-trained expert's representation for a few epochs. We then evaluate the target's task performance on a held-out validation set using the adapted experts. We denote the accuracy for each adapted expert $\hat{e}_{\theta_i}$ as $z_{i}$ .
+
+Diverse Tasks on Server and Client: To generalize to unseen tasks and be further able to handle cases where the labels are not available on the client's side, we propose to evaluate the performance of the common self-supervised task used to train the experts on the dataserver's data. Intuitively, if the expert performs well on the self-supervised task on the target dataset, then the data it was trained on is likely relevant for the client. Specifically, we use the self-supervised experts trained to learn image rotation, and evaluate the proxy task performance (accuracy) of predicting image rotation angles on the target images:
+
+$$
+z _ {i} = \frac {1}{4 | \mathcal {T} |} \sum_ {\boldsymbol {x} \in \mathcal {T}} \sum_ {j = 0} ^ {3} \mathbb {1} \left(\arg \max _ {k} [ e _ {\theta_ {i}} (\boldsymbol {r} (\boldsymbol {x}, j)) _ {k} ] = = j\right) \tag {5}
+$$
+
+Here, index $k$ in $e(.)_k$ denotes the output value for class $k$ .
+
+Note that in this case we do not adapt the experts on the target dataset (we only perform inference).
+
+# 3.3.2 Data Selection (on Dataserver)
+
+We now aim to assign a weighting to each of the data points in the source domain $S$ to reflect how well the source data contributed to the transfer learning performance. The accuracies $z$ from the client's FASTADAPT step are normalized to [0, 1] and fed into a softmax function with temperature $T = 0.1$ . These are then used as importance weights $w_{i}$ for estimating how relevant is the representation learned by a particular expert for the target task's performance. We leverage this information to weigh the individual data points $x$ . More specifically, each source data $x$ is assigned a probabilistic weighting:
+
+$$
+\pi (\boldsymbol {x}) = \sum_ {i = 1} ^ {K} w _ {i} g _ {\theta , i} (\boldsymbol {x}) \frac {1}{| S _ {i} |} \tag {6}
+$$
+
+Here, $|S_i|$ represents the size of the subset that an expert $e_{\theta_i}$ was trained on. Intuitively, we are weighting the set of images associated to the $i$ -th expert and uniformly sampling from it. We construct our dataset by sampling examples from $S$ at a rate according to $\pmb{\pi} = [\pi_{\pmb{x}_1}, \pi_{\pmb{x}_2}, \dots, \pi_{\pmb{x}_n}]^T$ .
+
+# 3.4. Relation to Domain Adaptation
+
+If we assume that the client and server tasks are the same then our problem can be interpreted as domain adaptation in each of the subset $\hat{S} \in \mathcal{P}(S)$ and the following generalization bound from [5] can be used:
+
+$$
+\varepsilon_ {\mathcal {T}} (h) < \varepsilon_ {\hat {\mathcal {S}}} (h) + \frac {1}{2} d _ {\mathcal {H} \Delta \mathcal {H}} (\hat {\mathcal {S}}, \mathcal {T}) \tag {7}
+$$
+
+where $\varepsilon$ represents the risk of a hypothesis function $h\in \mathcal{H}$ and $d_{\mathcal{H}\Delta \mathcal{H}}$ is the $\mathcal{H}\Delta \mathcal{H}$ divergence [5], which relies on the capacity of $\mathcal{H}$ to distinguish between data points from $\hat{S}$ and $\mathcal{T}$ , respectively.
+
+Let us further assume that the risk of the hypothesis function $h$ on any subset $\hat{S}$ is similar such that: $\varepsilon_{\hat{S}}(h) \approx \varepsilon(h) \forall \hat{S} \in \mathcal{P}(S)$ . Under this assumption, minimizing
+
+equation 1 is equivalent to finding the subset $S_{*}$ that minimizes the divergence with respect to $\mathcal{T}$ . Formally,
+
+$$
+\mathcal {S} _ {*} = \underset {\hat {\mathcal {S}}} {\arg \min } d _ {\mathcal {H} \Delta \mathcal {H} (\hat {\mathcal {S}}, \mathcal {T})} \tag {8}
+$$
+
+In practice, it is hard to compute $d_{\mathcal{H}\Delta \mathcal{H}}$ and this is often approximated by a proxy $\mathcal{A}$ -distance [6, 12, 19]. A classifier that discriminates between the two domains and whose risk $\varepsilon$ is used to approximate the second part of the equation 7.
+
+$$
+\hat {d} _ {\mathcal {H}} \approx \hat {d} _ {\mathcal {A}} \approx 2 (1 - 2 \varepsilon) \tag {9}
+$$
+
+Note that doing so would require having access to $S$ and $\mathcal{T}$ in at least one of the two sides (i.e. to train the new discriminative classifier) and this is prohibitive in our scenario. In our case, we compute the domain confusion between $\hat{S}$ and $\mathcal{T}$ by evaluating the performance of expert $e_i$ on the target domain. We argue that this proxy task performance (or error rate) is an appropriate proxy distance that serves the same purpose but does not violate the data visibility condition. Intuitively, if the features learned on the subset cannot be discriminated from features on the target domain, the domain confusion is maximized. We empirically show the correlation between the domain classifier and our proposed proxy task performance in our experiments.
+
+# 4. Experiments
+
+We perform experiments in the tasks of classification, detection, and instance segmentation. We experiment with 3 datasets on the sever side and 7 on the client side.
+
+# 4.1. Support for Diverse Clients and Tasks
+
+In this section, we provide an extensive evaluation of our approach on three different client's scenarios: autonomous driving, fashion and general scenes. In each of them, the client's goal is to improve the performance of its downstream task (i.e., object detection or instance segmentation) by pretraining in a budget-constrained amount of data. Here, the dataserver is the same and indexes the massive OpenImages [31] and MS-COCO [33] datasets. Specifically, our server dataset can be seen as the union of COCO and OpenImages [31, 33] (approx 538 GB) represented in the weights of the self-supervised trained experts (2 GB).
+
+Autonomous Driving: Here, we use Cityscapes [14] as the client's dataset, which contains 5000 finely annotated images divided into 2975 training and 500 validation images. Eight object classes are provided with per-instance annotation. In practice, this simulates the scenario of a client that wants to crunch its performance numbers by pretraining on some data. This scenario is ubiquitous among state-of-the-art instance and semantic segmentation approaches on the Cityscapes leaderboard [45, 24, 52].
+
+Fashion: We use the ModaNet dataset [51] to simulate a client that wants to improve its models' performance in the task of object detection of fashion related objects. ModaNet
+
+is a large-scale street fashion dataset consisting of 13 classes of objects and 55,176 annotated images. Since the effectiveness of pre-training diminishes with the size of the dataset [23], we create a small version of the dataset for our experiments. This constitutes of 1000 training and 1000 validation images that are randomly selected but keeping the same class distribution of the original dataset. We call it miniModaNet in our experiments.
+
+General Scenes: We use PASCAL VOC object detection [18] as the client's dataset for this scenario. The task in this case is object detection on 20 object classes. We use the trainval2007 set containing 5011 images for training and evaluate on test2007 containing 4962 images.
+
+Evaluation: We use Intersection-Over-Union (IoU) to measure client's performance in its downstream task. Specifically, we follow the MS-COCO evaluation style and compute IoU at three different thresholds: a) 0.50, b) 0.75, c) an average of ten thresholds (.5 : .05 : .95). The same evaluation style is used for both, object detection and instance segmentation. Notice however that in the case of instance segmentation, the overlap is based on segmented regions.
+
+Baselines: In this regime, we compare our approach vs no pretraining, uniform sampling, and pretraining on the whole server dataset (i.e., MS-COCO). In all cases, we initialize with ImageNet pretrained weights as they are widely available and this has become a common practice.
+
+Implementation Details: Client. We use Mask-RCNN [24] with a ResNet50-FRN backbone detection head as the client's network. After obtaining a subset of $S$ , the client pre-trains a network on the selected subset and uses the pre-trained model as initialization for fine-tuning using the client (target) dataset. For object detection, we pretrain with a 681 class (80 class from COCO, 601 class from OpenImages) detection head using bounding box labels. For instance segmentation, we pre-train with 80 class (for COCO) or 350 class (for OpenImages) detection head using object mask labels. Server. For all self-supervised experts, we use ResNet18 [25], and train our models to predict image rotations. MS-COCO and OpenImages are partitioned into $K = 6$ and $K = 50$ experts, respectively.
+
+# 4.1.1 Qualitative and Quantitative Results
+
+Object Detection: Table 1 reports the average precision at various IoU of the client's network pre-trained using data selected using different budgets and methods. First, we see that a general trend of pre-training the network on sampled detection data helps performance when fine-tuning on smaller client detection datasets compared to fine-tuning the network from ImageNet initialization. By pre-training on 90K images from COCO+OpenImages, we observe a $1 - 5\%$ gain in AP at 0.5 IoU across all 3 client (target) datasets. This result is consistent with [32] which suggests that a pretraining task other than classification is beneficial for improving transfer performance on localization tasks. Next,
+
+| Pretrain Server Data (COCO + OpenImages) | Client Dataset |
| Sampled Data Size | Method | PASCAL-VOC2007 | miniModaNet | Cityscapes |
| File Size | # Images | APbb | APbb50 | APbb75 | APbb | APbb50 | APbb75 | APbb | APbb50 | APbb75 |
| ImageNet Initialization | 44.30 | 73.66 | 46.44 | 33.40 | 57.98 | 35.00 | 34.94 | 59.86 | 35.69 |
| 26GB / 538GB | 90K (5%) | Uniform Sampling NDS | 47.61 | 76.88 | 51.95 | 35.64 | 58.40 | 39.09 | 36.49 | 61.88 | 36.36 |
| 48.36 | 76.91 | 52.53 | 38.84 | 61.23 | 43.86 | 38.46 | 63.79 | 39.59 |
| 54GB / 538GB | 180K (10%) | Uniform Sampling NDS | 48.05 | 77.17 | 52.04 | 35.78 | 58.50 | 39.71 | 36.41 | 61.22 | 37.17 |
| 50.28 | 78.61 | 55.47 | 38.97 | 61.32 | 42.93 | 40.07 | 65.85 | 41.14 |
+
+Table 1: Results for object detection on the 3 client datasets. Scores are measured in %.
+
+| Pretrain. Sel. Method | Target Dataset |
| Stanf. Dogs | Stanf. Cars | Oxford-IIIIT Pets | Flowers 102 | CUB200 Birds |
| 0% | Random Init. | 23.66 | 18.60 | 32.35 | 48.02 | 25.06 |
| 100% | Entire Dataset | 64.66 | 52.92 | 79.12 | 84.14 | 56.99 |
| 20% | Uniform Sample | 52.84 | 42.26 | 71.11 | 79.87 | 48.62 |
| NDS (SP+TS) | 72.21 | 44.40 | 81.41 | 81.75 | 54.00 |
| NDS (SP+SS) | 73.46 | 44.53 | 82.04 | 81.62 | 54.75 |
| NDS (UP+SS) | 66.97 | 44.15 | 79.20 | 80.74 | 52.66 |
| 40% | Uniform Sample | 59.43 | 47.18 | 75.96 | 82.58 | 52.74 |
| NDS (SP+TS) | 68.66 | 50.67 | 80.76 | 83.31 | 58.84 |
| NDS (SP+SS) | 69.97 | 51.40 | 81.52 | 83.27 | 57.25 |
| NDS (UP+SS) | 67.16 | 49.52 | 79.69 | 83.51 | 57.44 |
+
+
+Figure 4: Relationship between domain classifier and proxy task performance on subsets $\hat{S}$ .
+
+Table 4: Ablation experiments on gating and expert training. SP=Superclass Partition, UP=Unsupervised Partition, TS=Task-Specific experts (experts trained on classif. labels), and SS=Self-Supervised experts (experts trained to predict image rotation).
+
+| Data | Method | Oxford-IIIT Pet | CUB200 Birds |
| 20% | Uniform Samp. | 71.1 | 48.6 |
| KNN + [16] | 74.4 | 51.6 |
| [37] | 81.3 | 54.3 |
| NDS | 82.0 | 54.8 |
| 40% | Uniform Samp. | 76.0 | 52.7 |
| KNN + [16] | 78.1 | 56.1 |
| [37] | 81.0 | 57.4 |
| NDS | 81.5 | 57.3 |
| Entire ImageNet | 79.1 | 57.0 |
+
+Table 5: Transfer learning performance on classification datasets comparing data selection methods.
+
+| Data (# Images) | Method | \(AP^{bb}\) | \(AP^{bb}\) | \(AP\) | \(AP^{50}\) |
| 0 | ImageNet Initial. | 36.2 | 62.3 | 32.0 | 57.6 |
| 23K | Uniform SamplingNDS | 38.1 | 64.9 | 34.3 | 60.0 |
| 40.7 | 66.0 | 36.1 | 61.0 |
| 47K | Uniform SamplingNDS | 39.8 | 65.5 | 34.4 | 60.0 |
| 42.2 | 68.1 | 36.7 | 62.3 |
| 59K | Uniform SamplingNDS | 39.5 | 64.9 | 34.9 | 60.4 |
| 41.7 | 66.6 | 36.7 | 61.9 |
| 118K | Full COCO | 41.8 | 66.5 | 36.5 | 62.3 |
+
+Table 2: Transfer learning results for instance segmentation with Mask R-CNN on Cityscapes by selecting images from COCO.
+
+| Data (# Images) | Method | \(AP^{bb}\) | \(AP^{bb}\) | \(AP\) | \(AP^{50}\) |
| 0 | ImageNet Initial. | 36.2 | 62.3 | 32.0 | 57.6 |
| 118K | Uniform SamplingNDS | 37.5 | 62.5 | 32.8 | 57.2 |
| 39.9 | 65.1 | 35.1 | 59.8 |
| 200K | Uniform SamplingNDS | 37.8 | 63.1 | 32.9 | 57.8 |
| 40.7 | 65.8 | 36.1 | 61.2 |
+
+Table 3: Transfer learning results for instance segmentation with Mask R-CNN on Cityscapes by selecting images from OpenImages.
+
+we see that under the same budget of $90\mathrm{K} / 180\mathrm{K}$ images from the server, pre-training with data selected by NDS outperforms the baseline which uses images randomly sampled from $\mathcal{S}$ for all client datasets.
+
+Instance Segmentation: Table 2 reports the instance segmentation performance by sampling 23K, 47K, and 59K images from COCO for pre-training on Cityscapes. We can see that pre-training using subsets selected by NDS is $2 - 3\%$ better than the uniform sampling baseline. Furthermore, using $40\%$ (47K/118K), or $50\%$ (59K/118K) images from COCO yields comparable (or better) performance to using the entire $100\%$ (118K) of data. Table 3 shows the results
+
+of sampling 118K, 200K images from OpenImages dataset as our server dataset.
+
+Qualitative Results: Figure 6 shows qualitative results on MINIMODANET from detectors pre-trained fromImagenet, uniformly sampled images from $S$ , and images sampled using NDS. In the cases shown, the network pre-trained using the data recommended by NDS shows better localization ability, and is able to make more accurate predictions.
+
+# 4.2. Support for Diverse Clients Same Task
+
+For completeness, and in order to compare to stronger baselines that are limited to classification tasks, we also quantitatively evaluate the performance of NDS in the same-client-same-task regime. In this case, the task is set to be classification and the server indexes the Downsampled ImageNet [13] dataset. This a variant of ImageNet [17] resized to $32 \times 32$ . In this case, we use $K = 10$ experts.
+
+Client's Datasets: We experiment with several small classification datasets. Specifically, we use Stanford Dogs [29], Stanford Cars [30], Oxford-IIIT Pets [40], Flowers 102 [38], and CUB200 Birds [48] as client datasets.
+
+Implementation Details: We use ResNet18 [25] as our client's network architecture, and an input size of $32 \times 32$ during training. Once subsets of server data are selected, we pre-train on the selected subset and evaluate the performance by fine-tuning on the client (target) datasets.
+
+Comparison to data selection methods: Cui et al. [16] and Ngiam et al. [37] recently proposed data selection methods for improving transfer learning for classification tasks. In this restricted regime, we can compare to these methods. Specifically, we compare our NDS with [37], where they sample data based on the probability over
+
+
+Figure 5: Instance segmentation results on Cityscapes using network pre-trained from ImageNet initialization (left), 47K images uniformly sampled (middle), and 47K images from NDS (right). Notice that the output segmentations generally look cleaner when training on NDS-recommended data.
+
+
+Figure 6: Object detection results in miniModaNet using network pretrained from ImageNet initialization (left), 90K images uniformly sampled (middle), and 90K images sampled using NDS (right). A score threshold of 0.6 is used to display these images.
+
+
+
+
+Figure 7: Simulating an incrementally growing dataserver, and the time required to "train" a model to represent the server. We NDS compare to the baseline of [37] (which is limited to classification tasks).
+
+source dataset classes computed by pseudo-labeling the target dataset with a classifier trained on the source dataset. We also create a baseline KNN by adapting Cui et al.'s method [16]. Here, we sample from the most similar categories measured by the mean features of categories between the client and server data. We emphasize that the previous two approaches are limited to the classification task, and cannot handle diverse tasks. Furthermore, they do not scale to datasets beyond classification, and [37] does not scale to a growing dataserver. Our approach achieves comparable results to [37], and can be additionally applied to source datasets with no classification labels such as MS-COCO, or even datasets which are not labeled.
+
+# 4.3. Ablation Experiments
+
+Domain Confusion: To see how well the performance of the proxy task reflects the domain confusion, we perform an experiment comparing the proxy task performance and $\hat{d}_{\mathcal{A}}(\hat{\mathcal{S}},\mathcal{T})$ . To estimate $\hat{d}_{\mathcal{A}}$ , we follow the same idea from [6, 12, 19] and for each subset $\hat{S}$ , we estimate the domain confusion. Figure 4 shows the domain confusion vs the proxy task performance using several classification datasets as the target (client) domain. In this plot, the highest average loss corresponds to the subset with the highest domain confusion (i.e., $S_{i}$ that is the most indistinguishable from the target domain). Notice that this correlates with the expert that gives the highest proxy task performance.
+
+Ablation on gating and expert training: In Table 4, we compare different instantiations of our approach on five client classification datasets. For all instantiations, pretraining on our selected subset significantly outperforms the pre-training on a randomly selected subset of the same size.
+
+Our result in Table 4 shows that under the same superclass partition, the subsets obtained through sampling according to the transferability measured by self-supervised experts $(\mathrm{SP} + \mathrm{SS})$ yield a similar downstream performance compared to sampling according to the transferability measured by the task-specific experts $(\mathrm{SP} + \mathrm{TS})$ . This suggests that self-supervised training for the experts can successfully be used as a proxy to decide which data points from the source dataset are most useful for the target dataset.
+
+Scalability: Fig 7 analyzes the (simulated) required training time of the server as a new dataset is being incrementally added to it. We simulate a comparison between [37] (which needs to retrain the model on all datasets each time a dataset is added, and thus scales linearly) and NDS (where expert training is only ran on the additional dataset).
+
+Limitations and Discussion: A limitation in our method is that the annotation quality/statistics in the dataserver datasets is not considered. This is shown in our instance segmentation experiment where the gains from pre-training on images sampled from OpenImages is smaller than pretraining on MS-COCO. This is likely due to the fact that MS-COCO has on average $\sim 7$ instance annotations per image while OpenImages contains many images without mask annotations or at most $\sim 2$ instance annotations per image. OpenImages has further been labeled semi-automatically and thus in many cases the annotations are noisy.
+
+# 5. Conclusion
+
+In this work, we propose a novel method that aims to optimally select subsets of data from a large dataserver given a particular target client. In particular, we represent the server's data with a mixture of experts trained on a simple self-supervised task. These are then used as a proxy to determine the most important subset of the data that the server should send to the client. We experimentally show that our method is general and can be applied to any pre-training and fine-tuning scheme and that our approach even handles the case where no labeled data is available (only raw data). We hope that our work opens a more effective way of performing transfer learning in the era of massive datasets. In the future, we aim to increase the capability of NDS to also support other modalities such as 3D, text and speech.
+
+Acknowledgments: The authors acknowledge partial support by NSERC. SF acknowledges the Canada CIFAR AI Chair award at Vector Institute. We thanks Relu Patrascu for his continuous infrastructure support. We also thank Amlan Kar, Huan Ling and Jun Gao for early discussions, and Tianshi Cao and Jonah Philion for feedback in the manuscript.
+
+# References
+
+[1] Sami Abu-El-Haija, Nisarg Kothari, Joonseok Lee, Apostol Natsev, George Toderici, Balakrishnan Varadarajan, and Sudheendra Vijayanarasimhan. Youtube-8m: A large-scale video classification benchmark. ArXiv, abs/1609.08675, 2016. 1
+[2] Alessandro Achille, Michael Lam, Rahul Tewari, Avinash Ravichandran, Subhransu Maji, Charless C. Fowlkes, Stefano Soatto, and Pietro Perona. Task2vec: Task embedding for meta-learning. 2019 IEEE/CVF International Conference on Computer Vision (ICCV), pages 6429-6438, 2019. 2
+[3] David Acuna, Amlan Kar, and Sanja Fidler. Devil is in the edges: Learning semantic boundaries from noisy annotations. In CVPR, 2019. 2
+[4] David Acuna, Huan Ling, Amlan Kar, and Sanja Fidler. Efficient interactive annotation of segmentation datasets with polygon-rnn++. In CVPR, 2018. 2
+[5] 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:151-175, 2009. 5
+[6] Shai Ben-David, John Blitzer, Koby Crammer, and Fernando Pereira. Analysis of representations for domain adaptation. In B. Scholkopf, J. C. Platt, and T. Hoffman, editors, NeurIPS, pages 137-144. MIT Press, 2007. 6, 8
+[7] Yoshua Bengio, Jérôme Louradour, Ronan Collobert, and Jason Weston. Curriculum learning. In Proceedings of the 26th annual international conference on machine learning, pages 41-48. ACM, 2009. 3
+[8] Keith Bonawitz, Vladimir Ivanov, Ben Kreuter, Antonio Marcedone, H. Brendan McMahan, Sarvar Patel, Daniel Ramage, Aaron Segal, and Karn Seth. Practical secure aggregation for privacy-preserving machine learning. In ACM Conf. on Computer and Communications Security, 2017. 2
+[9] Sergi Caelles, Alberto Montes, Kevis-Kokitsi Maninis, Yuhua Chen, Luc Van Gool, Federico Perazzi, and Jordi Pont-Tuset. The 2018 davis challenge on video object segmentation. ArXiv, abs/1803.00557, 2018. 1
+[10] 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, abs/1903.11027, 2019. 1
+[11] Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L. Yuille. Deep convolutional nets, atrous convolution, and fully connected crfs. CoRR, abs/1606.00915, 2016. 1
+[12] Minmin Chen, Kilian Q Weinberger, Zhixiang Xu, and Fei Sha. Marginalizing stacked linear denoising autoencoders. Journal of Machine Learning Research, 16(1):3849-3875, 2015. 6, 8
+[13] Patryk Chrabaszcz, Ilya Loshchilov, and Frank Hutter. A downsampled variant of imagenet as an alternative to the cifar datasets, 2017. 7
+
+[14] 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. CVPR, pages 3213-3223, 2016. 6
+[15] Gabriela Csurka. Domain adaptation for visual applications: A comprehensive survey. arXiv preprint arXiv:1702.05374, 2017. 2
+[16] Yin Cui, Yang Song, Chen Sun, Andrew Howard, and Serge J. Belongie. Large scale fine-grained categorization and domain-specific transfer learning. CVPR, pages 4109-4118, 2018. 2, 7, 8
+[17] J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. ImageNet: A Large-Scale Hierarchical Image Database. In CVPR, 2009. 2, 7
+[18] Mark Everingham, Luc Van Gool, Christopher K. I. Williams, John M. Winn, and Andrew Zisserman. The pascal visual object classes (voc) challenge. International Journal of Computer Vision, 88:303-338, 2009. 6
+[19] Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, François Laviolette, Mario Marchand, and Victor S. Lempitsky. Domain-adversarial training of neural networks. J. Mach. Learn. Res., 17:59:1-59:35, 2015. 6, 8
+[20] Andreas Geiger, Philip Lenz, and Raquel Urtasun. Are we ready for autonomous driving? the kitti vision benchmark suite. In CVPR, 2012. 1
+[21] Spyros Gidaris, Praveer Singh, and Nikos Komodakis. Unsupervised representation learning by predicting image rotations. In ICLR, 2018. 5
+[22] Sam Gross, Marc'Aurelio Ranzato, and Arthur Szlam. Hard mixtures of experts for large scale weakly supervised vision. In CVPR, pages 6865-6873, 2017. 4
+[23] Kaiming He, Ross B. Girshick, and Piotr Dólar. Rethinking imagenet pre-training. CoRR, abs/1811.08883, 2018. 2, 6
+[24] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross B. Girshick. Mask r-cnn. ICCV, pages 2980-2988, 2017. 1, 6
+[25] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. CVPR, pages 770-778, 2015. 6, 7
+[26] Geoffrey E. Hinton, Oriol Vinyals, and Jeffrey Dean. Distilling the knowledge in a neural network. ArXiv, abs/1503.02531, 2015. 4
+[27] Robert A. Jacobs, Michael I. Jordan, Steven J. Nowlan, and Geoffrey E. Hinton. Adaptive mixtures of local experts. *Neural Computation*, 3:79–87, 1991. 4
+[28] Amlan Kar, Aayush Prakash, Ming-Yu Liu, Eric Cameracci, Justin Yuan, Matt Rusiniak, David Acuna, Antonio Torralba, and Sanja Fidler. Meta-sim: Learning to generate synthetic datasets. In ICCV, 2019. 3
+[29] Aditya Khosla, Nityananda Jayadevaprakash, Bangpeng Yao, and Li Fei-Fei. Novel dataset for fine-grained image categorization. In CVPR Workshop on Fine-Grained Visual Categorization, Colorado Springs, CO, June 2011. 7
+[30] Jonathan Krause, Michael Stark, Jia Deng, and Li Fei-Fei. 3d object representations for fine-grained categorization. In IEEE Workshop on 3D Representation and Recognition (3dRR-13), Sydney, Australia, 2013. 7
+
+[31] Alina Kuznetsova, Hassan Rom, Neil Alldrin, Jasper Uijlings, Ivan Krasin, Jordi Pont-Tuset, Shahab Kamali, Stefan Popov, Matteo Malloci, Tom Duerig, and Vittorio Ferrari. The open images dataset v4: Unified image classification, object detection, and visual relationship detection at scale. arXiv:1811.00982, 2018. 1, 6
+[32] Hengduo Li, Bharat Singh, Mahyar Najibi, Zuxuan Wu, and Larry S. Davis. An analysis of pre-training on object detection. ArXiv, abs/1904.05871, 2019. 6
+[33] Tsung-Yi Lin, Michael Maire, Serge J. Belongie, Lubomir D. Bourdev, Ross B. Girshick, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollar, and C. Lawrence Zitnick. Microsoft coco: Common objects in context. In ECCV, 2014. 1, 6
+[34] 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 ECCV, pages 181-196, 2018. 2
+[35] H. Brendan McMahan, Eider Moore, Daniel Ramage, and Blaise Agüera y Arcas. Federated learning of deep networks using model averaging. ArXiv, abs/1602.05629, 2016. 2
+[36] Bhairav Mehta, Manfred Diaz, Florian Golemo, Christopher J Pal, and Liam Paull. Active domain randomization. arXiv preprint arXiv:1904.04762, 2019. 3
+[37] Jiquan Ngiam, Daiyi Peng, Vijay Vasudevan, Simon Kornblith, Quoc V. Le, and Ruoming Pang. Domain adaptive transfer learning with specialist models, 2018. 2, 7, 8
+[38] M-E. Nilsback and A. Zisserman. Automated flower classification over a large number of classes. In Proc. of the Indian Conference on Computer Vision, Graphics and Image Processing, Dec 2008. 7
+[39] Sinno Jialin Pan and Qiang Yang. A survey on transfer learning. IEEE Trans. on knowledge and data engineering, 22(10):1345-1359, 2009. 2
+[40] O. M. Parkhi, A. Vedaldi, A. Zisserman, and C. V. Jawahar. Cats and dogs. In CVPR, 2012. 7
+[41] Nataniel Ruiz, Samuel Schulter, and Manmohan Chandraker. Learning to simulate. arXiv preprint arXiv:1810.02513, 2018.3
+[42] Burr Settles. Active learning literature survey. Technical report, University of Wisconsin-Madison Department of Computer Sciences, 2009. 3
+[43] Evan Shelhamer, Jonathan Long, and Trevor Darrell. Fully convolutional networks for semantic segmentation. PAMI, 39(4):640-651, Apr. 2017. 1
+[44] Chen Sun, Abhinav Shrivastava, Saurabh Singh, and Abhinav Gupta. Revisiting unreasonable effectiveness of data in deep learning era. In ICCV, pages 843-852, 2017. 2
+[45] Towaki Takikawa, David Acuna, Varun Jampani, and Sanja Fidler. Gated-scnn: Gated shape cnns for semantic segmentation. ArXiv, abs/1907.05740, 2019. 6
+[46] Jonathan Tremblay, Aayush Prakash, David Acuna, Mark Brophy, Varun Jampani, Cem Anil, Thang To, Eric Cameracci, Shaad Boochoon, and Stan Birchfield. Training deep networks with synthetic data: Bridging the reality gap by domain randomization. In CVPR Workshop, pages 969–977, 2018. 2
+
+[47] Shashank Tripathi, Siddhartha Chandra, Amit Agrawal, Ambrish Tyagi, James M Rehg, and Visesh Chari. Learning to generate synthetic data via compositing. In CVPR, pages 461-470, 2019. 3
+[48] C. Wah, S. Branson, P. Welinder, P. Perona, and S. Belongie. The Caltech-UCSD Birds-200-2011 Dataset. Technical Report CNS-TR-2011-001, California Institute of Technology, 2011. 7
+[49] Jason Yosinski, Jeff Clune, Yoshua Bengio, and Hod Lipson. How transferable are features in deep neural networks? In NeurIPS, 2014. 2
+[50] Amir Roshan Zamir, Alexander Sax, William B. Shen, Leonidas J. Guibas, Jagannath Malik, and Silvio Savarese. Taskonomy: Disentangling task transfer learning. CVPR, pages 3712-3722, 2018. 2, 5
+[51] Shuai Zheng, Fan Yang, M. Hadi Kiapour, and Robinson Pi-ramuthu. Modanet: A large-scale street fashion dataset with polygon annotations. In ACM Multimedia, 2018. 6
+[52] Yi Zhu, Karan Sapra, Fitsum A. Reda, Kevin J. Shih, Shawn D. Newsam, Andrew Tao, and Bryan Catanzaro. Improving semantic segmentation via video propagation and label relaxation. In CVPR, 2018. 6
\ No newline at end of file
diff --git a/neuraldataserveralargescalesearchenginefortransferlearningdata/images.zip b/neuraldataserveralargescalesearchenginefortransferlearningdata/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..e0f0674f1c13d98569d5fa307b873ee256a23804
--- /dev/null
+++ b/neuraldataserveralargescalesearchenginefortransferlearningdata/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9baf2731d5dbdde7cf4a89fbb5c064faa7f96a54df6acd41e38d9668261c2ec8
+size 535273
diff --git a/neuraldataserveralargescalesearchenginefortransferlearningdata/layout.json b/neuraldataserveralargescalesearchenginefortransferlearningdata/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..d6c0e3e57405deaea3ce6e4beabda397418376e2
--- /dev/null
+++ b/neuraldataserveralargescalesearchenginefortransferlearningdata/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:20c55a0e68d0f69270b80ae878be055cab1b21c72796419b7159c2c66e7a0d90
+size 475217
diff --git a/neuralheadreenactmentwithlatentposedescriptors/77bd6f5d-ca49-41be-b0b8-e280365c2a74_content_list.json b/neuralheadreenactmentwithlatentposedescriptors/77bd6f5d-ca49-41be-b0b8-e280365c2a74_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..716d6c168fb24dfac4f44bb6104d8aa399903141
--- /dev/null
+++ b/neuralheadreenactmentwithlatentposedescriptors/77bd6f5d-ca49-41be-b0b8-e280365c2a74_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a3e8a03985a35bf62cb71a92f8e7982896445c4b23f4d643b7e7afd0b61c2d82
+size 60598
diff --git a/neuralheadreenactmentwithlatentposedescriptors/77bd6f5d-ca49-41be-b0b8-e280365c2a74_model.json b/neuralheadreenactmentwithlatentposedescriptors/77bd6f5d-ca49-41be-b0b8-e280365c2a74_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..3023aafef24d999379cf08f21ef36da67f9216a4
--- /dev/null
+++ b/neuralheadreenactmentwithlatentposedescriptors/77bd6f5d-ca49-41be-b0b8-e280365c2a74_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:de69310b24374091e77a16cdb2ba1cb33e574f3caa4a0a3b3e02834fe8404c4e
+size 78003
diff --git a/neuralheadreenactmentwithlatentposedescriptors/77bd6f5d-ca49-41be-b0b8-e280365c2a74_origin.pdf b/neuralheadreenactmentwithlatentposedescriptors/77bd6f5d-ca49-41be-b0b8-e280365c2a74_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..67d615f686503d504f5173dae1386b6d7d1466b9
--- /dev/null
+++ b/neuralheadreenactmentwithlatentposedescriptors/77bd6f5d-ca49-41be-b0b8-e280365c2a74_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5a9446becae34c47206c66dfabd8b3b0417d3e204bc275d112c0936c1f951bdd
+size 924632
diff --git a/neuralheadreenactmentwithlatentposedescriptors/full.md b/neuralheadreenactmentwithlatentposedescriptors/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..3e2c03943091609dffd1e199aabcbb44125368c4
--- /dev/null
+++ b/neuralheadreenactmentwithlatentposedescriptors/full.md
@@ -0,0 +1,242 @@
+# Neural Head Reenactment with Latent Pose Descriptors
+
+Egor Burkov1,2 Igor Pasechnik1 Artur Grigorev1 Victor Lempitsky1,2
+
+$^{1}$ Samsung AI Center, Moscow $^{2}$ Skolkovo Institute of Science and Technology
+
+# Abstract
+
+We propose a neural head reenactment system, which is driven by a latent pose representation and is capable of predicting the foreground segmentation alongside the RGB image. The latent pose representation is learned as a part of the entire reenactment system, and the learning process is based solely on image reconstruction losses. We show that despite its simplicity, with a large and diverse enough training dataset, such learning successfully decomposes pose from identity. The resulting system can then reproduce mimics of the driving person and, furthermore, can perform cross-person reenactment. Additionally, we show that the learned descriptors are useful for other pose-related tasks, such as keypoint prediction and pose-based retrieval.
+
+# 1. Introduction
+
+Head video reenactment has seen dramatic progress in quality and robustness over the recent years. Current state-of-the-art systems [33, 22, 37, 30, 39, 42, 10, 36, 35] demonstrate compelling nearly photorealistic "talking head" reenactments. The most recent ones are able to accomplish this even when a single image of the target person is available [30, 42, 10, 36, 35], by using deep neural generative networks. In this work, we improve on the pre-existing neural one-shot head reenactment systems in two important ways. First, rather straightforwardly, we augment the previous state-of-the-art reenactment system [42] with the ability to predict foreground segmentation. Such prediction is needed for various scenarios, such as telepresence, where the transfer of the original background to the new environment can be undesirable.
+
+More importantly, we suggest a new pose representation for neural head reenactment. The representation of the pose plays the key role in the quality of reenactment. Most systems, including [33, 22, 37, 42, 10, 36], are based on keypoint (landmark) representation. The main advantage of such representation is that robust and efficient "off-the
+
+shelf" landmark detectors are now available [21, 2].
+
+Face landmarks, however, suffer from several shortcomings. First, learning a landmark detector requires excessive annotation effort, and the sets of annotated landmarks often miss some important aspects of the pose. E.g. many landmark annotations do not include eye pupils, and as a consequence, the reenactment will not have a full control of the gaze. Second, many of the landmarks do not have an anatomical basis, and their annotation is ambiguous and prone to errors, especially, when they are occluded. In practice, such ambiguity of annotation often translates into temporal instability of keypoint detection that in turn translates into the reenactment results. Finally, as a representation, landmarks are person-specific, as they contain considerable amount of information about pose-independent head geometry. This may be highly undesirable for head reenactment, e.g. if one wants to drive an iconic photograph or painting with the target person having a different head geometry.
+
+The emergence of large unlabeled datasets of human videos such as [29, 4, 5] allows to learn latent pose-expression descriptors in an unsupervised way. This approach has been first explored in [39, 38], where the latent pose descriptors were learned such that the dense flow between different frames can be inferred from the learned descriptors. In this work, we propose an alternative to the warping-based approach [39, 38]. Our approach learns low-dimensional person-agnostic pose descriptors alongside with medium-dimensional person-specific pose-independent descriptors, by imposing a set of reconstruction losses on video frames over a large collection of videos. Importantly, when evaluating the reconstruction losses, we segment out the background, so that the background clutter and its change across frames does not affect the learned descriptors.
+
+We show that a simple learning framework based on sampling multiple random frames from the same video paired with the large size of the video dataset allows to learn extractors for both descriptors that work very well for reenactment tasks, including cross-person reenactment. In particular, we show that our reenactment based on the new latent pose representation preserves the identity of the target person much better than when FAb-Net [38] and
+
+
+Figure 1: Being a Mona Lisa. Our system can generate realistic reenactments of arbitrary talking heads (such as Mona Lisa) using arbitrary people as pose drivers (top row). Despite learning in an unsupervised setting, the method can successfully decompose pose and identity, so that the identity of the reenacted person is preserved.
+
+X2Face [39] pose descriptors are used. Additionally, we analyze the quality of learned latent pose descriptors for such tasks as landmark prediction and pose-based retrieval.
+
+# 2. Related work
+
+Face/head reenactment is an active area of research. Here we distinguish between works where changes and augmentations are localized within faces (face reenactment), e.g. [33, 30], and more ambitious approaches that model extended regions including significant portion of clothing, neck, upper garment (head reenactment), e.g. [22, 37, 42].
+
+Pose representation is an important aspect of reenactment systems. As mentioned above, most works drive reenactment using landmarks [33, 22, 37, 42, 10, 36]. Another approach is to use facial action units (AU) [9], as is done in face reenactment [30] and head reenactment [35]. Detecting action units still requires manual annotation and supervised learning. The X2Face system [39] uses latent vectors that are learned to be predictable of warping fields.
+
+A more classic approach is to model face/head pose in the 3D morphable model (3DMM) framework [1] or using a similar approach in 2D (e.g. an active appearance model) [6]. Still, learning 3DMM and fitting a learned 3DMM almost invariably involves detecting landmarks, thus inheriting many of the landmark deficiencies. Alternatively, a dataset of 3D scans is required to build a model for pose/identity disentanglement in 3DMM framework.
+
+Several recent works have investigated how landmarks can be learned in an unsupervised way [44, 19]. While generally very promising, unsupervised keypoints still contain person-specific information just like supervised keypoints, and therefore are not generally suitable for cross-person reenactment. Same applies to dense, high-dimensional descriptors such as DensePose body descriptor [14], and dense face-only descriptors [15, 34]. Finally, Codec avatars [26] learn person-specific latent pose descriptors and extractors based on the reconstruction losses. However, the transfer
+
+of such descriptors from person to person was not considered. The recent and parallel work [32] has demonstrated that relative motion of unsupervised keypoints can be used to transfer animations at least in the absence of strong head rotation. Full-fledged comparison of our approach to [32] is left for future work.
+
+Beyond head/face reenactment, there is a very large body of work on learning disentangled representations. Some representative works that learn latent pose or shape descriptors for arbitrary classes of objects using datasets of videos include [8, 40]. Some approaches (e.g. [24]) aim to learn content-style disentanglement (which may roughly correspond to shape-texture disentanglement) using adversarial [12] and cycle-consistency [45, 17] losses. Alternatively, disentanglement can be obtained by the direct fitting of factorized distributions to data (e.g. [23]).
+
+# 3. Method
+
+Our system modifies and expands the reenactment model of Zakharov et al. [42]. First, the ability to predict the segmentation is added. Second, the system learns to perform reenactment based on latent pose vectors rather than keypoints. Below, we provide the details of our system (shown in Figure 2).
+
+# 3.1. Training pipeline
+
+As in [42], we learn on the VoxCeleb2 dataset [4] of video sequences. Each sequence contains a talking person, and is obtained from a raw sequence by running a face detector, cropping the resulting face and resizing it to a fixed size ( $256 \times 256$ in our case). Also, as in the case of [42], there is a "meta-learning" stage when a big model responsible for reproducing all people in the dataset is trained through a sequence of training episodes, and a fine-tuning stage, when that "meta-model" is fine-tuned to a tuple of images (or a single image) of a particular person.
+
+
+Figure 2: At each step of meta-learning, our system samples a set of frames from a video of a person. The frames are processed by two encoders. The bigger identity encoder is applied to several frames of the video, while the smaller pose embedder is applied to a hold-out frame. The obtained embeddings are passed to the generator network, whose goal is to reconstruct the last (hold-out) frame. Since the capacity of the pose encoder is limited, and since its input does not exactly match other frames w.r.t. identity (thanks to data augmentation), the system learns to extract all pose-independent information through the identity encoder, and uses the smaller encoder to capture only pose-related information, thus achieving pose-identity disentanglement.
+
+Our changes affect both stages in an analogous way, and we focus on the meta-learning step in the below discussion.
+
+During each episode of meta-learning we consider a single video sequence. We then fetch $K + 1$ random frames $I_1, \ldots, I_{K + 1}$ from this sequence, as well as $S_{K + 1}$ - a foreground segmentation map for $I_{K + 1}$ , which we precompute using an off-the-shelf semantic segmentation network. The first $K$ images $I_1, \ldots, I_K$ are then fed into a relatively high-capacity convolutional net $F$ , which we call identity encoder. It is analogous to the embedder network in [42] with the exception that it does not accept the keypoints as an input.
+
+For each image $I_{i}$ , the identity encoder outputs $d_{i}$ -dimensional vector $x_{i} = F(I_{i})$ , which we call the identity embedding of $I_{i}$ . Identity embeddings are expected to contain the pose-independent information about the person (including lighting, clothing, etc.) Given $K$ frames, we obtain a single identity vector $\bar{x}$ by taking the mean of $x_{1}, \ldots x_{K}$ .
+
+The remaining image $I_{K + 1}$ (the pose source) first undergoes a random pose augmentation transformation $A$ , which is described below. Then, $A(I_{K + 1})$ is passed through a network of much lower capacity, which we call the pose encoder and denote as $G$ . The pose encoder outputs a $d_p$ -dimensional pose embedding $y_{K + 1} = G(A(I_{K + 1}))$ , which we want to be a person-agnostic pose descriptor.
+
+The transformation $A$ mentioned above is important for pose-identity disentanglement. It keeps person's pose intact but may alter its identity. Namely, it randomly scales the image independently over the horizontal and the vertical axes, and randomly applies content-preserving oper
+
+ations such as blur, sharpening, contrast change, or JPEG compression. We call $A$ pose augmentation since it is applied on the pose source, and it can be regarded as a form of data augmentation.
+
+The pose and the identity embeddings are passed to the generator network that tries to reconstruct the image $I_{K + 1}$ as accurately as possible. Whereas [42] used rasterized keypoints (stickman images) to pass the pose into their generator networks, we rely entirely on the AdaIN [16] mechanism to pass both the pose and the identity embeddings to the generator. More specifically, our upsampling generator starts with a constant learnable tensor of size $512 \times 4 \times 4$ and outputs the two tensors: $I^{G}(\bar{x},y_{K + 1})$ of size $3 \times 256 \times 256$ and $S^G (\bar{x},y_{K + 1})$ of size $1 \times 256 \times 256$ , which it tries to match to the foreground part of the image $I_{K + 1}$ and its segmentation mask $S_{K + 1}$ respectively. This is achieved by simply predicting a $4 \times 256 \times 256$ tensor in the final layer. The AdaIN blocks are inserted after each convolution. The AdaIN coefficients are produced by taking the concatenated pose and identity embeddings and passing this $(d_{i} + d_{p})$ -dimensional vector through an MLP with learnable parameters in the spirit of StyleGAN [20].
+
+We expect $I^{G}(\bar{x},y_{K + 1})\odot S^{G}(\bar{x},y_{K + 1})$ and $S^G (\bar{x},y_{K + 1})$ produced by the generator to be as close as possible to $I_{K + 1}\odot S_{K + 1}$ and $S_{K + 1}$ , respectively. We achieve this with the help of several loss functions. Segmentation maps are matched with the help of the dice coefficient loss [27]. Head images with background blacked out, on the other hand, are matched using the same combination of losses as in [42]. Namely, there are
+
+content losses based on matching of ConvNet activations for a VGG-19 model trained for ImageNet classification and a VGGFace model trained for face recognition. Also, $I^{G} \odot S^{G}$ and $I_{K+1} \odot S_{K+1}$ are passed through a projection discriminator (the difference from [42] here is that we again do not provide rasterized keypoints to it) to compute the adversarial loss that pushes images to be realistic, the discriminator feature matching loss, and an embedding match term.
+
+Reenactment and fine-tuning. Once the model has been meta-learned, it can be used to fit new identities unseen during meta-learning. Thus, given one or more images of a new person, their identity vector $\bar{x}$ can be extracted by passing those images through the identity encoder and averaging the results element-wise. Then, by plugging in a pose vector $y$ extracted from an image of the same or of a different person, we can reenact the person by computing the image $I^{G}(\bar{x}, y)$ and its foreground mask $S^{G}(\bar{x}, y)$ .
+
+To further reduce the identity gap, we follow [42] and fine-tune the model (namely, the weights of the MLP, the generator, and the discriminator) with the same set of losses as in [42] plus the dice coefficient loss treating the provided set of images of a new person and their segmentation as the ground truth. The estimated identity embedding $\bar{x}$ is kept fixed during the fine-tuning (including it into the optimization did not result in any difference in our experiments, since the number of parameters in the embedding $\bar{x}$ is much smaller than in the MLP and the generator network). The pose embedding network $G$ is also kept fixed during the fine-tuning.
+
+# 3.2. Disentanglement of pose and identity
+
+Our key finding is that when applied to a person $X$ the reenactment model trained as discussed above can successfully reproduce the mimics of a person in image $I$ when the pose vector $y = G(I)$ is extracted from an image of the same person $X$ . More surprisingly, the model can also reproduce the mimics when the pose vector is extracted from an image of a different person $Y$ . In this case, the bleeding of identity from this different person is kept to a minimum, i.e. the resulting image still looks like an image of a person $X$ .
+
+Initially, we expected that such disentanglement of pose and identity should not happen, and that some form of adversarial training [12] or cycle-consistency [45, 17] would be necessary to ensure the disentanglement. It turns out that with (i) low enough capacity of the pose extractor network $G$ , (ii) pose augmentations applied, and (iii) background segmented out, disentanglement happens automatically, and our experiments with extra loss terms such as in e.g. [8] did not produce any further improvement. Apparently, with the three techniques above, the model prefers to extract all
+
+person-specific details from the identity source frame using the higher-capacity identity extractor network.
+
+In Section 4 below, we evaluate this disentanglement effect that came as a "pleasant surprise" and show that it is indeed stronger than in the case of other related approaches (i.e. supports cross-person reenactment better with less identity bleeding).
+
+In supplementary material, we additionally conduct ablation studies to investigate how pose encoder capacity, pose augmentations, segmentation, and latent pose vector dimensionality $d_{p}$ affect the ability of our reenactment system to preserve pose and identity.
+
+# 3.3. Implementation details
+
+Our training dataset is a collection of YouTube videos from VoxCeleb2 [4]. There are on the order of 100,000 videos of about 6,000 people. We sampled 1 of every 25 frames from each video, leaving around seven million of total training images. In each image, we re-cropped the annotated face by first capturing its bounding box with the $\mathrm{S}^3\mathrm{FD}$ detector [43], then making that box square by enlarging the smaller side, growing the box's sides by $80\%$ keeping the center, and finally resizing the cropped image to $256 \times 256$ . Human segmentation is obtained by the Graphonomy model [11]. As in [42], we set $K = 8$ thus using the identity vector extracted from eight random frames of a video in order to reconstruct the ninth one based on its pose descriptor.
+
+In our best model, the pose encoder has the MobileNetV2 architecture [31] and the identity encoder is a ResNeXt-50 $(32 \times 4\mathrm{d})$ [41]. Both have not been tweaked, and so they include batch normalization [18]. The pose and identity embedding sizes, $d_p$ and $d_i$ , are 256 and 512 respectively. No normalization or regularization is applied to the embeddings. The module that transforms them into AdaIN parameters is a ReLU perceptron with spectral normalization and one hidden layer of 768 neurons.
+
+Our generator is based on that of [42], but without donwsampling blocks, since all inputs are delegated to AdaINs, which are located after each convolution. More precisely, a $512 \times 4 \times 4$ learnable constant tensor is transformed by 2 constant resolution residual blocks, followed by 6 upsampling residual blocks. We start halving the number of channels from the fourth upsampling block so that the tensor of final resolution $(256 \times 256)$ has 64 channels. That tensor is passed through an AdaIN layer, a ReLU, a $1 \times 1$ convolution and a tanh, becoming a 4-channel image. Unlike [42], we do not use self-attention. Spectral normalization [28] is employed everywhere in the generator, the discriminator and the MLP.
+
+Instead of alternating generator and discriminator updates, a single weight update is carried out for all networks after gradient accumulations from all loss terms.
+
+We trained the model for 1,200,000 iterations with a
+
+minibatch of 8 samples spread over two NVIDIA P40 GPUs, which in total takes about two weeks.
+
+# 4. Results
+
+Our quantitative evaluation assesses both the relative performance of the pose descriptors using auxiliary tasks, and the quality of cross-person reenactment. Qualitatively, we show examples of reenactment in same-person and cross-person scenarios as well as interpolation results in the learned pose space. The ablation study in the supplementary material shows the effect of different components of our method.
+
+# 4.1. Compared methods
+
+Below, we compare our results with the results of the following methods and systems. We consider the following pose descriptors based on various degrees of supervision:
+
+- Ours. 256-dimensional latent pose descriptors learned within our system.
+- X2Face. 128-dimensional driving vectors learned within the X2Face reenactment system [39].
+- FAb-Net. We also evaluate the 256-dimensional FAb-Net descriptors [38] as a pose representation. These are related to ours in that, although not being person-agnostic, they are also learned in an unsupervised way from the VoxCeleb2 video collection.
+- 3DMM. We consider a state-of-the-art 3DMM system [3]. This system extracts decomposed rigid pose, face expression, and a shape descriptor using a deep network. The pose descriptor is obtained by concatenating the rigid pose rotation (represented as a quaternion), and the face expression parameters (29 coefficients).
+
+Our descriptor learns from VoxCeleb2 dataset. X2Face descriptor is trained on a smaller VoxCeleb1 dataset [29], and FAb-Net is learned from both. The 3DMM descriptors are most heavily supervised, as the 3DMM is learned from 3D scans and requires a landmark detector (which is in turn learned in a supervised setting).
+
+In addition, we consider the following head reenactment systems based on these pose descriptors:
+
+- Ours. Our full system as described in Section 3.
+- X2Face. The X2Face system [39] based on native descriptors and warping-based reenactment.
+- X2Face+. In this variant, we use frozen pre-trained X2Face's driving network (up to the driving vector) instead of our pose encoder, and keep the rest of the
+
+ | Accuracy for Top-N queries (%) |
| Descriptor | N=10 | N=20 | N=50 | N=100 |
| FAb-Net | 45.7 | 40.8 | 36.6 | 35.7 |
| 3DMM | 47.3 | 45.6 | 41.9 | 41.1 |
| X2Face | 61.0 | 55.7 | 51.8 | 49.4 |
| Ours | 75.7 | 63.8 | 57.8 | 54.1 |
+
+Table 1: The accuracy of pose (expression)-based retrieval results using different pose descriptors on the Multi-PIE dataset. See text for more details.
+
+architecture unchanged from ours. We train the identity encoder, the generator conditioned on X2Face latent pose vector and our identity embedding, and the projection discriminator.
+
+- FAb-Net+. Same as X2Face+ but with frozen FAb-Net in place of our pose encoder.
+- 3DMM+. Same as X2Face+ but with frozen ExpNet [3] in place of our pose encoder, and with pose augmentations disabled. The pose descriptor is constructed from ExpNet's outputs as described above. We additionally normalize these 35-dimensional descriptors by per-element mean and standard deviation computed over the VoxCeleb2 training set.
+- FSTH. The original few-shot talking head system of [42] driven by rasterized keypoints.
+- $\mathrm{FSTH}+$ . We retrain the system of [42] by making several changes that makes it more comparable with our system and other baselines. The raw keypoint coordinates are put into the generator using AdaIN mechanism (just like in our system). The generator predicts segmentation alongside the image. We also use the same crops, which are different from [42].
+
+# 4.2. Descriptor evaluation
+
+To understand how good are the learned pose descriptors at matching different people in the same pose, we use the Multi-PIE dataset [13], which is not used for training of either of descriptors, but has six emotion class annotations for people in various poses. We restrict the dataset to near-frontal and half-profile camera orientations (namely 08_0, 13_0, 14_0, 05_1, 05_0, 04_1, 19_0), leaving 177,280 images. In each camera orientation group, we randomly choose a query image from it and fetch the closest $N$ images from the same group using cosine similarity of descriptors. We consider a match to be correct if a person with the same emotion label is returned. We repeat this procedure 100 times for each group. In Table 1 we show the overall ratio of correct matches within top-10, top-20, top-50, and top-100 lists. For the 3DMM
+
+
+Figure 3: Evaluation of reenactment systems in terms of their ability to represent the driver pose and to preserve reference identity (arrows point towards improvement). See text for details.
+
+descriptor, we only consider the 29 face expression coefficients and ignore the rigid pose information as irrelevant for emotions.
+
+In this comparison, it can be observed that the latent space of our pose embeddings is better grouped with respect to emotion classes that those of other facial expression descriptors, as our result is much better for top-10 and top-20 metrics, while being similar to X2Face and better than the rest for top-50 and top-100. We believe that FAb-Net's and X2Face's vectors contain identity information (we prove this again below), so they are more likely to be close to vectors representing same or similar person. As for 3DMM, it requires different latent expression vectors to turn different shapes (persons) into the same facial expression by construction; therefore, expression coefficients may easily coincide for different people showing different facial expressions.
+
+Keypoint prediction. Keypoint regression is not within our target applications, since keypoints contain person-specific information. However, this is a popular task on which unsupervised pose descriptors have compared in the past, so we have also run our method on a standard benchmark on the MAFL [25] test set. To predict keypoints, we use a ReLU MLP with one hidden layer of size 768, and in our case we use both pose and identity embeddings as an input. Using the standard normalized inter-ocular distance, we obtain the distance error of 2.63. This is smaller than the error of 3.44 obtained by FAb-Net, though behind the state-of-the-art of [19] (2.54) for this task.
+
+# 4.3. Reenactment performance
+
+Quantitative evaluation. We compare the performance of the seven reenactment systems listed above in the crossperson setting. To do this, we randomly choose 30 people from the test split of VoxCeleb2 and learn talking head models $T_{1}, \ldots, T_{30}$ for them. Each model $T_{k}$ is created from 32 random frames of a video $I_{1}^{k}, \ldots, I_{32}^{k}$ . All models except X2Face are fine-tuned to those 32 frames for 600 optimization steps. Using these models, we compute two metrics per system, identity error $\mathcal{I}_T$ and pose reconstruction error $\mathcal{P}_T$ .
+
+The identity error $\mathcal{I}_T$ estimates how closely the resulting talking heads resemble the original person $k$ that the model was learned for. For that, we use the ArcFace [7] face recognition network $R$ that outputs identity descriptors (vectors). We compute the averaged reference descriptor $r_k = \frac{1}{32}\sum_{j=1}^{32} R(I_j^k)$ from the fine-tuning dataset $I_1^k, \ldots, I_{32}^k$ , and use the cosine similarity (csim) to compare it with the descriptors obtained from cross-person reenactment results. Cross-person reenactment is performed by driving $T_k$ with all other 29 people. To obtain the final error, we average (one minus) similarities over all 30 people in the test set. Formally,
+
+$$
+\mathcal{I}_{T} = \frac{1}{30\cdot 29\cdot 32}\sum_{k = 1}^{30}\sum_{\substack{i = 1\\ i\neq k}}^{30}\sum_{j = 1}^{32}\left[1 - \operatorname {csim}\left(R\left(T_{k}(I_{j}^{i})\right),r_{k}\right)\right].
+$$
+
+The pose reconstruction error $\mathcal{P}_T$ , on the other hand, is designed to quantify how well the system replays driver's pose and facial expression, and is defined in terms of facial landmarks. Since sets of landmarks can only be compared directly for the same person, we restrict the test dataset to self-reenactment pairs, i.e. we only drive $T_{k}$ with $I^{k}$ . However, because $T_{k}$ has learned on $I_1^k,\ldots ,I_{32}^k$ , we use another 32 hold-out frames from the same video $I_{33}^{k},\ldots ,I_{64}^{k}$ to avoid overfitting. We employ an off-the-shelf 2D facial landmarks prediction algorithm [2] $L$ to obtain landmarks in both the driver $I_{j}^{k}$ and the reenactment result $T_{k}(I_{j}^{k})$ . In our case, a measure $d_{\mathrm{landmarks}}(l_1,l_2)$ of how close landmarks $l_{2}$ approximate reference landmarks $l_{1}$ is the average distance between corresponding landmarks normalized by inter-ocular distance. As before, we compute $d$ for all drivers and average across all 30 people:
+
+$$
+\mathcal {P} _ {T} = \frac {1}{3 0 \cdot 3 2} \sum_ {k = 1} ^ {3 0} \sum_ {j = 3 3} ^ {6 4} d _ {\mathrm {l a n d m a r k s}} \left(L \left(I _ {j} ^ {k}\right), L \left(T _ {k} (I _ {j} ^ {k})\right)\right).
+$$
+
+The plot in Figure 3 has these two metrics evaluated for the compared models. A perfect system $T$ would have $\mathcal{I}_T = \mathcal{P}_T = 0$ , i.e. the closer to the lower left corner, the better. In these terms, our full model is strictly better than all systems
+
+
+Figure 4: Reenactment by interpolation between two pose vectors across spherical trajectory in the pose descriptor space. Our system successfully creates visually smooth and identity preserving reenactment.
+
+except $\mathrm{FSTH+}$ , which is slightly better in one of the metrics but much worse in the other, and which benefits from an external keypoint detector.
+
+Qualitative comparison. Figure 5 gives a qualitative comparison of the reenactment systems described above. It is evident that FSTH, being driven by rasterized landmarks, relies heavily on the driver's facial proportions, and thus is not person-agnostic. Its modified version $\mathrm{FSTH+}$ does a better job having more representational power around vectorized keypoints; still, there are visible "identity bleeding" (e.g. compare head width in columns 1 and 2) and errors in prominent facial expressions, such as closing eyes. The warping-based method X2Face fails on slight rotations already.
+
+Two similar methods, X2Face+ and FAb-Net+, both provide strong baselines despite some signs of identity mismatch, for example, traces of eyeglasses in column 7 and long hair seeping in from the pose driver in column 5. It is important to note that although pose descriptors from those methods are not person-agnostic, we still apply pose augmentations during training. In the ablation study below, we demonstrate that cross-person reenactment performance drops dramatically when we remove pose augmentations in these two methods.
+
+The 3DMM+ method has a very tight bottleneck of interpretable parameters, and therefore its identity gap is very small. However, apparently for the same reason, it is not as good at rendering correct subtle facial expressions. Our full system is able to accurately represent pose driver's facial expression while preserving identity of the target person.
+
+In addition, we also show reenactment by interpolation in the pose space for our system in Figure 4, which demonstrates smooth pose changes.
+
+Temporal smoothness. The supplementary video demonstrates the capability of our descriptor to create temporally-smooth reenactment without any temporal smoothing of the extracted pose (provided that the results of bounding box detection are temporally smooth). At the same time, we have found that achieving temporally smooth reenactment with keypoint-driven systems (FSTH, FSTH+) requires a lot of keypoint smoothing.
+
+# 5. Discussion
+
+We have presented and evaluated a neural head reenactment that uses latent pose descriptors and is able to achieve realistic reenactment. Unlike the predecessor system [42] that used the keypoints as pose descriptor, our system uses the pose descriptors without explicit supervision purely based on the reconstruction losses. The only weak form of supervision comes from the segmentation masks. Our learned head pose descriptors outperform previous unsupervised descriptors at the tasks of pose-based retrieval, as well as cross-person reenactment.
+
+Our main, perhaps surprising, finding is that limiting capacity of the pose extraction network in our scheme is sufficient for pose/identity disentanglement. At the same time, it might happen that appropriate use of cyclic and/or adversarial losses may improve disentanglement even better. Perhaps because of the constraint on the network capacity, our pose descriptors and reenactment system has problems
+
+
+Figure 5: Comparison of cross-person reenactment for several systems on VoxCeleb2 test set. The top left image is one of the 32 identity source frames. The other images in the top row are pose drivers. Our method better preserves the identity of the target person and successfully transfers the mimics from the driver person.
+
+with capturing some subtle mimics, especially gaze direction (though it still does a better job than keypoint descriptors that lack gaze representation altogether). Another obvious avenue of research is learning pose descriptor and the
+
+entire system in a semi-supervised way.
+
+# References
+
+[1] V. Blanz, T. Vetter, et al. A morphable model for the synthesis of 3d faces. In Proc. SIGGRAPH, volume 99, pages 187-194, 1999. 2
+[2] A. Bulat and G. Tzimiropoulos. How far are we from solving the 2d & 3d face alignment problem? (and a dataset of 230, 000 3d facial landmarks). In Proc. ICCV, pages 1021-1030, 2017. 1, 6
+[3] F.-J. Chang, A. T. Tran, T. Hassner, I. Masi, R. Nevatia, and G. Medioni. Expnet: Landmark-free, deep, 3d facial expressions. In In proc. FG, pages 122-129. IEEE, 2018. 5
+[4] J. S. Chung, A. Nagrani, and A. Zisserman. Voxceleb2: Deep speaker recognition. In INTERSPEECH, 2018. 1, 2, 4
+[5] J. S. Chung, A. Senior, O. Vinyals, and A. Zisserman. Lip reading sentences in the wild. In Proc. CVPR, pages 3444-3453. IEEE, 2017. 1
+[6] T. F. Cootes, G. J. Edwards, and C. J. Taylor. Active appearance models. T-PAMI, (6):681-685, 2001. 2
+[7] J. Deng, J. Guo, X. Niannan, and S. Zafeiriou. Arcface: Additive angular margin loss for deep face recognition. In Proc. CVPR, 2019. 6
+[8] E. L. Denton and V. Birodkar. Unsupervised learning of disentangled representations from video. In Proc. NeurIPS, pages 4414-4423, 2017. 2, 4
+[9] P. Ekman. Facial action coding system. 1977. 2
+[10] C. Fu, Y. Hu, X. Wu, G. Wang, Q. Zhang, and R. He. High fidelity face manipulation with extreme pose and expression. arXiv preprint arXiv:1903.12003, 2019. 1, 2
+[11] K. Gong, Y. Gao, X. Liang, X. Shen, M. Wang, and L. Lin. Graphonomy: Universal human parsing via graph transfer learning. In CVPR, 2019. 4
+[12] I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio. Generative adversarial nets. In Proc. NIPS, 2014. 2, 4
+[13] R. Gross, I. Matthews, J. Cohn, T. Kanade, and S. Baker. Multi-pie. In Proceedings of the IEEE International Conference on Automatic Face and Gesture Recognition. IEEE Computer Society, September 2008. 5
+[14] R. A. Güler, N. Neverova, and I. Kokkinos. DensePose: Dense human pose estimation in the wild. In Proc. CVPR, June 2018. 2
+[15] R. A. Güler, G. Trigeorgis, E. Antonakos, P. Snape, S. Zafeiriou, and I. Kokkinos. DenseReg: Fully convolutional dense shape regression in-the-wild. In CVPR, volume 2, page 5, 2017. 2
+[16] X. Huang and S. Belongie. Arbitrary style transfer in real-time with adaptive instance normalization. In Proc. ICCV, 2017. 3
+[17] X. Huang, M.-Y. Liu, S. Belongie, and J. Kautz. Multimodal unsupervised image-to-image translation. In Proc. ECCV, 2018. 2, 4
+[18] S. Ioffe and C. Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Proc. ICML, ICML'15, pages 448-456, 2015. 4
+[19] T. Jakab, A. Gupta, H. Bilen, and A. Vedaldi. Unsupervised learning of object landmarks through conditional image generation. In Proc. NeurIPS, pages 4016-4027, 2018. 2, 6
+
+[20] T. Karras, S. Laine, and T. Aila. A style-based generator architecture for generative adversarial networks. In Proc. CVPR, June 2019. 3
+[21] V. Kazemi and J. Sullivan. One millisecond face alignment with an ensemble of regression trees. Proc. CVPR, pages 1867-1874, 2014. 1
+[22] H. Kim, P. Garrido, A. Tewari, W. Xu, J. Thies, M. Nießner, P. Pérez, C. Richardt, M. Zollhöfer, and C. Theobalt. Deep video portraits. In Proc. SIGGRAPH, 2018. 1, 2
+[23] H. Kim and A. Mnih. Disentangling by factorising. In Proc. ICML, pages 2654-2663, 2018. 2
+[24] M. Liu, X. Huang, A. Mallya, T. Karras, T. Aila, J. Lehtinen, and J. Kautz. Few-shot unsupervised image-to-image translation. In Proc. ICCV, 2019. 2
+[25] Z. Liu, P. Luo, X. Wang, and X. Tang. Deep learning face attributes in the wild. In Proc. ICCV, December 2015. 6
+[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. 2
+[27] F. Miletari, N. Navab, and S.-A. Ahmadi. V-net: Fully convolutional neural networks for volumetric medical image segmentation. pages 565-571, 10 2016. 3
+[28] T. Miyato, T. Kataoka, M. Koyama, and Y. Yoshida. Spectral normalization for generative adversarial networks. In International Conference on Learning Representations, 2018. 4
+[29] A. Nagrani, J. S. Chung, and A. Zisserman. Voxceleb: a large-scale speaker identification dataset. In INTER-SPEECH, 2017. 1, 5
+[30] A. Pumarola, A. Agudo, A. M. Martinez, A. Sanfeliu, and F. Moreno-Noguer. Ganimation: Anatomically-aware facial animation from a single image. In Proc. ECCV, pages 818-833, 2018. 1, 2
+[31] M. Sandler, A. Howard, M. Zhu, A. Zhmoginov, and L.-C. Chen. Mobilenetv2: Inverted residuals and linear bottle-necks. In Proc. CVPR, June 2018. 4
+[32] A. Siarohin, S. Lathuilière, S. Tulyakov, E. Ricci, and N. Sebe. First order motion model for image animation. In Proc. NeurIPS, pages 7135-7145, 2019. 2
+[33] S. Suwajanakorn, S. M. Seitz, and I. Kemelmacher-Shlizerman. Synthesizing Obama: learning lip sync from audio. ACM Transactions on Graphics (TOG), 36(4):95, 2017. 1, 2
+[34] J. Thewlis, S. Albanie, H. Bilen, and A. Vedaldi. Unsupervised learning of landmarks by descriptor vector exchange. In Proc. ICCV, 2019. 2
+[35] S. Tripathy, J. Kannala, and E. Rahtu. Icface: Interpretable and controllable face reenactment using gans. CoRR, abs/1904.01909, 2019. 1, 2
+[36] T. Wang, M. Liu, A. Tao, G. Liu, J. Kautz, and B. Catanzaro. Few-shot video-to-video synthesis. CoRR, abs/1910.12713, 2019. 1, 2
+[37] T.-C. Wang, M.-Y. Liu, J.-Y. Zhu, G. Liu, A. Tao, J. Kautz, and B. Catanzaro. Video-to-video synthesis. Proc. NeurIPS, 2018. 1, 2
+[38] O. Wiles, A. Koepke, and A. Zisserman. Self-supervised learning of a facial attribute embedding from video. In Proc. BMVC, 2018. 1, 5
+
+[39] O. Wiles, A. Sophia Koepke, and A. Zisserman. X2face: A network for controlling face generation using images, audio, and pose codes. In Proc. ECCV, September 2018. 1, 2, 5
+[40] F. Xiao, H. Liu, and Y. J. Lee. Identity from here, pose from there: Self-supervised disentanglement and generation of objects using unlabeled videos. In Proc. ICCV, October 2019. 2
+[41] S. Xie, R. Girshick, P. Dollar, Z. Tu, and K. He. Aggregated residual transformations for deep neural networks. In Proc. CVPR, July 2017. 4
+[42] E. Zakharov, A. Shysheya, E. Burkov, and V. Lempitsky. Few-shot adversarial learning of realistic neural talking head models. In Proc. ICCV, October 2019. 1, 2, 3, 4, 5, 7
+[43] S. Zhang, X. Zhu, Z. Lei, H. Shi, X. Wang, and S. Z. Li. S3fd: Single shot scale-invariant face detector. In Proc. ICCV, Oct 2017. 4
+[44] Y. Zhang, Y. Guo, Y. Jin, Y. Luo, Z. He, and H. Lee. Unsupervised discovery of object landmarks as structural representations. In Proc. CVPR, pages 2694-2703, 2018. 2
+[45] J.-Y. Zhu, T. Park, P. Isola, and A. A. Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In Proc. ICCV, 2017. 2, 4
\ No newline at end of file
diff --git a/neuralheadreenactmentwithlatentposedescriptors/images.zip b/neuralheadreenactmentwithlatentposedescriptors/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..68e5176298c64d297e0d1867083b03d1243773d3
--- /dev/null
+++ b/neuralheadreenactmentwithlatentposedescriptors/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e7809820ae5c9e06dc18a1b0a8c26acda6807420408e6081b81a591a36b95679
+size 456461
diff --git a/neuralheadreenactmentwithlatentposedescriptors/layout.json b/neuralheadreenactmentwithlatentposedescriptors/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..84bcd07a2248f3cf3e0faadbc3201f97930652bf
--- /dev/null
+++ b/neuralheadreenactmentwithlatentposedescriptors/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:217f848888ca2652d37a1f7190e67a624d521b04137c66262f656300be9e4b7e
+size 329294
diff --git a/neuralimplicitembeddingforpointcloudanalysis/73f9a9df-4813-4ac9-8eac-5747b4cc107b_content_list.json b/neuralimplicitembeddingforpointcloudanalysis/73f9a9df-4813-4ac9-8eac-5747b4cc107b_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..aa5b137d87c1cb1463e958768e04e58f9d0d3f1d
--- /dev/null
+++ b/neuralimplicitembeddingforpointcloudanalysis/73f9a9df-4813-4ac9-8eac-5747b4cc107b_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4bc85bf889b110a2746f1f8db27f7b99e349fc21f0bcc9c6aa04a7dffd4b9fbb
+size 80830
diff --git a/neuralimplicitembeddingforpointcloudanalysis/73f9a9df-4813-4ac9-8eac-5747b4cc107b_model.json b/neuralimplicitembeddingforpointcloudanalysis/73f9a9df-4813-4ac9-8eac-5747b4cc107b_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..38073e544005e8c34740503245c085bb9c5df2a1
--- /dev/null
+++ b/neuralimplicitembeddingforpointcloudanalysis/73f9a9df-4813-4ac9-8eac-5747b4cc107b_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1b26fdc6e6cbabc0f836d438c75ca53b58634bde76daf42ec04413341a5c59ba
+size 100051
diff --git a/neuralimplicitembeddingforpointcloudanalysis/73f9a9df-4813-4ac9-8eac-5747b4cc107b_origin.pdf b/neuralimplicitembeddingforpointcloudanalysis/73f9a9df-4813-4ac9-8eac-5747b4cc107b_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..41eed39c822782e35e640d344efca78183a13315
--- /dev/null
+++ b/neuralimplicitembeddingforpointcloudanalysis/73f9a9df-4813-4ac9-8eac-5747b4cc107b_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b3f0ccf00c60de05e3a1091b3d7b8c17e3c165c34375f48f61cb530377f16bec
+size 3257866
diff --git a/neuralimplicitembeddingforpointcloudanalysis/full.md b/neuralimplicitembeddingforpointcloudanalysis/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..81e3378584ff87d5b45f719521fe841fd6e36a11
--- /dev/null
+++ b/neuralimplicitembeddingforpointcloudanalysis/full.md
@@ -0,0 +1,341 @@
+# Neural Implicit Embedding for Point Cloud Analysis
+
+Kent Fujiwara and Taiichi Hashimoto LINE Corporation
+
+{kent.fujiwara, taichi Hashimoto}@linecorp.com
+
+# Abstract
+
+We present a novel representation for point clouds that encapsulates the local characteristics of the underlying structure. The key idea is to embed an implicit representation of the point cloud, namely the distance field, into neural networks. One neural network is used to embed a portion of the distance field around a point. The resulting network weights are concatenated to be used as a representation of the corresponding point cloud instance. To enable comparison among the weights, Extreme Learning Machine (ELM) is employed as the embedding network. Invariance to scale and coordinate change can be achieved by introducing a scale commutative activation layer to the ELM, and aligning the distance field into a canonical pose. Experimental results using our representation demonstrate that our proposal is capable of similar or better classification and segmentation performance compared to the state-of-the-art point-based methods, while requiring less time for training.
+
+# 1. Introduction
+
+Analysis of unstructured point cloud data is one of the central topics in computer vision, as 3-dimensional data of various objects can now be easily captured through commercial sensors. Point clouds play an important role in key areas, such as autonomous driving and robotics, where spatial information of the surrounding environment is critical [4, 31]. Point cloud data can also be interpreted as sets, whose analysis is known to have various applications [48].
+
+Unlike 2-dimensional images, 3-dimensional point clouds are generally unordered, unstructured, and represented in an arbitrary coordinate system. Therefore, there is no straightforward method to apply convolutional neural networks to point clouds, despite their recent success in the analysis of 2D data. Many of the current methods attempt to create a regular representation by converting point clouds into voxel data or even rendered images. However, in these cases, information of the original points is lost, making such tasks as point-wise label assignment significantly
+
+
+Figure 1: Proposed representation. A specific type of a neural network, Extreme Learning Machine, is responsible for embedding a local portion of the implicit representation around a point in the point cloud. The trainable weights $\beta$ from the ELMs, concatenated into a single matrix, are the representation of the corresponding point cloud instance (in this case: Stanford Bunny). The representation can be utilized for tasks such as classification and segmentation.
+
+more difficult. This fact necessitates a different approach to producing a representation of 3D point clouds.
+
+An ideal representation of point clouds should also be robust to arbitrary changes of the origin location, orientation, and scale of the 3D coordinate system used to describe point cloud data. Conventional methods for 3D point cloud data analysis generally attempt to obtain such representation through data augmentation by applying various transformations and adding perturbations to the training data.
+
+We propose a novel representation of points clouds that encapsulates the local information around points clouds, and addresses such issues as robustness to coordinate system change, scaling, and permutation. As shown in Fig. 1, the key idea is to embed an implicit function of one point cloud instance into multiple neural networks, whose weights are used as the feature of the point cloud instance.
+
+We firstly convert each point cloud into an implicit function, the distance field. We acquire the distance field of each instance using a sphere of fixed sampling points, which we call a sampling sphere. We place one sphere on top of each
+
+point in the point cloud to acquire the distance field.
+
+We then embed the distance field within each sampling sphere in a neural network to make the implicit representation invariant to sampling point permutation. One network is responsible for representing the distance field within one sampling sphere. The weights from all the networks are concatenated into a matrix to be used as the representation of the corresponding point cloud instance. We enable comparison among the network weights from each instance by employing a specific type of neural network for embedding distance fields: Extreme Learning Machine (ELM).
+
+The representation, consisting of weights obtained from local embedding networks, can be made invariant to coordinate change and scaling by altering the network components and aligning the distance fields. Scale invariance is achieved by using ReLU activation layer in each ELM, and coordinate invariance by using the canonical coordinates of the sampling points, obtained through aligning the distance field to the canonical space determined by the distribution of the distance values unique to each instance.
+
+The major contribution of the representation is that it provides a simple method to capture local details. The experiments demonstrate that our method can provide state-of-the-art accuracy, in classification and segmentation, and is robust against perturbations such as rotation and scaling. Our representation required only simple neural networks to conduct these tasks, leading to reduction in training time.
+
+# 2. Related Work
+
+With the advances in deep learning techniques and more datasets [35, 2] starting to become available to the public, analysis of point clouds has developed into an important tasks in the field of computer vision. There are various topics in which 3D information is utilized, including shape retrieval [39], correspondence [41] and registration [37].
+
+Methods on point cloud data analysis mainly focus on finding a representation that can be used to train neural networks to extract characteristic information regarding point clouds. Current approaches can be categorized into 2 classes: Grid-based methods [47, 23, 42, 13, 8] and Point-based methods [27, 15, 18, 20, 49]. Aside from the two classes, there are also attempts to combine different representations [28], and approaches [45, 1] that embed shapes into a latent space using generative networks [10, 14].
+
+Grid-based methods attempt to convert point clouds into regular structures to allow convolution of local information. Voxel-based methods [47, 23] convert point clouds into voxel data. As the voxels are ordered and structured, convolution can be conducted simply by applying 3D filters. However, accuracy of these methods depend heavily on the resolution of voxels. Despite the recent efforts to make volumetric approach more efficient [30, 7, 16], these methods are known to be computationally demanding with larger
+
+number of voxels. Image-based methods [36, 42, 13] convert points clouds into 2D renderings and use 2D convolutional neural networks to conduct various analyses. Image-based methods are known to be highly successful at shape classification task, as they utilize external pre-trained models, usually trained using various 2D image datasets. However, these methods cannot be applied to tasks such as segmentation, where labels need to be assigned to individual points. The grid-based representations are also covariant to coordinate change, and require data from multiple viewpoints. Some methods convert geometric data to 2D planar data [34, 32]. These methods require the direction of gravity, which is not necessarily available. Our representation does not require such supervision, as we achieve rotational invariance by projection to the canonical pose.
+
+Point-based methods attempt to directly use the coordinates of the points. PointNet [27] proposed to feed point cloud data directly into a neural network. The method avoids the issue of point permutation by applying a symmetric function in higher dimensional space to obtain a global feature. This proposal has led to a new trend of methods directly operating on points [29, 20]. As PointNet produces a global signature for the entire point cloud, recent methods propose strategies to acquire local information from point clouds. Various methods introduce structures, such as $k$ -d trees and graphs, to capture the local relationship among unstructured points [15, 43, 33, 44, 17]. Other methods propose novel strategies for convolution to gather information from the neighboring points [46, 49, 22, 19, 40]. There are also attempts to introduce various local signatures, such as distance to neighboring points and angle between local surface normals, and use them to represent point clouds [5, 6, 50, 21]. Our method shares the same philosophy of incorporating local information surrounding point clouds. We capture the distance field around each point, and encapsulate it in a fixed-size vector using a neural network.
+
+Recently, there have been proposals to design unsupervised representations of the point clouds before conducting analyses [9]. Li et al. [18] proposed to first conduct unsupervised learning on each point cloud instance by creating a self-organizing map and identifying a set of nodes unique to each individual. The node information as well as the neighborhood information is used to train a deep neural network. Our method also conducts preprocessing to learn a representation for each instance in an unsupervised manner. We design our embedding strategy to capture the implicit representation around the objects points. The proposed method is also designed to achieve invariance to important elements such as scaling, point permutation, and coordinate change.
+
+Recent methods use neural networks to embed implicit representation of shapes for modeling purposes [24, 3]. Park et al. [26] use distance field obtained from a set of sampling points to train an auto-decoder, which returns a latent
+
+
+Figure 2: Implicit representation: Distance field $\Phi$ . Darker colors indicate larger distance. Sampling sphere (black circle in 2D) is placed over each surface point (blue).
+
+vector corresponding to the provided distance field. The latent vector, along with the sampling coordinates is used to train a deep neural network to learn the distance field of various shapes. Instead of using an auto-decoder to obtain a signature for a given distance field, we propose to use the weights of the neural network as the representation. Our method achieves invariance to sampling point permutation, as well as invariance to scaling of coordinate values.
+
+# 3. Proposed Method
+
+We propose a novel method that overcomes the difficulty of creating a representation for unstructured point clouds. Our method consists of two steps: Conversion of point cloud data into an implicit representation, the distance field, and network embedding of the implicit representation.
+
+# 3.1. Implicit Representation: Distance Field
+
+There are two reasons behind choosing the distance field as the representation. The first is that it achieves invariance to point permutation. The same set of points results in the same distance field, regardless of the point order. The second reason, which is the key to our method, is that distance is scale-covariant. When the coordinate values are scaled, the distance is also scaled by the same factor. This is critical for achieving scale invariance for embedding distances into a neural network with scale commutative property.
+
+Given a point cloud $\mathcal{P}$ consisting of $n$ surface points $\mathbf{p} \in \mathbb{R}^3$ , the distance function $\phi$ at a sampling point in the surrounding space $\mathbf{x} \in \mathcal{X}$ is defined as
+
+$$
+\phi (\mathbf {x}) = \min _ {\mathbf {p} \in \mathcal {P}} \| \mathbf {x} - \mathbf {p} \|. \tag {1}
+$$
+
+In practice, we prepare what we call a sampling sphere on top of each surface point in the point cloud $\mathcal{P}$ as shown in Fig. 2. The sampling sphere consists of $m$ sampling points $\mathbf{x}$ distributed within the sphere. In this method, the location
+
+
+Figure 3: Embedding Neural Network: Extreme Learning Machine. The distance field $\Phi$ for the $i$ -th point is embedded in the ELM.
+
+of the $m$ sampling points $\mathbf{x}$ are identical among sampling spheres of all the point cloud instances. The coordinates of the sampling points in each sphere are normalized, with the corresponding surface point $\mathbf{p}$ as the center of each sphere. Therefore, the distance within the normalized sphere $i$ is
+
+$$
+\phi_ {\mathcal {P} _ {i}} (\mathbf {x}) = \min _ {\tilde {\mathbf {p}}} \| \mathbf {x} _ {i} - \tilde {\mathbf {p}} \|. \tag {2}
+$$
+
+where $\tilde{\mathbf{p}} = \mathbf{p} - \mathbf{p}_i$ is the normalized coordinates of the surface points centered at the $i$ -th point $\mathbf{p}_i$ .
+
+The distance field, as is, is covariant to coordinate change. When sampling spheres and the target shape is rotated, the coordinates of the sampling points change and but the distance field inside the sphere remains the same.
+
+We define the radius of each sampling sphere to be relative to the radius of the sphere encapsulating the entire point cloud. If the underlying shape is either partial or open, we define the radius of the sampling spheres to be the average distance from each point to its $k$ -th nearest point, assuming that the density of points are even among all point clouds.
+
+# 3.2. Parameterization of Implicit Representation
+
+The distance field from each sampling sphere is then embedded into a neural network so that its weights capture the characteristics of the distances within each sampling sphere. For each surface point $\mathbf{p}$ , we train one neural network to capture the characteristics of the distance field around it.
+
+A regular neural network has numerous possibilities of weight combinations, as both the input-to-hidden-layer weights $\mathbf{W}$ and the corresponding hidden-to-output-layer weights $\beta$ are simultaneously optimized during training. To enable comparison between the neural network weights, they have to be embedded in the same metric space. We, therefore, employ a specific type of a neural network, namely an Extreme Learning Machine (ELM) [12].
+
+In this method, we employ a simple 3-layer ELM. An ELM is a feed forward neural network whose input-to
+
+
+Figure 4: Efficient embedding strategy. As the points in the sampling sphere are normalized with respect to the center, the pseudoinverse $\mathbf{H}^{\dagger} = f(\mathbf{W}\mathbf{X})^{\dagger}$ has to be calculated only once. This matrix is multiplied by the distance values obtained from the sampling sphere around each point, providing us with a unique weight $\beta$ for each sampling sphere without repetitive calculation of the pseudoinverse.
+Figure 5: Coordinate invariant representation. The original points, which can be considered as the 0-level set of the distance field, are shown. Despite randomly rotating the original model, our method aligns the distance fields.
+
+hidden-layer weights are fixed $\mathbf{W}$ , as shown in Fig. 3. The input to the ELM is the sampling points $\mathbf{X} \in \mathbb{R}^{m \times 3}$ in each sampling sphere centered around a surface point. We train the ELM to return $\Phi_{\mathcal{P}_i}(\mathbf{X})$ , the distance from the sampling points to the closest point in the point cloud $\mathcal{P}$ . The objective function of ELM is
+
+$$
+\beta_ {i} ^ {*} = _ {\beta_ {i}} \left\| \Phi_ {\mathcal {P} _ {i}} (\mathbf {X}) - \beta_ {i} ^ {\top} f \left(\mathbf {W X} ^ {\top} + \mathbf {b}\right) \right\| _ {F} ^ {2}, \tag {3}
+$$
+
+where $\beta_{i}\in \mathbb{R}^{k}$ is the network weights, $f$ is a non-linear activation function, $\mathbf{W}\in \mathbb{R}^{k\times 3}$ is the random weight, and $\mathbf{b}\in \mathbb{R}^k$ is the random bias. To obtain the weights $\beta$ so that the network output matches the target $\Phi_{\mathcal{P}_i}(\mathbf{X})$ , we simply need to solve for the pseudoinverse of $\mathbf{H} = f(\mathbf{W}\mathbf{X} + \mathbf{b})$ to obtain $\beta^{*} = \mathbf{H}^{\dagger}\Phi_{\mathcal{P}}(\mathbf{X})$ , or more robustly, obtain
+
+$$
+\boldsymbol {\beta} _ {i} ^ {*} = \left(c \mathbf {I} + \mathbf {H} ^ {\top} \mathbf {H}\right) ^ {- 1} \mathbf {H} ^ {\top} \boldsymbol {\Phi} _ {\mathcal {P} _ {i}} (\mathbf {X}), \tag {4}
+$$
+
+where, $c$ is a constraint added to the diagonal elements of $\mathbf{H}^{\top}\mathbf{H}$ . To reflect the scale, we set $c$ as the variance of the sampling points $\mathbf{X}$ . By definition, we are able to obtain a unique solution $\beta^{*}$ regardless of the permutation of $\mathbf{X}$ .
+
+We fix $\mathbf{W}$ of all ELMs to a common orthogonalized random matrix, as proposed in a prior work [12]. The weights $\beta$ are determined by the distance field values. We will exploit this characteristic of ELMs to provide a unique set of weights $\beta$ for each sampling sphere.
+
+# 3.2.1 Fixing W
+
+We have two purposes behind fixing the input-to-hidden-layer weights $\mathbf{W}$ . The first can be observed from the formulation of ELM. ELM obtains the output value by calculating
+
+
+
+$\beta^{\top}f(\mathbf{W}\mathbf{X}^{\top} + \mathbf{b})$ , which is the inner product between a vector $f(\mathbf{W}\mathbf{X}^{\top} + \mathbf{b})$ and the trainable weight $\beta$ . Fixing $\mathbf{W}$ is equivalent to introducing the Euclidean metric to the metric space of $\beta$ Without defining the inner product, trainable weights $\beta$ obtained from ELMs cannot be easily compared.
+
+The second purpose is efficiency. We can make the training process significantly efficient by taking advantage of the structure of sampling spheres, using the fact that the sampling points in all the spheres are identical and normalized. Generally, calculation of trainable weights $\beta$ requires the pseudoinverse $\mathbf{H}^{\dagger} = (c\mathbf{I} + \mathbf{H}^{\top}\mathbf{H})^{-1}\mathbf{H}^{\top}$ to be calculated as many times as the number of the sampling spheres $n$ . However, as mentioned previously, we use the same set of normalized sampling points to capture the local distance field within each sphere. Therefore, we can define $\mathbf{H} = f(\mathbf{W}\mathbf{X} + \mathbf{b})$ to be the same for all sampling points. This means that the pseudoinverse $\mathbf{H}^{\dagger}$ only has to be calculated once throughout the dataset, as shown in Fig 4. To obtain the weights $\beta$ of all the sampling spheres simultaneously, we concatenate all the distance fields obtained by the sampling spheres into a single matrix, so that
+
+$$
+\boldsymbol {\beta} ^ {*} = \left(c \mathbf {I} + \mathbf {H} ^ {\top} \mathbf {H}\right) ^ {- 1} \mathbf {H} ^ {\top} \boldsymbol {\Phi} _ {\mathcal {P}} (\mathbf {X}), \tag {5}
+$$
+
+where $\Phi_{\mathcal{P}}(\mathbf{X}) \in \mathbb{R}^{m \times n}$ and $\beta^{*} \in \mathbb{R}^{k \times n}$ are matrices whose $i$ -th columns contain the distances and the resulting ELM weights from the $i$ -th sampling sphere, respectively.
+
+# 3.3. Achieving Coordinate and Scale Invariance
+
+We can design the ELM weights $\beta$ to be invariant to coordinate values and scale. The invariance is achieved by modifying the input to the embedding ELM, and by selecting a specific activation layer for the ELM.
+
+# 3.3.1 Coordinate Invariance: Canonical Projection
+
+We project the distance field onto a 4-dimensional canonical space to achieve invariance to rotation. We introduce a
+
+
+Figure 6: Network architecture for the proposed representation. The ELM weights containing local distance field information are used as input to train a global feature vector. The feature is fed into subsequent networks to conduct analysis. In the segmentation task, we concatenate the global feature with the original ELM weights corresponding to each point.
+
+sampling matrix $\mathbf{X} = \left[\mathbf{x}_1,\mathbf{x}_2,\dots ,\mathbf{x}_m\right]^\top \in \mathbb{R}^{m\times 3}$ and the corresponding sampled distance vector $\Phi_{\mathcal{P}}(\mathbf{X}) =$ $\begin{array}{r}\left[\phi (\mathbf{x}_1),\quad \phi (\mathbf{x}_2),\quad \dots ,\phi (\mathbf{x}_m)\right]^{\top}\in \mathbb{R}^{m} \end{array}$ and concatenate them into a matrix $\mathbf{M} = \left[\mathbf{X}\quad \Phi_{\mathcal{P}}(\mathbf{X})\right]$ . We then apply singular value decomposition (SVD) on $\mathbf{M}$ to obtain
+
+$$
+\mathbf {M} = \mathbf {U S V} ^ {\top}. \tag {6}
+$$
+
+As the results from SVD may contain sign ambiguity, we propose to transform the data using all the possible sign permutations. Given an input data, we prepare a vector $\mathbf{c}$ consisting of 1 and $-1$ . We apply the signs to $\mathbf{V}^{\top}$ so that
+
+$$
+\bar {\mathbf {V}} ^ {\top} = \mathbf {V} ^ {\top} \mathbf {C}, \tag {7}
+$$
+
+where $\mathbf{C}$ is a diagonal matrix with $\mathbf{c}$ as its elements.
+
+As can be seen by modifying eq. 6 to $\bar{\mathbf{M}} = \mathbf{M}\bar{\mathbf{V}}$ , $\bar{\mathbf{V}}$ is the projection of the data matrix to a 4-dimensional canonical space. The projection allows the distance field to be aligned to a unique pose in the 4D space based on the variance of the distance field, as can be seen in Fig. 5 demonstrates the effect of applying $\bar{\mathbf{V}}$ . We will demonstrate the robustness to surface point density in the experiments.
+
+The representation in the canonical space is now invariant to rotation up to ambiguity of sign of $\mathbf{V}$ . We resolve this ambiguity by preparing all the variations from possible sign permutations. The input to the ELM is $\bar{\mathbf{X}} = \mathbf{X}\bar{\mathbf{V}}_{\mathbf{X}}$ , the coordinates of the sampling points in the 4D canonical space. $\bar{\mathbf{V}}_{\mathbf{X}}\in \mathbb{R}^{3\times 4}$ is the first three rows of $\bar{\mathbf{V}}$ . The ELM is trained to return the distance vector $\Phi_{\mathcal{P}}(\mathbf{X})$ corresponding to the sampling points. The elements of the distance vector is removed from the input to avoid trivial solutions.
+
+To efficiently solve for $\bar{\mathbf{V}}_{\mathbf{X}}$ , we place a global sphere surrounding the entire point cloud instance. The distance values within the sphere is used to align each instance to a unique pose. The global sphere is solely used to align the global distance field. After alignment, sampling spheres are placed on surface points to acquire the local distance fields.
+
+# 3.3.2 Scale Invariance:ReLU Activation Function
+
+We achieve scale invariance by taking advantage of the scale commutative property of the rectified linear unit (ReLU) [25]. We adopt it as the activation function $f$ of the ELM and remove the bias term from eq. (3). The modified embedding ELM is now denoted as
+
+$$
+\boldsymbol {\beta} ^ {*} = _ {\boldsymbol {\beta}} \left\| \Phi_ {\mathcal {P}} (\mathbf {X}) - \boldsymbol {\beta} ^ {\top} f \left(\mathbf {W} \bar {\mathbf {X}} _ {b}\right) \right\| _ {F} ^ {2}, \tag {8}
+$$
+
+where $\bar{\mathbf{X}}_b\in \mathbb{R}^{m\times (4 + 1)}$ is $\bar{\mathbf{X}}$ with an additional column. The extra column is the bias scaled by the standard deviation of all the values in $\bar{\mathbf{X}}$ . In this process, we have removed the bias term and inserted it into the input matrix.
+
+To prove the scale invariance, we consider the case of applying a scaling factor $s$ to the input $\bar{\mathbf{X}}_b$ . The output $\Phi_{\mathcal{P}}(\mathbf{X})$ is also scaled due to the property of distance. Therefore, eq. (8) is modified to
+
+$$
+s \Phi_ {\mathcal {P}} (\mathbf {X}) \approx \boldsymbol {\beta} ^ {* ^ {\top}} f \left(\mathbf {W} s \bar {\mathbf {X}} _ {b}\right). \tag {9}
+$$
+
+As ReLU lets through positive values, the scaling factor $s$ can be moved outside the activation function:
+
+$$
+s \Phi_ {\mathcal {P}} (\mathbf {X}) \approx s \boldsymbol {\beta} ^ {* ^ {\top}} f \left(\mathbf {W} \bar {\mathbf {X}} _ {b}\right). \tag {10}
+$$
+
+The scaling factor $s$ cancels each other out, leaving the network weights $\beta$ unchanged. This allows our modified version of ELM to be invariant to scaling of the point clouds. Variants of ReLU, such as LeakyReLU, also preserves this quality, and can be used as the activation function.
+
+# 4. Experiments
+
+Our method is implemented with Keras, and all the calculations were executed on an Intel(R) Xeon(R) Silver 4114 CPU @ 2.20GHz computer with NVIDIA V100 graphics card. We utilized the graphics card to accelerate multiplication of the matrices involved in distance calculation. We
+
+used a network configuration similar to PointNet [27], as shown in Fig 6. Feature learning network contains 4 shared fully connected layers (1024 nodes). Batch normalization and ReLU are applied after each layer. Batch size is 16.
+
+# 4.1. Classification Accuracy
+
+We firstly use the proposed representation to classify the benchmark dataset ModelNet 10/40 [47]. To make the comparison with other methods fair, we first normalize the CAD models in the dataset by setting them to zero-mean, encapsulating the models in a unit sphere, and then uniformly sample over the model surface, as conducted in prior work [27]. 2048 surface points are sampled. The direction of gravity is known in this dataset. For comparison to other methods, we also use the original point cloud data before the proposed projection for calculation of distance fields.
+
+We prepared 2048 sampling spheres, equivalent to the number of the surface points, and trained one ELM per each sphere to parameterize each instance in the dataset, and converted all the data in the training and testing set to ELM weights. These are used as features representing each individual shape. The fixed random weights are orthogonalized, as conducted in [38], to improve the result of regression. MLP with 3 hidden layers (512, 256, 128 nodes) with dropout (0.4 keep rate) is used as the classification network.
+
+Table 1 shows the classification accuracy on both ModelNet 10 and ModelNet 40 dataset. We compared our results to some of the state-of-the-art methods. The top half of the table shows the results from methods that rely on the renderings of meshed data of the point clouds. These methods generally conduct pretraining using external datasets. The results of these methods, therefore, cannot be directly compared with point-based methods. The bottom half of the table shows the point-based methods. Our representation achieves the best results on ModelNet 10 and achieves second best on ModelNet 40. The best results were achieved using $m = 1024$ sampling points, embedding ELMs with dimension of $k = 256$ , and sampling spheres with radius of 0.3. Similar to other methods, concatenating the normals and point coordinate information improved the classification result using our representation. However, the scale invariance is lost, as point coordinates vary with scaling, while our representation does not. Using the average distance to $k$ -nearest neighbor ( $k = 256$ ) as the sampling sphere radius achieved similar results: $96.2\%$ and $93.2\%$ for ModelNet 10 and 40 respectively.
+
+Interestingly, adding noise to our representation, a common data augmentation practice, resulted in a lower accuracy. This is because the embedding using ELM already contains some margin of error, which is essentially equiv-
+
+Classification Accuracy $(\%)$
+
+| Method | Pretrain | Data | MN 10 | MN 40 |
| MV [36] | | | - | 90.1 |
| Dom. [42] | Yes | Img | - | 93.8 |
| VIP [11] | | | 94.1 | 92.0 |
| RotNet [13] | | | 98.5 | 97.4 |
| Voxel [47] | | | 83.5 | 77.0 |
| Auth. [34] | | | 88.4 | 83.9 |
| Kdtree [15] | | | 94.0 | 91.8 |
| PNet++ [29] | | | - | 91.9 |
| SONET [18] | None | Pt+N | 95.7 | 93.4 |
| Pt2Sq [20] | | | 95.3 | 92.6 |
| PCConv [46] | | | - | 92.5 |
| KPConv [40] | | | - | 92.9 |
| RSCNN [21]1 | | | - | 92.9 |
| ShellNet [49] | | | - | 93.1 |
| Ours | None | Weights | 95.7 | 92.2 |
| Ours | None | W+Pt+N | 96.7 | 93.2 |
+
+Table 1: Comparison of results on ModelNet 10 and 40. Our method performs better than most of the state of the art methods with just one representation per instance.
+
+lent to adding noise directly to the original point cloud data.
+
+# 4.2. Effects of Elements Pertaining to Embedding
+
+To observe the effect of each element to the descriptiveness of the resulting representation, we alter the dimension $k$ of ELM weight $\mathbf{W}$ , the radius of the sampling spheres, and the number $m$ of sampling points within each sphere. In each experiment, we fixed two of the elements and changed the third one to see the change in classification accuracy.
+
+Fig. 7 are the results from the experiment observing the effect of each element for ModelNet 10 and ModelNet 40 datasets. The averages and standard deviations of 10 evaluations from each combination are used in the plot. As can be seen from the results, the classification accuracy is low when all the elements are set too low, which was expected. However, as the elements are set to higher values, the accuracy reaches a peak before showing slight regression in accuracy. More information is involved in the embedding, and ELMs with small number of nodes cannot fully encapsulate the details that the surrounding distance fields present.
+
+We also note that, theoretically, setting all the elements to a much larger value would result in a finer representation around each surface point, leading to improvement in classification accuracy. However, the size of the data would grow exponentially, requiring heavy memory usage. In this experiment, we set the upper threshold to each of the elements to keep the proposed representation compact.
+
+While most point classification methods rely on deep
+
+
+(a) Dimension of $k$
+
+
+(b) Radius of sampling sphere
+Figure 7: Classification accuracy (\%) change under different settings. (7a) Effect of dimension $k$ of ELM weight. (7b) Effect of sampling sphere radius. (7c) Effect of samplings points in each sphere.
+
+
+(c) Number of sampling points $m$
+
+Classification Accuracy $(\%)$ points $(n)$
+
+ | 2048 | 1024 | 512 | 256 |
| ModelNet 10 | 96.7 | 95.9 | 94.3 | 93.5 |
| ModelNet 40 | 93.2 | 92.7 | 91.1 | 90.1 |
+
+Table 2: Classification accuracy after changing number of original point cloud points $n$ .
+Classification Accuracy $(\%)$ Maximum Angle
+
+ | 0 | π/4 | π/2 | 3/4π | π | π/4 sc. |
| P++ [29] | 91.9 | 36.4 | 40.5 | 41.1 | 44.3 | 44.2 |
| SNet [18] | 93.4 | 84.5 | 77.4 | 79.0 | 69.4 | 77.1 |
| Ours | 93.2 | 85.8 | 84.9 | 82.6 | 81.8 | 83.9 |
+
+Table 3: Comparison of classification results on ModelNet 40 after perturbation on test data.
+
+neural network structures, our classification network is relatively simple, requiring shorter time for training. For classification of ModelNet 40 dataset with 512 sample points in each sampling sphere, and with the dimension of the ELM weights set to $k = 256$ , the proposed method requires approximately 110 minutes for training the neural network, compared to approximately 180 minutes for SO-Net, the most efficient method introduced in this paper.
+
+# 4.3. Robustness to Number of Surface Points
+
+To observe the robustness of the proposed implicit representation to number of points in the point clouds, we sampled a subset of points from the point clouds before calculating the distance field and used it to train ELMs in the proposed method. We prepared a sampling sphere over each point in the point set, each containing 1024 sampling points within the radius of 0.3, and embedded it in a ELM with
+
+$k = 256$ . We used the same classification network to obtain the results. As can be seen from the results in Table 2, the method can classify instances relatively accurately. This can be attributed to the fact that the implicit representation, distance field, is robust to the density of the original point cloud. The results demonstrate that our representation takes full advantage of the robustness.
+
+# 4.4. Effect of Canonical Embedding
+
+To demonstrate the invariance to various factors such as coordinate change and scale, we test the accuracy of the proposed method when test data is transformed and scaled. This is common in real life situations, as not all objects are upright on the tabletop. We apply random rotation along all three axes and scaling to the test data and observe the effects on the classification accuracy. To make the comparison fair, we did not conduct data augmentation on the training data for any of the methods. Here, we compared our method to representative point-based methods, PointNet++ [29] and SO-Net [18], based on the codes made publicly available. We selected these methods, due to the fact that the calculation efficiency of our method and these methods are relatively high compared to other point-based methods.
+
+To compare the variance of each representation, we firstly applied random rotation to the test data to observe whether the learnt model can be used to classify rotated data. Table 3 shows the classification accuracy of the three methods after applying random rotation to test data with limits to the maximum angles. The numbers indicate the median values from 10 attempts. When random rotation is applied to all three axes of rotation, Prior methods start to underperform with more rotation. Our method, in contrast, outperforms others even after large amount of rotation is applied. This demonstrates that our representation is aligned in the canonical space, and is only slightly perturbed by sampling noise caused by the rotation. Augmenting training data by applying random rotation only slightly improves the results of prior methods, as there are endless possible
+
+Intersection over Union (IoU)
+
+ | mean | air | bag | cap | car | chair | ear. | guit. | kni. | lam. | lap. | mot. | mug | pist. | rock. | ska. | tab. |
| P [27] | 83.7 | 83.4 | 78.7 | 82.5 | 74.9 | 89.6 | 73.0 | 91.5 | 85.9 | 80.8 | 95.3 | 65.2 | 93.0 | 81.2 | 57.9 | 72.8 | 80.6 |
| P++ [29] | 85.1 | 82.4 | 79.0 | 87.7 | 77.3 | 90.8 | 71.8 | 91.0 | 85.9 | 83.7 | 95.3 | 71.6 | 94.1 | 81.3 | 58.7 | 76.4 | 82.6 |
| Kd [15] | 82.3 | 80.1 | 74.6 | 74.3 | 70.3 | 88.6 | 73.5 | 90.2 | 87.2 | 81.0 | 94.9 | 57.4 | 86.7 | 78.1 | 51.8 | 69.9 | 80.3 |
| SO [18] | 84.9 | 82.8 | 77.8 | 88.0 | 77.3 | 90.6 | 73.5 | 90.7 | 83.9 | 82.8 | 94.8 | 69.1 | 94.2 | 80.9 | 53.1 | 72.9 | 83.0 |
| Ours | 85.2 | 84.0 | 80.4 | 88.0 | 80.2 | 90.7 | 77.5 | 91.2 | 86.4 | 82.6 | 95.5 | 70.0 | 93.9 | 84.1 | 55.6 | 75.6 | 82.1 |
+
+Table 4: ShapeNetPart segmentation results from methods using PointNet based architecture.
+
+
+Figure 8: Visualization of segmentation results using our representation. Top: Ground truth. Bottom: Our results.
+
+poses that shapes can take. This fact suggests much more data augmentation would be required for other point-based methods to handle all the possible rotational perturbations. The last column compares the classification accuracy after rotational and scale perturbation. Rotation with maximal angle of $\pi /4$ and scaling of 0.5 is applied to all the point cloud coordinates. The results from other methods further degrade, while our method maintains an accuracy of $83.9\%$ .
+
+# 4.5. Point Cloud Segmentation
+
+We also verify the descriptiveness of the proposed representation through segmentation of point cloud data based on per-point labels. We use the ShapeNetCore Part dataset for the experiment. The dataset consists of 12145 training data and 2873 test data, consisting of 16 classes and 50 labeled parts. For fair comparison, we follow the protocol indicated in prior works, such as PointNet++ [29] and SO-Net [18].
+
+We place the sampling sphere on top of each point in the same manner as in classification process. The parameter from the ELM is used as the local representation of the corresponding point. As shown in Fig. 6, we concatenate the local ELM weights and the intermediate global feature obtained from pooling the output of the first section of the segmentation network. We also use the normals and the original point coordinates along with the concatenated representation and to classify each point. The setting for factors, such as the number of sampling points, ELM di
+
+mension, and sampling sphere radius, are inherited from the classification experiment: 1024, 256, and 0.3, respectively.
+
+The segmentation results are visualized in Fig. 8. We compare the results from our representation with state-of-the-art approaches that employ PointNet based network architecture in Table 4. We followed the prior works and used the point intersection over union (IoU) to compare the results. The segmentation result using our representation achieves the best mean IoU and outperforms the state-of-the-art methods in most of the classes. Compared to the results from the SO-Net, our method performs better in 12 of the total 16 categories. As our proposal can be used as a feature along with point coordinates, the representation can be directly inserted into more complex networks [19, 22].
+
+# 5. Conclusion
+
+The proposal is inspired by the observation that if neural networks are capable of learning extremely complex functions that separate various classes accurately, they should also be able to learn a function that represents one shape. The results demonstrate that our proposal is more descriptive, yet more efficient to process than the prior methods. No end-to-end training is conducted, and only unsupervised learning to encapsulate local distance fields is required. Our method is useful for achieving various invariances that made representation of unstructured point complex.
+
+Our method derives from the belief that shapes should be preprocessed into a unified parametric space rather than trying to manually prepare all possible variations of the shapes through data augmentation. As was demonstrated in the experiment with coordinate and scaling perturbations, many of the current methods fail when the axis of gravitational direction is unknown. Methods proposed to conduct point cloud analysis need to consider various circumstances where the orientation of the point cloud is unavailable.
+
+The results presented in this paper can theoretically be improved, as the random fixed weights used in the embedding ELMs are not trained to improve the accuracy of the following tasks, such as classification. As future work, we will pursue a method to tune the fixed ELM weights. Finding efficient methods to encapsulate more detailed information is also another direction of research.
+
+# References
+
+[1] Amir Arsalan Soltani, Haibin Huang, Jiajun Wu, Tejas D Kulkarni, and Joshua B Tenenbaum. Synthesizing 3d shapes via modeling multi-view 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] 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.
+[3] Zhiqin Chen and Hao Zhang. Learning implicit fields for generative shape modeling. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5939-5948, 2019.
+[4] David M Cole and Paul M Newman. Using laser range data for 3d slam in outdoor environments. In Robotics and Automation, 2006. ICRA 2006. Proceedings 2006 IEEE International Conference on, pages 1556-1563. IEEE, 2006.
+[5] Haowen Deng, Tolga Birdal, and Slobodan Ilic. Ppf-foldnet: Unsupervised learning of rotation invariant 3d local descriptors. In Proceedings of the European Conference on Computer Vision (ECCV), pages 602-618, 2018.
+[6] Haowen Deng, Tolga Birdal, and Slobodan Ilic. Ppfnet: Global context aware local features for robust 3d point matching. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 195-205, 2018.
+[7] Martin Engelcke, Dushyant Rao, Dominic Zeng Wang, Chi Hay Tong, and Ingmar Posner. Vote3deep: Fast object detection in 3d point clouds using efficient convolutional neural networks. In 2017 IEEE International Conference on Robotics and Automation (ICRA), pages 1355-1361, 2017.
+[8] Yifan Feng, Haoxuan You, Zizhao Zhang, Rongrong Ji, and Yue Gao. Hypergraph neural networks. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 3558-3565, 2019.
+[9] Kent Fujiwara, Ikuro Sato, Mitsuru Ambai, Yuichi Yoshida, and Yoshiaki Sakakura. Canonical and compact point cloud representation for shape classification. arXiv preprint arXiv:1809.04820, 2018.
+[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.
+[11] Zhizhong Han, Mingyang Shang, Yuhang 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 AAAI conference on Artificial Intelligence, 2019.
+[12] Guang-Bin Huang, Qin-Yu Zhu, and Chee-Kheong Siew. Extreme learning machine: theory and applications. Neurocomputing, 70(1):489-501, 2006.
+[13] Asako Kanezaki, Yasuyuki Matsushita, and Yoshifumi Nishida. Rotationnet: Joint object categorization and pose estimation using multiviews from unsupervised viewpoints.
+
+In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5010-5019, 2018.
+[14] Diederik P. Kingma and Max Welling. Auto-encoding variational bayes. In Proceedings of the Second International Conference on Learning Representations (ICLR 2014), Apr. 2014.
+[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.
+[16] Sudhakar Kumawat and Shanmuganathan Raman. Lp-3dcnn: Unveiling local phase in 3d convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4903–4912, 2019.
+[17] Huan Lei, Naveed Akhtar, and Ajmal Mian. Octree guided cnn with spherical kernels for 3d point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9631-9640, 2019.
+[18] 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.
+[19] Jinxian Liu, Bingbing Ni, Caiyuan Li, Jiancheng Yang, and Qi Tian. Dynamic points agglomeration for hierarchical point sets learning. In Proceedings of the IEEE International Conference on Computer Vision, pages 7546-7555, 2019.
+[20] 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.
+[21] Yongcheng Liu, Bin Fan, Shiming Xiang, and Chunhong Pan. Relation-shape convolutional neural network for point cloud analysis. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 8895-8904, 2019.
+[22] 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.
+[23] Daniel Maturana and Sebastian Scherer. Voxnet: A 3d convolutional neural network for real-time object recognition. In Intelligent Robots and Systems (IROS), 2015 IEEE/RSJ International Conference on, pages 922-928. IEEE, 2015.
+[24] Lars Mescheder, Michael Oechsle, Michael Niemeyer, Sebastian Nowozin, and Andreas Geiger. Occupancy networks: Learning 3d reconstruction in function space. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4460-4470, 2019.
+[25] 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.
+[26] Jeong Joon Park, Peter Florence, Julian Straub, Richard Newcombe, and Steven Lovegrove. Deepsdf: Learning continuous signed distance functions for shape representation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 165-174, 2019.
+
+[27] 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.
+[28] 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.
+[29] 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 5105-5114, 2017.
+[30] 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.
+[31] Radu Bogdan Rusu, Zoltan Csaba Marton, Nico Blodow, Mihai Dolha, and Michael Beetz. Towards 3d point cloud based object maps for household environments. Robotics and Autonomous Systems, 56(11):927-941, 2008.
+[32] Baoguang Shi, Song Bai, Zhichao Zhou, and Xiang Bai. Deeppano: Deep panoramic representation for 3-d shape recognition. IEEE Signal Processing Letters, 22(12):2339-2343, 2015.
+[33] 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.
+[34] Ayan Sinha, Jing Bai, and Karthik Ramani. Deep learning 3d shape surfaces using geometry images. In European Conference on Computer Vision, pages 223-240, 2016.
+[35] Shuran Song, Samuel P Lichtenberg, and Jianxiong Xiao. Sun rgb-d: A rgb-d scene understanding benchmark suite. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 567-576, 2015.
+[36] Hang Su, Subhransu Maji, Evangelos Kalogerakis, and Erik Learned-Miller. Multi-view convolutional neural networks for 3d shape recognition. In Proceedings of the IEEE international conference on computer vision, pages 945-953, 2015.
+[37] Gary KL Tam, Zhi-Quan Cheng, Yu-Kun Lai, Frank C Langbein, Yonghuai Liu, David Marshall, Ralph R Martin, XianFang Sun, and Paul L Rosin. Registration of 3d point clouds and meshes: a survey from rigid to nonrigid. IEEE transactions on visualization and computer graphics, 19(7):1199-1217, 2013.
+[38] Jiexiong Tang, Chenwei Deng, and Guang-Bin Huang. Extreme learning machine for multilayer perceptron. IEEE transactions on neural networks and learning systems, 27(4):809-821, 2016.
+[39] Johan WH Tangelder and Remco C Veltkamp. A survey of content based 3d shape retrieval methods. In Shape Modeling Applications, 2004, pages 145-156, 2004.
+[40] Hugues Thomas, Charles R Qi, Jean-Emmanuel Deschaud, Beatz Marcotegui, François Goulette, and Leonidas J
+
+Guibas. Kpconv: Flexible and deformable convolution for point clouds. In Proceedings of the IEEE International Conference on Computer Vision, pages 6411-6420, 2019.
+[41] Oliver Van Kaick, Hao Zhang, Ghassan Hamarneh, and Daniel Cohen-Or. A survey on shape correspondence. In Computer Graphics Forum, volume 30, pages 1681–1707. Wiley Online Library, 2011.
+[42] Chu Wang, Marcello Pelillo, and Kaleem Siddiqi. Dominant set clustering and pooling for multi-view 3d object recognition. In Proceedings of the British machine vision conference, 2017.
+[43] 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.
+[44] 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.
+[45] Jiajun Wu, Chengkai Zhang, Tianfan Xue, Bill Freeman, and Josh 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.
+[46] 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.
+[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.
+[48] Manzil Zaheer, Satwik Kottur, Siamak Ravanbakhsh, Barnabas Poczos, Ruslan R Salakhutdinov, and Alexander J Smola. Deep sets. In Advances in Neural Information Processing Systems, pages 3394-3404, 2017.
+[49] Zhiyuan Zhang, Binh-Son Hua, and Sai-Kit Yeung. Shellnet: Efficient point cloud convolutional neural networks using concentric shells statistics. In Proceedings of the IEEE International Conference on Computer Vision, pages 1607–1616, 2019.
+[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.
\ No newline at end of file
diff --git a/neuralimplicitembeddingforpointcloudanalysis/images.zip b/neuralimplicitembeddingforpointcloudanalysis/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..ee2fdc70350dfd5ab88319ddb15ed12123ce7797
--- /dev/null
+++ b/neuralimplicitembeddingforpointcloudanalysis/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:52019d075de65d23cbf0cc2db0d268b03bbb10242fece3c7e5e8b966cbc4a905
+size 426510
diff --git a/neuralimplicitembeddingforpointcloudanalysis/layout.json b/neuralimplicitembeddingforpointcloudanalysis/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..d740f6ac5cef6984a6d0835abb93e153bc001ddf
--- /dev/null
+++ b/neuralimplicitembeddingforpointcloudanalysis/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a42a112e4ad1332f2b2d344a90d2751faaaf610ec24c19eb9b027b861a5d10b5
+size 414972
diff --git a/neuralnetworkpruningwithresidualconnectionsandlimiteddata/0a740047-4922-41db-87a6-96090d41ec11_content_list.json b/neuralnetworkpruningwithresidualconnectionsandlimiteddata/0a740047-4922-41db-87a6-96090d41ec11_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..f34bfe782747375e370aa98e72d086e7ee1dcc50
--- /dev/null
+++ b/neuralnetworkpruningwithresidualconnectionsandlimiteddata/0a740047-4922-41db-87a6-96090d41ec11_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fc57189c2b28d9540591c2eacd39d856f865b2b5a790833d1b77b23aef46fc82
+size 79313
diff --git a/neuralnetworkpruningwithresidualconnectionsandlimiteddata/0a740047-4922-41db-87a6-96090d41ec11_model.json b/neuralnetworkpruningwithresidualconnectionsandlimiteddata/0a740047-4922-41db-87a6-96090d41ec11_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..1f6b65661f27227d376efddaa3e765f0a0fa27ec
--- /dev/null
+++ b/neuralnetworkpruningwithresidualconnectionsandlimiteddata/0a740047-4922-41db-87a6-96090d41ec11_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4d85000403354cc4797c200c71fa6519957014f9cf0f253ff320794845ca8e84
+size 97608
diff --git a/neuralnetworkpruningwithresidualconnectionsandlimiteddata/0a740047-4922-41db-87a6-96090d41ec11_origin.pdf b/neuralnetworkpruningwithresidualconnectionsandlimiteddata/0a740047-4922-41db-87a6-96090d41ec11_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..3f1df4192b843309eefd66bc32b2bb4242fe6026
--- /dev/null
+++ b/neuralnetworkpruningwithresidualconnectionsandlimiteddata/0a740047-4922-41db-87a6-96090d41ec11_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:890e2bb7e37d8fc8bae1ebb00f97355da26dace54b024eafb82c31cd5747b427
+size 474513
diff --git a/neuralnetworkpruningwithresidualconnectionsandlimiteddata/full.md b/neuralnetworkpruningwithresidualconnectionsandlimiteddata/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..63b19a0e0e3dedd342f54c3798774770c2dbfc03
--- /dev/null
+++ b/neuralnetworkpruningwithresidualconnectionsandlimiteddata/full.md
@@ -0,0 +1,339 @@
+# Neural Network Pruning with Residual-Connections and Limited-Data
+
+Jian-Hao Luo Jianxin Wu*
+
+National Key Laboratory for Novel Software Technology Nanjing University, Nanjing, China
+
+luojh@lamda.nju.edu.cn, wujx2001@nju.edu.cn
+
+# Abstract
+
+Filter level pruning is an effective method to accelerate the inference speed of deep CNN models. Although numerous pruning algorithms have been proposed, there are still two open issues. The first problem is how to prune residual connections. We propose to prune both channels inside and outside the residual connections via a KL-divergence based criterion. The second issue is pruning with limited data. We observe an interesting phenomenon: directly pruning on a small dataset is usually worse than fine-tuning a small model which is pruned or trained from scratch on the large dataset. Knowledge distillation is an effective approach to compensate for the weakness of limited data. However, the logits of a teacher model may be noisy. In order to avoid the influence of label noise, we propose a label refinement approach to solve this problem. Experiments have demonstrated the effectiveness of our method (CURL, Compression Using Residual-connections and Limited-data). CURL significantly outperforms previous state-of-the-art methods on ImageNet. More importantly, when pruning on small datasets, CURL achieves comparable or much better performance than fine-tuning a pretrained small model.
+
+# 1. Introduction
+
+Deep neural networks have now become the dominating method in various computer vision fields, such as image recognition [10, 20, 35] and object detection [5], and we have witnessed a great improvement in model accuracy. But, deploying a large CNN model on resource constrained devices like mobile phones is still challenging. Due to overparameterization, it is both storage and time consuming to run a cumbersome large model on small devices.
+
+Network pruning is a useful tool to obtain a satisfactory balance between inference speed and model accuracy. Among these methods, filter level pruning aims to remove
+
+
+(a) bottleneck
+
+
+(b) hourglass
+Figure 1. Illustration of residual block pruning with different strategies. (a) Bottleneck structure of residual blocks. (b) Only prune channels inside the bottleneck, generating an hourglass structure. (c) Prune channels both inside and outside the residual connection, generating a shape similar to an opened wallet.
+
+
+(c) wallet
+
+the whole unimportant filters according to a certain criterion. This strategy will not damage the original model structure and is attracting more and more attention recently.
+
+Although numerous filter level pruning algorithms have been proposed, there are still several open issues. First, pruning residual connections is very difficult. As illustrated in Fig. 1, most previous pruning methods only prune filters inside the residual connection, leaving the number of output channels unchanged. With a smaller target model (i.e., more filters pruned), the original bottleneck structure will become an hourglass. Obviously, representation ability of middle layers inside the hourglass structure is severely handicapped. Therefore, pruning channels both inside and outside the residual connection is more preferred for accelerating networks. Then, the pruned block is still bottleneck or in an opened wallet shape.
+
+As illustrated in the experiments section, the wallet structure has more advantages compared with hourglass: 1) it is more accurate thanks to a larger pruning space; 2) it is faster even with the same number of FLOPs; 3) it can save more storage space because more weights will be pruned.
+
+The second issue is about pruning models with limited data. Most current pruning methods only report their results on toy datasets (e.g., MNIST [21], CIFAR [19]) or large scale datasets (e.g., ImageNet [33]), ignoring an important real application scenario: pruning models on small datasets which have few images per category. This is a very common
+
+requirement, because we will not apply ImageNet in a real application. Directly pruning on a target dataset (which is usually small) is necessary.
+
+In order to get a small model on a target small dataset, there are two different ways: 1) compress the network using the large dataset (or using a small network trained from scratch on the large dataset), and then fine-tune on the target small dataset; 2) directly prune the model without access to the large dataset. In many real-world scenarios, the only choice is to compress the network using the small dataset and fine-tune on the same small dataset.
+
+But, the reality is that directly pruning on a small dataset usually has a significantly lower accuracy than fine-tuning a small model which is pruned or trained from scratch on the large scale dataset. This phenomenon widely exists in various networks and datasets. For example, as shown in ThiNet [29], fine-tuning a pruned model which is compressed on ImageNet is a better choice when transferring to other domains. They found that the accuracy of directly pruning on CUB200 [36] is only $66.90\%$ , while fine-tuning a pruned ImageNet model can achieve $69.43\%$ . A dilemma is that directly pruning on the target dataset is often the case in real-world applications, where large datasets are either proprietary or too expensive to be used by ordinary users.
+
+In this paper, we propose CURL, namely Compression Using Residual-connections and Limited-data, to address both issues. In order to prune the channels outside of the residual connection, we show that all the blocks in the same stage should be pruned simultaneously due to the shortcut connection. We propose a KL-divergence based criterion to evaluate the importance of these filters. The channels inside and outside the residual connections will both be pruned, leading to a wallet shaped structure. Experiments on ImageNet show that the proposed residual block pruning method outperforms the previous state-of-the-art. To address the problem caused by the lack of enough training data, we propose to combine knowledge distillation [14] and mixup [40] together and enlarge the training dataset via image transformation. We also propose a novel method to correct the noise in the logits of the teacher model. All the techniques greatly improve the accuracy of directly pruning with limited data.
+
+Our contributions are summarized as follows.
+
+- We propose a novel way to compress residual blocks. We prune not only channels inside the residual branch, but also channels of its output activation maps (both the identity branch and the residual branch). The resulting wallet-shaped structure shows more advantages than previous hourglass-shaped structure.
+- Data augmentation is very effective in model finetuning with limited data. We show that combining data augmentation and knowledge distillation can achieve
+
+better performance. To avoid the influence of label noise, we propose a label refinement strategy which can further improve the accuracy.
+
+# 2. Related Work
+
+Pruning is an effective method to accelerate model inference speed and to reduce model size. Recent developments on network pruning can be roughly divided into two categories, non-structured and structured pruning.
+
+In the early stage, researchers mainly focused on non-structured pruning. Han et al. [8, 9] proposed a magnitude-based pruning method to remove redundant weights. Connections with small absolute values are regarded as unimportant and are discarded. In order to compensate for the unexpected loss, Guo et al. [7] incorporated the splicing operation into network pruning. Once the pruned connections are found to be important, they could be recovered at any time.
+
+However, the weakness of non-structured pruning is obvious. Due to the cache and memory access issues caused by irregular connections, its actual inference speed will be adversely affected. Therefore, structured pruning such as filter level pruning is more preferred.
+
+In filter level pruning, the whole filter is discarded if it is considered to be unimportant. Importance evaluation criterion plays a crucial role in the success of pruning. Li et al. [22] introduced previous magnitude based criterion into filter level pruning and calculated importance scores according to its $\ell_1$ -norm. He et al. [13] proposed to select filters by a LASSO regression based method and least square reconstruction. Luo et al. [29] calculated filter importance based on statistics computed from its next layer. He et al. [12] calculated the geometric median of the filters within one layer to prune filters with redundant information.
+
+There are also some explorations without explicitly calculating the importance of each filter. Liu et al. [25] imposed $\ell_1$ regularization on the scaling factors of batch normalization layers to select unimportant channels. Huang and Wang [15] also introduced scaling factors into the model training process. By forcing some of the factors to zero, the unimportant filters will be pruned. Luo et al. [28] designed an efficient channel selection layer to find less important filters in an end-to-end manner. He et al. [11] leveraged reinforcement learning to efficiently sample the design space and achieved better compression performance. Yu et al. [39] proposed slimmable neural networks, a general method to train a single CNN model executable at different widths. Although this approach is not designed for pruning, the output dimensions of residual blocks are reduced. But, except slimmable networks, the pruned models of the above filter pruning methods are all hourglass shaped.
+
+To sum up, these pruning methods achieve pretty good results on toy datasets or large scale datasets and contribute
+
+
+Figure 2. Illustration of residual block pruning strategy. Our method prunes not only channels inside the residual block (red numbers), but also channels of its output (green numbers). The first two numbers in each rectangle (convolutional layer) represent the number of output and input channels in a layer, respectively. This figure is best viewed in color.
+
+a lot to the development of network pruning. But they all ignored the problem of pruning with limited data, and the pruned models are hourglass shaped. To the best of our knowledge, this is the first attempt to solve the problem of pruning networks on a small limited dataset.
+
+# 3. Our Method
+
+In this section, we will propose our method, CURL, which stands for Compression Using Residual-connections and Limited-data. As its name implies, CURL consists of two major parts: prune residual-connections and prune with limited small-scale data.
+
+# 3.1. Prune Residual-Connections
+
+The first step is to evaluate the importance of each filter, and prune away some less important filters to get a small model. We will give a quick recap of residual-connections, including its structure and the weakness of current evaluation criterion. Then, our new method will be presented.
+
+# 3.1.1 Recap of Residual-Connections
+
+Fig. 2 illustrates our strategy for residual block pruning. The left part shows a typical residual structure of ResNet [10]. Suppose there are two residual blocks in the current stage. Each block consists of three convolutional layers (including the batch normalization layer and the ReLU activation layer). Usually, a down-sample layer is necessary to process the different activation sizes and channel numbers between two stages.
+
+Due to the existence of the shortcut connection, the channel numbers of all residual blocks in a stage need to be consistent in order for the sum operations to be valid. Hence, pruning residual connection is very difficult. Most previous studies only focus on reducing channels inside the residual block (as shown in the red numbers of Fig. 2), leaving the output dimension unchanged.
+
+However, there is a great need for residual connection's pruning. Firstly, pruning both inside and outside channels is faster than only pruning inside channels during inference, even though their FLOPs are the same. Secondly, since the activation map of each block is reduced, we can save more memory spaces. Last but not least, reducing residual output means our pruning space is enlarged. We can achieve higher accuracy with the same compression ratio.
+
+In order to reduce the output dimension, all the blocks in the same stage should be pruned simultaneously (as well as the down-sample layer). This is not a simple task, which can not be finished with previous method. Most of the previous importance evaluation criterion only focus on single layer (e.g., the ThiNet method [29]), and ignore the relation of other layers. Hence, we should design a new importance criterion that can evaluate multiple filters simultaneously.
+
+# 3.1.2 The Proposed Pruning Method
+
+Inspired by ThiNet [29], we propose a new method that can evaluate filter importance globally. The main idea of ThiNet is to minimize the reconstruction error of the next layer's output. Similarly, our goal is to minimize the information loss of the last layer (i.e., softmax layer).
+
+Let us take Fig. 2 as an example. The output dimension of residual blocks is 256. Now we want to evaluate the importance score of each channel. A natural idea is to remove the output channels one by one, and calculate the information loss after channel removal. Due to the structure constraint, the output channels of each residual block should be removed simultaneously. For example, the first output channel of block 1, block 2 and the down-sample layer should be removed simultaneously in Fig. 2.
+
+Inspired by network slimming [25], we will reset the parameters of the BN layers to remove the corresponding filters. The output channel of each block is calculated by
+
+$$
+y _ {i} = \gamma \frac {x _ {i} - \mu_ {\mathcal {B}}}{\sqrt {\sigma_ {\mathcal {B}} ^ {2} + \epsilon}} + \beta , \tag {1}
+$$
+
+where $\gamma, \beta, \mu_{\mathcal{B}}, \sigma_{\mathcal{B}}$ are the batch-normalization [16] parameters. Since BN is channel independent, we can simply set $\gamma = \beta = 0$ and the corresponding output channel will be zeroed out. It means the corresponding filters of each output block are removed.
+
+Then, we will evaluate the performance change before/after channel removal. Hence, we need a proxy dataset.
+
+Naturally, the proxy dataset could be the training dataset. However, using all the training images can be messy and time-consuming. We randomly select 256 images from the training dataset, and extract the prediction probability (the output of the softmax layer) on these 256 images.
+
+Let $p$ be the output probability of the original network, and $q$ be the probability after channel removal. A popular method to compare the similarity of two probability distributions is KL-divergence. We calculate the filter importance score as
+
+$$
+s = \mathrm {D} _ {\mathrm {K L}} (p \| q) = \sum_ {i = 1} ^ {n} p _ {i} \log \frac {p _ {i}}{q _ {i}}. \tag {2}
+$$
+
+If the current filter is redundant, $s$ will approach 0. Removing this filter has almost no influence to the prediction results. Conversely, a larger value of $s$ means the current dimension is more important. Hence, using the KL-divergence to denote the importance score is reasonable. It can reflect the information loss of removing some filters. This step will be repeated 256 times, resulting in 256 importance scores, one for each channel.
+
+As for those channels inside the residual block (red numbers of Fig. 2), the process is easier. We only need to erase one filter of the current layer at each step. Finally, filter scores in all layers will be sorted in the ascending order. The top $k$ filters will be removed, leading to a pruned small model. In practice, the value of $k$ depends on the available computational or storage budget. To prevent any extreme issues (e.g., there are only few filters left in a layer after pruning), the smallest compression rate of each layer should not be smaller than a threshold (e.g., 0.3).
+
+The benefits of our pruning method are obvious. First, it is a global criterion which can evaluate the impact of all filters simultaneously. Such kind of global criterion makes possible the pruning of residual connections. Secondly, there is no direct correlation between importance score and filter location. In previous magnitude-based methods (e.g., $\ell_1$ -norm of each filter [22]), the magnitude of importance scores among layers are different. Hence, a fixed compression ratio should be specified for each layer. However, we can achieve an adaptive compression. How many filters should be removed entirely depends on the scores.
+
+# 3.2. Prune with Limited Data
+
+The pruned small model is then fine-tuned on the target dataset. Fine-tuning with limited small-scale data is challenging. Data-augmentation (e.g., mixup [40]) plays an important role in this step. As aforementioned, ImageNet pretraining is a crucial augmentation method which achieves much higher accuracy than directly pruning on the small dataset. The major difference between ImageNet and small dataset is the number of training examples. In order to compensate for this gap, we use several image transformation
+
+
+(a) the original image
+
+
+(b) rotate
+
+
+(c) cutout [4]
+
+
+(d) $2\times 2$ shuffle [3]
+
+
+(e) $3 \times 3$ shuffle [3]
+
+
+(f) $4\times 4$ shuffle [3]
+Figure 3. Visualization of the expanded dataset.
+
+techniques to expand the training dataset and fine-tune the pruned small model with knowledge distillation [14]. However, the logits may be noisy (since the teacher model has not seen these augmented data). We then propose a label refinement method to update these noisy logits.
+
+# 3.2.1 Data Expansion
+
+Since the main difficulty of fine-tuning on small dataset is caused by limited data, a natural idea is to generate or collect more training images. For example, Chen et al. [2] exploited GAN to generate training samples. However, training the generator network can be a more challenging issue, especially for real images with large resolution. Here, we adopt a simpler method to expand the training dataset.
+
+Fig. 3 shows examples of data expansion results. We use three different image transformation techniques:
+
+- Rotate: randomly rotate the original images $r$ degrees, where $r \in [0,360)$ .
+- Cutout [4]: cut out a rectangle patch from the original image pixels with random location. The side length of rectangle is randomly selected from $[0.2, 0.5]$ times the original image size.
+- Shuffle [3]: uniformly partition the image into $N \times N$ sub-regions, and shuffle these partitioned local regions. We use three different partition sizes, namely $2 \times 2$ , $3 \times 3$ , $4 \times 4$ .
+
+Our motivation behind these transformation is that the most discriminative information often lies in local image patches (e.g., leg color of a bird) for object recognition problems. In order to find these discriminative regions, the network should pay more attention to local patches rather than global information. Hence, we can cut out some regions or even shuffle the whole image to remove the influence of global information (i.e., background).
+
+# 3.2.2 Label Refinement
+
+We use knowledge distillation [14] to fine-tune the small model. The original large model plays the role of a teacher model and the pruned small model is the student model. A typical strategy is to train the student model under the supervision of soft target (the logits of teacher models) and hard target (the groundtruth label). However, because the teacher model has not seen the new data, its output (logits) may be noisy.
+
+Inspired by PENCIL [38] and R2-D2 [37], we can update the noisy logits during model training via SGD. However, updating logits is dangerous. The quality of soft targets can be updated to become worse if the student model is not accurate enough. To avoid this situation, we divide the whole training process into two steps: fine-tuning on original small dataset with knowledge distillation plus mixup and fine-tuning on expanded dataset with label refinement. Note that the expanded new data and our proposed refinement method are only used in step 2.
+
+Step 1: knowledge distillation with mixup. Knowledge distillation [14] and mixup [40] are two widely used techniques, which are really helpful for the training with limited data. We propose to combine these two techniques together. First, a new input is generated via mixup:
+
+$$
+\tilde {x} = \lambda x _ {i} + (1 - \lambda) x _ {j}, \quad \tilde {y} = \lambda y _ {i} + (1 - \lambda) y _ {j}, \tag {3}
+$$
+
+where $(x_{i},y_{i})$ and $(x_{j},y_{j})$ are two random examples, $\lambda \in [0,1]$ is drawn from a Beta distribution. The new input $\tilde{x}$ is then fed into teacher and student models. Let $u$ denote the output logits of the teacher model, and $v$ denote the student's output. Our total loss is calculated as:
+
+$$
+\mathcal {L} = \alpha T ^ {2} \mathcal {L} _ {\mathrm {K L}} (p, q) + (1 - \alpha) \mathcal {L} _ {\mathrm {C E}} (q, \tilde {y}), \tag {4}
+$$
+
+where $p = \mathrm{softmax}(u / T)$ , $q = \mathrm{softmax}(v / T)$ are the softmax output under temperature $T$ . $\mathcal{L}_{\mathrm{KL}}$ and $\mathcal{L}_{\mathrm{CE}}$ denote KL-divergence loss and cross-entropy loss, respectively. $\alpha \in [0,1]$ controls the balance between losses. With these two techniques, the pruned small model can converge into a good local minima.
+
+Step 2: knowledge distillation with label refinement. We then fine-tune the small model on our expanded dataset and update logits to remove label noises. Fig. 4 illustrates the framework of our label refinement process. The soft target (i.e., teacher model's logits) of each image in our expanded dataset will be extracted first, and stored in memory. Our loss function is designed as:
+
+$$
+\mathcal {L} = \alpha T ^ {2} \mathcal {L} _ {\mathrm {K L}} (q, p) + (1 - \alpha) \mathcal {L} _ {\mathrm {C E}} (q, y). \tag {5}
+$$
+
+The notations are the same as Eq. (4). Note that mixup is not used here. The major difference with knowledge distillation is that we use a reversed KL-divergence loss to encourage the model to pay more attention to label refinement,
+
+
+Figure 4. Illustration of label refinement. The soft target (teacher model's logits) will also be updated during model fine-tuning. Solid and dashed arrows denote forward and backward propagation, respectively.
+
+as in [37, 38]. During model fine-tuning, the soft-target will also be updated via SGD:
+
+$$
+u \leftarrow u - \eta \cdot \nabla_ {u} \mathcal {L}, \tag {6}
+$$
+
+where $\eta$ is the learning rate for updating $u$ , $\nabla_u\mathcal{L}$ denotes the gradient of the loss function $\mathcal{L}$ with respected to $u$ which is calculated via back-propagation.
+
+# 4. Experiments
+
+In this section, we will evaluate the performance of CURL. In order to compare CURL with state-of-the-art methods, we first test the effectiveness on ImageNet [33]. ResNet50 [10] will be pruned on this dataset. Then, more results on small-scale datasets will be presented. Our method achieves better or comparable performance on these datasets than small models with ImageNet pretraining. Finally, we will end this section with ablation studies. All the experiments were conducted with PyTorch [32].
+
+# 4.1. Pruning ResNet50 on ImageNet
+
+Implementation details. We follow the previous training settings. For a fair comparison, all the fine-tuning techniques introduced in Section 3.2 are not used here. In other words, we do not use mixup, knowledge distillation or dataset expansion techniques in the ImageNet experiment. Once the filter importance has been evaluated by CURL, we will remove all unimportant filters of all layers. The pruned model is then fine-tuned with 100 epochs. Data argumentation strategy and parameter settings are the same as PyTorch official examples. We adopt a large mini-batch size 512. The initial learning rate is set to 0.1. Warmup [6] and cosine learning rate decay [27] are also used here. Since the output of the last stage is closely related to prediction, we will not prune the output dimension of the last residual stage (i.e., the output channel number is still 2048).
+
+Table 1 shows the pruning results of ResNet50. We test model accuracy using 1-crop validation: the shorter side is resized to 256, followed by a $224 \times 224$ center crop and
+
+Table 1. Comparison results of pruning ResNet50 on ImageNet.
+
+| Method | Top-1 Acc. | Top-5 Acc. | MACs | #Param. |
| ResNet50 | 76.15% | 92.87% | 4.09G | 25.56M |
| ThiNet-30 [29] | 68.42% | 88.30% | 1.10G | 8.66M |
| GAL-1-joint [24] | 69.31% | 89.12% | 1.11G | 10.21M |
| GDP-0.5 [23] | 69.58% | 90.14% | 1.57G | - |
| Taylor-FO [30] | 71.69% | - | 1.34G | 7.90M |
| Slimmable NN [39] | 72.10% | 90.57% | 1.05G | 6.92M |
| AutoPruner [28] | 73.05% | 91.25% | 1.39G | 12.60M |
| CURL | 73.39% | 91.46% | 1.11G | 6.67M |
+
+Table 2. Summary of 4 small datasets.
+
+| Dataset Name | Meta-Class | #Train | #Val. | #Categories |
| CUB200-2011 [36] | Birds | 5994 | 5794 | 200 |
| Oxford Pets [31] | Pets & Dogs | 3680 | 3669 | 37 |
| Stanford Dogs [17] | Dogs | 12000 | 8580 | 120 |
| Stanford Car [18] | Cars | 8144 | 8041 | 196 |
+
+mean-standard normalization. The accuracy of the last epoch will be reported. Obviously, CURL is significantly better than previous state-of-the-art. Our method obtains a higher accuracy even with fewer MACs (Multiply-ACumulate operations) and parameters.
+
+In order to demonstrate our motivation for residual connection pruning, we also test the actual inference speed on a NVIDIA Tesla M40 GPU. AutoPruner [28] only prunes channels inside the residual block. With a small compression rate (more filters will be removed), the middle layer of a residual block will be very thin, leading the bottleneck structure into hourglass. By contrast, we prune both channels inside and outside residual blocks. The pruned structure is still bottleneck or opened wallet.
+
+Wallet is not only more accurate than hourglass (which has been demonstrated above), but also faster even with the same number of MACs. For a fair comparison, we adjust the threshold to obtain a new model with 1.39G MACs and 7.83M parameters. The inference time of hourglass on M40 GPU to process a mini-batch of 256 images is 0.21s, while wallet only cost 0.19s. More importantly, the model size of wallet is much smaller than hourglass (nearly halved). Hence, memory consumption could be greatly reduced with our pruned structure.
+
+# 4.2. Pruning on Small-Scale Datasets
+
+We then prune large models on small datasets. Our goal is to demonstrate that directly pruning with limited data using CURL could achieve comparable or even better performance than those small models pruned or trained with ImageNet. Two widely used network, namely ResNet50 [10] and MobileNetV2 [34], will be pruned on four small-scale datasets. Table 2 summarizes the information of these four datasets, including training and validation sizes.
+
+Baseline setting. We adopt three baselines for comparison: 1) Fine-tune the large model which is pretrained on ImageNet. This is a typical approach to get a classification network on a target task. 2) Fine-tune a small model which is pretrained (MobileNetV2-0.5) or pruned (ResNet50-CURL, the CURL model in Table 1) on ImageNet. This is a compromise due to the difficulty of pruning with limited data. 3) Directly prune the fine-tuned large model (i.e., baseline 1) on the target small dataset using the slimmable neural network method [39]. During fine-tuning, the models are trained with the mini-batch size of 32 for 300 epochs. Learning rate is initialized as 0.001, and reduced with cosine schedule. Warmup is used in the first 5 epochs. Mixup is also adopted with $\alpha = 1$ . Other parameter settings and data argumentation strategies are the same as PyTorch official examples.
+
+Implementation details of CURL. The fine-tuning process of CURL is divided into two steps. For a fair comparison, the total fine-tuning epochs are still 300. In the first step, the pruned model is trained with mixup and knowledge distillation in 200 epochs. The temperature $T$ of knowledge distillation is set to 2, $\alpha$ in Eq. (4) is set to 0.7, and learning rate is 0.01. Warmup and cosine decay schedule are also used. In the second step, since the dataset is enlarged 6 times, we train the small model with 16 epochs $(16 \times 6 \approx 100)$ . Because logits will be updated during fine-tuning, the model is not sensitive to temperature, we set $T = 1$ here. The value of $\alpha$ is not changed. The learning rate for pruned network is set to 0.0001 and reduced using cosine schedule. As for the learning rate $\eta$ for updating logits, we set it to 1 and will not change during training. Other parameter settings are the same as those used in baselines. The pruning strategy for ResNet is the same as experiment on ImageNet. As for MobileNetV2, all the bottleneck will be pruned. Note that the second layer of each bottleneck is depth-wise convolution, which means the input dimension should be the same as its output. Hence, the first two layers of each residual block will be pruned simultaneously.
+
+Table 3 shows results on these four datasets. Performance comparison between the second and third lines prove that with limited training data, directly pruning on a small dataset is usually worse than fine-tuning a small model trained or pruned on ImageNet. In other words, ImageNet pretraining is still a strong technique to get a more accurate model with limited data. However, this technique may not be applicable in many real-world applications. Training on large scale datasets is cumbersome and time-consuming, too. The original large dataset may be even not available in many real-world scenarios.
+
+In stark contrast, the proposed CURL approach works well on most datasets. Our method achieves comparable or even better performance than fine-tuning small models trained or pruned on ImageNet. When MobileNetV2-1.0
+
+Table 3. Pruning results on small-scale datasets. In each model, there are 4 methods: 1) fine-tune the large model which is trained on ImageNet; 2) fine-tune the small model which is trained or pruned on ImageNet; 3) directly prune the large model on small dataset using slimmable neural network [39]; 4) directly prune the large model on small dataset using CURL.
+
+| Model | Method | CUB200-2011 [36] | Pets [31] | Dogs [17] | Car [18] |
| Acc. | MACs | Acc. | MACs | Acc. | MACs | Acc. | MACs |
| MobileNetV2 | MobileNetV2-1.0 | 78.77% | 299.77M | 89.94% | 299.56M | 78.94% | 299.67M | 87.27% | 299.76M |
| MobileNetV2-0.5 | 73.96% | 96.12M | 86.32% | 95.91M | 72.15% | 96.02M | 81.50% | 96.11M |
| Slimmable NN [39] | 72.20% | 96.12M | 83.37% | 95.91M | 67.81% | 96.02M | 87.02% | 96.11M |
| CURL | 78.72% | 96.07M | 86.89% | 95.91M | 74.72% | 96.04M | 87.64% | 96.15M |
| ResNet50 | ResNet50 | 84.76% | 4.09G | 92.59% | 4.09G | 83.82% | 4.09G | 91.89% | 4.09G |
| ResNet50-CURL | 81.33% | 1.11G | 90.84% | 1.11G | 81.60% | 1.11G | 88.60% | 1.11G |
| Slimmable NN [39] | 80.05% | 1.05G | 89.67% | 1.05G | 77.80% | 1.05G | 91.47% | 1.05G |
| CURL | 83.64% | 1.10G | 90.30% | 1.11G | 79.79% | 1.11G | 92.19% | 1.11G |
+
+Table 4. Pruning MobileNetV2 on CUB200 with different fine-tuning methods. Here, "nothing" indicates a standard fine-tuning process, "KD" is knowledge distillation, and "scratch" denotes training from scratch.
+
+| Method | nothing | +mixup | +KD | +mixup&KD | ours | scratch |
| Acc. (%) | 70.76 | 73.89 | 77.87 | 77.99 | 78.72 | 64.39 |
+
+model is pruned, CURL outperforms MobileNetV2-0.5 on all datasets by a large margin. It is worth mentioning that on Oxford Car, CURL is even better than the original large model. This result demonstrates that the proposed CURL method is really useful when prune with limited data.
+
+As for ResNet, since ResNet50-CURL is a very strong baseline (ResNet50-CURL achieves the best performance on ImageNet compared with previous state-of-the-art and it is already trained using CURL), the advantage of directly pruning on small dataset is not so significant. However, we can still achieve better results than ResNet50-CURL on CUB200-2011 and Oxford Car.
+
+# 4.3. Ablation Studies
+
+To explore the impact of different modules of CURL, we will perform an ablative study in this section. Three major modules, namely fine-tuning strategy, pruning criterion and label refinement will be studied. All the ablation studies are conducted on CUB200-2011 [36] with the MobileNetV2 [34] model.
+
+# 4.3.1 Impact of Fine-Tuning Strategy
+
+We first study the impact of different fine-tuning strategies. The large fine-tuned model (MobileNetV2-1.0) is evaluated and pruned by CURL, generating a small but not accurate model. Then the pruned model is fine-tuned using several different strategies with 300 epochs. Other parameter settings are the same as in previous experiments.
+
+Table 4 summarizes the results of different fine-tuning methods. A standard approach is to train the small model
+
+without augmentation techniques like mixup or knowledge distillation. Unfortunately, the final accuracy is only $70.76\%$ , which is much worse than MobileNetV2-0.5 finetuned by the same approach $(72.97\%)$ . If mixup is used, the accuracy can be improved to $73.89\%$ , but still worse than MobileNetV2-0.5 fine-tuned with mixup $(73.96\%)$ . Note that if we prune the model using Slimmable NN [39] with the same fine-tuning strategy, its accuracy is only $72.20\%$ (see Table 3 for more details). This phenomenon suggests that our KL-divergence based criterion, i.e., Eq. (2), works well in evaluating filter importance. On the other hand, these results also demonstrate our motivation: directly pruning on a small dataset is usually worse than fine-tuning a small model which is trained or pruned on the large dataset. Although our pruning method outperforms previous state-of-the-art on ImageNet, fine-tuning on small dataset is still very challenging due to the lack of enough training data.
+
+Knowledge distillation contributes a lot to the success of pruning with limited data as shown in [1]. If we equip the standard fine-tuning approach with knowledge distillation, the final accuracy can be improved to $77.87\%$ . If we combine mixup and knowledge distillation together, the accuracy can be further improved to $77.99\%$ . Based on these observations, we propose to enlarge the training dataset with image transformation methods, and update teacher model's logits with label refinement. Finally, the pruned small model can reach an accuracy of $78.72\%$ , which is almost the same as unpruned large model $(78.77\%)$ . Please note that the combination of mixup and knowledge distillation, and the updating of teacher's logits are both novel approaches proposed in our CURL in the network compression field.
+
+The last experiment is about training from scratch. We randomly initialize the weights of pruned network structure and train the model by 1000 epochs with mixup. Starting from 0.05, the value of learning rate is also reduced by cosine schedule. Other parameter settings are the same as previous ones. However, the accuracy of training from scratch is only $64.39\%$ , much lower than any pruned results.
+
+Table 5. Pruning MobileNetV2 on CUB200 with different evaluation criterion. We prune $50\%$ filters of the middle layers of the last bottleneck. The accuracy is tested without fine-tuning.
+
+| Method | Random | Weight Sum | ΔLoss | KL-Div. (Ours) |
| Acc. | 6.80% | 8.25% | 21.83% | 66.33% |
+
+This phenomenon is reasonable, because training with limited data is very challenging. Recently, a study [26] suggests that training the same network from scratch could achieve comparable or better performance than pruning. They think the real value of pruning is to find a better network structure rather than important filters. This conclusion may be correct with enough training time and data. However, when the conditions are not applicable (e.g., training with limited data), this conclusion will fail to hold true. In this situation, finding important filters becomes more valuable. To sum up, our pruning method provides a feasible solution for how to obtain a small model with limited data and how to get rid of the dependence on the large dataset, which is really important in many real-world applications.
+
+# 4.3.2 Impact of Pruning Criterion
+
+We then study the impact of different criterion for evaluating filter importance, i.e., Eq. (2). We focus on the last bottleneck structure of MobileNetV2. There are two layers (point-wise convolution and depth-wise convolution) in this block. Due to the structure constraint of depth-wise convolution, we should prune these two layers simultaneously.
+
+The easiest way to finish this task is to randomly discard channels. We randomly prune $50\%$ filters of these two layers and get $6.80\%$ top-1 accuracy on CUB200 without fine-tuning (as shown in Table 5). Starting from this simplest baseline, we then focus on how to design a better way to evaluate the importance of multiple filters.
+
+One possible solution is to extend previous magnitude-based criterion. Weight sum [22] is such kind of a method which calculates filter importance based on its $\ell_1$ -norm. Here, we simply add the scores of two filters together: $s_i = \| W_i^1\| _1 + \| W_i^2\| _1$ , where $W_{i}^{1}$ and $W_{i}^{2}$ denote filter $i$ of the first (point-wise convolution) and second (depthwise convolution) hidden layers, respectively. However, the extended version of weight sum is only a little better than the random strategy (8.25% vs. 6.80%).
+
+We then consider data-driven criteria and concentrate on the output of the network. A natural idea is evaluating the change of accuracy. If removing some filters has no influence to the model accuracy, then we can regard them as unimportant. However, this approach is impractical. We find that model accuracy is not sensitive to one or two filters. Most channels will get the same score after evaluation. Since accuracy is closely related to loss, we can replace ac
+
+Table 6. Pruning results on several small datasets with/without the proposed label refinement method.
+
+| Model | Refinement? | CUB200 | Pets | Dogs | Car |
| MobileNetV2 | X | 77.43% | 86.65% | 74.02% | 87.15% |
| ✓ | 78.72% | 86.89% | 74.72% | 87.64% |
| ResNet50 | X | 82.88% | 90.32% | 78.65% | 91.77% |
| ✓ | 83.64% | 90.30% | 79.79% | 92.19% |
+
+curacy change with loss change and calculate the score as $s_i = \mathcal{L}_{\text{pruned}} - \mathcal{L}_{\text{unpruned}}$ . The performance of this criterion is $21.83\%$ . Although this result is significantly better than random and weight sum, accuracy of the pruned network is still not satisfying.
+
+Inspired by knowledge distillation, we propose a KL-divergence based criterion to evaluate the information loss of the pruned model. With this criterion, the accuracy is dramatically improved to $66.33\%$ .
+
+# 4.3.3 Impact of Label Refinement
+
+In order to compensate for the gap of limited data, we propose a label refinement technique. The original dataset is enlarged by 6 times via several image transformation methods. The fine-tuned model is then trained on this enlarged dataset with knowledge distillation. Due to label noise, soft target will also be updated during training.
+
+Table 6 illustrates the effectiveness of our label refinement strategy. Compared with standard knowledge distillation equipped with mixup, using our label refinement method can achieve better performance on most datasets.
+
+Updating soft target can further improve model accuracy. For examples, if we set $\eta = 0$ (do not update soft target) and fine-tune the pruned MobileNetV2 on the expanded CUB200 dataset, the accuracy is $78.56\%$ , slightly lower than the result of updating soft target $(78.72\%)$ . In this work, we adopt a simple method to process label noise of soft target. How to correct the misleading wrong labels is still worth exploring. If a more advanced algorithm is used, the model accuracy can be further improved.
+
+# 5. Conclusion
+
+In this paper, we proposed a novel filter level pruning method to accelerate the inference speed of deep CNN models. Different from previous pruning strategies, we prune both channels inside and outside the residual connections via a KL-divergence based criterion. We also propose a label refinement approach to avoid the influence of label noise. With the proposed CURL method, we can directly prune models on the small dataset and achieve comparable or even better results than fine-tuning a small model pruned or trained on the large scale dataset, which is of great value in many real-world scenarios.
+
+# References
+
+[1] Haoli Bai, Jiaxiang Wu, Irwin King, and Michael Lyu. Few shot network compression via cross distillation. arXiv preprint arXiv:1911.09450, 2019. 7
+[2] Hanting Chen, Yunhe Wang, Chang Xu, Zhaohui Yang, Chuanjian Liu, Boxin Shi, Chunjing Xu, Chao Xu, and Qi Tian. Data-free learning of student networks. In ICCV, pages 3514-3522, 2019. 4
+[3] Yue Chen, Yalong Bai, Wei Zhang, and Tao Mei. Destruction and construction learning for fine-grained image recognition. In CVPR, pages 5157-5166, 2019. 4
+[4] Terrance DeVries and Graham W Taylor. Improved regularization of convolutional neural networks with cutout. arXiv preprint arXiv:1708.04552, 2017. 4
+[5] Ross Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. In CVPR, pages 580-587, 2014. 1
+[6] Priya Goyal, Piotr Dólar, 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 preprint arXiv:1706.02677, 2017. 5
+[7] Yiwen Guo, Anbang Yao, and Yurong Chen. Dynamic network surgery for efficient DNNs. In NeurIPS, pages 1379-1387, 2016. 2
+[8] Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and Huffman coding. In ICLR, 2015. 2
+[9] Song Han, Jeff Pool, John Tran, and William Dally. Learning both weights and connections for efficient neural network. In NeurIPS, pages 1135-1143, 2015. 2
+[10] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770-778, 2016. 1, 3, 5, 6
+[11] Yihui He, Ji Lin, Zhijian Liu, Hanrui Wang, Li-Jia Li, and Song Han. AMC: AutoML for model compression and acceleration on mobile devices. In ECCV, volume 11211 of LNCS, pages 815-832, 2018. 2
+[12] Yang He, Ping Liu, Ziwei Wang, Zhilan Hu, and Yi Yang. Filter pruning via geometric median for deep convolutional neural networks acceleration. In CVPR, pages 4340-4349, 2019. 2
+[13] Yihui He, Xiangyu Zhang, and Jian Sun. Channel pruning for accelerating very deep neural networks. In ICCV, pages 1389-1397, 2017. 2
+[14] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. In Deep Learning and Representation Learning Workshop, NIPS, 2014. 2, 4, 5
+[15] Zehao Huang and Naiyan Wang. Data-driven sparse structure selection for deep neural networks. In ECCV, volume 11220 of LNCS, pages 317-334, 2018. 2
+[16] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, pages 448-456, 2015. 3
+[17] Aditya Khosla, Nityananda Jayadevaprakash, Bangpeng Yao, and Li Fei-Fei. Novel dataset for fine-grained image
+
+categorization. In First Workshop on Fine-Grained Visual Categorization, CVPR, 2011. 6, 7
+[18] Jonathan Krause, Michael Stark, Jia Deng, and Li Fei-Fei. 3d object representations for fine-grained categorization. In 4th IEEE Workshop on 3D Representation and Recognition, ICCV, 2013. 6, 7
+[19] Alex Krizhevsky. Learning multiple layers of features from tiny images. Master's thesis, University of Toronto, 2009. 1
+[20] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. ImageNet classification with deep convolutional neural networks. In NeurIPS, pages 1097-1105, 2012. 1
+[21] Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278-2324, 1998. 1
+[22] Hao Li, Asim Kadav, Igor Durdanovic, Hanan Samet, and Hans Peter Graf. Pruning filters for efficient convnets. In ICLR, 2017. 2, 4, 8
+[23] Shaohui Lin, Rongrong Ji, Yuchao Li, Yongjian Wu, Feiyue Huang, and Baochang Zhang. Accelerating convolutional networks via global & dynamic filter pruning. In IJCAI, pages 2425-2432, 2018. 6
+[24] Shaohui Lin, Rongrong Ji, Chenqian Yan, Baochang Zhang, Liujuan Cao, Qixiang Ye, Feiyue Huang, and David Doermann. Towards optimal structured CNN pruning via generative adversarial learning. In CVPR, pages 2790-2799, 2019. 6
+[25] Zhuang Liu, Jianguo Li, Zhiqiang Shen, Gao Huang, Shoumeng Yan, and Changshui Zhang. Learning efficient convolutional networks through network slimming. In ICCV, pages 2736-2744, 2017. 2, 3
+[26] Zhuang Liu, Mingjie Sun, Tinghui Zhou, Gao Huang, and Trevor Darrell. Rethinking the value of network pruning. In ICLR, 2019. 8
+[27] Ilya Loshchilov and Frank Hutter. SGDR: Stochastic gradient descent with warm restarts. In *ICLR*, 2017. 5
+[28] Jian-Hao Luo and Jianxin Wu. AutoPruner: An end-to-end trainable filter pruning method for efficient deep model inference. arXiv preprint arXiv:1805.08941, 2018. 2, 6
+[29] Jian-Hao Luo, Jianxin Wu, and Weiyao Lin. ThiNet: A filter level pruning method for deep neural network compression. In ICCV, pages 5058-5066, 2017. 2, 3, 6
+[30] Pavlo Molchanov, Arun Mallya, Stephen Tyree, Iuri Frosio, and Jan Kautz. Importance estimation for neural network pruning. In CVPR, pages 11264-11272, 2019. 6
+[31] Omkar M Parkhi, Andrea Vedaldi, Andrew Zisserman, and CV Jawahar. Cats and dogs. In $CVPR$ , pages 3498-3505, 2012. 6, 7
+[32] Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. In Autodiff Workshop, NIPS, 2017. 5
+[33] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet large scale visual recognition challenge. IJCV, 115(3):211–252, 2015. 1, 5
+
+[34] Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zh-moginov, and Liang-Chieh Chen. MobileNetV2: Inverted residuals and linear bottlenecks. In CVPR, 2018. 6, 7
+[35] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. 1
+[36] Catherine Wah, Steve Branson, Peter Welinder, Pietro Perona, and Serge Belongie. The Caltech-UCSD birds-200-2011 dataset. Technical Report CNS-TR-2011-001, California Institute of Technology, 2011. 2, 6, 7
+[37] Guo-Hua Wang and Jianxin Wu. Repetitive repression deep decipher for semi-supervised learning. arXiv preprint arXiv:1908.04345, 2019. 5
+[38] Kun Yi and Jianxin Wu. Probabilistic end-to-end noise correction for learning with noisy labels. In CVPR, pages 7017-7025, 2019. 5
+[39] Jiahui Yu, Linjie Yang, Ning Xu, Jianchao Yang, and Thomas Huang. Slimmable neural networks. In ICLR, 2019. 2, 6, 7
+[40] Hongyi Zhang, Moustapha Cisse, Yann N Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. In ICLR, 2018. 2, 4, 5
\ No newline at end of file
diff --git a/neuralnetworkpruningwithresidualconnectionsandlimiteddata/images.zip b/neuralnetworkpruningwithresidualconnectionsandlimiteddata/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..23eee46c38bee131240870e9e9209735d32be1e9
--- /dev/null
+++ b/neuralnetworkpruningwithresidualconnectionsandlimiteddata/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:745f9835567aaa2da885908cd178269e3b4787864ef371fc986acc44e4eb54d5
+size 340849
diff --git a/neuralnetworkpruningwithresidualconnectionsandlimiteddata/layout.json b/neuralnetworkpruningwithresidualconnectionsandlimiteddata/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..80936c853a2f58cafc9eb13cd75fc0618cd50ee2
--- /dev/null
+++ b/neuralnetworkpruningwithresidualconnectionsandlimiteddata/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dbcd5a080dac6dfd9a3d421450ca7f87b5e00c707073d6e8a6d7695c809bfeaf
+size 379811
diff --git a/neuralnetworksaremoreproductiveteachersthanhumanratersactivemixupfordataefficientknowledgedistillationfromablackboxmodel/34604bf6-853a-46f3-929e-dc5a604c3be6_content_list.json b/neuralnetworksaremoreproductiveteachersthanhumanratersactivemixupfordataefficientknowledgedistillationfromablackboxmodel/34604bf6-853a-46f3-929e-dc5a604c3be6_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..0f75a2e3e8f2c6739d158b669efd570850642293
--- /dev/null
+++ b/neuralnetworksaremoreproductiveteachersthanhumanratersactivemixupfordataefficientknowledgedistillationfromablackboxmodel/34604bf6-853a-46f3-929e-dc5a604c3be6_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5077e084bbbd869772108b1a6fe76ac341ad977ee68a18e0febd3516a33343f1
+size 74607
diff --git a/neuralnetworksaremoreproductiveteachersthanhumanratersactivemixupfordataefficientknowledgedistillationfromablackboxmodel/34604bf6-853a-46f3-929e-dc5a604c3be6_model.json b/neuralnetworksaremoreproductiveteachersthanhumanratersactivemixupfordataefficientknowledgedistillationfromablackboxmodel/34604bf6-853a-46f3-929e-dc5a604c3be6_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..5f1f1d411fb930dadee6991253a941214a31f307
--- /dev/null
+++ b/neuralnetworksaremoreproductiveteachersthanhumanratersactivemixupfordataefficientknowledgedistillationfromablackboxmodel/34604bf6-853a-46f3-929e-dc5a604c3be6_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:171ecce9b9f732ae8c60bc48e6abc530e45c6abf065dac8e6c1b945942880f6a
+size 92422
diff --git a/neuralnetworksaremoreproductiveteachersthanhumanratersactivemixupfordataefficientknowledgedistillationfromablackboxmodel/34604bf6-853a-46f3-929e-dc5a604c3be6_origin.pdf b/neuralnetworksaremoreproductiveteachersthanhumanratersactivemixupfordataefficientknowledgedistillationfromablackboxmodel/34604bf6-853a-46f3-929e-dc5a604c3be6_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..dd44764f1c566fa809eb46082dd3231918130496
--- /dev/null
+++ b/neuralnetworksaremoreproductiveteachersthanhumanratersactivemixupfordataefficientknowledgedistillationfromablackboxmodel/34604bf6-853a-46f3-929e-dc5a604c3be6_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:702838bc981a69863f76c7225156da0c80fe77489be55537afe281eca1bf5105
+size 1454214
diff --git a/neuralnetworksaremoreproductiveteachersthanhumanratersactivemixupfordataefficientknowledgedistillationfromablackboxmodel/full.md b/neuralnetworksaremoreproductiveteachersthanhumanratersactivemixupfordataefficientknowledgedistillationfromablackboxmodel/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..309bc8301bb9ba1ca0e92f3ee07d92bd588f73e5
--- /dev/null
+++ b/neuralnetworksaremoreproductiveteachersthanhumanratersactivemixupfordataefficientknowledgedistillationfromablackboxmodel/full.md
@@ -0,0 +1,308 @@
+# Neural Networks Are More Productive Teachers Than Human Raters: Active Mixup for Data-Efficient Knowledge Distillation from a Blackbox Model
+
+Dongdong Wang $^{1*}$ Yandong Li $^{1*}$ Liqiang Wang $^{1}$ Boqing Gong $^{2}$ $^{1}$ University of Central Florida ${}^{2}$ Google
+
+{daniel.wang, liyandong}@Knights.ucf.edu lwang@cs.ucf.edu bgong@google.com
+
+# Abstract
+
+We study how to train a student deep neural network for visual recognition by distilling knowledge from a black-box teacher model in a data-efficient manner. Progress on this problem can significantly reduce the dependence on large-scale datasets for learning high-performing visual recognition models. There are two major challenges. One is that the number of queries into the teacher model should be minimized to save computational and/or financial costs. The other is that the number of images used for the knowledge distillation should be small; otherwise, it violates our expectation of reducing the dependence on large-scale datasets. To tackle these challenges, we propose an approach that blends mixup and active learning. The former effectively augments the few unlabeled images by a big pool of synthetic images sampled from the convex hull of the original images, and the latter actively chooses from the pool hard examples for the student neural network and query their labels from the teacher model. We validate our approach with extensive experiments.
+
+# 1. Introduction
+
+Data curation is one of the most important steps for learning high-performing visual recognition models. However, it is often tedious and sometimes daunting to collect large-scale relevant data that have sufficient coverage of the inference-time scenarios. Additionally, labeling the collected data is time-consuming and costly.
+
+Given a new task, how can we learn a high-quality machine learning model in a more data-efficient manner? We believe the answer varies depending on specific application scenarios. In this paper, we focus on the case that there exists a blackbox teacher model whose capability covers our task of interest. Indeed, there are many high-performing generic visual recognition models available as Web-based
+
+
+
+
+Figure 1. Data-efficient blackbox knowledge distillation. Given a blackbox teacher model and a small set of unlabeled images, we propose to employ mixup [49] and active learning [28] to train a high-performing student neural network in a data-efficient manner (b) so that we do not need to re-do the heavy and expensive data curation used to train the teacher model (a).
+
+APIs, in our smart devices, or even as an obsolete model built by ourselves some while ago. The challenge is, however, we often have limited knowledge about their specifics, e.g., not knowing the exact network architecture or weights. Moreover, it could be computationally and/or financially expensive to query the models and read out their outputs for a large-scale dataset.
+
+To this end, we study how to distill a blackbox teacher model for visual recognition into a student neural network in a data-efficient manner. Our objective is three-fold. First of all, we would like the distilled student network to perform well as the teacher model as possible at the inference time. Besides, we try to minimize the number of queries to the blackbox teacher model to save costs. Finally, we also shall use as a small number of examples as possible to save
+
+data collection efforts. It is hard to collect abundant data for rare classes or privacy-critical applications.
+
+We propose to blend active learning [44, 28] and image mixup [49] to tackle the data-efficient knowledge distillation from a blackbox teacher model. The main idea is to synthesize a big pool of images from the few training examples by mixup and then use active learning to select from the pool the most helpful subset to query the teacher model. After reading out the teacher model's outputs, we simply treat them as the "groundtruth labels" of the query images and train the student neural network with them.
+
+Image mixup [49, 13, 1] was originally proposed for data augmentation to improve the generalization performance of a neural recognition network. It synthesizes a virtual image by a convex combination of two training images. While the resultant image may become cluttered and semantically meaningless, it resides near the manifold of the natural images — unlike white-noise images. Given 1000 images, we can construct $O(10^{5})$ pairs, each of which can further generate tens to thousands of virtual images depending on the coefficients in the convex combination. We conjecture that the big pool of mixup images provides good coverage of the manifold of natural images. Hence, we expect that a student network that imitates the blackbox teacher on the mixup images can give rise to similar predictions over the test images as the teacher model does.
+
+Instead of querying the blackbox teacher model by all the mixup images, we resort to active learning to improve the querying efficiency. We first acquire the labels of the small number of original images from the blackbox teacher model and use them for training the student network. We then apply the student network to all the mixup images to identify the subset with which the current student network is the most uncertain. Notably, if two mixup images are synthesized from the same pair of original images, we keep only the one with higher uncertainty. We query labels for this subset, merge it into the previously labeled data, and then re-train the student network. We iterate this procedure of subset selection, querying the blackbox teacher model, and training the student neural network multiple times until reaching a stopping criterion.
+
+To the best of our knowledge, we are the first to distill knowledge from a blackbox teacher model while underscoring the need for data-efficiency and query-efficiency. We empirically validate our approach by contrasting it to both vanilla and few/zero-shot knowledge distillation methods. Experiments show that, despite the blackbox teacher in our work, our approach performs on par or better than the competing methods that learn from whitebox teachers.
+
+Note that the mixup images are often semantically meaningless, making them almost impossible for human raters to label. However, the blackbox teacher model returns predictions for them regardless, and the student network still gains
+
+from such fake image-label pairs. In this sense, we say that the blackbox teacher model is more productive than human raters in teaching the student network.
+
+# 2. Related Work
+
+Knowledge Distillation. Knowledge distillation is proposed in [16] to solve model compression problems, thus relieving the burden of ensemble learning. This work suggests that class probabilities, as "dark knowledge", are very useful to retain the performance of original network, and thus, light-weight substitute model could be trained to distill this knowledge. This approach is very useful and has been justified to solve a variety of complex application problems, such as pose estimation [37, 46, 33], lane detection [17], real-time streaming [31], object detection [6], video representation [41, 10, 11], and so forth. Furthermore, this approach is able to boost the performance of deep neural network with improvement on efficiency [35] and accuracy [25]. Accordingly, lots of research is conducted to enhance its performance from the perspective of training strategy [45, 20], distillation scheme [15, 4], or network properties [34], etc.
+
+However, there is an important issue. Traditional knowledge distillation requires lots of original training data which are very difficult to be obtained. To alleviate this data demand, few-shot knowledge distillation is proposed to retain teacher model performance with pseudo samplers which are generated in adversarial manner [21]. Another approach called data free knowledge distillation leverages extra activation records from teacher model to reconstruct original datasets, thus recovering teacher model [30]. Recently, a zero-knowledge distillation method is developed by synthesizing data with gradient information of teacher network [32]. Nevertheless, these approaches require the gradient information of teacher network, which enables them intractable in the real world.
+
+Blackbox Optimization. Blackbox optimization is developed based on zero knowledge in the gradient information of queried models and widely used to solve practical problems. Recently, this work is widely used in deep learning, especially model attack. A rich line of blackbox attacking approaches [3, 18, 36, 2, 29] are explored by accessing the input-output pairs of classifiers, most of which are focusing on attacks resulting from accessing the data. [8] instead investigates that the adversaries are capable of recovering sensitive data by model inversion. However, there is no work for blackbox knowledge distillation.
+
+Active Learning. Active learning is a learning process by interaction between oracle and learner agents. This strategy is widely used to solve learning problems which exhibit
+
+costly data labelling since it could exploit existing data information to efficiently improve obtained model, thus reducing the number of queries. Lots of effective approaches are proposed to optimize this process, such as uncertainty-based [28, 48, 9] and margin-based methods [7, 38]. Form the review by [12], uncertainty-based methods, despite simple, are able to obtain good performance.
+
+Mixup. Zhang et al. first proposed mixup to improve the generalization of deep neural network [49]. Between-Class learning [42] (BC learning) was proposed for deep sound recognition, and then, they extended this approach to image classification [43]. Following them, Pairing Samples [19] was proposed as a data augmentation approach by taking an average of two images for each pixel. More recently, an approach called AutoAugment [5], explores improving data augmentation policies by automatically searching.
+
+# 3. Approach
+
+We present our approach to the data-efficient knowledge distillation from a blackbox teacher model in detail in this section. Given a blackbox teacher model and a small number of unlabeled images, the approach iterates over the following three steps: 1) constructing a big candidate pool of synthesized images from the small number of unlabeled images, 2) actively choosing a subset from the pool with which the current student network is the most uncertain, 3) querying the blackbox teacher model to acquire labels for this subset and to re-train the student network.
+
+# 3.1. Constructing a Candidate Pool
+
+In real-world applications, data collection could consume a huge amount of time due to various reasons, such as privacy concerns, rare classes, data quality, etc. Instead of relying on a big dataset of real images, we begin with a small number of unlabeled images and use the recently proposed mixup [49] to augment this initial image pool.
+
+Given two natural images $x_{i}$ and $x_{j}$ , mixup generates multiple synthetic images by a convex combination of the two with different coefficients,
+
+$$
+\hat {x} _ {i j} (\lambda) = \lambda x _ {i} + (1 - \lambda) x _ {j}, \tag {1}
+$$
+
+where the coefficient $\lambda \in [0,1]$ . Note that this notation also includes the original unlabeled data $x_{i}$ and $x_{j}$ when $\lambda = 1$ and $\lambda = 0$ , respectively.
+
+This technique comes handy and effective for our work. It can exponentially expand the size of the initial image pool. Suppose we have collected 1000 natural images, and we generate 10 mixup images for each image pair by varying the coefficient $\lambda$ . We then arrive at a pool of about $10^{6}$ images in total. Besides, this pool of synthetic images also provides good coverage of the manifold of natural images.
+
+Indeed, this pool can be viewed as a dense sampling of the convex hull of the natural images we have collected. The test images likely fall into or close to this convex hull if the collected images are diverse and representative. Hence, we expect the student neural network to generalize well to the inference-time data by enforcing it to imitate the blackbox teacher model on the mixup images.
+
+# 3.2. Actively Choosing a Subset to Query the Teacher Model
+
+Let $\{\hat{x}_{ij}(\lambda),\lambda \in [0,1],i\neq j\}$ denote the augmented pool of images. It is straightforward to query the teacher model to obtain the (soft) labels for these synthetic images and then train the student network with them. However, this brute-force strategy incurs high computational and financial costs. Instead, we employ active learning to reduce the cost.
+
+We define the student neural network's confidence over an input $x$ as
+
+$$
+C _ {1} (x) := \max _ {y} P _ {S} (y | x), \tag {2}
+$$
+
+where $P_{S}(y|x)$ is the probability of the input image $x$ belonging to the class $y$ predicted by the current student network. Intuitively, the less confidence the student network has over the input $x$ , the more the student network can gain from the teacher model's label for the input.
+
+Therefore, we could rank all the synthetic images in the candidate pool according to the student network's confidence on them, and then choose the top ones as the query subset. However, this simple strategy results in near-duplicated images, for example $\hat{x}_{ij}(\lambda = 0.5)$ and $\hat{x}_{ij}(\lambda = 0.55)$ . We avoid this situation by choosing at most one image from any pair of images.
+
+In particular, instead of ranking the synthetic images, we rank image pairs in the candidate pool. We define the confidence of the student network over an image pair $x_{i}$ and $x_{j}$ as the following,
+
+$$
+C _ {2} \left(x _ {i}, x _ {j}\right) := \min _ {\lambda} C _ {1} \left(\hat {x} _ {i j} (\lambda)\right), \quad \lambda \in [ 0, 1 ], \tag {3}
+$$
+
+which depends on a coefficient $\lambda^{*}$ for the image pair. Hence, we obtain a confidence score and its corresponding coefficient for any pair of the original images. The synthetic image $\hat{x}_{ij}(\lambda^{*})$ is selected into the query set if the confidence score $C_2(x_i,x_j)$ is among the lowest $k$ ones. We study the size of the query set in the experiments.
+
+# 3.3. Training the Student Network
+
+With the actively selected query set of images, we query the blackbox teacher model and read out its soft predictions as the labels for the images. We then merge them with the previous training set, if there is, to train the student network
+
+Algorithm 1 Data-efficient blackbox knowledge distillation
+INPUT: Pre-trained teacher model $\mathcal{M}^T$
+INPUT: A small set of unlabeled images $X = \{x_{i}\}_{i = 1}^{n}$
+INPUT: Hyper-parameters (learning rate, subset size, etc.)
+OUTPUT: Student network $\mathcal{M}^S$
+1: Query $\mathcal{M}^T$ and acquire labels $Y_{0}$ for all images in $X$
+2: Train an initial student network $\mathcal{M}_0^S$ with $(X,Y_0)$
+3: Construct a synthetic image pool $\mathcal{P} = \{\hat{x}_{ij}(\lambda)\}$ by using the unlabeled images $X$ with eq. (1)
+4: Initialize $\mathcal{P}_1^s = X,\mathcal{V}_1 = \mathcal{V}_0$
+5: for $t = 1,2\dots ,T$ do
+6: Select a subset $\Delta \mathcal{P}_t^s$ from $\mathcal{P}$ with lowest confidence scores $\{C_2(x_i,x_j)\}$ returned by student $\mathcal{M}_{t - 1}^S$
+7: Query $\mathcal{M}^T$ , acquire labels $\Delta \mathcal{V}_t$ for all images $\Delta \mathcal{P}_t^s$
+8: $\mathcal{P}_t^s\gets \mathcal{P}_t^s\cup \Delta \mathcal{P}_t^s,\mathcal{V}_t\gets \mathcal{V}_t\cup \Delta \mathcal{V}_t$
+9: Train a new student network $\mathcal{M}_t^S$ with $(\mathcal{P}_t^s,\mathcal{V}_t)$
+10: Update $\mathcal{P}\gets \mathcal{P}\cdot \Delta \mathcal{P}_t^s$
+11: end for
+
+using a cross-entropy loss. The soft probabilistic labels returned by the teacher model give rise to slightly better results than the hard labels, so we shall use the soft labels in the experiments below.
+
+# 3.4. Overall Algorithm
+
+Algorithm 1 presents the overall procedure of our approach to the data-efficient blackbox knowledge distillation. Beginning with a teacher model $\mathcal{M}^T$ and a few unlabeled images $X = \{x_{1}, x_{2}, \dots, x_{n}\}$ , we firstly train an initial student network $\mathcal{M}_0^S$ with $(X, Y_0)$ , where $Y_0$ contains the labels for the images in $X$ and is obtained by querying the teacher model. We then construct a big pool of synthetic images $\mathcal{P}$ with mixup [49] (eq. (1)) to facilitate the active learning stage. We iterate the following steps until the accuracy of the student network converges. 1) Actively select a subset $\Delta \mathcal{P}_t^s$ of the synthetic images $\mathcal{P}$ with the lowest confidence scores, $C_2(x_i, x_j)$ , as predicted by the current student network so that the resulting subset $\Delta \mathcal{P}_t^s$ contains hard samples for the current student network $\mathcal{M}_{t-1}^S$ . 2) Acquire labels $\Delta \mathcal{Y}_t$ of the selected subset of synthetic images $\Delta \mathcal{P}_t^s$ by querying the teacher model. 3) Train a new student network $\mathcal{M}_t^S$ with all the labeled images thus far, $(\mathcal{P}_t^s, \mathcal{Y}_t)$ . Note that, in Line 6 of Algorithm 1, we only keep one synthetic image for any pair $(x_i, x_j)$ of the original images to reduce redundancy.
+
+# 4. Experiments
+
+We design various experiments to test our approach, including both comparison experiments with state-of-the-art knowledge distillation methods and ablation studies. Additionally, we also challenge our approach when the available
+
+data is out of the distribution of the main task of interest. In practice, across all experiments, we select $\lambda \in \{0.3, 0.7\}$ (with an interval of 0.04) to generate synthetic images to produce more diverse mixup images.
+
+# 4.1. Comparison Experiments
+
+Since our main objective is to explore how to train a high-performing student neural network from a blackbox teacher model in a data-efficient manner, it is worth comparing our approach with existing knowledge distillation methods although they were developed for other setups. The comparison can help review how data-efficient our approach is given the blackbox teacher model.
+
+# 4.1.1 Experiment Setting
+
+Datasets. We run experiments on MNIST [26], Fashion-MNIST [47], CIFAR-10 [22], and Places365-Standard [50], which are popular benchmark datasets for image classification. The MNIST dataset contains 60K training images and 10K testing images about ten handwritten digits. The image resolution is $28 \times 28$ . Fashion-MNIST is composed of 60K training and 10K testing fashion product images of the size $28 \times 28$ . CIFAR-10 consists of 60K (50K training images and 10K test images) $32 \times 32$ RGB images in 10 classes, with 6K images per class. In addition to evaluating the proposed approach on the above described low-resolution images, we also test our approach on Places365-Standard, which is a challenging dataset for natural scene recognition. It has 1.8M training images and 18,250 validation images in 365 classes. We use the resolution of $256 \times 256$ for Places365-Standard in the following experiments.
+
+Evaluation Metric. We mainly use the classification accuracy as the evaluation metric. Additionally, we also propose a straightforward metric to measure how much "knowledge" the student network distills from the teacher model. This metric is computed as the ratio between the student network's classification accuracy and the teacher's accuracy, and we call it the distillation success rate.
+
+Blackbox Teacher Models. For each task except Places365-Standard, we prepare a teacher model by following the training setting provided in [32]. For Places365-Standard, there is no training setting reference for the knowledge distillation research yet, so we use a pre-trained model from the dataset repository [50] as our teacher model. On MNIST and Fashion-MNIST, we use the LeNet-5 architecture [27] as the teacher model and optimize it to achieve $99.29\%$ and $90.80\%$ top-1 accuracies, respectively. On CIFAR-10, we have an AlexNet [24] as the teacher model and train it to obtain $83.07\%$ top-1 accuracy. As shown in Table 1, the above teacher
+
+
+Figure 2. Mixup images whose confidence scores (cf. eq. (3)) are the lowest among all candidates in the third iteration. For each mixup image, we show the top three labels and probabilities returned by the blackbox teacher model.
+
+
+Figure 3. Different mixup images from the same pair of the original images by varying the mixup coefficient $\lambda$ . We show the top three labels and probabilities predicted by the teacher model for each of them. It is interesting to see how the top-1 label changes from Hockey Arena, to Baseball Field, and to Golf Course.
+
+models are comparable to the teacher models in [32]: $83.03\%$ vs. $83.07\%$ on CIFAR-10, $99.34\%$ vs. $99.29\%$ on MNIST, and $90.84\%$ vs. $90.87\%$ on Fashion-MNIST. For Places365-Standard, the teacher model is a ResNet-18 [14] and yields $53.68\%$ top-1 accuracy.
+
+Competing Methods. We identify three existing relevant methods for comparison.
+
+- One is zero-shot knowledge distillation (ZSKD) [32], which distills a student neural network with zero training example from a whitebox teacher model. It synthesizes data by backpropagating gradients to the input through the whitebox teacher network.
+- The second method is few-shot knowledge distillation (FSKD) [21], which augments the training images by generating adversarial examples. It is the most relevant work to ours, but it depends on the computationally expensive adversarial examples [40] and has no active learning scheme to reduce the query cost at all. The original work assumes a whitebox teacher neural network so that it is straightforward to produce the adver
+
+sarial examples, whereas there exist blackbox attack methods [29, 3].
+
+- The third is the vanilla knowledge distillation [16], which accesses the whole training set of the teacher model and is somehow an upper bound of our method.
+
+# 4.1.2 Quantitative Results
+
+Table 1 shows the comparison results. For simplicity, we run the active learning stage for only one step (i.e., $T = 1$ in Algorithm 1). Section 4.2 presents the results of running it for multiple steps.
+
+Accuracy. Our approach significantly outperforms FSKD over all the datasets. On CIFAR-10, MNIST, and Fashion-MNIST, ours yields $41\%$ , $18\%$ , and $14\%$ success rate improvements over FSKD, respectively. On Places365-Standard, whose images are high-resolution about natural scenes, we also outperform FSKD by $14\%$ success rate. Compared to ZSKD, which relies on a whitebox teacher network, our approach also shows higher accuracies and success rates except on MNIST. We were not able to re
+
+Table 1. Comparison results on Places365-Standard, CIFAR-10, MNIST, and Fashion-MNIST. The "Teacher" column reports the teacher model's accuracy on the test sets, "KD Accuracy" is the student network's test accuracy, "Success" stands for the distillation success rates, "Black/White" indicates whether or not the teacher model is blackbox, "Queries" lists the numbers of queries into the teacher models, and "Unlabeled Data" shows the numbers of original training images used in the experiments. (* results reported in the original paper)
+
+| Task (Model) | Teacher | KD Accuracy | Success | Black/White | Queries | Unlabeled Data |
| Places365-Standard (ZSKD) [32] | - | - | - | - | - | 0 |
| Places365-Standard (FSKD [21]) | 53.69 | 38.18 | 71.11 | White | 480,000 | 80,000 |
| Places365-Standard (KD) | 53.69 | 49.01 | 90.35 | Black | 1,800,000 | 1,800,000 |
| Places365-Standard (Ours) | 53.69 | 45.71 | 85.14 | Black | 480,000 | 80,000 |
| CIFAR-10 (ZSKD) [32] | 83.03* | 69.56* | 83.78 | White | >2,000,000 | 0 |
| CIFAR-10 (FSKD [21]) | 83.07 | 40.58 | 48.85 | White | 40,000 | 2,000 |
| CIFAR-10 (KD) | 83.07 | 80.01 | 96.31 | Black | 50,000 | 50,000 |
| CIFAR-10 (Ours) | 83.07 | 74.60 | 89.87 | Black | 40,000 | 2,000 |
| MNIST (ZSKD) [32] | 99.34* | 98.77* | 99.42 | White | >1,200,000 | 0 |
| MNIST (FSKD [21]) | 99.29 | 80.43 | 81.01 | White | 24,000 | 2,000 |
| MNIST (KD) | 99.29 | 99.05 | 99.76 | Black | 60,000 | 60,000 |
| MNIST (Ours) | 99.29 | 98.74 | 99.45 | Black | 24,000 | 2,000 |
| Fashion-MNIST(ZSKD) [32] | 90.84* | 79.62* | 87.65 | White | >2,400,000 | 0 |
| Fashion-MNIST (FSKD [21]) | 90.80 | 68.64 | 75.60 | White | 48,000 | 2,000 |
| Fashion-MNIST (KD) | 90.80 | 87.79 | 96.69 | Black | 60,000 | 60,000 |
| Fashion-MNIST(Ours) | 90.80 | 80.90 | 89.10 | Black | 48,000 | 2,000 |
+
+produce ZSKD on Places365-Standard because its images are all high-resolution, making it computationally infeasible to generate a large number of gradient-based inputs. Similarly, the advantage of ours over ZSKD is larger on CIFAR-10 than other MNIST or Fashion-MNIST, probably because the CIFAR-10 images have a higher resolution. In contrast, the computation cost of our active mixup approach does not depend on the input resolution. Overall, the results indicate that active mixup has a higher potential to solve the larger-scale knowledge distillation in a data-efficient manner.
+
+Queries. Our approach saves orders of queries into the teacher model compared to ZSKD. For example, we only query the blackbox teacher model up to 40K times for CIFAR-10. In contrast, ZSKD requires more than 2M queries and yet yields lower accuracy than ours. The big difference is not surprising because the gradient-based inputs in ZSKD are less natural than or representative of the test images than our mixup images. Besides, ZSKD incurs additional queries into the whitebox teacher model every time it produces an input.
+
+# 4.1.3 Qualitative Intermediate Results
+
+We show some mixup images in Figures 2 and 3. These images are selected from the candidate pool constructed using the natural images in the Places365-Standard training set. Figure 2 shows some mixup images with low confidence scores. They can potentially benefit the student
+
+network more than the other candidate images if we use them to query the teacher model. Figure 3 demonstrates some mixup images synthesized from the same pair of natural images by varying the mixup coefficient $\lambda$ . It is interesting to see that the mix of "Hockey Arena" and "Golf Course" leads to a "Baseball Field" at $\lambda = 0.46$ predicted by the blackbox teacher model. This indicates that our active mixup approach can effectively augment the originally small training set by not only bringing in new synthetic images but also comprehensive coverage of classes.
+
+# 4.2. Ablation Study
+
+We select CIFAR-10 and Places365-Standard to study our approach in detail since they represent the small-scale and large-scale settings, respectively. For CIFAR-10, we switch to VGG-16 [39] as the blackbox teacher model, which gives rise to $93.31\%$ top-1 accuracy.
+
+# 4.2.1 Data-Efficiency and Query-Efficiency
+
+We investigate how the results of our active mixup approach change as we vary the total number of unlabeled real images (data-efficiency) and the number of synthetic images selected by the active learning scheme (query-efficiency). Here we run only one step of the active learning stage $(T = 1$ in Algorithm 1) to save computation cost. Tables 2 and 3 show the results on CIFAR-10 and Places365-Standard, respectively. Each entry in the tables is a classification accuracy on the test set, and it is obtained by a
+
+student network which we distill by using the corresponding number of unlabeled real images (Real images) and the number of selected synthetic images (Selected Syn.).
+
+Table 2. Classification accuracy on CIFAR-10 with different numbers of real images and selected synthetic images.
+
+| Real images
+Selected Syn. | 0.5K | 1K | 2K | 4K | 8K | 16K |
| 0 | 44.72 | 56.87 | 68.09 | 76.59 | 83.61 | 86.89 |
| 5K | 66.97 | 71.67 | 77.76 | 81.76 | 85.76 | 87.05 |
| 10K | 73.60 | 77.27 | 81.27 | 83.27 | 86.56 | 88.79 |
| 20K | 77.44 | 81.18 | 84.19 | 86.29 | 88.07 | 89.01 |
| 40K | 82.28 | 84.25 | 86.06 | 87.71 | 89.00 | 90.49 |
| 80K | 85.18 | 86.53 | 87.89 | 88.71 | 89.61 | 90.96 |
| 160K | 86.56 | 88.94 | 89.42 | 90.26 | 90.87 | 91.51 |
+
+Table 3. Classification accuracy on Places365-Standard with different numbers of real images and selected synthetic images.
+
+| Real images
+Selected Syn. | 20K | 40K | 80K |
| 100K | 40.72 | 41.95 | 43.52 |
| 200K | 41.15 | 42.86 | 44.77 |
| 400K | 41.94 | 43.42 | 45.71 |
+
+We can see that the more synthetic images we select by their confidence scores (cf. eq. (3)), the higher-quality the distilled student network is. It indicates that the mixup images can effectively boost the performance of our method. Meanwhile, the higher the number of unlabeled real images we have, the higher the distillation success rate we can achieve. What's more interesting is that, when the number of synthetic images is high (e.g., 160K), the gain is diminishing as we increase the number of real images. Hence, depending on the application scenarios, we have the flexibility to trade-off the real images and synthetic images for achieving a certain distillation success rate.
+
+We can take a closer look at Tables 2 and 3 to obtain an understanding about the "market values" of the selected synthetic images. In Table 2, 10K selected synthetic images and 8K unlabeled real images yield $86.56\%$ accuracy; 20K synthetic images and 4K real images lead to $86.29\%$ accuracy; and 40K synthetic images with 2K real examples give rise to $86.06\%$ accuracy. The accuracies are about the same. There is a similar trend along the off-diagonal entries in Table 3, implying that if we reduce the number of real images by half, we can complement it by doubling the size of synthetic images to maintain about the same distillation success rate.
+
+# 4.2.2 Active Mixup vs. Random Search
+
+We design another experiment to compare active mixup with the random search to understand the effectiveness of
+
+our active learning scheme. We keep 500 real images for CIFAR-10 and $20\mathrm{K}$ for Places365-Standard. We then use them to construct 100K and 300K synthetic images, respectively. For a fair comparison, we let random search and active mixup share the same sets of natural images. Since our active learning scheme avoids selecting redundant images by using the improved confidence score in eq. (3), we also equip the random search such capability by using a single mixup coefficient of $\lambda = 0.5$ to construct the synthetic images. This guarantees that, like our approach, no two synthetic images selected by the random search are from the same pair of real images.
+
+
+Figure 4. Test accuracy of student networks vs. number of queries into the blackbox teacher model on CIFAR-10 (left) and Places365-Standard (right). We use 500 and $20\mathrm{K}$ natural images for the two datasets, respectively. The plot for CIFAR-10 starts from first active learning stage $(t = 1$ in Algorithm 1) and the one for Places365 starts from the initial student network training by natural images. The initial student network for CIFAR-10 trained by using natural images only yields $43.67\%$ accuracy.
+
+
+
+Figure 4 shows the comparison results of our active mixup and the random search. On CIFAR-10, we select $10\mathrm{K}$ synthetic images every time and run the active learning stage for 10 steps ( $T = 10$ in Algorithm 1). On Places365-Standard, we run it for six steps and choose $50\mathrm{K}$ synthetic images per step. We can see that active mixup significantly outperforms random search over the whole course of knowledge distillation, verifying its effectiveness on improving the query-efficiency. More concretely, $80\mathrm{K}$ actively selected synthetic images yield $86.76\%$ accuracy, which is about the same as what $160\mathrm{K}$ randomly selected synthetic images can achieve on CIFAR-10. Similarly, $40\mathrm{K}$ synthetic images by active mixup lead to $84.2\%$ accuracy, on par with the $85.18\%$ accuracy by $80\mathrm{K}$ randomly chosen synthetic images.
+
+# 4.2.3 Active Mixup vs. Vanilla Active Learning
+
+Our active learning scheme (eq. (3)) improves upon the vanilla score-based active learning (eq. (2)) by selecting only one synthetic image at most from any pair of real images. This change is necessary because two nearly dupi
+
+cated synthetic images could both have very low scores according to eq. (2).
+
+To quantitatively compare the two active learning methods, we run another experiment by replacing our active learning scheme with the vanilla version. The candidate pool is the same as ours, i.e., mixup images generated by varying $\lambda \in \{0.3, 0.7\}$ with an interval of 0.04. Figure 4 shows the results on both CIFAR-10 and Place365-Standard.
+
+Generally, the vanilla active learning yields lower accuracy than our active mixup and the random search. This shows that the vanilla score-based active learning even fails to improve upon random search because it selects nearly duplicated synthetic images to query the teacher model. In contrast, our active mixup consistently performs the better than the vanilla active learning and random search. The prominent gap justifies that the constraint by $C_2$ in eq. (3) is crucial in our approach.
+
+# 4.3. Active Mixup with Out-of-Domain Data for Blackbox Knowledge Distillation
+
+In real-world applications, it may be hard to collect real training images for some tasks, e.g., due to privacy concerns. Under such scenarios, we have to use out-of-domain data to distill the student neural network. Hence, we further challenge our approach by revealing some images that are out of the domain of the training images of the blackbox teacher model.
+
+We conduct this experiment on CIFAR-10 by providing our approach some training images in CIFAR-100 [23]. To reduce information leak, we exclude the images that belong to the CIFAR-10 classes and keep 2K images to construct the candidate pool. Equipped with these synthetic images, we run active mixup to distill student neural networks from a blackbox teacher model for CIFAR-10. The teacher model is VGG-16, which yields $93.31\%$ accuracy on the CIFAR-10 test set.
+
+Table 4. CIFAR-10 classification accuracy by the student neural networks which are distilled by using out-of-domain data.
+
+| Selected Syn. | 10K | 20K | 40K | 80K |
| Accuracy (%) | 64.10 | 71.39 | 77.89 | 83.03 |
+
+Table 4 shows the results of different numbers of selected synthetic images. We still run only one iteration of the active learning to save computation costs. The best distillation performance is $83\%$ top-1 accuracy and success rate is $88.9\%$ . Comparing the result to Table 2, especially the entry $(87.89\%)$ of 80K selected synthetic images and 2K real images, we can see that our approach leads to about the same performance by using the out-of-domain data as the in-domain data.
+
+Table 5. CIFAR-10 classification accuracy by the student neural networks which are distilled by using out-of-domain data. We set the number of selected synthetic images to 40K and vary the numbers of real images.
+
+| Real images | 500 | 1000 | 1500 | 2000 |
| Accuracy (%) | 70.21 | 74.60 | 75.54 | 77.89 |
+
+To better understand how different factors influence the distillation performance, we also decouple the number of available real images from the number of selected synthetic images in Table 5. We fix the number of selected synthetic images to $40\mathrm{K}$ and vary the numbers of real images. Not surprisingly, the more real images there are, the higher distillation accuracy the active mixup achieves. Furthermore, the number of synthetic images still plays a prominent role in distillation accuracy, according to Table 4. Without the original training data, mixup augmentation is probably more critical to enhancing the distillation performance than otherwise.
+
+# 5. Discussion and Conclusion
+
+In this paper, we formalize a novel problem, knowledge distillation from a blackbox teacher model in a data-efficient manner, which we think is more realistic than previous knowledge distillation setups. There are two key challenges to this problem. One is that the available examples are insufficient to represent the vast variation in the original training set of the teacher model. The other is that the blackbox teacher model often implies that it is financially and computationally expensive to query.
+
+To deal with the two challenges, we propose an approach combining mixup and active learning. Although neither of them is new by itself, combining them is probably the most organic solution to our problem setup for the following reasons. First of all, we would like to augment the few available examples. Unlike conventional data augmentations (e.g., cropping, adding noise), which only probe the regions around the available examples, mixup provides a continuous interpolation between any pairwise examples. As a result, mixup allows the student model to probe diverse regions of the input space. We then employ active learning to reduce the query transactions to the teacher model. Extensive experiments verify the effectiveness of our approach to the data-efficient blackbox knowledge distillation.
+
+# 6. Acknowledgements
+
+This work was supported in part by NSF-1741431 and NSF-1836881.
+
+# References
+
+[1] David Berthelot, Nicholas Carlini, Ian Goodfellow, Nicolas Papernot, Avital Oliver, and Colin Raffel. Mixmatch: A holistic approach to semi-supervised learning. arXiv preprint arXiv:1905.02249, 2019. 2
+[2] Wieland Brendel, Jonas Rauber, and Matthias Bethge. Decision-based adversarial attacks: Reliable attacks against black-box machine learning models. arXiv preprint arXiv:1712.04248, 2017. 2
+[3] Pin-Yu Chen, Huan Zhang, Yash Sharma, Jinfeng Yi, and Cho-Jui Hsieh. Zoo: Zeroth order optimization based blackbox attacks to deep neural networks without training substitute models. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, pages 15-26. ACM, 2017. 2, 5
+[4] Jang Hyun Cho and Bharath Hariharan. On the efficacy of knowledge distillation. In Proceedings of the IEEE International Conference on Computer Vision, pages 4794-4802, 2019. 2
+[5] Ekin D Cubuk, Barret Zoph, Dandelion Mane, Vijay Vasudevan, and Quoc V Le. Autoaugment: Learning augmentation policies from data. arXiv preprint arXiv:1805.09501, 2018. 3
+[6] Jiajun Deng, Yingwei Pan, Ting Yao, Wengang Zhou, Houqiang Li, and Tao Mei. Relation distillation networks for video object detection. In Proceedings of the IEEE International Conference on Computer Vision, pages 7023-7032, 2019. 2
+[7] Melanie Ducoffe and Frederic Precioso. Adversarial active learning for deep networks: a margin based approach. arXiv preprint arXiv:1802.09841, 2018. 3
+[8] Matt Fredrikson, Somesh Jha, and Thomas Ristenpart. Model inversion attacks that exploit confidence information and basic countermeasures. In Proceedings of the 22nd ACM SIGSAC Conference on Computer and Communications Security, pages 1322-1333. ACM, 2015. 2
+[9] Yarin Gal, Riashat Islam, and Zoubin Ghahramani. Deep bayesian active learning with image data. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 1183-1192. JMLR.org, 2017. 3
+[10] Chuang Gan, Boqing Gong, Kun Liu, Hao Su, and Leonidas J Guibas. Geometry guided convolutional neural networks for self-supervised video representation learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5589-5597, 2018. 2
+[11] Chuang Gan, Hang Zhao, Peihao Chen, David Cox, and Antonio Torralba. Self-supervised moving vehicle tracking with stereo sound. In Proceedings of the IEEE International Conference on Computer Vision, pages 7053-7062, 2019. 2
+[12] Daniel Gissin and Shai Shalev-Shwartz. Discriminative active learning. arXiv preprint arXiv:1907.06347, 2019. 3
+[13] Hongyu Guo, Yongyi Mao, and Richong Zhang. Mixup as locally linear out-of-manifold regularization. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 3714-3722, 2019. 2
+[14] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceed-
+
+ings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016. 5
+[15] Byeongho Heo, Jeesoo Kim, Sangwoo Yun, Hyojin Park, No-jun Kwak, and Jin Young Choi. A comprehensive overhaul of feature distillation. arXiv preprint arXiv:1904.01866, 2019. 2
+[16] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. 2, 5
+[17] Yuenan Hou, Zheng Ma, Chunxiao Liu, and Chen Change Loy. Learning lightweight lane detection cnns by self attention distillation. In Proceedings of the IEEE International Conference on Computer Vision, pages 1013-1021, 2019. 2
+[18] Andrew Ilyas, Logan Engstrom, Anish Athalye, and Jessy Lin. Black-box adversarial attacks with limited queries and information. arXiv preprint arXiv:1804.08598, 2018. 2
+[19] Hiroshi Inoue. Data augmentation by pairing samples for images classification. arXiv preprint arXiv:1801.02929, 2018.3
+[20] Xiao Jin, Baoyun Peng, Yichao Wu, Yu Liu, Jiaheng Liu, Ding Liang, Junjie Yan, and Xiaolin Hu. Knowledge distillation via route constrained optimization. arXiv preprint arXiv:1904.09149, 2019. 2
+[21] Akisato Kimura, Zoubin Ghahramani, Koh Takeuchi, Tomoharu Iwata, and Naonori Ueda. Few-shot learning of neural networks from scratch by pseudo example optimization. arXiv preprint arXiv:1802.03039, 2018. 2, 5, 6
+[22] Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images, 2009. 4
+[23] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, Cite-seer, 2009. 8
+[24] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pages 1097-1105, 2012. 4
+[25] Jogendra Nath Kundu, Nishank Lakkakula, and R Venkatesh Babu. Um-adapt: Unsupervised multi-task adaptation using adversarial cross-task distillation. In Proceedings of the IEEE International Conference on Computer Vision, pages 1436-1445, 2019. 2
+[26] Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278-2324, 1998. 4
+[27] Yann LeCun et al. Lenet-5, convolutional neural networks. URL: http://yann.lecun.com/exdb/lenet, 20:5, 2015. 4
+[28] David D Lewis and William A Gale. A sequential algorithm for training text classifiers. In SIGIR94, pages 3-12. Springer, 1994. 1, 2, 3
+[29] Yandong Li, Lijun Li, Liqiang Wang, Tong Zhang, and Boqing Gong. Nattack: Learning the distributions of adversarial examples for an improved black-box attack on deep neural networks. arXiv preprint arXiv:1905.00441, 2019. 2, 5
+[30] Raphael Gontijo Lopes, Stefano Fenu, and Thad Starner. Data-free knowledge distillation for deep neural networks. arXiv preprint arXiv:1710.07535, 2017. 2
+
+[31] Ravi Teja Mullapudi, Steven Chen, Keyi Zhang, Deva Ramanan, and Kayvon Fatahalian. Online model distillation for efficient video inference. In Proceedings of the IEEE International Conference on Computer Vision, pages 3573-3582, 2019. 2
+[32] Gaurav Kumar Nayak, Konda Reddy Mopuri, Vaisakh Shaj, Venkatesh Babu Radhakrishnan, and Anirban Chakraborty. Zero-shot knowledge distillation in deep networks. In International Conference on Machine Learning, pages 4743-4751, 2019. 2, 4, 5, 6
+[33] Xuecheng Nie, Yuncheng Li, Linjie Luo, Ning Zhang, and Jiashi Feng. Dynamic kernel distillation for efficient pose estimation in videos. In Proceedings of the IEEE International Conference on Computer Vision, pages 6942-6950, 2019. 2
+[34] Baoyun Peng, Xiao Jin, Jiaheng Liu, Dongsheng Li, Yichao Wu, Yu Liu, Shunfeng Zhou, and Zhaoning Zhang. Correlation congruence for knowledge distillation. In Proceedings of the IEEE International Conference on Computer Vision, pages 5007-5016, 2019. 2
+[35] Mary Phuong and Christoph H Lampert. Distillation-based training for multi-exit architectures. In Proceedings of the IEEE International Conference on Computer Vision, pages 1355-1364, 2019. 2
+[36] Tim Salimans, Jonathan Ho, Xi Chen, and Ilya Sutskever. Evolution strategies as a scalable alternative to reinforcement learning. arXiv preprint arXiv:1703.03864, 2017. 2
+[37] Muhamad Risqi U Saputra, Pedro PB de Gusmao, Yasin Almalioglu, Andrew Markham, and Niki Trigoni. Distilling knowledge from a deep pose regressor network. In Proceedings of the IEEE International Conference on Computer Vision, pages 263-272, 2019. 2
+[38] Burr Settles, Mark Craven, and Soumya Ray. Multiple-instance active learning. In Advances in neural information processing systems, pages 1289-1296, 2008. 3
+[39] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. 6
+[40] 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. 5
+[41] Mohammad Tavakolian, Hamed R Tavakoli, and Abdenour Hadid. Awsd: Adaptive weighted spatiotemporal distillation for video representation. In Proceedings of the IEEE International Conference on Computer Vision, pages 8020-8029, 2019. 2
+[42] Yuji Tokozume, Yoshitaka Ushiku, and Tatsuya Harada. Learning from between-class examples for deep sound recognition. arXiv preprint arXiv:1711.10282, 2017. 3
+[43] Yuji Tokozume, Yoshitaka Ushiku, and Tatsuya Harada. Between-class learning for image classification. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018. 3
+[44] Simon Tong and Daphne Koller. Support vector machine active learning with applications to text classification. Journal of machine learning research, 2(Nov):45-66, 2001. 2
+
+[45] Frederick Tung and Greg Mori. Similarity-preserving knowledge distillation. In Proceedings of the IEEE International Conference on Computer Vision, pages 1365-1374, 2019. 2
+[46] Chaoyang Wang, Chen Kong, and Simon Lucey. Distill knowledge from nrsfm for weakly supervised 3d pose learning. In Proceedings of the IEEE International Conference on Computer Vision, pages 743-752, 2019. 2
+[47] Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017. 4
+[48] Yazhou Yang and Marco Loog. A benchmark and comparison of active learning for logistic regression. Pattern Recognition, 83:401-415, 2018. 3
+[49] Hongyi Zhang, Moustapha Cisse, Yann N Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. arXiv preprint arXiv:1710.09412, 2017. 1, 2, 3, 4
+[50] 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, 2017. 4
\ No newline at end of file
diff --git a/neuralnetworksaremoreproductiveteachersthanhumanratersactivemixupfordataefficientknowledgedistillationfromablackboxmodel/images.zip b/neuralnetworksaremoreproductiveteachersthanhumanratersactivemixupfordataefficientknowledgedistillationfromablackboxmodel/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..d52b269796fae0f55adc2434587fb37eebafae09
--- /dev/null
+++ b/neuralnetworksaremoreproductiveteachersthanhumanratersactivemixupfordataefficientknowledgedistillationfromablackboxmodel/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:87fd062494a0472ab8721a40f2d243b8813ede0042c43656a647661d6d9426e6
+size 484545
diff --git a/neuralnetworksaremoreproductiveteachersthanhumanratersactivemixupfordataefficientknowledgedistillationfromablackboxmodel/layout.json b/neuralnetworksaremoreproductiveteachersthanhumanratersactivemixupfordataefficientknowledgedistillationfromablackboxmodel/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..6a54e6912a506978b8c8d54591023f2b925557e8
--- /dev/null
+++ b/neuralnetworksaremoreproductiveteachersthanhumanratersactivemixupfordataefficientknowledgedistillationfromablackboxmodel/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:372f84f45f02f3bcf22ae7b40d87c488fdec08c4179d67f686eeed0e9b48b262
+size 394292
diff --git a/neuralpointcloudrenderingviamultiplaneprojection/d4f63e73-d18c-4114-bf8b-5e16f36f84a8_content_list.json b/neuralpointcloudrenderingviamultiplaneprojection/d4f63e73-d18c-4114-bf8b-5e16f36f84a8_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..651fd1aa8492e49d1aae325386950d16d3f19ab6
--- /dev/null
+++ b/neuralpointcloudrenderingviamultiplaneprojection/d4f63e73-d18c-4114-bf8b-5e16f36f84a8_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9af9a506a10273e2361686d50eaf5853adff7ab0bae8f8d9f2ca03288991223a
+size 70843
diff --git a/neuralpointcloudrenderingviamultiplaneprojection/d4f63e73-d18c-4114-bf8b-5e16f36f84a8_model.json b/neuralpointcloudrenderingviamultiplaneprojection/d4f63e73-d18c-4114-bf8b-5e16f36f84a8_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..cf939807c2bf70156610052deeba6eef8080bf4c
--- /dev/null
+++ b/neuralpointcloudrenderingviamultiplaneprojection/d4f63e73-d18c-4114-bf8b-5e16f36f84a8_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6361a534629d6606dfc57df5ab21807219490f725c5f003b679fde17e6c6a5dd
+size 88887
diff --git a/neuralpointcloudrenderingviamultiplaneprojection/d4f63e73-d18c-4114-bf8b-5e16f36f84a8_origin.pdf b/neuralpointcloudrenderingviamultiplaneprojection/d4f63e73-d18c-4114-bf8b-5e16f36f84a8_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..a1aaf5694daaa1bb158cf258b92665dff1f7d3d5
--- /dev/null
+++ b/neuralpointcloudrenderingviamultiplaneprojection/d4f63e73-d18c-4114-bf8b-5e16f36f84a8_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:28846b3327c3a9de78dff50c81505f1518c8803f6968167a8df9605bed208309
+size 652749
diff --git a/neuralpointcloudrenderingviamultiplaneprojection/full.md b/neuralpointcloudrenderingviamultiplaneprojection/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..ee5548eb6bdd488a3827d98f0ed3cbdaecf0adeb
--- /dev/null
+++ b/neuralpointcloudrenderingviamultiplaneprojection/full.md
@@ -0,0 +1,326 @@
+# Neural Point Cloud Rendering via Multi-Plane Projection
+
+Peng Dai $^{1*}$
+
+Yinda Zhang $^{2*}$
+
+Zhuwen Li $^{3*}$
+
+Shuaicheng Liu $^{1\dagger}$
+
+Bing Zeng1
+
+1University of Electronic Science and Technology of China
+
+2Google Research
+
+$^{3}$ Nuro Inc
+
+# Abstract
+
+We present a new deep point cloud rendering pipeline through multi-plane projections. The input to the network is the raw point cloud of a scene and the output are image or image sequences from a novel view or along a novel camera trajectory. Unlike previous approaches that directly project features from 3D points onto 2D image domain, we propose to project these features into a layered volume of camera frustum. In this way, the visibility of 3D points can be automatically learnt by the network, such that ghosting effects due to false visibility check as well as occlusions caused by noise interferences are both avoided successfully. Next, the 3D feature volume is fed into a 3D CNN to produce multiple planes of images w.r.t. the space division in the depth directions. The multi-plane images are then blended based on learned weights to produce the final rendering results. Experiments show that our network produces more stable renderings compared to previous methods, especially near the object boundaries. Moreover, our pipeline is robust to noisy and relatively sparse point cloud for a variety of challenging scenes.
+
+# 1. Introduction
+
+Rendering is on high demand for many graphics and vision applications. To produce high quality rendering, various physical understanding of the scene has to be established, such as scene geometry [9], scene textures [3], materials [44], illuminations [47], all of which require tremendous efforts to obtain. After the construction of rendering essentials, a photo-realistic view of the modeled scene is generated through expensive rendering process such as ray tracing [13] and radiance simulation [45].
+
+Image based rendering (IBR) techniques [16, 29, 32], alternatively, try to render a novel view based on the given images and their approximated scene geometries through image warping [30] and image inpainting [23]. The scene
+
+
+Figure 1. Our method synthesize images in novel view by using neural point cloud rendering.
+
+structure approximation often adopts simplified forms such that the rendering process becomes relatively cheaper than physically based renderings. However, IBR requires the novel view to stay close to the original views in order to avoid rendering artifacts. Instead of purely based on images, point-based graphics(PBG) [28, 18, 17] simplify the scene structures by replacing the surface mesh with point cloud or surfels [35], such that the heavy geometry constructions can be avoid.
+
+On the other hand, many deep learning approaches show strong capability in inpainting [31], refining [36], and even constructing images from only a few indications [34, 2]. Such capabilities can be considered as a complement to IBR, namely neural IBR [20], to overcome the challenging during image synthesize. For examples, the empty regions caused by view change can be compensated through high quality inpainting [48].
+
+Recently, combining advantages of simplified geometry representation and neural capabilities become a new trend, yielding neural rendering methods [4, 7, 20, 20, 33]. It directly learns to render end-to-end, which bypass complicated intermediate representations. Previous work used mostly 3D volume as representation [39]. However, the memory complexity of 3D volume is cubic, and thus these
+
+approaches are not scalable and usually only work for small objects. Recently, there is a trend to build neural rendering pipeline from 3D point cloud, which is more scalable for relatively larger scenes. However, 3D point cloud often contains strong noise due to both depth measurements [46] and camera calibrations [49], which interference the visibility check when projected onto 2D image plane and results in jittering artifacts if a series of images are generated along a given 3D camera trajectory. On the other hand, this type of methods often require a lot of points for a reliable z-buffer check as well as the requirement of full coverage of all camera viewpoints. Even though the memory usage is linear with the number of points, the huge number still cause unaffordable memory and storage. Aliev et al. [1] proposed a neural point-based graphics approach that directly project 3D geometry onto the 2D plane for neural descriptor encoding, which not only ignores the visibility check but also suffers from noise interferences, resulting ghosting artifacts as well as strong temporal jitters.
+
+In this paper, we propose a novel deep point cloud rendering pipeline through multi-plane projection, which is more robust to depth noise and can work with relatively sparse point cloud. In particular, instead of directly projecting features from 3D points onto 2D image domain using perspective geometry [19], we propose to project these features into a layered volume in the camera frustum. By doing so, all the features from points in the camera's field-of-view are maintained, thus useful features are not occluded accidentally by other points due to noisy interferences. The 3D feature volume are then fed into a 3D CNN to produce multiple planes of images, which corresponds to different space depths. The layered images are blended subsequently according to learned weights. In this way, the network can fix the point cloud errors in the 3D space rather than work on projected 2D images where visibility has already lost. In addition, the network can pick information accurately from the projected full feature volume to facilitate the rendering.
+
+Extensive experiments evaluated on the popular dataset, such as ScanNet [8] and Matterport 3D [6], show that our model produces more temporal coherent rendering results comparing to previous methods, especially near the object boundary. Moreover, the system can learn effectively from more points, but still performs reasonably well given relatively sparse point cloud.
+
+To recap, we propose a deep learning based method to render images from point cloud. Our main contributions are summarized as:
+
+- 3D points are projected to a layered volume such that occlusions and noises can be handled appropriately.
+- Not only the rendered single view is superior in terms of image quality, but also the rendered image sequences are temporally more stable.
+
+- Our system works reasonably well with respect to relatively sparse point cloud.
+
+# 2. Related Work
+
+# 2.1. Model-based rendering
+
+Model based rendering requires the construction of 3D models, such as multi-view structure-from-motion for point cloud recovery [19], surface reconstruction and meshing [43]. When performance is preferred, ray tracing [13] is used to simulate the transmission of light in the space, such that can better interact with the environment, e.g., geometry [40], material [10], BRDF [14], lighting [22], and produce more realistic rendering. However, each estimation step is prone to errors, which leads to the render artifacts. Moreover, such methods not only require a lot of knowledge of the scene, but also are notoriously slow.
+
+# 2.2. Image-based rendering
+
+Image based rendering(IBR) [16, 29, 32, 38] aims to produce a novel view from given images through warping [30] and blending [10], which is a computationally efficient approach compared with classical rendering pipeline. Multiple view geometry [19] is applied for camera parameter estimation or some variant that bypasses the 3D reconstruction [40], such as adopting epipolar constraints [15]. Recently, deep learning has been proved to be more effective in replacing the warping and blending of traditional approaches in the IBR pipeline [12, 20]. However, the quality of rendered novel view still depends heavily on the distribution of existing views, sparse samples or large viewpoint drift would produce unsatisfactory results. Adopting light field cameras is one solution to alleviate such problems [26].
+
+# 2.3. Deep image synthesis
+
+Deep methods for 2D image synthesize has achieved very promising results, such as autoencoders [21], PixelCNN [42] and image-to-image translation [24]. The most exciting results are produced based on generative adversarial networks [51, 34]. Most of the generators adopt encoder-decode architecture with skip connections to facilitate feature propagation [37]. However, these approaches cannot be directly applied to the rendering task, as the underlying 3D structures cannot be exploited for 2D image translations.
+
+# 2.4. Neural rendering
+
+Recently, deep learning are used to renovating the rendering [41]. Nvidia [5] uses deep learning to denoise a relatively fast low-quality rendering. More fundamentally, many successes have been achieved by neural rendering that directly learn representation from input and produce desired output, such as DeepVoxel [39] and Neural Point Based Graphics(NPG) [1]. Most of them rely on a 3D volume
+
+
+Figure 2. Overview of our proposed method. Our method is divided into two parts, the multi-plane based voxelization (left) and multi-plane rendering(right). For the first part, point clouds are re-projected into camera coordinate system to form frustum region and voxelization plus aggregation operations are adopted to generate a multi-plane 3D representation, which will be concatenated with normalized view direction and sent to render network. For the second part, the concatenated input is feed into a 3D neural render network to predict the product with 4 channels (i.e. RGB + blend weight) and the final output is generated by blending all planes. The training process is under the supervision of perceptual loss, and both network parameters and point clouds features are optimized according to the gradient.
+
+intermediate representation. The DeepVoxel cannot render large scenes, such as room environment. The most related work is NPG [1]; it also proposes to render images from point cloud, by projecting learned features from points to the 2D image plane according to perspective geometry, and train a 2D CNN to produce the color image. The method learns complete and view-dependent appearance, however, it suffers from visibility verification problem due to directly 3D projection, and is also sensitive to point cloud noises. We project 3D points to a layered 3D volume to overcome such problems.
+
+# 3. Method
+
+# 3.1. Overview
+
+Our deep learning framework receives a point cloud representation of a scene and generates photo-realistic images from an arbitrary camera viewpoint. The overview of the framework is illustrated in Fig. 2. The whole framework consists of two modules: multi-plane based voxelization and multi-plane rendering. The multi-plane based voxelization module divides the 3D space of the camera view frustum into voxels w.r.t. image dimensions and a pre-defined number of depth planes. The voxels then aggregates features of points inside it with geometric rules. The 3D feature volume is then fed into the multi-plane rendering module, which is a 3D CNN, to generate one color image plus a blending weight per plane on the depth dimension of the volume. The final output is a weighted blending of multiplane images. It is worth noting that the point cloud feature representation and the network are jointly optimized in an end-to-end fashion. The remaining part of this section describes details of these two modules.
+
+# 3.2. Learnable point cloud features
+
+Our input is a 3D point cloud representation of the scene. To be sufficient for rendering, each 3D point should contain both position and appearance feature. The position feature is obtained from 3D reconstruction, and one simple way to collect appearance feature is to keep the RGB value from the corresponding image pixel. However, one point may show different RGB intensities when observed from different views due to view-depend effects (e.g., reflection and highlight). To solve this problem, we learn a 8-dimensional vector as the appearance feature jointly with the network parameters. To this end, we update this feature by propagating gradient to the input [1, 41], such that the appearance feature can be automatically learned from data.
+
+Since the object appearance is often view-depend, we further take view direction between camera position and point clouds in 3D space into consideration. Thus, we concatenate the normalized view direction of the point as an additional feature vector to each point, following [1]. Note that this feature is not trainable as the point position.
+
+# 3.3. Multi-plane based voxelization
+
+Layered voxels on camera frustum. The image dimension is denoted as $H \times W$ . With a known camera projection matrix, each pixel is lifted to 3D space to form a frustum with near and far planes specified by the minimum and maximum depth of the projected point cloud. The frustum is further divided into $P$ small ones along the $z$ -axis uniformly as shown in Fig. 3 (a). As a result, we will obtain $P \times H \times W$ frustum voxels.
+
+Feature aggregation The next step is to aggregate feature from the point cloud into the camera frustum volume. Since one frustum voxel may contain multiple 3D points, we need
+
+
+Figure 3. 3D space voxelization and aggregation. (a) Multi-plane voxelization. Point clouds under camera view are restricted into a frustum region specified by the minimum and maximum depth planes, and such region can be uniformly split into small frustum voxels according to image size $(H,W)$ and predefined number of planes $P$ , where $l$ indicates length of frustum. (b) Aggregation. To illustrate, we take one frustum voxel for example. In oredr to aggregate points in one frustum voxel, we calculate two kinds of distance. $D_{1(p,h,w)}^{i}$ is the distance between points and pixel center in parallel direction and $D_{2(p,h,w)}^{i}$ calculates depth difference between points and minimum depth value in this voxel in vertical direction. Further, we can define the blend weight $w_{(p,h,w)}^{i}$ of each point on the basis of these two distance. Finally, the blend weights are applied to aggregate multiple points into a new point.
+
+an efficient and effective way to aggregate features. Aliev et al. [1] propose to take the feature from the point closest to camera along the ray, however, this is not robust against geometry error and may result in temporal jitters or accidentally wrong occlusions. In contrast, we maintain all the features available in the camera frustum thanks to the 3D volume. To achieve sub-voxel performance, we vote each point feature to nearby voxels according to the distance to the voxel center. Specifically, the feature in a voxel with coordinate in volume $(p,h,w)$ is calculated as:
+
+$$
+F _ {(p, h, w)} = \frac {\sum_ {i} w _ {(p , h , w)} ^ {i} \times F _ {(p , h , w)} ^ {i}}{\sum_ {i} w _ {(p , h , w)} ^ {i}}, \tag {1}
+$$
+
+$$
+w _ {(p, h, w)} ^ {i} = \left(1 - D _ {1 (p, h, w)} ^ {i}\right) ^ {a} \times \left(\frac {1}{1 + D _ {2 (p , h , w)} ^ {i}}\right) ^ {b}, \quad (2)
+$$
+
+where $F^i$ is the feature of the $i$ th point in a voxel, and $w_{(p,h,w)}^i$ is the blending weight of point $i$ to voxel $(p,h,w)$ . $D_1 \in (0,1/\sqrt{2})$ is the distance between the point projection on image to the corresponding pixel center of voxel $(p,h,w)$ , and $D_2 \in (0,l)$ is the depth difference between point and minimum depth point in this voxel. Parameters $a$ and $b$ control the blending weight on direction parallel and vertical to the image plane. When $b \to +\infty$ , it turns into Aliev et al. [1] where a point is picked via z-buffer. The mo
+
+tivation of Eq. 2 is to assign larger weights to points closer to camera or pixel center. We found it work well empirically. Other formulations reflecting similar property could also work properly.
+
+# 3.4. Multi-plane rendering
+
+We adopt the U-Net-like [37] 3D convolutional neural network as the back-bone network. The 3D convolution effectively exploits information from neighboring pixel and depth, which naturally handle projection error caused by geometry noise. In addition to that we also adopt dilated convolution in the last layer of encoder (left part of U-Net) to capture more image context. As the output of our network, we predict multi-plane RGB images plus their blending weights. The final output image $I$ is obtained by
+
+$$
+I = \sum_ {p} I _ {p} \cdot \alpha_ {p}, \tag {3}
+$$
+
+where $p$ indicates a plane, and $I_{p}$ and $\alpha_{p}$ are the corresponding plane predictions. Please refer to supplementary material for more details of the network architecture.
+
+# 3.5. Loss function
+
+To measure the difference between network prediction and the ground truth image, we use perceptual loss [7, 25], which we found practically works better than other common candidates, e.g. $\ell_1$ , $\ell_2$ , SSIM. In particular, we use feature vector from 'input', 'conv1-2', 'conv2-2', 'conv3-2', 'conv4-2', 'conv5-2' layers from a VGG-19 pre-trained on ImageNet dataset [11]. The perceptual loss is defined as a weighted sum of the $\ell_1$ loss on each feature maps. Specifically, the loss function is defined as follows:
+
+$$
+L \left(P _ {f}, \theta\right) = \sum_ {l} \lambda_ {l} \| \Phi_ {l} \left(I _ {g}\right) - \Phi_ {l} \left(f \left(P _ {f}; \theta\right)\right) \| _ {1}, \tag {4}
+$$
+
+where $P_{f}$ represents point features, $I_{g}$ is ground-truth image, $\theta$ is network parameters, $f$ is our point cloud renderer, $\phi_{l}$ is a set of VGG-19 layers and $\lambda_{l}$ is weight used to balance different layers.
+
+# 3.6. Feature optimization.
+
+Inspired by Thies et al. [41] and Aliev et al. [1], the appearance feature on each point can be updated via backpropagation. Note that the aggregated voxel features are a weighted combination of point features, and thus gradient on the point feature using the chain rule is $-l_{r} \times w_{(p,h,w)}^{i} \times g_{(p,h,w)}$ . where $g_{(p,h,w)}$ is gradient derived from the loss function and $l_{r}$ indicates the learning rate.
+
+# 4. Experiments
+
+We evaluate our framework on various datasets and show qualitative and quantitative results. Particularly, we test the system robustness against noise in data that heavily degrades performance of previous methods.
+
+# 4.1. Datasets.
+
+ScanNet [8] contains RGBD scans of indoor environments. We follow the training and testing split of Aliev et al. [1]. In particular, one frame is picked from every 100 frames for testing (e.g., frame 100, 200, 300...). The rest of frames are used for training. To avoid including frames that are too similar to the training set, the neighbors (with in 20 frames) of every testing frame are removed from training. Regarding the scene point cloud, we randomly lift $15\%$ pixels from the depth map into the 3D space to create a point cloud, which contains around 50 million points per scene. We then simplify it using volumetric sampling, leading to 8.9 million points per scene in average.
+
+Matterport 3D [6] contains RGBD panoramas captured at multiple locations in indoor scenes. Each panorama is composed of 18 regular RGBD images viewing toward different directions. For each scene, we randomly pick 1/100 of the views for testing and leave the others for training. Note that overall this dataset is more challenging due to the sparse point cloud and large variation of camera viewpoints.
+
+# 4.2. Data preparation and training details
+
+For each scene, our network is trained for 21 epochs over 1,925 images on average, using Adam optimizer [27]. During training, $l_{r}$ is initialized as 0.01, which will be decreased every 7 epochs, and the learning rate decreasing follows $0.01 \rightarrow 0.005 \rightarrow 0.001$ . $(P, H, W)$ are set to (32,480,640) for ScanNet dataset and (32,512,640) for Matterport 3D dataset according to the image resolution provided by the datasets. Point feature dimension is set as 11 and initialized as 0.5 (5 dimensions) + RGB (3 dimensions) + viewpoint direction (3 dimensions), note that only the first 8 dimensions will be updated. The hyperparameters $a, b$ in Eq. 2 are set to 1, and $\lambda_{l}$ in Eq. 4 following Chen et al. [7]. The training process is accomplished on one GeForce 1080 Ti, which takes on average 41.5 hours per scene.
+
+# 4.3. Rendering results
+
+We first compare our method to two competitors, Neural Point-based Graphic(NPG) [1] and Pix2Pix [24]. Specifically, NPG is a deep rendering approach that project 3D point features onto 2D image planes via a z-buffer and run 2D convolutions for neural rendering. They adopt U-Net like structure with gate convolution [48]. Since the authors of [1] did not release the code, we implemented their method and achieved similar performance on the same testing cases. The Pix2Pix is an image to image translation framework [24]. The network takes projected colored point cloud and is trained to produce the ground truth. Compared to NPG, this baseline does not save a feature per point.
+
+
+(a) Direct Render
+
+
+(b) Our results
+
+
+
+Figure 4. Advantage of neural descriptor. (a) displays results generated by directly rendering. (b) Ours results using neural descriptor. Without the assistant of neural descriptor, the final point clouds rendering results are blurry. Please zoom in for details.
+
+# 4.3.1 Quantitative comparisons
+
+We use standard metric, Peak Signal-to-Noise Ratio (PSNR) and Structural Similarity Index (SSIM), to measure the rendering quality. Since these two metrics may not necessarily reflect the visual quality, we also adopt a human perception metric, Learned Perceptual Image Patch Similarity (LPIPS) [50]. Table 1 reports the comparison on two datasets. Our method is significantly better than Pix2Pix on both dataset with a large improvement margin on all the metrics. When compared to NPG, our method outperforms on Matterport3D, and is comparable on ScanNet, where NPG achieves better PSNR and SSIM, while our LPIPS is higher. Some examples from both datasets are shown in Fig 5. Note that it has been mentioned in their own paper that NPG is optimized for pixel-wise color accuracy at the cost of sacrificing the temporal consistency. In contrast, our result is free such jittering, especially obvious at depth boundaries. Please refer to the supplementary video for visual comparisons.
+
+Direct render To verify if learning point cloud feature is necessary. We train our model taking only the point RGB value as the feature, which is referred to as 'direct render'. The results are displayed in Fig. 4. As seen, the direct render without point feature is more blurry (e.g., the sofa) and lack of specular components (e.g., the ball). This indicates that point feature helps to encode material related information and support view-dependent components. We also report the quantitative numbers in Table 1 as 'Ours+direct render'. It is observed that ours with learnt features outperforms the direct render approach on all metrics.
+
+| Datasets | ScanNet [8] | Matterport 3D [6] |
| Methods | PSNR↑ | SSIM↑ | LPIPS↓ | PSNR↑ | SSIM↑ | LPIPS↓ |
| pix2pix [24] | 19.247 | 0.731 | 0.429 | 14.964 | 0.530 | 0.675 |
| Neural point based graphic [1] | 22.911 | 0.840 | 0.245 | 17.931 | 0.622 | 0.597 |
| Ours + direct render | 22.259 | 0.818 | 0.290 | 17.833 | 0.601 | 0.610 |
| Ours | 22.813 | 0.835 | 0.234 | 18.09 | 0.649 | 0.534 |
+
+Table 1. PSNR, SSIM and LPIPS values on ScanNet and Matterport 3D datasets.
+
+
+Figure 5. Rendering quality on ScanNet and matterport 3D datasets. We compare our proposed method with pix2pix and neural point based graphic on two indoor scene datasets. By analyzing the generated image in novel view, our proposed method achieves better performance. Please zoom in for details.
+
+# 4.3.2 Qualitative comparisons
+
+Figure 5 shows some visual comparisons of our method with NPG and Pix2Pix on ScanNet and Matterport 3D datasets. The first two rows show two scenes of ScanNet while the third and forth rows show two scenes of Matterport 3D. Fig. 5 (a) shows point cloud. The point cloud is noisy and incomplete. Fig 5 (b) shows the result of NPG. For its ScanNet results, we notice some incorrect places, e.g., black stripe on the tabletop screen of first scene, and missing details of shelf of second scene (Please zoom in for
+
+details). For its Matterport results, the missing of details become more serious, e.g. the floor textures is missing in the forth example. Fig 5 (c) shows the result of pix2pix. It generates strange curves for ScanNet while introduce weird textures for Matteport result. Fig 5 (d) shows our results. As seen, our result is free from such problems.
+
+# 4.4. Robustness and stability
+
+Robustness to noise point cloud In practice, the point cloud are usually noisy, and the rendering model needs to tolerate such noises to produce robust results. When objects
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+(a) Point clouds
+
+
+
+
+(b) pix2pix
+
+
+(c) NPG
+
+
+(d) Our results
+
+
+(e) Ground truth
+
+
+Figure 6. Restore adversely occluded objects. (a) Noisy point clouds with objects adversely occluded. (b) pix2pix method. (c) Results generated through neural point based graphic method [1] from 2D point clouds images. Can't efficiently restore occluded objects. (d) Our results generated from 3D neural render. Restore adversely occluded objects. (e) Ground truth.
+(a) SSIM
+Figure 7. SSIM and PSNR trend when point clouds density decreased.
+
+
+(b) PSNR
+
+are close to each other, noisy depth may result in wrong z-buffer such that the correct points are occluded. This is especially harmful for methods that rely on 2D projection of the point cloud, such as NPG and Pix2Pix. In contrast, our method maintains all related point features in the camera frustum volume and allows network to infer correctly. Fig. 6 shows two comparisons on cases with noisy depth. NPG and Pix2Pix either completely miss the correct objects or produce a mixture of foreground and background.
+
+Robustness to varying densities Theoretically, our method can support arbitrarily large scene since the point features can be stored on hard drive. However for efficient rendering, it is more desirable to keep point features in memory and render from relatively sparse point cloud to save both the memory and the computational cost for point projection. Unfortunately, sparse point cloud may result in in-complete z-buffer such that the occluded background shows up in the image. NPG proposes to assign each point
+
+a square size during the projection according to its depth to mitigate this issue, but may not be sufficient. Fig. 8 shows a qualitative comparison to NPG on the same scene with different point density. With less points, NPG reveals more background due to incomplete z-buffer, while our method still maintain the chair. Fig. 7 further shows the quantitative comparison. As seen, while both methods perform worse with fewer points, the metrics of our method drops relatives slower, which means using camera frustum is more robust against the varying point density.
+
+Temporal consistency 3D camera frustum also helps to improve the temporal consistency. 2D projection based methods may project very different points for the same 3D location to very close camera viewpoints. This is because the order of the points in the z-buffer may dramatically change between slightly different camera views. Consequently, the rendering of the same 3D location may use features from different points and thus cause jittering artifacts.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+(a) 6M
+
+
+(b) 3M
+
+
+(c) $1.5\mathrm{M}$
+
+We perform a user study to compare the temporal consistency against NPG, Pix2Pix and direct render. We render 4 videos of 4 different scenes with respect to each method. During user study, each time, we present 4 videos of 4 approaches and ask the subject to pick the best one. As we have 4 scenes, a user will pick 4 times. 20 users are invited, accumulating to 80 picks in total. The participants are required to only judge the temporal consistency. Statistical results are shown in Fig. 9. Our method received 61 picks, which indicates our video is apparently better than other methods in terms of temporal consistency. Please refer to the supplementary files for these videos.
+
+# 5. Conclusion
+
+In this work, we have proposed a method which synthesizes novel view images from 3D point clouds. Instead of directly project features from 3D points onto 2D image domain, we projected these features into a layered volume of camera frustum, such that the visibility of 3D points can be naturally maintained. Through experiments, our method is robust to point clouds noise and generates flicker-less videos. In the future, we will explore novel view synthesis from point clouds in multiple views. Optical flow can be
+
+
+Figure 8. Different sparsity of point clouds. The number of point clouds varies from column to column, and different row shows results generated from different method. By analysis, our method can work at relatively sparse point clouds.
+Figure 9. The user study result on preference for videos synthesized by different methods (i.e. ours, NPG, direct render and pix2pix.)
+
+utilized for enforcing temporal consistency given additional observations. Flickers can be removed by enforcing constraints on similar predictions from shared points. In addition, applying interpolation in different depth planes could further improve the robustness against sparse point clouds. Acknowledgement: This research was supported in part by National Natural Science Foundation of China (NSFC, No.61872067, No.61720106004), in part by Research Programs of Science and Technology in Sichuan Province (No.2019YFH0016).
+
+# References
+
+[1] Kara-Ali Aliev, Dmitry Ulyanov, and Victor Lempitsky. Neural point-based graphics. arXiv preprint arXiv:1906.08240, 2019. 2, 3, 4, 5, 6, 7
+[2] David Bau, Hendrik Strobelt, William Peebles, Jonas Wulff, Bolei Zhou, Jun-Yan Zhu, and Antonio Torralba. Semantic photo manipulation with a generative image prior. ACM Trans. Graphics, 38(4):59, 2019. 1
+[3] James F Blinn. Simulation of wrinkled surfaces. In ACM SIGGRAPH computer graphics, volume 12, pages 286-292, 1978. 1
+[4] Giang Bui, Truc Le, Brittany Morago, and Ye Duan. Point-based rendering enhancement via deep learning. The Visual Computer, 34(6-8):829-841, 2018. 1
+[5] Chakravarty R, Alla Chaitanya, Anton S, Kaplanyan, Christoph Schied, Marco Salvi, Aaron Lefohn, Derek Nowrouzezahrai, and Timo Aila. Interactive reconstruction of monte carlo image sequences using a recurrent denoising autoencoder. ACM Trans. Graphics, 36(4):98, 2017. 2
+[6] Angel Chang, Angela Dai, Thomas Funkhouser, Maciej Halber, Matthias Niessner, Manolis Savva, Shuran Song, Andy Zeng, and Yinda Zhang. Matterport3d: Learning from rgb-d data in indoor environments. arXiv preprint arXiv:1709.06158, 2017. 2, 5, 6
+[7] Anpei Chen, Minye Wu, Yingliang Zhang, Nianyi Li, Jie Lu, Shenghua Gao, and Jingyi Yu. Deep surface light fields. Proc. of Computer Graphics and Interactive Techniques, 1(1):14, 2018. 1, 4, 5
+[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 Proc. CVPR, pages 5828-5839, 2017. 2, 5, 6
+[9] Angela Dai, Matthias Nießner, Michael Zollhöfer, Shahram Izadi, and Christian Theobalt. Bundlefusion: Real-time globally consistent 3d reconstruction using on-the-fly surface reintegration. ACM Trans. Graphics, 36(3):24, 2017. 1
+[10] Paul Debevec, Yizhou Yu, and George Borshukov. Efficient view-dependent image-based rendering with projective texture-mapping. In Rendering Techniques, pages 105-116. 1998. 2
+[11] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In Proc. CVPR, pages 248-255. IEEE, 2009. 4
+[12] John Flynn, Ivan Neulander, James Philbin, and Noah Snavely. Deepstereo: Learning to predict new views from the world's imagery. In Proc. CVPR, pages 5515-5524, 2016. 2
+[13] Andrew S Glassner. An introduction to ray tracing. Elsevier, 1989. 1, 2
+[14] Dan B Goldman, Brian Curless, Aaron Hertzmann, and Steven M Seitz. Shape and spatially-varying brdfs from photometric stereo. IEEE Trans. on Pattern Analysis and Machine Intelligence, 32(6):1060-1071, 2009. 2
+[15] Amit Goldstein and Raanan Fattal. Video stabilization using epipolar geometry. ACM Trans. Graphics, 31(5):126, 2012. 2
+
+[16] Steven J Gortler, Radek Grzeszcuk, Richard Szeliski, and Michael F Cohen. The lumigraph. In Proc. ACM SIGGRAPH, volume 96, pages 43-54, 1996. 1, 2
+[17] Markus Gross and Hanspeter Pfister. Point-based graphics. Elsevier, 2011. 1
+[18] Jeffrey P Grossman and William J Dally. Point sample rendering. In Rendering techniques' 98, pages 181-192. 1998.
+[19] Richard Hartley and Andrew Zisserman. Multiple view geometry in computer vision. Cambridge university press, 2003. 2
+[20] Peter Hedman, Julien Philip, True Price, Jan-Michael Frahm, George Drettakis, and Gabriel Brostow. Deep blending for free-viewpoint image-based rendering. In SIGGRAPH Asia 2018 Technical Papers, page 257, 2018. 1, 2
+[21] Geoffrey E Hinton and Ruslan R Salakhutdinov. Reducing the dimensionality of data with neural networks. science, 313(5786):504-507, 2006. 2
+[22] Yannick Hold-Geoffroy, Kalyan Sunkavalli, Sunil Hadap, Emiliano Gambaretto, and Jean-François Lalonde. Deep outdoor illumination estimation. In Proc. CVPR, pages 7312-7321, 2017. 2
+[23] Satoshi Iizuka, Edgar Simo-Serra, and Hiroshi Ishikawa. Globally and locally consistent image completion. ACM Trans. Graphics, 36(4):107, 2017. 1
+[24] Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. In Proc. CVPR, pages 1125-1134, 2017. 2, 5, 6
+[25] Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. In Proc. ECCV, pages 694-711, 2016. 4
+[26] Nima Khademi Kalantari, Ting-Chun Wang, and Ravi Ramamoorthi. Learning-based view synthesis for light field cameras. ACM Trans. Graphics, 35(6):193, 2016. 2
+[27] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.5
+[28] Leif Kobbelt and Mario Botsch. A survey of point-based techniques in computer graphics. Computers & Graphics, 28(6):801-814, 2004. 1
+[29] Marc Levoy and Pat Hanrahan. Light field rendering. In Proc. of conference on Computer graphics and interactive techniques, pages 31-42, 1996. 1, 2
+[30] Feng Liu, Michael Gleicher, Hailin Jin, and Aseem Agarwala. Content-preserving warps for 3d video stabilization. In ACM Trans. Graphics, volume 28, page 44, 2009. 1, 2
+[31] 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 Proc. ECCV, pages 85-100, 2018. 1
+[32] Leonard McMillan and Gary Bishop. Plenoptic modeling: An image-based rendering system. In Proc. of conference on Computer graphics and interactive techniques, pages 39-46, 1995. 1, 2
+[33] Oliver Nalbach, Elena Arabadzhiyska, Dushyant Mehta, H-P Seidel, and Tobias Ritschel. Deep shading: convolutional
+
+neural networks for screen space shading. In Computer Graphics Forum, volume 36, pages 65-78, 2017. 1
+[34] Taesung Park, Ming-Yu Liu, Ting-Chun Wang, and Jun-Yan Zhu. Semantic image synthesis with spatially-adaptive normalization. In Proc. CVPR, pages 2337-2346, 2019. 1, 2
+[35] Hanspeter Pfister, Matthias Zwicker, Jeroen Van Baar, and Markus Gross. Surfels: Surface elements as rendering primitives. In Proceedings of the 27th annual conference on Computer graphics and interactive techniques, pages 335-342, 2000. 1
+[36] Jiaxiong Qiu, Zhaopeng Cui, Yinda Zhang, Xingdi Zhang, Shuaicheng Liu, Bing Zeng, and Marc Pollefeys. Deep lidar: Deep surface normal guided depth prediction for outdoor scene from sparse lidar data and single color image. In Proc. CVPR, pages 3313-3322, 2019. 1
+[37] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In International Conference on Medical image computing and computer-assisted intervention, pages 234-241, 2015. 2, 4
+[38] Steven M Seitz and Charles R Dyer. View morphing. In Proc. of conference on Computer graphics and interactive techniques, pages 21-30, 1996. 2
+[39] Vincent Sitzmann, Justus Thies, Felix Heide, Matthias Nießner, Gordon Wetzstein, and Michael Zollhofer. Deepvoxels: Learning persistent 3d feature embeddings. In Proc. CVPR, pages 2437-2446, 2019. 1, 2
+[40] Noah Snavely, Steven M Seitz, and Richard Szeliski. Photo tourism: exploring photo collections in 3d. In ACM Trans. Graphics, volume 25, pages 835-846, 2006. 2
+[41] Justus Thies, Michael Zollhöfer, and Matthias Nießner. Deferred neural rendering: Image synthesis using neural textures. arXiv preprint arXiv:1904.12356, 2019. 2, 3, 4
+[42] Aaron Van den Oord, Nal Kalchbrenner, Lasse Espeholt, Oriol Vinyals, Alex Graves, et al. Conditional image generation with pixelCNN decoders. In Proc. NIPS, pages 4790-4798, 2016. 2
+[43] Nanyang Wang, Yinda Zhang, Zhuwen Li, Yanwei Fu, Wei Liu, and Yu-Gang Jiang. Pixel2mesh: Generating 3d mesh models from single rgb images. In Proc. ECCV, pages 52-67, 2018. 2
+[44] Oliver Wang, Prabath Gunawardane, Steve Scher, and James Davis. Material classification using brdf slices. In Proc. CVPR, pages 2805-2811, 2009. 1
+[45] Gregory J Ward. The radiance lighting simulation and rendering system. In Proceedings of the 21st annual conference on Computer graphics and interactive techniques, pages 459-472. ACM, 1994. 1
+[46] 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 International Conference on 3D Vision (3DV), pages 118-127, 2016. 2
+[47] Daniel N Wood, Daniel I Azuma, Ken Aldinger, Brian Curless, Tom Duchamp, David H Salesin, and Werner Stuetzle. Surface light fields for 3d photography. In Proc. conference on Computer graphics and interactive techniques, pages 287-296, 2000. 1
+
+[48] Jiahui Yu, Zhe Lin, Jamei Yang, Xiaohui Shen, Xin Lu, and Thomas S Huang. Free-form image inpainting with gated convolution. In Proc. CVPR, pages 4471-4480, 2019. 1, 5
+[49] Cha Zhang and Zhengyou Zhang. Calibration between depth and color sensors for commodity depth cameras. In Computer vision and machine learning with RGB-D sensors, pages 47-64. 2014. 2
+[50] Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proc. CVPR, pages 586-595, 2018. 5
+[51] Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In Proc. CVPR, pages 2223-2232, 2017. 2
\ No newline at end of file
diff --git a/neuralpointcloudrenderingviamultiplaneprojection/images.zip b/neuralpointcloudrenderingviamultiplaneprojection/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..f116c41c6c3a6f353fdd18f7618c3c68f0bb890e
--- /dev/null
+++ b/neuralpointcloudrenderingviamultiplaneprojection/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ffe6abcc280e863cfd73f56e0a35dcd80d00672e848a83289757a0b61b08834e
+size 700322
diff --git a/neuralpointcloudrenderingviamultiplaneprojection/layout.json b/neuralpointcloudrenderingviamultiplaneprojection/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..6d3bc0a51f20535e516b80b60fc7fca54e512aae
--- /dev/null
+++ b/neuralpointcloudrenderingviamultiplaneprojection/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4792eb57ab381ff3438ad4a26484473514ea38c3f3e61d0965a86e77946e1288
+size 366815
diff --git a/neuralposetransferbyspatiallyadaptiveinstancenormalization/8d444398-e17e-4b00-8c47-e794a0dd92e4_content_list.json b/neuralposetransferbyspatiallyadaptiveinstancenormalization/8d444398-e17e-4b00-8c47-e794a0dd92e4_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..4f46f309860b672373831be84784583c410cfdf6
--- /dev/null
+++ b/neuralposetransferbyspatiallyadaptiveinstancenormalization/8d444398-e17e-4b00-8c47-e794a0dd92e4_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ba7f25bea61276a731a8e78b5b86faaeed11e54dba55ec96d15cb29fb3e51a25
+size 60755
diff --git a/neuralposetransferbyspatiallyadaptiveinstancenormalization/8d444398-e17e-4b00-8c47-e794a0dd92e4_model.json b/neuralposetransferbyspatiallyadaptiveinstancenormalization/8d444398-e17e-4b00-8c47-e794a0dd92e4_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..eabb9871588cd752e884acdb50c136e9ac455bdb
--- /dev/null
+++ b/neuralposetransferbyspatiallyadaptiveinstancenormalization/8d444398-e17e-4b00-8c47-e794a0dd92e4_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2344fbe4f1f0a45a558e3f0d41314eb0eedd036595066ff8acc7e2564c86754a
+size 74979
diff --git a/neuralposetransferbyspatiallyadaptiveinstancenormalization/8d444398-e17e-4b00-8c47-e794a0dd92e4_origin.pdf b/neuralposetransferbyspatiallyadaptiveinstancenormalization/8d444398-e17e-4b00-8c47-e794a0dd92e4_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..aedd407ae0ec2337341289ecf6eeb5d2dcac21d9
--- /dev/null
+++ b/neuralposetransferbyspatiallyadaptiveinstancenormalization/8d444398-e17e-4b00-8c47-e794a0dd92e4_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1757be61b6f44922c8d3fced16d4d772496baf49bd225bc8637a70014b204905
+size 2855574
diff --git a/neuralposetransferbyspatiallyadaptiveinstancenormalization/full.md b/neuralposetransferbyspatiallyadaptiveinstancenormalization/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..02e132d7d729cecbf9ef04e51b0d9d7770df0da0
--- /dev/null
+++ b/neuralposetransferbyspatiallyadaptiveinstancenormalization/full.md
@@ -0,0 +1,264 @@
+# Neural Pose Transfer by Spatially Adaptive Instance Normalization
+
+Jiashun Wang $^{1*‡}$ Chao Wen $^{1*§}$ Yanwei Fu $^{1†‡}$ Haitao Lin $^{1}$ Tianyun Zou $^{1}$ Xiangyang Xue $^{1}$ Yinda Zhang $^{2†}$
+
+
+Figure 1: Four groups of pose transfer examples. Each visualization group consists of 3 meshes, input pose mesh, input identity mesh, and our result. For the first two groups, we show the pose mesh from SMPL [16], the identity mesh from FAUST [4] and our result, the identity mesh of the third group is from MG-dataset[3], the last group shows our pose transfer result from the animal dataset [24], please refer to supplementary materials for more details.
+
+# Abstract
+
+Pose transfer has been studied for decades, in which the pose of a source mesh is applied to a target mesh. Particularly in this paper, we are interested in transferring the pose of source human mesh to deform the target human mesh, while the source and target meshes may have different identity information. Traditional studies assume that the paired source and target meshes are existed with the point-wise correspondences of user annotated landmarks/mesh points, which requires heavy labelling efforts. On the other hand, the generalization ability of deep models is limited, when the source and target meshes have different identities. To break this limitation, we proposes the first neural pose transfer model that solves the
+
+pose transfer via the latest technique for image style transfer, leveraging the newly proposed component - spatially adaptive instance normalization. Our model does not require any correspondences between the source and target meshes. Extensive experiments show that the proposed model can effectively transfer deformation from source to target meshes, and has good generalization ability to deal with unseen identities or poses of meshes. Code is available at https://github.com/jiashunwang/Neural-Pose-Transfer.
+
+# 1. Introduction
+
+Deformation transfer has been drawing consistent attention over decades and is enabling many applications. For example, one can easily transfer the pose from the mesh of one person to another in the games and movies. However, It is very challenging when there is a huge "shape gap" given very different identities of source and target meshes, as illustrated in Fig. 1. To make this feasible, previous works demand re-enforcing the correspondence between source and target meshes, additional information, such as point-wise
+
+correspondence [24], an auxiliary mesh [26], human key point annotations [2], skeleton pose [5], dense correspondence [10], and so on. Unfortunately, it is non-trivial, and time-consuming to obtain such additional inputs for deformation transfer.
+
+In this work, we propose a deep learning model for human pose transfer, which transfers the pose from a source mesh to a target identity mesh, as shown in Fig. 2. Our model does not rely on any extra auxiliary inputs that implicitly or explicitly build correspondence, and can work for source and target mesh with vertices in random and different order. These flexibilities make our model very convenient to use in practice and can directly work on identity mesh obtained from arbitrary sources, which however are extremely challenging to be achieved by the framework of existing deformation based approaches. As the output, our model produces a human mesh with the identity from the target mesh and the pose from the source mesh.
+
+Essentially, our key idea is to re-purpose style transfer techniques, which is widely used in image analysis for the deformation transfer problem. Our model takes the identity information of the target mesh as a "style" and transfer it to the source mesh to achieve a pose transfer. Rather than explicitly learn to deform the target meshes from source meshes, we stack several convolutional layers to gradually encode the pose information from source meshes, and then decode it back to the desired output under the guide of the features learned from the target mesh. Inspired by the great success of Spatially Adaptive Instance Normalization layers (SPAdaIN) [12] for 2D image style transfer, we introduce it to 3D domain to process the point clouds together with PointNet-like network architecture [22].
+
+In SPAdaIN for 2D image style transfer, an affine transformation is learned from each pixel in the target image ("style") and applied to the instance normalized feature of the corresponding pixel in the source image ("content"). We design our model by making an analogy between the image pixel and the mesh vertex. In particular, we first learn a feature vector for each vertex in the source mesh ("pose") and transform them using an affine transformation learned from a vertex in the target mesh ("identity"). However, this would not work naively, since the correspondence between source and target is unknown. To make the feature on the source mesh invariant to the vertex order permutation, the convolutional filters of $1 \times 1$ are utilized to each individual point and an instance normalization (among all the points) is appended to exchange context global-wise. The learned features can then be associated with the target mesh vertices in arbitrary permutation for style transfer. We found this model effectively transfers the unseen identity onto the source pose mesh and produces much more accurate human shape than the state-of-the-art approaches which even requires the additional auxiliary inputs.
+
+
+Figure 2: Pose is transferred from source to the target mesh. Different from traditional methods, we only require the pose and identity mesh but not any extra input.
+
+Contributions. The contributions of this paper are summarized as follows. To the best of our knowledge, we propose the first end-to-end deep learning model that deforms an identity mesh with the pose from another mesh, even though the identity mesh is unseen and with more fine-grained geometry details. Our model does not require any additional auxiliary mesh or extra knowledge to bridge the huge visual gap between source and target meshes. Our model is also convenient to use in practice since the pose and identity mesh can come with different vertices order. Moreover, our model is robust to pose mesh geometry noise. Extensive experiments verify that our model is capable of inferring and transferring the poses from source to target meshes, and the result is invariant to the mesh vertex order between source and target meshes.
+
+# 2. Related Works
+
+Deformation transfer. Deformation transfer aims to produce a new 3D shape given a pair of source and target shapes as well as a deformed source shape, making the target shape do the same deformation (Fig. 2). However, some traditional methods based on skinning skeleton animation [14] require additional manual adjustment. Alternatively, many works leverage affine transformations to generate target shapes [24, 26, 27]. Sumner et al. [24] transfer deformation gradients, but requires corresponding landmarks to handle the differences between shapes. Baran et al. [1] assume semantic relationships between the poses of two characters. However, the requirement of semantic similarity pairs limits the usability of this approach. Ben et al. [2] deform to target shapes with the help of a set of control cages. Chu et al. [5] proposed to use a few examples to generate natural results. Even with impressive success, the reliance on auxiliary data makes it difficult to automatically transfer pose for graphics-based methods. To address this, Gao et al. [9] proposed VC-GAN, using cycle consis
+
+tency to achieve the deformation transfer. But this approach also raises another problem, losing versatility due to overreliance on training data. Whenever dealing with new identities, it needs to gather training data and retrain the model.
+
+Deep learning for non-rigid shape representation. [25, 15] proposed mesh variational autoencoder to learn mesh embedding for shape synthesis. However, they merely use the fully-connected layer which will consume a large amount of computing resources. [8] using mesh convolution to capture the triangle faces feature of 3D mesh. Although their methods use spatial and structural information, the features represented by faces are not suitable for our task. Qi et al. proposed PointNet [22] to extract features from unorganized points cloud, but the missing edge information will result in deformed 3D shape with outliers. Therefore, we use mesh as the representation of 3D shape, but use shared weights convolution layers as the network structure of encoder.
+
+Conditional normalization and style transfer. Several conditional normalization methods have been proposed [7, 6, 12, 23]. At first, they are used in style transfer and then for other vision tasks [13, 18, 20, 17, 28, 21]. External data is needed in these works. After normalizing the mean and bias of the activation layer, through using these external data they learn the affine transformation parameters to denormalize the activation layer. Park et al. [19] proposes a similar idea to help with the image synthesis but from a spatial way using the spatially-varying semantic mask. This inspires us to apply spatial 3D mesh as external data to generate our expected mesh. Since the 3d coordinates of the point which spatially and naturally are one of the most important representations of 3D data, the idea of using conditional normalization directly in the spatial sense is very intuitive and the results from the experiments demonstrate the effectiveness of this method.
+
+SPAdaIN vs. other Conditional normalization. Particularly, we emphasize the difference that: (1) Compare to SPADE [19], we using instance normalization. Since each instance may have different features to guide the transfer, normalize the activation of the network in channel-wise is not reasonable. So, we normalize the spatially-variant parameters instance-wise, which is more suitable for the neural pose transfer task. (2) Compare to CIN [7], our normalization parameter vectors are not selected from a fixed set of identities or pose, the corresponding parameters $\gamma$ and $\beta$ are adaptively learned, therefore, their approach cannot adapt to new identities or pose without re-training. Also, their parameters are aggregated across spatial axes; thus they may lose some detailed feature in particular spatial positions. (3) AdaIN [12] is also not suitable for pose transfer. Though AdaIN can handle arbitrary new identities or pose as guidance, there are no learnable parameters in AdaIN. Due to
+
+
+Figure 3: Influence of different parameters on 3D human mesh model. Each row represents the change of the mesh when changing one parameter from $\alpha, \beta, \theta$ . $\alpha$ controls the mesh identity, $\beta$ controls the mesh pose and $\theta$ indicates the vertices order. The mesh color of last row encodes the mesh vertex index.
+
+the lake of learnable parameters, when adopting AdaIN as normalization, the network will tend to imitate the shape of $M$ rather than use it as a condition to produce new posture.
+
+# 3. Methods
+
+In this section, we introduce our deep learning model for human pose transfer (Fig. 4). Our model is highly inspired by image style transfer. Taking the source mesh carrying the pose, our model produces a feature for each vertex encoding both local details and global context. The pervertex features are then concatenated with the vertex locations in the target mesh providing identity, which is fed into the style transfer decoder consists of SPAdaIn ResBlocks. Throughout the decoder, each feature produces one vertex in the output mesh under the guide of a vertex from the target mesh. The final output mesh inherits the pose from the source mesh and the identity from the target. The mesh vertex order is consistent with the identity mesh.
+
+# 3.1. Problem Definition
+
+We represent 3D human mesh by $M(\alpha, \beta, \theta)$ . As shown in Fig. 3, $\alpha$ denotes the parameters of mesh identity, which
+
+
+Figure 4: Network Architecture. The blue part is permutation invariant encoder, and the yellow part is SPAdaIN guided decoder. Given $M_{id}$ and $M_{pose}$ as input, we produce mesh transferred to new posture. The symbol $\odot$ denotes the operation of concatenation.
+
+
+(a)
+
+
+(b)
+Figure 5: Detailed Network Component Architecture. SPAdaIN and (c) Architecture of SPAdaIN ResBlock.
+(a) Architecture of Pose Feature Extractor, (b) Architecture of
+
+
+(c)
+
+controls the mesh shape, $\beta$ represents different human posture, $\theta$ indicates the vertices order. Given two meshes $M_{id} = M(\alpha_1,\beta_1,\theta_1)$ and $M_{pose} = M(\alpha_2,\beta_2,\theta_2)$ , our goal is to transfer the pose to the identity mesh by producing output mesh $M_{output} = \widehat{M} (\alpha_1,\beta_2,\theta_1)$ .
+
+# 3.2. Permutation Invariant Pose Feature Extractor
+
+We first introduce our pose feature extractor $\mathbf{E}$ . The encoder aims to extract the feature $F_{\text{pose}}$ for the orderless input mesh vertices. The encoder $\mathbf{E}$ takes $M_{\text{pose}}$ vertices coordinates through pose feature extractor as illustrated in Fig. 5 (a). The pose feature extractor consists of 3 stacked $1 \times 1$ convolution and InstanceNorm layers, all activation functions applied for convolution layers are ReLU. Then the encoder concatenates pose features with the vertices coordinates of template identity mesh $M_{id}$ to produce latent embedding $Z = F_{\text{pose}} \odot M_{id}$ eventually ( $\odot$ denotes concatenation). One architecture choice needs to be discussed is why $F_{\text{pose}}$ are tensors rather than global vectors. Since the vertex orders of different training data are not consistent, and normalization is essential to aggregate the global context, InstanceNorm (IN) is the only choice to normalize the features. However, if $\mathbf{E}$ encodes pose feature as a global vector and then attaching it to $M_{id}$ , calculating IN will lead the pose features to be normalized to zero. So we
+
+prefer to learn the pose feature with the same spatial size as $M_{id}$ . In principle, this will allow the whole pipeline to preserve spatial information and be free from the requirement of point-wise correspondence between $M_{id}$ and $M_{pose}$ .
+
+# 3.3. Style Transfer Decoder
+
+In this section, we introduce our novel condition normalization layer SPAdaIN first. Then we describe the decoder architecture build upon SPAdaIN ResBlock.
+
+SPAdaIN. Extending previous style transfer works [7, 12, 19], we propose spatially conditional normalization to generate the 3D human shape applied to pose transfer tasks while keeping the identity of meshes. In particular, SPAdaIN is a generalization of [12, 19] to deal with points. Similar to IN, the activation is normalized across the spatial dimensions independently for each channel and instance, and then modulated with learned scale $\gamma$ and bias $\beta$ . Note that, here we assume that in the $i$ -th layer, $M$ is the 3D model providing identity, $V^i$ is the number of 3D shape vertices in this layer, $C^i$ is the number of feature channel, $N$ denotes the batch size, and $h$ is the activation value of network (the footnote indicate specific index where $n \in N, c \in C^i, v \in V^i$ ). The value normalized by
+
+SPAdaIN can be computed as follows,
+
+$$
+\mu_ {n, c} ^ {i} = \frac {1}{V ^ {i}} \sum_ {v} h _ {n, c, v} ^ {i} \tag {1}
+$$
+
+$$
+\sigma_ {n, c} ^ {i} = \sqrt {\frac {1}{V ^ {i}} \sum_ {v} \left(h _ {n , c , v} ^ {i} - \mu_ {n , c} ^ {i}\right) ^ {2} + \varepsilon} \tag {2}
+$$
+
+$$
+\operatorname {S P A d a I N} (h, \boldsymbol {M}) = \gamma_ {v} ^ {i} (\boldsymbol {M}) \left(\frac {h _ {n , c , v} ^ {i} - \mu_ {n , c} ^ {i}}{\sigma_ {n , c} ^ {i}}\right) + \beta_ {v} ^ {i} (\boldsymbol {M}) \tag {3}
+$$
+
+where $\gamma$ and $\beta$ are learnable affine parameters, $\varepsilon = 1e - 5$ for numerical stability. The detailed SPAdaIN module structure is shown in Fig. 5 (b). In SPAdaIN the external data $M_{id}$ is fed into 2 different $1\times 1$ convolution layers to produce the modulation parameters $\gamma$ and $\beta$ . The parameters are multiplied and added to the normalized feature.
+
+Decoder. The decoder architecture we employed is inspired by the style transfer task. We first feed the latent embedding $Z$ into the decoder, consisting of multiple SPAdaIN ResBlocks. As shown in Fig. 4, the overall architecture has 3 SPAdaIN ResBlocks. Fig. 5 (c) illustrates the detail of SPAdaIN ResBlock architecture. Each SPAdaIN ResBlock consists of SPAdaIN blocks followed by a $1 \times 1$ convolution layer and ReLU activation function, and 3 identical units are organized in the form of residual block [11]. The output of this operation is then fed to a tanh layer, generating the final output $M_{output}$ .
+
+# 3.4. Loss function
+
+To efficiently train our network, we introduce and define the loss function $\mathcal{L}$ as follows,
+
+$$
+\mathcal {L} = \mathcal {L} _ {\text {r e c}} + \lambda_ {\text {e d g}} \cdot \mathcal {L} _ {\text {e d g}} \tag {4}
+$$
+
+where $\lambda_{edg}$ is coefficients of edge regularization.
+
+Reconstruction Loss. The loss aims to regress the vertices close to its correct position. We pre-process the ground truth with the same vertices number as template identity model and train the network using the supervision of pointwise L2 distance between the mesh predicted by our model $\widehat{M} (\alpha_{1},\beta_{2},\theta_{1})$ and the ground truth mesh $M(\alpha_{1},\beta_{2},\theta_{1})$
+
+$$
+\mathcal {L} _ {r e c} = \left| \left| \widehat {\boldsymbol {M}} \left(\alpha_ {1}, \beta_ {2}, \theta_ {1}\right) - \boldsymbol {M} \left(\alpha_ {1}, \beta_ {2}, \theta_ {1}\right) \right| \right| _ {2} ^ {2} \tag {5}
+$$
+
+Edge Length Regularization. Directly regress vertices position will not guarantee that the transferred of avoiding producing the over-length edges, since we tend to make the generated model has smooth surface. To address this problem, we further propose edge length regularization penalizing the long edges. Specifically, this regularization enforces the output mesh surface to be tight, resulting in a smooth
+
+surface. Inspired by [10], let $\mathcal{N}(p)$ be the neighbor of vertex $p$ , the edge length regularization can be defined as follows,
+
+$$
+\mathcal {L} _ {e d g} = \sum_ {p} \sum_ {v \in \mathcal {N} (p)} | | p - v | | _ {2} ^ {2} \tag {6}
+$$
+
+# 4. Experiment
+
+# 4.1. Experimental setup
+
+Datasets We use SMPL model [16] to generate training and test data by randomly sampling the parameter space. To create training data, we generate meshes of 16 identities with 400 poses, and randomly pick two as a pair for training. The ground truth is obtained by running SMPL model[16] with the desired shape and pose parameters from two meshes respectively. In order to be invariance to the vertex order, the mesh vertices are shuffled randomly before feeding into the network. Accordingly, the ground truth mesh is shuffled in the same manner as the identity mesh such that they are point-wise aligned to its corresponding input mesh.
+
+In the test step, we evaluate our model for transferring the seen and unseen poses to new identities. To do so, we create 14 new identities that are not in the training set. We use these new identities to form 72 pairs with randomly selected training pose, and 72 pairs with newly created poses. To further test how our model generalizes, we employ the meshes from FAUST [4] and MG-dataset[3]. These meshes are not strictly consistent with SMPL but with more fine-grained geometry details and more realistic.
+
+For all input meshes, we shift them to the center and scale them to the unit sphere, our method is robust against the global scale.
+
+Implementation details. The hyper-parameters to train our network are as follows. We use Adam optimizer with the learning rate as $5e - 5$ . The $\lambda_{edg}$ in the loss function is set as $5e - 4$ . The model is trained for 200 epochs with batch size equalling to 8 on a single GTX 1080Ti GPU. Please refer to the supplementary material for more detailed network architecture.
+
+Evaluation Metrics. Since the output mesh is point-wise aligned with the ground truth, we use Point-wise Mesh Euclidean Distance (PMD) as our evaluation metrics. Specifically,
+
+$$
+\mathbf {P M D} = \frac {1}{| V |} \sum_ {v} \| P _ {v} - Q _ {v} \| _ {2} ^ {2} \tag {7}
+$$
+
+where we have mesh vertices $P_{v}\in \widehat{M} (\alpha_{1},\beta_{2},\theta_{1})$ and $Q_{v}\in M(\alpha_{1},\beta_{2},\theta_{1})$
+
+# 4.2. Comparison to Deformation Transfer
+
+In this section, we compare to deformation transfer baselines and show both qualitative and quantitative results.
+
+
+Figure 6: Qualitative comparison of seen pose. From left to right, we show in each row: input identity mesh, input pose mesh, the results of DT [24] using 5 control points and 13 control points respectively, our results and the ground truth. Our predictions have more natural joints movement.
+
+
+
+
+Figure 7: Qualitative comparison of unseen pose. Both $M_{id}$ and $M_{pose}$ are unseen. From left to right, we show in each row: input identity mesh, input pose mesh, the results of DT [24] using 5 control points and 13 control points respectively, our results and the ground truth. Our predictions are more natural at joints.
+
+To the best of our knowledge, there are no learning-based methods for deformation transfer designed for new identities yet. One of the most effective methods is deformation transfer (DT) [24], which however, has to rely on the additional control points and a third mesh, as the auxiliary input. To this end, we provide DT the third mesh and run it with 5 and 13 control points. The qualitative results are shown in Fig. 6 and Fig. 7 and quantitative results are shown in
+
+Tab. 1. As can be seen, our model learns on seen poses to transfer poses effectively to new identities in the testing set, while the PMD of our method is significantly lower than that of DT which even has the additional inputs. This greatly validates the effectiveness of our model in learning to deform meshes. Furthermore, for those poses that have never been seen during the training stage, our model demonstrates very good generalization ability and still produces
+
+reasonable good results as shown in Fig. 7. Note that DT is not a learning-based approach such that it has quite similar performance over the training and testing set.
+
+To demonstrate that our model is invariant to vertex permutation of meshes, we further run our model on the same pair of meshes with the identity mesh shuffled in different orders. Fig. 8 shows the input and output meshes with color encoding the vertex index. As can be seen, our model can produce similar output meshes with the input identity meshes in different shuffles. This shows that the output vertex order is maintained the same as the identity meshes.
+
+Table 1: Quantitative comparison of average PMD.
+
+| Pose Type | PMD ↓ (×10-4) |
| DT(5) [24] | DT(13) [24] | Ours |
| seen-pose | 7.3 | 7.7 | 1.1 |
| unseen-pose | 7.2 | 6.7 | 9.3 |
+
+
+Figure 8: Visualization of the vertex index color encoding. We show two pairs of input meshes with different vertices orders and the predict results. From left to right, $M_{\text{pose}}$ , $M_{id}$ and $M_{\text{output}}$ . The order of our pose transfer results are consistent with the identity mesh.
+
+# 4.3. Ablation Study
+
+In this section, we verify the effectiveness of the key components of our model by some ablation study.
+
+We start from a naive network architecture, where the decoder only consists of several 1-dimensional convolutional filters (conv1d). We then sequentially add ResBlock and SPAdaIN to the network. We name these two naive methods concat1 and w/o SPAdaIN. The quantitative evaluations are shown in Tab. 2, and some examples can be found in Fig. 9. As can be seen, naive conv1d (concat1) does not perform well, and the surface details are added back gradually when adding more components to the network. Particularly, SPAdaIN is very helpful in learning the pose transfer, which
+
+
+Figure 9: Qualitative ablation study results. We show the generation results of (a) our naive baseline concat1, (b) our model without SPAdaIN modules, (c) our model without edge regularization and (d) our full model. As we can see, SPAdaIN is very helpful in learning the pose transfer and edge loss can help to generate smoother results.
+
+
+Figure 10: Qualitative comparisons of Non-SMPL based identity. Comparison of using FAUST [4] and MG-dataset[3] as identity mesh respectively.
+
+reduces the error from 8.3 to 1.1 on seen poses and from 13.7 to 9.3 on unseen poses. This means the style transfer network can effectively transfer the identity as a style onto the target mesh.
+
+We also evaluate the impact of edge regularization loss on the model performance. As compared in Tab. 2, edge regularization loss consistency reduces the PMD on the testing dataset of both seen and unseen poses. From Fig. 9, the results are smoother if trained with the edge loss, compared to those without using edge regularization loss.
+
+Table 2: Quantitative ablation study for seen and unseen pose. We show the metrics of PMD with a naive baseline (concat1), SPAdIn and edge regularization disabled respectively, full denotes our full model.
+
+| Pose Source | PMD ↓ (×10-4) |
| concat1 | w/o SPAdaIN | w/o edg | full |
| seen-pose | 12.1 | 8.3 | 1.2 | 1.1 |
| unseen-pose | 16.9 | 13.7 | 10.1 | 9.3 |
+
+
+(a) Identity
+Figure 11: Qualitative example of Non-SMPL based pose. We show results using the mesh from FAUST [4] as pose mesh. Our system has the ability to transfer pose from Non-SMPL based mesh.
+
+
+(b) Pose
+
+
+(c) Ours
+Figure 12: Robustness to noise. When using pose mesh (a) with noise, our method (c) still performs very well, however, DT [24] (b) may maintain undesirable geometry noise.
+
+# 4.4. Generalization Capability
+
+In this section, we investigate the generalization capability of our method from the cross source data and robustness. Specifically, we test our model with non-SMPL based identity and pose meshes. It is worth noting that the training data created by SMPL are highly constrained and lack of geometry details. Our deep learning model can handle the details beyond SMPL capacity decently.
+
+Non-SMPL based identity We first test how our model performs with a human mesh that is not strictly an SMPL model. To do so, we take meshes from FAUST [4] and MG-dataset [3] which include dressed human meshes as the identity meshes. The model we get through SMPL training dataset does not require the order of the mesh vertex points or the number of the points as input, but it has to set the same number of points of pose mesh, as that of the identity mesh points. SMPL meshes have 6890 points each and FAUST has the same number of points as SMPL. For MG-dataset [3] which has meshes with 27554 each, we adopt the interpolation to automatically increase the number of points of pose mesh and this is a very simple process. In Fig. 10, we can see that, even with the identity mesh that is not from SMPL, our model still produces the correct pose while maintains the geometry details that are not encoded by SMPL, e.g., beard and the cloth. On the other hand, DT
+
+
+(a) Pose
+
+
+(b)DT(5)
+
+
+(c) Ours
+
+sometimes produces more obvious artifacts near fingers.
+
+Non-SMPL based pose. We then test our system with a non-SMPL based source mesh which provides the pose. We give examples using a mesh from FAUST [4] as pose mesh in Fig. 11. As shown in Fig. 11, our model still managed to produce reasonably good results.
+
+Robustness to noise Lastly, we test the model robustness against noise in the pose mesh. We manually add noise to the pose mesh by adding random perturbations to point coordinates, since there may be some noise during application sometimes. Surprisingly, as shown in Fig. 12, our method is still doing well.
+
+# 5. Conclusion
+
+In this paper, we propose an efficient deep learning based architecture to efficiently transfer the pose from source meshes to target meshes. The whole network is designed as generalizing the style transfer in the image domain to deal with points. The novel component - SPAdaIN is thus introduced to implement our idea. Strikingly, we empirically validate and show that our network has the potential ability in generalizing to transfer poses to unseen meshes and being invariant to different vertex orders of source and target meshes. Comparing with the other methods, we show that our model can work well in transferring poses in noisy conditions and in handing arbitrary vertex permutation, most importantly without relying on the additional input from auxiliary meshes or extra knowledge as previous works.
+
+# Acknowledgement
+
+This work was supported in part by NSFC Projects (U1611461), Science and Technology Commission of Shanghai Municipality Projects (19511120700, 19ZR1471800), Shanghai Municipal Science and Technology Major Project (2018SHZDZX01), and Shanghai Research and Innovation Functional Program (17DZ2260900).
+
+# References
+
+[1] Ilya Baran, Daniel Vlasic, Eitan Grinspun, and Jovan Popovic. Semantic deformation transfer. In ACM Transactions on Graphics (TOG), volume 28, page 36. ACM, 2009. 2
+[2] Mirela Ben-Chen, Ofir Weber, and Craig Gotsman. Spatial deformation transfer. In Proceedings of the 2009 ACM SIGGRAPH/Eurographics Symposium on Computer Animation, pages 67-74. ACM, 2009. 2
+[3] Bharat Lal Bhatnagar, Garvita Tiwari, Christian Theobalt, and Gerard Pons-Moll. Multi-garment net: Learning to dress 3d people from images. In IEEE International Conference on Computer Vision (ICCV). IEEE, Oct 2019. 1, 5, 7, 8
+[4] Federica Bogo, Javier Romero, Matthew Loper, and Michael J. Black. Faust: Dataset and evaluation for 3d mesh registration. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2014. 1, 5, 7, 8
+[5] Hung-Kuo Chu and Chao-Hung Lin. Example-based deformation transfer for 3d polygon models. J. Inf. Sci. Eng., 26(2):379-391, 2010. 2
+[6] Harm de Vries, Florian Strub, Jeremie Mary, Hugo Larochelle, Olivier Pietquin, and Aaron C Courville. Modulating early visual processing by language. 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 6594-6604. Curran Associates, Inc., 2017. 3
+[7] Vincent Dumoulin, Jonathon Shlens, and Manjunath Kudur. A learned representation for artistic style. arXiv preprint arXiv:1610.07629, 2016. 3, 4
+[8] Yutong Feng, Yifan Feng, Haoxuan You, Xibin Zhao, and Yue Gao. Meshnet: Mesh neural network for 3d shape representation. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 8279-8286, 2019. 3
+[9] Lin Gao, Jie Yang, Yi-Ling Qiao, Yukun Lai, Paul Rosin, Weiwei Xu, and Shihong Xia. Automatic unpaired shape deformation transfer. ACM Transactions on Graphics, 37(6):1-15, 2018. 2
+[10] Thibault Groueix, Matthew Fisher, Vladimir G Kim, Bryan C Russell, and Mathieu Aubry. 3d-coded: 3d correspondences by deep deformation. In Proceedings of the European Conference on Computer Vision (ECCV), pages 230-246, 2018. 2, 5
+[11] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016. 5
+[12] 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. 2, 3, 4
+[13] Xun Huang, Ming-Yu Liu, Serge Belongie, and Jan Kautz. Multimodal unsupervised image-to-image translation. In Proceedings of the European Conference on Computer Vision (ECCV), pages 172-189, 2018. 3
+[14] Alec Jacobson, Ilya Baran, Jovan Popovic, and Olga Sorkine. Bounded biharmonic weights for real-time deformation.
+
+ACM Transactions on Graphics (proceedings of ACM SIGGRAPH), 30(4):78:1-78:8, 2011. 2
+[15] Or Litany, Alex Bronstein, Michael Bronstein, and Ameesh Makadia. Deformable shape completion with graph convolutional autoencoders. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1886-1895, 2018. 3
+[16] Matthew Loper, Naureen Mahmood, Javier Romero, Gerard Pons-Moll, and Michael J Black. Smpl: A skinned multiperson linear model. ACM transactions on graphics (TOG), 34(6):248, 2015. 1, 5
+[17] Lars Mescheder, Andreas Geiger, and Sebastian Nowozin. Which training methods for gans do actually converge? arXiv preprint arXiv:1801.04406, 2018. 3
+[18] Takeru Miyato and Masanori Koyama. cgans with projection discriminator. arXiv preprint arXiv:1802.05637, 2018. 3
+[19] 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. 3, 4
+[20] Ethan Perez, Harm de Vries, Florian Strub, Vincent Dumoulin, and Aaron Courville. Learning visual reasoning without strong priors. arXiv preprint arXiv:1707.03017, 2017. 3
+[21] 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. 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, 3
+[23] Cheng Shi12, Chun Yuan, Jiayin Cai, Zhuobin Zheng12, Yangyang Cheng12, and Zhihui Lin12. Conditional kronecker batch normalization for compositional reasoning. 2018. 3
+[24] Robert W Sumner and Jovan Popovic. Deformation transfer for triangle meshes. ACM Transactions on graphics (TOG), 23(3):399-405, 2004. 1, 2, 6, 7, 8
+[25] Qingyang Tan, Lin Gao, Yu-Kun Lai, and Shihong Xia. Variational autoencoders for deforming 3d mesh models. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018. 3
+[26] Weiwei Xu, Kun Zhou, Yizhou Yu, Qifeng Tan, Qunsheng Peng, and Baining Guo. Gradient domain editing of deforming mesh sequences. In ACM Transactions on Graphics (TOG), volume 26, page 84. ACM, 2007. 2
+[27] Jie Yang, Lin Gao, Yu-Kun Lai, Paul L Rosin, and Shihong Xia. Biharmonic deformation transfer with automatic key point selection. Graphical Models, 98:1-13, 2018. 2
+[28] Han Zhang, Ian Goodfellow, Dimitris Metaxas, and Augustus Odena. Self-attention generative adversarial networks. arXiv preprint arXiv:1805.08318, 2018. 3
\ No newline at end of file
diff --git a/neuralposetransferbyspatiallyadaptiveinstancenormalization/images.zip b/neuralposetransferbyspatiallyadaptiveinstancenormalization/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..5744cf5488562966e58c649e0e1a47bbf75fa5f2
--- /dev/null
+++ b/neuralposetransferbyspatiallyadaptiveinstancenormalization/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7977dfe2c1d868c3f36c1014c30f5cd74b95b55929404a0e18ca464385dbd415
+size 536382
diff --git a/neuralposetransferbyspatiallyadaptiveinstancenormalization/layout.json b/neuralposetransferbyspatiallyadaptiveinstancenormalization/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..321d68a8083f01f275d281b340df68205c7959e7
--- /dev/null
+++ b/neuralposetransferbyspatiallyadaptiveinstancenormalization/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3193f9874e20b70fc63e0d10c1b106476de747a26bf8e59acd564a7f2412a452
+size 323146
diff --git a/neuralscaleefficientscalingofneuronsforresourceconstraineddeepneuralnetworks/968d7b15-0d94-41d2-88f2-402dec7b9130_content_list.json b/neuralscaleefficientscalingofneuronsforresourceconstraineddeepneuralnetworks/968d7b15-0d94-41d2-88f2-402dec7b9130_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..128809721c727f5f661096770e44022c7f1cc952
--- /dev/null
+++ b/neuralscaleefficientscalingofneuronsforresourceconstraineddeepneuralnetworks/968d7b15-0d94-41d2-88f2-402dec7b9130_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e6c2edff916102679e669ad3f16f8c6ec6d73976f096d95ddba5906ed75ff5fa
+size 79718
diff --git a/neuralscaleefficientscalingofneuronsforresourceconstraineddeepneuralnetworks/968d7b15-0d94-41d2-88f2-402dec7b9130_model.json b/neuralscaleefficientscalingofneuronsforresourceconstraineddeepneuralnetworks/968d7b15-0d94-41d2-88f2-402dec7b9130_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..8bac448c696fe7ef89a6adaacb764362c9ec5f7d
--- /dev/null
+++ b/neuralscaleefficientscalingofneuronsforresourceconstraineddeepneuralnetworks/968d7b15-0d94-41d2-88f2-402dec7b9130_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:22ddffa8145f01a06b6172a6f69f702efc44deea61d933268d2a7ac850f08d09
+size 98294
diff --git a/neuralscaleefficientscalingofneuronsforresourceconstraineddeepneuralnetworks/968d7b15-0d94-41d2-88f2-402dec7b9130_origin.pdf b/neuralscaleefficientscalingofneuronsforresourceconstraineddeepneuralnetworks/968d7b15-0d94-41d2-88f2-402dec7b9130_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..6c29a5e8b4bbc59bd56cb4702129d5e7d496342f
--- /dev/null
+++ b/neuralscaleefficientscalingofneuronsforresourceconstraineddeepneuralnetworks/968d7b15-0d94-41d2-88f2-402dec7b9130_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a6cbf089484340a01cc5517cdd93b77cfc98ec415c4d53139377fb7d984ba840
+size 1704811
diff --git a/neuralscaleefficientscalingofneuronsforresourceconstraineddeepneuralnetworks/full.md b/neuralscaleefficientscalingofneuronsforresourceconstraineddeepneuralnetworks/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..a3340145fe3894dfc3210bb5fa7b449988e8fda2
--- /dev/null
+++ b/neuralscaleefficientscalingofneuronsforresourceconstraineddeepneuralnetworks/full.md
@@ -0,0 +1,352 @@
+# NeuralScale: Efficient Scaling of Neurons for Resource-Constrained Deep Neural Networks
+
+Eugene Lee Chen-Yi Lee
+
+Institute of Electronics, National Chiao Tung University
+
+eugenelet.ee06g@nctu.edu.tw cylee@si2lab.org
+
+# Abstract
+
+Deciding the amount of neurons during the design of a deep neural network to maximize performance is not intuitive. In this work, we attempt to search for the neuron (filter) configuration of a fixed network architecture that maximizes accuracy. Using iterative pruning methods as a proxy, we parameterize the change of the neuron (filter) number of each layer with respect to the change in parameters, allowing us to efficiently scale an architecture across arbitrary sizes. We also introduce architecture descent which iteratively refines the parameterized function used for model scaling. The combination of both proposed methods is coined as NeuralScale. To prove the efficiency of NeuralScale in terms of parameters, we show empirical simulations on VGG11, MobileNetV2 and ResNet18 using CIFAR10, CIFAR100 and TinyImageNet as benchmark datasets. Our results show an increase in accuracy of $3.04\%$ , $8.56\%$ and $3.41\%$ for VGG11, MobileNetV2 and ResNet18 on CIFAR10, CIFAR100 and TinyImageNet respectively under a parameter-constrained setting (output neurons (filters) of default configuration with scaling factor of 0.25).
+
+# 1. Introduction
+
+The human brain contains around 100 billion of neurons [21] that are structured in such a way that they are utilized in an efficient manner. As the design of deep neural network (DNN) is inspired by the human brain, there's one key ingredient that is missing from the current design of DNNs: the efficient utilization of resources (parameters).
+
+The success of DNN is a composition of many factors. On an architectural level, various architectures have been proposed to increase the accuracy of DNNs targeting efficiency in computational cost (FLOPs) and size (parameters). In a modern DNN architectures, hyperparameters like width (neurons/filters), depth, skip-connections and ac
+
+
+(a) NeuralScale.
+
+
+(b) Uniform Scaling.
+Figure 1: The input is represented as a green slab on the left, the output layer is the yellow bar on the right and intermediate layers are represented by 3D blocks with the width as its neuron (filter) number. The purple blocks are the final configuration of the neurons (filters). (a) shows our proposed method that non-linearly scales neurons (filters) across different layers to maximize performance. (b) is a uniform scaling method that is shown to be effective in [12].
+
+tivation functions [38, 42] are the building blocks. Notable architectures that are constructed using those building blocks are: VGGNet [44], ResNet [18], DenseNet [24], GoogLeNet [45] and MobileNets [23, 43, 22]. Apart from the advances in architecture design, initialization of weights also helps in improving the accuracy of a DNN [11, 17].
+
+We focus on optimizing the configuration of convolutional neural networks (CNNs) and shed light on the selection of the number of filters for each layer given a fixed architecture and depth. Our approach is complementary to the
+
+modern variants of CNNs (VGGNet, ResNet, MobileNet, etc.) through the introduction of a guided approach in tuning its width instead of just blindly stacking additional layers to boost accuracy. Our approach also investigates the conventional wisdom on filter selection stating that as we go deeper into the network, more filters are required to capture high-level information embedded in the features and to compensate with the gradual reduction in the spatial dimension which has efficiency in FLOPs as a byproduct.
+
+Intuitively speaking, the design of traditional CNNs is ad-hoc and introduces redundancy [29, 4]. This redundancy gives the opportunity for filter pruning techniques [15, 13, 29, 32] to strive, by conserving or improving accuracy using a lower parameter count. Current advances in pruning has led to a recent work by Liu et al. [33] that studies pruning in a new perspective. They show that pruning can be viewed as an architecture search method instead of just for removing redundancy. We incorporated this perspective along with the recent findings of EfficientNet [47] stating that through the search of an optimal ratio between the width, depth and resolution of a given architecture and dataset, the accuracy of a network can improve if scaled accordingly. Both these works led us to think that instead of finding the scale or ratio among the width, depth and resolution, we can scale the width of a CNN across several layers independently using global iterative pruning as a proxy. We hypothesize that if we are given a DNN with minimal redundant parameters, through the modeling of the change of neurons (filters) in each layer of the DNN with respect to the change in the total parameters of the DNN, we are able to scale the DNN across various sizes efficiently. Our approach can also be viewed as a variant of neural architecture search (NAS) where the search is on finding the optimal configuration of neurons (filters) across layers instead of searching for the optimal structure involving skip-connections or filter types [54, 30, 41, 50, 1, 31]. Our approach is comparatively light-weight as the only resource intensive task lies on the pruning of network. The gist of our proposed method is shown in Figure 1a.
+
+The rest of the paper is structured as follows. We first show related work on available pruning techniques and the role of pruning for neural architecture search in Section 2. We then show the details of our approach in Section 3. Extensive experiments on our proposed method is shown in Section 4. We finally conclude our paper in Section 5.
+
+# 2. Related Work
+
+Pruning of Deep Neural Network. Pruning of neural networks has been studied for decades with the goal of parameter reduction [27, 16]. Parameter reduction is important if a DNN needs to be deployed to targeted devices with limited storage capacity and computational resources. There are two ways to prune a network: structured
+
+pruning [32, 20, 39, 28, 34, 52] and unstructured pruning [13, 14, 15, 9]. For structured pruning, entire filters or neurons are removed from a layer of a network. Such pruning method can be deployed directly to a general computing architecture, e.g. GPU, to see improvement in speed. For unstructured pruning, individual weights are pruned, resulting in a sparse architecture. A dedicated hardware is required to exploit the speed-up contributed by the sparsity of weights.
+
+To prune a network, there are various criteria that have been studied. The most intuitive approach is to prune the weights based on its magnitude [15, 13, 29]. It was believed that the importance of weights is related to its magnitude. Although this approach is widely used in other works [9, 29, 19, 51], it is also shown on several works [35, 20, 27, 16] that magnitude pruning does not result in an architecture with the best performance. Pruning based on magnitude is adopted because of its simplicity when compared to more complicated pruning techniques, e.g. [16, 27] requires the computation of Hessian for pruning. A study proposed the use of geometric median [20] as a replacement of magnitude pruning for the criteria of network pruning. [35, 37] has also challenged the reliability of magnitude pruning and proposed the use of Taylor expansions to approximate the contribution of a filter to the final loss. Another intuitive way of pruning is through the addition of a regularizer to the loss function to force redundant weights to zero during training [15]. It has also been discovered that the scaling parameter used in Batch Normalization (BN) [25] can be used for structured pruning and yields performance better than pruning using magnitude [32]. A follow-up work that takes the shift term of BN into consideration for pruning is proposed in [52].
+
+Neural Architecture Search via Pruning. There's a tremendous surge of efforts placed into the research of neural architecture search (NAS) techniques in the recent years on coming up with the most efficient architecture possible for a given task [54, 30, 41, 46, 3, 31]. NAS techniques are usually computationally expensive, limiting its applicability to research or corporate environment with limited computing resources. The search space of NAS is very broad and is defined distinctively across different works. Most of the search space involves the search of a suitable set of operations to be placed in a cell. The connections between different operations is also considered in the search space [2]. These cells are then stacked to increase network depth.
+
+In our work, we focus on the decision of the number of neurons (filters) required for each layer in a DNN. We use existing pruning techniques as a proxy to tackle this problem. The idea of using pruning as an architecture search method is not novel and has been discussed in [33, 9, 10, 7] where its applicability can be seen in MorphNet [12]. Liu et al. [33] show that through pruning, we are removing redun
+
+dancy from a network and the resulting network is efficient in terms of parameters. They also show that training the pruned architecture from scratch has comparable, if not better, accuracy than fine-tuned networks, indicating that the accuracy gain is from the resulting efficient architecture obtained via pruning. For the case of unstructured pruning, it is studied in [9, 10, 53] that a Lottery Ticket (LT) can be found via iterative unstructured pruning. A LT is a sparse architecture that is the result of unstructured pruning and has accuracy better than the original network (usually found at a parameter count of an order less than the parameter count of the original network). This finding indicates that pruning does introduce inductive bias [5] and adds evidence on the suitability of using pruning as an architecture search technique. This idea is proven in MorphNet [12] where a pruned architecture is scaled uniformly to meet the targeted parameter count and is repeated for several iterations. A single iteration of [12] is illustrated in Figure 1b.
+
+# 3. Method
+
+# 3.1. Parameter Tracking via Iterative Pruning
+
+To efficiently allocate neurons (filters) across different layers of a DNN that results in optimal accuracy given a parameter constraint, we model the change of neurons (filters) across layers with respect to the change of parameters. First, we need to begin with a network with minimal redundant parameters. To do so, a structured pruning method proposed by Molchanov et al. [35] that prunes iteratively is adopted. They proposed a pruning method that prunes neurons based on its importance. The importance of a parameter can be measured as the loss induced when it's removed from the network. They proposed the use of Taylor approximation as an efficient way to find parameters that are of less importance. A comprehensive comparison between their approach and an oracle (full combinatorial search over all parameters that results in minimum increase in loss) is done, proving its reliability. Here, we will give a brief introduction of their parameter pruning technique borrowed from their paper. The importance of a parameter is quantified by the error induced when it is removed from the network:
+
+$$
+\mathcal {I} _ {m} = \left(E (\mathcal {D}, \boldsymbol {W}) - E (\mathcal {D}, \boldsymbol {W} | w _ {m} = 0)\right) ^ {2}. \tag {1}
+$$
+
+Here, $\mathbf{W} = \{w_0, w_1, \dots, w_M\}$ are the set of parameters of a neural network supported by a dataset $\mathcal{D} = \{(x_0, y_0), (x_1, y_1), \dots, (x_K, y_K)\}$ of $K$ independent samples composed of inputs $x_k$ and outputs $y_k$ . (1) can be approximated by the second-order Taylor expansion as:
+
+$$
+\mathcal {I} _ {m} ^ {(2)} (\boldsymbol {W}) = \left(g _ {m} w _ {m} - \frac {1}{2} w _ {m} \boldsymbol {H} _ {m} \boldsymbol {W}\right) ^ {2}. \tag {2}
+$$
+
+$\pmb{H}$ is the Hessian matrix where $\pmb{H}_{m}$ is the $m$ -th row of it and $g_{m} = \frac{\partial E}{\partial w_{m}}$ (2) can be further approximated using the
+
+first-order expansion:
+
+$$
+\mathcal {I} _ {m} ^ {(1)} (\boldsymbol {W}) = \left(g _ {m} w _ {m}\right) ^ {2}. \tag {3}
+$$
+
+To minimize computational cost, (3) will be used since it is shown in [35] that the performance is on par with the second-order expansion and the first-order Taylor expansion is often used to estimate the importance of DNN components (weights, kernels or filters) [48, 36, 8]. Consistent with their work, a gate $z_{m}$ is placed after batch normalization layers [25] where the importance approximation is defined as:
+
+$$
+\mathcal {I} _ {m} ^ {(1)} (\boldsymbol {z}) = \left(\frac {\partial E}{\partial \boldsymbol {z} _ {m}}\right) ^ {2} = \left(\sum_ {s \in \mathcal {S} _ {m}} g _ {m} w _ {m}\right) ^ {2}, \tag {4}
+$$
+
+where $S_{m}$ corresponds to the set of weights $\mathbf{W}_{s\in S_m}$ before the gate.
+
+For a network composed of $L$ layers, we define the set of neurons (filters) for the entire network as $\{\phi_l\}_{l = 1}^L$ . $\phi_{l}$ is the number of neurons (filters) of layer $l$ . We then define the total number of parameters in a network as $\tau$ . As we are using an iterative pruning method, on every pruning iteration, we will obtain a set of $\tau$ 's and $\phi_l$ 's for the $l$ -th layer which can be represented as $\xi_{l} = \{\tau ,\phi_{l}\}$ . After pruning for $N$ iterations, we obtain $\pmb {\xi}_l = \{\{\tau^{(n)},\phi_l^{(n)}\}_{n = 1}^N\}$ . In our implementation, we start feeding $\xi_{l}$ 's into $\pmb {\xi}_l$ when all layers in a network is pruned by at least a single parameter. We conjecture that when all layers are pruned by at least a single parameter, most redundancy is removed and the residual parameters compose an efficient configuration. We stop pruning once the number of neurons (filters) is less than $\epsilon$ (we pick $\epsilon$ as $5 \%$ of the total neurons (filters) of the network in our implementation). Upon the completion of pruning, we have $\pmb {\xi}\in \mathbb{R}^{2\times N\times L}$ . The entire pruning process begins once we have trained our network for $P$ epochs (commonly known as network pre-training; we use the term pre-training epochs in our context instead) using a learning rate $\mu$ . The choice of $P$ is studied and the conventional wisdom on the requirement of pre-training a network to convergence before pruning is investigated in the Supp. Section 6.3. The pruning algorithm is summarized in Algorithm 1.
+
+# 3.2. Efficient Scaling of Parameters
+
+The goal of this work is to scale the neurons (filters) of a network across different layers to satisfy the targeted total parameter size denoted as $\hat{\tau}$ . For parameter scaling to match the targeted size, uniform scaling is used in MorphNet [12] and MobileNets [23] where all layers are scaled with a constant width multiplier. It is intuitive that the scale applied to neurons (filters) of different layers should be layer-dependent to maximize performance. In this work, we propose an efficient method to scale the number of neurons (filters) across different layers to maximize performance.
+
+Algorithm 1 Iterative Prune
+1: procedure ITERATIVEPRUNE(f, D)
+2: for P epochs do
+3: Update f using learning rate μ
+4: while ∑l=1L|zl|1 > ε do
+5: Train f for Q iterations
+6: ξ' ← Prune f using criteria (4)
+7: if all layers pruned at least once then
+8: ξ ← {ξ, ξ'} ▷ Record parameters
+9: return ξ
+
+
+(a) CIFAR10.
+Figure 2: Growth in number of filters of different layers across various network sizes. Each color represents independent layers of the convolutional filters of VGG11. Solid line is the residual filters obtained using an iterative pruning method and dashed line represents our approach on curve fitting. It can be observed that there's a pattern in the change of filters w.r.t. parameters which is dataset dependent.
+
+
+(b) CIFAR100.
+
+By using iterative pruning as a proxy, we parameterize the change of neurons (filters) across different layers with respect to the total parameters or simply put as $\frac{\partial\phi_l}{\partial\tau}$ .
+
+Modeling Parameter Growth. As discussed in the previous subsection, $\xi_{l}$ collected for each layer resembles the efficient set of neurons (filters) for each layer at a given size constraint. We can use this as a proxy to model $\frac{\partial\phi_l}{\partial\tau}$ . We first observe how the distribution of the residual neurons (filters) obtained using pruning scale across different $\tau$ 's, e.g. we use VGG11 as our network and CIFAR10/100 as our dataset to show the parameter growth across various sizes in Figure 2. We can observe that parameters across different layers don't scale linearly across different sizes, implying that uniform scaling is not an efficient scaling method. Figure 2 also shows us that the growth of the parameters resembles a power function that is monotonic. To fit the curves, we use:
+
+$$
+\phi_ {l} (\tau | \alpha_ {l}, \beta_ {l}) = \alpha_ {l} \tau^ {\beta_ {l}}, \tag {5}
+$$
+
+where every layer is paramterized independently by $\alpha_{l}$ and $\beta_{l}$ . To obtain these parameters, we can linearize the problem by taking $\ln$ on both sides of (5), giving us:
+
+$$
+\ln \phi_ {l} (\tau | \alpha_ {l}, \beta_ {l}) = \ln \alpha_ {l} + \beta_ {l} \ln \tau . \tag {6}
+$$
+
+Since we pruned the network iteratively for $N$ iterations, we obtain a set of linear equations which can be formulated into a matrix of the form:
+
+
+
+
+
+We can solve for $\Theta$ in (7) using the least-squares approach or by taking the pseudoinverse of $\mathcal{T}$ and multiply it with $\Phi$ :
+
+$$
+\boldsymbol {\Theta} = \left(\boldsymbol {\mathcal {T}} ^ {T} \boldsymbol {\mathcal {T}}\right) ^ {- 1} \boldsymbol {\mathcal {T}} ^ {T} \boldsymbol {\Phi}. \tag {8}
+$$
+
+By using this method, we are able to fit the curves or $\xi_{l}$ 's obtained using iterative pruning of a network where the fitted results are shown in Figure 2. Our approach is a cost effective way of neural architecture parametrization and only takes two parameters $(\alpha$ and $\beta)$ per layer to parameterize the non-linear growth of the neuron (filter) count across various parameter sizes or $\frac{\partial\phi_l}{\partial\tau}$ . The simplicity of our approach also prevents the overfitting of noise embedded in the samples obtained via pruning. The search of parameters for efficient scaling is summarized in Algorithm 2.
+
+Algorithm 2 Search Parameters
+1: procedure SEARCHPARAMS( $\xi$ )
+2: $\mathcal{T}, \Phi \gets \xi$ ▷ Convert to matrix form
+3: $\Theta \gets (\mathcal{T}^T \mathcal{T})^{-1} \mathcal{T}^T \Phi$
+4: return Θ
+
+Meeting Parameter Constraints. Since our approach fully parameterizes the independent scaling of network width across various sizes, we can meet tight parameter constraints during deployment of a DNN to devices with limited resource budget. For approaches like uniform scaling [12, 33, 23], only the number of output neurons (filters) can be scaled while the network size is a function of the input and output neurons (filters), hence meeting parameter constraints can only be done by performing an iterative grid search on the number of output neurons (filters) required.
+
+For our approach, parameter scaling is intuitive as we can apply gradient descent on $\Phi$ w.r.t. $\tau$ . To do so, we define a DNN as $f(\pmb{x}|\pmb{W},\Phi(\tau|\Theta))$ where $f$ is a DNN architecture, $\pmb{x}$ is its input, $\pmb{W}$ are the weights of the DNN, and the
+
+additional condition $\Phi (\tau |\Theta)$ is introduced to parameterize the number of neurons (filters) required for each layer of a DNN. We then define a function $h$ that computes the number of parameters of a DNN. $h$ is architecture dependent.
+
+Given a parameter constraint $\hat{\tau}$ that needs to be met, we can generate an architecture having total parameters close to $\hat{\tau}$ by performing stochastic gradient descent (SGD) on $\Phi (\tau ,\Theta)$ w.r.t. $\tau$ . Like other gradient descent problems, parameter initialization is important and the best way to do so is to fit $\hat{\tau}$ into (5) giving us:
+
+$$
+\phi_ {l} \left(\hat {\tau} \mid \alpha_ {l}, \beta_ {l}\right) = \alpha_ {l} \hat {\tau} ^ {\beta_ {l}}. \tag {9}
+$$
+
+This gives us a good initial point, however there will still be a discrepancy between $h(f(\boldsymbol{x}|\boldsymbol{W}, \Phi(\hat{\tau}|\boldsymbol{\Theta})))$ and $\hat{\tau}$ which can be fixed by applying SGD on $\frac{1}{2} (\phi_l(\tau|\alpha_l, \beta_l) - \hat{\tau})^2$ w.r.t. to $\tau$ where the update of $\tau$ is given as:
+
+$$
+\begin{array}{l} \tau_ {i} = \tau_ {i - 1} - \Delta \tau_ {i - 1} (10) \\ = \tau_ {i - 1} - \eta (h (f (\boldsymbol {x} | \boldsymbol {W}, \Phi (\tau_ {i - 1} | \boldsymbol {\Theta}))) - \hat {\tau}) \sum_ {l = 1} ^ {L} \beta_ {l} \alpha_ {l} \tau_ {i - 1} ^ {\beta_ {l} - 1}. (11) \\ \end{array}
+$$
+
+Here, the subscript of $\tau$ corresponds to the SGD iteration and the full proof of (11) is given in Supp. Section 6.1. Since the number of parameters of an architecture is a monotonic function of $\Phi$ , this problem is convex and converges easily. If the learning rate $\eta$ is set carefully, we are able to obtain an architecture with total parameters close to $\hat{\tau}$ . We summarize this procedure in Algorithm 3.
+
+Algorithm 3 Generate Network Using Searched Parameters
+1: procedure GENERATENET(Θ, f, $\hat{\tau}$ )
+2: $\tau \gets \hat{\tau}$ ▷ Initialize parameter
+3: while not converged do
+4: $\tau \gets \tau - \Delta \tau$ ▷ Update using SGD as in (11)
+5: for l ← 1 to L do ▷ Layer-wise architecture update
+6: $f_{l} \gets$ set output neurons (filters) as $\phi_{l}(\tau|\Theta_{l})$ (5)
+7: return f
+
+# 3.3. Architecture Descent for Model Refinement
+
+Like any gradient descent algorithm, initialization plays an important role and affects the convergence of an algorithm. Our approach is similar in way where we attempt to search for the configuration of an architecture given an initial configuration, e.g. VGGNet [44] and ResNet [18] consist of a set of predefined filter numbers for different configurations. As our approach behaves similarly to gradient descent, we coin it architecture descent as there is no gradient involved and it is descending in the loss surface by making iterative changes to the architecture's configuration.
+
+We define an iteration of architecture descent as a single run of Algorithm 1, 2 and 3 that corresponds to iterative pruning, parameter searching and network generation. Upon the completion of iterative pruning and parameter searching, we obtain a set of parameters that scales our network in a more efficient manner. We can then use this set of parameters to scale-up our network as shown in Algorithm 3 for further pruning. We then proceed with several iterations of architecture descent until the changes in the architecture configuration is minuscule, indicating convergence. By applying architecture descent, we are descending on the loss surface that is parameterized by $\Theta$ instead of a loss surface parameterized by its weights $W$ performed in gradient descent. Architecture descent is summarized in Algorithm 4. NeuralScale is a composition of all algorithms we proposed as illustrated in Figure 1a.
+
+Algorithm 4 Architecture Descent
+1: procedure ARCHITECTUREDESCENT(f, D, τ)
+2: while not converged do
+3: ξ ← ITERATIVEPRUNE(f, D)▷ Taylor FO [35]
+4: Θ ← SEARCHPARAMS(ξ)
+5: f ← GENERATENET(θ, f, τ)
+6: return f ▷ Network with scaled parameters
+
+# 4. Experiments
+
+In this section, we show experiments illustrating the importance of architecture descent. We then proceed with the benchmarking of our approach using public datasets, e.g. CIFAR10/100 [26] and TinyImageNet (subset of ImageNet [6] with images downsampled to $64 \times 64$ and consists of 200 classes having 500 training and 50 validation samples for each class) on commonly used architectures, e.g. VGG11 [44], MobileNetV2 [43] and ResNet18 [18]. All experiments are run on a single GTX1080Ti GPU using PyTorch [40] as our deep learning framework. We use SGD as our optimizer with an initial learning rate of 0.1, momentum set to 0.5 and a weight decay factor of $5^{-4}$ . Training of network that uses CIFAR10 and CIFAR100 are run for 300 epochs using a step decay of learning rate by at factor of 10 at epochs 100, 200 and 250 whereas network trained using TinyImageNet are run for 150 epochs with a decay in learning rate by a factor of 10 at epochs 50 and 100. For iterative pruning, we first train our network for $P = 10$ epochs using a learning rate of 0.1 and is decayed by a factor of 10 every 10 epochs. Source code is made available at https://github.com/eugenelet/NeuralScale.
+
+# 4.1. Importance of Architecture Descent
+
+For all experiments, we run architecture descent for 15 iterations. We show configurations with total parameters
+
+matching total parameters of network with its default set of filters uniformly scaled to a ratio, $r$ . $r = 0.25, 2$ for CIFAR10 and CIFAR100. $r = 0.25, 1$ for TinyImageNet.
+
+VGG11. Using a relatively shallow network, we demonstrate the application of architecture descent using CIFAR10 and CIFAR100 as shown in Figure 3. By observing the resulting architecture configuration, we can make two conjectures. First, we show that conventional wisdom on network design that gradually increases the number of filters as we go deeper in a convolutional network does not guarantee optimal performance. It can be observed that the conventional wisdom on network design holds up to some level (layer 4) and bottlenecking of parameters can be observed up to the penultimate layer which is followed by a final layer which is comparatively larger. Second, the scaling of network should not be done linearly as was done in [23] and should follow a non-linear rule that we attempt to approximate using a power function. If we look closely, by applying architecture descent on datasets of higher complexity generates network with configuration that has more filters allocated toward the end. Our conjecture is that more resources are needed to capture the higher level features when the task is more difficult whereas for simple classification problem like CIFAR10, more resource is allocated to earlier layers to generate more useful features. These observations give us a better understanding on how resource should be allocated in DNNs and can be used as a guideline for deep learning practitioners in designing DNNs. A single iteration of architecture descent for VGG11 on CIFAR10/100 is approximately 20 minutes.
+
+MobileNetV2. We show the application of architecture descent on a more sophisticated architecture known as MobileNetV2 using CIFAR100 and TinyImageNet in Figure 3. Here, we only apply our search algorithm on deciding the size of the bottleneck layers while the size of the expansion layer follows the same expansion rule found in [43] where an expansion factor of $6 \times$ is used. The resulting configuration closely resembles the one found using a feedforward network like VGG. It can also be observed that resources are allocated toward the output for a more sophisticated dataset. A single iteration of architecture descent for MobileNetV2 on CIFAR100 and TinyImageNet is approximately 50 minutes and 1.2 hour respectively.
+
+ResNet18. The application of architecture descent on ResNet18 using CIFAR100 and TinyImageNet is shown in Figure 3. We observe a different pattern of architecture configuration when compared to a simple feed forward network like VGG. This is an interesting observation as it agrees with the interpretation of residual networks as an ensemble of many paths of different lengths shown in [49]. An-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 3: Shows the number of filters for each layer by running architecture descent for 15 iterations on various architecture-dataset pair. Vertical and horizontal axis of each plot corresponds to the filter number and architecture descent iteration respectively. $r$ is the uniform scaling ratio applied to the default configuration. Best viewed in color.
+
+
+
+other observation is that if we look only at a single layer of every residual block (each block consists of two layers), the searched configuration for ResNet follows the pattern found in VGG where there's a smooth gradient of filter progression across layers. A single iteration of architecture descent for ResNet18 on CIFAR100 and TinyImageNet is approximately 50 minutes and 45 minutes respectively.
+
+# 4.2. Benchmarking of NeuralScale
+
+Here, we compare the accuracy of NeuralScale with the first (Iteration=1, to compare with MorphNet [12]) and last (Iteration=15) iteration of architecture descent with a uniform scaling (baseline) method and a method where a network is first pruned using Taylor-FO [35] until it has $50\%$
+
+of filters left and then scaled uniformly (resembling the first iteration of MorphNet [12] and the use of [35] is to match our pruning method for a fair comparison), named as MorphNet (Taylor-FO) in our comparison tables and plots. The accuracy is obtained by averaging across the maximum test accuracy of 5 independent simulations. For the accuracy plots in Figure 4 and 5, the output filters of the original network are scaled to the ratios from 0.25 to 2 with an increment of 0.25 for CIFAR10/100 along with 0.25, 0.5, 0.75 and 1 for TinyImageNet. For the comparison tables, only the ratios 0.25, 0.75, 2 for CIFAR10/100 and 0.25, 0.75 for TinyImageNet are reported. Comparisons are also made with a structured magnitude pruning method [29] where we first pre-train our network using the same prescription for other methods and proceed with 40 and 20 epochs of fine-tuning for CIFAR10/100 and TinyImageNet respectively, using a learning rate of 0.001. We only show results for VGG11-CIFAR10, MobileNetV2-CIFAR100 and ResNet18-TinyImageNet in Table 1 and the rest are deferred to Supp. Section 6.2. Note that all methods are trained from scratch and only [29] is trained using the pretrain-prune-finetuning pipeline. Results show that the hypothesis in [33] holds (training from scratch performs better). As our approach is designed for platforms with structured parallel computing capability like GPUs, we report the latency of different methods instead of FLOPs. Note that our approach isn't optimized for latency. Here, latency is defined as the time required for an input to propagate to the output. All latencies reported in Table 1 are based on a batch size of 100 where 20 batches are first fed for warm-up of cache and is proceeded with 80 batches which are averaged to give the final latencies. As a comparison of latency based solely on the scale of parameter in Table 1 is unintuitive, we show a plot comparing accuracy of different methods against latency in Figure 5.
+
+VGG11. By observing the comparison plot shown in Figure 4a and 4b, our approach compares favourably in terms of parameter efficiency for CIFAR10 and CIFAR100. As shown in Table 1, at the lowest parameter count, an accuracy gain of $3.04\%$ is obtained for CIFAR10. Efficiency in latency of our approach is also comparable with the baseline approach as shown in Figure 5a and 5b. Diminishing returns are observed when the network increases in size. We conjecture that as the network grows larger, more subspaces are covered, hence the network can still adapt to the suboptimal configuration by suppressing redundant parameters. Another observation is that the performance gain is more substantial on a more complicated dataset which is intuitive as inductive bias is introduced in an architectural level.
+
+MobileNetV2. The application to MobileNetV2 is to show the extensibility of our approach to a delicately hand
+
+
+(a) VGG11 on CIFAR10.
+
+
+(b) VGG11 on CIFAR100.
+
+
+(c) MobileNetV2 on CIFAR100.
+
+
+(d) MobileNetV2 on TinyImageNet.
+
+
+(e) ResNet18 on CIFAR100.
+
+
+(f) ResNet18 on TinyImageNet.
+Figure 4: All plots are organized such that each row corresponds to a single architecture, e.g. (a),(b) corresponds to VGG11, (c),(d) corresponds to MobileNetV2 and (e),(f) corresponds to ResNet18. Each plot consists of the accuracy comparison of different scaling methods (applied on the width), plotted against different parameter scales. The shaded region of each line corresponds to the maximum and minimum accuracy across 5 independent simulations.
+
+crafted architecture. Our approach is superior in parameter efficiency (most cases) when compared to other methods as shown in Figure 4c and 4d. As shown in Table 1, an accuracy gain of $8.56\%$ for CIFAR100 relative to baseline is observed at a scaling ratio of 0.25. Our approach is also efficient in latency as shown in Figure 5c. An unintuitive observation can be seen on the experiment for TinyImageNet where the accuracy at iteration 1 outperforms iteration 15 for NeuralScale at ratio 0.25. The accuracy is below the baseline when more parameters are used. As the default configuration of MobileNetV2 has consistent filters, the default shortcut connections are identity mappings. We hypothesize that the switch from identity mapping to a convolutional mapping for the shortcut connection is the culprit. Empirical study is done in Supp. Section 6.4 with results supporting our hypothesis and explaining the observations.
+
+
+(a) VGG11 on CIFAR10.
+
+
+(b) VGG11 on CIFAR100.
+
+
+(c) MobileNetV2 on CIFAR100.
+
+
+(d) MobileNetV2 on TinyImageNet.
+
+
+(e) ResNet18 on CIFAR100.
+
+
+(f) ResNet18 on TinyImageNet.
+Figure 5: The layout of these plots are structured as shown in Figure 4. The only difference is that the accuracies of different methods are plotted against latencies.
+
+ResNet18. As shown from the accuracy comparison plot in Figure 4e and 4f, substantial accuracy gain under different parameter scales is observed. From Table 1, an accuracy gain of $3.41\%$ is observed for TinyImageNet at a scale of 0.25. Accuracy gain using architecture descent is also more pronounced here. The accuracy gain here is in contradictory with the results in [33] (no gain in accuracy observed) probably due to the better pruning technique we use [35]. In Figure 5e and 5f our approach is comparable and in most cases better than the baseline configuration in latency.
+
+# 5. Conclusion
+
+In this work, we propose a method to efficiently scale the neuron (filter) number of an architecture. We hypothesize that the scaling of network should follow a non-linear rule and is shown empirically that through our approach, networks efficient in parameters across different scales can be generated using this rule. Our empirical results on architecture descent also shed light on the efficient allocation of parameters in a deep neural network. As our approach is computationally-efficient and is complementary to most
+
+Table 1: Comparison of various network-dataset pairs.
+
+| Method | Params | Latency | Accuracy (%) |
| Uniform Scale (Baseline) | VGG11 CIFAR10 |
| 0.58M | 1.29ms | 88.18 ± 0.16 |
| 5.20M | 4.31ms | 91.64 ± 0.10 |
| 36.89M | 18.86ms | 92.96 ± 0.09 |
| Li et al. [29]† | 5.20M | 4.75ms | 91.12 ± 0.02 |
| MorphNet [12] (Taylor-FO [35]) | 0.58M | 2.07ms | 90.60 ± 0.11 |
| 5.22M | 8.43ms | 92.60 ± 0.09 |
| 36.72M | 48.52ms | 93.18 ± 0.11 |
| NeuralScale (Iteration = 1) | 0.58M | 2.56ms | 91.13 ± 0.07 |
| 5.20M | 8.89ms | 92.61 ± 0.15 |
| 36.88M | 37.39ms | 93.31 ± 0.05 |
| NeuralScale (Iteration = 15) | 0.58M | 2.94ms | 91.22 ± 0.15 |
| 5.20M | 12.52ms | 92.63 ± 0.12 |
| 36.90M | 53.35ms | 93.29 ± 0.09 |
+
+| MobileNetV2 CIFAR100 |
| Uniform Scale (Baseline) | 0.20M | 5.37ms | 57.80 ± 0.31 |
| 1.42M | 7.46ms | 67.85 ± 0.38 |
| 9.30M | 19.69ms | 72.40 ± 0.22 |
| Li et al. [29]† | 1.42M | 7.71ms | 67.12 ± 0.08 |
| MorphNet [12] (Taylor-FO [35]) | 0.20M | 6.14ms | 57.51 ± 0.36 |
| 1.42M | 10.95ms | 67.51 ± 0.48 |
| 9.30M | 26.53ms | 72.29 ± 0.28 |
| NeuralScale (Iteration = 1) | 0.19M | 5.69ms | 66.00 ± 0.12 |
| 1.40M | 11.73ms | 70.23 ± 0.25 |
| 9.21M | 21.32ms | 72.37 ± 0.12 |
| NeuralScale (Iteration = 15) | 0.19M | 7.84ms | 66.36 ± 0.28 |
| 1.41M | 17.89ms | 71.94 ± 0.45 |
| 9.27M | 40.48ms | 74.73 ± 0.26 |
+
+| ResNet18 TinyImageNet |
| Uniform Scale (Baseline) | 0.73M | 3.02ms | 50.54 ± 0.37 |
| 6.36M | 11.56ms | 56.68 ± 0.28 |
| Li et al. [29]† | 6.36M | 11.93ms | 54.72 ± 0.24 |
| MorphNet [12] (Taylor-FO [35]) | 0.72M | 3.80ms | 50.79 ± 0.38 |
| 6.39M | 14.83ms | 56.78 ± 0.85 |
| NeuralScale (Iteration = 1) | 0.72M | 5.96ms | 51.66 ± 0.80 |
| 6.42M | 14.58ms | 57.89 ± 0.28 |
| NeuralScale (Iteration = 15) | 0.72M | 6.42ms | 53.95 ± 0.53 |
| 6.40M | 17.52ms | 58.40 ± 0.54 |
+
+† Fine-tuned using pre-trained network (not trained from scratch).
+
+techniques and architectures, the inclusion to existing deep learning framework is cost-effective and results in a model of higher accuracy under the same parameter constraint.
+
+# References
+
+[1] Irwan Bello, Barret Zoph, Vijay Vasudevan, and Quoc V Le. Neural optimizer search with reinforcement learning. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 459–468. JMLR.org, 2017. 2
+[2] 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, pages 549-558, 2018. 2
+[3] Han Cai, Ligeng Zhu, and Song Han. Proxylessnas: Direct neural architecture search on target task and hardware. arXiv preprint arXiv:1812.00332, 2018. 2
+[4] Michael Cogswell, Faruk Ahmed, Ross Girshick, Larry Zitnick, and Dhruv Batra. Reducing overfitting in deep networks by decorrelating representations. arXiv preprint arXiv:1511.06068, 2015. 2
+[5] Nadav Cohen and Amnon Shashua. Inductive bias of deep convolutional networks through pooling geometry. arXiv preprint arXiv:1605.06743, 2016. 3
+[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. 5
+[7] Xiaohan Ding, Guiguang Ding, Yuchen Guo, Jungong Han, and Chenggang Yan. Approximated oracle filter pruning for destructive cnn width optimization. arXiv preprint arXiv:1905.04748, 2019. 2
+[8] Xiaohan Ding, Xiangxin Zhou, Yuchen Guo, Jungong Han, Ji Liu, et al. Global sparse momentum sgd for pruning very deep neural networks. In Advances in Neural Information Processing Systems, pages 6379-6391, 2019. 3
+[9] Jonathan Frankle and Michael Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. arXiv preprint arXiv:1803.03635, 2018. 2, 3
+[10] Jonathan Frankle, Gintare Karolina Dziugaite, Daniel M Roy, and Michael Carbin. The lottery ticket hypothesis at scale. arXiv preprint arXiv:1903.01611, 2019. 2, 3
+[11] Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In Proceedings of the thirteenth international conference on artificial intelligence and statistics, pages 249-256, 2010. 1
+[12] Ariel Gordon, Elad Eban, Ofir Nachum, Bo Chen, Hao Wu, Tien-Ju Yang, and Edward Choi. Morphnet: Fast & simple resource-constrained structure learning of deep networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1586-1595, 2018. 1, 2, 3, 4, 6, 7, 8, 11, 17
+[13] 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
+[14] Song Han, Jeff Pool, Sharan Narang, Huizi Mao, Shijian Tang, Erich Elsen, Bryan Catanzaro, John Tran, and William J Dally. Dsd: regularizing deep neural networks with dense-sparse-dense training flow. arXiv preprint arXiv:1607.04381, 3(6), 2016. 2
+
+[15] 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, pages 1135-1143, 2015. 2
+[16] Babak Hassibi and David G Stork. Second order derivatives for network pruning: Optimal brain surgeon. In Advances in neural information processing systems, pages 164-171, 1993. 2
+[17] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the IEEE international conference on computer vision, pages 1026-1034, 2015. 1
+[18] 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, 5
+[19] Yihui He, Ji Lin, Zhijian Liu, Hanrui Wang, Li-Jia Li, and Song Han. Amc: Automl for model compression and acceleration on mobile devices. In Proceedings of the European Conference on Computer Vision (ECCV), pages 784-800, 2018. 2
+[20] Yang He, Ping Liu, Ziwei Wang, Zhilan Hu, and Yi Yang. Filter pruning via geometric median for deep convolutional neural networks acceleration. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4340-4349, 2019. 2
+[21] Suzana Herculano-Houzel. The human brain in numbers: a linearly scaled-up primate brain. Frontiers in human neuroscience, 3:31, 2009. 1
+[22] 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. arXiv preprint arXiv:1905.02244, 2019. 1
+[23] Andrew G Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andretto, and Hartwig Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. arXiv preprint arXiv:1704.04861, 2017. 1, 3, 4, 6
+[24] Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4700-4708, 2017. 1
+[25] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015. 2, 3
+[26] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, Cite-seer, 2009. 5
+[27] Yann LeCun, John S Denker, and Sara A Solla. Optimal brain damage. In Advances in neural information processing systems, pages 598-605, 1990. 2
+[28] Namhoon Lee, Thalaiyasingam Ajanthan, and Philip HS Torr. Snip: Single-shot network pruning based on connection sensitivity. arXiv preprint arXiv:1810.02340, 2018. 2
+[29] Hao Li, Asim Kadav, Igor Durdanovic, Hanan Samet, and Hans Peter Graf. Pruning filters for efficient convnets. arXiv preprint arXiv:1608.08710, 2016. 2, 7, 8, 11
+
+[30] Chenxi Liu, Barret Zoph, Maxim Neumann, Jonathon Shlens, Wei Hua, Li-Jia Li, Li Fei-Fei, Alan Yuille, Jonathan Huang, and Kevin Murphy. Progressive neural architecture search. In Proceedings of the European Conference on Computer Vision (ECCV), pages 19–34, 2018. 2
+[31] Hanxiao Liu, Karen Simonyan, and Yiming Yang. Darts: Differentiable architecture search. arXiv preprint arXiv:1806.09055, 2018. 2
+[32] Zhuang Liu, Jianguo Li, Zhiqiang Shen, Gao Huang, Shoumeng Yan, and Changshui Zhang. Learning efficient convolutional networks through network slimming. In Proceedings of the IEEE International Conference on Computer Vision, pages 2736-2744, 2017. 2
+[33] Zhuang Liu, Mingjie Sun, Tinghui Zhou, Gao Huang, and Trevor Darrell. Rethinking the value of network pruning. arXiv preprint arXiv:1810.05270, 2018. 2, 4, 7, 8
+[34] Jian-Hao Luo, Jianxin Wu, and Weiyao Lin. Thinet: A filter level pruning method for deep neural network compression. In Proceedings of the IEEE international conference on computer vision, pages 5058-5066, 2017. 2
+[35] Pavlo Molchanov, Arun Mallya, Stephen Tyree, Iuri Frosio, and Jan Kautz. Importance estimation for neural network pruning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 11264-11272, 2019. 2, 3, 5, 6, 7, 8, 11, 17
+[36] Pavlo Molchanov, Stephen Tyree, Tero Karras, Timo Aila, and Jan Kautz. Pruning convolutional neural networks for resource efficient inference. arXiv preprint arXiv:1611.06440, 2016. 3
+[37] Pavlo Molchanov, Stephen Tyree, Tero Karras, Timo Aila, and Jan Kautz. Pruning convolutional neural networks for resource efficient transfer learning. arXiv preprint arXiv:1611.06440, 3, 2016. 2
+[38] 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. 1
+[39] Kirill Neklyudov, Dmitry Molchanov, Arsenii Ashukha, and Dmitry P Vetrov. Structured bayesian pruning via log-normal multiplicative noise. In Advances in Neural Information Processing Systems, pages 6775-6784, 2017. 2
+[40] Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in PyTorch. In NIPS Autodiff Workshop, 2017. 5
+[41] Hieu Pham, Melody Y Guan, Barret Zoph, Quoc V Le, and Jeff Dean. Efficient neural architecture search via parameter sharing. arXiv preprint arXiv:1802.03268, 2018. 2
+[42] Prajit Ramachandran, Barret Zoph, and Quoc V Le. Searching for activation functions. arXiv preprint arXiv:1710.05941, 2017. 1
+[43] Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhoginov, and Liang-Chieh Chen. *Mobilenetv2: Inverted residuals and linear bottlenecks*. In *Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition*, pages 4510–4520, 2018. 1, 5, 6
+
+[44] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. 1, 5
+[45] Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1-9, 2015. 1
+[46] Mingxing Tan, Bo Chen, Ruoming Pang, Vijay Vasudevan, Mark Sandler, Andrew Howard, and Quoc V Le. Mnasnet: Platform-aware neural architecture search for mobile. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2820-2828, 2019. 2
+[47] Mingxing Tan and Quoc V Le. Efficientnet: Rethinking model scaling for convolutional neural networks. arXiv preprint arXiv:1905.11946, 2019. 2
+[48] Lucas Theis, Iryna Korshunova, Alykhan Tejani, and Ferenc Huszar. Faster gaze prediction with dense networks and fisher pruning. arXiv preprint arXiv:1801.05787, 2018. 3
+[49] Andreas Veit, Michael J Wilber, and Serge Belongie. Residual networks behave like ensembles of relatively shallow networks. In Advances in neural information processing systems, pages 550-558, 2016. 6
+[50] Sirui Xie, Hehui Zheng, Chunxiao Liu, and Liang Lin. Snas: stochastic neural architecture search. arXiv preprint arXiv:1812.09926, 2018. 2
+[51] Tien-Ju Yang, Yu-Hsin Chen, and Vivienne Sze. Designing energy-efficient convolutional neural networks using energy-aware pruning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5687-5695, 2017. 2
+[52] Chenglong Zhao, Bingbing Ni, Jian Zhang, Qiwei Zhao, Wenjun Zhang, and Qi Tian. Variational convolutional neural network pruning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2780-2789, 2019. 2
+[53] Hattie Zhou, Janice Lan, Rosanne Liu, and Jason Yosinski. Deconstructing lottery tickets: Zeros, signs, and the supermask. arXiv preprint arXiv:1905.01067, 2019. 3
+[54] Barret Zoph and Quoc V Le. Neural architecture search with reinforcement learning. arXiv preprint arXiv:1611.01578, 2016. 2
\ No newline at end of file
diff --git a/neuralscaleefficientscalingofneuronsforresourceconstraineddeepneuralnetworks/images.zip b/neuralscaleefficientscalingofneuronsforresourceconstraineddeepneuralnetworks/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..caa45042a214e64e7228dbe555dfcecd162b7d7b
--- /dev/null
+++ b/neuralscaleefficientscalingofneuronsforresourceconstraineddeepneuralnetworks/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ca377b559d868ceb281a6c745ce6ef1c72755468ad06118e6eed877994986fc7
+size 598292
diff --git a/neuralscaleefficientscalingofneuronsforresourceconstraineddeepneuralnetworks/layout.json b/neuralscaleefficientscalingofneuronsforresourceconstraineddeepneuralnetworks/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..79de95730faf5fadee988d3c84e4641809062df0
--- /dev/null
+++ b/neuralscaleefficientscalingofneuronsforresourceconstraineddeepneuralnetworks/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b681c3d17da706d92a286b2aaee28eb062cf17824301d13d780a64fb5f5ee68b
+size 418320
diff --git a/neuraltopologicalslamforvisualnavigation/83c60346-01cd-49e1-8294-0d0f2fd7db01_content_list.json b/neuraltopologicalslamforvisualnavigation/83c60346-01cd-49e1-8294-0d0f2fd7db01_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..8cc418f436618e82e613448b09ddf9a891592d7c
--- /dev/null
+++ b/neuraltopologicalslamforvisualnavigation/83c60346-01cd-49e1-8294-0d0f2fd7db01_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3286a95b9302886d0f6a7ffab3f497d29da93880cab178109de675186db49993
+size 69981
diff --git a/neuraltopologicalslamforvisualnavigation/83c60346-01cd-49e1-8294-0d0f2fd7db01_model.json b/neuraltopologicalslamforvisualnavigation/83c60346-01cd-49e1-8294-0d0f2fd7db01_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..4fb47c33a04d2cc892c68efccb67a6f1f0adcc95
--- /dev/null
+++ b/neuraltopologicalslamforvisualnavigation/83c60346-01cd-49e1-8294-0d0f2fd7db01_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:de6d012e656df5272036691dc2dc402011e5825d358ceb71ff5448b4c4d3ad61
+size 86117
diff --git a/neuraltopologicalslamforvisualnavigation/83c60346-01cd-49e1-8294-0d0f2fd7db01_origin.pdf b/neuraltopologicalslamforvisualnavigation/83c60346-01cd-49e1-8294-0d0f2fd7db01_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..7ad3c808e173939a5e0b085756541df4a43814cc
--- /dev/null
+++ b/neuraltopologicalslamforvisualnavigation/83c60346-01cd-49e1-8294-0d0f2fd7db01_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:64a6dd6fc672d86b8b1dc40d3992fff62835e8b750c0196847c47bc14edfff78
+size 1168173
diff --git a/neuraltopologicalslamforvisualnavigation/full.md b/neuraltopologicalslamforvisualnavigation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..f1e088df02229fbd4aae9faae59c4791f80efc45
--- /dev/null
+++ b/neuraltopologicalslamforvisualnavigation/full.md
@@ -0,0 +1,239 @@
+# Neural Topological SLAM for Visual Navigation
+
+Devendra Singh Chaplot $^{1\dagger}$ , Ruslan Salakhutdinov $^{1*}$ , Abhinav Gupta $^{1,2*}$ , Saurabh Gupta $^{3*}$ $^{1}$ Carnegie Mellon University, $^{2}$ Facebook AI Research, $^{3}$ UIUC
+
+Project webpage: https://devendrachaplot.github.io/projects/Neural-Topological-SLAM
+
+# Abstract
+
+This paper studies the problem of image-goal navigation which involves navigating to the location indicated by a goal image in a novel previously unseen environment. To tackle this problem, we design topological representations for space that effectively leverage semantics and afford approximate geometric reasoning. At the heart of our representations are nodes with associated semantic features, that are interconnected using coarse geometric information. We describe supervised learning-based algorithms that can build, maintain and use such representations under noisy actuation. Experimental study in visually and physically realistic simulation suggests that our method builds effective representations that capture structural regularities and efficiently solve long-horizon navigation problems. We observe a relative improvement of more than $50\%$ over existing methods that study this task.
+
+# 1. Introduction
+
+Imagine you are in a new house as shown in Fig 1 and you are given the task of finding a target object as shown in Fig 1 (top). While there are multiple possible directions to move, most of us would choose the path number 2 to move. This is because we use strong structural priors - we realize the target is an oven which is more likely to be found in the kitchen which seems accessible via path number 2. Now let us suppose, once you reach the oven, your goal is to reach back to the living room which you saw initially. How would you navigate? The answer to this question lies in how we humans store maps (or layout) of the house we just traversed. One possible answer would be metric maps, in which case we would know exactly how many steps to take to reach the living room. But this is clearly not how we humans operate [16,41]. Instead, most of us would first get out of the kitchen by moving to the hallway and then navigate to the living room which is visible from the hallway.
+
+It is clear from the above examples, there are two main
+
+
+Figure 1: Semantic Priors and Landmarks. When asked to go to target image of an oven most humans would use the path number 2 since it allows access to kitchen. Humans use semantic priors and common-sense to explore and navigate everyday yet most navigation algorithms struggle to do so.
+
+components of a successful visual navigation algorithm: (a) ability to build spatial representations and store them; (b) ability to exploit structural priors. When it comes to spatial representations, the majority of papers in navigation insist on building metrically precise representations of free space. However, metric maps have two major shortcomings: first, metric maps do not scale well with environment size and amount of experience. But more importantly, actuation noise on real-robots makes it challenging to build consistent representations, and precise localization may not always be possible. When it comes to exploiting structural priors, most learning-based approaches do not model these explicitly. Instead, they hope the learned policy function has these priors encoded implicitly. But it still remains unclear if these policy functions can encode semantic priors when learned via RL.
+
+In this paper, we propose to tackle both the problems head-on. Instead of using metric-maps which are brittle to localization and noise, we propose a topological representation of the space. Our proposed representation consists of nodes that are connected in the form of a graph, based on local geometry information. Each node is repre
+
+
+Figure 2: Model Overview. Figure showing an overview of the proposed model, Neural Topological SLAM. It consists of 3 components, a Graph Construction module which updates the topological map as it receives observations, a Global Policy which samples subgoals, and a Local Policy which takes navigational actions to reach the subgoal. See text for more details.
+
+sented visually via a 360-degree panoramic image. Nodes are connected to each other using approximate relative pose between them. But what makes our visual topological maps novel are two directional functions $\mathcal{F}_g$ and $\mathcal{F}_s$ , which extract geometric and semantic properties of nodes. Specifically, $\mathcal{F}_g$ estimates how likely agent will encounter free-space and $\mathcal{F}_s$ estimates how likely target image is to be encountered if the agent moves in a particular direction. By explicitly modeling and learning function $\mathcal{F}_s$ , our model ensures that structural priors are encoded and used when exploring and navigating new unseen environments.
+
+Our representation has few advantages over classical and end-to-end learning-based approaches: (a) it uses graph-based representation which allows efficient long-term planning; (b) it explicitly encodes structural priors via function $\mathcal{F}_s$ ; (c) the geometric function $\mathcal{F}_g$ allows efficient exploration and online map building for a new environment; (d) but most importantly, all the functions and policies can be learned in completely supervised manner forgoing the need for unreliable credit assignment via RL.
+
+# 2. Related Work
+
+Our paper makes contributions across the following multiple aspects of the navigation problem: space representation, training paradigm for navigation policies, and different navigation tasks. We survey works in these areas below.
+
+Navigation Tasks. Navigation tasks can be divided into two main categories. The first category of tasks is ones where the goal location is known, and limited exploration is necessary. This could be in the form of a simply wandering around without colliding [15, 33], following an object [22], getting to a goal coordinate [1, 17]: using sequence of images along the path [5, 21], or language-based instructions [2]. Sometimes, the goal is specified as an image but experience from the environment is available in the form of demonstrations [13, 34], or in the form of reward-based training [24, 47], which again limits the role of exploration. The second category of tasks is when the goal is not known and exploration is necessary. Examples are tasks such as
+
+finding an object [17], or room [42], in a novel environment, or explicit exploration [6, 9]. These task categories involve different challenges. The former tasks focus on effective retrieval and robust execution, while the later tasks involve semantic and common sense reasoning in order to efficiently operate in previously unseen environments. Our focus, in this work, is the task of reaching a target image in a novel environment. No experience is available from the environment, except for the target image. We aren't aware of any works that target this specific problem.
+
+Classical Space Representations. Spatial and topological representations have a rich history in robot navigation. Researchers have used explicit metric spatial representations [12], and have considered how can such representations be built with different sensors [19,26-28,38], and how can agents be localized against such representations [11]. Recent work has started associating semantics with such spatial representations [4]. In a similar vein, non-metric topological representations have also been considered in classical literature [10, 20, 23]. Some works combine topological and metric representations [39, 40], and some study topological representations that are semantic [20]. While our work builds upon the existing literature on topological maps, the resemblance is only at high-level graph structure. Our work focuses on making visual topological mapping and exploration scalable, robust and efficient. We achieve this via the representation of both semantic and geometric properties in our topological maps; the ability to build topological maps in an online manner and finally, posing the learning problem as a supervised problem.
+
+Learned Space Representations. Depending on the problem being considered, different representations have been investigated. For short-range locomotion tasks, purely reactive policies [3, 15, 22, 33] suffice. For more complex problems such as target-driven navigation in a novel environment, such purely reactive strategies do not work well [47], and memory-based policies have been investigated. This can be in the form of vanilla neural network memories such as LSTMs [25, 29], or transformers [14]. Researchers
+
+
+Figure 3: Geometric Explorable Area Prediction $(\mathcal{F}_G)$ . Figure showing sample input image $(I)$ and output predictions of the Geometric Explorable Area Prediction function $(\mathcal{F}_G)$ . The green boxes show doorways for reference, and are not available as input.
+
+have also incorporated insights from classical literature into the design of expressive neural memories for navigation. This includes spatial memories [17, 30] and topological approaches [8, 13, 34, 35, 42, 45]. Learned spatial approaches can acquire expressive spatial representations [17], they are however bottle-necked by their reliance on metric consistency and thus have mostly been shown to work in discrete state spaces for comparatively short-horizon tasks [17, 30]. Researchers have also tackled the problem of passive and active localization [7, 26], in order to aid building such consistent metric representations. Some topological approaches [8, 13, 34] work with human explorations or prebuilt topological maps, thus ignoring the problem of exploration. Others build a topological representation with explicit semantics [42, 46], which limits tasks and environments that can be tackled. In contrast from past work, we unify spatial and topological representations in a way that is robust to actuation error, show how we can incrementally and autonomously build topological representations, and do semantic reasoning.
+
+Training Methodology. Different tasks have also lead to the design of different training methodologies for training navigation policies. This ranges from reinforcement learning with sparse and shaped rewards [24, 25, 31, 33, 47], imitation learning and DAgger [17, 32], self-supervised learning for individual components [15, 34]. While RL allows learning of rich exploratory behavior, training policies using RL is notoriously hard and sample inefficient. Imitation learning is sample efficient but may not allow learning exploratory behavior. Self-supervised learning is promising but has only been experimented in the context of known goal tasks. We employ a supervised learning approach and show how we can still learn expressive exploration behavior while at the same time not suffering from exuberant sample complexity for training.
+
+
+Figure 4: Semantic Score Prediction $(\mathcal{F}_S)$ . Figure showing sample input and output predictions of the Semantic Score Prediction function $(\mathcal{F}_S)$ . The score predictions change based on the goal image. When the goal image is of the living room (left), the score of the directions in the center are higher as they lead to the living room. When the goal image is of a bedroom (right), the scores corresponding to the pathway on the left are higher as they are more likely to lead to the bedroom.
+
+# 3. Task Setup
+
+We consider an autonomous agent situated in an episodic environment. At the beginning of an episode, the agent receives a target goal image, $I_G$ . At each time step $t$ , the agent receives observations $(s_t)$ from the environment. Each observation consists of the current first-person image observation, $I_t$ , from a panoramic camera and a pose estimate from a noisy motion sensor. At each time step, the agent takes a navigational action $a_t$ . The objective is to learn a policy $\pi(a_t | s_t, I_G)$ to reach the goal image. In our experimental setup, all images are panoramas, including agent observations and goal image.
+
+# 4. Methods
+
+We propose a modular model, 'Neural Topological SLAM (NTS), which builds and maintains a topological map for navigation. The topological map is represented using a graph, denoted by $G_{t}$ at time $t$ . Each node in the graph $(N_{i})$ is associated with a panoramic image $(I_{N_i})$ and represents the area visible in this image. Two nodes are connected by an edge $(E_{i,j})$ if they represent adjacent areas. Each edge also stores the relative pose between two nodes, $\Delta p_{ij}$ .
+
+Our model consists of three components, a Graph Update module, a Global Policy, and a Local Policy. On a high level, the Graph Update module updates the topological map based on agent observations, the Global Policy selects a node in the graph as the long-term goal and finds a subgoal to reach the goal using path planning, and the Local Policy navigates to the subgoal based on visual observations. Fig. 2 provides an overview of the proposed model.
+
+The above components will require access to 4 functions. We first define these 4 functions and then describe how they are used by the components of the model.
+
+
+Figure 5: Graph Update. Figure showing an overview of the Graph Update Module. It takes the current Graph $(G_{t})$ and the agent observation $(I_{t})$ as input. It first tries to localize the agent in the Graph. If the agent is localized in a node different from the last timestep, it changes the location of the agent and adds an edge if required. If the agent is not localized, a new node is added and corresponding ghost nodes are added using the geometric explorable area prediction function $(\mathcal{F}_G)$ . See the text for more details.
+
+Graph Localization $(\mathcal{F}_L)$ . Given a graph $G$ and an image $I$ , this function tries to localize $I$ in a node in the graph. An image is localized in a node if its location is visible from the panoramic image associated with the node. Internally, this requires comparing each node image $(I_{N_i})$ with the given image $(I)$ to predict whether $I$ belongs to node $N_i$ .
+
+Geometric Explorable Area Prediction $(\mathcal{F}_G)$ . Given an image $I$ , this function makes $n_\theta = 12$ different predictions of whether there's explorable area in the direction $\theta$ sampled uniformly between 0 and $2\pi$ . Figure 3 shows an example of input and output of this function. Intuitively, it recognizes doors or hallways which lead to other areas.
+
+Semantic Score Prediction $(\mathcal{F}_S)$ . Given a source image $I_S$ and a goal image $I_G$ , this function makes $n_\theta = 12$ different predictions of how fast the agent is likely to reach the goal image if it explores in the direction $\theta$ sampled uniformly between 0 and $2\pi$ . Figure 4 shows example input-output pairs for this function. The scores corresponding to the same source image change as the goal image changes. Estimating this score requires the model to learn semantic priors about the environment.
+
+Relative Pose Prediction $(\mathcal{F}_R)$ . Given a source image $I_S$ and a goal image $I_G$ which belong to the same node, this function predicts the relative pose $(\Delta p_{S,G})$ of the goal image from the source image.
+
+# 4.1. Model components
+
+Assuming that we have access to the above functions, we first describe how these functions are used by the three components to perform Image Goal Navigation. We then describe how we train a single model to learn all the above functions using supervised learning.
+
+Graph Update. The Graph Update module is responsible for updating the topological map given agent observations. At $t = 0$ , the agent starts with an empty graph. At each time step, the Graph Update module ( $f_{GU}$ ) takes in the current
+
+observations $s_t$ and the previous topological map $G_{t-1}$ and outputs the updated topological map, $G_t = f_{GU}(s_t, G_{t-1})$ . Figure 5 shows an overview of the Graph Update Module.
+
+In order to update the graph, the module first tries to localize the current image in a node in the current graph using the Graph Localization function $(\mathcal{F}_L)$ . If the current image is localized in a node different from the last node, we add an edge between the current node and the last node (if it does not exist already). If the current image is not localized, then we create a new node with the current image. We also add an edge between the new node and the last node. Every time we add an edge, we also store the relative pose $(\Delta p)$ between the two nodes connected by the edge using the sensor pose estimate.
+
+The above creates a graph of the explored areas. In order to explore new areas, we also predict and add unexplored areas to the graph. We achieve this by augmenting the graph with 'ghost' nodes which are agent's prediction of explorable areas using the Geometric Explorable Area Prediction function $(\mathcal{F}_G)$ . If there is an explorable area in a direction $\theta$ , we add a 'ghost' node $(X_{k})$ and connect it to the new node $(N_{i})$ using edge $E_{i,k}$ . Since we do not have the image at the ghost node location, we associate a patch of the node image in the direction of $\theta$ , i.e. $(I_{X_k} = I_{N_i,\theta})$ . The relative pose between the new node and the ghost node is stored as $(r,\theta)$ , where $\theta$ is the direction and $r = 3m$ is the radius of the node. The ghost nodes are always connected to exactly one regular node and always correspond to unexplored areas. We ensure this by removing ghost nodes when adding regular nodes in the same direction, and not adding ghost nodes in a particular direction if a regular node exists in that direction. Intuitively, ghost nodes correspond to the unexplored areas at the boundary of explored areas denoted by regular nodes.
+
+Global Policy. The Global Policy is responsible for selecting a node in the above graph as the long-term goal. It first tries to localize the goal image in the current graph using the Graph Localization function $(\mathcal{F}_L)$ . If the goal image $(I_G)$ is
+
+
+Figure 6: Global Policy. Figure showing an overview of the Global Policy. It takes the current Graph $(G_{t})$ and the Goal Image $(I_G)$ as input. It first tries to localize the Goal Image in the Graph. If the Goal Image is localized, the corresponding node is selected as the long-term goal. If the Goal Image is not localized, then the semantic scoring function $(\mathcal{F}_S)$ is used to score all the ghost nodes based on how close they are to the goal image. The ghost node with the highest score is selected as the long-term goal. Given a long-term goal, a subgoal node is computed using graph path planning. The relative directions to the subgoal node are the output of the Global Policy which is passed to the Local Policy.
+
+localized in a node $N_{i}$ , then $N_{i}$ is chosen as the long-term goal. If the goal image is not localized, then the Global Policy needs to choose an area to explore, i.e. choose a ghost node for exploration. We use the Semantic Score Prediction $(\mathcal{F}_S)$ function to predict the score of all ghost nodes. The Global Policy then just picks the ghost node with the highest score as the long-term goal.
+
+Once a node is selected as a long-term goal, we plan the path to the selected node from the current node using Dijkstra's algorithm on the current graph. The next node on the shortest path is chosen to be the subgoal $(N_{SG})$ . The relative pose associated with the edge to the subgoal node is passed to the Local Policy $(\Delta p_{i,SG})$ .
+
+If the goal image is localized in the current node (or the agent reaches the node $N_{i}$ where the goal image $(I_G)$ is localized), the Global policy needs to predict the relative pose of $I_G$ with respect to the current agent observation. We use the Relative Pose Prediction $(\mathcal{F}_R)$ function to get the relative pose of the goal image, which is then passed to the Local Policy.
+
+Local Policy. The Local Policy receives the relative pose as goal directions which comprises of distance and angle to the goal. Given the current image observation and the relative goal directions, the Local Policy takes navigation actions to reach the relative goal. This means the Local Policy is essentially a PointGoal navigation policy. Our Local Policy is adapted from [6]. It predicts a local spatial map using a learned mapper model in the case of RGB input or using geometric projections of the depth channel in case of RGBD input. It then plans a path to the relative goal using shortest path planning.
+
+# 4.2. Training NTS Multi-task Learning model
+
+Given access to the four functions described above, we discussed how the different components use these functions for navigation. In this subsection, we describe how
+
+we train a single multi-task learning model to learn all the four functions. Figure 7 shows an overview of this multitask learning model. It takes a Source Image $(I_S)$ and a Goal Image $(I_G)$ as input and encodes them using a shared ResNet18 [18] encoder. It first predicts whether the two images belong to the same node or not. This prediction is used to implement the Graph Localization function $(\mathcal{F}_L)$ . If they belong to the same node, it makes Intra-Node predictions which include the direction and score (or equivalently) distance of the Goal Image relative to the Source Image. These predictions are used to implement the Relative Pose Prediction function $(\mathcal{F}_R)$ . If they belong to different nodes, it makes Inter-Node Predictions which include directions of explorable areas (which is used as the Geometric Explorable Area Prediction function $(\mathcal{F}_G)$ ) and a semantic score corresponding to each explorable area denoting its proximity of the Goal Image (which is used as the Semantic Score Prediction function $(\mathcal{F}_S)$ ). The Connection, Intra-Node Prediction, and Inter-Node Prediction models consist of fully-connected layers with ReLU activations and dropout. Exact details are deferred to the supplementary material.
+
+# 5. Experimental Setup
+
+Environment. All our experiments are conducted in the Habitat simulator [36] with the Gibson [43] dataset. The Gibson dataset is visually realistic as it consists of reconstructions of real-world scenes. We also implement physically realistic motion sensor and actuation noise models as proposed by [6]. Actuation motion noise leads to stochastic transitions as the amount translated or rotated by the agent is noisy. This model also adds realistic translational noise in rotation actions and rotational noise in translational actions. The sensor noise model adds realistic noise to the base odometry sensor readings. Both the noise models are based on real-world data and agents trained on these noise models are shown to transfer to the real-world [6].
+
+
+Figure 7: NTS Multi-task Learning Model. Figure showing an overview of the NTS Multi-task Learning Model. It takes a Source Image $(I_S)$ and a Goal Image $(I_G)$ as input and encodes them using a shared ResNet18 encoder. It first predicts whether the two images belong to the same node or not. If they belong to the same node, it makes Intra-Node predictions which include the direction and score (or equivalently) distance of the Goal Image relative to the Source Image. If they belong to different nodes, it makes Inter-Node Predictions which include directions of explorable areas and a semantic score corresponding to each explorable area denoting its proximity of the Goal Image. All the predictions of this model are used at various places in the components of the overall NTS model. See text for more details.
+
+Task setup. We use panoramic images of size $128 \times 512$ for both agent image observation and target goal image. We conduct experiments with both RGB and RGBD settings. The base odometry sensor provides a $3 \times 1$ reading denoting the change in agent's x-y coordinates and orientation. The action space consists of four actions: move_forward, turn_right, turn_left, stop. The forward action moves the agent approximately $25\mathrm{cm}$ forward and the turn actions turn the agent approximately 10 degrees. Note that the state space and motion of the agent are continuous. The agent succeeds in an episode if it takes the stop action within a $1m$ radius of the target location. The agent fails if it takes stop action anywhere else or does not take the stop till the episode ends. In addition to the success rate, we also use Success weighted by inverse Path Length (SPL) as an evaluation metric as proposed by [1]. It takes into account the efficiency of the agent in reaching the goal (shorter successful trajectories lead to higher SPL).
+
+Training data. We split the curated set of 86 scenes from [36] into sets of 68/4/14 scenes for train/val/test. For training our supervised learning model, we sample 300 images randomly in each of 68 training scenes. We get labels for pairs of source and target images in each scene giving us a total of approximately $68 \times 300 \times 300 = 6.12$ million data points. The labeling process is automated and it only requires the ground-truth map already available with the dataset without the need for any additional human annotation. Details of the labeling process are deferred to the supplementary material. Note that sampling images or the ground-truth map are not required for the test environments.
+
+Test episodes. For creating test episodes, we sample episodes (given by starting and goal locations) in the test scenes to create 3 different sets of difficulty based on the distance of the goal from starting locations: Easy $(1.5 -$
+
+$3m)$ , Medium $(3 - 5m)$ and Hard $(5 - 10m)$ . The maximum episode length is 500 steps or each difficulty level.
+
+# 5.1. Baselines
+
+We use the following baselines for our experiments:
+
+ResNet + GRU + IL. A simple baseline consisting of ResNet18 image encoder and GRU based policy trained with imitation learning (IL).
+
+Target-driven RL. A siamese style model for encoding the current image and the goal image using shared convolutional networks and trained end-to-end with reinforcement learning, adapted from Zhu et al. [47].
+
+Metric Spatial Map + RL. An end-to-end RL model which uses geometric projections of the depth image to create a local map and passes it to the RL policy, adapted from Chen et al. [9].
+
+Metric Spatial Map + FBE + Local. This is a hand-designed baseline which creates a map using depth images and then uses a classical exploration heuristic called Frontier-based Exploration (FBE) [44] which greedily explores nearest unexplored frontiers in the map. We use the Localization model and Local Policy from NTS to detect when a goal is nearby and navigate to it.
+
+Active Neural SLAM. This is a recent modular model based on Metric Spatial Maps proposed for the task of exploration. We adapt it to the Image Goal task by using the Localization model and Local Policy from NTS to detect when a goal is nearby and navigate to it.
+
+All the baselines are trained for 25 million frames. RL baselines are trained using Proximal Policy Optimization [37] with a dense reward function. The reward function includes a high reward for success $(= \mathrm{SPL}^*10)$ , a shaping reward equal to the decrease in distance to the goal and a per step reward of -0.001 to encourage shorter trajectories. ResNet + GRU + IL is trained using behavioral
+
+ | Model | Easy | Medium | Hard | Overall |
| Succ | SPL | Succ | SPL | Succ | SPL | Succ | SPL |
| RGB | ResNet + GRU + IL | 0.57 | 0.23 | 0.14 | 0.06 | 0.04 | 0.02 | 0.25 | 0.10 |
| Target-driven RL [47] | 0.56 | 0.22 | 0.17 | 0.06 | 0.06 | 0.02 | 0.26 | 0.10 |
| Active Neural SLAM (ANS) [6] | 0.63 | 0.45 | 0.31 | 0.18 | 0.12 | 0.07 | 0.35 | 0.23 |
| Neural Topological SLAM (NTS) | 0.80 | 0.60 | 0.47 | 0.31 | 0.37 | 0.22 | 0.55 | 0.38 |
| RGBD | ResNet + GRU + IL | 0.72 | 0.32 | 0.16 | 0.09 | 0.05 | 0.02 | 0.31 | 0.14 |
| Target-driven RL [47] | 0.68 | 0.28 | 0.21 | 0.08 | 0.09 | 0.03 | 0.33 | 0.13 |
| Metric Spatial Map + RL [9] | 0.69 | 0.27 | 0.22 | 0.07 | 0.12 | 0.04 | 0.34 | 0.13 |
| Metric Spatial Map + FBE + RL | 0.77 | 0.56 | 0.36 | 0.18 | 0.13 | 0.05 | 0.42 | 0.26 |
| Active Neural SLAM (ANS) [6] | 0.76 | 0.55 | 0.40 | 0.24 | 0.16 | 0.09 | 0.44 | 0.29 |
| Neural Topological SLAM (NTS) | 0.87 | 0.65 | 0.58 | 0.38 | 0.43 | 0.26 | 0.63 | 0.43 |
+
+Table 1: Results. Performance of the proposed model Neural Topological SLAM (NTS) and the baselines in RGB and RGBD settings.
+
+cloning on the ground-truth trajectory. This means just like the proposed model, all the baselines also use the ground-truth map for training. In terms of the number of training samples, sampling 300 random images in the environment would require 300 episode resets in the RL training setup. 300 episodes in 68 scenes would lead to a maximum of 10.2 million $(= 68 \times 300 \times 500)$ samples. Since we use 25 million frames to train our baselines, they use strictly more data than our model. Furthermore, our model does not require any interaction in the environment and can be trained offline with image data.
+
+# 6. Results
+
+We evaluate the proposed method and all the baselines on 1000 episodes for each difficulty setting. We compare all the methods across all difficulty levels in both RGB and RGBD settings in Table 1. The results show that the proposed method outperforms all the baselines by a considerable margin across all difficulty settings with an overall Succ/SPL of 0.55/0.38 vs 0.35/0.23 in RGB and 0.63/0.43 vs 0.44/0.29 in RGBD. The results also indicate the relative improvement of NTS over the baselines increases as the difficulty increases leading to a large improvement in the hard setting (0.43/0.26 vs 0.16/0.09 in RGBD).
+
+Comparison with end-to-end RL and the effect of stop action. The results indicate that NTS performs better than both end-to-end RL based baselines [9, 47] and methods using metric spatial maps [6, 9]. The performance of the RL-based baselines is much weaker than the proposed model. We believe the reason behind this is the complexity of the exploration search space. Compared to the Pointgoal navigation task where the agent receives updated direction to the goal at each time step, Image Goal navigation is more difficult in terms of exploration as the goal image does not directly provide the direction to explore. Another difficulty is exploring the 'stop' action. Prior setups of the Image Goal
+
+task where end-to-end RL policies were shown to perform reasonably well assumed that the agent succeeded if it hits the goal state. However, based on the suggestion from [1], we added the 'stop' action as it is more realistic. To quantify the effect of stop action, we report the performance of all the models without the stop action in Table 2(left). We see that the performance of RL baselines is much higher. However, the performance of NTS also increases as the agent automatically stops when it reaches the goal state instead of using the prediction of the Relative Pose Estimator to stop. Other differences that make our experimental setup more realistic but also makes exploration harder for RL as compared to prior setups include continuous state space as compared to grid-based state space, fine-grained action as compared to 90 degree turns and grid cell forward steps and stochastic transitions due to realistic motion noise.
+
+Comparison with spatial map-based methods and the effect of motion noise. The performance of metric spatial map-based baselines drops quickly as the distance to the goal increases. This is likely due to the accumulation of pose errors as the trajectory length increases. Errors in pose prediction make the map noisy and eventually lead to incorrect path planning. To quantify this effect, we evaluate all the models without any motion actuation and sensor noise in Table 2(right). The results show that the performance of the metric map-based baselines scales much better with distance in the absence of motion noise, however, the performance of NTS does not increase much. This indicates that NTS is able to tackle motion noise relatively well. This is because NTS only uses pose estimates between consecutive nodes, which do not accumulate much noise as they are a few actions away from each other. The performance of NTS is still better than the baselines even without motion noise as it consists of Semantic Score Predictor $(\mathcal{F}_S)$ capable of learning structural priors which the metric spatial map-based baselines lack. We quantify the effect of the Semantic Score Predictor in the following subsection.
+
+| Model | RGBD - No stop | RGBD - No Noise |
| Easy | Med. | Hard | Overall | Easy | Med. | Hard | Overall |
| ResNet + GRU + IL | 0.76 | 0.28 | 0.10 | 0.38 | 0.71 | 0.18 | 0.06 | 0.32 |
| Target-driven RL [47] | 0.89 | 0.45 | 0.21 | 0.52 | 0.69 | 0.22 | 0.07 | 0.33 |
| Metric Spatial Map + RL [9] | 0.89 | 0.45 | 0.21 | 0.52 | 0.70 | 0.24 | 0.11 | 0.35 |
| Metric Spatial Map + FBE + RL | 0.92 | 0.46 | 0.29 | 0.56 | 0.78 | 0.46 | 0.23 | 0.49 |
| Active Neural SLAM (ANS) [6] | 0.93 | 0.50 | 0.32 | 0.58 | 0.79 | 0.53 | 0.30 | 0.54 |
| Neural Topological SLAM (NTS) | 0.94 | 0.70 | 0.60 | 0.75 | 0.87 | 0.60 | 0.46 | 0.64 |
+
+Table 2: No stop and no noise. Success rate of the proposed model NTS and the baselines without stop action (left) and without motion noise (right) in the RGBD setting.
+
+
+Figure 8: Performance of the proposed model NTS and two ablations as a function of number of sequential goals.
+
+
+
+# 6.1. Ablations and Sequential Goals
+
+In this subsection, we evaluate the proposed model on sequential goals in a single episode and study the importance of the topological map or the graph and the Semantic Score Predictor $(\mathcal{F}_S)$ . For creating a test episode with sequential goals, we randomly sample a goal between $1.5m$ to $5m$ away from the last goal. The agent gets a time budget of 500 timesteps for each goal. We consider two ablations:
+
+NTS w/o Graph. We pick the direction with the highest score in the current image greedily, not updating or using the graph over time. Intuitively, the performance of this ablation should deteriorate as the number of sequential goals increases as it has no memory of past observations.
+
+Neural Topological SLAM w/o Score Function. In this ablation, we do not use the Semantic Score Predictor $(\mathcal{F}_S)$ and pick a ghost node randomly as the long-term goal when the Goal Image is not localized in the current graph. Intuitively, the performance of this ablation should improve with the increase in the number of sequential goals, as random exploration would build the graph over time and increase the likelihood of the Goal Image being localized.
+
+We report the success rate and SPL of NTS and the two ablations as a function of the number of sequential goals in Figure 8. Success, in this case, is defined as the ratio of goals reached by the agent across a test set of 1000 episodes. Firstly, the performance of NTS is considerably higher than both the ablations, indicating the importance of both the components. The performance of all the models decreases with an increase in the number of sequential goals
+
+because if the agent fails to reach an intermediate goal, there is a high chance that the subsequent goals are farther away. However, the performance gap between NTS and NTS w/o Score Function decreases and the performance gap between NTS and NTS w/o Graph increases with increase in the number of sequential goals as expected. This indicates that the topological map becomes more important over time as the agent explores a new environment, and while the Semantic Score Predictor is the most important at the beginning to explore efficiently.
+
+# 7. Discussion
+
+We designed topological representations for space that leverage semantics and afford coarse geometric reasoning. We showed how we can build such representation autonomously and use them for the task of image-goal navigation. Topological representations provided robustness to actuation noise, while semantic features stored at nodes allowed the use of statistical regularities for efficient exploration in novel environments. We showed how advances made in this paper make it possible to study this task in settings where no prior experience from the environment is available, resulting in a relative improvement of over $50\%$ . In the future, we plan to deploy our models on real robots.
+
+# Acknowledgements
+
+This work was supported by IARPA DIVA D17PC00340, ONR Grant N000141812861, ONR MURI, ONR Young Investigator, DARPA MCS, Apple and Nvidia.
+
+Gibson License: http://svl.stanford.edu/gibson2/
+
+assets/GDS_agreement.pdf
+
+# References
+
+[1] Peter Anderson, Angel Chang, Devendra Singh Chaplot, Alexey Dosovitskiy, Saurabh Gupta, Vladlen Koltun, Jana Kosecka, Jitendra Malik, Roozbeh Mottaghi, Manolis Savva, and Amir Zamir. On evaluation of embodied navigation agents. arXiv preprint arXiv:1807.06757, 2018. 2, 6, 7
+[2] Peter Anderson, Qi Wu, Damien Teney, Jake Bruce, Mark Johnson, Niko Sünderhauf, Ian Reid, Stephen Gould, and Anton van den Hengel. Vision-and-language navigation: Interpreting visually-grounded navigation instructions in real environments. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3674-3683, 2018. 2
+[3] Somil Bansal, Varun Tolani, Saurabh Gupta, Jitendra Malik, and Claire Tomlin. Combining optimal control and learning for visual navigation in novel environments. arXiv preprint arXiv:1903.02531, 2019. 2
+[4] Sean L Bowman, Nikolay Atanasov, Kostas Daniilidis, and George J Pappas. Probabilistic data association for semantic slam. In 2017 IEEE International Conference on Robotics and Automation (ICRA), pages 1722-1729. IEEE, 2017. 2
+[5] Jake Bruce, Niko Sunderhauf, Piotr Mirowski, Raia Hadsell, and Michael Milford. Learning deployable navigation policies at kilometer scale from a single traversal. In Aude Billard, Anca Dragan, Jan Peters, and Jun Morimoto, editors, Proceedings of The 2nd Conference on Robot Learning, volume 87 of Proceedings of Machine Learning Research, pages 346-361. PMLR, 29-31 Oct 2018. 2
+[6] Devendra Singh Chaplot, Dhiraj Gandhi, Saurabh Gupta, Abhinav Gupta, and Ruslan Salakhutdinov. Learning to Explore using Active Neural SLAM. In International Conference on Learning Representations, 2020. 2, 5, 7, 8
+[7] Devendra Singh Chaplot, Emilio Parisotto, and Ruslan Salakhutdinov. Active neural localization. arXiv preprint arXiv:1801.08214, 2018. 3
+[8] Kevin Chen, Juan Pablo de Vicente, Gabriel Sepulveda, Fei Xia, Alvaro Soto, Marynel Vázquez, and Silvio Savarese. A behavioral approach to visual navigation with graph localization networks. In Robotics: Science and Systems, 2019. 3
+[9] Tao Chen, Saurabh Gupta, and Abhinav Gupta. Learning exploration policies for navigation. In International Conference on Learning Representations, 2019. 2, 6, 7, 8
+[10] Howie Choset and Keiji Nagatani. Topological simultaneous localization and mapping (slam): toward exact localization without explicit localization. IEEE Transactions on robotics and automation, 17(2):125-137, 2001. 2
+[11] Frank Dellaert, Dieter Fox, Wolfram Burgard, and Sebastian Thrun. Monte carlo localization for mobile robots. In ICRA, volume 2, pages 1322-1328, 1999. 2
+[12] Alberto Elfes. Using occupancy grids for mobile robot perception and navigation. Computer, 22(6):46-57, 1989. 2
+[13] Benjamin Eysenbach, Ruslan Salakhutdinov, and Sergey Levine. Search on the replay buffer: Bridging planning and reinforcement learning. arXiv preprint arXiv:1906.05253, 2019. 2, 3
+
+[14] Kuan Fang, Alexander Toshev, Li Fei-Fei, and Silvio Savarese. Scene memory transformer for embodied agents in long-horizon tasks. In CVPR, 2019. 2
+[15] Dhiraj Gandhi, Lerrel Pinto, and Abhinav Gupta. Learning to fly by crashing. In 2017 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 3948-3955. IEEE, 2017. 2, 3
+[16] Sabine Gillner and Hanspeter A Mallot. Navigation and acquisition of spatial knowledge in a virtual maze. Journal of cognitive neuroscience, 10(4):445-463, 1998. 1
+[17] Saurabh Gupta, James Davidson, Sergey Levine, Rahul Sukthankar, and Jitendra Malik. Cognitive mapping and planning for visual navigation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2616-2625, 2017. 2, 3
+[18] 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
+[19] Armin Hornung, Kai M. Wurm, Maren Bennewitz, Cyril Stachniss, and Wolfram Burgard. OctoMap: An efficient probabilistic 3D mapping framework based on octrees. Autonomous Robots, 2013. 2
+[20] Benjamin Kuipers and Yung-Tai Byun. A robot exploration and mapping strategy based on a semantic hierarchy of spatial representations. Robotics and autonomous systems, 8(1-2):47-63, 1991. 2
+[21] Ashish Kumar, Saurabh Gupta, David Fouhey, Sergey Levine, and Jitendra Malik. Visual memory for robust path following. In Advances in Neural Information Processing Systems, 2018. 2
+[22] Alex X Lee, Sergey Levine, and Pieter Abbeel. Learning visual servoing with deep features and fitted q-iteration. arXiv preprint arXiv:1703.11000, 2017. 2
+[23] Min Meng and Avinash C Kak. Mobile robot navigation using neural networks and nonmetrical environmental models. IEEE Control Systems Magazine, 13(5):30-39, 1993. 2
+[24] Piotr Mirowski, Matthew Koichi Grimes, Mateusz Malinowski, Karl Moritz Hermann, Keith Anderson, Denis Teplyashin, Karen Simonyan, Koray Kavukcuoglu, Andrew Zisserman, and Raia Hadsell. Learning to navigate in cities without a map. In Neural Information Processing Systems (NeurIPS), 2018. 2, 3
+[25] Piotr Mirowski, Razvan Pascanu, Fabio Viola, Hubert Soyer, Andrew J Ballard, Andrea Banino, Misha Denil, Ross Goroshin, Laurent Sifre, Koray Kavukcuoglu, et al. Learning to navigate in complex environments. arXiv preprint arXiv:1611.03673, 2016. 2, 3
+[26] Raul Mur-Artal, Jose Maria Martinez Montiel, and Juan D Tardos. Orb-slam: a versatile and accurate monocular slam system. IEEE transactions on robotics, 31(5):1147-1163, 2015. 2, 3
+[27] Richard A Newcombe, Shahram Izadi, Otmar Hilliges, David Molyneaux, David Kim, Andrew J Davison, Pushmeet Kohli, Jamie Shotton, Steve Hodges, and Andrew W Fitzgibbon. Kinectfusion: Real-time dense surface mapping and tracking. In ISMAR, volume 11, pages 127-136, 2011. 2
+
+[28] Richard A Newcombe, Steven J Lovegrove, and Andrew J Davison. Dtam: Dense tracking and mapping in real-time. In 2011 international conference on computer vision, pages 2320-2327. IEEE, 2011. 2
+[29] Junhyuk Oh, Valliappa Chockalingam, Satinder Singh, and Honglak Lee. Control of memory, active perception, and action in apache. In ICML, 2016. 2
+[30] Emilio Parisotto and Ruslan Salakhutdinov. Neural map: Structured memory for deep reinforcement learning. In ICLR, 2018. 3
+[31] Deepak Pathak, Pulkit Agrawal, Alexei A. Efros, and Trevor Darrell. Curiosity-driven exploration by self-supervised prediction. In ICML, 2017. 3
+[32] Stephane Ross, Geoffrey Gordon, and Drew Bagnell. A reduction of imitation learning and structured prediction to no-regret online learning. In Proceedings of the fourteenth international conference on artificial intelligence and statistics, pages 627-635, 2011. 3
+[33] Fereshteh Sadeghi and Sergey Levine. Cad2rl: Real single-image flight without a single real image. arXiv preprint arXiv:1611.04201, 2016. 2, 3
+[34] Nikolay Savinov, Alexey Dosovitskiy, and Vladlen Koltun. Semi-parametric topological memory for navigation. In International Conference on Learning Representations (ICLR), 2018. 2, 3
+[35] Nikolay Savinov, Anton Raichuk, Raphaël Marinier, Damien Vincent, Marc Pollefeys, Timothy Lillicrap, and Sylvain Gelly. Episodic curiosity through reachability. arXiv preprint arXiv:1810.02274, 2018. 3
+[36] Manolis Savva, Abhishek Kadian, Oleksandr Maksymets, Yili Zhao, Erik Wijmans, Bhavana Jain, Julian Straub, Jia Liu, Vladlen Koltun, Jitendra Malik, et al. Habitat: A platform for embodied ai research. In ICCV, 2019. 5, 6
+[37] John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017. 6
+[38] Sebastian Thrun, Wolfram Burgard, and Dieter Fox. Probabilistic robotics. MIT press, 2005. 2
+[39] Sebastian Thrun, Jens-Steffen Gutmann, Dieter Fox, Wolfram Burgard, Benjamin Kuipers, et al. Integrating topological and metric maps for mobile robot navigation: A statistical approach. In AAAI/IAAI, pages 989-995, 1998. 2
+[40] Nicola Tomatis, Illah Nourbakhsh, and Roland Siegwart. Combining topological and metric: A natural integration for simultaneous localization and map building. In Proceedings of the Fourth European Workshop on Advanced Mobile Robots (Eurobot). ETH-Zürich, 2001. 2
+[41] Ranxiao Frances Wang and Elizabeth S Spelke. Human spatial representation: Insights from animals. Trends in cognitive sciences, 6(9):376-382, 2002. 1
+[42] Yi Wu, Yuxin Wu, Aviv Tamar, Stuart Russell, Georgia Gkioxari, and Yuandong Tian. Bayesian relational memory for semantic visual navigation. In CVPR, pages 2769-2779, 2019. 2, 3
+[43] Fei Xia, Amir R. Zamir, Zhi-Yang He, Alexander Sax, Jitendra Malik, and Silvio Savarese. Gibson Env: real-world perception for embodied agents. In Computer Vision and Pat
+
+tern Recognition (CVPR), 2018 IEEE Conference on. IEEE, 2018.5
+[44] Brian Yamauchi. A frontier-based approach for autonomous exploration. In cira, volume 97, page 146, 1997. 6
+[45] Wei Yang, Xiaolong Wang, Ali Farhadi, Abhinav Gupta, and Roozbeh Mottaghi. Visual semantic navigation using scene priors. arXiv preprint arXiv:1810.06543, 2018. 3
+[46] Amy Zhang, Adam Lerer, Sainbayar Sukhbaatar, Rob Fergus, and Arthur Szlam. Composable planning with attributes. arXiv preprint arXiv:1803.00512, 2018. 3
+[47] Yuke Zhu, Roozbeh Mottaghi, Eric Kolve, Joseph J Lim, Abhinav Gupta, Li Fei-Fei, and Ali Farhadi. Target-driven visual navigation in indoor scenes using deep reinforcement learning. In 2017 IEEE international conference on robotics and automation (ICRA), pages 3357–3364. IEEE, 2017. 2, 3, 6, 7, 8
\ No newline at end of file
diff --git a/neuraltopologicalslamforvisualnavigation/images.zip b/neuraltopologicalslamforvisualnavigation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..98986ad2b961dfc0769f333e4bb9ce6b09bfe87b
--- /dev/null
+++ b/neuraltopologicalslamforvisualnavigation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ebcef522aea5be601db4363c502543a25bc43a6674eb928a891a9035c5da36f6
+size 472002
diff --git a/neuraltopologicalslamforvisualnavigation/layout.json b/neuraltopologicalslamforvisualnavigation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..e3e0b675d2505c8f706b11240ac9424a84ded50f
--- /dev/null
+++ b/neuraltopologicalslamforvisualnavigation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:eb31b636d3826c344012c16e4da96192a049da183bca94855935877ff003425f
+size 355452
diff --git a/neuralvoxelrendererlearninganaccurateandcontrollablerenderingtool/0d7485fa-c234-459c-91a1-b5220e8d7b28_content_list.json b/neuralvoxelrendererlearninganaccurateandcontrollablerenderingtool/0d7485fa-c234-459c-91a1-b5220e8d7b28_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..1804bf968bd2f6c8a3dda953897799c2fa821cff
--- /dev/null
+++ b/neuralvoxelrendererlearninganaccurateandcontrollablerenderingtool/0d7485fa-c234-459c-91a1-b5220e8d7b28_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:090700caa737bbec015277e80a40b60412b4f827f3d41a0371060fb41e2fd9c9
+size 76780
diff --git a/neuralvoxelrendererlearninganaccurateandcontrollablerenderingtool/0d7485fa-c234-459c-91a1-b5220e8d7b28_model.json b/neuralvoxelrendererlearninganaccurateandcontrollablerenderingtool/0d7485fa-c234-459c-91a1-b5220e8d7b28_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..b3ee4dc085833d19b292304d3cc99b2a6bb4f084
--- /dev/null
+++ b/neuralvoxelrendererlearninganaccurateandcontrollablerenderingtool/0d7485fa-c234-459c-91a1-b5220e8d7b28_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b6bad357a35b51f586fd6627e1204f90cc185e095eb9528b3db2133fd98fd19b
+size 101050
diff --git a/neuralvoxelrendererlearninganaccurateandcontrollablerenderingtool/0d7485fa-c234-459c-91a1-b5220e8d7b28_origin.pdf b/neuralvoxelrendererlearninganaccurateandcontrollablerenderingtool/0d7485fa-c234-459c-91a1-b5220e8d7b28_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..0b83cca0a6db9720470a7fec3220d7ace3748ee7
--- /dev/null
+++ b/neuralvoxelrendererlearninganaccurateandcontrollablerenderingtool/0d7485fa-c234-459c-91a1-b5220e8d7b28_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:24761b3b537eae8c9544fbea32e7ddc70a52c2c4e4ddd37817d72c61065a02f9
+size 4637164
diff --git a/neuralvoxelrendererlearninganaccurateandcontrollablerenderingtool/full.md b/neuralvoxelrendererlearninganaccurateandcontrollablerenderingtool/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..614e45a562384bdcf27092e4bbd0d137e83eb2b0
--- /dev/null
+++ b/neuralvoxelrendererlearninganaccurateandcontrollablerenderingtool/full.md
@@ -0,0 +1,339 @@
+# Neural Voxel Renderer: Learning an Accurate and Controllable Rendering Tool
+
+# Konstantinos Rematas Vittorio Ferrari Google Research
+
+
+Figure 1. Neural voxel renderer converts a set of colored voxels into a realistic and detailed image. It also allows elaborate modifications in the geometry or the appearance of the input that are faithfully represented in the synthesized image.
+
+# Abstract
+
+We present a neural rendering framework that maps a voxelized scene into a high quality image. Highly-textured objects and scene element interactions are realistically rendered by our method, despite having a rough representation as an input. Moreover, our approach allows controllable rendering: geometric and appearance modifications in the input are accurately propagated to the output. The user can move, rotate and scale an object, change its appearance and texture or modify the position of the light and all these edits are represented in the final rendering. We demonstrate the effectiveness of our approach by rendering scenes with varying appearance, from single color per object to complex, high-frequency textures. We show that our rerendering network can generate very detailed images that represent precisely the appearance of the input scene. Our experiments illustrate that our approach achieves more accurate image synthesis results compared to alternatives and can also handle low voxel grid resolutions. Finally, we show how our neural rendering framework can capture and faithfully render objects from real images and from a diverse set of classes.
+
+# 1. Introduction
+
+What is the typical process for rendering a synthetic scene? In a 3D graphics software, like Blender [3] and 3D Studio Max [2], the user creates a set of geometric objects in a virtual 3D world, edits their material properties and adds the light sources. Once the desired configuration
+
+is achieved, the program renders the 3D scene into an image using a rendering algorithm such as Path Tracing [24]. While this setup unfolds the creativity of the user, it increases the learning complexity of the system, requires a lot of manual input and it is not differentiable.
+
+The emergence of deep generative models introduced a new image synthesis medium. Generative adversarial networks [18] are able to produce highly realistic images of faces [25] or Imagenet [57] categories [9] using only class labels as input. Moreover, image-to-image translation [23] presented a framework where an input image featuring only partial information (e.g. only edges), can be transformed into a naturally looking one. Neural networks are also applied for graphics applications. Feed forward networks can learn a mapping between geometric attributes [44] or voxels [45] to shaded outputs, and rerendering networks can correct the artifacts of traditional rendering approaches [43, 41]. However, these approaches often produce blurry results and have limited control over the input: appearance changes are mostly restricted to viewpoint or high-level attributes.
+
+In this paper we present a neural network model that learns how to render a scene given voxels as input. The scene can be modified in terms of appearance, location, orientation and lighting, and all changes are faithfully expressed in the rendered output. With only requiring a rough specification of the geometry as a voxel grid, our framework produces an accurate image, with plausible light interactions between the scene elements (e.g. casting shad
+
+ows, reflections, etc.). Our method includes a rerendering module which enables us to render highly textured objects precisely and in detail. Moreover, our framework naturally inputs limited appearance information. Instead of manually painting materials on the geometry [1] or requiring multiple views of the object [59, 6], our method can use a single image aligned with a 3D object to capture detailed appearance properties and propagate them to other views.
+
+We demonstrate the ability of our approach to render realistic images in a comprehensive set of experiments. We show geometric and appearance modifications in synthetic datasets with increasing texture complexity and we reproduce the look of objects from real images as well. We illustrate how the network reproduces the interactions between the scene elements, e.g. specular reflections, shadows, secondary bounces of light. Finally, we compare our proposed framework with alternative approaches [45, 23, 64] and we attain better performance in several metrics. Our contributions can be summarized as:
+
+- A neural rendering framework with controllable object appearance and scene illumination effects.
+- Capturing texture details with a neural rerendering module.
+- Learnable interactions between scene entities such as reflections, shadows and secondary bounces of light.
+
+# 2. Related Work
+
+Geometry-based neural rendering. One approach for image synthesis with geometric information is to replace the traditional rendering pipeline with a neural network. RenderNet [45] learns how to map a voxel grid to a shaded output, such as Phong shading. The method can also be used for normal estimation, allowing the use of the Phong illumination model [52], and generating textures of faces using PCA coefficients as input. Texture fields [47] is estimating the appearance of a 3D object using a function that maps a point in space to a color, conditioned on an input image. In contrast, our approach allows detailed manipulation and rendering of arbitrary textures and provides an adjustable illumination source (area light with soft shadows).
+
+Deferred Neural Rendering [65] learns to synthesize novel views of a scene using neural textures, a learnable element that acts as a $UV$ atlas. Deep Appearance Models [37] encode the facial geometry and texture of a particular person and can generate novel views during inference. Neural Volumes [38] focuses on the 3D reconstruction of an object by taking a set of calibrated views as an input and producing a 3D voxel grid that is rendered with differentiable ray-marching. While these approaches produce high quality results, their models are trained for a particular object/scene, limiting their applicability to general cases, and they assume static light. Also, these methods allow limited edits in the original scene as they focus on view synthesis.
+
+Another direction is neural rerendering. Lookinggood [41] uses a neural network to fix artifacts from a multiview capture and [43] rerenders a point cloud from a 3D reconstruction with modifiable appearance. Similarly, [53] estimate the RGB image from a structure-from-motion pointcloud. Deep Shading [44] converts a set of rendering buffers (position, normals, etc.) to shaded effects. Again, the ability to modify the output is bounded by either what it was presented during training or to holistic appearance transfers.
+
+Image-based neural rendering. Given a set of images and their corresponding camera matrices, Deep Voxels [61] encode the view-dependent appearance of an object in a 3D latent voxel grid, which can be later used for rendering novel views. However, the latent voxels incorporate the appearance of a single object that undergoes viewpoint changes and the method requires a large number of calibrated images. Another generative approach is to synthesize the images directly given few attributes as an input [15] (e.g. transformation parameters, color etc.), but this approach needs access to the whole database of objects and the rendered images are often blurry.
+
+The image-to-image translation [23] paradigm can also be seen as a form of neural rendering. Methods can synthesize new images of humans based on a 2D pose [35, 10, 40, 8] or convert semantic maps to natural images [67, 51]. Style transfer [17] can also alter the appearance of an input image in a realistic way [31, 39]. However, these approaches perform specific synthesis and editing tasks, where the control over the final rendering is based on the attributes from the supplied data.
+
+Novel view synthesis is the task of generating a new view of an object given an input image from another view. This can be assisted by a 3D object [55], considering visible and hidden parts [71, 16] or directly from one [64] or multiple [48, 62] views. Again, these methods deal only with rotation modifications and their outputs often lose appearance details. An alternative to the previous explicit geometric transformations are the disentangled representations in feature space. The work of [27] learns to render different viewpoints and lighting conditions by a careful handling of the training procedure, while [69] considers the transformations directly on the latent features. Recently, [46] demonstrated the ability to generate realistic images in an unsupervised way using a disentangled latent volumetric representation. However, the modifications are again limited to rotations and simple lighting, while our network handles more complex appearance alterations explicitly on the input voxels.
+
+Differentiable rendering. To overcome the non-differentiable nature of traditional rendering, previous works introduce a differentiable rasterizer [12, 36, 19] or splatting [70], propose a differentiable ray-tracer [66, 29] or have a differentiable, BRDF-based rendering model [14,
+
+
+
+
+
+
+Object coordinates
+World coordinates
+Figure 2. Scene setup: the object is placed in the world coordinates where it can be rotated and translated. The light can also be translated and the camera can change elevation. As network inputs, the scene is in camera coordinates and the light position is a 3-dimensional $xyz$ vector.
+
+
+Camera coordinates
+
+32, 34, 30]. The focus of these methods is inverse rendering (estimate geometry, materials, etc.), while we are interested in the forward synthesis process.
+
+# 3. Method
+
+# 3.1. Overview
+
+Our goal is to learn a network that renders a realistic image given a voxelized 3D input. While there are several types of 3D representations for neural rendering (e.g. meshes [19, 36], implicit functions [47, 49, 42], rendering buffers [44]), we choose to work with voxels because they are easy to input into a neural network and they provide the flexibility for arranging the scene elements in a natural way (e.g. a chair on top of the ground). The output of our network is a realistic image representing the scene from a particular viewpoint given by the user.
+
+Scene definition. Our scene consists of three elements: the object, the ground and the light. The elements are placed in a bounded 3D world that is observed by a camera at a fixed distance. The object and the ground are represented as voxels and we use an area light as this generates more realistic soft shadows than a point light source.
+
+Our approach supports several editable attributes: (1) The object can be translated across the $x$ and $z$ axis and rotated around the $y$ axis. Also, we can apply local rigid and non-rigid transformations to the voxels. (2) The light can be translated in a bounded volume above the ground. (3) The camera elevation can be adjusted. (4) The appearance of the object can change. For (4), we consider a spectrum of modifications, from painting the object/floor with a single uniform color to applying arbitrary textures to the object.
+
+Apart from the editable parameters, the scene has some fixed attributes. There is ambient light, the color of the light is white, the camera focal length is fixed to 40, the object is diffuse, and the floor is slightly specular. Detailed values of the scene setup can be found in the supplementary material.
+
+The network expects the scene to be in the camera coordinate frame. We first apply the modifications and then we convert the scene from world to camera coordinates.
+
+# 3.2. Coloring Voxels
+
+# Manual coloring.
+
+proach would be As a use case we consider the setting where the object and the floor have a single color each. The user can select the colors from a palette and assign
+
+A straightforward ap-to color voxels manually.
+
+
+
+them to the objects in the scene, similar to the bucket fill tool in most image editing software (see inset figure). The network still has to properly shade the scene based on the light position, and generate global illumination effects.
+
+Colors from an image. Tools for coloring voxels can be found in programs like MagicaVoxel [5], but detailed voxel painting can be cumbersome. A more practical alternative is to perform image-based coloring. Given the alignment between the 3D object and an image depicting the object (we refer to that image as appearance source $\mathcal{A}$ ), we can un-project the color of the pixels directly onto the voxels. Alternatively, if the input 3D object is in the camera
+
+
+Appearance Source Image
+Figure 3. Coloring voxels from an image: given the 2D-to-3D alignment, the voxels take the color from the corresponding pixels of the appearance source image.
+
+
+Voxels
+
+
+Colored Voxels
+
+space, we can assume orthographic projection. The centers of the voxels are projected to the image using the camera parameters. Finally, the color for every voxel is taken from the pixel it falls into. While this approach requires aligned images with the 3D objects, recent advantages in 2D to 3D alignment can provide such information automatically, see for example [54, 50, 7, 68, 22, 21, 20].
+
+Appearance capture from a single image introduces artifacts typical with projective texturing. The assigned colors come from the input view and they contain view-dependent information such as shading, shadows, etc. Unlike typical image-based rendering, in our scenario the object will be rendered from a different viewpoint or lighting condition, so the rendered object colors need to change accordingly. We tackle this problem with a carefully prepared training set that includes this type of appearance changes (see Sec. 4.1).
+
+Another aspect that requires attention is how to color the voxels that are not visible. We determine voxel visibility automatically using ray-marching [28]. A hidden voxel gets the color of the first visible voxel along its camera ray. We observed that this approach is beneficial in cases with thin
+
+
+Figure 4. NVR network architecture. Two branches encode the voxel and light position inputs and a decoder combines their output and produces the final rendering.
+
+structures (e.g. chair handles and legs), and the generated artifacts were well handled by the network.
+
+Additionally, we take advantage of the symmetry in many man-made objects such as chairs and cars: if a voxel is not visible, we copy its color from its symmetric voxel across the $y$ axis (if that is visible).
+
+# 3.3. Neural Voxel Renderer (NVR)
+
+Model architecture. Our Neural Voxel Renderer (NVR) network $\theta$ is illustrated in Fig. 4 (more details in the supplementary material). The inputs are (1) the scene represented as voxels $V\in \mathbb{R}^{128^3\times 4}$ and (2) the light position $L\in \mathbb{R}^3$ . The network output the image $I\in \mathbb{R}^{256^2\times 3}$ :
+
+$$
+I = \theta (V, L) \tag {1}
+$$
+
+The voxels $V$ contain the RGB colors and visibility, which are automatically estimated based on the 2D-3D alignment (Sec. 3.2). We use RenderNet as our backbone [45]. The 3D input voxels $V$ are processed by a series of 3D convolutions and a reshaping unit that transforms the 3D features into 2D by reshaping its last two dimensions (e.g. $h \times w \times d \times c$ becomes $h \times w \times (d * c)$ ), followed by $1 \times 1$ convolutions (projection unit in [45] and reshape in [48]). The reshaping step can be seen as an orthographic projection in the latent space, with all the depth information being kept. The features are then processed by a series of 2D convolutional blocks, leading to the final encoding of the input voxels.
+
+The light input $L$ is processed by a separate branch with 2 fully connected layers, delivering latent illumination features to the network. These features are then tiled to form an image with the same dimensions as the final features from the voxel encoding branch. In this way, every spatial location in the features has information about the illumination. After concatenation, the joint features are fed to a decoder that outputs the image in the final resolution.
+
+Model training. We train the model by minimizing the following loss:
+
+$$
+L (I, T) = | | I - T | | _ {1} + \beta \sum_ {i} w _ {i} | | v _ {i} (I) - v _ {i} (T) | | _ {2} \tag {2}
+$$
+
+where $T$ is the ground-truth target image. The second term is a perceptual loss, with $v_{i}$ is the response of the $i$ layer of
+
+
+Figure 5. NVR+ network architecture.
+
+a pretrained VGG [60] network, and $w_{i}$ its weighting factor. For $i$ , we use the conv1, conv2 layers and set their weights $w_{i}$ to 1.0 and 0.1 respectively.
+
+The target image $T$ is produced by a traditional, physically-based renderer (Blender Cycles [3]) and the object is represented by a 3D mesh. This results in rendering smooth surfaces in image $T$ . In this way, the network implicitly learns to map discrete geometric representation such as voxels to a continuous and smooth rendering.
+
+We train the network using the Adam optimizer [26] with learning rate $10^{-4}$ and a batch size of 10. The 2D convolutional layers are followed by batch normalization and ReLU activations (more details in supplementary material).
+
+# 3.4. Adding a rerendering network (NVR+)
+
+The network in Sec. 3.3 is able to render well the overall structure of the scene in terms of colors, reflections, shadows, etc. However, we observe that when the color pattern of the object in the input voxels forms a high frequency and irregular texture, the output is blurry and with artifacts. For this reason we propose a rerendering network $(\mathrm{NVR}+)$ that maintains the high quality textures while producing the correct overall scene appearance (Fig. 5).
+
+The texture information is already encoded in the voxels' colors and we know the camera parameters of the target rendering (the user sets the scene to be rendered, see Sec. 3.1). Therefore we can synthesize an image $S$ by splatting [72] the center of the colored voxels to an empty canvas in the target view. Note that this image will contain the artifacts mentioned in Sec. 3.2 (wrong colors, different shading, etc.) since the target view can be different from the view the appearance was captured from.
+
+The NVR+ consists of three parts: the NVR network described in the previous subsection, the Splatting Processing Network that encodes the synthesized image $S$ into a latent representation, and a Neural Rerendering Network that combines and processes the outputs of the other two networks into the final image. The Splatting Processing Network consists of a series of convolutional layers without decreasing the resolution. The output of this network is then added to the features from the NVR and the result is fed to the Neural Rerendering Network. The Neural Rerendering
+
+Network processes the combined features with a U-Net [56] architecture and outputs the image in the final resolution. The whole NVR+ network is trained end-to-end, using the same loss as in Eq. (2).
+
+The $\mathrm{NVR + }$ is able to render high-frequency textures accurately and in detail because it combines the best of two modalities. First, the output of the NVR produces a realistic image in terms of reflections, shadows and overall color assignments but it lacks the high-frequency texture details. Second, the output of the Splatting Processing Network contain artifacts from the splatting process, but it also includes features rich in resolution and details. Finally, the Neural Rerendering Network integrates the two network outputs and produces a coherent, detailed and artifact-free final image. The $\mathrm{NVR + }$ renders an image $(256\times 256)$ in $\approx 0.1$ sec on a single desktop GPU (Nvidia RTX).
+
+# 4. Experiments
+
+# 4.1. Settings and protocol
+
+Training. For training our models we use 3D shapes from ShapeNet [11] and we render them with Blender Cycles [3], a physically-based path tracer. We focus mainly on the Chairs category, but we also provide qualitative results for the Car category. In all cases the training sets are constructed by sampling randomly 2000 3D objects from the train set as specified in the SHREC'16 challenge [58]. Each object is rendered from 20 different viewpoints by uniformly sampling (1) the elevation of the camera, (2) the rotation and translation of the object, and (3) the position of the light. The camera elevation is between 5 and 50 degrees, the object rotation is uniformly sampled from the 180 degrees hemisphere facing towards the camera, the translation of the object is sampled from an rectangular area around the scene center $[-0.5, 0.5]$ units) and the light is sampled from a volume above the scene center $[-1.5, 1.5]$ for the $x$ and $z$ axis and $[2.5, 3]$ for the $y$ axis). The object is rendered as a mesh for accurate reproduction of its surfaces (giving the target image $T$ in Eq. (2)). In contrast, the object is input to the network as a $100^3$ voxel grid, and then it is placed inside the overall $128^3$ voxel scene $V$ to allow rotations and translations (object to world coordinates, see Fig. 2).
+
+Testing. For testing, we want to measure the ability of our model to cope with changes in object rotation and translation, and light translation. We randomly select 40 3D objects from the test set of the SHREC'16 challenge [58]. Each object is rendered with the following settings: the camera elevation is randomly sampled between 15 and 45 degrees; a rotation angle range (starting and ending angle) is randomly sampled from the hemisphere facing the camera and the object is rotated with a step of 10 degrees; a start and end location is randomly sampled and the object is being translated between the two end points; similar sampling
+
+
+Figure 6. Global illumination effects produced by our framework.
+
+is applied for the light. This procedure results in 40000 images for training and 1100 images for testing.
+
+Appearance settings. We generate three settings with varying appearance complexity. Single color: where both the object and the floor have a single randomly selected color (RGB values); Default: where the object is rendered with its default ShapeNet textures/materials but the floor color is randomly sampled; and Textured: where the object has a randomly selected texture from the Describable Textures Dataset[13] (we separate the textures in train and test splits) and the floor has a single randomly selected color. We train a model for every setting and every category.
+
+# 4.2. Global illumination effects
+
+Our scenes consists of objects that interact with each other (shadows, reflections, etc.) and our training data was generated with a physically-based renderer. These elements of realism exist in the training dataset, and here we analyze if our network is able to reproduce these effects.
+
+In Fig. 6 we illustrate how our framework renders global illumination effects. In the first row we show the reflections on the specular ground for different objects. The overall structure is represented properly and it is following the orientation of the object, even with thin structures. In the second row we show how our network is rendering shadows; again, thin structures produce thin shadows and concave objects allow the light to pass. Finally, in the last row we show the effect of multiple light bounces: the color of the object (first two columns) and the ground (last two columns) is affected by the color of the other object. The original color of the object is shown in the small rectangle inset.
+
+# 4.3. Neural rendering analysis
+
+In this subsection we analyze the design choices from Section 3 and evaluate their effects on the final renderings. We additionally compare with alternative techniques for neural rendering and show that our framework performs better both quantitatively and qualitatively.
+
+
+Figure 7. Results of NVR for the single color setting. The voxel colors are properly mapped to pixels in the output images.
+
+Manual coloring. In this scenario, we use the Single color appearance setting as training data. With this experiment, we want to illustrate the capability of our method (NVR) to map the voxel colors to rendered pixels. Fig. 7 shows that the networks learn to render accurately the object, with correct colors and shading.
+
+Colors from image. In this scenario, the voxels take their color from an input image (appearance source image $\mathcal{A}$ , see Sec. 3.2). This is a more challenging setting, as some parts of the object are hidden and the colors contain view-dependent appearance information. Hence, it forms a good test case for evaluating the ability to render more complex appearance (different parts, textures, etc.) while capturing light interactions among scene elements. Fig. 8 shows the output of our NVR and $\mathrm{NVR + }$ models in the default appearance setting for the Chair category (5th and and 6th column). The NVR model properly assigns the colors to the individual parts, but fine-grained details on textured areas are washed out. The $\mathrm{NVR + }$ model renders detailed textures while also accurately producing object shading, ground reflections and shadows. Fig. 9 (left) shows the output of $\mathrm{NVR + }$ for the default appearance setting of the Car category (using a car-specific model, but with different Car instances for training and testing, Sec. 4.1). In the first row we show the voxel input together with the appearance source image $\mathcal{A}$ from where the colors were taken, in second row our prediction and in third row the ground truth. Again, our method can reproduce accurately the details of the cars; also, by taking advantage of the symmetry, we are able to faithfully reconstruct the hidden side. Finally, we visualize the output of $\mathrm{NVR + }$ on the textured appearance setting (Fig. 9 right). As the images show, this model can handle high frequency and irregular textures (as well as synthesizing specular reflections and shadows as in Fig. 8). Moreover, this confirms that our model does not memorize the training data but rather learns to map the input color pattern information into an accurate rendered image.
+
+Comparison to alternative methods. We use the Chair category (default appearance setting) and for every 3D ob
+
+
+Figure 8. Visual comparison between our models and different methods (see text for details).
+
+
+Figure 9. Neural rendering of cars and textured objects with NVR+.
+
+
+Figure 10. Artifacts of projective texturing.
+
+ject, one of the rendered images acts as the appearance source image $\mathcal{A}$ . We compare against a set of alternatives based on recent works on neural rendering. Since there is no other method that offers control over geometric, appearance and light edits, we modify them to be comparable.
+
+Projective texturing: here we use the alignment between the mesh and the input image to texture the mesh (i.e. estimate its UV map). In Fig. 10 we illustrate typical projective texturing artifacts: a) the hidden areas copy the appearance of the visible parts, even when taking symmetry into account (red arrows), and b) light is "baked" into the object appearance, making difficult to render with new lighting.
+
+Single-to-mutliview: this method is based on [64] and consists of a U-net which inputs the appearance source image $\mathcal{A}$ , the relative object rotation/translation and light position. This method does not use any 3D information.
+
+Image encoding: here we have a setup similar to [45] but instead of painting the voxels directly, we pass $\mathcal{A}$ through a network to get a latent code that is then appended to the input voxels (similar to how [45] rendered textured faces).
+
+| Method | MSE | DSSIM | Perceptual |
| Single-to-multiview | 34.8 | 0.040 | 40.17 |
| Image encoding | 24.3 | 0.030 | 24.41 |
| Ours (NVR) | 22.8 | 0.028 | 21.25 |
| Image translation | 21.6 | 0.026 | 18.12 |
| Deep shading | 21.8 | 0.024 | 16.54 |
| Ours (NVR+) | 14.3 | 0.012 | 8.21 |
+
+The rest of the network has similar architecture to NVR so the light can be given as an input.
+
+Image translation: this method is based on [23]; the input is the rerendered image $S$ (generated by splatting the voxels onto the image plane) together with the light position as additional channel. The desired output is the target image $T$ .
+
+Deep shading: here the setup is similar to [44]. We use projective texturing to estimate the UV map of the mesh; then we place the mesh in the desired position and we render the diffuse color and depth buffer. We use these buffers together with the light position as inputs to a Pix2Pix [23] network and we optimize for the target image $T$ .
+
+Table 1 compares the performance of the different methods on mean squared error (MSE), structural dissimilarity (DSSIM) and the perceptual loss in Eq. (2) (using the same layers $i$ and weights $w_{i}$ ). $\mathrm{NVR+}$ performs better than the alternatives in all metrics by a large margin. This illustrates the ability of the rerendering module to reproduce fine details, especially for textured 3D objects. Fig. 8 provides a qualitative comparison of the different methods. As can be seen, Single-to-multiview results are blurry, while Image encoding captures the overall color but fail to assign it correctly to the individual parts. The Image translation model produces typical GAN artifacts and cannot estimate the shadows properly. The Deep shading model also faces similar limitations, despite using a mesh representation instead of voxels. Our NVR model captures the color and structure of the scene, but smooths out the fine texture details. Finally, our $\mathrm{NVR+}$ model accurately renders both the geometry and the texture of the object, while also realistically synthesizing shadows, specular reflections and highlights in the output image.
+
+Voxel resolution. The object has an initial voxel resolution of $100^{3}$ and is then placed in a scene $V \in 128^{3 \times 4}$ . Here, we investigate the rendering quality when the initial voxel resolution varies. In Table 2 and Fig. 11 we show the performance of smaller resolutions for the NVR+ model (which are then rescaled with nearest neighbor interpolation). The performance decreases gracefully and even at a very low resolution ( $25^{3}$ ) our method produces plausible outputs.
+
+# 4.4. Editing analysis
+
+Illumination edits. When the light source changes position, the scene appearance should change accordingly. In Fig. 12, we illustrate this effect: as the light sources move,
+
+Table 1. Evaluation of different methods for neural rendering.
+
+ | 1003 | 753 | 503 | 253 |
| MSE | 14.3 | 14.4 | 15.3 | 19.3 |
| DSSIM | 0.012 | 0.014 | 0.016 | 0.024 |
| Perceptual | 8.21 | 9.47 | 10.9 | 18.68 |
+
+Table 2. Effect of voxel resolution on performance.
+
+
+Figure 11. Rendering an object with different voxel resolutions.
+
+
+Figure 12. Illumination effects by changing the light position. Our framework changes properly the overall shading (e.g. the back of the chair is brighter in position 2) and the shadows.
+
+
+Figure 13. Applying geometric (left) and appearance (right) modifications.
+
+
+
+
+Figure 14. Neural rendering with natural illumination as an input.
+
+the brightness of different parts of the object changes and shadows/light reflections in the ground move accordingly.
+
+
+Figure 15. Rendering real objects. In the first row there are the appearance source images and in second and third row renderings of the objects using the NVR+ network.
+
+
+Figure 16. Rendering different categories. The categories of these real objects were not part of the training dataset (trained only on the chair category).
+
+Object geometry edits. Apart from global object rotations and translations, we can also deform the object. In Fig. 13 left we visualize the effect of scaling across an axis, resulting in elongated or squeezed versions of the object.
+
+Object appearance edits. Detailed modifications on the appearance source image can propagate through our neural renderer. In this example, we manually paint patterns and letters on the appearance source image, so during the coloring step (Sec. 3.2) the edits pass on to the voxels. Fig. 13 right shows how our method can synthesize images with the object in new viewpoints and the light in new positions while preserving these fine-grained edits that were made to the appearance source image.
+
+Increasing realism. In this experiment, we investigate the use of more realistic ways to illuminate the scene. We modify the NVR+ network so instead of the $xyz$ light coordinates, it takes as an input an $32 \times 32$ environment map. The environment map is processed by a series of convolutional layers to extract a latent code, which is then supplied to the NVR+ network. We additionally consider a textured circular ground and add specularity to the default dataset objects. We use 80 environment maps for training and 20 for testing, taken from [4]. Results are shown in Fig. 14, with the appearance source image shown in an inset.
+
+Appearance capture from real images. So far we have experimented with synthetic images with varying appearance complexity. However, our framework can capture object appearance from any input image. In this experiment, we use the Pix3D dataset [63] which contains aligned pairs of images with 3D objects. We use the real image as the appearance source and we map it to the voxels of the provided 3D object as before. Note that unlike the previous experiments with ShapeNet objects, Pix3D also includes scanned objects with imperfect geometry. In Fig. 15 we present our renderings when the voxels and the appearance come from real images. Our framework is able to faithfully render these objects despite not being trained on real objects and despite significantly different geometric, illumination and material conditions than the training set.
+
+Testing on other categories. Our framework extends to other categories that were not included in the training dataset. In this experiment we take the NVR+ network trained on the default Chair category and we apply it to real images from other categories. In Fig. 16 we illustrate the rendering for sofas, tables and other miscellaneous objects from Itea [33] and Pix3D [63] datasets.
+
+# 5. Conclusion
+
+We presented Neural Voxel Processor, a framework that synthesizes realistic images given object voxels as input, and provides editing functionalities to the output. Our framework can reproduce the detailed appearance of the input due to a rerendering module that handles high-frequency and complex textures. We show a wide range of rendering scenarios, where we modify the input scene with respect to illumination, object geometry and appearance. Moreover, we demonstrate the appearance capture and rendering of real objects from several categories. We hence believe that our neural renderer is a useful tool that advances the state-of-the-art and can spawn further research.
+
+# References
+
+[1] Adobe substance. https://www.substance3d.com/.2
+[2] Autodesk 3ds max. https://www.autodesk.com/products/3ds-max/.1
+[3] Blender - a 3d modelling and rendering package. http://www.blender.org.1,4,5
+[4] Hdri-haven. https://hdrihaven.com/.8
+[5] Magicavirus. https://ephtracy.github.io/.3,6
+[6] Unity photogrammetry workflow. https://unity.com/solutions/photogrammetry.2
+[7] Mathieu Aubry, Daniel Maturana, Alexei Efros, Bryan Russell, and Josef Sivic. Seeing 3d chairs: exemplar part-based 2d-3d alignment using a large dataset of cad models. In CVPR, 2014. 3
+[8] Guha Balakrishnan, Amy Zhao, Adrian V. Dalca, Frédo Durand, and John V. Guttag. Synthesizing images of humans in unseen poses. In CVPR, 2018. 2
+[9] Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale GAN training for high fidelity natural image synthesis. In ICLR, 2019. 1
+[10] Caroline Chan, Shiry Ginosar, Tinghui Zhou, and Alexei A Efros. Everybody dance now. In ICCV, 2019. 2
+[11] Angel X. Chang, Thomas Funkhouser, Leonidas Guibas, Pat Hanrahan, Qixing Huang, Zimo Li, Silvio Savarese, Manolis Savva, Shuran Song, Hao Su, Jianxiong Xiao, Li Yi, and Fisher Yu. ShapeNet: An Information-Rich 3D Model Repository. Technical Report arXiv:1512.03012 [cs.GR], Stanford University — Princeton University — Toyota Technological Institute at Chicago, 2015. 5
+[12] Wenzheng Chen, Huan Ling, Jun Gao, Edward Smith, Jaako Lehtinen, Alec Jacobson, and Sanja Fidler. Learning to predict 3d objects with an interpolation-based differentiable renderer. In NeurIPS, 2019. 2
+[13] M. Cimpoi, S. Maji, I. Kokkinos, S. Mohamed, , and A. Vedaldi. Describing textures in the wild. In CVPR, 2014. 5
+[14] Valentin Deschaintre, Miika Aittala, Fredo Durand, George Drettakis, and Adrien Bousseau. Single-image svbrdf capture with a rendering-aware deep network. ACM Trans. Graph., 37(4), 2018. 3
+[15] A. Dosovitskiy, J. T. Springenberg, and T. Brox. Learning to generate chairs with convolutional neural networks. In CVPR, 2015. 2
+[16] Ersin Yumer Duygu Ceylan Alexander C. Berg Eunbyung Park, Jimei Yang. Transformation-grounded image generation network for novel 3d view synthesis. In CVPR, 2017. 2
+[17] L. A. Gatys, A. S. Ecker, and M. Bethge. Image style transfer using convolutional neural networks. In CVPR, Jun 2016. 2
+[18] Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In NeurIPS. 2014. 1
+[19] Yoshitaka Ushiku Hiroharu Kato and Tatsuya Harada. Neural 3d mesh renderer. In CVPR, 2018. 2, 3
+
+[20] Hui Huang, Ke Xie, Lin Ma, Dani Lischinski, Minglun Gong, Xin Tong, and Daniel Cohen-or. Appearance modeling via proxy-to-image alignment. ACM Trans. Graph., 37(1):10:1-10:15, 2018. 3
+[21] Qixing Huang, Hai Wang, and Vladlen Koltun. Single-view reconstruction via joint analysis of image and shape collections. ACM Trans. Graph., 34, 08 2015. 3
+[22] Moos Hueting, Pradyumna Reddy, Ersin Yumer, Vladimir G. Kim, Nathan Carr, and Niloy J. Mitra. Seethrough: Finding objects in heavily occluded indoor scene images. In 3DV, 2018. 3
+[23] Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. In CVPR, 2017. 1, 2, 7
+[24] James T. Kajiya. The rendering equation. In SIGGRAPH, 1986. 1
+[25] Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In CVPR, 2019. 1
+[26] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015. 4
+[27] Tejas D Kulkarni, William F. Whitney, Pushmeet Kohli, and Josh Tenenbaum. Deep convolutional inverse graphics network. In NeurIPS. 2015. 2
+[28] Marc Levoy. Display of surfaces from volume data. IEEE Comput. Graph. Appl., 8(3), 1988. 3
+[29] Tzu-Mao Li, Miika Aittala, Frédo Durand, and Jaakko Lehtinen. Differentiable monte carlo ray tracing through edge sampling. ACM Trans. Graph., 37(6), 2018. 2
+[30] Xiao Li, Yue Dong, Pieter Peers, and Xin Tong. Modeling surface appearance from a single photograph using self-augmented convolutional neural networks. ACM Trans. Graph., 36(4), 2017. 3
+[31] Yijun Li, Ming-Yu Liu, Xueting Li, Ming-Hsuan Yang, and Jan Kautz. A closed-form solution to photorealistic image stylization. In ECCV, 2018. 2
+[32] Zhengqin Li, Kalyan Sunkavalli, and Manmohan Krishna Chandraker. Materials for masses: Svbrdf acquisition with a single mobile phone image. In ECCV, 2018. 3
+[33] Joseph J. Lim, Hamed Piriavash, and Antonio Torralba. Parsing IKEA Objects: Fine Pose Estimation. In ICCV, 2013. 8
+[34] Guilin Liu, Duygu Ceylan, Ersin Yumer, Jimei Yang, and Jyh-Ming Lien. Material editing using a physically based rendering network. ICCV, 2017. 3
+[35] L. Liu, W. Xu, M. Zollhoefer, H. Kim, F. Bernard, M. Habermann, W. Wang, and C. Theobalt. Neural Animation and Reenactment of Human Actor Videos. ACM Trans. Graph., 2019. 2
+[36] Shichen Liu, Tianye Li, Weikai Chen, and Hao Li. Soft rasterizer: A differentiable renderer for image-based 3d reasoning. In ICCV, 2019. 2, 3
+[37] Stephen Lombardi, Jason Saragih, Tomas Simon, and Yaser Sheikh. Deep appearance models for face rendering. ACM Trans. Graph., 37(4), 2018. 2
+[38] Stephen Lombardi, Tomas Simon, Jason Saragih, Gabriel Schwartz, Andreas Lehrmann, and Yaser Sheikh. Neural vol
+
+umes: Learning dynamic renderable volumes from images. ACM Trans. Graph., 38(4), 2019. 2
+[39] Fujun Luan, Sylvain Paris, Eli Shechtman, and Kavita Bala. Deep photo style transfer. In CVPR, 2017. 2
+[40] Liqian Ma, Xu Jia, Qianru Sun, Bernt Schiele, Tinne Tuytelaars, and Luc Van Gool. Pose guided person image generation. In NeurIPS, 2017. 2
+[41] Ricardo Martin-Brualla, Rohit Pandey, Shuoran Yang, Pavel Pidlympenskyi, Jonathan Taylor, Julien Valentin, Sameh Khamis, Philip Davidson, Anastasia Tkach, Peter Lincoln, Adarsh Kowdle, Christoph Rhemann, Dan B Goldman, Cem Keskin, Steve Seitz, Shahram Izadi, and Sean Fanello. Lookingood: Enhancing performance capture with real-time neural re-rendering. ACM Trans. Graph., 37(6), 2018. 1, 2
+[42] Lars Mescheder, Michael Oechsle, Michael Niemeyer, Sebastian Nowozin, and Andreas Geiger. Occupancy networks: Learning 3d reconstruction in function space. In CVPR, 2019. 3
+[43] Moustafa Meshry, Dan B Goldman, Sameh Khamis, Hugues Hoppe, Rohit Pandey, Noah Snively, and Ricardo Martin-Brualla. Neural rerendering in the wild. In CVPR, 2019. 1, 2
+[44] Oliver Nalbach, Elena Arabadzhiyska, Dushyant Mehta, Hans-Peter Seidel, and Tobias Ritschel. Deep shading: Convolutional neural networks for screen-space shading. 36(4), 2017. 1, 2, 3, 7
+[45] Thu Nguyen-Phuoc, Chuan Li, Stephen Balaban, and Yong-Liang Yang. Rendernet: A deep convolutional network for differentiable rendering from 3d shapes. In NeurIPS, 2018. 1, 2, 4, 6
+[46] Thu Nguyen-Phuoc, Chuan Li, Lucas Theis, Christian Richardt, and Yong-Liang Yang. Hologan: Unsupervised learning of 3d representations from natural images. In ICCV, 2019. 2
+[47] Michael Oechsle, Lars M. Mescheder, Michael Niemeyer, Thilo Strauss, and Andreas Geiger. Texture fields: Learning texture representations in function space. In ICCV, 2019. 2, 3
+[48] Kyle Olszewski, Sergey Tulyakov, Oliver Woodford, Hao Li, and Linjie Luo. Transformable bottleneck networks. 2019. 2, 4
+[49] Jeong Joon Park, Peter Florence, Julian Straub, Richard A. Newcombe, and Steven Lovegrove. Deepsdf: Learning continuous signed distance functions for shape representation. In CVPR, 2019. 3
+[50] Keunhong Park, Konstantinos Rematas, Ali Farhadi, and Steven M. Seitz. Photoshape: Photorealistic materials for large-scale shape collections. ACM Trans. Graph., 37(6), Nov. 2018. 3
+[51] Taesung Park, Ming-Yu Liu, Ting-Chun Wang, and Jun-Yan Zhu. Semantic image synthesis with spatially-adaptive normalization. In CVPR, 2019. 2
+[52] Bui Tuong Phong. Illumination for computer generated pictures. Commun. ACM, 18(6), 1975. 2
+[53] Francesco Pittaluga, Sanjeev J Koppal, Sing Bing Kang, and Sudipta N Sinha. Revealing scenes by inverting structure from motion reconstructions. In CVPR, 2019. 2
+
+[54] Konstantinos Rematas, Chuong Nguyen, Tobias Ritschel, Mario Fritz, and Tinne Tuytelaars. Novel views of objects from a single image. TPAMI, 2017. 3
+[55] Konstantinos Rematas, Tobias Ritschel, Mario Fritz, and Tinne Tuytelaars. Image-based synthesis and re-synthesis of viewpoints guided by 3d models. In CVPR, 2014. 2
+[56] O. Ronneberger, P.Fischer, and T. Brox. U-net: Convolutional networks for biomedical image segmentation. In MIC-CAI, 2015. 5
+[57] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. IJCV, 2015. 1
+[58] M. Savva, F. Yu, Hao Su, M. Aono, B. Chen, D. Cohen-Or, W. Deng, Hang Su, S. Bai, X. Bai, N. Fish, J. Han, E. Kalogerakis, E. G. Learned-Miller, Y. Li, M. Liao, S. Maji, A. Tatsuma, Y. Wang, N. Zhang, and Z. Zhou. Large-scale 3d shape retrieval from shapenet core55. In Eurographics Workshop on 3D Object Retrieval, 2016. 5
+[59] Steven M. Seitz, Brian Curless, James Diebel, Daniel Scharstein, and Richard Szeliski. A comparison and evaluation of multi-view stereo reconstruction algorithms. In CVPR, 2006. 2
+[60] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. 4
+[61] Vincent Sitzmann, Justus Thies, Felix Heide, Matthias Nießner, Gordon Wetzstein, and Michael Zollhöfer. Deepvoxels: Learning persistent 3d feature embeddings. In CVPR, 2019. 2
+[62] Shao-Hua Sun, Minyoung Huh, Yuan-Hong Liao, Ning Zhang, and Joseph J Lim. Multi-view to novel view: Synthesizing novel views with self-learned confidence. In ECCV, 2018. 2
+[63] Xingyuan Sun, Jiajun Wu, Xiuming Zhang, Zhoutong Zhang, Chengkai Zhang, Tianfan Xue, Joshua B Tenenbaum, and William T Freeman. Pix3d: Dataset and methods for single-image 3d shape modeling. In CVPR, 2018. 8
+[64] M. Tatarchenko, A. Dosovitskiy, and T. Brox. Multi-view 3d models from single images with a convolutional network. In ECCV, 2016. 2, 6
+[65] Justus Thies, Michael Zollhöfer, and Matthias Nießner. Deferred neural rendering: Image synthesis using neural textures. ACM Trans. Graph., 2019. 2
+[66] Shubham Tulsiani, Tinghui Zhou, Alexei A. Efros, and Jitendra Malik. Multi-view supervision for single-view reconstruction via differentiable ray consistency. In CVPR, 2017. 2
+[67] 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 CVPR, 2018. 2
+[68] Tuanfeng Y. Wang, Hao Su, Qixing Huang, Jingwei Huang, Leonidas Guibas, and Niloy J. Mitra. Unsupervised texture transfer from images to model collections. ACM Trans. Graph., 35(6), 2016. 3
+
+[69] Daniel E. Worrall, Stephan J. Garbin, Daniyar Turmukhambetov, and Gabriel J. Brostow. Interpretable transformations with encoder-decoder networks. In ICCV, 2017. 2
+[70] Wang Yifan, Felice Serena, Shihao Wu, Cengiz Öztreli, and Olga Sorkine-Hornung. Differentiable surface splatting for point-based geometry processing. ACM Trans. Graph., 38(6), 2019. 2
+[71] Tinghui Zhou, Shubham Tulsiani, Weilun Sun, Jitendra Malik, and Alexei A Efros. View synthesis by appearance flow. In ECCV, 2016. 2
+[72] Matthias Zwicker, Hanspeter Pfister, Jeroen van Baar, and Markus H. Gross. Surface splatting. In SIGGRAPH, 2001. 4
\ No newline at end of file
diff --git a/neuralvoxelrendererlearninganaccurateandcontrollablerenderingtool/images.zip b/neuralvoxelrendererlearninganaccurateandcontrollablerenderingtool/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..40dc0840aac7c60001368f37af84fe4160cd855a
--- /dev/null
+++ b/neuralvoxelrendererlearninganaccurateandcontrollablerenderingtool/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9385b81968ee640f87bbe1f3892a4d6b8d1e541ccaaadba875f4a20c4583098e
+size 460124
diff --git a/neuralvoxelrendererlearninganaccurateandcontrollablerenderingtool/layout.json b/neuralvoxelrendererlearninganaccurateandcontrollablerenderingtool/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..8701d3d8cf784cee6ac90939793bf251c907d68e
--- /dev/null
+++ b/neuralvoxelrendererlearninganaccurateandcontrollablerenderingtool/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d1e8accb64ac46832b65a3652b7839ee5dd521aff64de966a3cee685d32fab2c
+size 409133
diff --git a/neuromorphiccameraguidedhighdynamicrangeimaging/475f26f3-fbd2-4458-92a5-b6f4bbe6d6f6_content_list.json b/neuromorphiccameraguidedhighdynamicrangeimaging/475f26f3-fbd2-4458-92a5-b6f4bbe6d6f6_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..2996f8eb5770d21c37a642e15ee14d94450b4cab
--- /dev/null
+++ b/neuromorphiccameraguidedhighdynamicrangeimaging/475f26f3-fbd2-4458-92a5-b6f4bbe6d6f6_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1a754a053940100e92b2c18f0867bf11358a7b2bc70514e0d9bede68ae78d10c
+size 72356
diff --git a/neuromorphiccameraguidedhighdynamicrangeimaging/475f26f3-fbd2-4458-92a5-b6f4bbe6d6f6_model.json b/neuromorphiccameraguidedhighdynamicrangeimaging/475f26f3-fbd2-4458-92a5-b6f4bbe6d6f6_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..13d50ac4b2336a90cbc45c9307aa6e1204f6e56a
--- /dev/null
+++ b/neuromorphiccameraguidedhighdynamicrangeimaging/475f26f3-fbd2-4458-92a5-b6f4bbe6d6f6_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5220a05e019c7f569dbf8274290f33c14f328384c38fab6a7605c8ce30639d4f
+size 93252
diff --git a/neuromorphiccameraguidedhighdynamicrangeimaging/475f26f3-fbd2-4458-92a5-b6f4bbe6d6f6_origin.pdf b/neuromorphiccameraguidedhighdynamicrangeimaging/475f26f3-fbd2-4458-92a5-b6f4bbe6d6f6_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..6ed7868e10b2d01eb42a706d6bbafb9d6f103535
--- /dev/null
+++ b/neuromorphiccameraguidedhighdynamicrangeimaging/475f26f3-fbd2-4458-92a5-b6f4bbe6d6f6_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fb95f7b05002515e37b6111b5598429c5071e8101621749c1cb947ee7f29c572
+size 3419471
diff --git a/neuromorphiccameraguidedhighdynamicrangeimaging/full.md b/neuromorphiccameraguidedhighdynamicrangeimaging/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..8b89f76551f28cde6f413150b43f749b3612d047
--- /dev/null
+++ b/neuromorphiccameraguidedhighdynamicrangeimaging/full.md
@@ -0,0 +1,320 @@
+# Neuromorphic Camera Guided High Dynamic Range Imaging
+
+Jin Han1 Chu Zhou1 Peiqi Duan2 Yehui Tang1 Chang Xu3 Chao Xu1 Tiejun Huang2 Boxin Shi2*
+1Key Laboratory of Machine Perception (MOE), Dept. of Machine Intelligence, Peking University
+2National Engineering Laboratory for Video Technology, Dept. of Computer Science, Peking University
+3School of Computer Science, Faculty of Engineering, University of Sydney
+
+# Abstract
+
+Reconstruction of high dynamic range image from a single low dynamic range image captured by a frame-based conventional camera, which suffers from over- or underexposure, is an ill-posed problem. In contrast, recent neuromorphic cameras are able to record high dynamic range scenes in the form of an intensity map, with much lower spatial resolution, and without color. In this paper, we propose a neuromorphic camera guided high dynamic range imaging pipeline, and a network consisting of specially designed modules according to each step in the pipeline, which bridges the domain gaps on resolution, dynamic range, and color representation between two types of sensors and images. A hybrid camera system has been built to validate that the proposed method is able to reconstruct quantitatively and qualitatively high-quality high dynamic range images by successfully fusing the images and intensity maps for various real-world scenarios.
+
+# 1. Introduction
+
+High Dynamic Range (HDR) imaging is a widely used technique that extends the luminance range covered by an image. A batch of HDR imaging techniques have developed in recent decades by computer vision and graphics community, as summarized by Sen and Aguerrebere [48]. Traditional methods include taking multiple Low Dynamic Range (LDR) images under different exposures, then merging them with different weights to reproduce an HDR image [6]. Another approach is hallucinating texture details from a single LDR image, which is called inverse tone mapping [3]. Inverse tone mapping is obviously an ill-posed problem, that relies on predicting badly exposed regions from neighboring areas [54] or priors learned through deep neural networks [7].
+
+In recent years, some specially designed neuromorphic cameras, such as DAVIS [4], have drawn increas
+
+
+Figure 1. An intensity map guided HDR network is proposed to fuse the LDR image from a conventional camera and the intensity map captured by a neuromorphic camera, to reconstruct an HDR image.
+
+ing attention of researchers. Neuromorphic cameras have unique features different from conventional frame-based cameras, they are particularly good at sensing very fast motion and high dynamic range scenes (1 $\mu$ s and 130 dB for DAVIS240). The latter characteristic can be utilized to form an intensity map, which encodes useful information lost in conventional imaging by a dynamic range capped camera due to over- and/or under-exposure. Despite the distinctive advantages in dynamic range, neuromorphic cameras generally bear low spatial resolution (180 × 240 for DAVIS240) and do not record color information, resulting in intensity maps less aesthetically pleasing as LDR photos captured by a modern camera. It is therefore interesting to study the fusion of LDR images and intensity maps with mutual benefits being combined for high-quality HDR imaging.
+
+In this paper, we propose a neuromorphic camera guided HDR imaging method. Directly stitching the intensity map and LDR image from two types of sensors is expected to produce poor HDR reconstruction, due to the great domain gap on spatial resolution, dynamic range, color representation and so on. To address these issues, we propose the intensity map guided HDR network, with specific modules designed for each type of gap. As illustrated in Fig. 1, the
+
+proposed network successfully takes as input two types of images and reconstructs a high-quality HDR image.
+
+The main contributions of this paper can be summarized as follows:
+
+1) We propose an information fusion pipeline to reconstruct an HDR image by jointly taking a single LDR image and an intensity map. This pipeline demonstrates the principles and design methodologies to bridge the gap on resolution, dynamic range, and color representation between two types of sensors and images (Sec. 3.1).
+2) According to the proposed pipeline, an intensity map guided HDR network is constructed to achieve the faithful reconstruction. We design specific modules in the network to address each type of gap in a more effective and robust manner (Sec. 3.2).
+3) We build a hybrid camera system to demonstrate that the proposed method is applicable to real cameras and scenes (Sec. 4.2). Extensive experiments on synthetic data, and real-world data captured by our hybrid camera validate that the proposed network is able to reconstruct visually impressive HDR images compared with state-of-the-art inverse tone mapping approaches.
+
+# 2. Related Work
+
+Image-based HDR reconstruction. The classic HDR imaging method was proposed by Debevec and Malik [6] by merging several photographs under different exposures. However, aligning different LDR images may lead to ghosting in the reconstructed HDR result due to misalignment caused by camera movement or changes in the scene. This problem incurs a lot of research on deghosting in HDR images [26, 38, 49, 56]. Instead of merging multiple images, inverse tone mapping was proposed by Banterle et al. [3], whose intent is to reconstruct visually convincing HDR images from a single LDR image. This ill-posed problem was attempted to be solved by several optimized approaches [30, 34, 43].
+
+In recent years, Convolutional Neural Networks (CNNs) have been applied to a lot of HDR image reconstruction tasks. Kalantari and Ramamoorthi [25] firstly aligned images under different exposures using optical flow, and then fed them to a neural network which merged LDR images to reconstruct an HDR image. Eilertsen et al. [7] used a U-Net [44] like network to predict the saturated areas in LDR images, and applied a mask to reserve non-saturated pixels in LDR images, then fused the masked image with predicted image to get the HDR results. Endo et al. [8] clipped the badly exposed pixels at first. It predicted the LDR images under multiple exposures, then merged these LDR images using classic method [6]. ExpandNet [33] adopted three branches of encoders, concentrating on different level features, then it concatenated and fused the features to get HDR
+
+images. Trinidad et al. [52] proposed PixelFusionNet to fuse misaligned images from multi-view under different exposures for dynamic range expansion.
+
+Computational HDR imaging. HDR imaging problem would become less ill-posed by using computational approaches or even unconventional cameras that implicitly or explicitly encode expanded dynamic range of the scene. Nayar et al. [36] added an optical mask on a conventional camera sensor to get spacially varying pixel exposures. Tocci et al. [51] implemented an HDR-video system that used a beam splitter to simultaneously capture three images with different exposure levels, then merged them into an HDR image. Hirakawa and Simon [18] placed a combination of photographic filter over the lens and color filter array on a conventional camera sensor to realize single-shot HDR imaging. Zhao et al. [58] used a modulo camera that is able to wrap the high radiance of dynamic range scene periodically and save modulo information, then used Markov Random Field to unwrap and predict the HDR scene radiance pixel-wisely.
+
+Inspired by the mechanism of human retina, neuromorphic sensors such as DAVIS [4] (Dynamic and Active Pixel Vision Sensor), ATIS [40] (Asynchronous Time-based Image Sensor), FSM [59] (retina-inspired Fovea-like Sampling Model), and CeleX [20] detect the changes of scene radiance asynchronously. This series of non-conventional sensors surpass conventional frame-based cameras in various aspects [10] including high dynamic range. Reconstructing from raw events/spikes data has shown great potential in recovering very high dynamic range of the scene [21, 41, 42, 46, 59]. But there are few attempts trying to combine them with conventional imaging to produce more visually pleasing HDR photos with higher resolution and realistic color appearance.
+
+# 3. Proposed Method
+
+# 3.1. LDR Image and Intensity Map Fusion Pipeline
+
+As illustrated in Fig. 1, our goal is to reconstruct an HDR image given the input of an LDR image $I$ and an intensity map $X$ . Such a fusion pipeline can be conceptually illustrated using Fig. 2, which contains four key steps:
+
+Color space conversion. Most conventional cameras record color images in RGB format and each channel contains pixel values represented by 8-bit integers. There exists a nonlinear mapping between scene radiance and the pixel values in the camera pipeline, so we have to firstly map LDR images to linear domain via the inverse camera response function (CRF) $f^{-1}$ . To fuse with the one-channel intensity map, we then convert color space of the LDR image from RGB to YUV. The $Y$ channel $I_{Y}$ indicates the luminance of $I$ which is in the same domain of $X$ , and $U, V$
+
+
+Figure 2. The conceptual pipeline of intensity map guided HDR imaging, consisting of four steps: color space conversion of the LDR image, spatial upsampling of the intensity map, luminance fusion to produce HDR image in luminance domain, and chrominance compensation that refills the color information to get a colorful HDR result.
+
+channels contain the color information. We use $I_{Y}$ to fuse with intensity map and reserve $U, V$ channels as chrominance information to be added back later.
+
+Spatial upsampling. To bridge the resolution gap between $X$ and $I_{Y}$ , we need to do an upsampling operation for the intensity map to make it have the same size as $I_{Y}$ . The upsampling operation $S(\cdot)$ is defined as follows:
+
+$$
+X ^ {H R} = S (X), \tag {1}
+$$
+
+where $X^{HR}$ is the upsampled intensity map. $S(\cdot)$ can be any upsampling operator such as nearest neighbor or bicubic interpolation, or a pre-trained neural network for superresolution.
+
+Luminance fusion. To expand the dynamic range of $I_{Y}$ using $X_{HR}$ , an intuitive solution is to define a weighting function which indicates the pixels that should be retained for fusion and those should be discarded. This can be implemented by adopting a similar merging strategy proposed by Debevec and Malik [6]. The fused value of $H_{Y}$ is calculated as follows:
+
+$$
+H _ {Y} = W \left(I _ {Y}, X ^ {H R}\right) = \frac {w ^ {I} I _ {Y} + w ^ {X} X ^ {H R}}{w ^ {I} + w ^ {X}}, \tag {2}
+$$
+
+where $w^{I}$ and $w^{X} \in [0,1]$ indicate corresponding weights for different types of input signals. A straightforward way to determine the weight values is to set a threshold $\tau$ (e.g., $\tau > 0.5$ ) manually. Pixel values (normalized to [0,1]) lying in the effective range $[1 - \tau, \tau]$ are given larger weights to retain the information, while values out of the range are either too dark (under-exposed) or too bright (overexposed), hence smaller weights are given to discard such information. A binary mask could be calculated based on the threshold, which is the simplest way to get a weight map. Another option is to set weights as a linear ramp,
+
+
+LDR image $I$
+
+
+Weighting function
+
+
+Weight map
+
+
+Upsampled $X$
+
+
+Fused result
+
+
+Figure 3. An example of fusing an intensity map and an LDR image using a linear ramp as weighting function. Such a straightforward fusion strategy results in various unpleasant artifacts (color distortion in the red box and blurry artifacts in the green box).
+
+which is similar to the pixel-wise blending in [7]. Such a weighting function can be expressed as
+
+$$
+w _ {i} = \frac {0 . 5 - \max \left(\left| I _ {i} - 0 . 5 \right| , \tau - 0 . 5\right)}{1 - \tau}. \tag {3}
+$$
+
+The weighting function and calculated weight map are shown in the first row of Fig. 3.
+
+Chrominance compensation. $H_{Y}$ now contains HDR information in high resolution, but only in luminance domain. The color information can be compensated from $U, V$ channels of $I$ , i.e., $I_{U}$ and $I_{V}$ . Denote $C(\cdot)$ as the color compensation operator, this procedure can be represented as
+
+$$
+H = C \left(H _ {Y}, I _ {U}, I _ {V}\right), \tag {4}
+$$
+
+which combines $H_{Y}$ with $I_{U}, I_{V}$ , and converts it back to RGB color space.
+
+
+Figure 4. Overview of the intensity map guided HDR network architecture. It contains upsampling & luminance fusion network for HDR reconstruction in luminance domain, which is a double-encoder network with the input of $I_{Y}$ and $X$ , followed by the chrominance compensation network which takes the $H_{RGB}$ as input to refine the color information.
+
+Due to the dynamic range gap between $H_{Y}$ and $I_{U}(I_{V})$ , directly combining them leads to unnatural color appearance, such as $H_{RGB}$ shown in the color compensation block of Fig. 2. Realistic color appearance could be recovered using some color correction methods, such as color histograms adaptive equalization [5] or tone curve adjustment [31].
+
+The synthetic example in Fig. 3 demonstrates that simply applying the conceptual pipeline in Fig. 2 may not achieve a satisfying HDR image. From the green box, we can easily observe blurry artifacts caused by misalignment between $I$ and $X$ (we add displacement between $I$ and $X$ in synthetic data to simulate the real setup), and unrealistic color recovery in the red box due to dynamic range gap.
+
+To address these issues, we translate the pipeline in Fig. 2 as an end-to-end network $\mathcal{F}(\cdot)$ :
+
+$$
+H = C \left(W \left(f ^ {- 1} \left(I _ {Y}\right), S (X)\right), I _ {U}, I _ {V}\right) = \mathcal {F} (I, X; \theta), \tag {5}
+$$
+
+where $\theta$ denotes parameters of the network. We will next introduce the specific concerns in realizing each of the four steps using deep neural networks.
+
+# 3.2. Intensity Map Guided HDR Network
+
+In this section, we describe the details of the proposed network, whose architecture is shown in Fig. 4. First of all, inverse CRF and color space conversion are conducted offline as a preprocessing to input. Then for each pixel in the input $I_{Y}$ , the proposed network learns to extend the bitwidth with the information encoded in $X$ . We design specific modules in the network in accordance to the remaining three steps described in Sec. 3.1. Upsampling and luminance fusion can be realized by deconvolutional layers and skip connections in the network, respectively. Therefore, we design the network using the U-Net [44] architecture
+
+with double encoder (encoder of $I_{Y}$ and $X$ ) and one decoder, the encoder of $X$ guides the decoder to reconstruct HDR images at multiple representation scales.
+
+Upsampling using deconvolution. We perform the upsampling operation by deconvolutional filters in the decoder. The purpose of decoder is to reconstruct $H_{Y}$ from the fused latent representation, which has been encoded by the two encoders. Deconvolution has the ability to diffuse information from a small scale feature map to a larger feature map with learnable parameters. Feature maps from $X$ at multiple scales guide the decoder to upsample with extended dynamic range information. Compared to a naive upsampling operation $S(\cdot)$ , the deconvolutional layers learn a comprehensive representation from the image context to realize upsampling operation by end-to-end backpropagation, rather than simply rely on interpolation from nearby pixels.
+
+Luminance fusion with attention masks. Information fusion in the luminance domain is the key step for dynamic range expansion. The proposed architecture applies skip-connections, which transfer feature maps between encoders and decoder to incorporate both rich textures in $I_{Y}$ and high dynamic range information in $X$ . Deeper networks have been shown to benefit from skip-connections in a variety of tasks [16, 19]. However, simply concatenating feature maps from two encoders is expected to be influenced by the dynamic range gap between the two input images. So we fuse the concatenated tensor by $1 \times 1$ convolution before each deconvolutional layer. As stated in the luminance fusion part of Sec. 3.1, a weighting function $W(\cdot)$ is added to determine the regions to retain, and the regions to be complemented by the other input. The weighting function can be implemented by introducing attention mechanism [23] in the network to assign different importance to different parts of an image. We choose to use self-attention gate [47]
+
+
+Figure 5. An example of attention mask calculated from self-attention module, which is added on LDR image to filter the badly exposed regions and reserve useful information for reconstruction.
+
+as a mask added on $I_{Y}$ to preserve the relevant information. There is no mask being added on $X_{a}^{l}$ and we use it just to complement the information that $I_{Y}$ lacks. The attention mask is computed by $1 \times 1$ convolution, then activated by a non-linear function as implemented in Attention U-Net [39]. Then the element-wise multiplication of attention mask and input feature map from $I_{Y}$ is able to filter the badly exposed pixels and reserve areas with valid information for reconstruction. Compared to assigning weights intuitively like Eq. (2), our attention mask is computed from feature maps of two input images, and the learnable parameters can be trained end-to-end. Fig. 5 demonstrates the effectiveness of attention mask.
+
+Chrominance compensation network. Given the HDR image in luminance domain $H_{Y}$ , we combine it with chrominance information $I_{U}$ and $I_{V}$ from the LDR image, then convert it to RGB color space to recover color appearance. The directly converted $H_{RGB}$ may suffer from color distortion due to the dynamic range gap between $H_{Y}$ and $I_{U}(I_{V})$ . Because the luminance values of $Y$ channel are stored in high precision format (e.g., float), while the $UV$ values directly inherited from $I$ are still in 8-bit integer format. As a result, the converted $H_{RGB}$ tends to be dim and less colorful after tone mapping, as shown in Fig. 4. Therefore, we propose a chrominance compensation network to realize color correction for $H_{RGB}$ . The network is an autoencoder [17] architecture with residual blocks [16], as the skip-connections in residual blocks learn to compensate for the difference between input and output images. It recovers the chrominance information on each pixel and learns to reconstruct realistic color appearance in HDR images, as demonstrated in the Output $H$ of Fig. 4.
+
+# 3.3. Loss Function
+
+The proposed network reconstructs images in the linear luminance domain, which covers a wide range of values. Calculating loss between the output images $H_{Y}$ and ground truth $\hat{H}_{Y}$ directly may cause the loss function being dominated by large values of $H_{Y}$ , while the effect of small values tends to be ignored. Therefore, it is reasonable to compute loss function between $H_{Y}$ and $\hat{H}_{Y}$ after tone mapping. The range of pixel values are compressed by the following func
+
+tion proposed by [25] after normalized to $[0,1]$ :
+
+$$
+\mathcal {T} \left(H _ {Y}\right) = \frac {\log \left(1 + \mu H _ {Y}\right)}{\log (1 + \mu)}, \tag {6}
+$$
+
+where $\mathcal{T}(\cdot)$ is the tone mapping operator and $\mu$ (set to be 5000) denotes the amount of compression. The tone mapping operator is computationally effective and differentiable, thus easy for back-propagation.
+
+We train our network by minimizing the loss function which has two parts: pixel loss and perceptual loss [24]. Pixel loss computes the $\ell_1$ norm distance between $\mathcal{T}(H_Y)$ and $\mathcal{T}(\hat{H}_Y)$ :
+
+$$
+\mathcal {L} _ {\text {p i x e l}} = \left\| \mathcal {T} \left(H _ {Y}\right) - \mathcal {T} \left(\hat {H _ {Y}}\right) \right\| _ {1}. \tag {7}
+$$
+
+Since the LDR images and intensity maps are taken from different cameras, the misalignment in the input pair is unavoidable. We try to solve this problem by adding the perceptual loss, which is defined for tone-mapped images based on feature maps extracted from the VGG-16 network [50] pre-trained on ImageNet [45]:
+
+$$
+\begin{array}{l} \mathcal {L} _ {p e r c} = \sum_ {h} \left(\left\| \phi_ {h} (\mathcal {T} (H _ {Y})) - \phi_ {h} (\mathcal {T} (\hat {H} _ {Y})) \right\| _ {2} ^ {2} \right. \\ \left. + \left\| G _ {h} ^ {\phi} \left(\mathcal {T} \left(H _ {Y}\right)\right) - G _ {h} ^ {\phi} \left(\mathcal {T} \left(\hat {H} _ {Y}\right)\right) \right\| _ {2} ^ {2}\right), \tag {8} \\ \end{array}
+$$
+
+where $\phi_h$ denotes the feature map convoluted from $h$ -th layer of VGG-16, $G_h^\phi$ is the Gram matrix of feature maps $\phi_h$ of two input images. Both of the two parts are computed by $\ell_2$ norm. We use the layers 'relu4_3' and 'relu5_3' of VGG-16 network in our experiments, because high-level features are less sensitive to unaligned pair of images.
+
+To summarize, our total loss is written as:
+
+$$
+\mathcal {L} _ {\text {t o t a l}} = \alpha_ {1} \mathcal {L} _ {\text {p i x e l}} + \alpha_ {2} \mathcal {L} _ {\text {p e r c}}, \tag {9}
+$$
+
+where $\alpha_{1}$ and $\alpha_{2}$ are the weights for different parts of loss function. We set as $\alpha_{1} = 100.0$ and $\alpha_{2} = 3.0$ .
+
+As for the chrominance compensation network, we also apply pixel loss and perceptual loss, and a slight difference is that the weight for perceptual loss $\alpha_{2}$ is 5.0.
+
+# 3.4. Methods of Acquiring Intensity Maps
+
+The intensity maps can be acquired by various types of neuromorphic cameras.
+
+Indirect approach. For neuromorphic cameras such as DAVIS [4], the output is a sequence of events data, containing the time, location, and polarity information of log intensity changes in a scene. The high dynamic range scene radiance is recorded in a differential manner by event cameras. Among many methods of reconstructing intensity maps from events, we choose the E2VID [41] network to
+
+accumulate streams of events as a spatial-temporal voxel grid for reconstruction because it reconstructs the most convincing HDR intensity maps according to our experiments.
+
+Direct approach. Intensity maps can also be acquired from spike-based neuromorphic cameras such as FSM [59]. Each pixel of the FSM responds to luminance changes independently as temporally asynchronous spikes. The accumulator at each pixel accumulates the luminance intensity digitalized by the A/D converter. Once the accumulated intensity reaches a pre-defined threshold, a spike is fired at this time stamp, and then the corresponding accumulator is reset in which all the charges are drained. To get the intensity map, we apply a moving time window to integrate the spikes in a specific period, and the intensity map can be computed by counting these spikes pixel-wisely [59]. FSM generates 40000 time stamps per second. We find that setting the window size as 1000 time stamps (1/40 second) reconstructs valid HDR intensity maps in our experiments.
+
+# 3.5. Implementation Details
+
+Dataset preparation. Learning-based methods rely heavily on training data. However, there are no sufficiently large-scale real HDR image datasets. Therefore, we collect HDR images from various image sources [1, 2, 11, 12, 37, 57] and video sources [9, 29]. Since the proposed network has two different types of images as input, we synthesize LDR images from HDR images like taking photos with a virtual camera [7]. The irradiance values of HDR images are scaled by random exposure time and then distorted by different non-linear response curves from DoRF [15]. As for the intensity maps, we simulate them in accordance with those acquired from neuromorphic cameras. Event camera estimates the gradients of the scene, and reconstructs the intensity maps using event data. So we firstly compute the gradients of tone-mapped HDR images and reconstruct intensity maps using Poisson solver [27] to simulate such process. During the training, we apply data augmentation to get an augmented set of pairwise data. We resize the original HDR images and then crop them to $512 \times 512$ at random locations followed by random flipping. We select viewpoints that an image covers the scene region with HDR information. Intensity maps are augmented using the same operations except cropping to the size of $256 \times 256$ as a low-resolution input.
+
+Training strategy. The proposed network is implemented by PyTorch, and we use ADAM optimizer [28] during the training process with a batch size of 2. 600 epochs of training enables the network to converge. The initial learning rate is $10^{-5}$ , during the first 400 epochs it is fixed, in the next 200 epochs, it decays to 0 with a linear strategy. The encoder of $I_{Y}$ is a VGG-16 network [50]. We convert $I$ from RGB to YUV color space and duplicate $I_{Y}$ twice to
+
+form a 3-channel tensor, since the input channel size of VGG-16 network is supposed to be three. The network is initialized with Xavier initialization [13]. We use instance normalization (IN) [53] instead of batch normalization (BN) [22] after each deconvolutional layer in the decoder. The output of network is activated by Sigmoid function that maps pixel values to the range of $[0, 1]$ .
+
+# 4. Experiments
+
+# 4.1. Quantitative Evaluation using Synthetic Data
+
+Fig. 6 shows reconstruction results of the proposed and other comparing methods. To the best of our knowledge, the proposed framework is the first one to combine LDR images with intensity maps to realize HDR images reconstruction. Therefore, we compare to three state-of-the-art deep learning based inverse tone mapping methods: DrTMO [8], ExpandNet [33], HDRCNN [7]; and traditional method [6] merging an over- and an under-exposed images with the exposure ratio of $50:1$ . For the sake of fairness, we omit the comparison to merging three or more LDR images with different exposures. Thanks to the complementary dynamic range information provided by intensity maps, the proposed approach is able to recover rich texture details in the images such as clouds or the outline of the intense light source. For example, in the top row of Fig. 6, the leaves around the street lamp (green box) and the trunk (red box) are clearly visible in our results, which are similar to the ground truth, while this is not the case for other inverse tone mapping methods. Although merging two LDR images extends the dynamic range (more reliable than single-image solutions), it cannot recover rich details of a scene due to the limited dynamic range covered by two LDR images.
+
+Besides visual comparison, we conduct quantitative evaluations using the widely adopted HDR-VDP-2.2 metrics [35], which computes the visual difference and predicts the visibility and quality between two HDR images. It produces the quality map and Q-Score for each HDR image to indicate the quality of reconstruction. Fig. 7 shows the quality maps and Q-Scores of different methods. The quality maps show the difference probability between a predicted HDR image and the ground truth. Results show that the proposed approach achieves more similarities to the ground truth and higher Q-Score in HDR image reconstruction compared to other methods.
+
+# 4.2. Qualitative Evaluation using Real-world Data
+
+In order to demonstrate the effectiveness of the proposed method on real-world scenarios, we build a hybrid camera system [55], which is composed of a conventional camera (Point Grey Chameleon 3) and a neuromorphic camera (DAVIS240 [4] or FSM [59]) with the same F/1.4 lens, as illustrated in Fig. 8. There is a beam splitter in front of the two sensors, which splits the incoming light and sends them
+
+
+Figure 6. Visual comparison between the proposed method and state-of-the-art deep learning based inverse tone mapping methods: DrTMO [8], ExpandNet [33], HDRCNN [7]; and a conventional approach merging two LDR images [6]. The Q-Scores are labeled in each image. Please zoom-in electronic versions for better details.
+
+
+Figure 7. Comparisons on quality maps and Q-Scores calculated from HDR-VDP-2.2 evaluation metrics [35]. Visual differences increase from blue to red. Q-Scores average across all images in the whole test dataset.
+
+to different sensors simultaneously. We conduct geometric calibration and crop the center part from two camera views to extract the well-aligned regions as $I$ and $X$ .
+
+We take photos for both indoor and outdoor high dynamic range scenes and reconstruct the HDR images using our method. In Fig. 9, the input images are first fused in the luminance domain (the third column) and then compensated by the chrominance information (the last column). Results show that the proposed method could fuse the input $I$ and $X$ to reconstruct high-quality HDR images. For example, the outline of car roof (the first row) is over-exposed due to the strongly reflected light, but the detailed texture could
+
+
+Figure 8. The prototype of our hybrid HDR imaging system composed of a conventional and a neuromorphic camera.
+
+be captured by the neuromorphic cameras, and recovered in the fusion results using our method. Some artifacts could be observed in our results, such as in the glass window of the second row. This is brought by the intensity map during image reconstruction using stacked events [41], since we need to shake the DAVIS to trigger events, where blur and noise may occur.
+
+# 4.3. Ablation Study
+
+To validate the effectiveness of the proposed architecture and each specific module, we conduct ablation study on three variants as follows. Visual comparison for different variants is shown in Fig. 10.
+
+
+Figure 9. Real data results reconstructed by the proposed network. The LDR images are captured by conventional cameras and the intensity maps are acquired by DAVIS (the upper two rows) and FSM (the lower two rows).
+
+
+
+
+Figure 10. Visual comparison of different variants of the proposed method. (a) Input LDR image, (b) without attention mask, (c) single encoder architecture, (d) adding adversarial loss, (e) intensity map guided HDR network, and (f) ground truth.
+
+Without attention masks. We investigate the effectiveness of the attention mask module. As shown in Fig. 10 (b), the green box of over-exposed region is similar to the input LDR image. Without the guidance of attention masks, it is difficult for the network to correctly distinguish information to reserve or discard. Hence leads to some artifacts.
+
+Single encoder architecture. We compare our network with a single encoder architecture without the encoder of $X$ . This can be achieved by scaling $X$ to the same size of $I_{Y}$ and concatenating them at first, then sending the 4-channel tensor to a single encoder. In this case, two images
+
+from different domains are directly combined. As Fig. 10 (c) shows, although the over-exposed region is recovered, obvious artifacts can be observed in the under-exposed regions.
+
+Adding adversarial loss. We investigate adding adversarial loss [14] $\mathcal{L}_{adv}$ to the total loss function. By treating the proposed network as the generator, we train a discriminator simultaneously to distinguish the real or fake HDR image. The example in Fig. 10 (d) shows that the adversarial loss may lead to undesired mosaics in both over- and under-exposed areas.
+
+We also conduct HDR-VDP-2.2 metrics for different models, and the average Q-Scores are calculated for evaluation, which are shown in the following results. Without attention masks: 45.55, single encoder: 49.74, adding adversarial loss: 45.22, complete model: 51.68. These results demonstrate our complete model achieves the optimal performance with these specifically designed strategies.
+
+# 5. Conclusion
+
+We proposed a neuromorphic camera guided HDR imaging method, which fuses the LDR images and the intensity maps to reconstruct visually pleasing HDR images. A hybrid camera system has been built to capture images in real-world scenarios. Extensive experiments on synthetic data and real-world data demonstrate that the proposed method outperforms state-of-the-art comparing methods.
+
+Discussion. Considering the limitation of GPU memory, we use $512 \times 512$ LDR images and $256 \times 256$ intensity maps to train the networks. However, our model can handle higher resolution LDR images once we upsample the intensity maps to the corresponding scale level with LDR images. Apart from that, increasing the resolution of output images might also be achieved by a pre-trained super-resolution network [32].
+
+Limitations and future work. Due to the distortion of camera lens and different field of views of the two sensors in our hybrid camera system, the pixels that are better aligned are mostly centered on the whole image plane. Therefore, although this paper demonstrates convincing evidence of fusing two types of images for HDR imaging, the final quality still has a gap between merging multiple images of different exposures, captured by a modern DLSR with tens of millions of pixels. To realize this, using a better designed hybrid camera is our future work.
+
+# 6. Acknowledgement
+
+This work is supported by National Natural Science Foundation of China under Grant No. 61872012, No. 61876007, and Beijing Academy of Artificial Intelligence (BAAI).
+
+# References
+
+[1] Funt et al. HDR dataset. https://www2.cs.sfu.ca/colour/data/funt_hdr/#DESCRIPTION.
+[2] sIBL archive. http://www.hdrlabs.com/sibl/archive.html.
+[3] Francesco Banterle, Patrick Ledda, Kurt Debattista, and Alan Chalmers. Inverse tone mapping. In Proc. of International Conference on Computer Graphics and Interactive Techniques, 2006.
+[4] Christian Brandli, Raphael Berner, Minhao Yang, Shih-Chii Liu, and Tobi Delbruck. A $240 \times 180$ 130 db $3\mu s$ latency global shutter spatiotemporal vision sensor. Journal of Solid-State Circuits, 49(10):2333-2341, 2014.
+[5] Vasile V Buzuloiu, Mihai Ciuc, Rangaraj M Rangayyan, and Constantin Vertan. Adaptive-neighborhood histogram equalization of color images. Journal of Electronic Imaging, 10(2):445-460, 2001.
+[6] Paul E Debevec and Jitendra Malik. Recovering high dynamic range radiance maps from photographs. In Proc. of ACM SIGGRAPH, 1997.
+[7] Gabriel Eilertsen, Joel Kronander, Gyorgy Denes, Rafat K. Mantiuk, and Jonas Unger. HDR image reconstruction from a single exposure using deep CNNs. ACM Transactions on Graphics (Proc. of ACM SIGGRAPH Asia), 36(6):178:1-178:15, Nov. 2017.
+[8] Yuki Endo, Yoshihiro Kanamori, and Jun Mitani. Deep reverse tone mapping. ACM Transactions on Graphics (Proc. of ACM SIGGRAPH Asia), 36(6):177:1-177:10, Nov. 2017.
+[9] Jan Froehlich, Stefan Grandinetti, Bernd Eberhardt, Simon Walter, Andreas Schilling, and Harald Brendel. Creating cinematic wide gamut HDR-video for the evaluation of tone mapping operators and HDR-displays. In Proc. of Digital Photography X, 2014.
+[10] Guillermo Gallego, Tobi Delbruck, Garrick Orchard, Chiara Bartolozzi, Brian Taba, Andrea Censi, Stefan Leutenegger, Andrew Davison, Joerg Conradt, Kostas Daniilidis, and Scaramuzza. Davide. Event-based vision: A survey. arXiv preprint arXiv:1904.08405, 2019.
+[11] Marc-Andre Gardner, Kalyan Sunkavalli, Ersin Yumer, Xiaohui Shen, Emiliano Gambaretto, Christian Gagné, and Jean-François Lalonde. Learning to predict indoor illumination from a single image. arXiv preprint arXiv:1704.00090, 2017.
+[12] Mathieu Garon, Kalyan Sunkavalli, Sunil Hadap, Nathan Carr, and Jean-François Lalonde. Fast spatially-varying indoor lighting estimation. In Proc. of Computer Vision and Pattern Recognition, 2019.
+[13] Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In Proc. of International Conference on Artificial Intelligence and Statistics, 2010.
+[14] Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Proc. of International Conference on Neural Information Proceeding Systems, 2014.
+[15] Michael D Grossberg and Shree K Nayar. What is the space of camera response functions? In Proc. of Computer Vision and Pattern Recognition, 2003.
+
+[16] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proc. of Computer Vision and Pattern Recognition, 2016.
+[17] Geoffrey E Hinton and Ruslan R Salakhutdinov. Reducing the dimensionality of data with neural networks. Science, 313(5786):504-507, 2006.
+[18] Keigo Hirakawa and Paul M Simon. Single-shot high dynamic range imaging with conventional camera hardware. In Proc. of International Conference on Computer Vision, 2011.
+[19] Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proc. of Computer Vision and Pattern Recognition, 2017.
+[20] Jing Huang, Menghan Guo, and Shoushun Chen. A dynamic vision sensor with direct logarithmic output and full-frame picture-on-demand. In Proc. of International Symposium on Circuits and Systems, 2017.
+[21] S. Mohammad Mostafavi I., Lin Wang, Yo-Sung Ho, and Kuk-Jin Yoon. Event-based high dynamic range image and very high frame rate video generation using conditional generative adversarial networks. In Proc. of Computer Vision and Pattern Recognition, 2019.
+[22] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015.
+[23] Saumya Jetley, Nicholas A Lord, Namhoon Lee, and Philip HS Torr. Learn to pay attention. arXiv preprint arXiv:1804.02391, 2018.
+[24] Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. In Proc. of European Conference on Computer Vision, 2016.
+[25] Nima Khademi Kalantari and Ravi Ramamoorthi. Deep high dynamic range imaging of dynamic scenes. ACM Transactions on Graphics (Proc. of ACM SIGGRAPH), 36(4):144-1, 2017.
+[26] Erum Arif Khan, Ahmet Oguz Akyuz, and Erik Reinhard. Ghost removal in high dynamic range images. In Proc. of Internatioinal Conference on Computational Photography, 2006.
+[27] H Kim, A Handa, R Benosman, SH Ieng, and AJ Davison. Simultaneous mosaicing and tracking with an event camera. In Proc. of the British Machine Vision Conference, 2014.
+[28] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
+[29] Joel Kronander, Stefan Gustavson, Gerhard Bonnet, and Jonas Unger. Unified HDR reconstruction from raw CFA data. In Proc. of Internatioinal Conference on Computational Photography, 2013.
+[30] Pin-Hung Kuo, Chi-Sun Tang, and Shao-Yi Chien. Content-adaptive inverse tone mapping. In Proc. of Visual Communications and Image Processing, 2012.
+[31] Markku Lamberg, Joni Oja, Tero Vuori, and Kristina Bjorknas. Image adjustment with tone rendering curve, June 9 2005. US Patent App. 10/729,872.
+[32] Christian Ledig, Lucas Theis, Ferenc Huszár, 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. In Proc. of Computer Vision and Pattern Recognition, 2017.
+[33] Demetris Marnerides, Thomas Bashford-Rogers, Jonathan Hatchett, and Kurt Debattista. ExpandNet: A deep convolutional neural network for high dynamic range expansion from low dynamic range content. In Computer Graphics Forum, volume 37, 2018.
+[34] Belen Masia, Sandra Agustin, Roland W. Fleming, Olga Sorkine, and Diego Gutierrez. Evaluation of reverse tone mapping through varying exposure conditions. ACM Transactions on Graphics (Proc. of ACM SIGGRAPH Asia), 28(5):160:1-160:8, Dec. 2009.
+[35] Manish Narwaria, Rafal Mantiuk, Matthieu P. Da Silva, and Patrick Le Callet. HDR-VDP-2.2: A calibrated method for objective quality prediction of high-dynamic range and standard images. Journal of Electronic Imaging, 24:010501, 2015.
+[36] Shree K Nayar and Tomoo Mitsunaga. High dynamic range imaging: Spatially varying pixel exposures. In Proc. of Computer Vision and Pattern Recognition, 2000.
+[37] Hiromi Nemoto, Pavel Korshunov, Philippe Hanhart, and Touradj Ebrahimi. Visual attention in LDR and HDR images. In Proc. of International Workshop on Video Processing and Quality Metrics for Consumer Electronics, 2015.
+[38] Tae-Hyun Oh, Joon-Young Lee, Yu-Wing Tai, and In So Kweon. Robust high dynamic range imaging by rank minimization. IEEE Transactions on Pattern Analysis and Machine Intelligence, 37(6):1219-1232, 2014.
+[39] Ozan Oktay, Jo Schlemper, Loic Le Folgoc, Matthew Lee, Mattias Heinrich, Kazunari Misawa, Kensaku Mori, Steven McDonagh, Nils Y Hammerla, Bernhard Kainz, Ben Glocker, and Daniel Rueckert. Attention U-Net: Learning where to look for the pancreas. arXiv preprint arXiv:1804.03999, 2018.
+[40] Christoph Posch, Daniel Matolin, and Rainer Wohlgenannt. An asynchronous time-based image sensor. In Proc. of International Symposium on Circuits and Systems, 2008.
+[41] Henri Rebecq, René Ranftl, Vladlen Koltun, and Davide Scaramuzza. Events-to-video: Bringing modern computer vision to event cameras. In Proc. of Computer Vision and Pattern Recognition, 2019.
+[42] Christian Reinbacher, Gottfried Graber, and Thomas Pock. Real-time intensity-image reconstruction for event cameras using manifold regularisation. arXiv preprint arXiv:1607.06283, 2016.
+[43] Allan G. Rempel, Matthew Trentacoste, Helge Seetzen, H. David Young, Wolfgang Heidrich, Lorne Whitehead, and Greg Ward. LDR2HDR: On-the-fly reverse tone mapping of legacy video and photographs. ACM Transactions on Graphics (Proc. of ACM SIGGRAPH), 26(3), July 2007.
+[44] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-Net: Convolutional networks for biomedical image segmentation. In Proc. of International Conference on Medical Image Computing and Computer-assisted Intervention, 2015.
+[45] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C Berg, and Li Fei-Fei. ImageNet large scale visual recognition challenge. International Journal of Computer Vision, 115(3):211-252,
+
+2015.
+[46] Cedric Scheerlinck, Nick Barnes, and Robert Mahony. Continuous-time intensity estimation using event cameras. In Proc. of Asian Conference on Computer Vision, 2018.
+[47] Jo Schlemper, Ozan Oktay, Liang Chen, Jacqueline Matthew, Caroline Knight, Bernhard Kainz, Ben Glocker, and Daniel Rueckert. Attention-gated networks for improving ultrasound scan plane detection. arXiv preprint arXiv:1804.05338, 2018.
+[48] Pradeep Sen and Cecilia Aguerrebere. Practical high dynamic range imaging of everyday scenes: Photographing the world as we see it with our own eyes. Signal Processing Magazine, 33(5):36-44, 2016.
+[49] Pradeep Sen, Nima Khademi Kalantari, Maziar Yaesoubi, Soheil Darabi, Dan B. Goldman, and Eli Shechtman. Robust patch-based HDR reconstruction of dynamic scenes. ACM Transactions on Graphics (Proc. of ACM SIGGRAPH), 31(6):203:1-203:11, Nov. 2012.
+[50] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
+[51] Michael D. Tocci, Chris Kiser, Nora Tocci, and Pradeep Sen. A versatile HDR video production system. ACM Transactions on Graphics (Proc. of ACM SIGGRAPH), 30(4):41:1-41:10, July 2011.
+[52] Marc Comino Trinidad, Ricardo Martin Brualla, Florian Kainz, and Janne Kontkanen. Multi-view image fusion. In Proc. of International Conference on Computer Vision, 2019.
+[53] Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. Instance normalization: The missing ingredient for fast stylization. arXiv preprint arXiv:1607.08022, 2016.
+[54] Lvdi Wang, Li-Yi Wei, Kun Zhou, Baining Guo, and Heung-Yeung Shum. High dynamic range image hallucination. In Proc. of the Eurographics conference on Rendering Techniques, 2007.
+[55] Zihao Wang, Peiqi Duan, Oliver Cossairt, Aggelos Katsaggelos, Tiejun Huang, and Boxin Shi. Joint filtering of intensity images and neuromorphic events for high-resolution noise-robust imaging. In Proc. of Computer Vision and Pattern Recognition, 2020.
+[56] Greg Ward. Fast, robust image registration for compositing high dynamic range photographs from hand-held exposures. Journal of Graphics Tools, 8(2):17-30, 2003.
+[57] Feng Xiao, Jeffrey M DiCarlo, Peter B Catrysse, and Brian A Wandell. High dynamic range imaging of natural scenes. In Proc. of Color and Imaging Conference, 2002.
+[58] Hang Zhao, Boxin Shi, Christy Fernandez-Cull, Sai-Kit Yeung, and Ramesh Raskar. Unbounded high dynamic range photography using a modulo camera. In Proc. of International Conference on Computational Photography, 2015.
+[59] Lin Zhu, Siwei Dong, Tiejun Huang, and Yonghong Tian. A retina-inspired sampling method for visual texture reconstruction. In Proc. of International Conference on Multimedia and Expo, 2019.
\ No newline at end of file
diff --git a/neuromorphiccameraguidedhighdynamicrangeimaging/images.zip b/neuromorphiccameraguidedhighdynamicrangeimaging/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..a10315b3002f30c46edd6c38df294e7545a5fba4
--- /dev/null
+++ b/neuromorphiccameraguidedhighdynamicrangeimaging/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7cc1c0e3125f46198db8d4b150e8461542b5ccb61a5f02953b593d48b8ba9029
+size 682281
diff --git a/neuromorphiccameraguidedhighdynamicrangeimaging/layout.json b/neuromorphiccameraguidedhighdynamicrangeimaging/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..7e665637a08f1bd6784ac409c5e90ecad498c49e
--- /dev/null
+++ b/neuromorphiccameraguidedhighdynamicrangeimaging/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:54781f6b6b010577e68c719234bffc01381332de303d6871f5937d2f92510d87
+size 411904
diff --git a/nmsbyrepresentativeregiontowardscrowdedpedestriandetectionbyproposalpairing/d1e1154f-3947-4238-bae6-7a58e623427b_content_list.json b/nmsbyrepresentativeregiontowardscrowdedpedestriandetectionbyproposalpairing/d1e1154f-3947-4238-bae6-7a58e623427b_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..6f35c7e7a89cd715d34b47549f977088c368f8b5
--- /dev/null
+++ b/nmsbyrepresentativeregiontowardscrowdedpedestriandetectionbyproposalpairing/d1e1154f-3947-4238-bae6-7a58e623427b_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ac6eceab9dda2340f046e6fa8ab6b889e6505d7dd3e9d5ebaa542e36c82ecb87
+size 72019
diff --git a/nmsbyrepresentativeregiontowardscrowdedpedestriandetectionbyproposalpairing/d1e1154f-3947-4238-bae6-7a58e623427b_model.json b/nmsbyrepresentativeregiontowardscrowdedpedestriandetectionbyproposalpairing/d1e1154f-3947-4238-bae6-7a58e623427b_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..37282eea4be3c0c218521451f4ee800f21e8a68d
--- /dev/null
+++ b/nmsbyrepresentativeregiontowardscrowdedpedestriandetectionbyproposalpairing/d1e1154f-3947-4238-bae6-7a58e623427b_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5588143eafa3054941507e4bbbcceba1030a9cfcb18f6f9be39e218ccd1f4816
+size 85285
diff --git a/nmsbyrepresentativeregiontowardscrowdedpedestriandetectionbyproposalpairing/d1e1154f-3947-4238-bae6-7a58e623427b_origin.pdf b/nmsbyrepresentativeregiontowardscrowdedpedestriandetectionbyproposalpairing/d1e1154f-3947-4238-bae6-7a58e623427b_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..b284a43c78f94a7a3adb3cf52c3eccd17091cdba
--- /dev/null
+++ b/nmsbyrepresentativeregiontowardscrowdedpedestriandetectionbyproposalpairing/d1e1154f-3947-4238-bae6-7a58e623427b_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2aad39a70d503c8977008dbe57edb2b389c78051ba2e8092a084eb6f803b4522
+size 490158
diff --git a/nmsbyrepresentativeregiontowardscrowdedpedestriandetectionbyproposalpairing/full.md b/nmsbyrepresentativeregiontowardscrowdedpedestriandetectionbyproposalpairing/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..0f383a50b237b33f1e72897ec6a3bb13f3063b9f
--- /dev/null
+++ b/nmsbyrepresentativeregiontowardscrowdedpedestriandetectionbyproposalpairing/full.md
@@ -0,0 +1,261 @@
+# NMS by Representative Region: Towards Crowded Pedestrian Detection by Proposal Pairing
+
+Xin Huang $^{1*}$ , Zheng Ge $^{1*}$ , Zequn Jie $^{2}$ , Osamu Yoshie $^{1}$ $^{1}$ Waseda University, $^{2}$ Tencent AI Lab
+
+koushin@toki.waseda.jp; jokerzz@fuji.waseda.jp; zequn.nus@gmail.com; yoshie@waseda.jp
+
+# Abstract
+
+Although significant progress has been made in pedestrian detection recently, pedestrian detection in crowded scenes is still challenging. The heavy occlusion between pedestrians imposes great challenges to the standard Non-Maximum Suppression (NMS). A relative low threshold of intersection over union (IoU) leads to missing highly overlapped pedestrians, while a higher one brings in plenty of false positives. To avoid such a dilemma, this paper proposes a novel Representative Region NMS ( $R^2$ NMS) approach leveraging the less occluded visible parts, effectively removing the redundant boxes without bringing in many false positives. To acquire the visible parts, a novel Paired-Box Model (PBM) is proposed to simultaneously predict the full and visible boxes of a pedestrian. The full and visible boxes constitute a pair serving as the sample unit of the model, thus guaranteeing a strong correspondence between the two boxes throughout the detection pipeline. Moreover, convenient feature integration of the two boxes is allowed for the better performance on both full and visible pedestrian detection tasks. Experiments on the challenging CrowdHuman [20] and CityPersons [24] benchmarks sufficiently validate the effectiveness of the proposed approach on pedestrian detection in the crowded situation.
+
+# 1. Introduction
+
+Pedestrian detection is a critical component of various real-world applications such as self-driving cars, and intelligent video surveillance. In recent years, the performance of pedestrian detectors has been rapidly improved with the rise of deep convolutional neural networks (CNNs) [21, 7, 8]. However, pedestrian detection in the occluded situation remains challenging. Occlusion can be usually categorized into inter-class occlusion and intra-class occlusion. In interclass occlusion, part of the human body is shielded by background objects such as pillar, car, trash box, and others. The
+
+
+Figure 1. Illustration of $\mathbb{R}^2\mathrm{NMS}$ . The image on the left shows two detected results before NMS. Red BBoxes are full body predictions and green BBoxes are visible body predictions. Two small images on the right show the final results which is processed by original NMS and $\mathbb{R}^2\mathrm{NMS}$ . The red solid BBox represents the preserved BBoxes while red dotted BBox indicates the reduced true positive BBox. Arrows represent the IoU calculation. The IoU of their full body prediction is 0.63 while the IoU of their visible body is only 0.18. Thus, original NMS will reduce the red dotted BBox but $\mathbb{R}^2\mathrm{NMS}$ is able to keep it.
+
+feature of background objects confuses the model, leading to a high missing rate in this situation. A common solution to alleviate the inter-class occlusion is modeling based on instance parts [14, 27, 15]. Visible parts can provide more discriminative and confident cues to guide the full-body detector. In intra-class occlusion, pedestrians have large overlaps with each other, so features of different instances will make detectors difficult to discriminate instance boundaries. As a result, detectors may give a lot of positives in overlapped area mistakenly. To solve this problem, Repulsion Loss [23] and AggLoss [25] propose additional penalties to the BBoxes which appear in the middle of the two persons. The proposals are forced to locate firmly and compactly to the ground-truth objects.
+
+However, even though the detectors succeed in identifying different human instances in a crowd, the highly overlapped results may also be suppressed by the post-processing of non-maximum suppression (NMS). This makes the current pedestrian detectors trapped in a dilemma: a lower threshold of intersection over union (IoU) resulting in the miss of highly overlapped pedestrians while
+
+a higher IoU threshold naturally brings in more false positives. To solve this problem, several modified versions of NMS have been proposed. Instead of directly discarding the highly overlapped BBoxes, soft-NMS [1] lowers detection scores of less confident BBoxes according to their overlaps with the most confident one. However, it still introduces lots of false positives of highly overlapped BBoxes. Adaptive NMS [12] proposed a dynamic thresholding version of NMS. It predicts a density map, and sets adaptive IoU thresholds in NMS for different BBoxes according to the predicted density. However, density estimation itself remains a difficult task, and the exact matching from density to the optimal IoU threshold is also hard to decide. Moreover, the inaccurate BBox prediction often leads to the inconsistency between the ground-truth density and the IoU of the predicted BBoxes, as shown in Fig. 2. This makes AdaptiveNMS still a sub-optimal solution.
+
+In this paper, we propose a novel NMS algorithm to overcome the issues of existing NMS approaches called NMS by representative region $(\mathbb{R}^2\mathrm{NMS})$ . $\mathbb{R}^2\mathrm{NMS}$ leverages the visible parts of the pedestrians in NMS, which effectively averts the troubles brought by the difficult NMS on highly overlapped full bodies. Since the visible parts of pedestrians usually suffer much less from occlusion, a relative low IoU threshold sufficiently removes the redundant BBoxes locating the same pedestrian, and meanwhile avoids the large number of false positives. An illustration of $\mathbb{R}^2\mathrm{NMS}$ is showing in Fig. 1.
+
+To obtain the visible part of a pedestrian, we propose a novel Paired-Box Model (PBM) based on the standard Faster R-CNN. PBM simultaneously predicts the full box and the visible box of a pedestrian in both RPN and the R-CNN module (i.e., from RoI sampling to the final post-classification and BBox regression layers). Specifically, a pair constituted by a full and a visible boxes is defined as the sample unit of both RPN and the R-CNN module. Such a pairing strategy guarantees a strong correspondence between the full and visible boxes throughout the detection pipeline. Moreover, the pairing solution allows the effective feature integration of the two boxes which benefits both the full and visible pedestrian detection tasks.
+
+Experiments on the extremely crowded benchmark CrowdHuman [20] and the CityPersons [24] show that the proposed approach can achieve the state-of-the-arts results, strongly validating the superiority of the method.
+
+To summarize, the contributions of this work are three-fold: (1) a novel NMS method - $\mathbf{R}^2\mathbf{N}\mathbf{M}\mathbf{S}$ , to overcome the weakness of original NMS; (2) a Paired-Box Model (PBM) which simultaneously predicts both the full and visible boxes of a single pedestrian, and performs convenient feature integration of the two boxes; (3) the state-of-the-art results on the challenging CrowdHuman and CityPersons benchmarks.
+
+
+Figure 2. Illustration of the weakness of AdaptiveNMS [12]. Green BBoxes are the full body annotations. Red dotted BBoxes are detected BBoxes which are not exactly match to ground truths. Overlap between the detected BBoxes is different from the overlap between ground truth BBoxes. If applying AdaptiveNMS in this situation, One detected BBox will be reduced.
+
+# 2. Related Works
+
+Generic Object Detection. With the rapid development of convolutional neural networks (CNNs) [21, 7, 8], great progress has been made in the object detection field. CNN based object detectors are usually categorized into one-stage and two-stage detectors. One-stage approaches [13, 17, 10, 18] aim to accelerate the inference process of detectors, to meet the requirement of time efficiency in various real world applications. In contrast to one-stage approaches, two-stage detectors [4, 19, 5] aim to pursue the cutting edge performance by adding a post classification and regression module to refine the detection results. To this end, Faster R-CNN [19] together with its variants e.g. FPN [9] and Mask R-CNN [6] builds a powerful baseline for the task of generic object detection.
+
+Occlusion Handling for Pedestrian Detection. Occlusion leads to two issues in pedestrian detection: mis-classifying occluded pedestrian and mis-placing detected results in a crowd. A common solution to the former problem is the part-based approaches [27, 25, 22] which elaborate series of body-part detectors to handle the specific visual pattern of occluded instances. Except aforementioned methods, a few of recent works focus on utilizing annotations of visible body as extra supervisions to improve the performance of pedestrian detection. Zhou et al. [28] is the first one who regresses full and visible body of a pedestrian at the same time. Zhang et al. [26] utilizes the annotations of visible parts as external guidance for better recognition performance on occluded instances. [16] incorporates attention mechanism into pedestrian detection to force the detectors
+
+
+Figure 3. Structure of our Paried-Box Model. Gray arrow represents the information flow. Pair RPN generates a pair of proposals from the same anchor. After that, pair proposal feature extractor aggregates the pair of proposal features and sends it to P-RCNN. P-RCNN predicts pairs of BBoxes. Finally, $\mathbb{R}^2\mathrm{NMS}$ serves as our post-processing method to filter out false positives. Two paired BBoxes examples are shown in brown dotted box.
+
+to focus more on visible regions of a pedestrian. Pedestrian detection in crowded scenes also raises a lot of attention. [23] and [25] both impose additional penalty terms on the BBoxes that appear in the middle of two persons. Adaptive NMS [12] predicts a density map to perform a modified version of NMS with dynamic thresholds. Different from all the existing works, our method utilizes the visible region information to assist the NMS, and forces the model to learn full and visible boxes together throughout the pipeline for the strong correspondence between the two boxes.
+
+# 3. Method
+
+In this section, we first analyze the weakness of the standard NMS and AdaptiveNMS [12] when handling crowd situation. Next, we introduce the proposed $\mathbf{R}^2$ NMS. Finally, we describe the Paired-Box Model (PBM) in detail.
+
+# 3.1. Analysis on original NMS and Adaptive NMS
+
+In object detection, multiple object proposals locating the same object may be highly scored by the model. In this case, NMS is necessary to filter out the less confident ones according to the predicted scores. However, in the crowded situation, the ground-truth pedestrians are highly overlapped. Naturally, the detection boxes locating different pedestrians can also have high overlaps with each other. Therefore, when using a relative low IoU threshold as in the MS COCO benchmark [11] during NMS, e.g., 0.5, many true positives of different instances may be suppressed. This significantly reduces the recall of all the instances, thus hurting the final detection performance. Take the CrowdHu
+
+man dataset as an example, for each of the 99,481 ground-truth instances in the validation set, we assume the detector can produce an exact BBox (i.e., the BBox is scored 1.0 and the IoU between the BBox and the ground-truth instance is also 1.0). However, after performing the standard NMS with IoU threshold 0.5, only 90,232 exact BBoxes are remained. $^{1}$ Nearly $10\%$ of the ground-truth instances are missed in detection. This indicates that even a perfect pedestrian detector fails to detect all the ground-truth instances, after the NMS using a relative low IoU threshold. On the contrary, setting a higher IoU threshold in NMS preserves more true positives, while significantly increase the false positives. Similarly, in the validation set of CrowdHuman, assuming all the ground-truth instances have exact predicted BBoxes, the missing rate will be reduced to $1\%$ when setting the IoU threshold of NMS as 0.7. However, the higher IoU threshold inevitably brings in more false positives in practice. For example, in the validation set of CrowdHuman, a well-trained Faster R-CNN based on ResNet-101 produces about 15,000 detection boxes whose score exceeds 0.5, after the NMS with the IoU threshold 0.7. Notice that the ground-truth instance number is 99,481, thus about 50,000 predicted boxes are redundant or false positives. Therefore, the dilemma of the standard NMS in the crowded situation is difficult to resolve.
+
+To overcome the shortcoming of the standard NMS, AdaptiveNMS [12] is proposed. AdaptiveNMS [12] is a dynamic thresholding version of NMS. It incorporates a sub
+
+
+(a)
+
+
+(b)
+
+
+(c)
+Figure 4. Illustration of P-RCNN. Red BBoxes represent the full body annotations. Green BBoxes stand for the visible annotations. Orange BBoxes are anchors. (a) P-RCNN regresses a pair of proposal from the same anchor. (b) The orange anchor is assigned to the man because it aligns well with the man's full and visible body. (c) Orange dotted anchor has large IoU with full body annotation, however, it is bad for visible body.
+
+network to predict the density for each location, and sets adaptive IoU thresholds in NMS for different BBoxes according to the predicted density. However, density estimation itself remains a difficult task. Besides, the matching from the density to the optimal IoU threshold is still handcrafted in AdaptiveNMS, and thus the exact matching is difficult to acquire. Moreover, the inaccurate BBox prediction often leads to the inconsistency between the ground-truth density and the IoU of the predicted BBoxes. The phenomenon is illustrated in Fig. 2. All these make the AdaptiveNMS still a sub-optimal solution.
+
+# 3.2. NMS by Representative Region
+
+To overcome the above issues of the standard NMS and AdaptiveNMS [12], we propose a novel NMS by representative region $(\mathbb{R}^2\mathbb{N}\mathbb{M}\mathbb{S})$ . The key difference between $\mathbb{R}^2\mathbb{N}\mathbb{M}\mathbb{S}$ and the standard NMS lies in the IoU calculation. Specifically, instead of directly calculating the IoU of two full-body boxes as their "overlap degree", the IoU between the visible regions of the two boxes are used to determine whether the two full-body boxes are overlapped. Such a visible region based overlap determination is based on the following observations. BBoxes locating different pedestrians usually have low IoU between their visible regions, even if the IoU between the two full boxes is large. In contrast, both the full and visible regions would have large IoUs when two BBoxes locate a same pedestrian. Therefore, the IoU between the visible regions of two boxes is a better indicator showing whether the two full-body boxes to belong to a same pedestrian. As a result, based on the visible regions, a relative low IoU threshold sufficiently removes the redundant BBoxes locating the same pedestrian, and meanwhile avoids the large number of false positives. The detailed algorithm of $\mathbb{R}^2\mathbb{N}\mathbb{M}\mathbb{S}$ is described in Algorithm 1.
+
+# 3.3. Paired-BBox Faster R-CNN
+
+To obtain the visible part of a pedestrian, we propose a novel Paired-Box Model (PBM) which simultaneously pre
+
+Algorithm 1 R²NMS
+Input: Score: $S = \{s_1,s_2,\dots,s_n\}$ Full body BBoxes: $B^{f} = \{b_{1}^{f},b_{2}^{f},\dots,b_{n}^{f}\}$ Visible body BBoxes: $B^{v} = \{b_{1}^{v},b_{2}^{v},\dots,b_{n}^{v}\}$ NMS threshold: $\Omega$
+Output: Pairs of result : $R$
+1: $R\gets \{\}$
+2: Removed BBoxes index list : $I\gets \{\}$
+3: According to $S$ , rank $B^{f}$ and $B^{v}$ in descending order.
+4: for $b_{i}^{v}\in B^{v}$ do
+5: if $i\in I$ or $i = n$ then
+6: pass
+7: else
+8: $j\gets i + 1$
+9: for $b_{j}^{v}\in B^{v}$ do
+10: overlap $\leftarrow$ IoU $(b_i^v,b_j^v)$
+11: if overlap $>\Omega$ then
+12: Add $j$ to $I$
+13: for $(b_i^f,b_i^v)\in (B^f,B^v)$ do
+14: if $i\notin I$ then
+15: Add $(b_i^f,b_i^v)$ to $R$
+16: return $R$
+
+dicts the full and visible boxes of a pedestrian. To this end, the PBM is based on a standard Faster R-CNN with the following three modifications, i.e., Paired Region Proposal Network (P-RPN), Paired Proposal Feature Extractor (PPFE) and Pair R-CNN (P-RCNN). Specifically, the P-RPN first generates a set of full/visible proposal pairs, each of which corresponds to the full and visible regions of a pedestrian. PPFE then extracts the feature of each proposal pair, and fuses the features of the full and visible boxes to provide an integrated representation for each pair. Finally, the integrated representations are fed into P-RCNN to perform pair-wise classification and further refinement for the predicted full and visible BBoxes. In this manner, BBoxes of both full and visible body with strong correspondence can be obtained, facilitating the use of $\mathbb{R}^2$ NMS.
+
+Paired Region Proposal Network. The duty of Paired Region Proposal Network (P-RPN) is generating paired full-body and visible-body proposals. Since the full and visible regions of a pedestrian usually have high overlaps, it is feasible to regress a pair of full-body and visible-body proposals from a same anchor. Moreover, regressing the two proposals from a same anchor provides inherent correspondence between the predicted full-body and visible-body proposals.
+
+The annotated full-body box $\mathbf{F}$ and the corresponding visible-body box $\mathrm{V}$ constitute a pair $\mathrm{Q} = (\mathrm{F},\mathrm{V})$ , serving
+
+
+Figure 5. Illustration of our proposed PPFE module.
+
+as the ground-truth unit of the model. We refer to the proposal matching method in [28] to assign ground-truth label to the anchors during training P-RPN. More specifically, the ground-truth assignment strategy in Faster R-CNN [19] is modified by adding one more restriction. For a certain anchor, we consider both its IoU w.r.t. the full-body ground-truth boxes and its IoF w.r.t. the visible ground-truth boxes. Formally, an anchor A is viewed as positive matched to the ground-truth pair $\mathrm{Q} = (\mathrm{F},\mathrm{V})$ , if the following requirements are satisfied.
+
+$$
+\operatorname {I o U} (\mathrm {A}, \mathrm {F}) \geq \alpha_ {1} \text {a n d} \operatorname {I o F} (\mathrm {A}, \mathrm {V}) \geq \beta_ {1}
+$$
+
+$$
+\operatorname {I o U} (\mathrm {A}, \mathrm {F}) = \frac {\operatorname {A r e a} (\mathrm {A} \cap \mathrm {F})}{\operatorname {A r e a} (\mathrm {A} \cup \mathrm {F})}
+$$
+
+$$
+\operatorname {I o F} (\mathrm {A}, \mathrm {V}) = \frac {\operatorname {A r e a} (\mathrm {A} \cap \mathrm {V})}{\operatorname {A r e a} (\mathrm {V})}
+$$
+
+Here $\alpha_{1}$ and $\beta_{1}$ are positive thresholds for the full body and visible body, respectively. According to our experiments, PBM performs the best when $\alpha_{1} = 0.7$ and $\beta_{1} = 0.7$ .
+
+The detailed architecture of P-RPN follows the RPN in Faster R-CNN [19]. The only difference lies in the output layer. Apart from the locations of the paired proposals, P-RPN also predicts a score for each pair showing whether confidence of the pair matching to a pedestrian. Therefore, for each dense anchor, P-RPN produces a 10-d result $(\mathbf{R}_{\mathbf{f}}, \mathbf{R}_{\mathbf{v}}, \mathbf{S})$ . Here $\mathbf{R}_{\mathbf{f}}$ and $\mathbf{R}_{\mathbf{v}}$ are 4-d BBox regression vectors $(f_x, f_y, f_w, f_h)$ and $(v_x, v_y, v_w, v_h)$ , towards the full-body and visible-body ground-truths, respectively. $\mathbf{S}$ is a 2-d confidence vector $(S_+, S_-)$ after softmax normalization. The loss functions used in training are the same as that in the standard RPN.
+
+Paired Proposal Feature Extractor. The pairing strategy in R-RPN allows an inherent correspondence between the full and visible proposals. We thus propose a Paired Proposal Feature Extractor (PPFE) to effectively integrate information from both proposals, facilitating the detection of both full and visible pedestrian detection tasks.
+
+Figure 5 shows two proposed ways of feature integration. A straightforward one is to directly concatenate the feature vectors of the full and visible proposals $\mathrm{F_f}$ and $\mathrm{F_v}$ after RoI Align. Because only $fc$ layers are used in P-RCNN, spatial alignment of the features of the two proposals are not necessary. Experimental results show that such a simple feature fusion method increases the performance a lot.
+
+The second way of feature integration is based on the attention mechanism which highlights the more informative visible regions. Specifically, for each pair of proposals, we generate a visible body attention mask showing whether to be inside the visible proposal for each pixel in the full-body proposal. If a pixel is also inside the visible proposal, we assign the value 1 to this pixel in the attention mask. Pixels outside the visible proposal are all set as 0 in the attention mask. The attention mask is then resized to the same size as the proposal feature after RoI Align, i.e., $7 \times 7$ . We then multiply the full-body proposal feature $\mathrm{F}_{\mathrm{f}}$ with the mask in an element-wise manner, to get the visible mask attention feature $\mathrm{F}_{\mathrm{m}}$ . Finally, We concatenate $\mathrm{F}_{\mathrm{v}}$ and $\mathrm{F}_{\mathrm{m}}$ to obtain the final integrated feature for the pair.
+
+Paired R-CNN. The integrated feature produced by PPFE serves as the input of the Paired R-CNN (P-RCNN). P-RCNN is used to perform both full and visible pedestrian detection, based on the proposal pairs. The detailed architecture of P-RCNN is based on the R-CNN module in Faster R-CNN [19], with the following modifications. After receiving the pair feature, P-RCNN contains two bifurcated branches following two shared $fc$ layers for the full and visible BBoxes prediction, respectively. Each of the branches has the exact same architecture and output as that in the standard Faster R-CNN.
+
+Similar to P-RPN, the essential problem in P-RCNN is how to assign the proposals to the ground-truths. We use a strategy which is quite similar to the anchor assignment method in P-RPN. To be more specific, for a pair of annotation $\mathrm{Q} = (\mathrm{F},\mathrm{V})$ , a pair of proposal $\mathrm{X} = (\mathrm{P_f},\mathrm{P_v})$ is positive if it satisfies:
+
+$$
+\operatorname {I o U} \left(\mathrm {P} _ {\mathrm {f}}, \mathrm {F}\right) \geq \alpha_ {2} \text {a n d} \operatorname {I o U} \left(\mathrm {P} _ {\mathrm {v}}, \mathrm {V}\right) \geq \beta_ {2}
+$$
+
+According to our experimental results, the best number for $\alpha_{2},\beta_{2}$ is 0.5 and 0.5. The loss functions used in training are also the same as that in the standard Faster R-CNN.
+
+As discussed above, the major modifications of PBM from Faster R-CNN introduce little extra computation, while brings a huge amount of performance gains. Experimental results in the next section verify the effectiveness of our model.
+
+# 4. Experiments
+
+To evaluate our proposed methods, we conduct several experiments on two crowd pedestrian datasets: CrowdHuman [20] and CityPersons [24].
+
+Table 1. Main results. * stands for our re-implemented results. MR and AP are abbreviations of the Log-Average Missing Rate and the Average Precision, respectively. MR, AP, Recall stand for the results for full body. MR-V stands for the MR for visible body. For MR, lower is better. For AP and Recall, higher is better. $\Delta$ MR-V and $\Delta$ MR-V indicate the absolute gain on visible and full body comparing to our re-implemented baseline. The best results are written in bold.
+
+| Method | P-RPN | P-RCNN | PPFE | R2NMS | MR-V | MR | AP | Recall | Δ MR-V | ΔMR |
| Baseline [20] | - | - | - | - | 55.94 | 50.42 | 84.95 | 90.24 | - | - |
| Baseline* | - | - | - | - | 55.57 | 46.28 | 84.91 | 88.25 | - | - |
| NPM | ✓ | ✓ | - | - | 54.18 | 45.43 | 85.59 | 88.92 | +1.39 | +0.85 |
| PBM | ✓ | ✓ | mask | - | 52.70 | 44.20 | 85.60 | 88.61 | +2.87 | +2.08 |
| PBM | ✓ | ✓ | mask | ✓ | 52.70 | 43.35 | 89.29 | 93.33 | +2.87 | +2.93 |
| PBM | ✓ | ✓ | concat | - | 52.19 | 44.32 | 85.50 | 88.28 | +3.38 | +1.96 |
| PBM | ✓ | ✓ | concat | ✓ | 52.19 | 43.57 | 89.28 | 93.10 | +3.38 | +2.71 |
+
+Table 2. Influence of varying $\beta_{1}$ and $\beta_{2}$ . NPM is the abbreviation of Naive Pair Model. The value of MR-V+MR reflects the model's performance on two of the annotation categories.
+
+| Method | β1 | β2 | MR-V | MR | MR-V+MR |
| Baseline | - | - | 55.57 | 46.28 | 101.85 |
| NPM | 0.8 | 0.5 | 54.81 | 46.34 | 101.15 |
| NPM | 0.6 | 0.5 | 54.65 | 45.42 | 100.07 |
| NPM | 0.7 | 0.5 | 54.18 | 45.30 | 99.48 |
| NPM | 0.7 | 0.6 | 54.35 | 47.23 | 101.58 |
| NPM | 0.7 | 0.4 | 55.80 | 44.53 | 100.33 |
+
+# 4.1. Datasets and Evaluation Metric
+
+CrowdHuman Dataset. Recently, CrowdHuman [20] dataset, a human detection benchmark, has been released to better evaluate pedestrian detectors in crowded scenarios. There are 15000, 4370 and 5000 images in training set, validation set, and test set respectively. The average of the number of persons in an image is 22.6. CrowdHuman [20] provides three categories of bounding boxes annotations for each human instance: head bounding-box, human visible-region bounding-box and human full-body bounding-box. All of our experiments are conducted under the settings of full body and visible body. The models are trained on the training set and evaluated on validation set.
+
+CityPersons Dataset. The CityPersons [24] dataset is a subset of Cityscapes [2] which only consists of person annotations. There are 2975 images for training, 500 and 1575 images for validation and testing. The average of the number of pedestrians in an image is 7. The visible-region and full-body annotations are provided. We evaluate our proposed methods under the full-body setting. Following to the evaluation protocol in CityPersons [24], objects whose height are less than 50 pixels are ignored. The validation set is further divided into several subsets according to visibility:
+
+(1) Reasonable (R): Visibility $\in$ [0.65, $\infty$ )
+(2) Heavy Occlusion (HO): Visibility $\in$ [0.2, 0.65)
+
+We show our results across these two subsets.
+
+Evaluation Metric. For evaluation, we follow the standard Caltech [3] evaluation metric - MR, which stands for the Log-Average Missing Rate over false positives per image (FPPI) ranging in $[10^{-2}, 10^{0}]$ . To better evaluate our methods, Average Precision (AP) and Recall are also provided.
+
+Table 3. Impact of PPFE.
+
+| Method | PPFE | MR-V | MR | AP | Recall |
| NPM | - | 54.18 | 45.43 | 85.59 | 88.92 |
| PBM | concat | 52.19 | 44.32 | 85.50 | 88.28 |
| PBM | mask | 52.70 | 44.20 | 85.50 | 88.61 |
+
+# 4.2. Implementation Details
+
+For CrowdHuman [20] dataset, we adopt Feature Pyramid Network (FPN) [9] with ResNet-50 [7] as our baseline. To extract more precise features, we adopt RoI Align [6] instead of RoI Pooling [19] for feature extraction. The anchor aspect ratios for full body and visible body are set to [0.5,1,2]. Because images in CrowdHuman dataset have various shapes, we resize them so that the short edge is 800 pixels while the long edge is smaller than 1400 pixels. We train our model on 8 GPUs with totally 16 images per minibatch. We use SGD with momentum of 0.9 as our optimizer and set the initial learning rate as 0.02. We train 20 epochs in total and decrease the learning rate by 0.1 at 16th and 19th epochs.
+
+For CityPersons dataset, we follow the settings in adapted Faster R-CNN framework [24]. Specifically, the backbone of our detector is VGG-16 [21]. To detect small objects, we remove the fourth max-pooling layer in VGG-16. The aspect ratio for anchor is set to 2.44. The anchor sizes are the same as in [24]. We also adopt Adam as our optimizer. We train our model 12 epochs in total on 8 GPUs with a total of 16 images per mini-batch. The initial learning rate is set to 0.0008. We decrease the learning rate by 0.1 at the 8th and 11th epochs. We do not upsample the input images and only use the reasonable subset of pedestrians for training.
+
+# 4.3. Detection Results on CrowdHuman
+
+Main results. To thoroughly evaluate the performance of our proposed methods, we conduct plenty of experiments on CrowdHuman [20] dataset and evaluate the performance under three evaluation metrics. MR is chosen as the main metric. Table 1 shows the performance of baseline and our proposed methods on CrowdHuman [20] validation subsets. For fair comparison, all the models listed in Table 1 share the same settings on hyper-parameters. As can
+
+Table 4. Ablation study of $\mathbb{R}^2$ NMS. $\mathbb{R}^2$ is the abbreviation of $\mathbb{R}^2$ NMS. PBM here utilizes the concat version of PPFE.
+
+| Method | β1 | β2 | MR-V | MR | AP | Recall |
| NPM | 0.7 | 0.4 | 55.80 | 44.53 | 85.62 | 88.74 |
| NPM+R2 | 0.7 | 0.4 | - | 45.91 | 88.21 | 93.27 |
| NPM | 0.7 | 0.5 | 54.18 | 45.30 | 85.59 | 88.69 |
| NPM+R2 | 0.7 | 0.5 | - | 45.87 | 88.39 | 93.76 |
| PBM | 0.7 | 0.5 | 51.92 | 44.79 | 85.62 | 88.12 |
| PBM+R2 | 0.7 | 0.5 | - | 43.57 | 89.28 | 93.10 |
+
+be seen in Table 1, our re-implemented FPN [9] baseline achieves $46.28\%$ MR on full body detection and $55.57\%$ MR on visible body detection, which outperform the baseline in CrowdHuman [20] by $4.14\%$ and $0.37\%$ , respectively. Therefore, our baseline is strong enough to validate the effectiveness of our proposed methods. Based on our strong baseline, our methods can further bring the notable $2.71\%$ , $4.37\%$ and $4.85\%$ improvements on MR, AP and Recall, respectively, which significantly demonstrate the ability of our methods. To analyze the contribution of our proposed modules individually, we progressively replace the components in the baseline model with our modules. The relevant ablation studies and analysis are illustrated in the following paragraphs.
+
+Influence of different hyper-parameter settings in pair-based sample unit. To evaluate the efficacy of our pair-based sample unit in the whole pipeline, we build a naive version of paired model which simply replace the RPN and R-CNN in Faster R-CNN by P-RPN and P-RCNN. In NPM, full and visible proposals from RPN are fed into two separate R-CNN modules. These two separate R-CNN modules are responsible for the full and visible body detection, respectively. Each R-CNN module has the same architecture as the standard one in Faster R-CNN. We conduct a group of experiments on NPM to find out the most reasonable hyper-parameter settings. To make the NPM have consistent hyper-parameter setting with the baseline, $\alpha_{1}$ and $\alpha_{2}$ are fixed, i.e., 0.7 and 0.5, separately. The influence of the varying $\beta_{1}$ and $\beta_{2}$ is comprehensively studied and the results are shown in Table 2. We can see that NPM works reasonably well with $\beta_{1} = 0.7$ and $\beta_{2} = 0.5$ . When $\alpha_{1}$ and $\alpha_{2}$ are fixed, $\beta_{1}$ and $\beta_{2}$ control the balance between visible body and full body in our pair-based sample unit for training. When $\beta_{1}$ and $\beta_{2}$ are small, more low quality visible proposals are counted, which hurts the performance of NPM on visible detection results. A large $\beta_{1}$ and $\beta_{2}$ exclude poorly aligned visible proposals, meanwhile, such a setting rejects some well aligned full body positive training examples, which leads to a poor full body detection result. As can be seen in the third row of Table 2, $\beta_{1} = 0.7$ and $\beta_{2} = 0.5$ achieve a good trade-off between the two annotation categories. Therefore, we use $\alpha_{1} = 0.7$ , $\alpha_{2} = 0.5$ , $\beta_{1} = 0.7$ and $\beta_{2} = 0.5$ in the whole experiments unless otherwise mentioned.
+
+Table 5. State of the art comparison on CrowdHuman. * stands for our re-implemented results. The PBM here is equipped with mask version of PPFE.
+
+| Method | MR | AP | Recall |
| Baseline (CrowdHuman) | 50.42 | 84.95 | 90.24 |
| Baseline* | 46.28 | 84.91 | 88.25 |
| AdaptiveNMS | 49.73 | 84.71 | 91.27 |
| Repulsion Loss* | 45.69 | 85.64 | 88.42 |
| PBM | 43.35 | 89.29 | 93.33 |
+
+Impact of PPFE. When equipping NPM with the PPFE module, it becomes the PBM. We compare PBM with NPM in Table 3. From Table 3, we can tell that both proposed feature integration methods in Section 3 bring remarkable improvements on MR-V and MR. The simpler one - direct concatenating the features of full and visible proposals improves MR-V and MR by $1.99\%$ and $1.11\%$ , respectively, while PPFE with attention mechanism shows even better performance. Such a large gap between PBM and NPM totally proves that our proposed PPFE module could extract and integrate features from pair-based sample unit efficiently and successfully. Moreover, from Table 4, we can learn that PPFE makes $\mathrm{R}^2\mathrm{NMS}$ to perform better by improving the model's performance on visible body, illustrating the necessity of PPFE module.
+
+The relation between MR-V and $\mathbf{R}^2\mathrm{NMS}$ . To demonstrate the effectiveness of $\mathbf{R}^2\mathrm{NMS}$ , we replace the original NMS with the proposed $\mathbf{R}^2\mathrm{NMS}$ . Table 4 shows three groups of experimental results. We can conclude that $\mathbf{R}^2\mathrm{NMS}$ can boost performance on AP and Recall under all settings, while $\mathbf{R}^2\mathrm{NMS}$ makes MR worse when NPM is applied. To understand why $\mathbf{R}^2\mathrm{NMS}$ weakens the MR of the NPM, we would like to introduce the relation between MR-V and $\mathbf{R}^2\mathrm{NMS}$ . It is natural to believe that the quality of visible body predictions is crucial because $\mathbf{R}^2\mathrm{NMS}$ uses the IoU between the visible regions of two BBoxes to determine whether two full-body BBoxes are overlapped. However, we argue that compared to absolute localization quality of predicted visible BBoxes, relative localization quality which captures overlap degree between two human instances is more important. A straightforward example can verify our point - suppose all visible body predictions are the exactly same as full body predictions, in this case, MR-V will be poor. However, using such visible body predictions during $\mathbf{R}^2\mathrm{NMS}$ leads to the exactly same results for full body detection as original NMS, which is not as poor as MR-V does not necessarily lead to poor MR for full body predictions during $\mathbf{R}^2\mathrm{NMS}$ .
+
+To be more concrete, although a lower MR-V can possibly better model the overlaps between each instance pair, which will further benefit full body detection, as stated above, the absolute value of MR-V is not the decisive factor to the performance of full body detection. Our experimental results in Table 4 also demonstrate this point. With the
+
+Table 6. Comparison between our PBM and baseline on the CityPersons [24]. Log-Average Missing Rates (MR) on validation subsets is reported. R refers to reasonable set while HO refers to heavy occlusion set.
+
+| Method | PPFE | R2NMS | R | HO |
| Baseline | - | - | 13.8 | 59.0 |
| PBM | concat | - | 12.5 | 57.3 |
| PBM | concat | √ | 12.1 | 57.0 |
| PBM | mask | - | 12.3 | 54.9 |
| PBM | mask | √ | 11.1 | 53.3 |
+
+decrease of MR-V, the performance of $\mathrm{R}^2\mathrm{NMS}$ gets better and a MR-V under $54\%$ is good enough to bring positive effects on full body detection via $\mathbf{R}^2\mathbf{NMS}$ .
+
+Further Analysis on $\mathbf{R}^2\mathbf{NMS}$ . The experimental results in Table 1 show that $\mathrm{R}^2\mathrm{NMS}$ can significantly improve AP and Recall, while it only improves MR by less than 1 percent. Such a phenomenon is caused by the difference between MR and AP, which we would like to deeply discuss.
+
+The main difference between MR and AP lies in the range of interested predicted scores. MR only cares about the predicted BBoxes whose scores are higher than the highest scored false positive. In contrast, AP takes all the detection results scored between 0 to 1 into consideration. Therefore, only a small fraction of predicted results will affect MR. As discussed in Section 1 and Section 3, in crowded situation, detectors tend to generate a lot of highly scored false positives which are difficult to remove via NMS. Thus, we claim that a large number of highly scored false positives in the results make FPPI reach one quickly. To demonstrate this, we calculate the average score of the highest scored false positive across all testing images. It turns out that such value is extremely high, and sometimes is even beyond 0.9. Such a phenomenon indicates that only BBoxes whose scores are higher than 0.9 can affect MR. Therefore, MR reflects the performance of the highly scored fraction of the detection results, while AP measures the performance of all detected BBoxes. This difference leads to the huge discrepancy between the gain on MR and AP from $\mathbf{R}^2\mathrm{NMS}$ .
+
+In conclusion, although $\mathbf{R}^2\mathrm{NMS}$ does not bring large improvements on MR, it greatly boosts AP. The huge improvement on AP strongly validates that $\mathbf{R}^2\mathrm{NMS}$ can not only preserve more true positives comparing to the original NMS, but also introduce less false positives.
+
+# 4.4. State-of-the-art Comparison on CrowdHuman
+
+We compare our method with AdaptiveNMS [12] and Repulsion Loss [23] on the CrowdHuman validation set in Table 5. It clearly shows that PBM with $\mathbb{R}^2\mathrm{NMS}$ outperforms these two published methods. Our method significantly reduces MR from $49.73\%$ to $43.35\%$ and boosts AP from $84.71\%$ to $89.29\%$ . Such a large gap demonstrates the superiority of our PBM and $\mathbb{R}^2\mathrm{NMS}$ .
+
+Table 7. State of the art comparison on CityPersons. AdaptiveNMS+ refers to AdaptiveNMS with AggLoss. * represents our implementation.
+
+| Method | Backbone | R | HO |
| Baseline* | VGG-16 | 13.8 | 59.0 |
| Baseline (MGAN)[16] | VGG-16 | 13.8 | 57.0 |
| Adapted FasterRCNN[24] | VGG-16 | 15.8 | - |
| ATT-part[26] | VGG-16 | 16.0 | 56.7 |
| Repulsion Loss[23] | ResNet-50 | 13.2 | 56.9 |
| OR-CNN[25] | VGG-16 | 12.8 | 55.7 |
| AdaptiveNMS[12] | VGG-16 | 12.9 | 56.4 |
| AdaptiveNMS+[12] | VGG-16 | 11.9 | 55.2 |
| MGAN[16] | VGG-16 | 11.5 | 51.7 |
| Ours | VGG-16 | 11.1 | 53.3 |
+
+# 4.5. Detection Results on CityPersons
+
+To prove the generalization ability of our methods, we also conduct several experiments on CityPersons [24]. Comparisons results are shown in Table 6. To clearly demonstrate the effectiveness of our proposed new components, we also show the performance of out method with different settings in different rows. No matter under what kind of setting, PBM with $\mathbb{R}^2\mathrm{NMS}$ performs better than baseline. The best results are boldfaced and shown in the final row. Compared to the baseline, our detector significantly reduces the MR from $13.8\%$ to $11.1\%$ on the reasonable set. On the heavy occlusion set, it outperforms the baseline by $5.7\%$ . Such a large gain provides a convincing proof to the effectiveness of our detector.
+
+We compare our method with the recent state-of-the-art methods including Adapted FasterRCNN [24], ATT-part [26], Repulsion Loss [23], OR-CNN [25], AdaptiveNMS [12] and MGAN [16] on the CityPersons validation set. We list the performance of previous works on reasonable subsets with the original input size in Table 7. We evaluate our methods under the same settings. The proposed PBM with $\mathbb{R}^2\mathrm{NMS}$ outperforms all published methods on reasonable validation subsets. Our method reduces the MR of state-of-the-art result from $11.5\%$ to $11.1\%$ . Notice that our method performs slightly worse than MGAN due to the weaker baseline result of our model.
+
+# 5. Conclusion
+
+In this paper, we propose $\mathbf{R}^2\mathrm{NMS}$ to effectively remove the redundant boxes without brings in many false positives in crowded situation. The $\mathbf{R}^2\mathrm{NMS}$ uses the IoU between the visible regions of the two boxes to determine whether the two full-body boxes are overlapped. To support this idea, we propose a novel Paired-Box Model (PBM) to simultaneously predicts the full box and the visible box of a pedestrian. Experiments on the extremely crowded benchmark CrowdHuman [20] and the CityPersons [24] show that the proposed approach can achieve the state-of-the-arts results, strongly validating the superiority of the method.
+
+# References
+
+[1] Navaneeth Bodla, Bharat Singh, Rama Chellappa, and Larry S Davis. Soft-nms-improving object detection with one line of code. In Proceedings of the IEEE international conference on computer vision, pages 5561-5569, 2017.
+[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, pages 3213-3223, 2016.
+[3] 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.
+[4] Ross Girshick. Fast r-cnn. In Proceedings of the IEEE international conference on computer vision, pages 1440-1448, 2015.
+[5] 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.
+[6] 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.
+[7] 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.
+[8] Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 7132-7141, 2018.
+[9] 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.
+[10] 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.
+[11] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dálár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pages 740-755. Springer, 2014.
+[12] Songtao Liu, Di Huang, and Yunhong Wang. Adaptive nms: Refining pedestrian detection in a crowd. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6459-6468, 2019.
+[13] 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.
+[14] Markus Mathias, Rodrigo Benenson, Radu Timofte, and Luc Van Gool. Handling occlusions with franken-classifiers. In
+
+Proceedings of the IEEE International Conference on Computer Vision, pages 1505-1512, 2013.
+[15] Wanli Ouyang and Xiaogang Wang. Joint deep learning for pedestrian detection. In Proceedings of the IEEE International Conference on Computer Vision, pages 2056-2063, 2013.
+[16] Yanwei Pang, Jin Xie, Muhammad Haris Khan, Rao Muhammad Anwer, Fahad Shahbaz Khan, and Ling Shao. Mask-guided attention network for occluded pedestrian detection. In Proceedings of the IEEE International Conference on Computer Vision, pages 4967-4975, 2019.
+[17] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 779-788, 2016.
+[18] 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.
+[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.
+[20] 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.
+[21] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
+[22] Yonglong Tian, Ping Luo, Xiaogang Wang, and Xiaouu Tang. Deep learning strong parts for pedestrian detection. In Proceedings of the IEEE international conference on computer vision, pages 1904-1912, 2015.
+[23] Xinlong Wang, Tete Xiao, Yuning Jiang, Shuai Shao, Jian Sun, and Chunhua Shen. Repulsion loss: Detecting pedestrians in a crowd. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7774-7783, 2018.
+[24] 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.
+[25] Shifeng Zhang, Longyin Wen, Xiao Bian, Zhen Lei, and Stan Z Li. Occlusion-aware r-cnn: detecting pedestrians in a crowd. In Proceedings of the European Conference on Computer Vision (ECCV), pages 637-653, 2018.
+[26] Shanshan Zhang, Jian Yang, and Bernt Schiele. Occluded pedestrian detection through guided attention in cnns. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6995-7003, 2018.
+[27] Chunluan Zhou and Junsong Yuan. Multi-label learning of part detectors for heavily occluded pedestrian detection. In Proceedings of the IEEE International Conference on Computer Vision, pages 3486-3495, 2017.
+[28] Chunluan Zhou and Junsong Yuan. Bi-box regression for pedestrian detection and occlusion estimation. In Pro
\ No newline at end of file
diff --git a/nmsbyrepresentativeregiontowardscrowdedpedestriandetectionbyproposalpairing/images.zip b/nmsbyrepresentativeregiontowardscrowdedpedestriandetectionbyproposalpairing/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..a72d43392c043ba41815ae974b917335d1b2b432
--- /dev/null
+++ b/nmsbyrepresentativeregiontowardscrowdedpedestriandetectionbyproposalpairing/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1745f6eb01ee4d37470863a8a0db304eb3cb2fe983154986ffc5e40a361b5f73
+size 500118
diff --git a/nmsbyrepresentativeregiontowardscrowdedpedestriandetectionbyproposalpairing/layout.json b/nmsbyrepresentativeregiontowardscrowdedpedestriandetectionbyproposalpairing/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..3840a6a604f6b60c0ec794bde4d1d05a8289f84e
--- /dev/null
+++ b/nmsbyrepresentativeregiontowardscrowdedpedestriandetectionbyproposalpairing/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:01862f1c37fcef17d4de8375b22a5263e5748aa13650dc00bb1f4b64ae49a338
+size 383615
diff --git a/noiseawarefullyweblysupervisedobjectdetection/b2c39529-afe8-407f-9dfc-9f6c0bff0ed9_content_list.json b/noiseawarefullyweblysupervisedobjectdetection/b2c39529-afe8-407f-9dfc-9f6c0bff0ed9_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..f3f1a917550a5dd27938e845e9f0ab4b177cbe1f
--- /dev/null
+++ b/noiseawarefullyweblysupervisedobjectdetection/b2c39529-afe8-407f-9dfc-9f6c0bff0ed9_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fa1ea9ff978b01e5585e3521a3046637bf173a593e5deaf39112f18217ddc123
+size 88162
diff --git a/noiseawarefullyweblysupervisedobjectdetection/b2c39529-afe8-407f-9dfc-9f6c0bff0ed9_model.json b/noiseawarefullyweblysupervisedobjectdetection/b2c39529-afe8-407f-9dfc-9f6c0bff0ed9_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..96f098e1755c713136c1edae72b37af1ab9b50ba
--- /dev/null
+++ b/noiseawarefullyweblysupervisedobjectdetection/b2c39529-afe8-407f-9dfc-9f6c0bff0ed9_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a3f3f448ad131616e1b8970442949da07c42a7d1812ee66727d8733584f9fdc1
+size 109213
diff --git a/noiseawarefullyweblysupervisedobjectdetection/b2c39529-afe8-407f-9dfc-9f6c0bff0ed9_origin.pdf b/noiseawarefullyweblysupervisedobjectdetection/b2c39529-afe8-407f-9dfc-9f6c0bff0ed9_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..db8a627887c5d65763690240da20e7b54c8d10ec
--- /dev/null
+++ b/noiseawarefullyweblysupervisedobjectdetection/b2c39529-afe8-407f-9dfc-9f6c0bff0ed9_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a2332ca0632884f72f0a8461c861bed9e754aceef7cc9fb2b50d2d2256d07409
+size 1598579
diff --git a/noiseawarefullyweblysupervisedobjectdetection/full.md b/noiseawarefullyweblysupervisedobjectdetection/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..0d9a9e620ec83ea45a1084a34b920397321d468e
--- /dev/null
+++ b/noiseawarefullyweblysupervisedobjectdetection/full.md
@@ -0,0 +1,320 @@
+# Noise-Aware Fully Webly Supervised Object Detection
+
+Yunhang Shen $^{1}$ , Rongrong Ji $^{1*}$ , Zhiwei Chen $^{1}$ , Xiaopeng Hong $^{2}$ , Feng Zheng $^{3}$ , Jianzhuang Liu $^{4}$ , Mingliang Xu $^{5}$ , Qi Tian $^{4}$
+
+1Media Analytics and Computing Lab, Department of Artificial Intelligence, School of Informatics, Xiamen University, 2Xi'an Jiaotong University
+
+$^{3}$ Department of Computer Science and Engineering, Southern University of Science and Technology $^{4}$ Noah's Ark Lab, Huawei Technologies, $^{5}$ Zhengzhou University
+
+shenyunhang01@gmail.com, rrj@xmu.edu.cn, zhiweichen@stu.xmu.edu.cn
+
+hongxiaopeng@mail.xjtu.edu.cn, zhengf@sustech.edu.cn, liu.jianzhuang@huawei.com
+
+iexumingliang@zzu.edu.cn, tian.qil@huawei.com
+
+# Abstract
+
+We investigate the emerging task of learning object detectors with sole image-level labels on the web without requiring any other supervision like precise annotations or additional images from well-annotated benchmark datasets. Such a task, termed as fully webly supervised object detection, is extremely challenging, since image-level labels on the web are always noisy, leading to poor performance of the learned detectors. In this work, we propose an end-to-end framework to jointly learn webly supervised detectors and reduce the negative impact of noisy labels. Such noise is heterogeneous, which is further categorized into two types, namely background noise and foreground noise. Regarding the background noise, we propose a residual learning structure incorporated with weakly supervised detection, which decomposes background noise and models clean data. To explicitly learn the residual feature between clean data and noisy labels, we further propose a spatially-sensitive entropy criterion, which exploits the conditional distribution of detection results to estimate the confidence of background categories being noise. Regarding the foreground noise, a bagging-mixup learning is introduced, which suppresses foreground noisy signals from incorrectly labelled images, whilst maintaining the diversity of training data. We evaluate the proposed approach on popular benchmark datasets by training detectors on web images, which are retrieved by the corresponding category tags from photo-sharing sites. Extensive experiments show that our method achieves significant improvements over the state-of-the-art methods1.
+
+
+Web images of person and horse categories
+Figure 1: The overall flowchart of fully webly supervised object detection.
+
+# 1. Introduction
+
+Most object detection methods [18, 40, 33, 39, 14, 13, 15] rely on strong supervision, i.e., ground-truth bounding boxes, from well-annotated datasets [12, 32] for training. Methods such as Mask R-CNN [22] even leverage fine-grained pixel-level masks for supervision. Clearly, collecting annotations of bounding boxes or pixel-level masks is labor-expensive, which results in a serious limitation of existing methods in terms of both the category diversity and label quantity. It is infeasible to learn an object detector to effectively handle numerous object categories using such a setting. One way to reduce the requirement of strong supervision is the Weakly Supervised Object Detection (WSOD), which only relies on manual image-level annotations for training [37, 6, 50, 56, 45, 44]. However, for applications needing very large-scale image sets and categories, image-level annotations still require enormous human effort. In contrast, along with the popularity of photo-sharing sites
+
+
+Figure 2: This figure depicts several web images retrieved by query aeroplane. The corresponding background labels (BL), foreground labels (FL), background noise (BN) and foreground noise (FN) are enumerated when target categories only have aeroplane and person.
+
+like Flickr, there has been an explosion of images with noisy tags available on the web. It is thus desirable to learn object detectors from such large-scale web resources with noisy image-level labels, which is referred to as Webly Supervised Object Detection (WebSOD). In this paper, we focus on fully WebSOD (fWebSOD), i.e., the most extreme case of WebSOD where only web images are available and no well-annotated benchmark is involved during training, as shown in Fig. 1. Compared to WSOD and WebSOD, fWebSOD is more feasible to learn diverse and numerous object categories in real-world scenarios without any other form of knowledge, e.g., precious annotations or additional images from well-annotated benchmark datasets.
+
+Although fWebSOD is challenging without any existing work in the literature, several attempts of WebSOD have been made [11, 7, 53]. Prevailing methods for the WebSOD task directly learn a detector from web labels with a simple-to-complex strategy [7, 52] or using additional data, e.g., Google books ngrams corpora [11] and PASCAL VOC images [53]. Such methods have one main drawback: They do not explicitly reduce the negative impact of image-level label noise in web data, which introduces potential risks of degenerating the performance of a learned detector significantly. Moreover, these methods usually follow a two/multi-stage scheme during training or testing. Little work explores an end-to-end pipeline for fWebSOD task.
+
+In this paper, we address the above drawbacks by well handling image-level noisy labels in an end-to-end fashion. We categorize the heterogeneous noise into two types, namely background noise and foreground noise. We define several relative concepts here. (i) Background labels and foreground labels are referred to as the background and foreground parts of the image-level labels, respectively. (ii) Background noise, i.e., missing labels, denotes those background labels that fail to describe foreground categories existing in the image. For example, the instances of categories person and areoplane coexist in the second image of Fig. 2, but the category person is not labelled, which is defined as the background noise. (iii) Foreground noise
+
+denotes those foreground labels where no instance of the foreground category appears in the image. For example, the last image of Fig. 2 does not contain any aeroplane of the target category areoplane.
+
+To handle the background noise, we decompose such noise by modelling clean data with residual learning. To this end, the reliable parts of background labels need to be identified from the massive noisy data explicitly. We observe that the distribution of accurate detection results for background categories is spatially scattered and numerically uniform. Motivated by this observation, for the background labels, we resort to producing spatially scattered proposals with uniform and moderate scores, whilst punishing the detection results where only a small minority of clustered proposals produce high scores. To handle the foreground noise, we collect multiple images of the same foreground label to synthesize a set of new training samples, as inspired by Multiple Instance Classification (MIC) [1] where any instances with positive labels will move positive labels to the corresponding bags. Such multi-instance-bagging mechanism enables to suppress the influence of foreground noise from incorrect labels, and to simultaneously maintain the diversity of training samples.
+
+In particular, we propose an end-to-end learning framework to jointly learn fully webly supervised detectors and reduce the negative impact of image-level noisy labels. Given a set of target categories, we query photo sharing sites like Flickr to retrieve the corresponding web images automatically. To tackle the background noise, we design a residual learning structure incorporated with weakly supervised detection. A novel spatially-sensitive entropy criterion is further proposed to estimate the spatial and numerical entropy of detection results in the bounding-box search space. The criterion estimates the confidence of background labels being noise. To handle the foreground noise, a bagging-mixup learning strategy is introduced to collect multiple images of the same foreground label to synthesize a set of new training samples, each of which is a convex combination of all images in the bag. Extensive experiments show that the proposed framework achieves significant improvements over state-of-the-art methods [11, 7, 53] on PASCAL VOC and MS COCO. In summary, the main contributions of this paper are as follows:
+
+- We propose a residual learning structure incorporated with weakly supervised detection in an end-to-end framework, which learns fully webly supervised detectors and reduces the negative impact of noisy labels by decomposing noise and modelling clean data.
+- A spatially-sensitive entropy criterion and a bagging-mixup learning are further proposed to explicitly estimate the confidence of background labels being noisy and suppress the influence of foreground noise from
+
+incorrect labels, respectively.
+
+- Our models trained on only web data, which has about 4,000 images each category, achieves significant improvements over the state-of-the-art methods on popular benchmark, i.e., PASCAL VOC and MS COCO.
+
+# 2. Related Work
+
+Weakly supervised object detection. WSOD refers to learning an object detection model with only image-level annotations that only indicates the presence of an object category. Recent approaches combine convolutional neural networks (CNNs) and Multiple Instance Classification (MIC) [1] into a unified framework [6, 28, 10, 51, 42, 43]. The learning stage of MIC alternates between selecting positive samples and training an appearance model. There are some methods focusing on proposal-free paradigms by taking advantage of deep feature maps [4, 3, 62, 59] and class activation maps [61, 20, 59]. Some works also use additional annotations and data to improve the performance, e.g., object size estimation [47], instance count annotation [16], video motion cue [49] and human verification [38]. Knowledge transfer for progressive cross-domain adaptation is also exploited, e.g., data domain adaptation [46] and task domain adaption [25]. Instead of optimizing the MIC, some methods optimize the objective function of instance-level localization. For example, the works in [30, 27, 16, 50] mine the high-confidence proposals, which are then treated as positive samples to train a fully supervised model. Many efforts [60, 17] have been made to mine high-quality bounding boxes. To further improve the robustness, some works [50, 31, 54, 58] combine weakly supervised MIC models and fully supervised detectors.
+
+Webly supervised learning. Webly supervised learning has been widely studied in the past decade, which is typically used in image classification [5, 34, 35, 36, 21, 63], object detection [11, 7, 53], and semantic segmentation [55, 41, 24]. The domain adaptation approach by Bergamo et al. [5] is proposed to combine manually annotated examples and web data to learn image classifiers. Mahajan et al. [34] showed that training large-scale hashtag prediction leads to improvements in image classification and object detection tasks. To cope with the label noise, Niu et al. [35] proposed to join variational autoencoder and classification network to leverage the image-level information. Guo et al. [21] leveraged curriculum learning by measuring the complexity of data using distribution density for image classification. Niu et al. [36] combined webly supervised learning and zero-shot learning to learn zero-shot fine-grained classifiers. Zhuang et al. [63] proposed to input multiple web images to CNNs and pool parts of the neuron activations as the final representation for classification. Wei et al. [55] utilized easy web data to assist semantic segmentation with
+
+image-level labels. Shen et al. [41] proposed to utilize complementary information of web and target data to generate training masks for semantic segmentation. Hong et al. [24] used classifiers to identify relevant spatio-temporal volumes in web video and generated object masks for segmentation.
+
+Webby supervised object detection. There are a few attempts in the literature for WebSOD. Divvala et al. [11] trained deformable part models from the web data with Google $n$ -grams corpora to expand the categories. Chen et al. [7] proposed a two-stage approach to learn a detector from web data, which initiates CNNs with simple Google images and fine-tunes them on more complex Flickr images. Tao et al. [53] focused on knowledge transfer from web data to target data with adversarial domain adaptation. Different from the work in [11, 7], we reduce the negative impact of noisy image-level labels in web data by handling both background noise and foreground noise in an end-to-end manner. In contrast to [53] where the target dataset is used, we aim at fWebSOD that trains detectors using only the web images without any image from human-annotated datasets, e.g., PASCAL VOC [12] or MS COCO [32]. Compared to WSOD and WebSOD, fWebSOD does not rely on any other form of knowledge, e.g., manual annotations or additional images, and is able to handle diverse and numerous object categories in real-world scenarios.
+
+# 3. The Proposed Method
+
+Given a set of $N_{c}$ categories, we retrieve web images by using the category labels as the query keywords and construct the training data $D = \{I_i,\mathbf{t}_i\}_{i = 1}^{N_D}$ , where $I_{i}$ is a crawled web image and $\mathbf{t}_i\in \Re^{N_c}$ is the corresponding one-hot label vector. We employ the basic WsDDN [6] as the base model in our framework. We first extract the features $\phi = \{\phi_i\}_{i = 1}^{N_b}$ of $N_{b}$ object proposals $\{b_i\}_{i = 1}^{N_b}$ of an image from the backbone by a spatial pyramid pooling layer [23]. The pooled features are transformed by two fully-connected (FC) layers, which output the proposal features $\phi^{\mathrm{fc}} = \{\phi_i^{\mathrm{fc}}\}_{i = 1}^{N_b}$ . Then the proposal features are forked into two streams, i.e., a classification stream and a detection stream, producing two score matrices $X^{c},X^{d}\in \Re^{N_{b}\times N_{c}}$ by two FC layers, respectively. Both the score matrices are normalized by the softmax function $\sigma (\cdot)$ over categories and proposals, respectively:
+
+$$
+\sigma \left(X ^ {c}\right) _ {i j} = \frac {e ^ {X _ {i j} ^ {c}}}{\sum_ {k = 1} ^ {N _ {c}} e ^ {X _ {i k} ^ {c}}}, \sigma \left(X ^ {d}\right) _ {i j} = \frac {e ^ {X _ {i j} ^ {d}}}{\sum_ {r = 1} ^ {N _ {b}} e ^ {X _ {r j} ^ {d}}}. \tag {1}
+$$
+
+Then the Hadamard product of the two streams outputs the detection score matrix: $X^{s} = \sigma(X^{c}) \odot \sigma(X^{d})$ . To acquire image-level classification scores, a sum pooling is further applied: $\mathbf{y}_{k} = \sum_{r=1}^{N_{b}} X_{rk}^{s}$ , where $X_{rk}^{s}$ is the score of the $r$ -th proposal and the $k$ -th category in $X^{s}$ . Then we obtain
+
+
+Figure 3: Overview of the proposed framework. Our method consists of three components: First, a bagging-mixup (BM) learning strategy constructs a set of new training images with the same foreground label to suppress the negative influence of foreground noise from incorrect labels. Second, the residual detection (RD) head and weak detection (WD) head are responsible for decomposing background noise and modelling clean data, respectively. Third, the proposed spatially-sensitive entropy (SSE) criterion is utilized to estimate the confidence of trusting image-level background labels.
+
+a baseline cross-entropy loss function $\mathcal{L}^{\mathrm{baseline}}$ :
+
+$$
+\mathcal {L} ^ {\text {b a s e l i n e}} = \sum_ {k = 1} ^ {N _ {c}} \left\{\mathbf {t} _ {k} \log \mathbf {y} _ {k} + \left(1 - \mathbf {t} _ {k}\right) \log \left(1 - \mathbf {y} _ {k}\right) \right\}. \tag {2}
+$$
+
+Our baseline approach is to learn a detector directly on the web data $D$ . However, as shown in the subsequent experiments, the performance of such a detector drops dramatically compared to the detector trained on manual-annotated image-level labels. One main reason is that web data is noisy. To conquer this issue, we present an end-to-end learning framework to reduce the negative impact of image-level noisy labels in web data from two aspects, i.e., background noise and foreground noise, as illustrated in Fig. 3.
+
+# 3.1. Noise Decomposition
+
+To reduce the negative impact of background noise, we propose a residual feature learning structure incorporated with weakly supervised detection to decompose background noise and model clean data. We leverage multi-task learning to learn two detection heads, i.e., weak detection head and residual detection head, which share the backbone.
+
+The weak detection (WD) head has the pooled features $\phi$ as its input and outputs proposal features $\phi^{\mathrm{fc}}$ and detection scores $X^{s}$ , which is similar to our baseline approach. The loss function of the WD head for category $k$ is:
+
+$$
+\mathcal {L} _ {k} ^ {\mathrm {W D}} = \mathbf {t} _ {k} \log \mathbf {y} _ {k} + (1 - \mathbf {t} _ {k}) \log (1 - \mathbf {y} _ {k}). \tag {3}
+$$
+
+The proposed residual detection (RD) head is targeted for learning the residual features between reliable and unreliable parts in the massive noisy data. Specifically, the pooled features $\phi$ are mapped to residual features $\bar{\phi}^{\mathrm{fc}} = \{\bar{\phi}_i^{\mathrm{fc}}\}_{i=1}^{N_b}$ by two FC layers. We sum the residual features $\bar{\phi}^{\mathrm{fc}}$ and the proposal features $\phi^{\mathrm{fc}}$ from the WD head to get
+
+noise features $\hat{\phi}^{\mathrm{fc}} = \{\hat{\phi}_i^{\mathrm{fc}}\}_{i = 1}^{N_b}$ , where $\hat{\phi}_i^{\mathrm{fc}} = \bar{\phi}_i^{\mathrm{fc}} + \phi_i^{\mathrm{fc}}$ . Similar to the WD head, $\hat{\phi}^{\mathrm{fc}}$ is fed into a classification stream and a detection stream, followed by the softmax operation and the sum pooling, which produces image-level classification scores $\hat{\mathbf{y}}_k = \sum_{r = 1}^{N_b}\hat{X}_{rk}^s$ . Given a category $k$ , the loss function of the RD head is:
+
+$$
+\mathcal {L} _ {k} ^ {\mathrm {R D}} = \mathbf {t} _ {k} \log \hat {\mathbf {y}} _ {k} + (1 - \mathbf {t} _ {k}) \log (1 - \hat {\mathbf {y}} _ {k}). \tag {4}
+$$
+
+Finally, we obtain the overall loss function, which is the sum of all category-specific weighed sums of $\mathcal{L}_k^{\mathrm{WD}}$ and $\mathcal{L}_k^{\mathrm{RD}}$ :
+
+$$
+\mathcal {L} = \sum_ {k = 1} ^ {N _ {c}} \left\{\left(1 - \mathbf {p} _ {k}\right) \mathcal {L} _ {k} ^ {\mathrm {W D}} + \mathbf {p} _ {k} \mathcal {L} _ {k} ^ {\mathrm {R D}} \right\}, \tag {5}
+$$
+
+where $\mathbf{p}_k\in [0,1]$ is the estimated confidence of the $k$ -th background label being a noisy label in an image.
+
+From the perspective of learning the relation between clean data and noisy labels, the RD head works as a decomposition term, which helps the WD head to utilize the reliable information among the massive noisy data, whilst avoiding big influence by the unreliable information. When label of category $k$ has low confidence of being noise, i.e., $\mathbf{p}_k$ is low, the RD head is suppressed and the WD head models reliable information for category $k$ . When $\mathbf{p}_k$ is high, the RD head leverages the proposal features $\phi^{\mathrm{fc}}$ from the WD head and produces noise features $\hat{\phi}^{\mathrm{fc}}$ to predict the unreliable label of category $k$ , which imposes the RD head to decompose the noise by learning the residual features $\bar{\phi}^{\mathrm{fc}}$ . Thus, the residual learning structure jointly decomposes background noise and models clean data based on the confidence $\mathbf{p}$ , which controls the gradient flow through the network. The confidence $\mathbf{p}$ can be seen as an information gate. We visualize the proposal scores and pixel gradient maps of the WD and RD heads in Fig. 4. WD and RD have high responses to ground-truth labels and foreground labels
+
+
+
+
+Figure 4: Proposal scores and the corresponding pixel gradient maps of the WD and RD heads for two web images.
+
+
+Figure 5: The distributions of detection results. The first column shows input images. The last three columns explain the ideal detection results of background categories and foreground categories, i.e., categories motorbike and person, respectively. The figure is drawn with the jet color scale, where the red rectangles correspond to high scores and the blue ones to low scores.
+Figure 6: This figure depicts bagging-mixup learning for categories bottle (top) and train (bottom).
+
+(FL), respectively. The two results combined from WD and RD can decompose BN from FL. Instead of predicting the confidence $\mathbf{p}$ by the model, we estimate it explicitly in online fashion, which is detailed in the next subsection.
+
+# 3.2. Spatially-Sensitive Entropy Criterion
+
+We observe that the distribution of accurate detection results for background categories is spatially scattered and numerically uniform, whilst the detection results that are spatially clustered and numerically nonuniform may contain instances of target categories, as illustrated in Fig. 5. Motivated by this observation, for the background labels, we resort to producing spatially scattered proposals with low scores, whilst punishing the detection results where a small minority of clustered proposals produce high scores.
+
+We utilize the Shannon entropy as a sparsity indicator to describe the conditional distribution of detection results, which estimates the confidence $\mathbf{p}$ of background labels being noise. It is noted that the detection results consist of both confidence scores and bounding boxes. Suppose we have a result with only two bounding boxes $\{b_A, b_B\}$ and the corresponding detection scores $\{\frac{1}{2}, \frac{1}{2}\}$ for a category. If $b_A$ and $b_B$ have no overlap, we can estimate the entropy as $\ln 2$ . However, if $b_A$ and $b_B$ have a large intersection-over-union (IoU), e.g., IoU $(b_A, b_B) \geq 0.9$ , one would expect the entropy to be lower. In the latter case, $b_A$ and $b_B$ are near points in the bounding-box searching space, and the detection result is sparser than the former case. Therefore, it is difficult to accurately estimate the sparsity of detection results without the spatial information of the bounding boxes. To handle this, we propose a Spatially-Sensitive Entropy (SSE) criterion to estimate the sparsity by introducing spatial information in this subsection.
+
+We compute the Shannon entropy of detection scores as:
+
+$$
+E _ {r k} = - X _ {r k} ^ {s} \ln X _ {r k} ^ {s}, \tag {6}
+$$
+
+where $E \in \Re^{N_b \times N_c}$ and $X_{rk}^s \in [0,1]$ . We also compute the Jaccard index matrix $J \in \Re^{N_b \times N_b}$ as $J_{ij} = \mathrm{IoU}(b_i, b_j)$ , where $b_i$ and $b_j$ denote the $i$ -th and the $j$ -th proposals, respectively. We obtain an entropy regularizer as:
+
+$$
+G = E \oslash (J E), \tag {7}
+$$
+
+where $\varnothing$ is the Hadamard division and $G\in \Re^{N_b\times N_c}$ . The denominator term $JE$ sums up all the entropies of individual detection scores weighted by their spatial information, i.e., the IoU between two proposals. Then, the original entropy $E$ is divided by the weighted sum of entropies, which is in the range of [0, 1]. Our intuition is that the entropy decreases according to the IoU between each pair of proposals. If the detection bounding boxes have no overlap with each other, then $JE = E$ , and $G$ is an all-one matrix.
+
+Then, the refined entropy after considering the spatial information among proposals is computed as:
+
+$$
+\hat {E} = G \odot E, \tag {8}
+$$
+
+where $\odot$ is the Hadamard product. The confidence of the background label $k$ being noise in Eq. 5 is computed as:
+
+$$
+\mathbf {p} _ {k} = \left\{ \begin{array}{l l} 1 - \frac {\sum_ {r} ^ {N _ {b}} \hat {E} _ {r \cdot k}}{\mathbf {z} _ {k}} & \text {i f} \mathbf {t} _ {k} = 0 \\ 0 & \text {i f} \mathbf {t} _ {k} = 1 \end{array} , \right. \tag {9}
+$$
+
+where $\mathbf{p},\mathbf{z}\in \Re^{N_c}$ and $\mathbf{z}_k = -\mathbf{y}_k\ln \frac{\mathbf{y}_k}{N_b}$ . We use $\mathbf{z}_k$ to denote the maximum entropy of detection results given image-level prediction $\mathbf{y}_k$ for the $k$ -th category and $N_{b}$ bounding boxes. Therefore, $\frac{\sum_{r}^{N_b}\dot{E}_{rk}}{\mathbf{z}_k}$ is in the range of [0, 1] in Eq. 9.
+
+To further verify the above analysis, we compute the SSE criterion $\mathbf{p}$ of 200 web images randomly sampled from
+
+Table 1: The datasets in the experiments.
+
+| Category | Dataset | #Images |
| Training | Testing |
| VOC | PASCAL VOC 2007 [12] | - | 4,952 |
| PASCAL VOC 2012 [12] | - | 1,0991 |
| Flickr-Clean [55] | 41,625 | - |
| Flickr-VOC | 88,064 | - |
| COCO | MS COCO [32] | - | 5,000 |
| Flickr-COCO | 335,324 | - |
+
+Flickr-VOC after model training and normalize them in the range of [0, 1]. The average $\hat{E}$ of foreground and background are 0.07 and 0.78, respectively. For BN, i.e., foreground missing, $\mathbf{p}$ has an average of 0.93. The Pearson correlation between SSE and BN is as high as 0.91.
+
+# 3.3. Bagging-Mixup Learning
+
+To reduce the negative impact of foreground noise, we propose a novel bagging-mixup strategy for data augmentation, which is inspired by the multi-instance-bagging mechanism to efficiently handle incorrect labels. In particular, the bagging-mixup strategy applies convex combinations of all images with the same foreground label in the bag to synthesize a set of training images. Therefore, bagging-mixup aims at suppressing the probability of using incorrect labels, whilst maintaining the diversity of training samples.
+
+Bagging-mixup learning consists of three steps. First, we randomly sample $N_{a}$ web images $\{I_i\}_{i = 1}^{N_a}$ with the same label t, i.e., the same foreground label. Second, we random draw blending ratios $\{\lambda_i\}_{i = 1}^{N_a}$ from a Dirichlet distribution $\mathrm{Dir}(\alpha_1,\ldots ,\alpha_{N_a})$ , where $\alpha_{1} = N_{a}\alpha_{2} = \dots = N_{a}\alpha_{N_{a}}$ . Finally, bagging-mixup constructs multiple synthetic training images with the same label:
+
+$$
+\hat {I} _ {i} = \lambda_ {1} I _ {i} + \sum_ {m, n} ^ {\{2, \dots , N _ {a} \}, \{1, \dots , N _ {a} \} \backslash i} \lambda_ {m} I _ {n}, \tag {10}
+$$
+
+where $i \in \{1, 2, \dots, N_a\}$ . The visual comparisons of the original and synthetic images are illustrated in Fig. 6. Then the synthetic images $\{\hat{I}_i\}_{i=1}^{N_a}$ are fed to the model as training samples with label $\mathbf{t}$ . We do not extract object proposals from the synthetic images, which is infeasible in terms of efficiency during training. Instead, we translate proposal coordinates of the original images to the synthetic images.
+
+The proposed bagging-mixup learning is distinct from the mixup [57] in the following two aspects. First, mixup is agnostic to the category, as it randomly samples data among all categories. Bagging-mixup is category-specific by sampling images with the same label, which is designed to be robust to foreground noise. Second, mixup only exploits partial information of each image pair to generate a single image. Bagging-mixup constructs multiple synthetic images, each of which is a convex combination of all images in the bag with the weights sampled from a Dirichlet distribution, which also maintains the diversity of training data.
+
+# 4. Experimental Evaluation
+
+# 4.1. Training Datasets
+
+Flickr-VOC and Flickr-COCO. We construct two new datasets called Flickr-VOC and Flickr-COCO to train the detectors. The categories from PASCAL VOC [12] and MS COCO [32] are employed as queries to retrieve images from the Flickr photo-sharing website. No other query criteria, e.g., date of capture, photographer's name, etc, are specified. For each category, we crawl images in about the first 4,000 search results returned by the Flickr API. In total, 83,905 and 335,327 images are collected without any post-processing for Flickr-VOC and Flickr-COCO, respectively.
+
+Flickr-Clean [55]. Flickr-Clean [55] is constructed from Flickr with PASCAL VOC [12] categories, which has 41,625 images in total. Different from our Flickr-VOC, Flickr-Clean [55] is post-processed by a salient object detector (DRFI [26]) and saliency-cut segmentation [8] to remove noisy data and to keep only simple images. In other words, Flickr-Clean is filtered from the original web data and contains human annotations from [26, 8]. Therefore, our crawled Flickr-VOC is more challenging and closer to the real-world web dataset.
+
+# 4.2. Testing Datasets
+
+PASCAL VOC 2007 and 2012 [12]. When training on Flickr-VOC and Flickr-Clean [55], we evaluate the detectors on the test sets of PASCAL VOC 2007 and 2012 [12], which have 4,092 and 10,991 test images over 20 categories, respectively. In our evaluation, we ensure that none of the PASCAL VOC images (including the trainval and test sets) exists in our training set.
+
+MS COCO [32]. When training on Flickr-COCO, we evaluate the detectors on MS COCO [32], which is among the most challenging datasets for object detection. It consists of 80 object categories. Our experiments involve 5,000 images of MS COCO validation (minival) for testing. More detailed statistics about these datasets are given in Tab. 1.
+
+# 4.3. Evaluation Protocol
+
+For VOC categories, Average Precision (AP) and mean Average Precision $(m\mathrm{AP})$ are used as the evaluation metrics. We follow the standard PASCAL VOC protocol to report the $m\mathrm{AP}$ at $50\%$ Intersection-over-Union (IoU) of the detected boxes with the ground-truth. For COCO categories, we also report the standard COCO metrics, including AP at different IoU thresholds and scales.
+
+# 4.4. Implementation Details
+
+The proposed approach is implemented on 4 GPUs. We report our performance on three backbone networks, i.e., VGG-CNN-F [29] (VGG-F), VGG-CNN-M-1024 (VGG-
+
+Table 2: Comparison to the baselines for object detection on the VOC 2007 test set in terms of AP (%)
+
+| Method | aero | bicy | bird | boa | bot | bus | car | cat | cha | cow | dtab | dog | hors | mbik | pers | plnt | she | sofa | trail | tv | Av. |
| Training on PASCAL VOC 2007 trainval images with image-level annotations |
| WSDDN VGG-F [6] | 42.9 | 56.0 | 32.0 | 17.6 | 10.2 | 61.8 | 50.2 | 29.0 | 3.8 | 36.2 | 18.5 | 31.1 | 45.8 | 54.5 | 10.2 | 15.4 | 36.3 | 45.2 | 50.1 | 43.8 | 34.5 |
| WSDDN VGG-M [6] | 43.6 | 50.4 | 32.2 | 26.0 | 9.8 | 58.5 | 50.4 | 30.9 | 7.9 | 36.1 | 18.2 | 31.7 | 41.4 | 52.6 | 8.8 | 14.0 | 37.8 | 46.9 | 53.4 | 47.9 | 34.9 |
| WSDDN VGG16 [6] | 39.4 | 50.1 | 31.5 | 16.3 | 12.6 | 64.5 | 42.8 | 42.6 | 10.1 | 35.7 | 24.9 | 38.2 | 34.4 | 55.6 | 9.4 | 14.7 | 30.2 | 40.7 | 54.7 | 46.9 | 34.8 |
| Training on Flickr-VOC |
| WSDDN VGG-F | 32.4 | 36.7 | 31.1 | 10.7 | 12.8 | 48.0 | 40.2 | 39.7 | 10.5 | 21.4 | 10.4 | 24.7 | 30.4 | 44.9 | 12.1 | 10.2 | 35.3 | 30.2 | 35.3 | 1.8 | 25.9 |
| WSDDN VGG-M | 6.6 | 24.3 | 32.3 | 10.8 | 13.8 | 37.3 | 37.5 | 41.5 | 7.6 | 24.4 | 5.5 | 29.6 | 30.0 | 47.9 | 10.4 | 9.7 | 35.1 | 13.9 | 41.4 | 20.7 | 25.5 |
| WSDDN VGG16 | 35.8 | 39.5 | 35.8 | 9.6 | 10.0 | 51.5 | 39.5 | 41.3 | 7.1 | 22.4 | 7.4 | 31.0 | 33.4 | 47.3 | 13.0 | 9.2 | 32.7 | 27.5 | 44.6 | 14.2 | 27.6 |
| Our VGG-F | 45.4 | 38.1 | 38.9 | 20.1 | 13.8 | 60.8 | 42.9 | 55.2 | 16.1 | 29.2 | 9.4 | 33.3 | 30.9 | 52.9 | 14.5 | 14.9 | 37.8 | 28.8 | 49.2 | 26.8 | 32.9 |
| Our VGG-M | 45.7 | 38.5 | 36.9 | 20.6 | 16.9 | 55.2 | 38.8 | 57.5 | 14.8 | 25.0 | 10.6 | 38.7 | 39.3 | 51.8 | 16.3 | 13.6 | 38.0 | 34.6 | 46.3 | 26.1 | 33.3 |
| Our VGG16 | 45.9 | 39.6 | 39.8 | 21.1 | 14.4 | 60.9 | 39.9 | 61.5 | 15.6 | 32.5 | 14.1 | 44.8 | 45.2 | 51.7 | 18.0 | 13.8 | 38.9 | 32.1 | 47.2 | 23.5 | 35.1 |
+
+Table 3: Comparison to the SOTAs for object detection on the VOC 2007 test set in terms of AP (\%).
+
+| Method | aero | bicy | bird | boa | bot | bus | car | cat | chat | cow | dtab | dog | hors | mbik | pers | pltn | she | sofa | trail | tv | Av. |
| Training on PASCAL VOC 2007 trainval images with proposal/image-level annotations |
| FSOD VGG16 [40] | 70.0 | 80.6 | 70.1 | 57.3 | 49.9 | 78.2 | 80.4 | 82.0 | 52.2 | 75.3 | 67.2 | 80.3 | 79.8 | 75.0 | 76.3 | 39.1 | 68.3 | 67.3 | 81.1 | 67.6 | 69.9 |
| WSOD VGG16 [43] | 64.8 | 70.7 | 51.5 | 25.1 | 29.0 | 74.1 | 69.7 | 69.6 | 12.7 | 69.5 | 43.9 | 54.9 | 39.3 | 71.3 | 32.6 | 29.8 | 57.0 | 61.0 | 66.6 | 57.4 | 52.5 |
| Training on web data from Google and Flickr |
| Divvala et al. [11] | 14.0 | 36.2 | 12.5 | 10.3 | 9.2 | 35.0 | 35.9 | 8.4 | 10.0 | 17.5 | 6.5 | 12.9 | 30.6 | 27.5 | 6.0 | 1.5 | 18.8 | 10.3 | 23.5 | 16.4 | 17.1 |
| Chen et al. Google [7] | 29.5 | 38.3 | 15.1 | 14.0 | 9.1 | 44.3 | 29.3 | 24.9 | 6.9 | 15.8 | 9.7 | 22.6 | 23.5 | 34.3 | 9.7 | 12.7 | 21.4 | 15.8 | 33.4 | 19.4 | 21.5 |
| Chen et al. Flickr [7] | 30.2 | 41.3 | 21.7 | 18.3 | 9.2 | 44.3 | 32.2 | 25.5 | 9.8 | 21.5 | 10.4 | 26.7 | 27.3 | 42.8 | 12.6 | 13.3 | 20.4 | 20.9 | 36.2 | 22.8 | 24.4 |
| Training on Flickr-Clean and PASCAL VOC 2007 trainval images |
| Tao et al. VGG-M [53] | 35.6 | 31.3 | 18.2 | 7.7 | 9.1 | 40.4 | 38.4 | 23.8 | 9.7 | 20.1 | 33.4 | 22.5 | 30.9 | 41.4 | 9.8 | 10.8 | 18.7 | 28.7 | 27.1 | 34.7 | 24.6 |
| Tao et al. VGG16 [53] | 40.6 | 30.1 | 17.8 | 15.9 | 6.4 | 42.9 | 40.5 | 31.5 | 11.4 | 20.3 | 27.4 | 15.7 | 24.1 | 43.8 | 8.9 | 12.2 | 17.7 | 37.3 | 32.1 | 31.0 | 25.4 |
| Training on Flickr-Clean |
| Our VGG-F | 43.7 | 34.5 | 32.9 | 12.6 | 13.7 | 54.2 | 45.2 | 35.0 | 11.3 | 26.0 | 26.9 | 22.7 | 25.7 | 49.2 | 20.8 | 9.1 | 34.7 | 48.9 | 46.6 | 38.9 | 31.6 |
| Our VGG-M | 44.3 | 37.8 | 32.5 | 15.0 | 14.1 | 55.2 | 44.5 | 32.4 | 10.9 | 28.0 | 26.8 | 17.9 | 26.2 | 49.6 | 20.2 | 9.7 | 35.4 | 49.4 | 48.9 | 37.2 | 31.8 |
| Our VGG16 | 44.6 | 36.6 | 34.3 | 18.6 | 13.8 | 56.7 | 47.2 | 37.7 | 11.6 | 23.3 | 32.5 | 29.1 | 33.3 | 52.6 | 21.5 | 8.9 | 35.5 | 52.4 | 45.3 | 38.2 | 33.7 |
| Training on Flickr-VOC |
| Our VGG-F | 45.4 | 38.1 | 38.9 | 20.1 | 13.8 | 60.8 | 42.9 | 55.2 | 16.1 | 29.2 | 9.4 | 33.3 | 30.9 | 52.9 | 14.5 | 14.9 | 37.8 | 28.8 | 49.2 | 26.8 | 32.9 |
| Our VGG-M | 45.7 | 38.5 | 36.9 | 20.6 | 16.9 | 55.2 | 38.8 | 57.5 | 14.8 | 25.0 | 10.6 | 38.7 | 39.3 | 51.8 | 16.3 | 13.6 | 38.0 | 34.6 | 46.3 | 26.1 | 33.3 |
| Our VGG16 | 45.9 | 39.6 | 39.8 | 21.1 | 14.4 | 60.9 | 39.9 | 61.5 | 15.6 | 32.5 | 14.1 | 44.8 | 45.2 | 51.7 | 18.0 | 13.8 | 38.9 | 32.1 | 47.2 | 23.5 | 35.1 |
+
+M) and deep VGG-VD16 [48] (VGG16), which are initialized with the weights pre-trained on ImageNet [9].
+
+Training. In all experiments, the size of mini-batch, the learning rate, the momentum, the decay weight and the dropout rate are set to 1, 0.001, 0.9, 0.0005 and 0.5, respectively. We freeze all convolutional layers in our backbones during training. To improve the robustness, we randomly adjust the exposure and saturation of the images by up to a factor of 1.5 in the HSV space. And a random crop with 0.9 of the original image size is applied. We use MCG [2] to generate object proposals for all experiments, including our baseline methods. We set the maximum number of region proposals in an image to 2, 048. All models are trained for 200K iterations. We apply Xavier initialization [19] to initialize the new fully-connected layers. The bagging-mixup hyper-parameter $\alpha_{1}$ is set to 1.5.
+
+Testing. We use the output of the WD head $X^s$ as the final detection scores. Detection results are post-processed by a NMS module using a threshold of 0.5 IoU.
+
+# 4.5. Comparison to Baselines
+
+We first compare the performance of WSDDN trained on PASCAL VOC 2007 with human-annotated image-level labels and directly trained on the Flickr data, i.e., Flickr-VOC. As shown in the first and the second parts of Tab. 2, the performance of the detector trained on Flickr-VOC decreases dramatically. Due to the noisy image-level labels in Flickr-VOC, the performances of the three backbones are only $25.9\%$ , $25.5\%$ and $27.6\%$ in terms of mAP, with losses of $10.1\%$ , $9.7\%$ and $9.3\%$ compared to the WSDDN models trained on PASCAL VOC 2007, respectively. Over
+
+all, there is a significant gap between the models trained on the PASCAL VOC and web data. We show that the proposed method on Flickr-VOC achieves the performances of $32.9\%$ , $33.3\%$ and $35.1\%$ with improvements of $7.0\%$ , $7.8\%$ and $7.5\%$ , respectively. It also demonstrates that our method outperforms the baselines by a large margin, and reduces the gap between fWebSOD and WSOD.
+
+# 4.6. Comparison with State of the Arts (SOTAs)
+
+We compare our method with the state of the arts, including [11, 7, 53]. Tab. 3 shows our results on the PASCAL VOC 2007 test in terms of $mAP$ . Our three models on Flickr-VOC reach $32.9\%$ , $33.3\%$ and $35.1\%$ $mAP$ with VGG-F, VGG-M and VGG16 backbones, respectively, which outperform the state-of-the-art algorithms. Although Flickr-Clean has been post-processed to reduce noise, our models trained on Flickr-VOC still achieve better performance. As Flickr-VOC has more than twice the image number of Flickr-Clean, and our method is able to reduce the negative impact of noise. It is worth noting that, compared to the baseline WSDDN [6] approach, our method has the same inference speed. Our single model VGG-F outperforms the state-of-the-art result $25.4\%$ with a gain of $7.5\%$ in terms of $mAP$ . Note that the comparison of data usage between the proposed framework and the previous methods can better reveal the significance of our work. The works in Divvala et al. [11], Chen et al. [7] and Tao et al. [53] all use external manual knowledge, e.g., Google Books $n$ -grams corpora, easy images from the Google search engine and PASCAL VOC images. However, our method only uses web images without any other form of knowledge.
+
+Table 4: Comparison to the SOTAs for object detection on the VOC 2012 test set in terms of AP (\%).
+
+| Method | aero | bicy | bird | boa | bot | bus | car | cat | chat | cow | dtab | dog | hors | mbik | pers | plnt | she | sofa | trail | tv | Av. |
| Training on PASCAL VOC 2012 trainval images with proposal/image-level annotations |
| FSOD VGG16 [18] | 82.3 | 76.4 | 71.0 | 48.4 | 45.2 | 72.1 | 72.3 | 87.3 | 42.2 | 73.7 | 50.0 | 86.8 | 78.7 | 78.4 | 77.4 | 34.5 | 70.1 | 57.1 | 77.1 | 58.9 | 67.0 |
| WSOD VGG16 [43] | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 46.1 |
| Training on Flickr-Clean and PASCAL VOC 2012 trainval images |
| Tao et al. VGG-M [53] | 44.3 | 29.8 | 15.6 | 6.6 | 6.0 | 34.4 | 24.2 | 25.1 | 5.7 | 20.3 | 22.3 | 24.9 | 29.1 | 45.2 | 7.8 | 9.4 | 12.4 | 21.4 | 22.6 | 26.0 | 21.7 |
| Training on Flickr-Clean |
| Our VGG-F | 41.0 | 15.1 | 29.7 | 10.4 | 13.2 | 47.6 | 42.0 | 36.8 | 10.2 | 16.5 | 13.2 | 28.2 | 20.5 | 39.6 | 15.0 | 8.4 | 28.0 | 38.6 | 9.6 | 38.2 | 25.1 |
| Our VGG-M | 40.7 | 17.2 | 28.1 | 11.6 | 12.5 | 48.4 | 39.7 | 31.1 | 5.5 | 20.8 | 12.2 | 27.3 | 27.9 | 37.3 | 17.7 | 7.0 | 28.1 | 40.1 | 10.0 | 36.6 | 25.0 |
| Our VGG16 | 39.6 | 18.1 | 30.7 | 8.4 | 12.0 | 51.2 | 42.5 | 42.6 | 9.4 | 20.4 | 16.1 | 23.5 | 26.9 | 41.6 | 17.1 | 7.9 | 29.1 | 39.0 | 9.6 | 39.9 | 26.3 |
| Training on Flickr-VOC |
| Our VGG-F | 40.2 | 33.7 | 38.4 | 12.5 | 13.0 | 52.7 | 40.4 | 41.2 | 13.0 | 24.7 | 18.0 | 31.6 | 32.5 | 51.7 | 12.4 | 11.6 | 33.3 | 30.4 | 40.5 | 22.1 | 29.7 |
| Our VGG-M | 42.6 | 36.7 | 36.9 | 17.5 | 14.8 | 53.6 | 38.3 | 44.4 | 13.7 | 28.8 | 19.2 | 24.6 | 26.8 | 52.2 | 11.3 | 10.5 | 39.1 | 26.6 | 42.9 | 21.4 | 30.1 |
| Our VGG16 | 41.9 | 40.6 | 38.4 | 20.5 | 9.0 | 56.9 | 40.3 | 50.1 | 13.0 | 30.8 | 17.2 | 32.7 | 29.9 | 51.2 | 17.0 | 13.5 | 36.4 | 39.2 | 45.3 | 29.2 | 32.7 |
+
+Table 5: Ablation study of our method for object detection on the VOC 2007 test set in terms of AP (\%).
+
+| Method | aero | bicy | bird | boa | bot | bus | car | cat | cha | cow | dtab | dog | hors | mbik | pers | plnt | she | sofa | trail | tv | Av. |
| Baseline | 35.8 | 39.5 | 35.8 | 9.6 | 10.0 | 51.5 | 39.5 | 41.3 | 7.1 | 22.4 | 7.4 | 31.0 | 33.4 | 47.3 | 13.0 | 9.2 | 32.7 | 27.5 | 44.6 | 14.2 | 27.6 |
| RD | 42.2 | 34.8 | 34.5 | 19.4 | 9.8 | 53.1 | 42.0 | 46.6 | 10.6 | 26.0 | 9.4 | 29.9 | 26.2 | 48.7 | 13.7 | 18.2 | 38.8 | 28.7 | 40.7 | 22.7 | 29.8 |
| RD + EW | 44.3 | 34.9 | 38.7 | 16.3 | 13.0 | 55.5 | 40.7 | 44.3 | 15.3 | 23.5 | 5.2 | 35.6 | 35.3 | 50.7 | 14.7 | 11.6 | 30.1 | 33.1 | 45.9 | 24.9 | 30.7 |
| RD + SSE | 45.4 | 46.9 | 38.3 | 19.8 | 12.4 | 61.7 | 41.5 | 47.1 | 13.9 | 26.1 | 11.8 | 39.1 | 41.6 | 52.8 | 16.3 | 13.7 | 38.4 | 32.0 | 45.7 | 24.6 | 33.4 |
| RD + SSE-ALL | 48.0 | 42.7 | 41.6 | 20.1 | 12.5 | 60.8 | 42.1 | 48.7 | 15.4 | 27.7 | 18.3 | 38.8 | 34.9 | 52.2 | 16.8 | 11.6 | 40.0 | 32.8 | 39.0 | 27.6 | 33.6 |
| RD + SSE + BM2 | 45.9 | 39.6 | 39.8 | 21.1 | 14.4 | 60.9 | 39.9 | 61.5 | 15.6 | 32.5 | 14.1 | 44.8 | 45.2 | 51.7 | 18.0 | 13.8 | 38.9 | 32.1 | 47.2 | 23.5 | 35.1 |
| RD + SSE + BM3 | 45.7 | 39.9 | 40.9 | 20.7 | 14.3 | 60.7 | 39.9 | 61.7 | 15.8 | 32.1 | 13.9 | 44.4 | 45.4 | 51.8 | 18.4 | 15.2 | 38.7 | 32.0 | 47.7 | 24.3 | 35.2 |
| RD + SSE + BM4 | 45.9 | 39.0 | 41.4 | 20.6 | 14.3 | 60.5 | 39.5 | 60.9 | 15.3 | 32.1 | 17.2 | 43.7 | 44.5 | 52.3 | 18.0 | 14.6 | 38.7 | 30.9 | 49.3 | 24.1 | 35.1 |
+
+Table 6: Result on the COCO minival set.
+
+| Method | Avg. Precision, IoU: | Avg. Precision, Area: |
| 0.5:0.95 | 0.5 | 0.75 | S | M | L |
| Training on COCO train images with proposal/image-level annotations |
| FSOD VGG16 [18] | 21.2 | 41.5 | - | - | - | - |
| WSOD VGG16 [43] | 10.5 | 20.3 | 9.2 | 2.2 | 10.9 | 18.3 |
| WSDDN VGG16 | 9.5 | 19.2 | 8.2 | 2.1 | 10.4 | 17.2 |
| Training on Flickr-COCO |
| WSDDN VGG16 | 3.1 | 7.0 | 2.3 | 0.4 | 2.6 | 6.9 |
| Our VGG16 | 5.4 | 10.6 | 4.6 | 0.6 | 5.1 | 10.7 |
+
+In Tab. 4, we also evaluate our method on the PASCAL VOC 2012 test. Our models consistently outperform the state-of-the-art methods. In Tab. 6, we evaluate our method on MS COCO. Compared to using well labelled MS COCO, directly training the WSDDN model on Flickr-COCO results in poor performance (19.2% vs. 7.0% AP0.5). However, our framework achieves 10.6% AP0.5, which outperforms the state-of-the-art method by a large margin.
+
+# 4.7. Ablation Study
+
+The residual detection (RD) head. To investigate the effect of the RD head, we set $\mathbf{p}_k$ to 0.5 for all categories. Thus, it always combines the gradient flow from both heads in this setting. As shown in Tab. 5, the result of RD is slightly better than the baseline, as it imposes the model to learn residual features without considering noise explicitly. It also demonstrates that the performance gain does not merely come from the additional parameters of RD head.
+
+The spatially-sensitive entropy (SSE) criterion. To further verify the effects of the SSE criterion, we first use the original entropy to compute the confidence weight for each background label. This is implemented by replacing $\hat{E}$ with $E$ in Eq. 9. As shown in Tab. 5, adding the original entropy weight to the RD head ("RD + EW") achieves $0.9\%$ mAP improvement over the baseline method on FlickrVOC. Replacing the original entropy by the SSE criterion, "RD + SSE", achieves a large gain of $3.6\%$ mAP on PAS-
+
+CAL VOC 2007 test, which demonstrates the contribution of SSE to the overall network. We also apply the SSE criterion for all categories (background and foreground). We find that “RD + SSE-ALL” helps reduce foreground noise.
+
+The bagging-mixup (BM) learning. We further examine the results of BM with different numbers $N_{a}$ of images in a bag. In Tab. 5, we can see that the result of two images in a bag ("RD + SSE + BM2") is better than that without BM ("RD + SSE"), which suggests that the combinations of multiple images during training do help suppress the negative impact of foreground noise. We also evaluate the effectiveness of increasing $N_{a}$ in BM. We find that the gain of more than two images in a bag ("RD + SSE + BM3" and "RD + SSE + BM4") is trivial.
+
+# 5. Conclusion
+
+In this work, we focus on training object detectors using only web supervision without requiring any other form of knowledge, e.g., manual annotations or additional images. As image-level labels on the web contain heterogeneous noise, we categorize them into two types, namely background noise and foreground noise. To this end, we present an end-to-end learning framework to learn webly supervised detectors and reduce the negative impact of noisy labels. The proposed framework outperforms the baseline methods and sets new state-of-the-art results on the PASCAL VOC and MS COCO in the task of fWebSOD.
+
+# 6. Acknowledgment
+
+This work is supported by the Nature Science Foundation of China (No.U1705262, No.61772443, No.61572410, No.61802324 and No.61702136), National Key R&D Program (No.2017YFC0113000, and No.2016YFB1001503), and Nature Science Foundation of Fujian Province, China (No. 2017J01125 and No. 2018J01106).
+
+# References
+
+[1] Jaume Amores. Multiple instance classification: Review, taxonomy and comparative study. AI, 2013.
+[2] P Arbeláez, J Pont-Tuset, J Barron, F Marques, and J Malik. Multiscale Combinatorial Grouping. In CVPR, 2014.
+[3] Loris Bazzani, Alessandro Bergamo, Dragomir Anguelov, and Lorenzo Torresani. Self-Taught Object Localization with Deep Networks. In WACV, 2016.
+[4] Archith J. Bency, Heesung Kwon, Hyungtae Lee, S. Karthikeyan, and B. S. Manjunath. Weakly Supervised Localization using Deep Feature Maps. In ECCV, 2016.
+[5] Alessandro Bergamo. Exploiting weakly-labeled Web images to improve object classification: a domain adaptation approach. NeurIPS, 2010.
+[6] Hakan Bilen and Andrea Vedaldi. Weakly Supervised Deep Detection Networks. In CVPR, 2016.
+[7] Xinlei Chen. Webly Supervised Learning of Convolutional Networks. In ICCV, 2015.
+[8] Ming-ming Cheng, Niloy J Mitra, Xiaolei Huang, Philip H S Torr, and Shi-min Hu. Global Contrast based Salient Region Detection. TPAMI, 2015.
+[9] J Deng, W Dong, R Socher, L.-J. Li, K Li, and L Fei-Fei. ImageNet: A Large-Scale Hierarchical Image Database. In CVPR, 2009.
+[10] Ali Diba, Vivek Sharma, Ali Pazandeh, Hamed Pirsiavash, and Luc Van Gool. Weakly Supervised Cascaded Convolutional Networks. In CVPR, 2017.
+[11] Santosh K. Divvala, Ali Farhadi, and Carlos Guestrin. Learning everything about anything: Webly-supervised visual concept learning. In CVPR, 2014.
+[12] Mark Everingham, Luc Van Gool, Christopher K. I. Williams, John Winn, and Andrew Zisserman. The Pascal Visual Object Classes (VOC) Challenge. *IJCV*, 2010.
+[13] Deng-Ping Fan, Ming-Ming Cheng, Jiang-Jiang Liu, Shang-Hua Gao, Qibin Hou, and Ali Borji. Salient objects in clutter: Bringing salient object detection to the foreground. In ECCV, 2018.
+[14] Deng-Ping Fan, Ge-Peng Ji, Guolei Sun, Ming-Ming Cheng, Jianbing Shen, and Ling Shao. Camouflaged object detection. In CVPR, 2020.
+[15] Deng-Ping Fan, Wenguan Wang, Ming-Ming Cheng, and Jianbing Shen. Shifting more attention to video salient object detection. In CVPR, 2019.
+[16] Mingfei Gao, Ang Li, Ruichi Yu, Vlad I. Morariu, and Larry S. Davis. C-WSL: Count-guided Weakly Supervised Localization. In ECCV, 2018.
+[17] 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, 2018.
+[18] Ross Girshick. Fast R-CNN. In ICCV, 2015.
+[19] Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In AISTATS, 2010.
+[20] Amogh Gudi, Nicolai van Rosmalen, Marco Loog, and Jan van Gemert. Object-Extent Pooling for Weakly Supervised Single-Shot Localization. In BMVC, 2017.
+
+[21] Sheng Guo, Weilin Huang, Haozhi Zhang, Chenfan Zhuang, Dengke Dong, Matthew R. Scott, and Dinglong Huang. CurriculumNet: Weakly Supervised Learning from Large-Scale Web Images. In ECCV, 2018.
+[22] Kaiming He, Georgia Gkioxari, Piotr Dollár, and Ross Girshick. Mask R-CNN. In ICCV, 2017.
+[23] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Spatial Pyramid Pooling in Deep Convolutional Networks for Visual Recognition. In ECCV, 2014.
+[24] Seunghoon Hong, Donghun Yeo, Suha Kwak, Honglak Lee, and Bohyung Han. Weakly Supervised Semantic Segmentation using Web-Crawled Videos. In CVPR, 2017.
+[25] Naoto Inoue, Ryosuke Furuta, Toshihiko Yamasaki, and Kiyoharu Aizawa. Cross-Domain Weakly-Supervised Object Detection through Progressive Domain Adaptation. In CVPR, 2018.
+[26] Huaizu Jiang, Zejian Yuan, Ming-Ming Cheng, Yihong Gong, Nanning Zheng, and Jingdong Wang. Salient Object Detection: A Discriminative Regional Feature Integration Approach. IJCV, 2016.
+[27] Zequn Jie, Yunchao Wei, Xiaojie Jin, Jiashi Feng, and Wei Liu. Deep Self-Taught Learning for Weakly Supervised Object Localization. In CVPR, 2017.
+[28] Vadim Kantorov, Maxime Oquab, Minsu Cho, and Ivan Laptev. ContextLocNet: Context-Aware Deep Network Models for Weakly Supervised Localization. In ECCV, 2016.
+[29] Chatfield Ken, Simonyan Karen, Vedaldi Andrea, and Zisserman Andrew. Return of the Devil in the Details Delving Deep into Convolutional Nets. In BMVC, 2014.
+[30] Dong Li, Jia-Bin Huang, Yali Li, Shengjin Wang, and Ming-Hsuan Yang. Weakly Supervised Object Localization with Progressive Domain Adaptation. In CVPR, 2016.
+[31] Yao Li, Linqiao Liu, Chunhua Shen, and Anton van den Hengel. Image Co-localization by Mimicking a Good Detector's Confidence Score Distribution. In ECCV, 2016.
+[32] Tsung-Yi Lin, Michael Maire, Serge Belongie, Lubomir Bourdev, Ross Girshick, James Hays, Pietro Perona, Deva Ramanan, C. Lawrence Zitnick, and Piotr Dólar. Microsoft COCO: Common Objects in Context. In ECCV, 2014.
+[33] 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.
+[34] 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 ECCV, 2018.
+[35] Li Niu, Qingtao Tang, Ashok Veeraraghavan, and Ashu Sabharwal. Learning from Noisy Web Data with Category-level Supervision. In CVPR, 2018.
+[36] Li Niu, Ashok Veeraraghavan, and Ashu Sabharwal. Webly Supervised Learning Meets Zero-shot Learning: A Hybrid Approach for Fine-grained Classification. In CVPR, 2018.
+[37] Maxime Oquab, Léon Bottou, Ivan Laptev, and Josef Sivic. Is object localization for free? - Weakly-supervised learning with convolutional neural networks. In CVPR, 2015.
+
+[38] Dim P. Papadopoulos, Jasper R. R. Uijlings, Frank Keller, and Vittorio Ferrari. We don't need no bounding-boxes: Training object class detectors using only human verification. In CVPR, 2016.
+[39] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You Only Look Once: Unified, Real-Time Object Detection. In CVPR, 2016.
+[40] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. In NeurIPS, 2015.
+[41] Tong Shen, Guosheng Lin, Chunhua Shen, and Ian Reid. Bootstrapping the Performance of Webly Supervised Semantic Segmentation. In CVPR, 2018.
+[42] Yunhang Shen, Rongrong Ji, Changhu Wang, Xi Li, and Xuelong Li. Weakly Supervised Object Detection via Object-Specific Pixel Gradient. TNNLS, 2018.
+[43] Yunhang Shen, Rongrong Ji, Yan Wang, Yongjian Wu, and Liujuan Cao. Cyclic Guidance for Weakly Supervised Joint Detection and Segmentation. In CVPR, 2019.
+[44] Yunhang Shen, Rongrong Ji, Kuiyuan Yang, Cheng Deng, and Changhu Wang. Category-Aware Spatial Constraint for Weakly Supervised Detection. TIP, 2019.
+[45] Yunhan Shen, Rongrong Ji, Shengchuan Zhang, Wangmeng Zuo, and Yan Wang. Generative Adversarial Learning Towards Fast Weakly Supervised Detection. In CVPR, 2018.
+[46] Miaojing Shi, Holger Caesar, and Vittorio Ferrari. Weakly Supervised Object Localization Using Things and Stuff Transfer. In ICCV, 2017.
+[47] Miaojing Shi and Vittorio Ferrari. Weakly Supervised Object Localization Using Size Estimates. In ECCV, 2016.
+[48] Karen Simonyan and Andrew Zisserman. Very Deep Convolutional Networks for Large-Scale Image Recognition. In ICLR, 2015.
+[49] Krishna Kumar Singh, Fanyi Xiao, and Yong Jae Lee. Track and Transfer: Watching Videos to Simulate Strong Human Supervision for Weakly-Supervised Object Detection. In CVPR, 2016.
+[50] Peng Tang, Xinggang Wang, Xiang Bai, and Wenyu Liu. Multiple Instance Detection Network with Online Instance Classifier Refinement. In CVPR, 2017.
+[51] Peng Tang, Xinggang Wang, Angtian Wang, Yongluan Yan, Wenyu Liu, Junzhou Huang, and Alan Yuille. Weakly Supervised Region Proposal Network and Object Detection. In ECCV, 2018.
+[52] Qingyi Tao, Hao Yang, and Jianfei Cai. Exploiting Web Images for Weakly Supervised Object Detection. TMM, 2018.
+[53] Qingyi Tao, Hao Yang, and Jianfei Cai. Zero-Annotation Object Detection with Web Knowledge Transfer. In ECCV, 2018.
+[54] Fang Wan, Pengxu Wei, Jianbin Jiao, Zhenjun Han, and Qixiang Ye. Min-Entropy Latent Model for Weakly Supervised Object Detection. In CVPR, 2018.
+[55] Yunchao Wei, Xiaodan Liang, Yunpeng Chen, Xiaohui Shen, Ming-Ming Cheng, Jiashi Feng, Yao Zhao, and Shuicheng Yan. STC: A Simple to Complex Framework for Weakly-supervised Semantic Segmentation. TPAMI, 2017.
+
+[56] Yunchao Wei, Zhiqiang Shen, Bowen Cheng, Honghui Shi, Jinjun Xiong, Jiashi Feng, and Thomas Huang. TS2C: Tight Box Mining with Surrounding Segmentation Context for Weakly Supervised Object Detection. In ECCV, 2018.
+[57] Hongyi Zhang, Moustapha Cisse, Yann N. Dauphin, and David Lopez-Paz. mixup: Beyond Empirical Risk Minimization. In ICLR, 2018.
+[58] Xiaopeng Zhang, Jiashi Feng, Hongkai Xiong, and Qi Tian. Zigzag Learning for Weakly Supervised Object Detection. In CVPR, 2018.
+[59] Xiaolin Zhang, Yunchao Wei, Jiashi Feng, Yi Yang, and Thomas Huang. Adversarial Complementary Learning for Weakly Supervised Object Localization. In CVPR, 2018.
+[60] Yongqiang Zhang, Yongqiang Li, and Bernard Ghanem. W2F: A Weakly-Supervised to Fully-Supervised Framework for Object Detection. In CVPR, 2018.
+[61] Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning Deep Features for Discriminative Localization. In CVPR, 2016.
+[62] Yi Zhu, Yanzhao Zhou, Qixiang Ye, Qiang Qiu, and Jianbin Jiao. Soft Proposal Networks for Weakly Supervised Object Localization. In ICCV, 2017.
+[63] Bohan Zhuang, Lingqiao Liu, Yao Li, Chunhua Shen, and Ian Reid. Attend in groups: a weakly-supervised deep learning framework for learning from web data. In CVPR, 2017.
\ No newline at end of file
diff --git a/noiseawarefullyweblysupervisedobjectdetection/images.zip b/noiseawarefullyweblysupervisedobjectdetection/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..4df913098439fc5010687fc44402663a69cfe77c
--- /dev/null
+++ b/noiseawarefullyweblysupervisedobjectdetection/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9c8fd4d7ccdc04cd9592f92807225898623079d791be57656a0aefeaaee1b4fd
+size 750792
diff --git a/noiseawarefullyweblysupervisedobjectdetection/layout.json b/noiseawarefullyweblysupervisedobjectdetection/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..69d1f111a92a576dc1ccf4886789338883e7e928
--- /dev/null
+++ b/noiseawarefullyweblysupervisedobjectdetection/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:12d542e9abbc4c5df94e1ff39c9351754634ce16d28f221086f463fcb731e6b0
+size 438244
diff --git a/noisemodelingsynthesisandclassificationforgenericobjectantispoofing/be7d932a-159f-454c-8f6f-2057adcc8c68_content_list.json b/noisemodelingsynthesisandclassificationforgenericobjectantispoofing/be7d932a-159f-454c-8f6f-2057adcc8c68_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..401f3c966c075322d8ad727040cbd2e83f5d2a15
--- /dev/null
+++ b/noisemodelingsynthesisandclassificationforgenericobjectantispoofing/be7d932a-159f-454c-8f6f-2057adcc8c68_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:85af6d3c023f1ff59ad6ff1185f01d696f7bd411a4e3f712f613f4d4b6510709
+size 81410
diff --git a/noisemodelingsynthesisandclassificationforgenericobjectantispoofing/be7d932a-159f-454c-8f6f-2057adcc8c68_model.json b/noisemodelingsynthesisandclassificationforgenericobjectantispoofing/be7d932a-159f-454c-8f6f-2057adcc8c68_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..cb65caf4ccdfd6b71aa631d1d1c0a83677ec82b7
--- /dev/null
+++ b/noisemodelingsynthesisandclassificationforgenericobjectantispoofing/be7d932a-159f-454c-8f6f-2057adcc8c68_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:49b8c8a11e1540cae2df66097fd00d0730b0df6310da1712ccbcfa9bfb9670d3
+size 97622
diff --git a/noisemodelingsynthesisandclassificationforgenericobjectantispoofing/be7d932a-159f-454c-8f6f-2057adcc8c68_origin.pdf b/noisemodelingsynthesisandclassificationforgenericobjectantispoofing/be7d932a-159f-454c-8f6f-2057adcc8c68_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..c2f1b78656ae688fa717fcdf2de5af8f3b906c8f
--- /dev/null
+++ b/noisemodelingsynthesisandclassificationforgenericobjectantispoofing/be7d932a-159f-454c-8f6f-2057adcc8c68_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2bcd0e20a9b761be01675be4eedef2239d130a519b556982be6c06327ed34ed4
+size 5656050
diff --git a/noisemodelingsynthesisandclassificationforgenericobjectantispoofing/full.md b/noisemodelingsynthesisandclassificationforgenericobjectantispoofing/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..03a33c4e0ecd8c86239ed814a7c791a940550fb0
--- /dev/null
+++ b/noisemodelingsynthesisandclassificationforgenericobjectantispoofing/full.md
@@ -0,0 +1,318 @@
+# Noise Modeling, Synthesis and Classification for Generic Object Anti-Spoofing
+
+Joel Stehouwer, Amin Jourabloo, Yaojie Liu, Xiaoming Liu
+Department of Computer Science and Engineering
+Michigan State University, East Lansing MI 48824
+{stehouw7, liuyaoj1, jourablo, liuxm}@msu.edu
+
+# Abstract
+
+Using printed photograph and replaying videos of biometric modalities, such as iris, fingerprint and face, are common attacks to fool the recognition systems for granting access as the genuine user. With the growing online person-to-person shopping (e.g., eBay and Craigslist), such attacks also threaten those services, where the online photo illustration might not be captured from real items but from paper or digital screen. Thus, the study of anti-spoofing should be extended from modality-specific solutions to generic-object-based ones. In this work, we define and tackle the problem of Generic Object Anti-Spoofing (GOAS) for the first time. One significant cue to detect these attacks is the noise patterns introduced by the capture sensors and spoof mediums. Different sensor/medium combinations can result in diverse noise patterns. We propose a GAN-based architecture to synthesize and identify the noise patterns from seen and unseen medium/sensor combinations. We show that the procedure of synthesis and identification are mutually beneficial. We further demonstrate the learned GOAS models can directly contribute to modality-specific anti-spoofing without domain transfer. The code and GOSet dataset are available at cvlab.cse.msu.edu/project-goas.html.
+
+# 1. Introduction
+
+Anti-spoofing (i.e., spoof detection) is a long-standing topic in the biometrics field that empowers recognition systems to detect samples from spoofing mediums, e.g., printed paper or digital screen [2, 6, 8, 26]. A similar concern may appear in online commerce websites, e.g., Ebay, Craigslist, which provide services to enable direct user-to-user buying and selling. For instance, when purchasing, a customer may wonder, "Is that a picture of a real item he owns?" This scenario motivates a broader problem of anti-spoofing:
+
+Given an image of a generic object, such as a cup or a desk, can we automatically classify if this was captured from the real object, or through a medium, such as digital screen or printed paper?
+
+
+Figure 1. Similarly to biometric anti-spoofing, GOAS determines if an image of an object is captured from the real object or through spoof mediums. Anti-spoofing algorithms can be sensitive to device-specific noises. Given the challenge of capturing spoof data with full combinations of sensors/medium, we synthesize spoof images at any combination (marked as $\mathbf{X}$ ), which benefits GOAS.
+
+We define this problem as Generic Object Anti-Spoofing (GOAS). With the wider variety of objects, there are richer appearance variations and greater challenges in GOAS, as shown in Fig. 1, compared to individual biometric modalities. Successful solutions [2, 8, 23, 26, 27, 30, 31, 33] for modality-specific anti-spoofing are likely ineffective for GOAS. We find that capture sensors and spoofing mediums bring certain texture patterns (e.g., Moiré pattern [32]) to all captured images, regardless of the content. These patterns are often low-energy and regarded as "noise". However, they are ubiquitous and consistent, since they result from the physical properties of the sensors/mediums and environmental conditions, such as light reflection. We believe a proper modeling of such noise patterns will lead to effective solutions for GOAS and may contribute to modality-specific anti-spoofing tasks. In this work, we study the fundamental low-level vision problem of modeling, synthesizing, and classifying the noise patterns for tackling GOAS.
+
+Modeling noise patterns is a promising, yet challenging, approach for GOAS. In [9, 10, 39], the camera model identi
+
+fication problem is studied for the purpose of digital forensics. The properties of different capture sensors are examined thanks to the assistance of databases, such as PRNUPAR Dataset [22] and Dresden Image Database [20]. Related topics such as noise pattern removal [1] and noise pattern modeling for face modality [23] are also investigated. The authors of [42] show that simple synthesis methods for data augmentation are beneficial for the anti-spoofing task. These prior works provide a solid base to begin the study of GOAS. Meanwhile, we still face three major challenges:
+
+Complexity of spoof noise patterns: The noise patterns in GOAS are related to both sensor and medium, as well as their interaction with the environment. First, it's hard to model the interaction mathematically. Second, the noises are "hidden" under large appearance variations, thus even more untraceable. Additionally, each physical device has a unique fingerprint, though these fingerprints are similar within the same device models as shown in [19, 21].
+
+Insufficient data and lack of strong labels: Unlike many other computer vision tasks, spoof data for anti-spoofing cannot be collected from the Internet. Moreover, strong labels, e.g., pixel-wise correspondence between spoof images and ground truth live images, is extremely difficult to obtain. The constant development of new sensors and spoof mediums further complicates the data collection, and increases the difficulty of learning a CNN that is robust to these small, but significant variations [5].
+
+Modality dependency: Current anti-spoofing methods are designed for a specific modality, e.g., face, iris, or fingerprint. These solutions cannot be applied to a different modality. Thus, it is desirable to have a single anti-spoofing model applicable to multiple modalities or applications.
+
+To address these challenges, we propose a novel Generative Adversarial Network (GAN)-based approach for GOAS, consisting of three parts: GOGen, GOLab, and GoPad. GOGen is a generator network, which learns to convert a live image to a spoof one given a target known or unknown sensor/medium combination. GOGen allows for synthesis of new images with specific combinations, which helps to remedy insufficiency and imbalance issues in training data, such as the long tail problem [43]. GOLab serves as a multi-class classifier to identify the type of sensor and medium as well as live vs. spoof. GoPad is a binary classifier for GOAS. The three parts in this design, including the synthesis procedure and multi-class identification, contribute to our final goal of GOAS. To properly train such a network, three novel loss functions are proposed to model the noise pattern and supervise the training. Furthermore, we collect the first generic object dataset (GOSet) to conduct this study. GOSet involves 7 camera sensors, 7 spoof mediums, and other image variations.
+
+To summarize, the contributions of this work include:
+
+We identify and define the new problem of GOAS.
+
+$\diamond$ We propose a novel network architecture to synthesize unseen noise patterns that are shown to benefit GOAS.
+A generic object dataset (GOSet) is collected and contains live and spoof videos of 24 objects.
+$\diamond$ We demonstrate SOTA generalization performance when applying GOSet trained models to face anti-spoofing.
+
+# 2. Prior Work
+
+While there is no prior work on GOAS, we review relevant prior work from three perspectives.
+
+Modality-specific anti-spoofing: Early works [6,8] perform texture analysis via hand-crafted features for anti-spoofing. [2] utilizes a patch-based CNN and score fusion to show that spoof noise can be detected in small image patches. Similarly, [15] uses minutiae to guide patch selection for fingerprint anti-spoofing. Rather than detecting spoof noise, [23] attempts to estimate and remove the spoof noise from images. Cue-based methods incorporate domain knowledge into anti-spoofing, e.g., rPPG [25, 26], eyeblinks [30], visual rhythms [3, 16, 18], paired audio cues [12], and pulse oximetry [34]. A significant limitation is that each modality is domain specific; an algorithm developed for one modality cannot be applied to the others. The closest approach to cross domain is [28], via transfer learning to fine-tune on the face modality. Our work improves upon these by utilizing generic objects, and therefore is forced to be content independent. Further, we learn a deep representation for the spoof noise of multiple spoof mediums, and show that these noises can be convolved with a live image to synthesize new spoof images.
+
+Noise patterns modeling: Modeling or extracting noise from images is challenging, since there is no canonical ground truth. Hence some works attempt to estimate the noise via assumptions about the physical properties of the sensors and software post-processing of captured images [38, 39]. With these assumptions, ensemble classifiers [9], hand-crafted feature based classifiers [38, 39], and deep learning approaches [22] are proposed to address camera model identification. Following these, we assume that the sensor noise is image content independent. However, we not only classify the noise in an image, but also learn a noise prototype for each sensor that can be convolved with any image to modify its "noise footprint". We also address the challenge of spoof medium noise modeling and classification. [23] estimates the spoof noise on an image, but is limited to face images and estimates the noise per image. Hence we extend both camera model identification and spoof noise estimation works by combining both tasks within a single CNN, and by modeling a generalized representation of both the sensor and medium noises.
+
+Image manipulation and synthesis: GANs have gained increasing interest for style transfer and image synthesis tasks. Star-GAN [14] utilizes images from multiple do
+
+
+Figure 2. The overall framework of training GOGen. Live images are given to the generator to modify either the sensor or spoof noise. The resulting image is classified by the GOLab discriminator to supervise the generated images. An additional discriminator is used to ensure the generated images remained visually appealing and realistic. In each section of the figure, only the solid-colored network is updated in that training step. We alternate between training GOGen in one step and GOLab and GODisc in the next step. Input one-hot vectors are used as a mask to select the appropriately learned noise map, which is then concatenated to the input image.
+
+
+
+mains and datasets to accurately manipulate images by modifying attributes. [44] attempts to ensure high-fidelity manipulation by requiring the generator to learn a mapping such that it recreates the original image from the synthetic one. The work in [29] shows that it is possible to conditionally affect the output of a GAN by feeding an extra label, e.g., poses [40]. Here, we propose a GAN-based, targeted, content independent, image synthesis algorithm (GOGen) to alter only the high-frequency information of an image.
+
+Similarly, image super-resolution [11, 17, 36, 37] is used to improve the visual quality and high-frequency information in an image. [24] uses a laplacian pyramid structure to convert a low-resolution (LR) image into a high-resolution (HR) one. [35] estimates an HR gradient field and uses it with an upscaled LR image to produce an HR one. While super-resolution produces high-frequency information from low-frequency input, our GOGen aims to alter the existing high-frequency information in the input live image, which is particularly challenging given its unpredictable nature.
+
+# 3. Proposed Methods
+
+In this section, we present the details of the proposed methods, including GOGen, GODisc, and GOLab. As shown in Fig. 2, the overall framework adopts a GAN architecture, which is composed of a generator (GOGen) and two discriminators (GODisc and GOLab). GOGen synthesizes additional spoof videos of any combination of sensor and medium, even unseen combinations. GODisc is the discriminator network to guide images from GOGen to be visually plausible. GOLab performs sensor and medium identification. In addition, GOLab serves as the module to produce a final spoof detection score. We also present GOPad, which is adapted from a traditional binary classifier used by previous anti-spoofing works, to compare with the proposed
+
+method. To prevent overfitting and increase the quantity of training data, the input for the networks are image patches extracted from the original images.
+
+# 3.1. GOGen: Proof Synthesis
+
+In anti-spoofing, the increasing variety of sensors and spoof mediums creates a large challenge for data collection and generalization. It is increasingly expensive to collect additional data from every combination of camera and spoof medium. Meanwhile, the quantity, quality, and diversity of training data determine the performance and impact the generalization of deep learning algorithms. Hence, we develop GOGen to address this need for continual data collection via synthesis of unseen combinations.
+
+We train GOGen to synthesize new images of unseen sensor/medium combinations using knowledge learned from known combinations. When introducing a new device, GOGen can be trained with minimal data from the new device while utilizing all previously collected data from other devices. The generator, $\mathrm{CNN}_{\mathrm{Gen}}(\cdot)$ , converts a live image into a targeted spoof image of a specified spoof medium captured by a specified sensor. Specifically, the inputs of the generator are a live image $\mathbf{I} \in \mathbb{R}^{H \times W}$ and two one-hot vectors specifying the sensor of the output image $\mathbf{a}_c \in \mathbb{R}^{n_c}$ and the medium through which the output would be captured $\mathbf{a}_m \in \mathbb{R}^{n_m}$ . The output is a synthetic image $\hat{\mathbf{I}}$ .
+
+One key novelty in GOGen is the modeling of the noise from different sensors and spoof mediums. We assume the sensor and medium noises are image independent since they are attributed to the hardware, while the noise on an image is image dependent, due to interplay between the sensor, medium, image content, and imaging environment. To model such interplay, we denote a set of image-independent latent noise prototypes for all types of sensors
+
+
+Figure 3. GOGen learns noise prototypes of sensors $\mathbf{M}_c$ (row 1) and spoof mediums $\mathbf{M}_m$ (row 2). Rows 3 and 4 shows the 2D FFT power spectrum of noise prototypes in rows 1 and 2, respectively.
+
+$\mathbf{M}_c \in \mathbb{R}^{H \times W \times n_c}$ , and mediums $\mathbf{M}_m \in \mathbb{R}^{H \times W \times n_m}$ . In the training, using input one-hot vectors, $\mathbf{a}_c$ and $\mathbf{a}_m$ , we select the noise prototypes for the specific sensor-medium combination, $\mathbf{N}_c, \mathbf{N}_m \in \mathbb{R}^{H \times W}$ , via:
+
+$$
+\mathbf {N} _ {c} = \sum_ {i = 1} ^ {n _ {c}} \mathbf {a} _ {c} ^ {i} \mathbf {M} _ {c} ^ {i}, \quad \mathbf {N} _ {m} = \sum_ {i = 1} ^ {n _ {m}} \mathbf {a} _ {m} ^ {i} \mathbf {M} _ {m} ^ {i}. \tag {1}
+$$
+
+Then, we concatenate $\mathbf{I}$ , $\mathbf{N}_c$ and $\mathbf{N}_m$ as $\mathbf{T} = [\mathbf{I},\mathbf{N}_c,\mathbf{N}_m]$ and feed $\mathbf{T}$ to the generator. With this concatenated input, through convolution the generator mimics the interplay between the image content $\mathbf{I}$ , and the learnt $\mathbf{N}_c$ and $\mathbf{N}_m$ , to generate a device-specific, image-dependent, synthetic image. By manipulating only the sensor or the medium at a time, we are able to supervise either of $\mathbf{M}_c$ or $\mathbf{M}_m$ independently. In this manner, any combination from the learned $\mathbf{N}_c$ and $\mathbf{N}_m$ are used together to produce the noise for a synthetic image, even from unseen combinations.
+
+We hypothesize that by integrating the noise representation as part of the GOGen, via backpropagation, we should be able to learn latent noise prototypes that are specific to the device but universal across all images captured by that device. Such representations will enable GOGen to better synthesize images under many $(n_c \times n_m)$ combinations of sensors and mediums. We show the learned sensor and medium noise prototypes in Fig. 3. After the input image and noise prototypes are concatenated, they are fed to 8 convolution layers to synthesize spoof images. The detailed network architecture of GOGen is shown in Tab. 1.
+
+Since the additional spoof noise should be low-energy, an $\mathcal{L}_2$ loss is employed to minimize the difference between the live image and the image synthesized by the generator. This loss helps to limit the magnitude of the noise:
+
+$$
+J _ {\mathrm {V i s}} = \left\| \mathbf {I} - \operatorname {C N N} _ {\operatorname {G e n}} (\mathbf {T}) \right\| _ {2} ^ {2}. \tag {2}
+$$
+
+Table 1. Network architectures of GOGen, GOLab, and GODisc. Resizing is done before concatenation if required. Reshaping is done before the fully connected layers at the end of the GOLab and GODisc networks. All strides are of length 1. All convolutional kernels are of size $3 \times 3$ , except for Conv0 in Golab and GOPad, which have size $5 \times 5$ . The dropout rate is 0.5. For the output, we show the size (height and width) and number of channels.
+
+| Method Layer | GOGen | GOLab | GODisc |
| Inputs | Output | Inputs | Output | Inputs | Output |
| Img | - | 64, 3 | - | 64, 3 | - | 64, 3 |
| Lab | - | 64, 2 | | | | |
| Conco | Img,Lab | 64, 5 | | | | |
| Conv0 | Conv0 | 64, 64 | Img | 64, 64 | Img | 64, 32 |
| Pool0 | | | Conv0 | - | Conv0 | - |
| Conv1 | Conv0 | 64, 96 | Pool0 | 32, 96 | Pool0 | 32, 32 |
| Conv2 | Conv1 | 64, 96 | Conv1 | 32, 128 | Conv1 | 32, 64 |
| Conv3 | Conv2 | 64, 96 | Conv2 | 32, 96 | Conv2 | 32, 64 |
| Pool1 | | | Conv3 | - | Conv3 | - |
| Conv4 | Conv3 | 64, 96 | Pool1 | 16, 128 | Pool1 | 16, 64 |
| Conv1 | Lab,Conv0-4 | 64, 450 | | | | |
| Conv5 | Conv1 | 64, 160 | Conv4 | 16, 156 | Conv4 | 16, 96 |
| Conv6 | Conv5 | 64, 64 | Conv5 | 16, 128 | Conv5 | 16, 96 |
| Pool2 | | | Conv6 | - | | |
| Conv7 | | | Pool2 | 8, 96 | | |
| Conv8 | | | Conv7 | 8, 128 | | |
| Conv9 | | | Conv8 | 8, 96 | | |
| Conv2 | Lab,Conv5-6 | 64, 226 | Conv3,6,9 | 8, 320 | Conv3,6 | 32, 160 |
| Conv10 | Conv2 | 64, 3 | Conv2 | 8, 96 | Conv2 | 32, 64 |
| Conv3 | Img,Conv10 | 64, 3 | | | | |
| Conv11 | | | Conv10 | 8, 64 | Conv10 | 32, 32 |
| Drop0 | | | Conv11 | | Conv11 | - |
| Sensor Branch |
| Conv12 | | | Drop0 | 8, 3 | | |
| FC1 | | | Conv12 | 1, 512 | Drop0 | 1, 256 |
| FC2 | | | FC1 | 1, 7 | FC1 | 1, 2 |
| Soft | | | FC2 | 1, 7 | FC2 | 1, 2 |
| Medium Branch |
| Conv13 | | | Drop0 | 8, 3 | | |
| FC3 | | | Conv13 | 1, 512 | | |
| FC4 | | | FC3 | 1, 7 | | |
| Soft | | | FC4 | 1, 7 | | |
+
+# 3.2. GODisc: Discriminator and GAN Losses
+
+Next, the discriminator GODisc ensures that $\hat{\mathbf{I}}$ is visually appealing. The GODisc network includes 10 convolution layers and 2 fully connected layers, shown in Tab. 1. It outputs the Softmax probability for the two classes, real spoof images vs. synthesized spoof images.
+
+The training of the GAN follows an alternating training procedure. During the training of $\mathrm{CNN}_{\text{Disc}}(\cdot)$ , we fix the parameters of $\mathrm{CNN}_{\text{Gen}}(\cdot)$ and use the following loss:
+
+$$
+\begin{array}{l} J _ {\text {D i s c} _ {\text {t r a i n}}} = - \mathbb {E} _ {\mathbf {I} \in \mathcal {R}} \log \left(\mathrm {C N N} _ {\text {D i s c}} (\mathbf {I})\right) \\ - \mathbb {E} _ {\mathbf {I} \in \mathcal {L}} \log (\| 1 - \mathrm {C N N} _ {\text {D i s c}} (\mathrm {C N N} _ {\mathrm {G e n}} (\mathbf {T})) \|), \tag {3} \\ \end{array}
+$$
+
+where $\mathcal{R}$ represents the real spoof images and $\mathcal{L}$ the real live images. During the training of GOGen, we fix the parameters of $\mathrm{CNN}_{\text{Disc}}()$ and use the following loss:
+
+$$
+J _ {\text {D i s c} _ {\text {t e s t}}} = - \mathbb {E} _ {\mathbf {I} \in \mathcal {L}} \log (\| \operatorname {C N N} _ {\text {D i s c}} (\operatorname {C N N} _ {\text {G e n}} (\mathbf {T})) \|). \tag {4}
+$$
+
+# 3.3. GOLab: Sensor and Medium Identification
+
+GOLab is designed to classify noises from certain sensors and spoof mediums. It serves as the discriminator to guide GOGen to generate accurate spoof images as well as the final module to produce scores for GOAS. Shown in Tab. 1, the input for GOLab is an RGB image with the size of $64 \times 64$ . The input images can be either the original images or the GOGen synthesized images. It uses 11 convolution layers and 3 max pooling layers to extract features, and
+
+
+Figure 4. Example live images of all 24 objects and 7 backgrounds from the collected GOSet dataset.
+
+then two fully connected layers to generate $n_c$ - and $n_m$ -dim vectors for sensor and medium classification. Each comes from an independent stack of fully connected layers.
+
+We use the cross entropy loss to supervise the training of GOLab. Given the input image $\mathbf{I}$ , the ground truth one-hot label $\mathbf{a}_m$ and the softmax normalized prediction $\hat{\mathbf{a}}_m$ for the spoof medium; and $\mathbf{a}_c$ , $\hat{\mathbf{a}}_c$ for the sensor, the loss functions are defined as:
+
+$$
+S _ {c} = - \sum_ {i} \mathbf {a} _ {c} ^ {i} \log \left(\hat {\mathbf {a}} _ {c} ^ {i}\right), \quad S _ {m} = - \sum_ {i} \mathbf {a} _ {m} ^ {i} \log \left(\hat {\mathbf {a}} _ {m} ^ {i}\right), \tag {5}
+$$
+
+where $i$ is the class index of the sensors and spoof mediums. Then, the final loss to supervise GOLab is:
+
+$$
+J _ {\mathrm {L a b} _ {\text {t r a i n}}} = S _ {c} (\mathbf {I}) + S _ {m} (\mathbf {I}), \tag {6}
+$$
+
+The GOLab network provides supervision for the generator and guides it via backpropagation from the sensor and spoof medium loss functions. Specifically, we define a normalized loss for updating the generator network:
+
+$$
+J _ {\mathrm {L a b} _ {\text {t e s t}}} = \frac {S _ {m} \left(\mathrm {C N N} _ {\mathrm {G e n}} (\mathbf {T})\right)}{1 + S _ {m} (\mathbf {I})} + \frac {S _ {c} \left(\mathrm {C N N} _ {\mathrm {G e n}} (\mathbf {T})\right)}{1 + S _ {c} (\mathbf {I})}, \tag {7}
+$$
+
+where the numerator shows the classification losses, i.e., $S_{m}()$ and $S_{c}()$ , for the synthesized images, and $S_{m}(\mathbf{I})$ and $S_{c}(\mathbf{I})$ are the loss of the live images during the updating of GOLab. By using the normalized loss, GOGen will not be penalized when GOLab has high classification error on the real data, i.e., a large denominator leads to a small quotient regardless of the numerator.
+
+# 3.4. GOPad: Binary Classification
+
+To show the benefits of the proposed method, we follow the baseline algorithm [26], specifically the pseudo-depth map branch, to implement a binary classification of GOAS, termed as GOPad. To demonstrate strong generalization ability later, we limit the size of the GOPad algorithm by dramatically reducing the number of convolution kernels in each layer to approximately one-third compared to the baseline algorithm. The GOPad network takes an RGB image as input, and produces a 0-1 map $\mathrm{CNN}_{Pad}(\mathbf{I})\in \mathbb{R}^{H\times W}$ in the final layer, where it is 0 for live and 1 for spoof. The network activates where the spoof noise is detected. During the
+
+training process, this map allows the CNN model to make live/spoof labeling at the pixel level. When converged, the 0-1 map should be uniformly 0 or 1, representing a confident classification of live vs. spoof. Formally, the loss function is defined as:
+
+$$
+J _ {\mathrm {P a d}} = \left\| \operatorname {C N N} _ {\mathrm {P a d}} (\mathbf {I}) - \mathbf {G} \right\| _ {2} ^ {2}, \tag {8}
+$$
+
+where $\mathbf{G}$ is the ground truth 0-1 map.
+
+# 3.5. Implementation Details
+
+We show all of the three proposed CNN networks in Fig. 2. We use an alternating training scheme for updating the networks during the training. We train the GOGen while the GOLab and GODisc are fixed. In the next step, we keep the GOGen fixed and train the other two networks. We alternate between these two steps until all networks converge. To train the GOGen and GOLab, we use batch sizes of 40. Patch sizes of $64 \times 64$ are used for the GOGen, GODisc, and GOLab. Patch sizes of $256 \times 256$ are used for the GOPad, following the setting of previous works. The final loss for training the generator of GOGen can be summarized as:
+
+$$
+J = J _ {\text {D i s c} _ {\text {t e s t}}} + \lambda_ {0} J _ {\text {V i s}} + \lambda_ {1} J _ {\text {L a b} _ {\text {t e s t}}}, \tag {9}
+$$
+
+where $\lambda_0$ and $\lambda_{1}$ are weighting factors. And the final loss for training GODisc and GOLab can be denoted as:
+
+$$
+J = J _ {\text {D i s c} _ {\text {t r a i n}}} + \lambda_ {1} J _ {\text {L a b} _ {\text {t r a i n}}}, \tag {10}
+$$
+
+and $\lambda_0$ and $\lambda_{1}$ were set to 0.5 and 0.1, for all experiments.
+
+# 4. Generic Object Dataset for Anti-Spoofing
+
+To enable the study of GOAS, we consider a total of 24 objects, 7 backgrounds, 7 commonly used camera sensors, and 7 spoofing mediums (including live as a blank medium) while collecting the Generic Object Dataset (GOSet). If fully enumerated, this would require a prohibitory collection of 8,232 videos. Due to constraints, we selectively collect 2,849 videos to cover most combinations of backgrounds, camera sensors and spoof mediums.
+
+The objects we collect are: squeezeer, mouse, multi-pen, sunglasses, water bottle, keyboard, pencils, calculator, stapler, flash drive, cord, hard drive disk, keys, shoe (red), shoe (white), shoe (black), Airpods, remote, PS4 (color),
+
+Table 2. Comparison of modality specific anti-spoofing algorithms and GOLab. All methods are trained and tested on GOSet.
+
+| Algorithm | HTER | EER | AUC |
| Chingovska LBP [13] | 16.6 | 16.9 | 91.6 |
| Boulkenafet Texture [7] | 18.2 | 19.5 | 89.1 |
| Boulkenafet SURF [8] | 34.0 | 35.1 | 67.6 |
| Atoum et al. [2] | 13.4 | 13.5 | 91.2 |
| GOPad (Ours) | 20.6 | 22.9 | 87.6 |
| GOLab (Ours) | 6.3 | 6.7 | 97.5 |
+
+PS4 (black), Kleenex, blow torch, lighter, and energy bar, shown in Fig. 4. Generic objects are more easily available for data collection and are unencumbered by privacy or security concerns, as opposed to human biometrics. The objects are placed in front of 7 backgrounds, which are desk wood, carpet speckled, carpet flowered, floor wood, bed sheet (white), blanket (blue), and desk (black). The spoof mediums include 3 common computer screens, (Acer Desktop, Dell Desktop, and Acer Laptop), and 3 mobile device screens, (iPad Pro, Samsung Tab, and Google Pixel), which are of varying size and display quality.
+
+The videos were collected using 7 commercial devices, (Moto X, Samsung S8, iPad Pro, iPod Touch, Google Pixel, Logitech Webcam, and Canon EOS Rebel). Except for videos from the iPod Touch at 720P resolution, all videos are captured at 1,080P resolution, with average length of 12.5 seconds. We first capture the live videos of all objects while varying the distance and viewing angle, and then collect the spoof videos via directly viewing a spoof medium while the live video is displayed on it. During the collection of spoof videos, care is taken to prevent unnecessary spoofing artifacts (light reflection, screen bezels), as well as data bias (differences in distance, brightness, and orientation).
+
+To leverage the GOSet, we split it into a train and test set. The train set is composed of the first 13 objects and corresponds to the first 2 backgrounds. The test set is composed of the rest of the objects and backgrounds. This split prevents overlap and presents a real-world testing scenario.
+
+# 5. Experiments
+
+In all experiments, we use the training/testing partition mention above to train and evaluate the proposed method. For evaluation metrics, we report Area Under the Curve (AUC), Half Total Error Rate (HTER) [4], and Equal Error Rate (EER) [41]. Performance is video-based, which is computed via majority voting of patch scores. For each video, we use all frames; and for each frame, we randomly select 20 patches.
+
+# 5.1. Generic Object Anti-Spoofing
+
+Baseline Performance: To demonstrate the superiority of our proposed method, we compare our method with our
+
+Table 3. Confusion matrices for camera sensor and spoof medium identification. The identification accuracy for each sensor/medium and averages are reported using majority voting of 20 patches from each frame in a video.
+
+| Sensor | (1) | (2) | (3) | (4) | (5) | (6) | (7) | Acc |
| (1) Moto X | 16 | 0 | 7 | 5 | 18 | 0 | 0 | 34.8 |
| (2) Logitech | 2 | 320 | 0 | 0 | 0 | 0 | 3 | 98.5 |
| (3) Samsung S8 | 1 | 2 | 353 | 1 | 0 | 7 | 17 | 92.7 |
| (4) iPad Pro | 6 | 0 | 42 | 220 | 0 | 3 | 0 | 81.2 |
| (5) Canon EOS | 55 | 0 | 7 | 32 | 68 | 0 | 3 | 41.2 |
| (6) iPod Touch | 0 | 0 | 0 | 0 | 0 | 270 | 0 | 100.0 |
| (7) Google Pixel | 1 | 1 | 0 | 0 | 0 | 1 | 259 | 98.9 |
| Overall | | | | | | | | 87.6 |
+
+(a)
+
+| Medium | (1) | (2) | (3) | (4) | (5) | (6) | (7) | Acc |
| (1) Live | 97 | 7 | 0 | 0 | 0 | 1 | 0 | 92.4 |
| (2) Acer Desktop | 50 | 116 | 67 | 36 | 9 | 45 | 3 | 35.6 |
| (3) Dell Desktop | 31 | 52 | 83 | 59 | 20 | 77 | 8 | 25.2 |
| (4) Acer Laptop | 58 | 53 | 4 | 141 | 7 | 3 | 5 | 52.0 |
| (5) iPad Pro | 43 | 30 | 31 | 29 | 107 | 30 | 0 | 39.6 |
| (6) Samsung Tab | 4 | 0 | 0 | 79 | 5 | 115 | 0 | 56.7 |
| (7) Google Pixel | 7 | 54 | 5 | 12 | 34 | 20 | 84 | 38.9 |
| Overall | | | | | | | | 43.2 |
+
+(b)
+
+implementation of the recent methods [2, 7, 8, 13] on the GOSet test set. These recent methods are modality specific algorithms that perform anti-spoofing based on color and texture information. From Tab. 2, it is shown that GOLab outperforms the other anti-spoofing methods by a large margin for the GOAS task.
+
+Benefits of GOLab: Tab. 3 (a) and (b) show the confusion matrices of GOLab on sensor and spoof medium classification. The classification performance for sensors is noticeably better than that of mediums, with the overall accuracy of $87.6\%$ vs. $43.2\%$ . Although Fig. 3 indicates the noises among medium have distinct patterns, it is worth noting that the medium noises can be "hidden" in the image by the sensor noises, which causes the lower accuracy. The accuracy for detecting live videos is $92.4\%$ which exhibits its promising ability for the anti-spoofing task.
+
+We compute the ROC curves of GoLab on GOSet testing data. Fig. 5 (a) and (b) show the ROC curves of different objects and different backgrounds respectively. We can see the AUCs for different objects are similar. But AUCs for different backgrounds have larger variation, which denotes that the GOLab is more sensitive to surfaces with rich texture, e.g., Carpet Flowered in (b). By comparing the ROCs for different sensors in Fig. 5 (c), we observe that the "Google Pixel" and "iPod Touch" are the hardest sensors to detect, because they are the highest and lowest quality, respectively. This causes images from the iPod to appear more spoof-like, and images from the Pixel less so, while their respective noise patterns are most distinguishable in Tab. 3. Similarly, the "Acer Laptop" is the most challenging spoof medium for anti-spoofing, shown in Fig. 5 (d).
+
+
+Figure 5. ROC curves for the anti-spoofing performance of the GOLab algorithm on the GOSet test set. (a) Performance by objects, (b) Performance by backgrounds, (c) Performance by sensors, and (d) Performance by spoof mediums.
+
+
+
+
+
+
+
+Table 4. Performance of GOLab when trained on varying amounts of live, real spoof, and synthetic spoof data. Live data was randomly selected. For each live video, 1 or 2 (out of 6 possible) spoof videos were then selected. We randomly select from the generated data to increase the training data by $10\%$ .
+
+| Data | GOLab | GOLab + GOGen |
| Live, Spoof | AUC | HTER | EER | AUC | HTER | EER |
| 1/4, 1/6 | 79.7 | 26.8 | 27.7 | 79.7 | 27.2 | 27.6 |
| 1/4, 1/3 | 85.1 | 24.0 | 25.7 | 86.5 | 22.3 | 22.8 |
| 1/2, 1/6 | 81.9 | 24.7 | 26.7 | 86.0 | 22.2 | 22.8 |
| 1/2, 1/3 | 87.6 | 19.6 | 21.0 | 92.5 | 14.9 | 16.2 |
+
+Benefits of GOGen: GOGen generates synthetic spoof images and performs data augmentation to improve the training of GOLab. It can synthesize spoof images which may be under-represented or missing in the training data. To present the advantage of GOGen, we train the GOLab with different compositions of training data. The data compositions and corresponding results are shown in Tab. 4. Comparing the relative performance, we see that more spoof data is more important than more live data because additional spoof data contains sensor and medium noise, whereas live data only has sensor noise. Comparing the performance of the GOLab without GOGen to those of the GOLab with GOGen, the inclusion of synthetic data during training has significant benefit for the anti-spoofing performance of GOLab. As additional sensors/mediums are introduced, GOGen can reduce the cost of future data collection by appropriately generating images for the new sensor/medium combinations.
+
+# 5.2. Face Anti-Spoofing Performance
+
+We also evaluate the generalization performance of the proposed method on face anti-spoofing tasks. We present cross-database testing between two face anti-spoofing databases, SiW and OULU-NPU. The testing on OULUNPU follows the Protocol 1 and the testing on SiW is executed on all test data. The evaluation and comparison include two parts: firstly, we train the previous methods on either OULU-NPU or SiW, and test on the other; secondly, we train the previous methods and ours on GOSet, and test on the two face databases. The results are shown in Tab. 5.
+
+Table 5. Performance of GOPad and GOLab algorithms along with SOTA face anti-spoofing algorithms on face anti-spoofing datasets. The algorithms trained on face data are cross-tested between OULU and MSU-SiW. The rest are trained on GOSet. [Key: Best, Second best]
+
+ | | OULU P1 | MSU SiW |
| Algorithm | Train | HTER | EER | HTER | EER |
| Chingovska LBP [13] | Face | 38.5 | 44.2 | 30.5 | 31.7 |
| Boulkenafet Texture [7] | Face | 40.8 | 43.3 | 28.6 | 29.9 |
| Boulkenafet SURF [8] | Face | 38.2 | 40.8 | 36.0 | 36.7 |
| Atoum et al. [2] | Face | 11.8 | 13.3 | 11.0 | 11.2 |
| Chingovska LBP [13] | GOSet | 44.1 | 46.1 | 42.2 | 42.4 |
| Boulkenafet Texture [7] | GOSet | 34.6 | 36.7 | 44.1 | 44.9 |
| Boulkenafet SURF [8] | GOSet | 45.3 | 45.8 | 47.7 | 48.6 |
| Atoum et al. [2] | GOSet | 32.9 | 35.0 | 8.2 | 8.8 |
| GOPad (Ours) | GOSet | 33.4 | 34.2 | 9.5 | 10.2 |
| GOLab (Ours) | GOSet | 41.2 | 42.5 | 15.6 | 16.0 |
+
+GOPad is structurally very similar to the Atoum et al. algorithm [2], however, [2] uses more than $10\mathrm{X}$ the number of network parameters. The similar performance between these two methods implies that the leaner and faster GOPad was able to learn strong discriminative ability, regardless of its smaller size. The SOTA performance of both Atoum et al. and GOPad on SiW when trained on GOSet demonstrates the generalization ability from generic objects to face data. The lack of such performance when tested on OULU shows that the generalization of current methods to unseen sensors/medium is poor, providing future incentive for GOGen to synthesize data that represents these devices.
+
+We train Atoum et al. [2] using MSU SiW face dataset and test on the GOSet dataset, resulting in an AUC of 62.3, HTER of 37.0, and EER of 41.4. Comparing to Tab. 4, Atoum et al. [2] has the lowest performance, even worse than GOLab trained with the smallest amount of data. This shows that models trained only on faces are domain specific and can not model or detect the true noise in spoof images.
+
+# 5.3. Ablation Study
+
+Noise representation: Fig. 3 shows the learned noise prototypes for the sensors and mediums. In the last row of Fig. 3, the distinctive high frequency information is evident
+
+Table 6. Anti-spoofing performance of GOPad and GOLab on the GOSet dataset with varying amounts of training data.
+
+| Data | Golab | GoPad |
| (Live, Spoof) | AUC | HTER | EER | AUC | HTER | EER |
| (1/4, 1/6) | 79.7 | 26.8 | 27.7 | 84.4 | 23.8 | 24.8 |
| (1/4, 4/6) | 86.0 | 21.6 | 23.8 | 86.2 | 22.4 | 22.9 |
| (All, 4/6) | 94.6 | 12.5 | 13.9 | 86.3 | 22.4 | 23.8 |
| (All, All) | 97.5 | 6.3 | 6.7 | 87.6 | 20.6 | 22.9 |
+
+
+Figure 6. Illustration of GOLab-based anti-spoofing, with 2 success (left) and 2 failure (right) cases for live (top row) and real spoof (bottom row) using 20 patches per image. The color bar shows the output range of the network: 1 is spoof and 0 is live. The score at the top left corner is the average of all patches.
+
+in the FFT of the spoof medium prototypes. In contrast, the FFT for the sensor prototypes are similar. To evaluate the advantage of modeling noise prototypes, we train the GOGen network without noise prototypes by constructing $\mathbf{T} = [\mathbf{I},\mathbf{M}_c',\mathbf{M}_m']$ . $\mathbf{M}_c'$ and $\mathbf{M}_m'$ are of the same size of as $\mathbf{M}_c$ and $\mathbf{M}_m$ , and with all elements being zeros except the prototypes of selected spoof and medium being all 1. The Rank-1 accuracy for sensor and spoof medium identification of the related GOLab on the synthesized data is $11.0\%$ and $19.7\%$ , respectively. However, by learning noise prototypes, as shown in Fig. 2, the accuracy is $56.0\%$ and $26.3\%$ .
+
+Binary or N-ary Classification: We train the GOPad on the GOSet dataset, and we find that GOPad performs better than GOLab when only a small amount of data is utilized for training. However, GOLab is better than GOPad when using a larger training set. The training data to be used is chosen by randomly sampling of the GOSet training set. We attribute this improvement to the auxiliary information (classification between multiple sensors and mediums) that is learned by GOLab for the sensor and spoof medium identification. The detailed comparison is shown in Tab. 6.
+
+GOLab Loss Functions: To demonstrate the benefit of both sensor and medium classification in the GOLab algorithm, experiments were run using each independently. Using only $S_{c}(\mathbf{I})$ in Eq. 6, we obtain a Rank-1 accuracy of $84.7\%$ . Similarly using only $S_{m}(\mathbf{I})$ , we obtain an accuracy of $42.0\%$ with anti-spoofing performance AUC of 85.9, HTER of 22.1 and EER of 22.8. By fusing tasks, we improve accuracy for sensor and medium to $87.6\%$ and $43.2\%$ , respectively. This also improves anti-spoofing performance to AUC of 97.5, HTER of 6.3, and EER of 6.7.
+
+
+Figure 7. Visual comparison of live (first row), synthetic spoof (second row), and real spoof (third row) images. Columns are whole image, image patch, and the FFT power spectrum of the image patch. Each synthetic image was generated from a live image. The corresponding ground truth spoof images (third row) are collected with the target sensor/spoof medium combination.
+
+# 5.4. Visualization and Qualitative Analysis
+
+Fig. 6 shows success and failure cases of the GOLab model on the GOSet dataset. This suggests that the smooth, reflective background is classified disproportionately as live and the textured carpet/cloth backgrounds are inversely classified as spoof. Hence, it is crucial that GOAS and biometric anti-spoofing be possible over the entire image, because no singular patch in the image can provide an accurate and confident score for the entire image.
+
+We show some examples of the generated synthetic spoof images in Fig. 7. We can compare the visual quality with their corresponding live and real spoof images. The GOGen network is trained to change the high frequency information in the images which are related to the sensor and spoof medium noises. GOGen is successfully able to alter the high frequency information in these patches to be more similar to the associated spoof than the input live.
+
+# 6. Conclusion
+
+We present our proposed generic object anti-spoofing method which consists of multiple CNNs designed for modeling the sensor and spoof medium noises. It generates synthetic images which are helpful for increasing anti-spoofing performance. We show that by modeling the spoof noise properly, the anti-spoofing methods are domain independent and can be utilized in other modalities. We propose the first generic object anti-spoofing dataset which contains live and spoof videos from 7 sensors and 7 spoof mediums.
+
+Acknowledgment This research is based upon work supported by the Office of the Director of National Intelligence (ODNI), Intelligence Advanced Research Projects Activity (IARPA), via IARPA R&D Contract No. 2017-17020200004. The views and conclusions contained herein are those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the ODNI, IARPA, or the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints for Governmental purposes notwithstanding any copyright annotation thereon.
+
+# References
+
+[1] A. Abdelhamed, S. Lin, and M. S. Brown. A high-quality denoising dataset for smartphone cameras. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 2
+[2] Y. Atoum, Y. Liu, A. Jourabloo, and X. Liu. Face anti-spoofing using patch and depth-based CNNs. In International Joint Conference on Biometrics (IJCB), 2017. 1, 2, 6, 7
+[3] W. Bao, H. Li, N. Li, and W. Jiang. A liveness detection method for face recognition based on optical flow field. In International Conference on Image Analysis and Signal Processing, 2009. 2
+[4] S. Bengio and J. Mariéthoz. A statistical significance test for person authentication. In Odyssey: The Speaker and Language Recognition Workshop, 2004. 6
+[5] Z. Boulkenafet, J. Komulainen, Z. Akhtar, A. Benlamoudi, D. Samai, S. E. Bekhouche, A. Ouafi, F. Dornaika, A. Taleb-Ahmed, L. Qin, F. Peng, L. B. Zhang, M. Long, S. Bhilare, V. Kanhangad, A. Costa-Pazo, E. Vazquez-Fernandez, D. Perez-Cabo, J. J. Moreira-Perez, D. Gonzalez-Jimenez, A. Mohammadi, S. Bhattacharjee, S. Marcel, S. Volkova, Y. Tang, N. Abe, L. Li, X. Feng, Z. Xia, X. Jiang, S. Liu, R. Shao, P. C. Yuen, W. R. Almeida, F. Andalo, R. Padilha, G. Bertocco, W. Dias, J. Wainer, R. Torres, A. Rocha, M. A. Angeloni, G. Folego, A. Godoy, and A. Hadid. A competition on generalized software-based face presentation attack detection in mobile scenarios. In IEEE International Joint Conference on Biometrics (IJCB), 2017. 2
+[6] Z. Boulkenafet, J. Komulainen, and A. Hadid. Face anti-spoofing based on color texture analysis. In IEEE International Conference on Image Processing (ICIP), 2015. 1, 2
+[7] Z. Boulkenafet, J. Komulainen, and A. Hadid. Face spoofing detection using colour texture analysis. IEEE Transactions on Information Forensics and Security (TIFS), 2016. 6, 7
+[8] Z. Boulkenafet, J. Komulainen, and A. Hadid. On the generalization of color texture-based face anti-spoofing. Image Vision Computing, 2018. 1, 2, 6, 7
+[9] C. Chen and M. C. Stamm. Camera model identification framework using an ensemble of demosaicing features. In IEEE International Workshop on Information Forensics and Security (WIFS), 2015. 1, 2
+[10] C. Chen, Z. Xiong, X. Liu, and F. Wu. Camera trace erasing. In IEEE Computer Vision and Pattern Recognition (CVPR), 2020. 1
+[11] Y. Chen, Y. Tai, X. Liu, C. Shen, and J. Yang. FSRNet: End-to-end learning face super-resolution with facial priors. In IEEE Computer Vision and Pattern Recognition (CVPR), 2018. 3
+[12] G. Chetty and M. Wagner. Audio-visual multimodal fusion for biometric person authentication and liveness verification. In NICTA-HCSNet Multimodal User Interaction Workshop, 2006. 2
+[13] I. Chingovska, A. Anjos, and S. Marcel. On the effectiveness of local binary patterns in face anti-spoofing. In International Conference of Biometrics Special Interest Group (BIOSIG), 2012. 6, 7
+
+[14] Y. Choi, M. Choi, M. Kim, J. Ha, S. Kim, and J. Choo. StarGAN: Unified generative adversarial networks for multidomain image-to-image translation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 2
+[15] T. Chugh, K. Cao, and A. K. Jain. Fingerprint spoof buster: Use of minutiae-centered patches. IEEE Transactions on Information Forensics and Security (TIFS), 2018. 2
+[16] A. d. S. Pinto, H. Pedrini, W. Schwartz, and A. Rocha. Video-based face spoofing detection through visual rhythm analysis. In Conference on Graphics, Patterns and Images (SIBGRAPI), 2012. 2
+[17] C. Dong, C. C. Loy, K. He, and X. Tang. Learning a deep convolutional network for image super-resolution. In European Conference on Computer Vision (ECCV), 2014. 3
+[18] L. Feng, L. Po, Y. Li, X. Xu, F. Yuan, T. C.-H. Cheung, and K. Cheung. Integration of image quality and motion cues for face anti-spoofing: A neural network approach. Journal of Visual Communication and Image Representation, 2016. 2
+[19] T. Filler, J. Fridrich, and M. Goljan. Using sensor pattern noise for camera model identification. In IEEE International Conference on Image Processing (ICIP), 2008. 2
+[20] T. Gloe and R. Böhme. The Dresden image database for benchmarking digital image forensics. In ACM Symposium on Applied Computing, 2010. 2
+[21] M. Goljan, J. Fridrich, and T. Filler. Large scale test of sensor fingerprint camera identification. In SPIE Conference on Electronic Imaging, Security and Forensics of Multimedia Contents, 2009. 2
+[22] D. Güera, Y. Wang, L. Bondi, P. Bestagini, S. Tubaro, and E. J. Delp. A counter-forensic method for CNN-based camera model identification. In IEEE conference on computer vision and pattern recognition workshops (CVPRW), 2017.
+[23] A. Jourabloo, Y. Liu, and X. Liu. Face de-spoofing: Anti-spoofing via noise modeling. In European Conference on Computer Vision (ECCV), 2018. 1, 2
+[24] W. Lai, J. Huang, N. Ahuja, and M. Yang. Fast and accurate image super-resolution with deep Laplacian pyramid networks. IEEE Transactions on Pattern Analysis and Machine Intelligence (PAMI), 2018. 3
+[25] S. Liu, P. C. Yuen, S. Zhang, and G. Zhao. 3D mask face antispoofing with remote photoplethysmography. In European Conference on Computer Vision (ECCV), 2016. 2
+[26] Y. Liu, A. Jourabloo, and X. Liu. Learning deep models for face anti-spoofing: Binary or auxiliary supervision. In IEEE Computer Vision and Pattern Recognition (CVPR), 2018. 1, 2, 5
+[27] Y. Liu, J. Stehouwer, A. Jourabloo, and X. Liu. Deep tree learning for zero-shot face anti-spoofing. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 1
+[28] O. Lucena, A. Junior, V. Moia, R. Souza, E. Valle, and R. de Alencar Lotufo. Transfer learning using convolutional neural networks for face anti-spoofing. In International Conference Image Analysis and Recognition, 2017. 2
+[29] M. Mirza and S. Osindero. Conditional generative adversarial nets. CoRR, 2014. 3
+
+[30] G. Pan, L. Sun, Z. Wu, and S. Lao. Eyeblink-based anti-spoofing in face recognition from a generic webcam. In IEEE International Conference on Computer Vision (ICCV), 2007. 1, 2
+[31] K. Patel, H. Han, and A. K. Jain. Secure face unlock: Proof detection on smartphones. IEEE Transactions on Information Forensics and Security (TIFS), 2016. 1
+[32] K. Patel, H. Han, A. K. Jain, and G. Ott. Live face video vs. spoof face video: Use of moiré patterns to detect replay video attacks. In International Conference on Biometrics (ICB), 2015. 1
+[33] D. Perez-Cabo, D. Jimenez-Cabello, A. Costa-Pazo, and R. J. Lopez-Sastre. Deep anomaly detection for generalized face anti-spoofing. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 1
+[34] P. V. Reddy, A. Kumar, S. M. K. Rahman, and T. S. Mundra. A new method for fingerprint anti-spoofing using pulse oxiometry. In IEEE International Conference on Biometrics: Theory, Applications, and Systems (BTAS), 2007. 2
+[35] Q. Song, R. Xiong, D. Liu, Z. Xiong, F. Wu, and W. Gao. Fast image super-resolution via local adaptive gradient field sharpening transform. IEEE Transactions on Image Processing, 2018. 3
+[36] Y. Tai, J. Yang, and X. Liu. Image super-resolution via deep recursive residual network. In IEEE Computer Vision and Pattern Recognition (CVPR), 2017. 3
+[37] Y. Tai, J. Yang, X. Liu, and C. Xu. MemNet: A persistent memory network for image restoration. In International Conference on Computer Vision (ICCV), 2017. 3
+[38] T. H. Thai, R. Cogranne, and F. Retraint. Camera model identification based on the heteroscedastic noise model. IEEE Transactions on Image Processing, 2014. 2
+[39] T. H. Thai, F. Retraint, and R. Cogranne. Camera model identification based on the generalized noise model in natural images. Digital Signal Processing, 2016. 1, 2
+[40] L. Tran, X. Yin, and X. Liu. Disentangled representation learning GAN for pose-invariant face recognition. In Proceedings of IEEE Computer Vision and Pattern Recognition, 2017. 3
+[41] K. P. Tripathi. A comparative study of biometric technologies with reference to human interface. International Journal of Computer Applications, 2011. 6
+[42] X. Yang, W. Luo, L. Bao, Y. Gao, D. Gong, S. Zheng, Z. Li, and W. Liu. Face anti-spoofing: Model matters, so does data. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 2
+[43] X. Yin, X. Yu, K. Sohn, X. Liu, and M. Chandraker. Feature transfer learning for face recognition with under-represented data. In IEEE Computer Vision and Pattern Recognition (CVPR), 2019. 2
+[44] J. Zhu, T. Park, P. Isola, and A. A. Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In IEEE International Conference on Computer Vision (ICCV), 2017. 3
\ No newline at end of file
diff --git a/noisemodelingsynthesisandclassificationforgenericobjectantispoofing/images.zip b/noisemodelingsynthesisandclassificationforgenericobjectantispoofing/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..08a20226c8b46429fd6d788101420858786cc201
--- /dev/null
+++ b/noisemodelingsynthesisandclassificationforgenericobjectantispoofing/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0e325734f47932d5a8fc281c853ef60d3b8af1a4734457a7d17505268aee61f7
+size 670508
diff --git a/noisemodelingsynthesisandclassificationforgenericobjectantispoofing/layout.json b/noisemodelingsynthesisandclassificationforgenericobjectantispoofing/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..1a0a269b590a5965d8aefc202a035b2a26451f22
--- /dev/null
+++ b/noisemodelingsynthesisandclassificationforgenericobjectantispoofing/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b77f8b1f74cebd5745793d6ce4fc20252b45f90a187848f30a59f4f0a2e9a867
+size 364395
diff --git a/noiserobustgenerativeadversarialnetworks/002ec28f-a405-403f-b623-9361b26601e9_content_list.json b/noiserobustgenerativeadversarialnetworks/002ec28f-a405-403f-b623-9361b26601e9_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..c977ab98444906bbf8a53e60fb338f5ea1375b81
--- /dev/null
+++ b/noiserobustgenerativeadversarialnetworks/002ec28f-a405-403f-b623-9361b26601e9_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8dacb3754c2968c3c25f89433b3249bee1051a7695033c63a2b9031d8321d155
+size 92122
diff --git a/noiserobustgenerativeadversarialnetworks/002ec28f-a405-403f-b623-9361b26601e9_model.json b/noiserobustgenerativeadversarialnetworks/002ec28f-a405-403f-b623-9361b26601e9_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..dc7ec2885f08c2e8c13beb76bf7ceab6cbc08c85
--- /dev/null
+++ b/noiserobustgenerativeadversarialnetworks/002ec28f-a405-403f-b623-9361b26601e9_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:22aa0557c3e82160c45fb71b37921eaaf6a1ac3e77601af82344531a5211aacb
+size 121117
diff --git a/noiserobustgenerativeadversarialnetworks/002ec28f-a405-403f-b623-9361b26601e9_origin.pdf b/noiserobustgenerativeadversarialnetworks/002ec28f-a405-403f-b623-9361b26601e9_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..f5f1f6003a17cf4a7a4e21ca81c1b5b9aa8e4bde
--- /dev/null
+++ b/noiserobustgenerativeadversarialnetworks/002ec28f-a405-403f-b623-9361b26601e9_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:275f0647e9b4110263b8440106ddc2fd76b1f795d25c3a3cc1cfe2934052de31
+size 1119500
diff --git a/noiserobustgenerativeadversarialnetworks/full.md b/noiserobustgenerativeadversarialnetworks/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..08fdc76952210fccd65c49bfd81a5809c622b83f
--- /dev/null
+++ b/noiserobustgenerativeadversarialnetworks/full.md
@@ -0,0 +1,361 @@
+# Noise Robust Generative Adversarial Networks
+
+Takuhiro Kaneko $^{1}$ Tatsuya Harada $^{1,2}$
+
+$^{1}$ The University of Tokyo $^{2}$ RIKEN
+
+
+(a) Training images
+(Gaussian noise)
+Figure 1. Examples of noise robust image generation. Recent GANs have shown promising results for reproducing training images. However, even when training images are noisy (a)(d), they attempt to reproduce the training images faithfully, as shown in (b)(e). To remedy this, we propose noise robust GANs (NR-GANs), which can learn to generate clean images (c)(f), even when training images are noisy (a)(d). Our NR-GANs are unique in that they solve this problem without full knowledge of the noise (e.g., the noise distribution type, noise amount, or signal-noise relationship). Indeed, in (c) and (f), although the same models (in particular, SI-NR-GAN-II, which is a variant of NR-GANs) are used for different noises (a)(d), they succeed in learning clean image generators adaptively through training.
+
+
+(b) GAN (baseline)
+(Trained with (a))
+
+
+(c) NR-GAN (ours)
+(Trained with (a))
+
+
+(d) Training images
+(Brown Gaussian noise)
+
+
+(e) GAN (baseline)
+(Trained with (d))
+
+
+(f) NR-GAN (ours)
+(Trained with (d))
+
+# Abstract
+
+Generative adversarial networks (GANs) are neural networks that learn data distributions through adversarial training. In intensive studies, recent GANs have shown promising results for reproducing training images. However, in spite of noise, they reproduce images with fidelity. As an alternative, we propose a novel family of GANs called noise robust GANs (NR-GANs), which can learn a clean image generator even when training images are noisy. In particular, NR-GANs can solve this problem without having complete noise information (e.g., the noise distribution type, noise amount, or signal-noise relationship). To achieve this, we introduce a noise generator and train it along with a clean image generator. However, without any constraints, there is no incentive to generate an image and noise separately. Therefore, we propose distribution and transformation constraints that encourage the noise generator to capture only the noise-specific components. In particular, considering such constraints under different assumptions, we devise two variants of NR-GANs for signal-independent noise and three variants of NR-GANs for signal-dependent noise. On three benchmark datasets, we demonstrate the effectiveness of NR-GANs in noise robust image generation. Furthermore, we show the applicability of NR-GANs in image denoising. Our code is available at https://github.com/takuhirok/NR-GAN/.
+
+# 1. Introduction
+
+In computer vision and machine learning, generative models have been actively studied and used to generate or reproduce an image that is indistinguishable from a real image. Generative adversarial networks (GANs) [21], which learn data distributions through adversarial training, have garnered special attention owing to their ability to produce high-quality images. In particular, with recent advancements [2, 54, 46, 23, 40, 57, 58, 36, 76], the latest GANs (e.g., BigGAN [6] and StyleGAN [37]) have succeeded in generating images indistinguishable for humans.
+
+However, a persistent issue is that recent high-capacity GANs could replicate images faithfully even though the training images were noisy. Indeed, as shown in Figure 1(b)(e), when standard GAN is trained with noisy images, it attempts to recreate them. Although the long-term development of devices has steadily improved image quality, image degradation is unavoidable in real situations. For example, electronic noise is inevitable in digital imaging [60, 1] and estimator variance often appears as noise in graphic rendering [83, 72]. Therefore, susceptibility to noise is practically undesirable for GANs.
+
+The question becomes: "How can we learn a clean image generator even when only noisy images are available for training?" We call this problem noise robust image generation. One solution is to apply a denoiser as pre
+
+
+Figure 2. Noise categorization and examples. In this paper, we handle various types of noise. (A)(B) Additive Gaussian noise with fixed $\sigma = 25$ (A) and variable $\sigma \in [5,50]$ (B), where $\sigma$ is the standard deviation of a Gaussian distribution. (C)(D) Local Gaussian noise with fixed patch $p_h = p_w = 16$ (C) and variable patch $p_h, p_w \in [8,24]$ (D), where $p_h$ and $p_w$ are the height and width of noise region, respectively. $\sigma$ is fixed to 25 in both cases. (E) Uniform noise $[-50,50]$ . (F) Mixture noise [81]. Mixture of $10\%$ uniform noise $[-50,50]$ , $20\%$ Gaussian noise $(\sigma = 25)$ , and $70\%$ Gaussian noise $(\sigma = 15)$ . (G) Brown Gaussian noise [45]. A Gaussian filter (kernel size is $5 \times 5$ ) is applied to (A). (H) Additive Brown Gaussian noise. (G) is added to (A) while remaining the original (A). (I)(J) Multiplicative Gaussian noise with fixed $\sigma = 25$ (I) and variable $\sigma \in [5,50]$ (J). (K)(L) Additive and multiplicative Gaussian noise. (K) Sum of few (A) $(\sigma = 5)$ and (I). (L) Sum of much (A) $(\sigma = 25)$ and (I). (M)(N) Poisson noise with fixed $\lambda = 30$ (M) and variable $\lambda \in [10,50]$ (N), where $\lambda$ is the total number of events. (O)(P) Poisson-Gaussian noise. (O) Sum of few (A) $(\sigma = 5)$ and (M). (P) Sum of much (A) $(\sigma = 25)$ and (M).
+
+process. However, a limitation is that the generator performance highly relies on the quality of the denoiser, which is relatively difficult to learn when clean images are not available for training. As an alternative, AmbientGAN [5] was recently proposed, which provides a promising solution by simulating the noise corruption on the generated images and learning the discriminator so that it distinguishes a real noisy image from a simulatively corrupted generated image. This makes it possible to learn a clean image generator directly from noisy images without relying on a denoiser.
+
+However, a key limitation of AmbientGAN is that it assumes that the noise corruption process is pre-defined. Therefore, to utilize it, we need to have all information about the noise, such as the noise distribution type (e.g., Gaussian), noise amount (e.g., standard deviation), and signal-noise relationship. For instance, to treat 16 noises shown in Figure 2, we need to carefully prepare 16 noise simulation models that depend on the noise.
+
+To deal with this, we propose noise robust GANs (NR-GANs), which can achieve noise robust image generation without having complete noise information. Our main idea is as follows. We first introduce two generators, a clean image generator and noise generator. To make them generate an image and noise, respectively, we impose a distribution or transformation constraint on the noise generator so that it only captures the components that follow the specified distribution or transformation invariance. As such a constraint can take various forms depending on the type of assumptions; we develop five variants: two signal-independent NR-GANs (SI-NR-GANs) and three signal-dependent NR-GANs (SD-NR-GANs). Figure 1(c)(f) shows examples of images generated using NR-GANs. Here, although the same models are used for different noises (a)(d), NR-GANs succeed in learning clean image generators adaptively.
+
+As the noise robustness of GANs has not been sufficiently studied, we first perform a comprehensive study on CIFAR-10 [42], where we compare various models in diverse noise settings (in which we test 152 conditions). Furthermore, inspired by the recent large-scale study on GANs [44], we also exam in the performance on more complex datasets (LSUN BEDROOM [74] and FFHQ [37]). Finally, we demonstrate the applicability of NR-GANs in image denoising, where we learn a denoiser using generated noisy images and generated clean images (GN2GC), and empirically examine a chicken and egg problem between noise robust image generation and image denoising.
+
+Overall, our contributions are summarized as follows:
+
+- We provide noise robust image generation, the purpose of which is to learn a clean image generator even when training images are noisy. In particular, we solve this problem without full knowledge of the noise.
+- To achieve this, we propose a novel family of GANs called NR-GANs that train a clean image generator and noise generator simultaneously with a distribution or transformation constrain on the noise generator.
+- We provide a comprehensive study on CIFAR-10 (in which we test 152 conditions) and examine the versatility in more complex datasets (LSUN BEDROOM and FFHQ); finally, we demonstrate the applicability in image denoising. The project page is available at https://takuhirok.github.io/NR-GAN/.
+
+# 2. Related work
+
+Deep generative models. Image generation is a fundamental problem and has been intensively studied in computer vision and machine learning. Recently, deep generative models have emerged as a promising framework. Among them, three prominent models along with GANs are variational
+
+autoencoders [39, 64], autoregressive models [70], and flow-based models [14, 15]. Each model has pros and cons. A well-known disadvantage of GANs is training instability; however, it has been steadily improved by recent advancements [2, 54, 46, 4, 65, 23, 40, 57, 58, 36, 76, 6, 9, 37]. In this work, we focus on GANs for their design flexibility, which allows them to incorporate the core of our models, a noise generator and its constraints. Also in other models, image fidelity has improved [71, 61, 56, 38]. Hence, sensitivity to noise can be problematic. Incorporating our ideas into them is a possible direction of future work.
+
+Image denoising. Image denoising is also a fundamental problem and several methods have been proposed. They are roughly categorized into two: model-based methods [12, 22, 17, 51, 7, 50, 16, 49, 52] and discriminative learning methods [29, 55, 67, 77, 78, 8, 24, 45, 43, 3]. Recently, discriminative learning methods have shown a better performance; however, a limitation is that most of them (i.e., Noise2Clean (N2C)) require clean images for supervised training of a denoiser. To handle this, self-supervised learning methods (e.g., Noise2Void (N2V) [43] and Noise2Self (N2S) [3]) were proposed. These methods assume the same data setting as ours, i.e., only noisy images are available for training. However, they still have some limitations, e.g., they cannot handle pixel-wise correlated noise, such as shown in Figure 2(G)(H), and their performance is still inferior to supervised learning methods.
+
+Image denoising and our noise robust image generation is a chicken and egg problem and each task can be used as a pre-task for learning the other. In the spirit of AmbientGAN, we aim to learn a clean image generator directly from noisy images. However, examining the performance on (1) learning a generator using denoised images and (2) learning a denoiser using generated clean and noisy images is an interesting research topic. Motivated by this, we empirically examined them through comparative studies. We provide the results in Sections 8.1 and 8.3.
+
+Noise robust models. Except for image denoising, noise robust models have been studied in image classification to learn a classifier in practical settings. There are two studies addressing label noise [18, 80, 62, 53, 30, 68, 63, 25, 66, 31, 59, 20] and addressing image noise [82, 13]. For both tasks, the issue is the memorization effect [75], i.e., DNN classifiers can fit labels or images even though they are noisy or fully corrupted. As demonstrated in Figure 1, a similar issue also occurs in image generation.
+
+Pertaining image generation, handling of label noise [35, 34, 69, 32] and image noise [5] has begun to be studied. Our NR-GANs are categorized into the latter. As discussed in Section 1, AmbientGAN [5] is a representative model in the latter category. However, a limitation is that it requires full knowledge of the noise. Therefore, we introduce NR-GANs to solve this problem as they do not have this limitation.
+
+# 3. Notation and problem statement
+
+We first define notation and the problem statement. Hereafter, we use superscripts $r$ and $g$ to denote the real distribution and generative distribution, respectively. Let $\pmb{y}$ be the observable noisy image and $\pmb{x}$ and $\pmb{n}$ be the underlying signal (i.e., clean image) and noise, respectively, where $\pmb{y}, \pmb{x}, \pmb{n} \in \mathbb{R}^{H \times W \times C}$ ( $H, W,$ and $C$ are the height, width, and channels of an image, respectively). In particular, we assume that $\pmb{y}$ can be decomposed additively: $\pmb{y} = \pmb{x} + \pmb{n}$ .1 Our task is to learn a clean image generator that can reproduce clean images, such that $p^g(\pmb{x}) = p^r(\pmb{x})$ , when trained with noisy images $\pmb{y}^r \sim p^r(\pmb{y})$ . This is a challenge for standard GAN as it attempts to mimic the observable images including the noise; namely, it learns $p^g(\pmb{y}) = p^r(\pmb{y})$ .
+
+We assume various types of noise. Figure 2 shows the categorization and examples of the noises that we address in this paper. They include signal-independent noises (A)-(H), signal-dependent noises (I)-(P), pixel-wise correlated noises (G)(H), local noises (C)(D), and their combination (H)(K)(L)(O)(P). We also consider two cases: the noise amount is either fixed or variable across the dataset.
+
+As discussed in Section 1, one solution is AmbientGAN [5]; however, it is limited by the need for prior noise knowledge. We plan a solution that will not require that full prior knowledge. Our central idea is to introduce two generators, i.e., a clean image generator and noise generator, and impose a distribution or transformation constraint on the noise generator so that it captures only the noise-specific components. In particular, we explicate such constraints by relying on the signal-noise dependency. We first review our baseline AmbientGAN [5] (Section 4); then detail NR-GANs for signal-independent noise (Section 5) and signal-dependent noise (Section 6).
+
+# 4. Baseline: AmbientGAN
+
+AmbientGAN [5] (Figures 3(a) and 4(a)) is a variant of GANs, which learns an underlying distribution $p^r(\boldsymbol{x})$ only from noisy images $\boldsymbol{y}^r \sim p^r(\boldsymbol{y})$ . This is a challenging because the desired images $\boldsymbol{x}^r \sim p^r(\boldsymbol{x})$ are not observable during training. To overcome this challenge, AmbientGAN introduces a noise simulation model $\boldsymbol{y} = F_{\boldsymbol{\theta}}(\boldsymbol{x})$ under the assumption that it is primarily known. The main idea of AmbientGAN is to incorporate this noise simulation model into the adversarial training framework:
+
+$$
+\begin{array}{l} \min _ {G _ {\boldsymbol {x}}} \max _ {D _ {\boldsymbol {y}}} \mathbb {E} _ {\boldsymbol {y} ^ {r} \sim p ^ {r} (\boldsymbol {y})} [ \log D _ {\boldsymbol {y}} (\boldsymbol {y} ^ {r}) ] \\ + \mathbb {E} _ {\boldsymbol {z} _ {\boldsymbol {x}} \sim p (\boldsymbol {z} _ {\boldsymbol {x}}), \boldsymbol {\theta} \sim p (\boldsymbol {\theta})} [ \log (1 - D _ {\boldsymbol {y}} (F _ {\boldsymbol {\theta}} (G _ {\boldsymbol {x}} (\boldsymbol {z} _ {\boldsymbol {x}})))) ]. \tag {1} \\ \end{array}
+$$
+
+
+(a) AmbientGAN (baseline)
+
+
+(b) Two-generator model
+
+
+(c) SI-NR-GAN-I (proposed)
+Figure 3. Comparison of AmbientGAN (baseline) and SI-NR-GANs (proposed). Because the discriminators are the same, we only depict the generators. (a) AmbientGAN assumes that the noise model is pre-defined. (b) To mitigate this requirement, we introduce a two-generator model and learn a noise generator $G_{n}$ along with a clean image generator $G_{x}$ . (c) To make $G_{n}$ capture only the noise specific components, SI-NR-GAN-I regularizes the output distribution of $G_{n}$ using a reparameterization trick under the assumption that the noise distribution type is known. (d) Furthermore, considering the situation when the noise distribution type is unknown, we develop SI-NR-GAN-II, which applies transformations $n = T(\hat{n})$ to extract the transformation-invariant element, i.e., noise.
+
+
+(d) SI-NR-GAN-II (proposed)
+
+| Noise distribution type | Known | - | Known | Unknown |
| Noise amount | Known | - | Unknown | Unknown |
| Applicable noise | Specific modeling | - | (A)-(D) | (A)-(H) |
+
+Just like standard GAN, a generator $G_{\pmb{x}}$ transforms the latent vector $\pmb{z}_{\pmb{x}}$ into an image $\pmb{x}^g = G_{\pmb{x}}(\pmb{z}_{\pmb{x}})$ . However, differently from the standard GAN discriminator, which directly distinguishes a real image $\pmb{y}^r$ from a generated image $\pmb{x}^g$ , the AmbientGAN discriminator $D_{\pmb{y}}$ distinguishes $\pmb{y}^r$ from a noised generated image $\pmb{y}^g = F_{\pmb{\theta}}(\pmb{x}^g)$ . Intuitively, this modification allows noisy $p^g (\pmb {y}) (= p^g (F_\pmb {\theta}(\pmb {x})))$ to get close to noisy $p^r (\pmb {y}) (= p^r (F_\pmb {\theta}(\pmb {x})))$ . When $F_{\pmb{\theta}}$ is invertible or uniquely determined, underlying clean $p^g (\pmb {x})$ also approaches underlying clean $p^r (\pmb {x})$ .
+
+# 5. Signal-independent noise robust GANs
+
+As described above, a limitation of AmbientGAN is that it requires that a noise simulation model $F_{\theta}(\pmb{x})$ is primarily known. To alleviate this, we introduce a noise generator $\pmb{n} = G_n(z_n)$ (Figure 3(b)) and train it along with a clean image generator $G_x$ using the following objective function:
+
+$$
+\begin{array}{l} \min _ {G _ {\boldsymbol {x}}, G _ {\boldsymbol {n}}} \max _ {D _ {\boldsymbol {y}}} \mathbb {E} _ {\boldsymbol {y} ^ {r} \sim p ^ {r} (\boldsymbol {y})} [ \log D _ {\boldsymbol {y}} (\boldsymbol {y} ^ {r}) ] \\ + \mathbb {E} _ {\boldsymbol {z} _ {\boldsymbol {x}} \sim p (\boldsymbol {z} _ {\boldsymbol {x}}), \boldsymbol {z} _ {\boldsymbol {n}} \sim p (\boldsymbol {z} _ {\boldsymbol {n}})} [ \log (1 - D _ {\boldsymbol {y}} \left(G _ {\boldsymbol {x}} \left(\boldsymbol {z} _ {\boldsymbol {x}}\right) + G _ {\boldsymbol {n}} \left(\boldsymbol {z} _ {\boldsymbol {n}}\right)\right)) ]. \tag {2} \\ \end{array}
+$$
+
+Nevertheless, without any constraints, there is no incentive to make $G_{x}$ and $G_{n}$ generate an image and a noise, respectively. Therefore, we provide a constraint on $G_{n}$ so that it captures only the noise-specific components. In particular, we develop two variants that have different assumptions: SI-NR-GAN-I (Section 5.1) and SI-NR-GAN-II (Section 5.2).
+
+# 5.1. SI-NR-GAN-I
+
+In SI-NR-GAN-I, we assume the following.
+
+Assumption 1 (i) The noise $\mathbf{n}$ is conditionally pixel-wise independent given the signal $\mathbf{x}$ . (ii) The noise distribution type (e.g., Gaussian) is primarily known. Note that the noise amount needs not to be known. (iii) The signal $\mathbf{x}$ does not follow the defined noise distribution.
+
+Under this assumption, we develop SI-NR-GAN-I (Figure 3(c)). In this model, we regularize the output distribution of $G_{n}$ in a pixel-wise manner using a reparameterization trick [39]. Here, we present the case when the noise distribution type is defined as zero-mean Gaussian:
+
+$$
+\boldsymbol {y} = \boldsymbol {x} + \boldsymbol {n}, \text {w h e r e} \boldsymbol {n} \sim \mathcal {N} (\boldsymbol {0}, \operatorname {d i a g} (\boldsymbol {\sigma}) ^ {2}), \tag {3}
+$$
+
+where $\pmb{\sigma} \in \mathbb{R}^{H \times W \times C}$ is the pixel-wise standard deviation. In this case, we redefine the noise generator as $\pmb{\sigma} = G_{\pmb{n}}(\pmb{z}_{\pmb{n}})$ ; and introduce an auxiliary pixel-wise random variable $\epsilon \sim \mathcal{N}(\mathbf{0}, \mathbf{I})$ , where $\epsilon \in \mathbb{R}^{H \times W \times C}$ ; and then calculate the noise $\pmb{n}$ by multiplying them: $\pmb{n} = \pmb{\sigma} \cdot \pmb{\epsilon}$ , where $\cdot$ represents an element-wise product. This formulation allows the noise to be sampled as $\pmb{n} \sim \mathcal{N}(\mathbf{0}, \mathrm{diag}(\pmb{\sigma})^2)$ .
+
+In SI-NR-GAN-I, $\sigma$ is learned through training in a pixel-wise manner. Therefore, the same model can be applied to various noises (e.g., Figure 2(A)-(D), in which each pixel's noise follows a Gaussian distribution, while the noise amount is different in a sample-wise (e.g., (B)) or pixel-wise (e.g., (D)) manner).
+
+# 5.2. SI-NR-GAN-II
+
+Two limitations of SI-NR-GAN-I are that it assumes that (i) the noise is pixel-wise independent and (ii) the noise distribution type is pre-defined. The first assumption makes it difficult to apply to a pixel-wise correlated noise (e.g., Figure 2(G)(H)). The second assumption could cause difficulty when diverse noises are mixed (e.g., Figure 2(F)) or the noise distribution type is different from the pre-defined (e.g., Figure 2(E)). This motivates us to devise SI-NR-GAN-II, which works under a different assumption:
+
+Assumption 2 (i) The noise $n$ is rotation-, channel-shuffle-, or color-inverse-invariant. (ii) The signal $x$ is rotation-, channel-shuffle-, or color-inverse-variant.
+
+
+(a) AmbientGAN (baseline)
+
+
+(b) SD-NR-GAN-I (proposed)
+Figure 4. Comparison of AmbientGAN (baseline) and SD-NR-GANs (proposed). Because the discriminators are the same, we only depict the generators. (a) AmbientGAN pre-defines the noise model. (b) SD-NR-GAN-I represents the signal-noise relationship explicitly, while the noise amount is estimated through training. (c) SD-NR-GAN-II expresses the signal-noise relationship implicitly and this relationship and the noise amount are acquired through training. (d) SD-NR-GAN-III only imposes a weak constraint via the transformation and learns the noise distribution type, signal-noise relationship, and noise amount through training.
+
+
+(c) SD-NR-GAN-II (proposed)
+
+
+(d) SD-NR-GAN-III (proposed)
+
+| Noise distribution type | Known | Known | Known | Unknown |
| Signal-noise relationship | Known | Known | Unknown | Unknown |
| Noise amount | Known | Unknown | Unknown | Unknown |
| Applicable noise | Specific modeling | (I), (J)/(M), (N) | (A)-(D), (I)-(P) | (A)-(P) |
+
+Among the noises in Figure 2, this assumption holds in all signal-independent noises (A)-(H). This assumption is reasonable when $\pmb{n}$ is a zero-mean signal-independent noise and $\pmb{x}$ is a natural image. Under this assumption, we establish SI-NR-GAN-II (Figure 3(d)). In this model, we redefine the noise generator as $\hat{\pmb{n}} = G_{\pmb{n}}(\pmb{z}_{\pmb{n}})$ ( $\hat{\pmb{n}} \in \mathbb{R}^{H \times W \times C}$ ) and apply transformations to $\hat{\pmb{n}}$ by $\pmb{n} = T(\hat{\pmb{n}})$ , where $T$ is a transformation function. As $T$ , we can use arbitrary transformation as long as it is applicable to $\pmb{n}$ but not allowable to $\pmb{x}$ . In practice, we use three transformations: (i) rotation - rotating $\hat{\pmb{n}}$ by $d \in \{0^{\circ}, 90^{\circ}, 180^{\circ}, 270^{\circ}\}$ randomly, (ii) channel shuffle - shuffling RGB channels randomly, and (iii) color inversion - inverting colors randomly in a channel-wise manner. Each one utilizes one of the invariant and variant characteristics mentioned in Assumption 2. In SI-NR-GAN-II, the noise origin $\hat{\pmb{n}}$ is acquired in a data-driven manner; therefore, it is applicable to diverse noises (e.g., Figure 2(A)-(H)) without model modifications.
+
+# 6. Signal-dependent noise robust GANs
+
+Just like in the signal-independent noise case, AmbientGAN is applicable to signal-dependent noise by incorporating the pre-defined noise model (Figure 4(a)). However, it requires prior knowledge about the noise distribution type, signal-noise relationship, and noise amount. To deal with these requirements, we establish three variants that have different assumptions: SD-NR-GAN-I (Section 6.1), SD-NRGAN-II (Section 6.2), and SD-NR-GAN-III (Section 6.3).
+
+# 6.1. SD-NR-GAN-I
+
+We first consider the case when the following assumption holds in addition to Assumption 1.
+
+Assumption 3 The signal-noise relationship is primarily known. Note that the noise amount needs not be known.
+
+Under this assumption, we devise SD-NR-GAN-I (Figure 4(b)), which incorporates a signal-noise relational procedure into SI-NR-GAN-I explicitly. In particular, we devise two configurations for two typical signal-dependent noises: multiplicative Gaussian noise (Figure 2(I)(J)) and Poisson noise (Figure 2(M)(N)).
+
+Multiplicative Gaussian noise is defined as
+
+$$
+\boldsymbol {y} = \boldsymbol {x} + \boldsymbol {n}, \text {w h e r e} \boldsymbol {n} \sim \mathcal {N} (\boldsymbol {0}, \operatorname {d i a g} (\boldsymbol {\sigma} \cdot \boldsymbol {x}) ^ {2}). \tag {4}
+$$
+
+To represent this noise with trainable $\sigma$ , we redesign the noise generator as $\sigma = G_{n}(z_{n})$ . Then, we convert $\sigma$ using a signal-noise relational function $R(\boldsymbol{x},\boldsymbol{\sigma}) = \boldsymbol{\sigma}\cdot \boldsymbol{x} = \hat{\boldsymbol{\sigma}}$ . Finally, we obtain $\boldsymbol{n}\sim \mathcal{N}(\mathbf{0},\mathrm{diag}(\hat{\boldsymbol{\sigma}})^2)$ by using the reparameterization trick described in Section 5.1.
+
+Poisson noise (or shot noise) is sampled by $y \sim \mathrm{Poisson}(\lambda \cdot x) / \lambda$ , where $\lambda$ is the total number of events. As this noise is discrete and intractable to construction of a differentiable model, we use a Gaussian approximation [26], which is commonly used for Poisson noise modeling:
+
+$$
+\boldsymbol {y} = \boldsymbol {x} + \boldsymbol {n}, \text {w h e r e} \boldsymbol {n} \sim \mathcal {N} (\boldsymbol {0}, \operatorname {d i a g} (\sigma \cdot \sqrt {\boldsymbol {x}}) ^ {2}), \tag {5}
+$$
+
+where $\pmb{\sigma} = \sqrt{1 / \lambda}$ . The implementation method is almost the same as that for the multiplicative Gaussian noise except that we redefine $R(\pmb{x},\pmb{\sigma})$ as $R(\pmb{x},\pmb{\sigma}) = \pmb{\sigma}\cdot \sqrt{\pmb{x}} = \hat{\pmb{\sigma}}$ .
+
+In both noise cases, the noise amount $\sigma$ is trainable; therefore, each configuration of SD-NR-GAN-I is applicable to the noises in Figure 2(I)(J) and those in Figure 2(M)(N), respectively, without model modifications.
+
+# 6.2. SD-NR-GAN-II
+
+In SD-NR-GAN-II, we consider the case when the noise distribution type is known (i.e., Assumption 1 holds) but the signal-noise relationship is unknown (i.e., Assumption 3 is not required). Under this assumption, we aim to learn $R(\pmb{x},\pmb{\sigma})$ implicitly, which is explicitly given in SD-NR-GAN-I. To achieve this, we develop SD-NR-GAN-II (Figure 4(c)), which is an extension of SI-NR-GAN-I incorporating the image latent vector $z_{x}$ into the input of $G_{n}$ , i.e.,
+
+$\pmb{\sigma} = G_{n}(z_{n}, z_{x})$ . Similarly to SI-NR-GAN-I, we sample $\pmb{n} \sim \mathcal{N}(\mathbf{0}, \mathrm{diag}(\pmb{\sigma})^{2})$ using the reparameterization trick described in Section 5.1. Here, we consider the case when the noise distribution type is defined as zero-mean Gaussian.
+
+As discussed in Section 6.1, multiplicative Gaussian noise and Poisson noise are represented (or approximated) as signal-dependent Gaussian noise; therefore, SD-NR-GAN-II is applicable to these noises (e.g., Figure 2(I)(J)(M)(N)). Furthermore, SD-NR-GAN-II can internally learn $R(\boldsymbol{x}, \boldsymbol{\sigma})$ ; therefore, the same model can also be applied to signal-independent noise (Figure 2(A)-(D)), i.e., $R(\boldsymbol{x}, \boldsymbol{\sigma}) = \boldsymbol{x}$ , and the combination of multiple noises (Figure 2(K)(L)(O)(P)), e.g., $R(\boldsymbol{x}, \boldsymbol{\sigma}_d, \boldsymbol{\sigma}_i) = \boldsymbol{\sigma}_d \cdot \boldsymbol{x} + \boldsymbol{\sigma}_i$ .
+
+# 6.3. SD-NR-GAN-III
+
+Finally, we deal with the case when both the noise distribution type and signal-noise relationship are not known. In this case, we impose a similar assumption as Assumption 2. However, rotation and channel shuffle collapse the per-pixel signal-noise dependency that is included in typical signal-dependent noise (e.g., Figure 2(I)-(P)). Therefore, we only induce the assumption regarding color inversion. Under this assumption, we devise SD-NR-GAN-III (Figure 4(d)). Similarly to SD-NR-GAN-II, SD-NR-GAN-III learns the signal-noise relationship implicitly by incorporating $z_{x}$ into the input of $G_{n}$ , i.e., $\hat{n} = G_{n}(z_{n},z_{x})$ . Similarly to SI-NR-GAN-II, we impose a transformation constraint on $G_{n}$ by applying $n = T(\hat{n})$ , where $T$ is defined as color inversion. The noise origin $\hat{n}$ is learned through training; therefore, SD-NR-GAN-III can be adopted to various noises (e.g., all noises in Figure 2) without modifying the model.
+
+# 7. Advanced techniques for practice
+
+# 7.1. Alleviation of convergence speed difference
+
+In proposed NR-GANs, $G_{x}$ and $G_{n}$ are learned simultaneously. Ideally, we expect that $G_{x}$ and $G_{n}$ would be optimized at the same speed; however, through experiments, we found that $G_{n}$ tends to learn faster than $G_{x}$ and results in a mode collapse in the early training phase. A possible cause is that the noise distribution is simpler and easier to learn than the image distribution. To address this problem, we apply the diversity-sensitive regularization [73] to $G_{n}$ . Intuitively, this regularization makes $G_{n}$ sensitive to $z_{n}$ and has an effect to prevent the mode collapse. In the experiments, we incorporate this technique to all NR-GANs. We discuss the effect of this regularization in our arXiv [33].
+
+# 7.2. Alleviation of approximation degradation
+
+As described in Section 6.1, we apply a Gaussian approximation to the Poisson noise to make it tractable and
+
+differentiable. However, through experiments, we found that this approximation causes the performance degradation even using AmbientGAN, which knows all information about the noise. A possible reason is that powerful $G_{x}$ attempts to fill in the discretized gap caused by this approximation. To alleviate the effect, we apply an anti-alias (or low-pass) filter [79] to $x$ before providing to $D_{y}$ . In particular, we found that applying vertical and horizontal blur filters respectively and providing both to $D_{y}$ works well. In the experiments, we apply this technique to all GANs in the Poisson or Poisson-Gaussian noise setting. We discuss the effect with and without this technique in our arXiv [33].
+
+# 8. Experiments
+
+# 8.1. Comprehensive study
+
+To advance the research on noise robust image generation, we first conducted a comprehensive study, where we compared various models in diverse noise settings (in which we tested 152 conditions in total).
+
+Data setting. In this comprehensive study, we used CIFAR-10 [42], which contains $60k \times 32$ natural images, partitioned into $50k$ training and $10k$ test images. We selected this dataset because it is commonly used to examine the benchmark performance of generative models (also in the study of AmbientGAN [5]); additionally, the image size is reasonable for a large-scale comparative study. Note that we also conducted experiments using more complex datasets in Section 8.2. With regard to noise, we tested 16 noises, shown in Figure 2. See the caption for their details.
+
+Compared models. In addition to the models in Figures 3 and 4, we tested several baselines. As comparative GAN models, we examined four models: (1) Standard GAN. (2) P-AmbientGAN (parametric AmbientGAN), a straightforward extension of AmbientGAN, which has a single trainable parameter $\sigma$ . As with SI-NR-GAN-I and SD-NRGAN-I, we construct this model for Gaussian, multiplicative Gaussian, and Poisson noises and generate the noise with $\sigma$ using a reparameterization trick [39]. (3) SI-NRGAN-0 (Figure 3(b)), which has the same generators as SI-NR-GANs but has no constraint on $G_{n}$ . (4) SD-NR-GAN0, which has the same generators as SD-NR-GAN-II and -III but has no constraint on $G_{n}$ .
+
+We also examined the performance of learning GANs using denoised images (denoiser+GANs). As a denoiser, we investigated four methods. As typical model-based methods, we used (1) GAT-BM3D [52] and (2) CBM3D [11] for Poisson/Poisson-Gaussian noise (Figure 2(M)-(P)) and the other noises, respectively. As discriminative learning
+
+methods, we used (3) N2V (Noise2Void) [43] and (4) N2N (Noise2Noise) [45]. N2V can be used in the same data setting as ours (i.e., only noisy images are available for training), while N2N requires noisy image pairs for training. We used N2N because it is commonly used as the upper bound of self-supervised learning methods (e.g., N2V).
+
+Evaluation metrics. We used the Fréchet inception distance (FID) [28] as an evaluation metric because its validity has been demonstrated in large-scale studies on GANs [47, 44], and because the sensitivity to the noise has also been shown [28]. The FID measures the distance between real and generative distributions and a smaller value is better.
+
+Implementation. We implemented GANs using the ResNet architectures [27] and trained them using a non-saturating GAN loss [21] with a real gradient penalty regularization [57]. In NR-GANs, we used similar architectures for $G_{x}$ and $G_{n}$ . As our aim is to construct a general model applicable to various noises, we examined the performance when the training settings are fixed regardless of the noise. We provide the implementation details in our arXiv [33].
+
+Results on signal-independent noises. The upper part of Table 1 summarizes the results on signal-independent noises. In P-AmbientGAN and SI-NR-GANs, we defined the distribution type as Gaussian for all noise settings and analyzed the effect when the noise is beyond assumption. Our main findings are the following:
+
+(1) Comparison among GAN models. As expected, AmbientGAN tends to achieve the best score owing to the advantageous training setting, while the best SI-NR-GAN shows a competitive performance (with a difference of 3.3 in the worst case). P-AmbientGAN is defeated by SI-NR-GAN-I in all cases. These results indicate that our two-generator model is reasonable when training a noise generator and image generator simultaneously.
+(2) Comparison between SI-NR-GANs and denoiser+GANs. The best SI-NR-GAN outperforms the best denoiser+GAN in most cases (except for (G)). In particular, pixel-wise correlated noises (G)(H) are intractable for denoiser+GANs except for N2N+GAN, which uses additional supervision, while SI-NR-GAN-II works well and outperforms the baseline models by a large margin (with a difference of over 100).
+(3) Comparison among SI-NR-GANs. SI-NR-GAN-II shows the stable performance across all cases (the difference to the best SI-NR-GAN is within 3.1). SI-NR-GAN-I shows the best or competitive performance in Gaussian (A)-(D) or near Gaussian noise (F); however, the performance degrades when the distribution is beyond assumption (E)(G)(H).
+
+Results on signal-dependent noises. The lower part of Table 1 lists the results on signal-dependent noises. In P-AmbientGAN and SD-NR-GAN-I, we defined the distri
+
+| Signal-independent | (A) AGF | (B) AGV | (C) LGF | (D) LGV | (E) U | (F) MIX | (G) BG | (H) A+G |
| AmbientGAN† | 26.7 | 28.0 | 21.8 | 21.7 | 28.3 | 25.1 | 30.3 | 40.8 |
| P-AmbientGAN | 33.9 | 122.2 | 38.8 | 38.0 | 43.0 | 32.3 | 164.2 | 269.7 |
| GAN | 145.8 | 136.0 | 38.8 | 38.8 | 146.4 | 125.6 | 165.3 | 265.9 |
| SI-NR-GAN-0 | 40.7 | 39.5 | 23.1 | 24.3 | 38.6 | 32.7 | 71.6 | 139.7 |
| SI-NR-GAN-I | 26.7 | 27.5 | 22.1 | 22.4 | 40.1 | 24.8 | 163.4 | 253.2 |
| SI-NR-GAN-II | 29.8 | 29.7 | 22.1 | 21.7 | 31.6 | 26.5 | 32.2 | 44.0 |
| CBM3D+GAN | 35.1 | 38.4 | 37.0 | 33.9 | 38.9 | 30.2 | 136.6 | 169.1 |
| N2V+GAN | 34.6 | 36.7 | 22.7 | 22.6 | 36.4 | 32.0 | 163.8 | 247.8 |
| N2N+GAN‡ | 33.5 | 36.5 | 22.4 | 22.0 | 32.4 | 30.7 | 29.5 | 48.3 |
| Signal-dependent | (I) MGF | (J) MGV | (K) Α+I | (L) A+I | (M) PF | (N) PV | (O) Α+M | (P) A+M |
| AmbientGAN† | 21.4 | 21.8 | 21.9 | 27.4 | 31.3 | 32.3 | 30.9 | 35.3 |
| P-AmbientGAN | 27.1 | 68.7 | 39.7 | 137.7 | 43.8 | 100.7 | 43.0 | 94.2 |
| GAN | 82.7 | 77.4 | 93.2 | 155.8 | 152.4 | 160.1 | 149.1 | 175.8 |
| SD-NR-GAN-0 | 82.7 | 59.5 | 69.9 | 75.1 | 71.7 | 70.2 | 72.0 | 69.0 |
| SD-NR-GAN-I | 22.5 | 23.0 | 25.3 | 112.4 | 30.8 | 32.0 | 31.4 | 70.6 |
| SD-NR-GAN-II | 24.4 | 24.2 | 23.3 | 28.5 | 34.0 | 33.9 | 34.0 | 35.4 |
| SD-NR-GAN-III | 37.5 | 33.4 | 33.5 | 33.9 | 53.1 | 55.1 | 52.4 | 47.2 |
| CBM3D+GAN | 26.9 | 27.8 | 27.6 | 40.0 | - | - | - | - |
| GAT-BM3D+GAN | - | - | - | - | 38.4 | 40.2 | 38.7 | 50.1 |
| N2V+GAN | 25.8 | 26.6 | 26.7 | 36.4 | 37.1 | 38.3 | 37.5 | 41.2 |
| N2N+GAN‡ | 24.9 | 26.6 | 26.2 | 34.1 | 36.7 | 39.7 | 36.4 | 39.5 |
+
+Table 1. Comparison of FID on CIFAR-10. A smaller value is better. We compared 152 conditions. The second and thirteenth rows denote the abbreviations defined in Figure 2. We report the median score across three random seeds. The symbol $\dagger$ indicates that the ground-truth noise models are given. The symbol $\ddagger$ denotes that noisy image pairs are given during the training. The other models are trained using only noisy images (not including pairs) without complete noise information. Bold font indicates the best score except for the models denoted by $\dagger\ddagger$ .
+
+bution type as multiplicative Gaussian and Poisson in (I)-(L) and (M)-(P), respectively. With regard to a comparison among GAN models and comparison between SD-NR-GANs and denoiser+GANs, similar findings (i.e., the best SD-NR-GAN is comparable with AmbientGAN and outperforms the best denoiser+GAN) are observed; therefore, herein we discuss a comparison among SD-NR-GANs. SD-NR-GAN-II and -III stability work better than SD-NR-GAN-0. Among the two, SD-NR-GAN-II, which has a stronger assumption, outperforms SD-NR-GAN-III in all cases (with a difference of over 5.4). SD-NR-GAN-I shows the best or competitive performance when noises are within or a little over assumption (I)-(K)(M)-(O); however, when the unexpected noise increases (L)(P), the performance degrades.
+
+Summary. Through the comprehensive study, we confirm the following: (1) NR-GANs work reasonably well comparing to other GAN models and denoiser+GANs. (2) Weakly constrained NR-GANs stability work well across various settings, while (3) strongly constrained NR-GANs show a better performance when noise is within assumption. $^{7}$
+
+| Signal-independent | LSUN BEDROOM | FFHQ |
| (A) AGF | (B) AGV | (G) BG | (A) AGF |
| AmbientGAN† | 19.4 | 25.0 | 9.7 | 28.3 |
| GAN | 98.9 | 100.9 | 125.3 | 81.6 |
| SI-NR-GAN-I | 13.8 | 14.2 | 128.2 | 35.7 |
| SI-NR-GAN-II | 15.7 | 16.8 | 10.8 | 37.1 |
| Signal-dependent | LSUN BEDROOM | FFHQ |
| (I) MGF | (L) A+I | (M) PF | (I) MGF |
| AmbientGAN† | 11.7 | 19.2 | 32.6 | 18.7 |
| GAN | 54.0 | 109.8 | 121.7 | 48.0 |
| SD-NR-GAN-I | 11.6 | 55.4 | 23.3 | 26.5 |
| SD-NR-GAN-II | 21.7 | 15.0 | 42.8 | 49.0 |
| SD-NR-GAN-III | 50.7 | 53.1 | 138.6 | 37.2 |
+
+# 8.2. Evaluation on complex datasets
+
+Inspired by the resent large-scale study on GANs [44], we also examined the performance on more complex datasets. Referring to this study, we used the $128 \times 128$ versions of LSUN BEDROOM [74] and FFHQ [37].8 LSUN BEDROOM contains about 3 million bedroom images, randomly split into training and test sets in the ratio of 99 to 1. FFHQ contains $70k$ face images, partitioned into $60k$ training and $10k$ test images. As these datasets are calculationally demanding, we selected six noises for LSUN BEDROOM and two noises for FFHQ. We provide the implementation details in our arXiv [33].
+
+Table 2 list the results. Just like the CIFAR-10 results, we found that the best NR-GAN outperforms standard GAN and its performance is closer to that of AmbientGAN. In contrast, differently from the CIFAR-10 results, we found that in complex datasets, some weakly constrained SD-NR-GANs suffer from learning difficulty (e.g., SD-NR-GANIII in LSUN BEDROOM (M)). This is undesirable but understandable because in complex datasets it is highly challenging to isolate noise from the dependent signal without an explicit knowledge about their dependency. This is related to GAN training dynamics and addressing this limitation is our future work. As reference, we provide qualitative results in our arXiv [33].
+
+# 8.3. Application to image denoising
+
+NR-GANs can generate an image and noise, respectively. By utilizing this, we create clean and noisy image pairs synthetically and use them for learning a denoiser. We call this method GeneratedNoise2GeneratedClean
+
+Table 2. Comparison of FID on LSUN BEDROOM and FFHQ. A smaller value is better. Because the training is time-consuming, experiments were run once. The notation is the same as that in Table 1.
+
+ | LSUN BEDROOM | FFHQ | LSUN BEDROOM | FFHQ |
| (A) AGF | (B) AGV | (G) BG | (A) AGF | (I) MGF | (L) A+I | (M) PF | (I) MGF |
| N2C‡ | 32.90 | 33.06 | 29.67 | 31.93 | 36.70 | 32.26 | 31.77 | 36.37 |
| N2N‡ | 32.30 | 32.23 | 28.76 | 31.33 | 35.99 | 31.36 | 30.55 | 35.88 |
| N2V | 31.98 | 31.85 | 20.73 | 30.95 | 35.37 | 31.09 | 30.30 | 34.95 |
| N2S | 31.79 | 31.70 | 20.74 | 30.74 | 35.12 | 30.94 | 30.19 | 34.67 |
| GN2GC | 32.36 | 32.47 | 26.61 | 31.34 | 36.01 | 31.62 | 31.08 | 35.69 |
| CBM3D | 31.41 | 31.54 | 20.75 | 30.29 | 33.60 | 30.43 | - | 32.73 |
| GAT-BM3D | - | - | - | - | - | - | 29.80 | - |
+
+Table 3. Comparison of PSNR on LSUN BEDROOM and FFHQ. A larger value is better. We report the median score across three random seeds. The symbols $\sharp \ddagger$ indicate that the models are trained in advantageous conditions ( $\sharp$ clean target images and $\ddagger$ noisy image pairs are given, respectively). The other models are trained using only noisy images (not including pairs). Bold font indicates the best score except for the models denoted by $\sharp \ddagger$ .
+
+(GN2GC). In particular, we employed the generators that achieve the best FID in Table 2 (denoted by bold font). $^9$ Note that NR-GANs are trained only using noisy images; therefore, GN2GC can be used in the same data setting as self-supervised learning methods (N2V [43] and N2S [3]). We used the same training and test sets used in Section 8.2. We present the implementation details in our arXiv [33].
+
+We summarize the results in Table 3. We found that GN2GC not only outperforms the state-of-the-art self-supervised learning methods (N2V and N2S) but also is comparable with N2N, which learns in advantageous conditions. The requirement for pre-training GANs could narrow the applications of GN2GC; however, we believe that its potential for image denoising would increase along with rapid progress of GANs. We show examples of denoised images in our arXiv [33].
+
+# 9. Conclusion
+
+To achieve noise robust image generation without full knowledge of the noise, we developed a new family of GANs called NR-GANs which learn a noise generator with a clean image generator, while imposing a distribution or transformation constraint on the noise generator. In particular, we introduced five variants: two SI-NR-GANs and three SD-NR-GANs, which have different assumptions. We examined the effectiveness and limitations of NR-GANs on three benchmark datasets and demonstrated the applicability in image denoising. In the future, we hope that our findings facilitate the construction of a generative model in a real-world scenario where only noisy images are available.
+
+Acknowledgement. We thank Naoya Fushishita, Takayuki Hara, and Atsuhiro Noguchi for helpful discussions. This work was partially supported by JST CREST Grant Number JPMJCR1403, and partially supported by JSPS KAKENHI Grant Number JP19H01115.
+
+# References
+
+[1] Josue Anaya and Adrian Barbu. RENOIR-A dataset for real low-light image noise reduction. J. Vis. Commun. Image Represent., 51:144-154, 2018.
+[2] Martin Arjovsky, Soumith Chintala, and Léon Bottou. Wasserstein generative adversarial networks. In ICML, 2017.
+[3] Joshua Batson and Loic Royer. Noise2Self: Blind denoising by self-supervision. In ICML, 2019.
+[4] Marc G. Bellemare, Ivo Danihelka, Will Dabney, Shakir Mohamed, Balaji Lakshminarayanan, Stephan Hoyer, and Rémi Munos. The Cramer distance as a solution to biased Wasserstein gradients. arXiv preprint arXiv:1705.10743, 2017.
+[5] Ashish Bora, Eric Price, and Alexandros G. Dimakis. AmbientGAN: Generative models from lossy measurements. In ICLR, 2018.
+[6] Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale GAN training for high fidelity natural image synthesis. In ICLR, 2019.
+[7] Antoni Buades, Bartomeu Coll, and Jean-Michel Morel. A non-local algorithm for image denoising. In CVPR, 2005.
+[8] Jingwen Chen, Jiawei Chen, Hongyang Chao, and Ming Yang. Image blind denoising with generative adversarial network based noise modeling. In CVPR, 2018.
+[9] Ting Chen, Mario Lucic, Neil Houlsby, and Sylvain Gelly. On self modulation for generative adversarial networks. In ICLR, 2019.
+[10] Ting Chen, Xiaohua Zhai, Marvin Ritter, Mario Lucic, and Neil Houlsby. Self-supervised GANs via auxiliary rotation loss. In CVPR, 2019.
+[11] Kostadin Dabov, Alessandro Foi, Vladimir Katkovnik, and Karen Egiazarian. Color image denoising via sparse 3D collaborative filtering with grouping constraint in luminance-chrominance space. In ICIP, 2007.
+[12] Kostadin Dabov, Alessandro Foi, Vladimir Katkovnik, and Karen Egiazarian. Image denoising by sparse 3-D transform-domain collaborative filtering. IEEE Trans. Image Process., 16(8):2080-2095, 2007.
+[13] Steven Diamond, Vincent Sitzmann, Stephen Boyd, Gordon Wetzstein, and Felix Heide. Dirty pixels: Optimizing image classification architectures for raw sensor data. arXiv preprint arXiv:1701.06487, 2017.
+[14] Laurent Dinh, David Krueger, and Yoshua Bengio. NICE: Non-linear independent components estimation. In ICLR Workshop, 2015.
+[15] Laurent Dinh, Jascha Sohl-Dickstein, and Samy Bengio. Density estimation using real NVP. In ICLR, 2017.
+[16] Weisheng Dong, Lei Zhang, Guangming Shi, and Xin Li. Nonlocally centralized sparse representation for image restoration. IEEE Trans. Image Process., 22(4):1620-1630, 2012.
+[17] Michael Elad and Michal Aharon. Image denoising via sparse and redundant representations over learned dictionaries. IEEE Trans. Image Process., 15(12):3736-3745, 2006.
+[18] Aritra Ghosh, Himanshu Kumar, and P.S. Sastry. Robust loss functions under label noise for deep neural networks. In AAAI, 2017.
+
+[19] Spyros Gidaris, Praveer Singh, and Nikos Komodakis. Unsupervised representation learning by predicting image rotations. In ICLR, 2018.
+[20] Jacob Goldberger and Ehud Ben-Reuven. Training deep neural-networks using a noise adaptation layer. In ICLR, 2017.
+[21] Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In NIPS, 2014.
+[22] Shuhang Gu, Lei Zhang, Wangmeng Zuo, and Xiangchu Feng. Weighted nuclear norm minimization with application to image denoising. In CVPR, 2014.
+[23] Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron Courville. Improved training of Wasserstein GANs. In NIPS, 2017.
+[24] Shi Guo, Zifei Yan, Kai Zhang, Wangmeng Zuo, and Lei Zhang. Toward convolutional blind denoising of real photographs. In CVPR, 2019.
+[25] Bo Han, Quanming Yao, Xingrui Yu, Gang Niu, Miao Xu, Weihua Hu, Ivor W. Tsang, and Masashi Sugiyama. Co-teaching: Robust training of deep neural networks with extremely noisy labels. In NeurIPS, 2018.
+[26] Samuel W. Hasinoff. Photon, Poisson noise. Computer Vision: A Reference Guide, pages 608-610, 2014.
+[27] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016.
+[28] Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, Günter Klambauer, and Sepp Hochreiter. GANs trained by a two time-scale update rule converge to a Nash equilibrium. In NIPS, 2017.
+[29] Viren Jain and Sebastian Seung. Natural image denoising with convolutional networks. In NIPS, 2009.
+[30] Lu Jiang, Zhengyuan Zhou, Thomas Leung, Li-Jia Li, and Li Fei-Fei. MentorNet: Learning data-driven curriculum for very deep neural networks on corrupted labels. In ICML, 2018.
+[31] Ishan Jindal, Matthew Nokleby, and Xuewen Chen. Learning deep networks from noisy labels with dropout regularization. In ICDM, 2016.
+[32] Takuhiro Kaneko and Tatsuya Harada. Label-noise robust multi-domain image-to-image translation. arXiv preprint arXiv:1905.02185, 2019.
+[33] Takuhiro Kaneko and Tatsuya Harada. Noise robust generative adversarial networks. arXiv preprint arXiv:1911.11776, 2019.
+[34] Takuhiro Kaneko, Yoshitaka Ushiku, and Tatsuya Harada. Class-distinct and class-mutual image generation with GANs. In BMVC, 2019.
+[35] Takuhiro Kaneko, Yoshitaka Ushiku, and Tatsuya Harada. Label-noise robust generative adversarial networks. In CVPR, 2019.
+[36] Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of GANs for improved quality, stability, and variation. In ICLR, 2018.
+[37] Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In CVPR, 2019.
+
+[38] Diederik P. Kingma and Prafulla Dhariwal. Glow: Generative flow with invertible $1 \times 1$ convolutions. In NeurIPS, 2018.
+[39] Diederik P. Kingma and Max Welling. Auto-encoding variational bayes. In ICLR, 2014.
+[40] Naveen Kodali, Jacob Abernethy, James Hays, and Zsolt Kira. On convergence and stability of GANs. arXiv preprint arXiv:1705.07215, 2017.
+[41] Alexander Kolesnikov, Xiaohua Zhai, and Lucas Beyer. Revisiting self-supervised visual representation learning. In CVPR, 2019.
+[42] Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, 2009.
+[43] Alexander Krull, Tim-Oliver Buchholz, and Florian Jug. Noise2Void - Learning denoising from single noisy images. In CVPR, 2019.
+[44] Karol Kurach, Mario Lucic, Xiaohua Zhai, Marcin Michalski, and Sylvain Gelly. A large-scale study on regularization and normalization in GANs. In ICML, 2019.
+[45] Jaakko Lehtinen, Jacob Munkberg, Jon Hasselgren, Samuli Laine, Tero Karras, Miika Aittala, and Timo Aila. Noise2Noise: Learning image restoration without clean data. In ICML, 2018.
+[46] Jae Hyun Lim and Jong Chul Ye. Geometric GAN. arXiv preprint arXiv:1705.02894, 2017.
+[47] Mario Lucic, Karol Kurach, Marcin Michalski, Sylvain Gelly, and Olivier Bousquet. Are GANs created equal? A large-scale study. In NeurIPS, 2018.
+[48] Mario Lucic, Michael Tschannen, Marvin Ritter, Xiaohua Zhai, Olivier Bachem, and Sylvain Gelly. High-fidelity image generation with fewer labels. In ICML, 2019.
+[49] Florian Luisier, Thierry Blu, and Michael Unser. Image denoising in mixed Poisson-Gaussian noise. IEEE Trans. Image Process., 20(3):696-708, 2010.
+[50] Julien Mairal, Francis Bach, Jean Ponce, Guillermo Sapiro, and Andrew Zisserman. Non-local sparse models for image restoration. In ICCV, 2009.
+[51] Julien Mairal, Michael Elad, and Guillermo Sapiro. Sparse representation for color image restoration. IEEE Trans. Image Process., 17(1):53-69, 2007.
+[52] Markku Makitalo and Alessandro Foi. Optimal inversion of the generalized Anscombe transformation for Poisson-Gaussian noise. IEEE Trans. Image Process., 22(1):91-103, 2012.
+[53] Eran Malach and Shai Shalev-Shwartz. Decoupling "when to update" from "how to update". In NIPS, 2017.
+[54] Xudong Mao, Qing Li, Haoran Xie, Raymond Y.K. Lau, Zhen Wang, and Stephen Paul Smolley. Least squares generative adversarial networks. In ICCV, 2017.
+[55] Xiaojiao Mao, Chunhua Shen, and Yu-Bin Yang. Image restoration using very deep convolutional encoder-decoder networks with symmetric skip connections. In NIPS, 2016.
+[56] Jacob Menick and Nal Kalchbrenner. Generating high fidelity images with subscale pixel networks and multidimensional upscaling. In ICLR, 2019.
+[57] Lars Mescheder, Andreas Geiger, and Sebastian Nowozin. Which training methods for GANs do actually converge? In ICML, 2018.
+
+[58] Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks. In ICLR, 2018.
+[59] Giorgio Patrini, Alessandro Rozza, Aditya Krishna Menon, Richard Nock, and Lizhen Qu. Making deep neural networks robust to label noise: A loss correction approach. In CVPR, 2017.
+[60] Tobias Plotz and Stefan Roth. Benchmarking denoising algorithms with real photographs. In CVPR, 2017.
+[61] Ali Razavi, Aïron van den Oord, and Oriol Vinyals. Generating diverse high-fidelity images with VQ-VAE-2. In NeurIPS, 2019.
+[62] Scott Reed, Honglak Lee, Dragomir Anguelov, Christian Szegedy, Dumitru Erhan, and Andrew Rabinovich. Training deep neural networks on noisy labels with bootstrapping. In ICLR, 2015.
+[63] Mengye Ren, Wenyuan Zeng, Bin Yang, and Raquel Urtasun. Learning to reweight examples for robust deep learning. In ICML, 2018.
+[64] Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In ICML, 2014.
+[65] Tim Salimans, Han Zhang, Alec Radford, and Dimitris Metaxas. Improving GANs using optimal transport. In ICLR, 2018.
+[66] Sainbayar Sukhbaatar, Joan Bruna, Manohar Paluri, Lubomir Bourdev, and Rob Fergus. Training convolutional networks with noisy labels. In ICLR Workshop, 2015.
+[67] Ying Tai, Jian Yang, Xiaoming Liu, and Chunyan Xu. MemNet: A persistent memory network for image restoration. In ICCV, 2017.
+[68] Daiki Tanaka, Daiki Ikami, Toshihiko Yamasaki, and Kiyoharu Aizawa. Joint optimization framework for learning with noisy labels. In CVPR, 2018.
+[69] Kiran Koshy Thekumparampil, Ashish Khetan, Zinan Lin, and Sewoong Oh. Robustness of conditional GANs to noisy labels. In NeurIPS, 2018.
+[70] Aäron van den Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel recurrent neural networks. In ICML, 2016.
+[71] Aäron van den Oord, Oriol Vinyals, and Koray Kavukcuoglu. Neural discrete representation learning. In NIPS, 2017.
+[72] Bing Xu, Junfei Zhang, Rui Wang, Kun Xu, Yong-Liang Yang, Chuan Li, and Rui Tang. Adversarial Monte Carlo denoising with conditioned auxiliary feature modulation. ACM Trans. Graph., 38(6):1-12, 2019.
+[73] Dingdong Yang, Seunghoon Hong, Yunseok Jang, Tianchen Zhao, and Honglak Lee. Diversity-sensitive conditional generative adversarial networks. In ICLR, 2019.
+[74] Fisher Yu, Ari Seff, Yinda Zhang, Shuran Song, Thomas Funkhouser, and Jianxiong Xiao. LSUN: Construction of a large-scale image dataset using deep learning with humans in the loop. arXiv preprint arXiv:1506.03365, 2015.
+[75] Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. In ICLR, 2017.
+
+[76] Han Zhang, Ian Goodfellow, Dimitris Metaxas, and Augustus Odena. Self-attention generative adversarial networks. In ICML, 2019.
+[77] Kai Zhang, Wangmeng Zuo, Yunjin Chen, Deyu Meng, and Lei Zhang. Beyond a Gaussian denoiser: Residual learning of deep CNN for image denoising. IEEE Trans. Image Process., 26(7):3142-3155, 2017.
+[78] Kai Zhang, Wangmeng Zuo, and Lei Zhang. FFDNet: Toward a fast and flexible solution for CNN-based image denoising. IEEE Trans. Image Process., 27(9):4608-4622, 2018.
+[79] Richard Zhang. Making convolutional networks shift-invariant again. In ICML, 2019.
+[80] Zhilu Zhang and Mert R. Sabuncu. Generalized cross entropy loss for training deep neural networks with noisy labels. In NeurIPS, 2018.
+[81] Qian Zhao, Deyu Meng, Zongben Xu, Wangmeng Zuo, and Lei Zhang. Robust principal component analysis with complex noise. In ICML, 2014.
+[82] Stephan Zheng, Yang Song, Thomas Leung, and Ian Goodfellow. Improving the robustness of deep neural networks via stability training. In CVPR, 2016.
+[83] Matthias Zwicker, Wojciech Jarosz, Jaakko Lehtinen, Bochang Moon, Ravi Ramamoorthi, Fabrice Rousselle, Pradeep Sen, Cyril Soler, and Sung-Eui Yoon. Recent advances in adaptive sampling and reconstruction for Monte Carlo rendering. Comput. Graph. Forum, 34(2):667-681, 2015.
\ No newline at end of file
diff --git a/noiserobustgenerativeadversarialnetworks/images.zip b/noiserobustgenerativeadversarialnetworks/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..b1831c9f7eeb2f621aa3494c9da750ba2b2b6da5
--- /dev/null
+++ b/noiserobustgenerativeadversarialnetworks/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f4da8824c8bc54986998c134a8ba3003747b11cf1c8c0b110e71958a645b3ce2
+size 472868
diff --git a/noiserobustgenerativeadversarialnetworks/layout.json b/noiserobustgenerativeadversarialnetworks/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..38c366388fa850d2d0003ace19fe0b1e31da1f3a
--- /dev/null
+++ b/noiserobustgenerativeadversarialnetworks/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:498f66941154001687011775720fba89747e9e0ed3463f0f85f4baea879b7187
+size 541488
diff --git a/noisier2noiselearningtodenoisefromunpairednoisydata/d9405594-68e8-4730-8872-05e6ff9fb060_content_list.json b/noisier2noiselearningtodenoisefromunpairednoisydata/d9405594-68e8-4730-8872-05e6ff9fb060_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..059f1efffab7e0ab46ff6f8b635a9638bef62fb1
--- /dev/null
+++ b/noisier2noiselearningtodenoisefromunpairednoisydata/d9405594-68e8-4730-8872-05e6ff9fb060_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a9910df36c3336fc988c3259539f700fe9ae8e7ea14b339e1545b6bee14e3208
+size 69637
diff --git a/noisier2noiselearningtodenoisefromunpairednoisydata/d9405594-68e8-4730-8872-05e6ff9fb060_model.json b/noisier2noiselearningtodenoisefromunpairednoisydata/d9405594-68e8-4730-8872-05e6ff9fb060_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..3fa5f8fd68cc75462cd874c40342571c6aeeeb79
--- /dev/null
+++ b/noisier2noiselearningtodenoisefromunpairednoisydata/d9405594-68e8-4730-8872-05e6ff9fb060_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2dedc901c2d4ba83f448bb07b2ec85416f3817e1f7ab570b50678d85a1b15a07
+size 79798
diff --git a/noisier2noiselearningtodenoisefromunpairednoisydata/d9405594-68e8-4730-8872-05e6ff9fb060_origin.pdf b/noisier2noiselearningtodenoisefromunpairednoisydata/d9405594-68e8-4730-8872-05e6ff9fb060_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..5afeb59b1804ef0b7e404133f5b1e7ec29a4636e
--- /dev/null
+++ b/noisier2noiselearningtodenoisefromunpairednoisydata/d9405594-68e8-4730-8872-05e6ff9fb060_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:84c88b6e204345890f9714493751c8f190174d3f52bace470ece26a0b7c98678
+size 12142642
diff --git a/noisier2noiselearningtodenoisefromunpairednoisydata/full.md b/noisier2noiselearningtodenoisefromunpairednoisydata/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..dc5725efeea10fa89e07247fa7f1d4cad9db233f
--- /dev/null
+++ b/noisier2noiselearningtodenoisefromunpairednoisydata/full.md
@@ -0,0 +1,312 @@
+# Noisier2Noise: Learning to Denoise from Unpaired Noisy Data
+
+Nick Moran, Dan Schmidt, Yu Zhong, Patrick Coady
+Algorithmic Systems Group, Analog Devices
+125 Summer Street, Boston MA
+
+{nicholas.moran,daniel.schmidt,yu.zhong,patrick.coady}@analog.com
+
+# Abstract
+
+We present a method for training a neural network to perform image denoising without access to clean training examples or access to paired noisy training examples. Our method requires only a single noisy realization of each training example and a statistical model of the noise distribution, and is applicable to a wide variety of noise models, including spatially structured noise. Our model produces results which are competitive with other learned methods which require richer training data, and outperforms traditional non-learned denoising methods. We present derivations of our method for arbitrary additive noise, an improvement specific to Gaussian additive noise, and an extension to multiplicative Bernoulli noise.
+
+# 1. Introduction
+
+Convolutional neural networks have proven to be powerful tools for many image processing tasks, including denoising[13], inpainting[18], and domain translation[5]. Such networks are typically trained using pairs of inputs and ground-truth target outputs, but there also exist training algorithms which remove the need for ground-truth targets. In the standard formulation of the image denoising task, a network takes as input a noisy image, and produces an estimate of the corresponding clean image. A loss function compares this estimate to the true clean image, providing a supervised learning signal which is used to update the weights of the network. However, there exist many domains in which it is difficult or impossible to collect true clean images, due to limitations of imaging technology, limited illumination, or a variety of other reasons. In such cases, we would like to be able to train a network to perform denoising without it ever having access to a clean image.
+
+We propose a training algorithm which requires only a single noisy realization of each training image, no clean images, and a statistical model of the noise distribution. Our method builds on the Noise2Noise algorithm [11], which also removes the requirement of clean training targets, but
+
+
+Figure 1. Examples of our method (right side) removing Gaussian noise (left side) with $\sigma = 0.05$ (top), 0.1 (middle), and 0.2 (bottom). $\sigma$ values are relative to a $[0,1]$ scale of pixel intensities.
+
+requires two independent noisy realizations of each training image. At a high level, our method is to generate a synthetic noise sample from our statistical model, add it to the already noisy image, and ask the network to predict the original noisy image from this doubly-noisy image. Intuitively, the network will be unable to distinguish the original noise from the additional synthetic noise, and can minimize its loss by predicting that half of the observed noise at each pixel was present in the source image, and the other half was added synthetically. Thus, it will learn to output an image which is halfway between the doubly-noisy input and the unseen true clean image. We can then obtain an estimate of the clean image with a simple manipulation.
+
+# 2. Related Work
+
+Neural networks have shown promising results in image denoising for many years. In [16], the authors propose a denoising autoencoder which takes as input a noisy image and is trained to reproduce a known clean version of that image. This need for clean training targets is shared by many other neural denoising techniques. [19] demonstrate the ability of a neural network to remove a variety of noise distributions by employing residual learning.
+
+There also exist a variety of hand-crafted algorithms for noise removal that do not rely on learning. These have the advantage that they do not require any training corpus, but often require significant expertise to adapt them to a given noise distribution. [2] use a block-matching algorithm to perform denoising given a known noise distribution. [4] and [12] propose algorithms for denoising under more complex, spatially-correlated noise distributions.
+
+While there exist many domains for which pairs of clean and noisy images are readily obtainable, this is not always the case. For settings in which it is only possible to obtain noisy images, the authors of [11] propose to replace the clean target with a second, independent noisy realization of the same image. They observe that adding mean-preserving noise to the targets does not fundamentally change the learning task given a mean-seeking loss function. They demonstrate that networks trained in this manner are able to match the performance of those trained with clean targets. The CycleGAN [20] algorithm can learn to perform denoising as a special case of image-to-image translation. It requires both clean and noisy images, but does not need any pairing between the two sets. The authors of Deep Image Prior [15] demonstrate that denoising can be performed without any training data, using only the inductive bias inherent in the convolutional neural network architecture.
+
+Although it is often easier to obtain multiple noisy realizations than to obtain paired clean and noisy realizations, there still exist scenarios in which it is simply not possible to collect multiple views of the exact same scene, noisy or clean. Both [8] and [1] propose to learn to perform denoising using only a single noisy realization of each training sample. They achieve this through self-supervision: networks are trained to predict the values of pixels given the values of their neighbors. Because the noise is spatially uncorrelated, the networks are unable to predict the noise component, and thus minimize their loss by approximating the true clean value of the target pixels. However, this self-supervision approach is unsuitable for spatially correlated noise; in such a setting, this correlation will enable the network to predict the structured component of the noise, thereby producing output that still contains this component. These methods are further improved by [10] and [9], which integrate information from a noise model to produce higher-quality reconstructions.
+
+Our method of augmenting training images with additional noise is similar to the method of [6], who propose to learn to a network which can be iteratively applied to a noisy image, each time moving it closer to the manifold of clean images. [17] also make use of additional synthetic noise for their network inputs, but propose to train a new network for every image to be denoised.
+
+Our work builds most directly upon the approaches of Noise2Noise, Noise2Void and Noise2Self. Like Noise2Void and Noise2Self, we remove the requirement of paired noisy training data (as is needed in Noise2Noise). We also allow spatially correlated noise models, which are problematic for Noise2Void and Noise2Self. On the other hand, we require the ability to sample from the noise distribution, which the three aforementioned methods do not.
+
+The main contributions of our paper are as follows:
+
+- We present a method for training a neural denoiser with access to only single noisy realizations of training samples.
+- Our method is applicable to both pixel-wise i.i.d. white noise and spatially correlated noise.
+- Our method produces results close in quality to those produced by methods that require either clean training images or paired noisy training images.
+
+# 3. Method
+
+We first present an intuitive motivation of our approach, and then present a mathematical justification.
+
+# 3.1. Motivation
+
+Let $\mathcal{A}$ be a known random distribution, and $M$ and $N$ be two random variables independently drawn from $\mathcal{A}$ . We observe their sum, $Z = M + N$ , and are asked to predict $N$ . Clearly, this is not possible to do perfectly, because we have no way to distinguish the contributions of $N$ and $M$ . If we will pay a cost proportional to the square of our error, what should our prediction be to minimize our expected cost?
+
+It is well known that the squared error cost function is minimized by the expected value of the target. We should therefore let our prediction be $\mathbb{E}[N|Z]$ , which by symmetry is simply $\frac{Z}{2}$ . To see why, note that any estimate of $N$ and the corresponding implicit estimate of $M$ , there is an alternative estimate which switches the two. Because $N$ and $M$ are both independently drawn from $A$ , both of these possible estimates of $N$ are equally probably. The mean of these two estimates is $\frac{Z}{2}$ .
+
+This is the key insight of our method. Given the sum of two i.i.d. noise samples, the best estimate of one of them is half of their sum. Let us now consider a more complicated scenario in which we have an unknown quantity $X$ , and we observe $X + Z$ and try to predict $X + N$ . We argue in
+
+
+
+
+
+
+
+
+Figure 2. The steps of our method with $\sigma = 0.1$ . Top Row: Original clean image (unseen by our method), a singly-noisy realization (which is our training target), a doubly-noisy realization (which is the input to our network). Bottom Row: The raw output of our network, the implicit estimate of the remaining noise, and the final reconstruction after our correction step.
+
+
+
+
+
+the following section that our above insight still holds even with the addition of $X$ : our best estimate of $X + N$ will be $X + \frac{Z}{2}$ . Critically, this value is halfway between $X + Z$ and $X$ . Thus, we can use it to estimate $X$ from $X + Z$ . In the context of image denoising, this means that we can recover an estimate of a clean image given a noisy one by an analogous process in which $X + N$ is the original noisy image, and $M$ is a synthetic sample from the same noise distribution.
+
+# 3.2. Noisier2Noise
+
+We consider a scenario in which we wish to train a neural network to perform image denoising under a fixed, known noise model. Let $\mathcal{X}$ be the distribution of natural images, and let $X\sim \mathcal{X}$ . We are unable to observe $X$ , but are able to capture a single noisy realization $Y\triangleq X + N$ , where $N\sim \mathcal{A}$ and $\mathcal{A}$ is a known noise distribution. Because $\mathcal{A}$ is known, we can draw an additional synthetic noise sample $M\sim \mathcal{A}$ .
+
+Our training procedure is as follows. Given $Y$ , we create a noisier version, $Z \triangleq Y + M = X + N + M$ . We then train the network to predict $Y$ given $Z$ as input, using a pixel-wise $L_{2}$ loss function and standard stochastic gradient descent. Let $f(\cdot; \theta)$ be the neural network parameterized by $\theta$ . Our training process seeks to perform the following minimization:
+
+$$
+\min _ {\theta} \mathbb {E} _ {Z} [ \| f (Z; \theta) - Y \| _ {2} ] \tag {1}
+$$
+
+Note that the network never observes $N$ or $M$ in isolation. Thus, while the true minimizer of the loss function
+
+would be to simply subtract $M$ from the input, $Z$ , this is not possible. The best achievable strategy is instead to predict $\mathbb{E}[Y|Z]$ .
+
+We now argue that it is possible to extract an estimate of the clean image, $\mathbb{E}[X|Z]$ , from an estimate of $\mathbb{E}[Y|Z]$ . We first note that
+
+$$
+\mathbb {E} [ Y | Z ] = \mathbb {E} [ X | Z ] + \mathbb {E} [ N | Z ]. \tag {2}
+$$
+
+Recall that $M$ and $N$ are i.i.d. and therefore and thus have the same expectation given $\mathbf{Z}$ , $\mathbb{E}[M|Z] = \mathbb{E}[N|Z]$ . From this we derive that
+
+$$
+\begin{array}{l} 2 \mathbb {E} [ Y | Z ] = \mathbb {E} [ X | Z ] + (\mathbb {E} [ X | Z ] + \mathbb {E} [ N | Z ] + \mathbb {E} [ M | Z ]) \\ = \mathbb {E} [ X | Z ] + \mathbb {E} [ X + N + M | Z ] \\ = \mathbb {E} [ X | Z ] + Z. \tag {3} \\ \end{array}
+$$
+
+In other words, we have that $\mathbb{E}[X|Z] = 2\mathbb{E}[Y|Z] - Z$ . We can therefore recover an estimate of the clean image by doubling our network's output and subtracting its input.
+
+Intuitively, our network learns to output an image halfway between its doubly-noisy input and its best estimate of the clean image. By taking a second step in the direction from its input to this output, we can generate an estimate of the clean image.
+
+We note that, in practice, there are many plausible clean images which could generate a particular noisy realization. Thus, $\mathbb{E}[X|Z]$ will not be an exact reconstruction of the true clean image, but will instead be the mean of this set of plausible clean images. This is the same uncertainty faced in a setting with clean training targets.
+
+Figure 2 shows the steps of our method at inference time. We begin with a noisy input image, $y$ (top center), and augment it with additional noise to obtain $z$ (top right). We then compute $f(z;\theta)$ to obtain our uncorrected output (bottom left). We next (implicitly) compute $z - f(z;\theta)$ (bottom center) to obtain a estimate of the noise remaining in $f(z;\theta)$ . Subtracting this from $f(z;\theta)$ yields our final reconstruction (bottom right). Note that without our correction step, the raw output of the network is still noisy. Indeed, we should expect it to have noise with a standard deviation of $\frac{\sqrt{2}\sigma}{2}$ .
+
+# 3.3. Improvements
+
+One complication of our method is that our network is trained to take as input doubly-noisy images, and we therefore need to add this extra noise even during inference, resulting in the network having an artificially poor view of the noisy image. It may be desirable to reduce this effect, and feed the network an input that is closer to the singly-noisy image. We explore two options for accomplishing this.
+
+The first is to simply feed the network unaugmented noisy images at test time, with the hope that it will be somewhat robust to this shift in input distribution. This is plausible because, during training, the network will see local patches of images which happen to have relatively small noise values, simply due to chance. It is not unreasonable to imagine that the network will also be capable of operating on an image in which all pixels have a smaller than normal noise magnitude. While this approach is not a principled one, we find that it is able to produce PSNR improvements over the base algorithm in practice. However, the visual quality of results from this method tend to be lower, as they appear overly smooth and lack fine detail. This approach may be well-suited for domains in which mean squared error is truly the important metric, but not in domains where visual quality is paramount. It is important to note that when feeding the network an unaugmented input, we still must perform the same correction step as in the standard method. The network still tends to produce an output which is approximately halfway between its input and the clean target, even though its input is now less noisy than those seen during training.
+
+The second option is to note that we need not add noise of the same intensity as the natural noise during training. For example, let our noise distribution $\mathcal{A}$ have standard deviation $\sigma_{\mathcal{A}}$ . In our standard approach, we sample our synthetic noise $M \sim \mathcal{A}$ . Instead, we could sample $M \sim \mathcal{B}$ , where $\sigma_{\mathcal{B}} < \sigma_{\mathcal{A}}$ , thus reducing the additional distortion caused by our synthetic noise, and affording the network a clearer view of the unaugmented image. Changing the distribution from which $M$ is sampled also changes the value of $\mathbb{E}[Y|Z]$ , and thus induces a change in our correction step. The derivation of the proper correction depends on the specific choice of $\mathcal{A}$ and $\mathcal{B}$ . Here we derive it for zero-mean
+
+Gaussians $\mathcal{A}$ and $\mathcal{B}$ with $\sigma_{\mathcal{B}} = \alpha \sigma_{\mathcal{A}}$
+
+We will make use of the following lemma:
+
+Lemma 3.1. Let $N \sim \mathcal{A}$ and $M \sim \mathcal{B}$ , where $\mathcal{A}$ and $\mathcal{B}$ are Gaussians with zero mean, and $\sigma_{\mathcal{B}} = \alpha \sigma_{\mathcal{A}}$ . Further let $X \sim \mathcal{X}$ , $Y \triangleq X + N$ and $Z \triangleq X + N + M$ . Then $\mathbb{E}[M|Z] = \alpha^2 \mathbb{E}[N|Z]$ .
+
+We first show that $\mathbb{E}[M|Z,X] = \alpha^2\mathbb{E}[N|Z,X]$
+
+$$
+\begin{array}{l} \mathbb {P} (N = n | Z = z, X = x) \propto \mathbb {P} (N = n) \mathbb {P} (M = z - x - n) \\ \propto \exp \left\{- \frac {n ^ {2}}{2 \sigma^ {2}} \right\} \exp \left\{- \frac {(z - x - n) ^ {2}}{2 \alpha^ {2} \sigma^ {2}} \right\} \\ \propto \exp \left\{- \frac {\alpha^ {2} n ^ {2} + (z - x - n) ^ {2}}{2 \alpha^ {2} \sigma^ {2}} \right\} \tag {4} \\ \end{array}
+$$
+
+This distribution is symmetrical, and has mean $\frac{1}{1 + \alpha^2} (z - x)$ . By a similar calculation, $\mathbb{P}(M|Z = z,X = x)$ has mean $\frac{\alpha^2}{1 + \alpha^2} (z - x)$ , thus $\mathbb{E}[M|Z = z,X = x] = \alpha^2\mathbb{E}[N|Z = z,X = x]$ . This is true independent of $x$ and $z$ , and thus we have $\mathbb{E}[M|Z] = \alpha^2\mathbb{E}[N|Z]$ .
+
+To recover $\mathbb{E}[X|Z]$ from an estimate of $\mathbb{E}[Y|Z]$ , we first note that
+
+$$
+\begin{array}{l} (1 + \alpha^ {2}) \mathbb {E} [ Y | Z ] \\ = \mathbb {E} [ X | Z ] + \mathbb {E} [ N | Z ] + \alpha^ {2} \mathbb {E} [ X | Z ] + \alpha^ {2} \mathbb {E} [ N | Z ] \\ = \alpha^ {2} \mathbb {E} [ X | Z ] + (\mathbb {E} [ X | Z ] + \mathbb {E} [ N | Z ] + \mathbb {E} [ M | Z ]) \\ = \alpha^ {2} \mathbb {E} [ X | Z ] + Z. \tag {5} \\ \end{array}
+$$
+
+Therefore,
+
+$$
+\mathbb {E} [ X | Z ] = \frac {(1 + \alpha^ {2}) \mathbb {E} [ Y | Z ] - Z}{\alpha^ {2}}. \tag {6}
+$$
+
+When $\alpha = 1$ , this reduces to $\mathbb{E}[X|Z] = 2\mathbb{E}[Y|Z] - Z$ , exactly the formula derived in the previous section.
+
+We note that the optimal value of $\alpha$ may depend on the dataset and the noise model, and may be difficult or impossible to derive in the absence of clean validation data. Intuitively, a smaller $\alpha$ affords the network a clearer view of the original noisy image. However, during the correction step, the output of the network is multiplied by $\alpha^{-2}$ , so as $\alpha$ decreases our performance becomes more sensitive to small errors in the network's prediction. We find that $\alpha = 0.5$ works well for a variety of noise levels in our experiments. We also find that a network trained for one value of $\alpha$ can be quickly fine-tuned to work with a new value, allowing rapid exploration of candidate values.
+
+# 3.4. Non-Additive Noise
+
+Our discussion so far has focused on the case of additive noise models, and the training procedures and correction steps we derived have been specific to that domain. We now
+
+
+Figure 3. Results of our method with $\alpha = 0.5$ on Gaussian noise of three different magnitudes. The left-most image is the original sample from the KODAK test set, and the three columns show singly-noisy realizations and our reconstructions.
+
+provide an example of how our method can be applied in the case of a non-additive noise model. Specifically, we analyze multiplicative Bernoulli noise, as in [11]. As before, we have an unobserved clean image, $X \sim \mathcal{X}$ , and we observe a single noisy realization $Y$ of that clean image. Noise takes the form of a pixel-wise binary mask, $N$ , which is elementwise zero with probability $p$ and one otherwise. Thus $Y \triangleq N \odot X$ , where $\odot$ is element-wise multiplication.
+
+During training, we independently sample another pixelwise binary mask, $M$ , which is element-wise zero with probability $q$ and one otherwise, and construct $Z \triangleq M \odot Y = M \odot N \odot X$ . The network takes $Z$ as input and is asked to predict $Y$ , with the same $L_{2}$ loss function as in the previous section. Thus the network learns the function $f(z; \theta) \approx \mathbb{E}[Y | Z = z]$ .
+
+Just as it was not possible for the network to separate two additive noise sources, it is similarly not possible for the network to perfectly determine whether a particular masked pixel in $Z$ was masked by $N$ (and therefore is masked in $Y$ ) or only by $M$ (and therefore is not masked in $Y$ ).
+
+If a particular pixel location $i,j$ is masked in $Z$ , then the probability that it was also masked in $Y$ is
+
+$$
+\mathbb {P} \left(Y _ {i j} = 0 \mid Z _ {i j} = 0\right) = \frac {p}{p + q - p q}. \tag {7}
+$$
+
+We define this probability as $k \triangleq \mathbb{P}(Y_{ij} = 0|Z_{ij} = 0)$ for brevity. For a pixel location $i, j$ that is masked in $Z$ ,
+
+$$
+\mathbb {E} \left[ Y _ {i j} | Z \right] = (1 - k) \mathbb {E} \left[ X _ {i j} | Z \right] + k \cdot 0. \tag {8}
+$$
+
+Similarly, for a pixel location that is not masked in $Z$ ,
+
+$$
+\mathbb {E} \left[ Y _ {i j} | Z \right] = Z _ {i j}. \tag {9}
+$$
+
+Noting that $\mathbb{E}[X_{ij}|Z] = Z_{ij}$ when $i,j$ is not masked, and that $Z_{ij} = 0$ when $i,j$ is masked, we can rewrite both expressions as
+
+$$
+\mathbb {E} [ Y | Z ] = (1 - k) \mathbb {E} [ X | Z ] + k Z. \tag {10}
+$$
+
+Thus, we can recover an estimate of the clean image with the formula
+
+$$
+\mathbb {E} [ X | Z ] = \frac {\mathbb {E} [ Y | Z ] - k Z}{(1 - k)}. \tag {11}
+$$
+
+As in the additive case, we are free to adjust $q$ to minimize the amount of synthetic corruption beyond that in the original image, but face a tradeoff as lower values of $q$ result in a larger value of $k$ , and thus magnify the consequence of any errors our network makes in approximating $\mathbb{E}[Y|Z]$ .
+
+# 4. Experiments
+
+We present experimental results for a network trained and evaluated on synthetically generated noisy images. We use ImageNet[3] as our source of clean1 images, and apply Gaussian noise to generate noisy and doubly-noisy training images. We use the KODAK image set2 as our test set.
+
+We use the same network architecture as [11]. We find that a larger batch size is helpful to stabilize training, and so we use a batch size of 32. We use the Adam optimizer [7] with an initial learning rate of $10^{-3}$ for 150,000 batches, after which we reduce it to $10^{-4}$ for another 15,000 batches (giving 165,000 batches in total).
+
+We present comparisons against Noise2Noise, Noise2Void, Deep Image Prior (DIP) and BM3D. For Noise2Noise, we use the authors' pre-trained network weights3, for BM3D we use the authors' implementation of CBM3D (BM3D for color images)4, and for Noise2Void, we train models using the authors' implementation5 with
+
+
+Figure 4. A comparison of our method with $\alpha = 0.5$ against Noise2Noise and BM3D.
+
+a fixed noise level during training. For DIP, we use the authors' implementation and default hyperparameters, with the exception of using only 1,800 iterations for sigma $= 0.2$ , for improved performance. For Noise2Void we train on the Color BSD68 dataset[14], so as to match the experimental design in the original work and for compatibility with the provided implementation. While we obtain PSNR values on our test set that are in line with those reported in the Noise2Void paper, it may be possible to achieve higher performance with a larger training set. Our reported values for Noise2Void should therefore be regarded as a lower bound on that method's potential.
+
+It is important to note that these methods make different assumptions about the task, and thus direct comparison may be misleading. While we impose a weaker requirement on the availability of training data than Noise2Noise does (single noisy images vs. paired noisy images), we also impose a stronger requirement on knowledge of the noise model (a known noise model vs. blind denoising). BM3D requires an estimate of the noise model, but is not a learned denoiser and therefore requires no training data. Like Noise2Noise, our method is applicable in settings with non-Gaussian, spatially-correlated noise, whereas BM3D is specialized for the additive white Gaussian noise scenario. Similar to our method, Noise2Void does not require clean or paired training data, and further does not require knowledge of the noise model. However, they do require that the noise is pixel-wise independent. Deep Image Prior requires no training data whatsoever, but requires thousands of optimization steps for each input image.
+
+In Table 1 we compare average PSNR on the KODAK image set under Gaussian white noise with various intensities. For results with $\alpha \neq 1$ , we fine-tune the network trained with $\alpha = 1$ for 20,000 additional batches with a
+
+| Method | σ = 0.05 | σ = 0.1 | σ = 0.2 |
| Noisy Input | 26.02 | 20.00 | 13.98 |
| Ours, α = 1 | 33.98 | 30.80 | 27.92 |
| Ours-SN, α = 1 | 32.85 | 30.42 | 27.17 |
| Ours, α = 0.5 | 35.09 | 31.80 | 28.73 |
| Ours-SN, α = 0.5 | 35.42 | 31.96 | 28.69 |
| Ours, α = 0.25 | 35.18 | 31.79 | 28.30 |
| Ours-SN, α = 0.25 | 35.32 | 31.91 | 28.41 |
| Noise2Noise[11] | 35.64 | 32.29 | 29.13 |
| CBM3D[2] | 35.27 | 31.71 | 28.54 |
| Noise2Void[8] | 29.45 | 29.81 | 27.57 |
| DIP[15] | 32.02 | 30.06 | 26.43 |
+
+Table 1. Average PSNR values on the KÖDAK image set at various noise levels. $\sigma$ values use a [0,1] range for pixel intensities. Ours-SN is the strategy of feeding singly-noisy images to the network during test time.
+
+| Method | σ = 0.05 | σ = 0.1 | σ = 0.2 |
| Noisy Input | 0.586 | 0.344 | 0.167 |
| Ours, α = 0.5 | 0.929 | 0.873 | 0.787 |
| Ours-SN α = 0.5 | 0.930 | 0.869 | 0.770 |
| Noise2Noise | 0.936 | 0.883 | 0.800 |
+
+Table 2. Average SSIM values on the KODAK image set at various noise levels.
+
+learning rate of $10^{-4}$
+
+Table 2 shows the average SSIM values on the same test set. For brevity, we only evaluate SSIM on selected methods, as the general trend is the same as the PSNR results. We do note that SSIM is more sensitive to the blurring produced by the Ours-SN strategy, as seen in Figure 5.
+
+We find that our method is able to produce reconstructions with higher PSNR than BM3D, DIP and Noise2Void with appropriate values of $\alpha$ , but our reconstruction quality suffers when $\alpha = 1$ . Noise2Noise consistently produces reconstructions that are a few tenths of a dB better than ours,
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 5. A comparison of results when using doubly-noisy inputs (bottom left) and singly-noisy inputs (bottom right) at inference time, with $\sigma = 0.1$ and $\alpha = 1$ .
+
+
+
+illustrating the value of paired training data when available. A qualitative comparison of our method with Noise2Noise and BM3D is shown in Figure 4.
+
+Across noise levels, we find that $\alpha = 0.5$ is a successful setting. As discussed previously, with lower $\alpha$ , our network receives a clearer view of the unaugmented image, and thus is able to recover more detail. On the other hand, lower $\alpha$ also results in a larger multiplier in the correction step, which magnifies any errors. We see that $\alpha = 0.25$ performs slightly worse than $\alpha = 0.5$ for many settings as the latter effect becomes more pronounced.
+
+We also observe that showing the network the singly-noisy version of the image during test time, rather than adding additional noise, harms performance with larger $\alpha$ , but can improve performance with smaller $\alpha$ . Using singly-noisy inputs at test time offers a tradeoff. On the one hand, these inputs are outside of the distribution the network saw during training, and thus we should expect some degradation in performance; on the other hand, these inputs are cleaner than those with additional noise, and therefore give the network a better view of the underlying signal. As we decrease $\alpha$ , we decrease the magnitude of the train/test distributional shift while maintaining the benefit of a cleaner input. As shown in Figure 5, feeding the network singly-noisy inputs can result in the loss of fine detail and a corresponding decrease in visual quality. This overly-smooth appearance occurs even for settings in which PSNR is higher for singly-noisy inputs than for augmented inputs.
+
+Figure 3 shows qualitative results of our method ("Ours, $\alpha = 0.5$ in Table 1) on a sample from the KODAK test
+
+| Method | PSNR | SSIM |
| Raw Noisy | 25.21 | 0.764 |
| Ours, α = 1 | 31.66 | 0.959 |
| Ours, α = 0.5 | 32.55 | 0.965 |
| Noise2Noise | 33.45 | 0.970 |
+
+Table 3. Average PSNR and SSIM values on the KODAK image set under a structured noise model.
+
+
+
+
+Figure 6. Results of our method on structured noise.
+
+
+
+
+
+
+
+
+
+set. At lower noise levels, we observe strong recovery of both structure (eye) and texture (feathers). As the magnitude of the noise increases, our network struggles to recover the fine, high-frequency detail of the feather texture. Because we train with an $L_{2}$ loss function, our network is encouraged to produce the mean of all plausible underlying images when it is uncertain, which results in an unnaturally smooth bird.
+
+In Figure 6, we present results for our model trained on structured noise. This noise is produced by sampling pixelwise i.i.d. white noise, and then convolving it with a $21 \times 21$ filter with coefficients proportional to a 2D Gaussian with $\sigma = 10\mathrm{px}$ . Our method is able to remove the noise without disrupting fine detail in the sails and water. It does, however, struggle to recover the correct texture of the clouds, presumably because their texture has roughly the same frequency as the noise.
+
+Table 3 shows the PSNR and SSIM comparison for our method and Noise2Noise on this structured noise model. As expected, the differences between our method and Noise2Noise are of the same magnitude as in the i.i.d. white noise setting.
+
+Figure 7 shows an example of our method trained on multiplicative Bernoulli noise, with $p = q = 0.5$ . At inference time, we feed only the singly-noisy version to the network. Empirically, we observe that doing so is particularly helpful in this setting, presumably because the network has no trouble differentiating noisy pixels from clean pixels. In principle, we can slightly improve the results further by overwriting the network's predictions for unmasked
+
+
+Figure 7. Results of our method on multiplicative Bernoulli noise.
+
+
+
+
+
+pixels with their input values, but we show here the results when the network is asked to predict the values of all pixels. We obtain an average PSNR of 31.73 (32.63 when retaining unmasked input pixels) on the KODAK set, which is comparable to the 32.02 reported by Noise2Noise.
+
+# 5. Future Work
+
+As noted previously, there are two types of uncertainty the network must contend with when attempting to predict its target. The first is uncertainty about which noise is from $N$ and which is from $M$ , and the second is uncertainty about the true value of $X$ . While we hope that uncertainty about $X$ is small in practice, there will always be some amount of ambiguity. In principle, any given noisy image might plausibly correspond to many clean images. Our method uses an $L_{2}$ loss function because it induces the desired mean-finding behavior when presented with the first type of uncertainty. However, this same behavior is also induced when faced with the second type of uncertainty. In other words, we should expect our model to output the mean over a distribution of plausible clean images given the noisy input.
+
+Additional regularization on the output of our model may be able to discourage undesirable blurring across plausible clean images. We should expect that the residual implied between our model's raw output and the reconstruction should look like a sample drawn from our noise model with the appropriate standard deviation. Our future work will investigate whether regularization that penalizes unrealistic residuals is able to produce higher visual quality reconstructions. In particular, we intend to explore penalizing simple statistics of the residual (mean, variance, etc.) that differ from their correct values, as well as more advanced approaches such as training a GAN-style discriminator to attempt to differentiate residuals from true noise samples. The latter approach is attractive as it removes the need for the discriminator to learn anything about the complicated manifold of natural images, and instead only asks it to dis
+
+tinguish samples from a simple, well-behaved noise distribution.
+
+# 6. Conclusion
+
+In summary, our method enables the training of a denoising neural network in settings in which prior techniques were not feasible. Where Noise2Noise requires paired noisy images, our method requires only single noisy images. Where Noise2Void requires pixel-wise i.i.d. noise, our method is applicable to spatially structured noise as well. We are able to produce reconstructions that are within 0.5dB of those produced by Noise2Noise, and higher in quality than those produced by Noise2Void, DIP and BM3D.
+
+# References
+
+[1] Joshua Batson and Loic Royer. Noise2self: Blind denoising by self-supervision. arXiv preprint arXiv:1901.11365, 2019.
+[2] Kostadin Dabov, Alessandro Foi, Vladimir Katkovnik, and Karen Egiazarian. Image denoising by sparse 3-d transform-domain collaborative filtering. IEEE Transactions on image processing, 16(8):2080-2095, 2007.
+[3] 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.
+[4] Bart Goossens, Aleksandra Pizurica, and Wilfried Philips. Removal of correlated noise by modeling the signal of interest in the wavelet domain. IEEE transactions on image processing, 18(6):1153-1165, 2009.
+[5] Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1125-1134, 2017.
+[6] Rohit Jena. An approach to image denoising using manifold approximation without clean images. arXiv preprint arXiv:1904.12323, 2019.
+[7] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
+[8] Alexander Krull, Tim-Oliver Buchholz, and Florian Jug. Noise2void-learning denoising from single noisy images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2129-2137, 2019.
+[9] Alexander Krull, Tomas Vicar, and Florian Jug. Probabilistic noise2void: Unsupervised content-aware denoising. arXiv preprint arXiv:1906.00651, 2019.
+[10] Samuli Laine, Jaakko Lehtinen, and Timo Aila. Self-supervised deep image denoising. arXiv preprint arXiv:1901.10277, 2019.
+[11] Jaakko Lehtinen, Jacob Munkberg, Jon Hasselgren, Samuli Laine, Tero Karras, Miika Aittala, and Timo Aila. Noise2noise: Learning image restoration without clean data. arXiv preprint arXiv:1803.04189, 2018.
+
+[12] Ymir Mäkinen, Lucio Azzari, and Alessandro Foi. Exact transform-domain noise variance for collaborative filtering of stationary correlated noise. In 2019 IEEE International Conference on Image Processing (ICIP), pages 185-189. IEEE, 2019.
+[13] Xiao-Jiao Mao, Chunhua Shen, and Yu-Bin Yang. Image restoration using convolutional auto-encoders with symmetric skip connections. arXiv preprint arXiv:1606.08921, 2016.
+[14] D. Martin, C. Fowlkes, D. Tal, and J. Malik. A database of human segmented natural images and its application to evaluating segmentation algorithms and measuring ecological statistics. In Proc. 8th Int'l Conf. Computer Vision, volume 2, pages 416-423, July 2001.
+[15] Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. Deep image prior. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9446-9454, 2018.
+[16] Junyuan Xie, Linli Xu, and Enhong Chen. Image denoising and inpainting with deep neural networks. In Advances in neural information processing systems, pages 341-349, 2012.
+[17] Jun Xu, Yuan Huang, Li Liu, Fan Zhu, Xingsong Hou, and Ling Shao. Noisy-as-clean: Learning unsupervised denoising from the corrupted image. arXiv preprint arXiv:1906.06878, 2019.
+[18] Chao Yang, Xin Lu, Zhe Lin, Eli Shechtman, Oliver Wang, and Hao Li. High-resolution image inpainting using multiscale neural patch synthesis. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6721-6729, 2017.
+[19] 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.
+[20] 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/noisier2noiselearningtodenoisefromunpairednoisydata/images.zip b/noisier2noiselearningtodenoisefromunpairednoisydata/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..4bda5c22b5891fc38ecdd43002fa42038afcd7c3
--- /dev/null
+++ b/noisier2noiselearningtodenoisefromunpairednoisydata/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0b33e3ab43c9a5e7c012787cc171dd8fc7286a0098a54f80ed394b2cf3e29d8b
+size 863699
diff --git a/noisier2noiselearningtodenoisefromunpairednoisydata/layout.json b/noisier2noiselearningtodenoisefromunpairednoisydata/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..6553fd16c1372a39bf6cfc9107150cfea953714b
--- /dev/null
+++ b/noisier2noiselearningtodenoisefromunpairednoisydata/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3c90e283cad31583077e2411b7087508576da35e7581f331604eedf0387baf97
+size 418872
diff --git a/nonadversarialvideosynthesiswithlearnedpriors/1f083edd-9c32-4c95-9aec-d6df456ac4b7_content_list.json b/nonadversarialvideosynthesiswithlearnedpriors/1f083edd-9c32-4c95-9aec-d6df456ac4b7_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..1cd32662f80132412dad943aa155d71e21d85ed7
--- /dev/null
+++ b/nonadversarialvideosynthesiswithlearnedpriors/1f083edd-9c32-4c95-9aec-d6df456ac4b7_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a07671b4f9747b6c6a8939e34ba6bc5651f3a9ef3b97ce284868c898cd43d336
+size 79137
diff --git a/nonadversarialvideosynthesiswithlearnedpriors/1f083edd-9c32-4c95-9aec-d6df456ac4b7_model.json b/nonadversarialvideosynthesiswithlearnedpriors/1f083edd-9c32-4c95-9aec-d6df456ac4b7_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..cf69d8ccf6ad5d2bf56a92bbec5003414d7f1b91
--- /dev/null
+++ b/nonadversarialvideosynthesiswithlearnedpriors/1f083edd-9c32-4c95-9aec-d6df456ac4b7_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ff60c3f2b34a734b238d9d27011cb47159fef74e4706d330f6f4a9b98c1258f7
+size 95302
diff --git a/nonadversarialvideosynthesiswithlearnedpriors/1f083edd-9c32-4c95-9aec-d6df456ac4b7_origin.pdf b/nonadversarialvideosynthesiswithlearnedpriors/1f083edd-9c32-4c95-9aec-d6df456ac4b7_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..a570e34e5c6240ac8508e4e4b4088252c35627b7
--- /dev/null
+++ b/nonadversarialvideosynthesiswithlearnedpriors/1f083edd-9c32-4c95-9aec-d6df456ac4b7_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:50508e55911f69f1dd517231058ea84a22d0bab76cab64927df97734396c735e
+size 1424763
diff --git a/nonadversarialvideosynthesiswithlearnedpriors/full.md b/nonadversarialvideosynthesiswithlearnedpriors/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..2d1df9f35e45a58d535e3607068e8a537022cca9
--- /dev/null
+++ b/nonadversarialvideosynthesiswithlearnedpriors/full.md
@@ -0,0 +1,329 @@
+# Non-Adversarial Video Synthesis with Learned Priors
+
+Abhishek Aich\*, Akash Gupta\*, Rameswar Panda\*, Rakib Hyder\*, M. Salman Asif\*, Amit K. Roy-Chowdhury\*
+
+University of California, Riverside†, IBM Research AI, Cambridge‡
+
+{aaich001@, agupt013@, rpand002, rhyde001@, sasif@ece, amertc@ece}.ucr.edu
+
+# Abstract
+
+Most of the existing works in video synthesis focus on generating videos using adversarial learning. Despite their success, these methods often require input reference frame or fail to generate diverse videos from the given data distribution, with little to no uniformity in the quality of videos that can be generated. Different from these methods, we focus on the problem of generating videos from latent noise vectors, without any reference input frames. To this end, we develop a novel approach that jointly optimizes the input latent space, the weights of a recurrent neural network and a generator through non-adversarial learning. Optimizing for the input latent space along with the network weights allows us to generate videos in a controlled environment, i.e., we can faithfully generate all videos the model has seen during the learning process as well as new unseen videos. Extensive experiments on three challenging and diverse datasets well demonstrate that our proposed approach generates superior quality videos compared to the existing state-of-the-art methods.
+
+# 1. Introduction
+
+Video synthesis is an open and challenging problem in computer vision. As literature suggests, a deeper understanding of spatio-temporal behavior of video frame sequences can directly provide insights in choosing priors, future prediction, and feature learning [32, 34]. Much progress has been made in developing variety of ways to generate videos which can be classified into broadly two categories: class of video generation methods which require random latent vectors without any reference input pixel [24, 31, 32], and class of video generation methods which do depend on reference input pixels [10, 28, 34]. Current literature contains methods mostly from the second class which often requires some human intervention [10, 34].
+
+In general, Generative Adversarial Networks (GANs) [8]
+
+
+Figure 1: Comparison of proposed non-adversarial approach to one representative adversarial approach (MoCoGAN [31]) on the Chair-CAD [2] dataset. Top: MoCoGAN often generates blurry frames including similar type of chairs for different videos as the time step increases. Bottom: Our approach1, on the other hand, generates relatively sharper frames, maintaining consistency with the type of chairs unique to each video in the dataset.
+
+have shown remarkable success in various kinds of video modality problems [13, 16, 18, 24]. Initially, video generation frameworks predominantly used GANs to synthesize videos from latent noise vectors. For example, VGAN [32] and TGAN [24] proposed generative models that synthesize videos from random latent vectors with deep convolutional GAN. Recently, MoCoGAN [31] proposed to decompose a video into content and motion parts using a generator guided by two discriminators. During testing, these frameworks generate videos that are captured in the range of the trained generator, by taking random latent vectors. While all these methods have obtained reasonable performance on commonly used benchmark datasets, they utilize adversarial learning to train their models and hence, inherit the shortcomings of GANs. Specifically, GANs are often very sensitive to multiple factors such as random network initialization, and type of layers employed to build the network [14, 25]. Some infamous drawbacks of GANs are mode-collapse (i.e., able to generate only some parts of the data
+
+distribution: see Fig. 1 for an example) and/or vanishing generator gradients due to discriminator being way better in distinguishing fake samples and real samples [1].
+
+Non-adversarial approaches [4, 11, 15] have recently been explored to tackle these challenges. For example, Generative Latent Optimization (GLO) [4] and Generative Latent Nearest Neighbor (GLANN) [11] investigate the importance of inductive bias in convolutional networks by disconnecting the discriminator for a non-adversarial learning protocol of GANs. These works show that without a discriminator, a generator can be learned to map the training images in the given data distribution to a lower dimensional latent space that is learned in conjunction with the weights of the generative network. Such procedure not only avoids the mode-collapse problem of the generators, but also provides the user an optimized low dimensional latent representation (embedding) of the data in contrast with the random latent space as in GANs. Recently Video-VAE [10] proposed to use Variational Auto-Encoder (VAE) for conditional video synthesis, either by randomly generating or providing the first frame to the model for synthesizing a video. However, the quality of generated videos using Video-VAE often depends on the provided input frame. Non-adversarial video synthesis without any visual inputs still remains as a novel and rarely addressed problem.
+
+In this paper, we propose a novel non-adversarial framework to generate videos in a controllable manner without any reference frame. Specifically, we propose to synthesize videos from two optimized latent spaces, one providing control over the static portion of the video (static latent space) and the other over the transient portion of the video (transient latent space). We propose to jointly optimize these two spaces while optimizing the network (a generative and a recurrent network) weights with the help of regression-based reconstruction loss and a triplet loss.
+
+Our approach works as follows. During training, we jointly optimize over network weights and latent spaces (both static and transient) and obtain a common transient latent space, and individual static latent space dictionary for all videos sharing the same class (see Fig. 2). During testing, we randomly choose a static vector from the dictionary, concatenate it with the transient latent vector and generate a video. This enables us to obtain a controlled environment of diverse video generation from learned latent vectors for each video in the given dataset, while maintaining almost uniform quality. In addition, the proposed approach also allows a concise video data representation in form of learned vectors, frame interpolation (using a low rank constraint introduced in [12]), and generation of videos unseen during the learning paradigm.
+
+The key contributions of our work are as follows.
+
+- We propose a novel framework for generating a wide range of diverse videos from learned latent vectors with
+
+out any conditional input reference frame with almost uniform visual quality. Our framework obtains a latent space dictionary on both static and transient portions for the training video dataset, which enables us to generate even unseen videos with almost equal quality by providing combinations of static and transient latent vectors that were not part of training data.
+
+- Our extensive experiments on multiple datasets well demonstrate that the proposed method, without the adversarial training protocol, has better or at par, performance with current state-of-the-art methods [24, 31, 32]. Moreover, we do not need to optimize the (multiple) discriminator networks as in previous methods [24, 31, 32] which offers a computational advantage.
+
+# 2. Related Works
+
+Our work relates to two major research directions: video synthesis and non-adversarial learning. This section focuses on some representative methods closely related to our work.
+
+# 2.1. Video Synthesis
+
+Video synthesis has been studied from multiple perspectives [10, 24, 28, 31, 32] (see Tab. 1 for a categorization of existing methods). VGAN [32] demonstrates that a video can be divided into foreground and background using deep neural networks. TGAN [24] proposes to use a generator to capture temporal dynamics by generating correlated latent codes for each video frame and then using an image generator to map each of these latent codes to a single frame for the whole video. MoCoGAN [31] presents a simple approach to separate content and motion latent codes of a video using adversarial learning. The most relevant work for us is Video-VAE [10] that extends the idea of image generation to video generation using VAE by proposing a structured latent space in conjunction with the VAE architecture for video synthesis. While this method doesn't require a discriminator network, it depends on reference input frame to generate a video. In contrast, our method proposes a efficient framework for synthesizing videos from learnable latent vectors without any input frame. This gives a controlled environment for video synthesis that even enables us to generate visually good quality unseen videos through combining static and transient parts.
+
+# 2.2. Non-Adversarial Learning
+
+Generative adversarial networks, as powerful as they are in pixel space synthesis, are also difficult to train. This is owing to the saddle-point based optimization game between the generator and the discriminator. On top of the challenges discussed in the previous section, GANs require careful user driven configuration tuning which may
+
+
+Figure 2: Overview of the proposed method. Videos can be broken down into two main parts: static and transient components. To capture this, we map a video (with $L$ frame sequence) into two learnable latent spaces. We jointly learn the static latent space and the transient latent space along with the network weights. We then use these learned latent spaces to generate videos at the inference time. See Sec. 3 for more details.
+
+| Methods | Settings |
| Adversarial learning? | Input frame? | Input latent vectors? |
| VGAN [32] | ✓ | X | ✓ (random) |
| TGAN [24] | ✓ | X | ✓ (random) |
| MoCoGAN [31] | ✓ | X | ✓ (random) |
| Video-VAE [10] | X | ✓ | ✓ (random) |
| Ours | X | X | ✓ (learned) |
+
+Table 1: Categorization of prior works in video synthesis. Different from existing methods, our model doesn't require a discriminator, or any reference input frame. However, since we have learned latent vectors, we have control of the kind of videos the model should generate.
+
+not guarantee same performance for every run. Some techniques to make the generator agnostic to described problems have been discussed in [25]. The other alternative to the same has given rise to non-adversarial learning of generative networks [4, 11]. Both [4, 11] showed that properties of convolutional GANs can be mimicked using simple reconstruction losses while discarding the discriminator.
+
+While there has been some work on image generation from learned latent vectors [4, 11], our work significantly differs from these methods as we do not map all the frames pixel-wise in a given video to the same latent distribution. This is because doing so would require a separate latent space (hence, a separate model for each video) for all the videos in a given dataset, and performing any operation in that space would naturally become video specific. Instead,
+
+we divide the latent space of videos sharing the same class into two parts - static and transient. This gives us a dictionary of static latent vectors for all videos and a common transient latent subspace. Hence, any random video of the dataset can now be represented by the combination of one static vector (which remains same for all frames) and the common transient subspace.
+
+# 3. Formulation
+
+Define a video clip $\mathsf{V}$ represented by $L$ frames as $\mathsf{V} = [v_{1}, v_{2}, \dots, v_{L}]$ . Corresponding to each frame $v_{i}$ , let there be a point $z_{i}$ in latent space $\mathcal{Z}_{\mathsf{V}} \in \mathbb{R}^{D \times L}$ such that
+
+$$
+\mathcal {Z} _ {\vee} = \left[ z _ {1}, z _ {2}, \dots , z _ {L} \right] \tag {1}
+$$
+
+which forms a path of length $L$ . We propose to disentangle a video into two parts: a static constituent, which captures the constant portion of the video common for all frames, and a transient constituent which represents the temporal dynamics between all the frames in the video. Hence, let $\mathcal{Z}_{\mathrm{V}}$ be decomposed as $\mathcal{Z}_{\mathrm{V}} = [\mathcal{Z}_{\mathrm{s}}^{\top}, \mathcal{Z}_{\mathrm{t}}^{\top}]^{\top}$ where $\mathcal{Z}_{\mathrm{s}} \in \mathbb{R}^{D_{\mathrm{s}} \times L}$ represents the static subspace and $\mathcal{Z}_{\mathrm{t}} \in \mathbb{R}^{D_{\mathrm{t}} \times L}$ represents the transient subspace with $D = D_{\mathrm{s}} + D_{\mathrm{t}}$ . Thus $\{z_i\}_{i=1}^L$ in (1) can be expressed as $z_i = \left[z_i^{(\mathrm{s})\top}, z_i^{(\mathrm{t})\top}\right]^{\top} \forall i = 1, 2, \dots, L$ . Next assuming that the video is of short length, we can fix $z_i^{(\mathrm{s})} = z^{(\mathrm{s})}$ for all frames after sampling only once. Therefore, (1) can be expressed as
+
+$$
+\mathcal {Z} _ {\mathrm {V}} = \left[ \left[ \begin{array}{l} z ^ {(\mathrm {s})} \\ z _ {1} ^ {(\mathrm {t})} \end{array} \right], \left[ \begin{array}{l} z ^ {(\mathrm {s})} \\ z _ {2} ^ {(\mathrm {t})} \end{array} \right], \dots , \left[ \begin{array}{l} z ^ {(\mathrm {s})} \\ z _ {L} ^ {(\mathrm {t})} \end{array} \right] \right] \tag {2}
+$$
+
+The transient portion will represent the motion of a given video. Intuitively, the latent vectors corresponding to this
+
+transient state should be correlated, or in other words, will form a path between $z_1^{(\mathrm{t})}$ and $z_L^{(\mathrm{t})}$ . Specifically, the frames in a video are correlated in time and hence a frame $v_i$ at time $i = T$ is a function of all previous frames $\{v_i\}_{i=1}^{T-1}$ . As a result, their corresponding transient representation should also exhibit such a trajectory. This kind of representation of latent vectors can be obtained by employing a Recurrent Neural Network (RNN) where output of each cell of the network is a function of its previous state or input. Denote the RNN as $\mathcal{R}$ with weights $\theta$ . Then, the RNN output $\mathcal{R}(z_i) = \{r_i^{(\mathrm{t})}\} \forall i = 1,2,\dots,L$ is a sequence of correlated variables representing the transient state of the video.
+
+# 3.1. Learning Network Weights
+
+Define a generative network $\mathcal{G}$ with weights represented by $\gamma$ . $\mathcal{G}$ takes latent vectors sampled from $\mathcal{Z}_{\mathsf{V}}$ as input and predicts up to $L$ frames of the video clip. For a set of $N$ videos, initialize set of $D$ -dimensional vectors $\mathcal{Z}_{\mathsf{V}}$ to form the pair $\left\{\left(\mathcal{Z}_{\mathsf{V}_1},\mathsf{V}_1\right),\left(\mathcal{Z}_{\mathsf{V}_2},\mathsf{V}_2\right),\dots,\left(\mathcal{Z}_{\mathsf{V}_N},\mathsf{V}_N\right)\right\}$ . More specifically from (2), defining $\mathbf{z}^{(\mathfrak{s})} = \left[z^{(\mathfrak{s})},z^{(\mathfrak{s})},\dots,z^{(\mathfrak{s})}\right] \in \mathbb{R}^{D_{\mathfrak{s}} \times L}$ , and $\mathbf{z}^{(\mathrm{t})} = \left[z_1^{(\mathrm{t})},z_2^{(\mathrm{t})},\dots,z_L^{(\mathrm{t})}\right] \in \mathbb{R}^{D_{\mathrm{t}} \times L}$ , we will have the pairs
+
+$$
+\left\{\left(\left[ \begin{array}{c} \mathbf {Z} ^ {(\mathsf {s})} \\ \mathbf {Z} ^ {(\mathsf {t})} \end{array} \right] _ {1}, \mathsf {V} _ {1}\right), \left(\left[ \begin{array}{c} \mathbf {Z} ^ {(\mathsf {s})} \\ \mathbf {Z} ^ {(\mathsf {t})} \end{array} \right] _ {2}, \mathsf {V} _ {2}\right), \dots , \left(\left[ \begin{array}{c} \mathbf {Z} ^ {(\mathsf {s})} \\ \mathbf {Z} ^ {(\mathsf {t})} \end{array} \right] _ {N}, \mathsf {V} _ {N}\right) \right\}.
+$$
+
+With these pairs, we propose to optimize the weights $\gamma$ , $\theta$ , and input latent vectors $\mathcal{Z}_{\mathrm{V}}$ (sampled once in the beginning of training) in the following manner. For each video $V_{j}$ , we jointly optimize for $\theta$ , $\gamma$ , and $\{\mathcal{Z}_{V_j}\}_{j = 1}^N$ for every epoch in two stages:
+
+Stage 1: $\min_{\gamma} \ell \bigl( \mathsf{V}_j, \mathcal{G}(\mathcal{Z}_{\mathsf{V}_j}) \bigr) \bigl( \mathcal{Z}_{\mathsf{V}_j}, \theta \bigr)$ (3.1)
+
+Stage 2: $\min_{\mathcal{Z}_{\mathsf{V}},\theta}\ell \bigl {(}\mathsf{V}_j,\mathcal{G}(\mathcal{Z}_{\mathsf{V}_j})|\gamma \bigr)$ (3.2)
+
+$\ell (\cdot)$ can be any regression-based loss. For rest of the paper, we will refer to both (3.1) and (3.2) together as $\min_{\mathcal{Z}_{\mathrm{V}},\theta ,\gamma}\ell_{\mathrm{rec}}$
+
+Regularized loss function to capture static subspace. The transient subspace, along with the RNN, handles the temporal dynamics of the video clip. To equally capture the static portion of the video, we randomly choose a frame from the video and ask the generator to compare its corresponding generated frame during training. For this, we update the above loss as follows.
+
+$$
+\min _ {\mathcal {Z} _ {\mathrm {v}}, \theta , \gamma} \left(\ell_ {\text {r e c}} + \lambda_ {\mathrm {s}} \ell_ {\text {s t a t i c}}\right) \tag {4}
+$$
+
+where $\ell_{\mathrm{static}} = \ell (\hat{v}_k,v_k)$ with $k\in \{1,2,\dots ,L\}$ , $v_{k}$ is the ground truth frame, $\hat{v}_k = \mathcal{G}(\mathbf{z}_k)$ , and $\lambda_{s}$ is the regularization constant. $\ell_{\mathrm{static}}$ can also be understood to essentially handle the role of image discriminator in [31, 33] that ensures that the generated frame is close to the ground truth frame.
+
+# 3.2. Learning Latent Spaces
+
+Non-adversarial learning involves joint optimization of network weights as well as the corresponding input latent space. Apart from the gradients with respect to loss in (4), we propose to further optimize the latent space with gradient of a loss based on the triplet condition as follows.
+
+# 3.2.1 The Triplet Condition
+
+
+Figure 3: Triplet Condition in the transient latent space. Latent code representation of different frames of short video clips may lie very near to each other in the transient subspace. Using the proposed triplet condition, our model learns to explain the dynamics of similar looking frames and simultaneously map them to distinct latent vectors.
+
+Short video clips often have indistinguishable dynamics in consecutive frames which can force the latent code representations to lie very near to each other in the transient subspace. However, an ideal transient space should ensure that the latent vector representation of a frame should only be close to a similar frame than a dissimilar one [26, 27]. To this end, we introduce a triplet loss to (4) that ensures that a pair of co-occurring frames $v_{i}^{a}$ (anchor) and $v_{i}^{p}$ (positive) are closer but distinct to each other in embedding space than any other frame $v_{i}^{n}$ (negative) (see Fig. 3). In this work, positive frames are randomly sampled within a margin range $\alpha$ of the anchor and negatives are chosen outside of this margin range. Defining a triplet set with transient latent code vectors $\{z_{i}^{(\mathrm{t}),a}, z_{i}^{(\mathrm{t}),p}, z_{i}^{(\mathrm{t}),n}\}$ , we aim to learn the transient embedding space $\mathbf{z}^{(\mathrm{t})}$ such that
+
+$$
+\left\| z _ {i} ^ {(\mathsf {t}), a} - z _ {i} ^ {(\mathsf {t}), p} \right\| _ {2} ^ {2} + \alpha < \left\| z _ {i} ^ {(\mathsf {t}), a} - z _ {i} ^ {(\mathsf {t}), n} \right\| _ {2} ^ {2}
+$$
+
+$\forall \{z_i^{(\mathfrak{t}),a},z_i^{(\mathfrak{t}),p},z_i^{(\mathfrak{t}),n}\} \in \Gamma$ where $\Gamma$ is the set of all possible triplets in $\mathbf{z}^{(\mathrm{t})}$ . With the above regularization, the loss in (4) can be written as
+
+$$
+\min _ {\mathcal {Z} _ {\vee}, \theta , \gamma} \left(\ell_ {\text {r e c}} + \lambda_ {s} \ell_ {\text {s t a t i c}}\right)
+$$
+
+$$
+\mathrm {s . t .} \| z _ {i} ^ {(\mathfrak {t}), a} - z _ {i} ^ {(\mathfrak {t}), p} \| _ {2} ^ {2} + \alpha < \| z _ {i} ^ {(\mathfrak {t}), a} - z _ {i} ^ {(\mathfrak {t}), n} \| _ {2} ^ {2} \tag {5}
+$$
+
+where $\alpha$ is a hyperparameter that controls the margin while selecting positives and negatives.
+
+# 3.3. Full Objective Function
+
+For any choice of differentiable generator $\mathcal{G}$ , the objective (4) will be differentiable with respect to $\mathcal{Z}_{\mathbb{V}}$ , and $(\gamma, \theta)$
+
+[5]. We initialize $\mathcal{Z}_{\mathrm{V}}$ by sampling them from two different Gaussian distributions for both static and transient latent vectors. We also ensure that the latent vectors $\mathcal{Z}_{\mathrm{V}}$ lie on the unit $\ell_{2}$ sphere, and hence, we project $\mathcal{Z}_{\mathrm{V}}$ after each update by dividing its value by $\max(1, \| \mathcal{Z}_{\mathrm{V}} \|)$ [4], where $\max(\cdot)$ returns maximum among the set of given elements. Finally, the complete objective function can be written as follows.
+
+$$
+\min _ {\mathcal {Z} _ {\mathrm {v}}, \theta , \gamma} \left(\ell_ {\text {r e c}} + \lambda_ {\mathrm {s}} \ell_ {\text {s t a t i c}} + \lambda_ {\mathrm {t}} \ell_ {\text {t r i p l e t}}\right) \tag {6}
+$$
+
+where $\ell_{\mathrm{static}} = \ell (\hat{v}_k,v_k),\lambda_t$ is a regulariza tion constant for the triplet loss, and $\ell_{\mathrm{triplet}} = \max \Big(\| z_i^{(\mathfrak{t}),a} - z_i^{(\mathfrak{t}),p}\| _2^2 +\alpha -\| z_i^{(\mathfrak{t}),a} - z_i^{(\mathfrak{t}),n}\| _2^2,0\Big)$
+
+The weights of the generator $\gamma$ and static latent vector $z^{(\mathrm{s})}$ are updated by gradients of the losses $\ell_{\mathrm{rec}}$ and $\ell_{\mathrm{static}}$ . The weights. $\theta$ , of the RNN, and transient latent vectors $\mathbf{z}^{(\mathrm{t})}$ are updated by gradients of the losses $\ell_{\mathrm{rec}}$ , $\ell_{\mathrm{static}}$ and $\ell_{\mathrm{triplet}}$ .
+
+# 3.3.1 Low Rank Representation for Interpolation
+
+The objective of video frame interpolation is to synthesize non-existent frames in-between the reference frames. While the triplet condition ensures that similar frames have their transient latent vectors nearby, it doesn't ensure that they lie on a manifold where simple linear interpolation will yield latent vectors that generate frames with plausible motion compared to preceding and succeeding frames [4, 12]. This means that the transient latent subspace can be represented in a much lower dimensional space compared to its larger ambient space. So, to enforce such a property, we project the latent vectors into a low dimensional space while learning them along with the network weights, first proposed in [12]. Mathematically, the loss in (6) can be written as
+
+$$
+\begin{array}{l} \min _ {\mathcal {Z} _ {\mathrm {v}}, \theta , \gamma} \left(\ell_ {\text {r e c}} + \lambda_ {\mathrm {s}} \ell_ {\text {s t a t i c}} + \lambda_ {\mathrm {t}} \ell_ {\text {t r i p l e t}}\right) \\ \text {s . t .} \quad \operatorname {r a n k} \left(\mathbf {z} ^ {(t)}\right) = \rho \tag {7} \\ \end{array}
+$$
+
+where $\mathrm{rank}(\cdot)$ indicates rank of the matrix and $\rho$ is a hyperparameter that decides what manifold $\mathbf{z}^{(\mathrm{t})}$ is to be projected on. We achieve this by reconstructing $\mathbf{z}^{(\mathrm{t})}$ matrix from its top $\rho$ singular vectors in each iteration [7]. Note that, we only employ this condition for optimizing the latent space for the frame interpolation experiments in Sec. 4.3.3.
+
+# 4. Experiments
+
+In this section, we present extensive experiments to demonstrate the effectiveness of our proposed approach in generating videos through learned latent spaces.
+
+# 4.1. Datasets
+
+We evaluate the performance of our approach using three publicly available datasets which have been used in many prior works [10, 31, 32].
+
+Chair-CAD [2]. This dataset consists of total 1393 chair-CAD models, out of which we randomly choose 820 chairs for our experiments with the first 16 frames, similar to [10]. The rendered frame in each video for all the models are center-cropped and then resized to $64 \times 64 \times 3$ pixels. We obtain the transient latent vectors for all the chair models with one static latent vectors for the training set.
+
+Weizmann Human Action [9]. This dataset provides 10 different actions performed by 9 people, amounting to 90 videos. Similar to Chair-CAD, we center-cropped each frame, and then resized to $64 \times 64 \times 3$ pixels. For this dataset, we train our model to obtain nine static latent vectors (for nine different identities) and ten transient latent vectors (for ten different actions) for videos with 16 frames each.
+
+Golf scene dataset [32]. Golf scene dataset [32] contains 20,268 golf videos with $128 \times 128 \times 3$ pixels which further has 583,508 short video clips in total. We randomly chose 500 videos with 16 frames each and resized the frames to $64 \times 64 \times 3$ pixels. Same as the Chair-CAD dataset, we obtained the transient latent vectors for all the golf scenes and one static latent vector for the training set.
+
+# 4.2. Experimental Settings
+
+We implement our framework in PyTorch [21]. Please see supplementary material for details on implementation and values of different hyper-parameters $(D_{\mathrm{s}}, D_{\mathrm{t}}, \alpha, \text{etc.})$ .
+
+Network Architecture. We choose DCGAN [22] as the generator architecture for the Chair-CAD and Golf scene dataset, and conditional generator architecture from [20] for the Weizmann Human Action dataset for our experiments. For the RNN, we employ a one-layer gated recurrent unit network with 500 hidden units [6].
+
+Choice of Loss Function for $\ell_{\mathrm{rec}}$ and $\ell_{\mathrm{static}}$ . One straight forward loss function that can be used is the mean squared loss, but it has been shown in literature that it leads to generation of blurry pixels [35]. Moreover, it has been shown empirically that generative functions in adversarial learning focus on edges [4]. Motivated by this, the loss function for $\ell_{\mathrm{rec}}$ and $\ell_{\mathrm{static}}$ is chosen to be the Laplacian pyramid loss $\mathcal{L}_{\mathrm{Laplacian}}$ [17] defined as
+
+$$
+\mathcal {L} _ {\text {L a p l a c i a n}} (v, \hat {v}) = \sum_ {l} 2 ^ {2 ^ {l}} | \mathrm {L} ^ {l} (v) - \mathrm {L} ^ {l} (\hat {v}) | _ {1}
+$$
+
+where $\mathsf{L}^l (\cdot)$ is the $l$ -th level of the Laplacian pyramid representation of the input.
+
+Baselines. We compare our proposed method with two adversarial methods. For Chair-CAD and Weizmann Human Action, we use MoCoGAN [31] as the baseline, and for Golf scene dataset, we use VGAN [32] as the baseline. We use the publicly available code for MoCoGAN and VGAN, and set the hyper-parameters as recommended in the published work. We also compare two different versions of the proposed method by abating the proposed loss functions.
+
+Note that, we couldn't compare our results with Video-VAE [10] using our performance measures (described below) as the implementation has not been made available by the authors, and to the best of our efforts we couldn't reproduce the results provided by them.
+
+Performance measures. Past video generation works have been evaluated quantitatively on Inception score (IS) [10]. But, it has been shown that IS is not a good evaluation metric for pixel domain generation, as the maximal IS score can be obtained by synthesizing a video from every class or mode in the given data distribution [3, 19, 30]. Moreover, a high IS does not guarantee any confidence on the quality of generation, but only on the diversity of generation. Since a generative model trained using our proposed method can generate all videos using the learned latent dictionary2, and for a fair comparison with baselines, we use the following two measures, similar to measures provided in [31]. We also provide relevant bounds computed on real videos for reference. Note that arrows indicate whether higher $(\uparrow)$ or lower $(\downarrow)$ scores are better.
+
+(1) Relative Motion Consistency Score (MCS $\downarrow$ ): Difference between consecutive frames captures the moving components, and hence motion in a video. So, firstly each frame in the generated video, as well as the ground-truth data, is represented as a feature vector computed using a VGG16 network [29] pre-trained on ImageNet [23] at the relu3_3 layer. Secondly, the averaged consecutive frame-feature difference vector for both set of videos is computed, denoted by $\hat{f}$ and $f$ respectively. Finally, the relative MCS is then given by $\log_{10}\left(\| f - \hat{f}\| _2^2\right)$ .
+
+(2) Frame Consistency Score (FCS $\uparrow$ ): This score measures the consistency of the static portion of the generated video frames. We keep the first frame of the generated video as reference and compute the averaged structural similarity measure for all frames. The FCS is then given by the average of this measure over all videos.
+
+# 4.3. Qualitative Results
+
+Fig. 5 shows some examples with randomly selected frames of generated videos for the proposed method and the adversarial approaches MoCoGAN [31] and VGAN [32]. For Chair-CAD [2] and Weizmann Human Action [9] dataset, it can be seen that the proposed method is able to generate visually good quality videos with a non-adversarial training protocol, whereas MoCoGAN produces blurry and inconsistent frames. Since we use optimized latent vectors unlike MoCoGAN (which uses random latent vectors for video generation), our method produces visually more ap
+
+pealing videos. Fig. 5 presents two particularly important points. As visualized for the Chair-CAD videos, the adversarial approach of MoCoGAN produces not only blurred chair images in the generated video, but they are also nonuniform in quality. Further, it can be seen that as the time step increases, MoCoGAN tends to generate the same chair for different videos. This shows a major drawback of the adversarial approaches, where they fail to learn the diversity of the data distribution. Our approach overcomes this by producing an optimized dictionary of latent vectors which can be used for generating any video in the data distribution easily. To further validate our method for qualitative results, we present the following experiments.
+
+# 4.3.1 Qualitative Ablation Study
+
+Fig. 4 qualitatively shows the contribution of the specific parts of the proposed method on Chair-CAD [2]. First, we investigate the impact of input latent vector optimization. For a fair comparison, we optimize the model for same number of epochs. It can be observed that the model benefits from the joint optimization of input latent space to produce better visual results. Next, we validate the contribution of $\ell_{\mathrm{static}}$ and $\ell_{\mathrm{triplet}}$ on a difficult video example whose chair color matches with the background. Our method, combined with $\ell_{\mathrm{static}}$ and $\ell_{\mathrm{triplet}}$ , is able to distinguish between the white background and the white body of the chair model.
+
+| Actions | Identities |
| P1 | P2 | P3 | P4 | P5 | P6 | P7 | P8 | P9 |
| run | ● | ● | ● | | ● | | | | |
| walk | ● | ● | | | ● | | ● | | |
| jump | | ● | | ● | ● | ● | ● | ● | ● |
| skip | ● | ● | ● | | | ● | ● | ● | ● |
+
+Table 3: Generating videos by exchanging unseen actions by identities. Each cell in this table indicates a video in the dataset. Only cells containing the symbol $\bullet$ indicate that the video was part of the training set. We randomly generated videos corresponding to rest of the cells indicated by symbols $\bullet, \bullet, \bullet$ , and $\bullet$ , visualized in Fig. 6.
+
+# 4.3.2 Action Exchange
+
+Our non-adversarial approach can effectively separate the static and transient portion of a video, and generate videos unseen during the training protocol. To validate these points, we choose a simple matrix completion for the combination of identities and actions in the Weizmann Human action [9] dataset. For training our model, we created a set of videos (without any cropping to present the complete scale of the frame) represented by the cells marked with $\bullet$ in Tab. 3. Hence, the unseen videos correspond to the cells not marked with $\bullet$ . During testing, we randomly generated
+
+
+
+Figure 4: Qualitative ablation study on Chair-CAU1. Let it can be seen that
+
+good quality frames properly resulting in po ce is not optimized, whereas with latent
+
+(a) Chair-CAD [2]
+
+optimization, the generated frames are sharper. Righ Our method with $\ell_{\mathrm{static}}$ and $\ell_{\mathrm{triplet}}$ captures these two loss functions, the chair image absence of the terms,
+
+(b) Weizmann Human Action [9]
+
+Figure 5: Qualitative results comparison with state-of-the-art methods. We show two generated video sequences for MoCoGAN [31] (for (a) Chair-CAD [2], (b) Weizman Human Motion [4]), VGAN [32] (for (c) Golf scene [32]) (top), and the proposed method (Ours, Bottom). The proposed method produces visually sharper, and consistently better using the non-adversarial training protocol. More examples have been provided in the supplementary material.
+
+
+(c) Golf [32]
+
+
+Figure 6: Examples of action exchange to generate unseen videos. This figure shows the generated videos unseen during the training of the model with colored bounding boxes indicating the colored dots $(\bullet, \bullet, \bullet, \bullet)$ referred to in Tab. 3. This demonstrates the effectiveness of our method in disentangling static and transient portion of videos.
+
+these unseen videos (marked with $\bullet$ , $\bullet$ , $\bullet$ and $\bullet$ in Tab. 3), and the visual results are shown in Fig. 6. This experiment clearly validates our claim of static (identities) and transient (action) portion disentanglement of a video and, generation of unseen videos by using combinations of action and iden
+
+- It does not part of training set. Note that generated videos may not exactly resemble ground truth videos of the said combinations as we learn $z^{(t)}$ over a class of many videos.
+
+# 4.3.3 Frame Interpolation
+
+To show our methodology can be employed for frame interpolation, we trained our model using the loss (7) for $\rho = 2$ and $\rho = 10$ . During testing, we generated intermediate frames by interpolating learned latent variables of two distinct frames. For this, we computed the difference $\Delta z^{(\mathrm{t})}$ between the learned latent vectors of second $(z_2^{(\mathrm{t})})$ and fifth $(z_3^{(\mathrm{t})})$ frame, and generated $k = 3$ unseen frames using $\left\{z_2^{(\mathrm{t})} + n / k\Delta z^{(\mathrm{t})}\right\}_{n=1}^k$ , after concatenating with $z^{(\mathrm{s})}$ . Fig. 7 shows the results of interpolation between second and fifth frames for two randomly chosen videos. Thus, our method is able to produce dynamically consistent frames with respect to the reference frames without any pixel clues.
+
+# 4.4. Quantitative Results
+
+Quantitative result comparisons with respect to baselines have been provided in Tab. 2. Compared to videos generated by the adversarial method MoCoGAN [31], we report a relative decrease of $19.22\%$ in terms of MCS, and $4.70\%$
+
+ | MCS ↓ | FCS ↑ |
| Bound | 0.0 | 0.91 |
| MoCoGAN [31] | 4.11 | 0.85 |
| Ours (−ℓ triplet − ℓstatic) | 3.83 | 0.77 |
| Ours (+ℓ triplet + ℓstatic) | 3.32 | 0.89 |
+
+(a) Chair-CAD [2]
+
+ | MCS ↓ | FCS ↑ |
| Bound | 0.0 | 0.95 |
| MoCoGAN [31] | 3.41 | 0.85 |
| Ours (−ℓTriplet − ℓstatic) | 3.87 | 0.79 |
| Ours (+ℓTriplet + ℓstatic) | 2.63 | 0.90 |
+
+(b) Weizmann Human Action [9]
+
+ | MCS ↓ | FCS ↑ |
| Bound | 0.0 | 0.97 |
| VGAN [32] | 3.61 | 0.88 |
| Ours (−lTriplet - lStatic) | 3.78 | 0.84 |
| Ours (+lTriplet + lStatic) | 2.71 | 0.84 |
+
+Table 2: Quantitative results comparison with state-of-the-art methods. We obtained better scores on the proposed method on both Chair-CAD [2], Weizmann Human Action [9], and Golf [32] datasets, compared to the adversarial approaches (MoCoGAN, and VGAN). Best scores have been highlighted in bold.
+
+
+Figure 7: Examples of frame interpolation. An important advantage of our method is translation of interpolation in the learned latent space to video space using (7). It can be observed that as $\rho$ increases, the interpolation (bounded by color) is better. Note that the adjacent frames are also generated frames, and not ground truth frames.
+
+relative increase in terms of FCS for chair-CAD dataset [2]. For the Weizmann Human Action [9] dataset, the proposed method is reported to have a relative decrease of $22.87\%$ in terms of in terms of MCS, and $4.61\%$ relative increase in terms of FCS. Similarly for Golf scene dataset [32], we perform competitively with VGAN [32] with an observed relative decrease of $24.90\%$ in terms of in terms of MCS. A important conclusion from these results is that our proposed method, being non-adversarial in nature, learns to synthesize a diverse set of videos, and is able to perform at par with adversarial approaches. It should be noted that a better loss function for $\ell_{\mathrm{rec}}$ and $\ell_{\mathrm{static}}$ would produce stronger results. We leave this for future works.
+
+# 4.4.1 Quantitative Ablation Study
+
+In this section, we demonstrate the contribution of different components in our proposed methodology on the Chair-CAD [2] dataset. For all the experiments, we randomly generate 500 videos using our model by using the learned latent vector dictionary. We divide the ablation study into two parts. Firstly, we present the results for impact of the learned latent vectors on the network modules. For this, we simply generate videos once with the learned latent vectors $(+Z)$ , and once with randomly sampled latent vectors from a different distribution $(-Z)$ . The inter-dependency of our model weights and the learned latent vectors can be interpreted from Tab. 4a. We see that there is a relative decrease of $16.16\%$ in MCS from 3.96 to 3.32, and $18.66\%$ of rel
+
+(c) Golf [32]
+
+ | MCS ↓ | FCS ↑ |
| Bound | 0 | 0.91 |
| -Z | 3.96 | 0.75 |
| +Z | 3.32 | 0.89 |
+
+(a) With respect to latent space optimization.
+
+ | MCS ↓ | FCS ↑ |
| Bound | 0 | 0.91 |
| -ℓ triplet - ℓstatic | 3.83 | 0.77 |
| -ℓ triplet + ℓstatic | 3.82 | 0.85 |
| +ℓ triplet - ℓstatic | 3.36 | 0.81 |
| +ℓ triplet + ℓstatic | 3.32 | 0.89 |
+
+(b) With respect to loss functions
+
+Table 4: Ablation study of proposed method on Chair-CAD [2]. In (a), we evaluate contributions of latent space optimization (Z). In (b), we evaluate contributions of $\ell_{\mathrm{triplet}}$ and $\ell_{\mathrm{static}}$ in four combinations. + and - indicate presence and absence of the terms, respectively.
+
+ative increase in FCS. This shows that optimization of the latent space in the proposed method is important for good quality video generation.
+
+Secondly, we investigate the impact of the proposed losses on the proposed method. Specifically, we look into four possible combinations of $\ell_{\mathrm{triplet}}$ and $\ell_{\mathrm{static}}$ . The results are presented in Tab. 4b. It can be observed that the combination of triplet loss $\ell_{\mathrm{triplet}}$ and static loss $\ell_{\mathrm{static}}$ provides the best result when employed together, indicated by the relative decrease of $14.26\%$ in MCS from 3.83 to 3.32.
+
+# 5. Conclusion
+
+We present a non-adversarial approach for synthesizing videos by jointly optimizing both network weights and input latent space. Specifically, our model consists of a global static latent variable for content features, a frame specific transient latent variable, a deep convolutional generator, and a recurrent neural network which are trained using a regression-based reconstruction loss, including a triplet based loss. Our approach allows us to generate a diverse set of almost uniform quality videos, perform frame interpolation, and generate videos unseen during training. Experiments on three standard datasets show the efficacy of our proposed approach over state-of-the-methods.
+
+Acknowledgements. The work was partially supported by NSF grant 1664172 and ONR grant N00014-19-1-2264.
+
+# References
+
+[1] Martin Arjovsky, Soumith Chintala, and Léon Bottou. Wasserstein Generative Adversarial Networks. In Proceedings of the International Conference on Machine Learning, pages 214-223, 2017. 2
+[2] Mathieu Aubry, Daniel Maturana, Alexei A Efros, Bryan C Russell, and Josef Sivic. Seeing 3D Chairs: Exemplar part-based 2D-3D Alignment using a Large Dataset of CAD Models. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3762–3769, 2014. 1, 5, 6, 7, 8
+[3] Shane Barratt and Rishi Sharma. A Note on the Inception Score. arXiv preprint arXiv:1801.01973, 2018. 6
+[4] Piotr Bojanowski, Armand Joulin, David Lopez-Pas, and Arthur Szlam. Optimizing the Latent Space of Generative Networks. In Proceedings of the International Conference on Machine Learning, pages 599-608, 2018. 2, 3, 5
+[5] Ashish Bora, Ajil Jalal, Eric Price, and Alexandros G Dimakis. Compressed Sensing using Generative Models. In Proceedings of the International Conference on Machine Learning, pages 537-546, 2017. 5
+[6] Junyoung Chung, Caglar Gulcehre, KyungHyun Cho, and Yoshua Bengio. Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling. arXiv preprint arXiv:1412.3555, 2014. 5
+[7] Jerome Friedman, Trevor Hastie, and Robert Tibshirani. The Elements of Statistical Learning, volume 1. Springer Series in Statistics New York, 2001. 5
+[8] Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative Adversarial Networks. In Advances in Neural Information Processing Systems, pages 2672–2680, 2014. 1
+[9] Lena Gorelick, Moshe Blank, Eli Shechtman, Michal Irani, and Ronen Basri. Actions as Space-Time Shapes. IEEE Transactions on Pattern Analysis and Machine Intelligence, 29(12):2247-2253, 2007. 5, 6, 7, 8
+[10] Jiawei He, Andreas Lehrmann, Joseph Marino, Greg Mori, and Leonid Sigal. Probabilistic Video Generation using Holistic Attribute Control. In Proceedings of the European Conference on Computer Vision, pages 452-467, 2018. 1, 2, 3, 5, 6
+[11] Yedid Hoshen, Ke Li, and Jitendra Malik. Non-Adversarial Image Synthesis with Generative Latent Nearest Neighbors. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5811–5819, 2019. 2, 3
+[12] Rakib Hyder and M. Salman Asif. Generative Models for Low-Dimensional Video Representation and Reconstruction. IEEE Transactions on Signal Processing, 68:1688-1701, 2020. 2, 5
+[13] Yong-Hoon Kwon and Min-Gyu Park. Predicting Future Frames using Retrospective Cycle-GAN. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1811-1820, 2019. 1
+[14] Jerry Li, Aleksander Madry, John Peebles, and Ludwig Schmidt. Towards Understanding the Dynamics of Generative Adversarial Networks. arXiv preprint arXiv:1706.09884, 2017. 1
+[15] Ke Li and Jitendra Malik. Implicit Maximum Likelihood
+
+Estimation. arXiv preprint arXiv:1809.09087, 2018. 2
+[16] Xiaodan Liang, Lisa Lee, Wei Dai, and Eric P Xing. DualMotion GAN for Future-Flow Embedded Video Prediction. In Proceedings of the IEEE International Conference on Computer Vision, pages 1744–1752, 2017. 1
+[17] Haibin Ling and Kazunori Okada. Diffusion Distance for Histogram Comparison. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, volume 1, pages 246-253, 2006. 5
+[18] William Lotter, Gabriel Kreiman, and David Cox. Deep Predictive Coding Networks for Video Prediction and Unsupervised Learning. arXiv preprint arXiv:1605.08104, 2016. 1
+[19] Mario Lucic, Karol Kurach, Marcin Michalski, Sylvain Gelly, and Olivier Bousquet. Are GANs created equal? A Large-scale Study. In Advances in Neural Information Processing Systems, pages 700-709, 2018. 6
+[20] Mehdi Mirza and Simon Osindero. Conditional Generative Adversarial Networks. arXiv preprint arXiv:1411.1784, 2014.5
+[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 NIPS AutoDiff Workshop, 2017. 5
+[22] Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks. arXiv preprint arXiv:1511.06434, 2015. 5
+[23] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. ImageNet: LargeScale Visual Recognition Challenge. International Journal of Computer Vision, 115(3):211-252, 2015. 6
+[24] Masaki Saito, Eiichi Matsumoto, and Shunta Saito. Temporal Generative Adversarial Nets with Singular Value Clipping. In Proceedings of the IEEE International Conference on Computer Vision, pages 2830-2839, 2017. 1, 2, 3
+[25] 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. 1, 3
+[26] 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. 4
+[27] Pierre Sermanet, Corey Lynch, Yevgen Chebotar, Jasmine Hsu, Eric Jang, Stefan Schaal, Sergey Levine, and Google Brain. Time-Contrastive Networks: Self-Supervised Learning from Video. In Proceedings of the IEEE International Conference on Robotics and Automation, pages 1134–1141, 2018. 4
+[28] Aliaksandr Siarohin, Stéphane Lathuilière, Sergey Tulyakov, Elisa Ricci, and Nicu Sebe. Animating Arbitrary Objects via Deep Motion Transfer. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2377-2386, 2019. 1, 2
+[29] Karen Simonyan and Andrew Zisserman. Very Deep Convolutional Networks for Large-scale Image Recognition. arXiv
+
+preprint arXiv:1409.1556, 2014.6
+[30] L Theis, A van den Oord, and M Bethge. A Note on the Evaluation of Generative Models. In Proceedings of the International Conference on Learning Representations, pages 1-10, 2016. 6
+[31] Sergey Tulyakov, Ming-Yu Liu, Xiaodong Yang, and Jan Kautz. MOCOGAN: Decomposing Motion and Content for Video Generation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1526-1535, 2018. 1, 2, 3, 4, 5, 6, 7, 8
+[32] Carl Vondrick, Hamed Piriavash, and Antonio Torralba. Generating Videos with Scene Dynamics. In Advances In Neural Information Processing Systems, pages 613-621, 2016. 1, 2, 3, 5, 6, 7, 8
+[33] Ting-Chun Wang, Ming-Yu Liu, Jun-Yan Zhu, Guilin Liu, Andrew Tao, Jan Kautz, and Bryan Catanzaro. Video-to-Video Synthesis. In Advances in Neural Information Processing Systems, pages 1144–1156, 2018. 4
+[34] Tsun-Hsuan Wang, Yen-Chi Cheng, Chieh Hubert Lin, Hwann-Tzong Chen, and Min Sun. Point-to-Point Video Generation. In Proceedings of the IEEE International Conference on Computer Vision, 2019. 1
+[35] Hang Zhao, Orazio Gallo, Iuri Frosio, and Jan Kautz. Loss Functions for Neural Networks for Image Processing. arXiv preprint arXiv:1511.08861, 2015. 5
\ No newline at end of file
diff --git a/nonadversarialvideosynthesiswithlearnedpriors/images.zip b/nonadversarialvideosynthesiswithlearnedpriors/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..7280222d14aea9607e4c26852aebe6c10ca22a21
--- /dev/null
+++ b/nonadversarialvideosynthesiswithlearnedpriors/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e31b30a6a43e50c46960a517a09941cb36539739cd24f83f222bd8bfc38b2c88
+size 439801
diff --git a/nonadversarialvideosynthesiswithlearnedpriors/layout.json b/nonadversarialvideosynthesiswithlearnedpriors/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..7a8f1a981e18da601f1f6038ea4b220485c79786
--- /dev/null
+++ b/nonadversarialvideosynthesiswithlearnedpriors/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8a66051193c84c5dd3283f9a51dbe664f9980d4243ea156c3a5367ce14911ca8
+size 427716
diff --git a/nonlineofsightsurfacereconstructionusingthedirectionallightconetransform/498b59ca-3737-4b3f-a124-adeeee313a9a_content_list.json b/nonlineofsightsurfacereconstructionusingthedirectionallightconetransform/498b59ca-3737-4b3f-a124-adeeee313a9a_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..869955f1fa69b561121887e90b0cad097a55393e
--- /dev/null
+++ b/nonlineofsightsurfacereconstructionusingthedirectionallightconetransform/498b59ca-3737-4b3f-a124-adeeee313a9a_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5cec6f1f3a27da9127a92c7e0608f31eac2f09a19a5a8041ee14bc63d40d066b
+size 83685
diff --git a/nonlineofsightsurfacereconstructionusingthedirectionallightconetransform/498b59ca-3737-4b3f-a124-adeeee313a9a_model.json b/nonlineofsightsurfacereconstructionusingthedirectionallightconetransform/498b59ca-3737-4b3f-a124-adeeee313a9a_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..8431c77ee918989f13b73ed5a84a3fbbf20aaccc
--- /dev/null
+++ b/nonlineofsightsurfacereconstructionusingthedirectionallightconetransform/498b59ca-3737-4b3f-a124-adeeee313a9a_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:64872cd7f4453ecce6e9b1091829506e9f85a1b4a6e22e20acc1c887ed60c7e8
+size 104721
diff --git a/nonlineofsightsurfacereconstructionusingthedirectionallightconetransform/498b59ca-3737-4b3f-a124-adeeee313a9a_origin.pdf b/nonlineofsightsurfacereconstructionusingthedirectionallightconetransform/498b59ca-3737-4b3f-a124-adeeee313a9a_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..464d5b9b66b3479437fa8b225e91f30547b0b7f7
--- /dev/null
+++ b/nonlineofsightsurfacereconstructionusingthedirectionallightconetransform/498b59ca-3737-4b3f-a124-adeeee313a9a_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0f5fbe0cc35a34bec719d4bac59e78049a4f5fc612b6044c61ded17ec0362b95
+size 4836212
diff --git a/nonlineofsightsurfacereconstructionusingthedirectionallightconetransform/full.md b/nonlineofsightsurfacereconstructionusingthedirectionallightconetransform/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..ba26536a1acf97cbef69a307378c9e005d106cf5
--- /dev/null
+++ b/nonlineofsightsurfacereconstructionusingthedirectionallightconetransform/full.md
@@ -0,0 +1,410 @@
+# Non-line-of-sight Surface Reconstruction Using the Directional Light-cone Transform
+
+Sean I. Young
+
+Stanford University
+
+sean0@stanford.edu
+
+David B. Lindell
+
+Stanford University
+
+lindell@stanford.edu
+
+Bernd Girod
+Stanford University
+
+bgirod@stanford.edu
+
+David Taubman UNSW Sydney
+
+d.taubman@unsw.edu.au
+
+Gordon Wetzstein
+Stanford University
+
+gordon.wetzstein@stanford.edu
+
+# Abstract
+
+We propose a joint albedo-normal approach to non-line-of-sight (NLOS) surface reconstruction using the directional light-cone transform (D-LCT). While current NLOS imaging methods reconstruct either the albedo or surface normals of the hidden scene, the two quantities provide complementary information of the scene, so an efficient method to estimate both simultaneously is desirable. We formulate the recovery of the two quantities as a vector deconvolution problem, and solve it using the Cholesky-Wiener decomposition. We show that surfaces fitted non-parametrically using our recovered normals are more accurate than those produced with NLOS surface reconstruction methods recently proposed, and are $1,000 \times$ faster to compute than using inverse rendering.
+
+# 1. Introduction
+
+Non-line-of-sight (NLOS) imaging deals with the capture and rendering of a scene that is not in the direct line of sight from the sensor. In recent years, NLOS imaging has emerged as an important vision problem, with applications in remote sensing, defense, robotic vision and autonomous driving. A common imaging setup is to "look around the corner" using the confocal configuration depicted in Figure 1. Typically, a light source, such as a laser beam, indirectly illuminates the scene by reflecting onto a surface that can be seen from both the sensor and the scene. The sensor then captures the scene reflections from the same surface location, and records them as a time-resolved sequence of two-dimensional images (or transients), from which one can computationally reconstruct the scene. Apart from transient-based imaging, other NLOS imaging modalities include those based on speckle [1-3], or incoherent intensity measurements [4, 5], as well as passive sensing [6-9] and acoustic imaging [10] techniques.
+
+Here, we will consider exclusively NLOS imaging based on transients [11-19], from which the hidden NLOS scene is typically rendered as a spatial, three-dimensional volume of albedo (volumetric albedo), or as a set of object surfaces. In the volumetric albedo paradigm, the objective is to estimate albedo values for scene voxels [11-16], while in the surface
+
+
+
+
+(a) Our albedo
+
+
+(b) Our normals
+
+
+(c) Fitted surface
+Figure 1. NLOS surface reconstruction via the D-LCT: Existing NLOS imaging methods typically recover only the albedo of the hidden scene. The Directional LCT recovers both the albedo (a) and the surface normals (b) of the scene, allowing us to reconstruct the hidden object surface with finer detail (c).
+
+reconstruction paradigm, one seeks more directly to recover object surfaces in the three-dimensional scene by estimating their surface normals [17-19]. While surface-based methods have the potential to reconstruct object geometry with finer detail than the albedo ones, current approaches to estimating surface normals are sensitive to noise, limited to scenes with simpler object geometry [18], sensitive to initialization [19] or entail a high computational complexity [13], all of which motivate our present work. Embedded in transients is a mix of surface normal and albedo information, so that explicitly accounting for the presence of both in transients can present new opportunities for recovering both quantities robustly.
+
+
+(a) Transient volume $\tau$
+
+
+(b) Normals $v$ from $\tau$
+
+
+(c) Surface fitted onto $v$
+Figure 2. Method overview: A $1\mathrm{m} \times 1\mathrm{m} \times 2\mathrm{ns}$ volume $\tau$ of transients (a) is filtered using the directional light-cone transform to obtain the surface normals (b). We integrate the surface normals to obtain the final reconstructed surface (c), which is similar to the ground-truth (d).
+
+
+(d) Ground-truth surface
+
+In this work, we propose a joint albedo-normal approach to NLOS scene reconstruction based on the directional light-cone transform (D-LCT), which is a vectorial generalization of the (scalar) light-cone transform (LCT) recently proposed by O'Toole et al. [12]. We formulate the recovery of normals and albedos as a vector deconvolution problem, and having found the two quantities, we fit a surface onto the recovered normals. By solving this vectorial deconvolution problem in the joint albedo-normal space, we recover the two quantities robustly and efficiently, allowing us to obtain a better surface reconstruction. In particular, our approach is many orders of magnitude faster than recent work [13], which can similarly estimate albedos and surface normals in a joint manner. Our proposed approach also works with existing confocal NLOS imaging hardware. We illustrate our overall method pipeline in Figure 2. To summarize, our main contributions are:
+
+- Directional LCT: We express non-line-of-sight surface normal recovery as a vector deconvolution problem on time-resolved measurements, via the Directional Lightcone Transform (D-LCT).
+- Cholesky-Wiener Solver: We solve the above vector-deconvolution problem efficiently in the Fourier domain to recover the surface normals.
+- Surface Fitting: We reconstruct highly-accurate object surface descriptions by fitting surface parameters on the recovered normals.
+
+# 2. Related Work
+
+Transient imaging was first conceptualized by Kirmani et al. [4], who believed that we can look around the corner by probing a wall with an ultrafast laser and detector. Later, the idea was demonstrated in practice by Velten et al. [11] using a femtosecond laser and a streak camera. Owing to the cost of such imaging hardware, researchers have also used other sensing technologies such as time-of-flight cameras [20, 21] or even regular consumer cameras [9, 22]. However, single-
+
+photon avalanche diodes (SPADs) [23-27] have been shown to be particularly versatile for sensing, allowing us to image under ambient lighting, at fast rates [28], or at long distances [29]. Altmann et al. [30] provide a comprehensive review of SPADs as well as their applications.
+
+Having captured the transient data, the NLOS scene can be reconstructed as a volume of albedo [11-16], or surfaces of objects [17-19]. Generally speaking, estimation of albedo can be posed as an inverse-filtering problem whereas that of surfaces is often posed as an inverse-rendering problem. We now provide a brief review of the two inverse approaches.
+
+# 2.1. Inverse Filtering Approaches
+
+Velten et al. [11] are the first to pose the recovery of the albedo volume as an inverse problem. Relating the transient measurements to some NLOS scene using higher-order light transport, they formulated scene reconstruction as a (linear) least-squares problem and solved the resulting dense system of equations with filtered back-projection (FBP). While FBP produces promising results, it only approximately solves the original least-squares problem, and the reconstructed scenes can lack fine details. Since the computational complexity of FBP is still high at $O(V^5)$ in the number $V^3$ of voxels, later authors sought to refine FBP by improving the quality of the iterative solvers [16, 31] or their speed on GPUs [26].
+
+In the confocal case, O'Toole et al. [12] note that higher-order light transport can be expressed as a convolution with a change of variables. Their overall transformation, referred to as the light-cone transform (LCT), expresses the problem of Velten et al. [11] as a three-dimensional signal deblurring problem. In contrast to the FBP, the LCT solves the inverse problem exactly, and has a low computational complexity of $O(V^3\log V)$ in the number $V^3$ of voxels, thanks to the use of the Fourier transform. Recently, Ahn et al. [32] proposed an approximate convolutional imaging transform similar to the LCT for the non-confocal setting.
+
+In contrast with deconvolution, which we can ultimately relate to the diffusion equation, Lindell et al. [14] suggest to
+
+solve the transient imaging problem by modeling high-order light transport as wave propagation in the three-dimensional space, and solve the resulting inverse problem efficiently in the Fourier domain using “ $f - k$ ” migration. This method also has a $O(V^3 \log V)$ computational complexity due to the use of the Fourier transform. Methods based on diffractive wave propagation, e.g. phasor fields [33], aim further to overcome the limitations in the imaging model due to assumptions such as single scattering, and the lack of occlusions in the hidden scene. If the confocal setup is used, the phasor field method can be implemented in terms of the LCT for a $O(V^3 \log V)$ computational complexity.
+
+Whereas both the LCT and the $f - k$ migration approaches are extremely efficient, they do not innately have the ability to estimate the surface normals of scene objects. To find the surface normals along with the albedo volume, Heide et al. [13] pose the transient imaging problem as an optimization in the albedo and the surface normal variables. Although the reported results are promising, one major limitation of such a method is the $O(V^5)$ complexity in both computation and memory, as well as the nonconvexity of the overall problem formulation. The D-LCT helps us to solve a similar albedo-normal estimation problem with the same low complexity of the LCT and $f - k$ migration. Given the shared Fourier roots across the LCT, $f - k$ and phasor fields, it may be possible to apply our directional approach to $f - k$ migration and phasor fields as well, although we do not attempt this in our work.
+
+# 2.2. Inverse Rendering Approaches
+
+In contrast with the inverse filtering approaches, inverse rendering (analysis-by-synthesis) methods, e.g. [19], search for values of the NLOS surface parameters (e.g. BRDFs and surface normals) that would produce the observed transients if the NLOS surface were to be rendered. Since a full search in the surface parameter space would be intractable, inverse rendering is typically performed via differentiable rendering (i.e., an energy minimization in surface parameters). Surface parameters recoverable in this way include surface locations and normals [34], and illumination effects such as scattering [35-38] and interreflections [39, 40].
+
+# 2.3. Surface Fitting Methods
+
+Object surface can be fit on the obtained surface normals either parametrically or non-parametrically. Non-parametric fitting is commonly used for stereo-based 3D reconstruction [41-43] whereas parametric approaches are more suited for mesh refinement [44-47]. Surface fitting may be seen as an inverse problem where the goal is to interpolate a smooth manifold without violating the given normal conditions. We can naturally formulate surface fitting as diffusion processes or energy minimization methods, both of which seek to find the right trade-off between regularity (smoothness) and data fidelity (surface orthogonality to the given normals). We use
+
+the energy-minimization approach of [48] to fit a surface on our recovered normals.
+
+# 3. Mathematical Framework
+
+After briefly reviewing the volumetric albedo model and discussing its limitations, we develop our directional albedo model, and propose efficient ways for solving the associated inverse problem of estimating the surface normals.
+
+# 3.1. The Volumetric Albedo Model
+
+In transient imaging approaches, a time-resolved detector is used to measure the incident flux of photons as a function of emitted light impulses. Each of these time measurements records the impulse response of the NLOS scene at positions on a visible surface to produce a volume of transients.
+
+Let us denote the three-dimensional scene coordinates by $(x,y,z)$ , and assume the visible surface is positioned along $z = 0$ . We denote by $(x',y',z = 0)$ positions on this visible surface; see Figure 1. A common transient imaging model is the confocal volumetric albedo model
+
+$$
+\begin{array}{l} \tau \left(x ^ {\prime}, y ^ {\prime}, t\right) = \iiint_ {\Omega} \mathrm {d} x \mathrm {d} y \mathrm {d} z \frac {\rho (x , y , z)}{r ^ {4}} \tag {1} \\ \cdot \delta \left(2 \sqrt {\left(x ^ {\prime} - x\right) ^ {2} + \left(y ^ {\prime} - y\right) ^ {2} + z ^ {2}} - t c\right), \\ \end{array}
+$$
+
+in which $\rho$ denotes a three-dimensional albedo volume with finite support $\Omega$ , and $\delta(\cdot)$ relates the round-trip time of flight of light with twice the distance $r$ between the scene $(x, y, z)$ and the sensing $(x', y', z = 0)$ locations. Here, $c \approx 3 \times 10^8$ denotes the speed of light while $1 / r^4 = (2 / tc)^4$ models the radiometric fall-off due to distance. The scaling $1 / r^4$ can be removed from (1) if we prescale $\tau$ by $(2 / tc)^4$ in advance. In the case of retro-reflective surfaces, a fall-off factor of $1 / r^2$ is more commonly assumed.
+
+To discretize model (1), we sample $\Omega$ using $N, N$ and $M$ points on the $x-, y-$ and $z$ -axes, respectively. Assuming that the transient $\tau$ has been pre-scaled by $(2 / tc)^4$ , we can write the discretized model compactly using matrix notation as
+
+$$
+\boldsymbol {\tau} = \mathbf {K} \boldsymbol {\rho}, \tag {2}
+$$
+
+in which $\pmb{\tau}$ , $\pmb{\rho} \in \mathbb{R}^{N^2M}$ and $\mathbf{K}$ is a binary matrix with values obtained by sampling $\delta(\cdot)$ . Since $\mathbf{K}$ is a low-pass operator of high condition number, the task of finding $\pmb{\rho}$ from given $\pmb{\tau}$ is an ill-posed problem [49]. Rather than compute the solution directly as $\pmb{\rho}^{\mathrm{opt}} = \mathbf{K}^{-1}\pmb{\tau}$ , we should find it as the solution of the regularized least-squares problem
+
+$$
+\text {m i n i m i z e} f (\boldsymbol {\rho}) = \left\| \mathbf {K} \boldsymbol {\rho} - \boldsymbol {\tau} \right\| _ {2} ^ {2} + \lambda \| \boldsymbol {\rho} \| _ {2} ^ {2}, \tag {3}
+$$
+
+in which $\lambda$ represents the trade-off between data fidelity and regularity (smoothness) of the solution.
+
+O'Toole et al. [12] note that problem (3) can be solved in an efficient manner with their so-called light-cone transform (LCT). If we denote their resampling operator by $\mathbf{T}$ , we can
+
+
+(a) LCT filter kernel
+
+
+(b) Directional LCT filter kernels $(x - ,y-$ and $z$ -directions)
+
+
+
+
+
+
+Figure 3. Constructing the D-LCT filter kernels: The light-cone transform produces a three-dimensional, shift-invariant kernel (a). The D-LCT (b) consists of three shift-invariant kernels that relate directional albedo (albedo + normal) to the transients. The $z$ -directional D-LCT kernel (b, far right) is identical to the LCT kernel (a).
+Figure 4. Directional albedo model: At location $\mathbf{s} = (x, y, z)$ on the object, directional albedo $\mathbf{v}(\mathbf{s})$ has direction and magnitude of the normal $\mathbf{n}(\mathbf{s})$ and the albedo $\rho(\mathbf{s})$ , respectively. Contribution of albedo $\rho(\mathbf{s})$ to the surface at $\mathbf{s}' = (x', y', z = 0)$ decreases, in the first order, as the cosine of the angle $\theta$ between $\mathbf{v}(\mathbf{s})$ and $\mathbf{s}' - \mathbf{s}$ .
+
+express problem (3) equivalently in terms of the resampled albedo $\bar{\pmb{\rho}} = \mathbf{T}^{*}\pmb{\rho}$ and transients $\bar{\boldsymbol{\tau}} = \mathbf{T}^{*}\boldsymbol{\tau}$ as
+
+$$
+\operatorname {m i n i m i z e} f (\bar {\boldsymbol {\rho}}) = \left\| \mathbf {H} \bar {\boldsymbol {\rho}} - \bar {\boldsymbol {\tau}} \right\| _ {2} ^ {2} + \lambda \| \bar {\boldsymbol {\rho}} \| _ {2} ^ {2}, \tag {4}
+$$
+
+in which $\mathbf{H} = \mathbf{T}^{*}\mathbf{K}\mathbf{T}$ is a three-dimensional filter (that is, a linear space-invariant operator), whose impulse response is shown in Figure 3 (a). Section 1 of the supplement provides the details of the resampling operator $\mathbf{T}^{*}$ .
+
+Since $\mathbf{H}$ is a three-dimensional filter, we can compute the solution $\bar{\rho}^{\mathrm{opt}} = (\mathbf{H}^{*}\mathbf{H} + \lambda \mathbf{I})^{-1}\mathbf{H}^{*}\bar{\tau}$ of (4) efficiently in the Fourier domain using Wiener deconvolution. The regularity parameter $\lambda$ can be interpreted as the noise-to-signal ratio in this filtering context. The solution of our original problem (3) is obtained by resampling the deconvolved solution using the adjoint resampling operator, that is, $\rho^{\mathrm{opt}} = \mathbf{T}\bar{\rho}^{\mathrm{opt}}$ .
+
+# 3.2. The Directional Albedo Model
+
+In the case of isotropic point emitters, (1) is an adequate model for higher-order light transport. However, for typical diffuse or Lambertian object surfaces, such a model ignores the radiometric fall-off due to Lambert's cosine law, i.e., the fall-off due to the angle between the incident light rays and
+
+the surface normals; see [50]. Incorporating cosine terms in (1) not only yields a more accurate forward model, but more importantly, it enables recovery of surface normals from the transients via the inverse model.
+
+Denoting the two spatial coordinates by $\mathbf{s} = (x,y,z)$ and $\mathbf{s}' = (x',y',z = 0)$ for brevity, we update model (1) as
+
+$$
+\tau \left(x ^ {\prime}, y ^ {\prime}, t\right) = \iiint_ {\Omega} \mathrm {d} \mathbf {s} \left\langle \frac {\rho (\mathbf {s}) \mathbf {n} (\mathbf {s})}{r ^ {4}}, \frac {\mathbf {s} ^ {\prime} - \mathbf {s}}{\| \mathbf {s} ^ {\prime} - \mathbf {s} \|} \right\rangle \tag {5}
+$$
+
+$$
+\cdot \delta \Big (2 \sqrt {(x ^ {\prime} - x) ^ {2} + (y ^ {\prime} - y) ^ {2} + z ^ {2}} - t c \Big),
+$$
+
+in which $\mathbf{n}(\mathbf{s}) = (n_x, n_y, n_z)(\mathbf{s}) \in \mathbb{R}^3$ is the surface normal at $\mathbf{s}$ . Our model can be seen as a first-order approximation of the physically based one in [19], allowing us to reformulate normal estimation as a linear least-squares problem. Model (5) is also identical to the one in [13] save for the absence of occlusion terms. Section 3 of our paper supplement derives the relationship between (5) and the physical one. Assuming further that the projections
+
+$$
+\left\langle \mathbf {n} (\mathbf {s}), \frac {\mathbf {s} ^ {\prime} - \mathbf {s}}{\| \mathbf {s} ^ {\prime} - \mathbf {s} \|} \right\rangle = \cos \theta = 1, \quad \forall \mathbf {s} ^ {\prime}, \mathbf {s}, \tag {6}
+$$
+
+model (5) reduces to the volumetric albedo model (1).
+
+Note in (5) that albedo $\rho (\mathbf{s})\in \mathbb{R}$ is a scalar quantity, and surface normal $\mathbf{n}(\mathbf{s})\in \mathbb{R}^3$ is a unit-norm vector. Rather than represent the two quantities using separate variables, we can combine them into a single directional-albedo vector
+
+$$
+\mathbf {v} (\mathbf {s}) = \left(v _ {x}, v _ {y}, v _ {z}\right) (\mathbf {s}) = \rho (\mathbf {s}) \mathbf {n} (\mathbf {s}) \in \mathbb {R} ^ {3}, \tag {7}
+$$
+
+such that the direction and the magnitude of $\mathbf{v}(\mathbf{s})$ encode its surface normal and albedo, respectively. Substituting (7) in model (5) and using $r = \| s' - s\|$ , we obtain the directional albedo model
+
+$$
+\tau \left(x ^ {\prime}, y ^ {\prime}, t\right) = \iiint_ {\Omega} \mathrm {d} \mathbf {s} \frac {\left\langle \mathbf {v} (\mathbf {s}) , \mathbf {s} ^ {\prime} - \mathbf {s} \right\rangle}{r ^ {5}} \tag {8}
+$$
+
+$$
+\cdot \delta \left(2 \sqrt {\left(x ^ {\prime} - x\right) ^ {2} + \left(y ^ {\prime} - y\right) ^ {2} + z ^ {2}} - t c\right),
+$$
+
+relating the directional albedo $\mathfrak{v}$ to the transients $\tau$ . Figure 4 illustrates and summarizes the directional albedo model.
+
+
+Figure 5. Transient imaging using the D-LCT: D-LCT (c) captures fine details of object surfaces (a) not captured by the LCT (b). Volumes (b)-(c) are rendered using maximum intensity projection. D-LCT surfaces (d) are fit directly onto the D-LCT normals (c). For (d), we used known background masks to first remove the background points. All hidden objects have diffuse surfaces.
+
+To discretize our directional albedo model, we sample $\Omega$ similarly to (2). This produces the system of linear equations in our directional albedos $\mathbf{v} = (\mathbf{v}_x^*,\mathbf{v}_y^*,\mathbf{v}_z^*)^*$ :
+
+$$
+\boldsymbol {\tau} = \mathbf {K S v} \tag {9}
+$$
+
+in which $\mathbf{K}$ is the matrix from (2), and we obtain the entries of $\mathbf{S} = (\mathbf{S}_x, \mathbf{S}_y, \mathbf{S}_z)$ by sampling $(\mathbf{s}' - \mathbf{s})$ on $\Omega$ . Recovering the directional albedo $\upsilon$ given the transients $\tau$ is ill-posed in that it requires us to find the values of $3N^2 M$ variables with only $N^2 M$ equations. Such a rank-deficient problem can be solved by formulating (9) as the least-squares problem
+
+$$
+\text {m i n i m i z e} f (\mathbf {v}) = \left\| \mathbf {K S v} - \tau \right\| _ {2} ^ {2} + \lambda \| \mathbf {v} \| _ {2} ^ {2} \tag {10}
+$$
+
+similarly to the regularized approach in (3). While we could alternatively optimize the TV-L1 version of problem (10) to obtain a better solution, we focus on our L2 variant for now to solve (10) efficiently as a vector deconvolution problem.
+
+# 3.3. Directional Light-cone Transform
+
+Whereas our least-squares optimization problem (10) has the simple, closed-form solution
+
+$$
+\mathbf {v} ^ {\text {o p t}} = \left(\mathbf {S} ^ {*} \mathbf {K} ^ {*} \mathbf {K} \mathbf {S} + \lambda \mathbf {I}\right) ^ {- 1} \mathbf {S} ^ {*} \mathbf {K} ^ {*} \boldsymbol {\tau}, \tag {11}
+$$
+
+this solution is too expensive to compute naively for typical problems with $V^3 = N^2 M \approx 10^8$ voxels. Computing $\mathbf{v}^{\mathrm{opt}}$ directly with numerical methods such as Cholesky and LDL decompositions would incur a $O(V^{9})$ cost whereas iterative ones (e.g. conjugate gradients), a $O(V^{6})$ cost. These general
+
+methods are therefore unsuited to practical problem sizes.
+
+To solve problem (10) efficiently, we generalize the LCT technique used in (4) to the vectorial problem. We can write problem (10) equivalently as
+
+$$
+\text {m i n i m i z e} f (\overline {{\mathbf {v}}}) = \left\| \mathbf {H} \left(\mathbf {S} _ {x}, \mathbf {S} _ {y}, \mathbf {I}\right) \overline {{\mathbf {v}}} - \bar {\boldsymbol {\tau}} \right\| _ {2} ^ {2} + \lambda \| \overline {{\mathbf {v}}} \| _ {2} ^ {2}, \tag {12}
+$$
+
+in which
+
+$$
+\underbrace {\left[ \begin{array}{c} \overline {{\mathbf {v}}} _ {x} \\ \overline {{\mathbf {v}}} _ {y} \\ \overline {{\mathbf {v}}} _ {z} \end{array} \right]} _ {\widetilde {\mathbf {v}}} = \underbrace {\left[ \begin{array}{c c c} \mathbf {T} _ {x} ^ {*} & & \\ & \mathbf {T} _ {y} ^ {*} & \\ & & \mathbf {T} _ {z} ^ {*} \end{array} \right]} _ {\mathbf {T} _ {d} ^ {*}} \underbrace {\left[ \begin{array}{c} \mathbf {v} _ {x} \\ \mathbf {v} _ {y} \\ \mathbf {v} _ {z} \end{array} \right]} _ {\mathbf {v}} \tag {13}
+$$
+
+is the resampled variable, and $\bar{\tau} = \mathbf{T}^{*}\bar{\tau}$ as before. From the solution $\overline{\mathbf{v}}^{\mathrm{opt}}$ of (12), we recover the solution of the original problem (10) as $\mathbf{v}^{\mathrm{opt}} = \mathbf{T}_d\overline{\mathbf{v}}^{\mathrm{opt}}$ . Section 2 of the supplement derives the resampler $\mathbf{T}_d^*$ and its relationship to $\mathbf{T}^*$ in (4).
+
+Note in (12) that $\mathbf{S}_x, \mathbf{S}_y$ and $\mathbf{I}$ are shift-invariant, so they can be composed with the light-cone filter $\mathbf{H}$ to produce the directional light-cone filters $\mathbf{HS}_x, \mathbf{HS}_y$ and $\mathbf{HI}$ . Their filter kernels are shown in Figure 3 (b). Since all the operators in problem (12) are filters, one can interpret (12) as a vectorial deconvolution problem, with a fixed noise-to-signal ratio $\lambda$ across the vector frequencies. One can solve (12) efficiently using our vector extension of Wiener deconvolution.
+
+# 3.4. Cholesky-Wiener Deconvolution
+
+Denoting the matrices in (12) as $\mathbf{H}_x = \mathbf{H}\mathbf{S}_x$ , $\mathbf{H}_y = \mathbf{H}\mathbf{S}_y$ and $\mathbf{H}_z = \mathbf{H}\mathbf{I}$ for simplicity, we write the normal equations
+
+
+Figure 6. Accuracy of D-LCT and LCT: The LCT and D-LCT depths (left plots) have the RMSE of 5.97 and $4.96\mathrm{cm}$ , and the MAE of 1.87 and $1.59\mathrm{cm}$ , respectively. The LCT and D-LCT surface normals (right plots) have end-point RMSE 0.91 and $0.52\mathrm{cm}$ , and MAE of 0.61 and $0.38\mathrm{cm}$ , respectively. The LCT does not natively produce surface normals, so we obtain them using [54] with the LCT depth as the input.
+
+
+Figure 7. Impact of regularity parameter on depth and surface normals: The D-LCT produces accurate depth (left plots) and normals (right plots) over a wide range of values of $\lambda$ , demonstrating its usefulness for cases where the SNR is not known exactly. The LCT normal errors are for the normal vectors obtained using [53] with the LCT depth as the input. Points of minimum error marked with dots.
+
+
+
+
+
+
+
+associated with the least-squares problem (12) as
+
+$$
+\underbrace {\left[ \begin{array}{l l l} \mathbf {H} _ {x} ^ {2} + \lambda \mathbf {I} & \mathbf {H} _ {x} ^ {*} \mathbf {H} _ {y} & \mathbf {H} _ {x} ^ {*} \mathbf {H} _ {z} \\ \mathbf {H} _ {y} ^ {*} \mathbf {H} _ {x} & \mathbf {H} _ {y} ^ {2} + \lambda \mathbf {I} & \mathbf {H} _ {y} ^ {*} \mathbf {H} _ {z} \\ \mathbf {H} _ {z} ^ {*} \mathbf {H} _ {x} & \mathbf {H} _ {z} ^ {*} \mathbf {H} _ {y} & \mathbf {H} _ {z} ^ {2} + \lambda \mathbf {I} \end{array} \right]} _ {\mathbf {H} ^ {*} \mathbf {H} + \lambda \mathbf {I}} \underbrace {\left[ \begin{array}{l} \overline {{\mathbf {v}}} _ {x} \\ \overline {{\mathbf {v}}} _ {y} \\ \overline {{\mathbf {v}}} _ {z} \end{array} \right]} _ {\overline {{\mathbf {v}}}} = \underbrace {\left[ \begin{array}{l} \mathbf {H} _ {x} ^ {*} \bar {\boldsymbol {\tau}} \\ \mathbf {H} _ {y} ^ {*} \bar {\boldsymbol {\tau}} \\ \mathbf {H} _ {z} ^ {*} \bar {\boldsymbol {\tau}} \end{array} \right]} _ {\mathbf {H} ^ {*} \bar {\boldsymbol {\tau}}} (1 4)
+$$
+
+that is, a $3 \times 3$ block system of equations, where each block element is a filter or a filter signal. The structure of (14) thus suggests that we solve the $3 \times 3$ system using the Cholesky decomposition, performing the two associated forward- and back-substitutions using filtering operations. The right-hand side vector $\mathbf{H}^{*}\overline{\tau}$ can be computed in the Fourier domain, as each $\mathbf{H}_{x}^{*}, \mathbf{H}_{y}^{*}$ and $\mathbf{H}_{z}^{*}$ is a filter.
+
+Using the LDL variant of the Cholesky factorization, we factor the matrix $\mathbf{A} = \mathbf{H}^{*}\mathbf{H} + \lambda \mathbf{I}$ as $\mathbf{A} = \mathbf{L}\mathbf{D}\mathbf{L}^{*}$ , where
+
+$$
+\mathbf {L} = \left[ \begin{array}{l l l} \mathbf {I} & & \\ \mathbf {L} _ {y x} & \mathbf {I} & \\ \mathbf {L} _ {z x} & \mathbf {L} _ {z y} & \mathbf {I} \end{array} \right], \mathbf {D} = \left[ \begin{array}{c c c} \mathbf {D} _ {x x} & & \\ & \mathbf {D} _ {y y} & \\ & & \mathbf {D} _ {z z} \end{array} \right], \tag {15}
+$$
+
+and the elements of $\mathbf{L}$ and $\mathbf{D}$ are given by
+
+$$
+\mathbf {D} _ {j j} = \mathbf {H} _ {j} ^ {*} \mathbf {H} _ {j} + \lambda \mathbf {I} - \sum_ {k = 1} ^ {j - 1} \mathbf {L} _ {j k} \mathbf {D} _ {k k} \mathbf {L} _ {j k} ^ {*} \tag {16}
+$$
+
+$$
+\mathbf {L} _ {i j} = \mathbf {D} _ {j j} ^ {- 1} \big (\mathbf {H} _ {i} ^ {*} \mathbf {H} _ {j} - \sum_ {k = 1} ^ {j - 1} \mathbf {L} _ {j k} \mathbf {D} _ {k k} \mathbf {L} _ {j k} ^ {*} \big),
+$$
+
+using the convention $1 = x, 2 = y, 3 = z$ in both sums. We can readily verify the dynamic programming procedure (16) by applying the elimination steps of the Cholesky algorithm [51] to the block elements of matrix $\mathbf{A}$ .
+
+Finally, the triangularized system $\mathbf{LDL}^{*}\mathfrak{v} = \mathbf{H}^{*}\tau$ can be solved using forward- and back-substitutions
+
+$$
+\boldsymbol {\nu} = \mathbf {L} ^ {- 1} \mathbf {H} ^ {*} \boldsymbol {\tau}, \quad \boldsymbol {\upsilon} = \mathbf {L} ^ {- *} \mathbf {D} ^ {- 1} \boldsymbol {\nu}, \tag {17}
+$$
+
+both of which can be performed as a series of filtering steps in the Fourier domain. For example, the block-elements of $\pmb{\nu}$ can be obtained using $\nu_{1} = \mathbf{H}_{x}^{*}\bar{\tau},\nu_{2} = \mathbf{H}_{y}^{*}\bar{\tau} -\mathbf{L}_{yx}\nu_{1}$ and $\nu_{3} = \mathbf{H}_{y}^{*}\bar{\tau} -\mathbf{L}_{zx}\nu_{1} - \mathbf{L}_{zy}\nu_{2}$ . Observe here $\mathbf{L}_{yx}\nu_{1},\mathbf{L}_{zx}\nu_{1}$ and $\mathbf{L}_{zy}\nu_{2}$ may be computed in the Fourier domain, as each matrix $\mathbf{L}_{yx},\mathbf{L}_{zx}$ and $\mathbf{L}_{zy}$ represents a 3D filter. We compute the elements of $\pmb{\nu}$ can be computed in a similar manner.
+
+For large problems where storing the Fourier coefficients of the block elements of $\mathbf{L}$ and $\mathbf{D}$ is not feasible, we can use an iterative solver like conjugate gradients, and compute the forward mapping $\mathbf{x} \mapsto (\mathbf{H}^*\mathbf{H} + \lambda \mathbf{I})\mathbf{x}$ using, again, filtering operations in the Fourier domain.
+
+# 3.5. Surface Reconstruction
+
+Having obtained the field $\mathfrak{v}$ of directional albedo, we use the method of [52] to fit a nonparametric surface. Fitting the surface amounts to recovering an indicator function $\chi$ of the scene object so that the gradient of $\chi$ equals $\mathfrak{v}$ . Expressed as an optimization problem, we have
+
+$$
+\text {m i n i m i z e} f (\boldsymbol {\chi}) = \left\| \mathbf {G} ^ {*} \mathbf {G} \boldsymbol {\chi} - \mathbf {G} ^ {*} \mathbf {v} \right\| _ {2} ^ {2} + \lambda \| \boldsymbol {\chi} \| _ {2} ^ {2}, \tag {18}
+$$
+
+in which $\mathbf{G}$ denotes a discretization of the three-dimensional gradient operator. In practice, however, the zero-level-set of the solution $\chi^{\mathrm{opt}}$ of (18) may deviate from the surface of the true scene object due to the noise in $\mathbf{v}$ and the discretization
+
+
+Figure 8. Surface reconstruction using captured data: SU has a spatial resolution of $64 \times 64$ pixels (1min exposure), and the remaining scenes, $512 \times 512$ (180min exposure). We use $\lambda = 2^0$ , $2^3$ and $2^3$ for SU, Discobolus and Dragon, respectively. Insets in the left-most column show the scene objects. Fermat flow [18] and the method of Tsai et al. [19] only partially reconstruct the surfaces.
+
+ | Methods | 64 × 64 | 128 × 128 | 256 × 256 | 512 × 512 |
| Albedo | FBP | 0.6s | 2.0s | 8.3s | 32.4s |
| Phasor Fields | 0.9s | 3.1s | 12.6s | 49.3s |
| f-k migration | 1.5s | 6.6s | 20.9s | 72.6s |
| LCT | 0.5s | 2.4s | 8.5s | 30.4s |
| Normals | Fermat flow | 1.6s | 5.6s | 21.3s | 86.5s |
| Heide et al. | >10h | N/A | N/A | N/A |
| Tsai et al. | 7h | N/A | N/A | N/A |
| D-LCT (Ours) | 5.2s | 21.9s | 89.5s | 370.0s |
+
+Table 1. Running times of various methods: Measured using an 8-core, $2.70\mathrm{GHz}$ CPU for the Bunny, all at temporal resolutions of 512 pixels. The methods of Heide et al. [13] and Tsai et al. [19] do not scale to resolutions higher than $64 \times 64$ .
+
+of the problem. To mitigate such issues, we follow again the approach of [52] to extract an isosurface of $\chi^{\mathrm{opt}}$ instead.
+
+# 4. Experimental Results
+
+Since our directional LCT approach recovers both albedo and surface normals, it can be used in the traditional context of two-dimensional NLOS imaging as well as to reconstruct surfaces in three dimensions. We demonstrate our approach for both use-cases, also comparing it to methods specialized to each one. We use ZNLOS [53] and Stanford [14] datasets for experimental validation. The ZNLOS dataset consists of multiple-bounce transients of synthetic objects $0.50\mathrm{m}$ away from a $1\mathrm{m} \times 1\mathrm{m}$ visible surface. The dataset has a temporal resolution of 512 pixels with bins of width 10ps, and spatial
+
+resolutions of $256 \times 256$ pixels. The Stanford set consists of transients measured on a $2\mathrm{m} \times 2\mathrm{m}$ surface of natural hidden objects $1\mathrm{m}$ away, with ambient light and noise. This dataset has a spatial resolution of $512 \times 512$ or $64 \times 64$ pixels, and a temporal resolution of 512 with bins of width $32\mathrm{ps}$ .
+
+# 4.1. NLOS Imaging Experiments
+
+Directional Transient Imaging. Figure 5 shows the normal images obtained using the D-LCT. These images contain the fine variations in object surfaces such the smooth surface of the spheres and the fur of the bunny. These details would be difficult to recover post-hoc from albedo-only images using detail-enhancement techniques, for example. The results for the LCT resemble the $z$ -component of the D-LCT ones with subtle differences that can be expected from the simplifying assumption (6). We render directional albedo volumes using maximum intensity projection: for each point $(x', y', z = 0)$ on the image plane, we find along the $z$ -axis the directional-albedo with maximum $z$ -component values. We reconstruct the surfaces by first masking out the background pixels with ground-truth masks, and performing Poisson reconstruction on the foreground points and the directional albedo. We use $\lambda = 2^3$ for all scenes.
+
+Accuracy of Depth and Surface Normals. Figure 6 shows the error maps for the recovered depth and surface normals of the "Bunny". The recovered LCT and D-LCT depth maps have root-mean-squared errors (RMSE) $5.97\mathrm{cm}$ and $4.96\mathrm{cm}$
+
+and the mean absolute errors (MAE) of $1.87\mathrm{cm}$ and $1.59\mathrm{cm}$ respectively, across foreground pixels. The surface normals estimated using the LCT and the D-LCT have the end-point RMSE of $0.91\mathrm{cm}$ and $0.52\mathrm{cm}$ , MAE of $0.61\mathrm{cm}$ and $0.38\mathrm{cm}$ respectively. Note, the LCT does not, by itself, produce any surface normals, so we obtain the normals using the method [54] with the LCT depth as the input (we use 6 neighboring points to produce the optimum results). In Figure 7, we plot the influence of regularization parameter $\lambda$ on the depth and surface normal errors, illustrating that the D-LCT performs stable over a wide range of $\lambda$ . This can be useful in practical imaging scenarios in which the signal-to-noise ratio $\lambda$ of the captured transient data is not known exactly.
+
+Surface Reconstruction with Captured Data. To show the robustness of the D-LCT against different types of noise that are present in real capture environments, we perform surface reconstruction with the Stanford dataset. Figure 8 shows the directional albedo and surfaces of recovered SU, Discobolus and the Dragon objects. We reconstruct the surfaces by first thresholding the norm of directional albedo vectors to mask out the background points, then performing Poisson surface reconstructions on the remaining foreground points. We use $\lambda = 2^0$ , $2^3$ and $2^3$ for the three scenes. In the SU scene, the normal volumes reveal the orientation of the letters S and U (S points to the upper-left, U points to the upper-right). The left part of U is partially occluded, so the different methods produce different maximal intensity projections along the $z$ -axis. For these reconstruction tasks with noisy transients, the method of Tsai et al. [19] and Fermat flow [18] reconstruct only the rough shapes of the objects. We initialize [19] using the LCT, but other initializations are also possible. We used the --density flag in the Poisson reconstruction software [48] to avoid the fusion of nearby surface segments.
+
+Computational Efficiency. While the D-LCT has the same computational complexity as the LCT, we perform $9 \times$ more computations per voxel due to the outer Cholesky factoring required. The D-LCT is $1000 \times$ faster compared with similar methods that are capable of recovering the surface normals of objects with a complex geometry. While Fermat flow [18] is $4 \times$ faster than our approach, it is applicable mostly to the reconstruction of surfaces of objects with simpler geometry such as a bowl or a sphere (see Section 3 of the supplement for the reconstructions). Table 1 provides the running times of different methods on an 8-core, 2.70GHz CPU.
+
+# 5. Discussion
+
+Our work proposes an efficient method to jointly estimate the albedo and the surface normals of NLOS objects using a deconvolution approach. Our Directional LCT has the same low computational complexity as albedo-only methods, e.g. $f - k$ migration and the LCT, but is capable of reconstructing high-quality surfaces.
+
+Limitations. Our forward model (8) assumes the scene has mostly non-specular surfaces. Fortunately, our least-squares inverse method provides some degree of robustness against specularities by treating them as outliers (see e.g. the Dragon reconstruction, Figure 8). Similarly, we treat occlusions in the scene as outliers to our least-squares formulation. Using an $L_{1}$ -based data fidelity term instead of our $L_{2}$ -based one (10) could further improve the robustness of our method, at the cost of increased computation times. The $L_{1}$ -based data-term also enforces sparsity, which may remove the need for masking out background pixels.
+
+Our forward model also linearizes the cosine fall-off due to the interaction between surface normals and the two light rays (incident and reflected). Our linearized fall-off model is an under-estimator of the true fall-off, and surface locations that make larger angles on average with the visible wall are estimated to be at positions closer to the visible wall, where the fall-off is indeed less. This causes rounder surfaces to be estimated slightly flatter than they should be (see the arms of the Discobolus, Figure 8), but not as flat as the estimates of the LCT, which assumes zero cosine fall-off. This issue can be overcome by iteratively reweighting the first term of (10) using the ratio of the true fall-off to the linear one, based on the normals last estimated; see Section 3 of the supplement.
+
+Future Work. To improve reconstruction times, we plan to implement the D-LCT procedure on a GPU. Similarly to the original LCT, the D-LCT is highly parallelizable and can be significantly accelerated using a GPU implementation. Like the GPU implementation of the LCT, we expect GPU-based D-LCT to require milliseconds of processing time for lower spatial resolutions, e.g. $32 \times 32$ or $64 \times 64$ pixels. We plan also to consider $L_{1}$ or TV regularizers to better preserve the discontinuities in the reconstructed surfaces.
+
+# 6. Conclusion
+
+NLOS imaging approaches have typically been classified as recovering either the albedo or the surface normals of the hidden objects. In this work, we showed that it is possible to recover both quantities jointly. In closing, reconstruction of surfaces of hidden 3D objects can be regarded as the next frontier for NLOS imaging because it allows us to represent better the 3D environment we ultimately live in. We believe the D-LCT is a big step towards pushing beyond volumetric albedo approaches, providing a practical way to estimate the hidden surface normals needed for surface reconstruction.
+
+Acknowledgements. We thank M. J. Galindo for help with dataset [53] and I. Gkioulekas for the code of [18, 19]. D.L. was supported by a Stanford Graduate Fellowship. G.W. was supported by an NSF CAREER Award (IIS 1553333), a Sloan Fellowship, by the KAUST Office of Sponsored Research through the Visual Computing Center CCF grant, the DARPA REVEAL program, and a PECASE by the ARL.
+
+# References
+
+[1] Jacopo Bertolotti, Elbert G. van Putten, Christian Blum, Ad Legendijk, Willem L. Vos, and Allard P. Mosk. Non-invasive imaging through opaque scattering layers. Nature, 491(7423):232-234, 2012.
+[2] Ori Katz, Eran Small, and Yaron Silberberg. Looking around corners and through thin turbid layers in real time with scattered incoherent light. Nat. Photonics, 6(8):549-553, 2012.
+[3] Brandon M. Smith, Matthew O'Toole, and Mohit Gupta. Tracking multiple objects outside the line of sight using speckle imaging. In CVPR, 2018.
+[4] Ahmed Kirmani, Tyler Hutchison, James Davis, and Ramesh Raskar. Looking around the corner using transient imaging. In ICCV, 2009.
+[5] Christos Thrampoulidis et al. Exploiting occlusion in non-line-of-sight active imaging. IEEE Trans. Comput. Imaging, 4(3):419-431, 2018.
+[6] Katherine L. Bouman et al. Turning corners into cameras: Principles and methods. In ICCV, 2017.
+[7] Manel Baradad et al. Inferring light fields from shadows. In CVPR, 2018.
+[8] Mahed Batarseh, Sergey Sukhov, Zhean Shen, Heath Gendar, Roxana Rezvani, and Aristide Dogariu. Passive sensing around the corner using spatial coherence. Nat. Commun., 9(1):1-6, 2018.
+[9] Charles Saunders, John Murray-Bruce, and Vivek K. Goyal. Computational periscopy with an ordinary digital camera. Nature, 565(7740):472-475, 2019.
+[10] David B. Lindell, Gordon Wetzstein, and Vladlen Koltun. Acoustic non-line-of-sight imaging. In CVPR, 2019.
+[11] 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. Nat. Commun., 3:745, 2012.
+[12] 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, 2018.
+[13] 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 Trans Graph, 38(3):22:1-22:10, 2019.
+[14] David B. Lindell, Gordon Wetzstein, and Matthew O'Toole. Wave-based non-line-of-sight imaging using fast f-k migration. ACM Trans. Graph. TOG, 38(4):116, 2019.
+[15] Christopher A. Metzler, David B. Lindell, and Gordon Wetzstein. Keyhole imaging: non-line-of-sight imaging and tracking of moving objects along a single optical path at long standoff distances. ArXiv191206727 Cs Eess, 2019.
+[16] Marco La Manna, Fiona Kine, Eric Breitbart, Jonathan Jackson, Talha Sultan, and Andreas Velten. Error backprojection algorithms for non-line-of-sight imaging. IEEE Trans. Pattern Anal. Mach. Intell., 41(7):1615-1626, 2019.
+[17] Chia-Yin Tsai, Kiriakos N. Kutulakos, Srinivasa G. Narasimhan, and Ashwin C. Sankaranarayanan. The geometry of first-returning photons for non-line-of-sight
+
+imaging. In CVPR, 2017.
+[18] 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 CVPR, 2019.
+[19] Chia-Yin Tsai, Aswin C. Sankaranarayanan, and Ioannis Gkioulekas. Beyond volumetric albedo—a surface optimization framework for non-line-of-sight imaging. In CVPR, 2019.
+[20] 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 CVPR, 2014.
+[21] Achuta Kadambi, Hang Zhao, Boxin Shi, and Ramesh Raskar. Occluded imaging with time-of-flight sensors. ACM Trans Graph, 35(2):15:1-15:12, 2016.
+[22] Jonathan Klein, Christoph Peters, Jaime Martin, Martin Laurenzis, and Matthias B. Hullin. Tracking objects outside the line of sight using 2D intensity images. Sci. Rep., 6:32491, 2016.
+[23] Mauro Buttafava, Jessica Zeman, Alberto Tosi, Kevin Eliceiri, and Andreas Velten. Non-line-of-sight imaging using a time-gated single photon avalanche diode. Opt. Express, 23(16):20997-21011, 2015.
+[24] Genevieve Gariepy et al. Single-photon sensitive light-infight imaging. Nat. Commun., 6:6021, 2015.
+[25] Feihu Xu et al. Revealing hidden scenes by photon-efficient occlusion-based opportunistic active imaging. Opt. Express, 26(8):9945-9962, 2018.
+[26] Victor Arellano, Diego Gutierrez, and Adrian Jarabo. Fast back-projection for non-line of sight reconstruction. Opt. Express, 25(10):11574-11583, 2017.
+[27] Matthew O'Toole, Felix Heide, David B. Lindell, Kai Zang, Steven Diamond, and Gordon Wetzstein. Reconstructing Transient Images From Single-Photon Sensors. In CVPR, 2017.
+[28] Matthew O'Toole, David B. Lindell, and Gordon Wetzstein. Real-time Non-line-of-sight Imaging. In ACM SIGGRAPH 2018 Emerging Technologies, 2018.
+[29] Susan Chan, Ryan E. Warburton, Genevieve Gariepy, Jonathan Leach, and Daniele Faccio. Non-line-of-sight tracking of people at long range. Opt. Express, 25(9):10109-10117, 2017.
+[30] Yoann Altmann, Stephen McLaughlin, Miles J. Padgett, Vivek K. Goyal, Alfred O. Hero, and Daniele Faccio. Quantum-inspired computational imaging. Science, 361(6403):eaat2298, 2018.
+[31] Otkrist Gupta, Thomas Willwacher, Andreas Velten, Ashok Veeraraghavan, and Ramesh Raskar. Reconstruction of hidden 3D shapes using diffuse reflections. Opt. Express, 20(17):19096-19108, 2012.
+[32] Byeongjoo Ahn, Akshit Dave, Ashok Veeraraghavan, Ioannis Gkioulekas, and Aswin C. Sankaranarayanan. Convolutional Approximations to the General Non-Line-of-Sight Imaging Operator. In ICCV, 2019.
+[33] Xiaochun Liu et al. Non-line-of-sight imaging using phasorfield virtual wave optics. Nature, :1-4, 2019.
+[34] Matthew M. Loper and Michael J. Black. OpenDR: An
+
+Approximate Differentiable Renderer. In ECCV, 2014.
+[35] Pramook Khungurn, Daniel Schroeder, Shuang Zhao, Kavita Bala, and Steve Marschner. Matching real fabrics with micro-appearance models. ACM Trans Graph, 35(1):1:1-1:26, 2015.
+[36] Ioannis Gkioulekas, Anat Levin, and Todd Zickler. An evaluation of computational imaging techniques for heterogeneous inverse scattering. In ECCV, 2016.
+[37] Shuang Zhao, Lifan Wu, Frédo Durand, and Ravi Ramamoorthi. Downsampling scattering parameters for rendering anisotropic media. ACM Trans Graph, 35(6):166:1-166:11, 2016.
+[38] Adam Geva, Yoav Y. Schechner, Yonatan Chernyak, and Rajiv Gupta. X-ray computed tomography through scatter. In ECCV, 2018.
+[39] Stephen Robert Marschner. Inverse Rendering for Computer Graphics, PhD Thesis, Cornell University, 1998.
+[40] Gustavo Patow and Xavier Pueyo. A survey of inverse surface design from light transport behavior specification. Comput. Graph. Forum, 22:663-687, 2003.
+[41] Ben Appleton and Hugues Talbot. Globally minimal surfaces by continuous maximal flows. IEEE Trans. Pattern Anal. Mach. Intell., 28(1):106-118, 2006.
+[42] Olivier Faugeras and Renaud Keriven. Complete dense stereovision using level set methods. In ECCV, 1998.
+[43] Amaël Delaunoy and Emmanuel Prados. Gradient flows for optimizing triangular mesh-based surfaces: applications to 3d reconstruction problems dealing with visibility. Int. J. Comput. Vis., 95(2):100-123, 2011.
+[44] Mathieu Desbrun, Mark Meyer, Peter Schroder, and Alan H. Barr. Implicit fairing of irregular meshes using diffusion and curvature flow. In SIGGRAPH, 1999.
+
+[45] Mark Meyer, Mathieu Desbrun, Peter Schroder, and Alan H. Barr. Discrete Differential-Geometry Operators for Triangulated 2-Manifolds. In Visualization and Mathematics III, 2003.
+[46] O. Sorkine, D. Cohen-Or, Y. Lipman, M. Alexa, C. Rössl, and H.-P. Seidel. Laplacian Surface Editing. In Proceedings of the 2004 Eurographics/ACM SIGGRAPH Symposium on Geometry Processing, 2004.
+[47] Ilya Eckstein, Jean-Philippe Pons, Yiying Tong, C.-C. Jay Kuo, and Mathieu Desbrun. Generalized surface flows for mesh processing. In Proceedings of the Fifth Eurographics Symposium on Geometry Processing, 2007.
+[48] Michael Kazhdan, Matthew Bolitho, and Hugues Hoppe. Poisson surface reconstruction. In Proceedings of the Fourth Eurographics Symposium on Geometry Processing, 2006.
+[49] Per Christian Hansen. Discrete Inverse Problems: Insight and Algorithms. SIAM, 2010.
+[50] Di Wu et al. Frequency Analysis of Transient Light Transport with Applications in Bare Sensor Imaging. In Computer Vision - ECCV 2012, 2012.
+[51] Lloyd N. Trefethen and David Bau, III. Numerical Linear Algebra. SIAM, 1997.
+[52] Michael Kazhdan and Hugues Hoppe. Screened Poisson Surface Reconstruction. ACM Trans Graph, 32(3):29:1-29:13, 2013.
+[53] Graphics and Imaging Lab. Z-NLOS Dataset, Graphics and Imaging Lab. [Online]. Available: http://graphics.unizar.es/nlos_dataset. [Accessed: 13-Sep-2019].
+[54] Hugues Hoppe, Tony DeRose, Tom Duchamp, John McDonald, and Werner Stuetzle. Surface Reconstruction from Unorganized Points. In SIGGRAPH, 1992.
\ No newline at end of file
diff --git a/nonlineofsightsurfacereconstructionusingthedirectionallightconetransform/images.zip b/nonlineofsightsurfacereconstructionusingthedirectionallightconetransform/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..6fc1b761e03f572457f7baa03493f7596d7c83e2
--- /dev/null
+++ b/nonlineofsightsurfacereconstructionusingthedirectionallightconetransform/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:842839faaccf21e43d0c9ac939b299323ec9ab7099fab74d0a77e1cc74ffdae8
+size 663506
diff --git a/nonlineofsightsurfacereconstructionusingthedirectionallightconetransform/layout.json b/nonlineofsightsurfacereconstructionusingthedirectionallightconetransform/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..886291d373d5355c6681123c455857ec4064f495
--- /dev/null
+++ b/nonlineofsightsurfacereconstructionusingthedirectionallightconetransform/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:30548b22404e8e526ba8bd6429a73bf30e5e27678223b2823d258c56ce4a1a68
+size 523172
diff --git a/nonlocalneuralnetworkswithgroupedbilinearattentionaltransforms/a2a1a328-31c2-4ffc-bcb5-084fbfbfb5a7_content_list.json b/nonlocalneuralnetworkswithgroupedbilinearattentionaltransforms/a2a1a328-31c2-4ffc-bcb5-084fbfbfb5a7_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..34461a665e809f381f04d9283913a5bb169d4a1a
--- /dev/null
+++ b/nonlocalneuralnetworkswithgroupedbilinearattentionaltransforms/a2a1a328-31c2-4ffc-bcb5-084fbfbfb5a7_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:34d5d4ddf6cf0b8e33be39317e5d4729a32a09d7b90c1612bfe876303214dd6f
+size 83470
diff --git a/nonlocalneuralnetworkswithgroupedbilinearattentionaltransforms/a2a1a328-31c2-4ffc-bcb5-084fbfbfb5a7_model.json b/nonlocalneuralnetworkswithgroupedbilinearattentionaltransforms/a2a1a328-31c2-4ffc-bcb5-084fbfbfb5a7_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..0cf460c483c019e2d04753c71eb2b2134d2b1114
--- /dev/null
+++ b/nonlocalneuralnetworkswithgroupedbilinearattentionaltransforms/a2a1a328-31c2-4ffc-bcb5-084fbfbfb5a7_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cd114c5633d5cfe6eac530fc563b2ace7fcfb0089ca16257436ee1fa82002cd8
+size 103245
diff --git a/nonlocalneuralnetworkswithgroupedbilinearattentionaltransforms/a2a1a328-31c2-4ffc-bcb5-084fbfbfb5a7_origin.pdf b/nonlocalneuralnetworkswithgroupedbilinearattentionaltransforms/a2a1a328-31c2-4ffc-bcb5-084fbfbfb5a7_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..b2acd943119e37f611faa7f37ccc38df43e33c1f
--- /dev/null
+++ b/nonlocalneuralnetworkswithgroupedbilinearattentionaltransforms/a2a1a328-31c2-4ffc-bcb5-084fbfbfb5a7_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7415b0f02f1b1acec1b79090b03f13f0993305bedb7d8998ef6b2d5a2d4bef35
+size 690621
diff --git a/nonlocalneuralnetworkswithgroupedbilinearattentionaltransforms/full.md b/nonlocalneuralnetworkswithgroupedbilinearattentionaltransforms/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..50a39b3f10faf4a0afac77fe63e3747dd31db078
--- /dev/null
+++ b/nonlocalneuralnetworkswithgroupedbilinearattentionaltransforms/full.md
@@ -0,0 +1,341 @@
+# Non-Local Neural Networks with Grouped Bilinear Attentional Transforms
+
+Lu Chi $^{1,2}$ , Zehuan Yuan $^{2}$ , Yadong Mu $^{1*}$ , Changhu Wang $^{2}$
+
+1Peking University, Beijing, China, 2ByteDance AI Lab, Beijing, China
+
+{chilu,myd}@pku.edu.cn,{yuanzehuan,wangchanghu}@bytedance.com
+
+# Abstract
+
+Modeling spatial or temporal long-range dependency plays a key role in deep neural networks. Conventional dominant solutions include recurrent operations on sequential data or deeply stacking convolutional layers with small kernel size. Recently, a number of non-local operators (such as self-attention based [57]) have been devised. They are typically generic and can be plugged into many existing network pipelines for globally computing among any two neurons in a feature map. This work proposes a novel non-local operator. It is inspired by the attention mechanism of human visual system, which can quickly attend to important local parts in sight and suppress other less-relevant information. The core of our method is learnable and data-adaptive bilinear attentional transform (BA-Transform), whose merits are three-folds: first, BA-Transform is versatile to model a wide spectrum of local or global attentional operations, such as emphasizing specific local regions. Each BA-Transform is learned in a data-adaptive way; Secondly, to address the discrepancy among features, we further design grouped BA-Transforms, which essentially apply different attentional operations to different groups of feature channels; Thirdly, many existing non-local operators are computation-intensive. The proposed BA-Transform is implemented by simple matrix multiplication and admits better efficacy. For empirical evaluation, we perform comprehensive experiments on two large-scale benchmarks, ImageNet and Kinetics, for image/video classification respectively. The achieved accuracies and various ablation experiments consistently demonstrate significant improvement by large margins.
+
+# 1. Introduction
+
+This era has witnessed the vigorous development of deep neural networks, with significant empirical success in a plethora of important real-life vision tasks [28, 36, 45, 56]. The neural architectures of convolutional networks are still
+
+
+(a)
+
+
+(b)
+
+
+Figure 1: (a) Typical architecture of neural networks with non-local operators, where non-local neural blocks (highlighted in blue) are sparsely added into original network pipeline to instantaneously achieve large receptive fields. (b) Illustration of our proposed bilinear attentional transform (BA-Transform). With properly-learned matrices $\mathbf{P}^{(\mathbf{X})}$ , $\mathbf{Q}^{(\mathbf{X})}$ in the transformation formula $\mathbf{Y} = \mathbf{P}^{(\mathbf{X})}\mathbf{X}\mathbf{Q}^{(\mathbf{X})}$ , BA-Transform can conduct a variety of operations (selective zooming and dispersing to distant positions as shown in this sub-figure) on attended features. The super-scripts in $\mathbf{P}$ , $\mathbf{Q}$ emphasize their dependence on $\mathbf{X}$ .
+
+undergoing rapid evolution. Much of recent endeavor has been devoted to designing deeper [48, 17] or wider [61, 14] network architectures, or more effective atomic convolutional operators [6, 20]. The main interest of this work is modeling long-range spatial [57] or temporal [56] dependencies in deep convolutional networks. To this end, classic neural networks, such as VGG-Net [48] or ResNet [17], mostly adopt a scheme of deeply stacking many convolutional layers with small receptive fields (e.g., $3 \times 3$ kernels in ResNet [17] and $3 \times 3 \times 3$ spatio-temporal kernels in C3D [52]).
+
+One of current research fronts regarding effectively enlarging neural receptive fields is to sparsely insert non-local operators into an existing network pipeline. An illustration of such a architecture is shown in Figure 1(a). The main challenge for sparse insertion of non-local operators is their
+
+high time complexity. For example, in [57], Wang et al. proposed a seminal non-local neural operator based on self-attention, which requires $\mathcal{O}(N^2)$ ( $N$ counts all locations in the feature map) vector multiplication. Arguably, the scheme in Figure 1(a) can strike a good tradeoff between complexity and performance.
+
+Our method is inspired by human visual perception. For the optical signal received at the retina, human eyes are believed to conduct both a bottom-up procedure for obtaining low-level abstraction, and top-down attentional operations that quickly locate most interesting parts from the entire field of visual scene. The eyes will focus on the attended regions for further inspection. Such attention mechanism is clearly more effective for visual understanding in comparison with blind processing. This has inspired substantial efforts on devising various powerful attentional neural networks [41, 16, 25] used for visual analysis and generation. Figure 1(b) illustrates our proposed bilinear attentional transform (BA-Transform). It processes an input feature map $\mathbf{X}$ to obtain a new $\mathbf{Y}$ via the formula $\mathbf{Y} \leftarrow \mathbf{P}^{(\mathbf{X})} \mathbf{X} \mathbf{Q}^{(\mathbf{X})}$ , where all variables are matrices and their sizes can be inferred from context. Motivating our advocate of the BA-Transform we consider two desiderata:
+
+Firstly, human are remarkably capable of capturing complex attention patterns, which can be accomplished even at a single glimpse. The attended parts in visual field can be spatially or temporally disjoint (e.g., in a video of boxing action, two boxers shall both be paid attention to, even if they might be distant to one another), or highly complex. It is thus crucial to enforce that neural attentional units have sufficiently powerful modeling capability. Our proposed BA-Transform supports a large variety of operations on the attended image or video parts albeit its simplicity, including numerous affine transformation (selective scaling, shift, rotation, cropping etc.), suppressing / strengthening local structure or even global reasoning, as partially illustrated in Figure 1(b).
+
+Secondly, bilinear matrix multiplication is amenable to efficient differential calculation. In practice, we can add neural blocks that implement BA-Transform into an existing network, and jointly train all neural layers in an end-to-end fashion. Top-down supervision can be gradually back-propagated to shallow layers and enforce the consistency between learned attentions and top-down supervision. When plugged in neural architecture with skip connections, BA-Transforms tend to learn complementary attentions at different insertion, corroborated by empirical studies in our experimental section.
+
+The proposed BA-Transform naturally inherits almost all advantages of its precedent works [57, 24]: capturing long-range interactions via directly connecting all locations, seamlessly combined with many existing neural networks, and elevating performance even being inserted only very
+
+few times. In addition to all above, we also propose a channel-grouping scheme. This enforces that a same attention pattern is shared within a group. This explicitly enables that multiple heterogeneous attention patterns can be simultaneously learned for the same feature map in the neural networks.
+
+The rest of this paper is organized as following: We first review related work in Section 2 and detail the proposed block design in Sections 3 and 4. Section 5 showcases the effectiveness of this global operator by conducting experiments in two tasks, including image recognition and video classification.
+
+# 2. Related Work
+
+Neural Attention. Human visual system is known to have high resolution at the fovea and low resolution in the periphery [46]. Attention mechanism bridges this gap, and inspires much of recent development in the computer vision domain. Successful applications of attention in vision tasks include image classification [55, 59], image generation [16], segmentation [4, 12], action recognition [57, 37] etc. In neural networks, attention of each pixel can be softly estimated (i.e., soft attention) and hardly classified into 0 or 1 (i.e., hard attention). A popular treatment to obtain hard attention is learning to crop image regions using pre-trained detector [58, 34] or policies trained via reinforcement learning [41]. Our proposed method falls into the category of soft attention [25, 13, 54, 57, 9], where the attention units are typically differentiable and trained by gradient back-propagation. Some classic methods treat attention as bottom-up saliency [55, 9]. Recent advances have increasingly emphasized the drive of top-down supervision. Another taxonomy is based on whether attention is learned locally or globally. Deformable convolution [10, 64] seeks for local interesting pixels. self-attention based attention methods [57, 24] globally connect all locations. Among globally-learned attention models, some accomplishes in one shot (e.g., STN [25] and our proposed method), and others recurrently reinforce the model [41, 16, 27].
+
+Network Architecture. Recent years have observed a blossom of novel neural networks. Classic networks (e.g., VGG [48]) favor convolutions with small kernels. The global interaction among all locations are obtained by deeply stacking many convolutional layers and utilizing skip connections (e.g., ResNet [17] and DenseNet [23]). More complex kernels and networks can be automatically found via neural architecture search (NAS) [1, 35, 5]. It has also been intensively explored to use mixed or large receptive fields. For instance, Inception [50, 51] and SKNet [31] use an ensemble of differently-sized kernels. Most relevant works to ours are non-local neural networks [57, 7, 24] and GloRe unit [8], which can globally disperse any local message. In our proposed BA-Transform, group-wise
+
+
+Figure 2: Design of our proposed BAT-Block. The left panel draws the computational pipeline of our proposed BAT-Block. The right panel shows more details, particularly the transformation predictor. To save space, batch normalization, ReLU and our proposed row / column normalization are not shown here. More explanation is found in Section 3.2.
+
+attention is adopted, similar to group or depth convolutions used in MobileNet [19, 47, 18], ShuffleNet [63, 39] and IGCNet [49].
+
+Image / Video Classification. A majority of neural networks [17, 55, 23, 10, 64, 6] are developed for tackling image recognition. Early development of deep network based video classification directly borrows pretrained image models. Features are first extracted from frame-based video snippets, and fused either by recurrent aggregation [60] or naive pooling [56]. Karpathy et al. in [26] first introduced 3D convolutional operation to this task. The follow-up work of I3D [2] proposed a better network initialization by inflating pre-trained 2D filters to 3D. To expedite computing spatio-temporal convolutions, some recent methods decoupled 3D convolution and sequentially execute along the spatial and temporal dimensions [43, 53, 62]. TSM [32] presented an efficient method to model temporal information by shifting in timescale.
+
+# 3. The Proposed Approach
+
+We first introduce a general definition of bilinear attentional transform (BA-Transform) in Section 3.1. In practice, BA-Transform is wrapped into a neural block which can be dropped into any arbitrary CNN architectures. The details, including various engineering considerations, can be found in Section 3.2.
+
+# 3.1. Formulation
+
+Let $\mathbf{X} \in \mathbb{R}^{H \times W \times C}$ be a feature map with $C$ channel. $H, W$ denote the sizes along two spatial dimensions respectively. Our goal is to design an operator which transforms an input $\mathbf{X}$ into a same-sized output $\mathbf{Y} \in \mathbb{R}^{H \times W \times C}$ . Critically, each element of $\mathbf{Y}$ is expected to relate to multiple
+
+features in $\mathbf{X}$ (i.e., the non-local property of capturing long-range dependence), and contain all key information of $\mathbf{X}$ (i.e., $\mathbf{Y}$ learns the attention of $\mathbf{X}$ ). Different from existing self-attention [54] based non-local operators [57] and its approximate accelerated variants [7, 24], we here utilize bilinear matrix product as below,
+
+$$
+\mathbf {Y} _ {c} = \mathbf {P} ^ {(\mathbf {X})} \cdot \mathbf {X} _ {c} \cdot \mathbf {Q} ^ {(\mathbf {X})}, \tag {1}
+$$
+
+where the sub-script $c$ denote an $H\times W$ slice of $\mathbf{X}$ or $\mathbf{Y}$ along the $c$ -th channel. $\mathbf{P}^{(\mathbf{X})}$ and $\mathbf{Q}^{(\mathbf{X})}$ are transformation matrices to be learned, with the size of $H\times H$ and $W\times W$ respectively. Their super-scripts imply that both are dependent on the input data $\mathbf{X}$ , thus data-adaptive. For brevity, hereafter the super-scripts will be omitted.
+
+Let us give some intuitive explanation for Eqn. (1). Once properly learned, according to the theory of elementary matrix [40], the left-multiplier $\mathbf{P}$ can be represented as the product of three kinds of elementary matrices that interchanging rows, multiplying row by a scalar, or adding a multiple of row to another row, respectively. Likewise, the learned right-multiplier $\mathbf{Q}$ defines a series of elementary column operations to $\mathbf{X}$ . The joint function of $\mathbf{P}, \mathbf{Q}$ enables a large spectrum of transformation of $\mathbf{X}$ , including selective zooming, suppressing / enhancing specific sub-matrices of $\mathbf{X}$ etc. Two special cases are found in Figure 1(b).
+
+The previous work STN [25] aims to learn invariance to translation, scale, rotation and more generic warping by affine transformation. Our work differently pay varying attention weights on the feature map. STN is also limited by the number of spatial transformers, while ours can capture several attentional operations in a pair of $\mathbf{P},\mathbf{Q}$ . Additionally, our proposed BA-Transform does not suffer from the black border problem [25]. When compared with
+
+self-attention based operators [57], our method tends to exhibit superior performance, supposedly owing to effectively modeling complex attentional patterns.
+
+# 3.2. Basic 2D BAT-Block for Image Tasks
+
+We term a neural block that wraps and implements an instance of BA-Transform as BAT-Block. The architecture of BAT-Block is shown in Figure 2. Following by the common practice of residual block [17, 55], we add two $1 \times 1$ convolutions into the BAT-Block. Any input feature maps will first go through channel reduction at the beginning and channel promotion at exit. Residual connection is also adopted. There are two key procedures in the BAT-Block, namely transformation predictor and BA-Transform respectively. The former reads $\mathbf{X} \in \mathbb{R}^{H \times W \times C}$ (the output of the first $1 \times 1$ convolution) and predicts two parametric matrices $\mathbf{P} \in \mathbb{R}^{H \times H}$ and $\mathbf{Q} \in \mathbb{R}^{W \times W}$ conditioned on $\mathbf{X}$ . The latter is previously described in Eqn. 1.
+
+Empirically, it is observed that the matrix norms of $\mathbf{P},\mathbf{Q}$ tend to explode after a few epochs of gradient backpropagation. For the consideration of numerical stability, we enforce all elements in $\mathbf{P},\mathbf{Q}$ are non-negative and normalize them in an $L_{1}$ sense by rows or columns respectively, as below:
+
+$$
+\mathbf {P} _ {i, j} \leftarrow \frac {\mathbf {P} _ {i , j}}{\sum_ {k = 1} ^ {H} \mathbf {P} _ {i , k}}, \quad \mathbf {Q} _ {i, j} \leftarrow \frac {\mathbf {Q} _ {i , j}}{\sum_ {k = 1} ^ {W} \mathbf {Q} _ {k , j}}, \tag {2}
+$$
+
+where $i,j,k$ collaboratively compose valid indices for accessing an individual element in $\mathbf{P}$ and $\mathbf{Q}$ .
+
+Now we elaborate on two core operations in transformation predictor:
+
+1. Feature compression via channel reduction and row / column pooling. The reduced feature map $\mathbf{X}$ (from some $D$ channels to $C$ ) is often sill too large for computing over the global receptive field. To further reduce the time complexity, we further reduce the number of channels in $\mathbf{X}$ via a $1 \times 1$ convolutional layer, followed by a batch normalization layer and ReLU. The obtained representation is denoted as $\mathbf{F} \in \mathbb{R}^{H \times W \times C'}$ , where $C' \ll C$ .
+
+We expect that each individual element in $\mathbf{P},\mathbf{Q}$ is estimated globally conditioned on $\mathbf{F}$ . To this end, it is necessary to extract some global, compact representation from $\mathbf{F}$ , particularly when $\mathbf{F}$ still has high spatial resolution.
+
+Inspired by the recently proposed corner pooling [29], a seemingly effective solution is to squeeze $\mathbf{F}$ in either row-wise or column-wise manner. To be specific, we devise row / column pooling on $\mathbf{F}$ . Let $\mathbf{F}^{rp} \in \mathbb{R}^{H \times 1 \times C'}$ , $\mathbf{F}^{cp} \in \mathbb{R}^{1 \times W \times C'}$ be the output of row pooling or column pooling, respectively. These operations are defined as below (channel-wise index is omitted for brevity):
+
+$$
+\mathbf {F} _ {i} ^ {r p} = \max \left\{\mathbf {F} _ {i, j} \mid 1 \leqslant j \leqslant W \right\}, \tag {3}
+$$
+
+$$
+\mathbf {F} _ {j} ^ {c p} = \max \left\{\mathbf {F} _ {i, j} \mid 1 \leqslant i \leqslant H \right\}. \tag {4}
+$$
+
+
+Figure 3: Illustration of matrix resizing. In this example $H / s_h = W / s_w = 2$ .
+
+The procedure is intuitively illustrated in the right panel of Figure 2.
+
+2. Estimate $\mathbf{P},\mathbf{Q}$ with full convolution. The next step estimates $\mathbf{P}$ and $\mathbf{Q}$ from the compact pooled features $\mathbf{F}^{rp},\mathbf{F}^{cp}$ , respectively. To this end, we simply adopt learnable convolutional kernels. Importantly, to ensure global information is utilized in learning $\mathbf{P},\mathbf{Q}$ , kernels with global receptive fields that access all pooled features are used. For example, $H\times 1$ kernels for obtaining $\mathbf{P}$ and $1\times W$ kernels for $\mathbf{Q}$ . Different from Squeeze-and-Excitation (SE) operation in [22], our method can largely preserve spatial information which is crucial for predicting $\mathbf{P}$ or $\mathbf{Q}$ . SE does not take spatiality into account.
+
+# 3.3. Improving 2D BAT-Block
+
+Our practical investigation also reveals the particular effectiveness of two techniques, in the sense of either acceleration or accuracy elevation.
+
+Block based matrix estimation. Predicting full resolution of $\mathbf{P},\mathbf{Q}$ from the pooled features still imply tremendous parameters. As shown later in our experiments, over-parameterized BA-Transform can adversely affects the generalization performance. Inspired by the super-pixel idea widely used in image analysis, we implement a variant of BA-Transform that harnesses a block-based matrix form. Specifically, the feature map $\mathbf{F}$ is uniformly divided into $s_h\times s_w$ blocks along its two spatial dimensions, where $s_h,s_w$ are some integers (e.g., 7) typically divisible by $H,W$ , respectively. Row or column pooling is conducted by the following updated formula:
+
+$$
+\mathbf {F} _ {i} ^ {r p} = \max \left\{\mathbf {F} _ {k, j} | i \leqslant k < i \times \frac {H}{s _ {h}}, 1 \leqslant j \leqslant W \right\}, \tag {5}
+$$
+
+$$
+\mathbf {F} _ {j} ^ {c p} = \max \left\{\mathbf {F} _ {i, k} | j \leqslant k < j \times \frac {W}{s _ {w}}, 1 \leqslant i \leqslant H \right\}. \tag {6}
+$$
+
+This leads to much smaller pooled features $\mathbf{F}^{cp} \in \mathbb{R}^{s_h \times 1 \times C'}$ and $\mathbf{F}^{rp} \in \mathbb{R}^{1 \times s_w \times C'}$ . Correspondingly, the sizes of $\mathbf{P}$ , $\mathbf{Q}$ are shrunk to $s_h \times s_h$ or $s_w \times s_w$ , respectively. This requires significantly fewer parameters. A normal routine as described in Section 3.2 is called to learn the BA-Transform. Afterwards, we adopt a simple strategy to restore the full-resolution of $\mathbf{P}$ , $\mathbf{Q}$ . As depicted in Figure 3,
+
+when the element-block correspondence is determined between two matrices, each element in the low-resolution matrix is coped to the respective diagonal locations in the high-resolution matrix. Other cases that $H / s_h = W / s_w \neq 2$ can be likewise derived.
+
+Channel-grouping multi-head attentions. Following [54], we adopt the implementation of multi-head attention. Specifically, $\mathbf{X}$ is uniformly split into $k > 1$ groups along the channel dimension. The idea is illustrated in Figure 2. For each group, a unique pair of $(\mathbf{P},\mathbf{Q})$ will be learned and utilized in Eqn. (1), $k$ pairs of $(\mathbf{P},\mathbf{Q})$ in total. This arguably enhances the ability of tackling complex attention patterns. Our experiments demonstrate this simple idea of channel grouping.
+
+# 3.4. Spatio-Temporal 3D Block for Video Tasks
+
+BAT-Block can be trivially extended to high dimensions. In video tasks, a popular treatment is to stack features from consecutive frames. The input variables are thus 4D tensors, e.g., $\mathbf{X} \in \mathbb{R}^{T \times H \times W \times C}$ with $T$ being the number of stacked frames. Let $\mathbf{X}_{} \in \mathbb{R}^{1 \times H \times W \times C}$ be a time-indexed slice of $\mathbf{X}$ . To extend the 2D BAT-Block, we first separately process each time slice $\mathbf{X}_{}$ using the learned $\mathbf{P}, \mathbf{Q}$ according to Eqn. 1, obtaining the corresponding output $\mathbf{Y}_{}$ .
+
+Next, information from different time slices are fused along the time dimension. Let $\mathbf{T} \in \mathbb{R}^{T \times T}$ be the learnable transform matrix in the time scale, and $\mathbf{Z} \in \mathbb{R}^{T \times H \times W \times C}$ be the final result. 3D BAT-Block has the following extra computation:
+
+$$
+\mathbf {Z} _ {c} \leftarrow \mathbf {T} \otimes \left[ \mathbf {Y} _ {< 1, *, *, c >}, \mathbf {Y} _ {< 2, *, *, c >}, \dots , \mathbf {Y} _ {< T, *, *, c >} \right], \tag {7}
+$$
+
+where $\mathbf{Y}_{} \in \mathbb{R}^{1 \times H \times W \times 1}$ is a slice indexed by time and feature channel. $\otimes$ denotes ordinal convolution. $\mathbf{Z}_c \in \mathbb{R}^{T \times H \times W \times 1}$ is $c$ -th channel of $\mathbf{Z}$ . Essentially, $\mathbf{T}$ defines a $1 \times 1$ timescale convolution that operates on the concatenated $T$ slices from $\mathbf{Y}$ .
+
+In practice, $\mathbf{T}$ can be simultaneously learned with $\mathbf{P}$ and $\mathbf{Q}$ in transformation predictor. Similar to row or column pooling, we design an average pooling along time, which is also adopted for frame feature representation in most video understanding tasks [33, 3]. To better capture temporal dynamics, we also implement multi-head attention at temporal dimension.
+
+# 3.5. Complexity Analysis
+
+Table 1 compares the number of parameters and FLOPs between the standard NL block [57] and our proposed BAT-block. Here we only take 2D block as an example and 3D block should reach the same conclusion. Since $C' \ll C$ , $s_h \ll H$ and $s_w \ll W$ , the complexity of terms with these symbols is negligible. It can be found that BAT-Block
+
+ | NL block [57] | BAT-Block |
| #Params | 2C2 | 5/4C2+1/2CC' + 2C'ks3 |
| FLOPs | 2C2HW + CH2W2 | 5/4C2HW + 1/2CHW(H+W) + 1/2CC'HW + 2C'ks3 |
+
+Table 1: Complexity analysis. For brevity, here we set $s_h = s_w = s$ and $C = D/2$ for BAT-Block, which is also consistent with experiments in Section 4.
+
+is more light-weight than NL block and the advantage of computation cost is much more obvious especially when the input resolution increase.
+
+# 4. Experiments
+
+To validate the effectiveness and efficiency of the proposed block, we conduct comprehensive experiments on two standard tasks: image classification and video classification, where the large-scale ImageNet [28] and Kinetics [2] benchmark datasets are used respectively. Besides the percentage accuracy, we also report GFLOPs and the amount of parameters (Params#M) for each network variant. Unless explicitly stated, 5 BAT-Blocks are evenly inserted to a specific model on Res3 and Res4 with $C = D/2$ , $C' = k = 4$ , and $s_h = s_w = 7$ . We adopt 3D BAT-Blocks for video classification where the block-based matrix trick is not used along time dimension since the number of input frames is not that large.
+
+# 4.1. Experimental Setups
+
+Image Classification. All network variants are trained on 4 GPUs for 90 epochs with the same strategy using PyTorch [42]. The learning rate starts from 0.1 and decreases by a factor of 0.1 after 30, 60 and 80 epochs. The batch size is set to 256. We adopt the Stochastic Gradient Descent (SGD) optimizer during training. The validation accuracy are obtained in the same way as [17, 22, 61] based on $224 \times 224$ single center crop.
+
+Video Classification. We conduct experiments on Kinetics-400 [2] for human action recognition. Kinetics is a large-scale trimmed video dataset that contains more than 300K video clips in total. To conduct ablation studies, following [62] we create a smaller dataset named as Mini-Kinetics-200, which contains 200 categories. For each category, we randomly sample 400 examples for the training set and 25 examples for the validation set.
+
+We choose ResNet-50 C2D and ResNet-50 I3D [57] as our backbone. The models are initialized from the pretrained weights on ImageNet and finetuned on 4 GPUs with a mini-batch of 64 clips. The standard cross-entropy loss is used to guild video classification. All the models use 8-frame input clips with a stride of 8 frames (so covering 64 frames in the raw view). The spatial size of input is
+
+| Method | GFLOPs | #Params | Top-1 |
| baseline | 4.14 | 25.56 | 76.3 |
| full resolution | 5.50 | 31.86 | 77.6 |
| downsampling | 5.22 | 30.23 | 78.1 |
| block-based | 5.44 | 30.23 | 78.3 |
+
+fixed as $224 \times 224$ . For Kinetics-400, all the models are trained for 100 epochs with a learning rate starting from 0.01 and decreasing by a factor of 10 after 40 and 80 epochs. For Mini-Kinetics-200, the total epochs are 50 and a linear warm-up strategy [15] is used in the first 2 epochs. In addition, a cosine schedule [38] is adopted to perform learning rate decay. To reduce over-fitting, we also utilize dropout with a ratio of 0.5 after the global average pooling layer. Meanwhile, the weight decay is set to 0.0001.
+
+We adopt the same data augmentation as [56], i.e., random horizontal flipping, random cropping and scale jittering. We report the clip Top-1 accuracy by selecting the center clip with center crop, and the video Top-1 accuracy by using 10-clip in time dimension, 3-crop spatially fully convolutional inference [57, 11, 32]. More details can be found in Supplementary Materials.
+
+# 4.2. Results on ImageNet
+
+We conduct ablation studies on ImageNet using the standard ResNet-50 [17] by default.
+
+Ablation Study of block-based matrix. In order to reduce the computation cost and the amount of parameters especially for the input of high resolution, we introduce the block-based matrix in Section 3.3. Here we also explore an alternative method termed as downsampling in Table 2. Instead of resizing the predicted matrix $\mathbf{P} / \mathbf{Q}$ to the full resolution, this method downsamples the input feature map $\mathbf{X}$ to $\mathbf{X}^{ds} \in \mathbb{R}^{s_h \times s_w \times C}$ firstly and then operate BA-Transform on $\mathbf{X}^{ds}$ to get $\mathbf{Y}^{ds}$ with the spatial size $s_h \times s_w$ . At last, we upsample $Y^{ds}$ to the full resolution $\mathbf{Y}$ by bilinear interpolation. We also conduct experiments that predict $\mathbf{P} / \mathbf{Q}$ with full resolution directly. As shown in Table 2, both the downsampling and block-based method can reduce GFLOPs and the number of parameters compared with full resolution while the block-based one obtains a higher performance. We analyse that more details are kept in our block, which are probably crucial for classification. Results on ResNet-50 show that the block-based method could also reduce over-fitting.
+
+Different numbers and stages. Table 3 explores different numbers of BAT-Blocks inserted to different locations of a model. We find that even one BAT-Block inserted at Res3 or Res4 can bring a significant improvement, and the improvement of a BAT-Block on Res5 is minor, which may be caused by the small spatial size $(7\times 7)$ that can
+
+Table 2: Ablation studies of block-based matrix.
+
+| Res3 | Res4 | Res5 | Top-1 | Top-5 |
| | | 76.3 | 92.9 |
| +1 | | | 77.1 | 93.5 |
| +1 | | 77.2 | 93.7 |
| | +1 | 76.7 | 93.0 |
| +1 | +1 | | 77.7 | 93.9 |
| +2 | +3 | | 78.3 | 94.0 |
+
+Table 3: Performance gain by varying the inserting positions and counts of BAT-Blocks.
+
+| k | GFLOPs | #Params | Top-1 |
| baseline | 4.14 | 25.56 | 76.3 |
| 0 | 5.43 | 30.17 | 76.5 |
| 1 | 5.44 | 30.18 | 77.9 |
| 2 | 5.44 | 30.19 | 78.0 |
| 4 | 5.44 | 30.23 | 78.3 |
| 16 | 5.45 | 31.09 | 78.4 |
+
+Table 4: Ablation studies of multi-head attention. $k$ represents the number of attention groups. $k = 0$ means that the $\mathbf{P} / \mathbf{Q}$ is fixed as identity matrix.
+
+| Backbone | Method | GFLOPs(Δ) | #Params(Δ) | Top-1 |
| ResNet-18 | baseline | - | - | 70.2 |
| +NL | 0.23 | 0.17 | 70.9 |
| +BAT | 0.03 | 0.13 | 71.3 |
| ResNet-50 | baseline | - | - | 76.3 |
| +NL | 3.55 | 7.36 | 77.5 |
| +BAT | 1.30 | 4.67 | 78.3 |
+
+Table 5: Comparisons with NL block on ImageNet.
+
+not provide precise spatial information. More BAT-Blocks continue to improve the performance.
+
+Multi-head attention. We explore the effectiveness brought by multi-head attention with different $k$ in Table 4. In order to confirm whether the improvement mainly benefits from the extra parameters, we design a new baseline by setting $\mathbf{P} / \mathbf{Q}$ to an identity matrix and not conditioned on the input, noted as $k = 0$ in Table 4. As can be seen, there is tiny improvement by simply introducing extra parameters. Even one group of attention could bring a noticeable improvement (+1.4%) with negligible parameters introduced compared with the new baseline. This phenomenon shows that the transformer predictor is the key to improve performance and it's very light-weight. And more groups of attention can further improve the performance, but the gain diminishes quickly.
+
+Comparisons with NL block. NL block [57] has been proved to significantly improve performance in several tasks by modeling long range dependencies [57, 7, 24]. We
+
+| Method | GFLOPs | #Params | Top-1 |
| SE-ResNet-50 [22] | 4.2 | 28.1 | 76.9 |
| GE-ResNet-50 [21] | - | 31.1 | 76.8 |
| SRM-ResNet-50 [30] | - | 25.6 | 77.1 |
| A2-Net [7] | - | - | 77.0 |
| DenseNet-201 [23] | 4.4 | 20.0 | 77.4 |
| ResNeXt-50 (32 × 4d) [61] | 4.3 | 25.0 | 77.8 |
| Res2Net-50 (14w×8s) [14] | 4.2 | - | 78.1 |
| Oct-ResNet-50 [6] | 2.4 | 25.6 | 77.3 |
| ResNet-101 [17] | 7.9 | 44.6 | 77.4 |
| ResNet-152 [17] | 11.6 | 60.2 | 78.3 |
| SE-ResNet-152 [22] | 11.7 | 67.2 | 78.4 |
| ResNeXt-101 (32 × 4d) [61] | 16.5 | 88.8 | 78.8 |
| AttentionNeXt-56 [55] | 6.3 | 31.9 | 78.8 |
| ResNet-50 + BAT | 5.4 | 30.2 | 78.3 |
| SE-ResNet-50 + BAT | 5.5 | 33.1 | 78.4 |
| ResNext-50 (32×4d) + BAT | 5.6 | 29.7 | 78.6 |
| ResNet-101 + BAT | 9.2 | 49.2 | 79.1 |
| ResNet-152 + BAT | 12.9 | 64.9 | 79.4 |
+
+compare these two blocks to show the superiority of ours. We insert NL blocks at the same locations as those of BAT-Block and the results are shown in Table 5. Obviously, our proposed method is more light-weighted and effective compared with NL block, with only $13\% \sim 31\%$ GFLOPs and fewer parameters to achieve higher accuracy.
+
+Comparisons with state-of-the-art. In order to verify the generality of BAT-Blocks, we also conduct experiments on some other popular networks and go deeper with BAT-Blocks. As shown in Table 6, consistent performance gain could be obtained by inserting BAT-Blocks even for a very deep model, ResNet-152. Additionally, adding BAT blocks to shallower models can outperform several deeper neural networks. For example, ResNet-50 with BAT blocks achieves the same accuracy as the original ResNet-152 while using only half GFLOPs and parameters around.
+
+# 4.3. Results on Kinetics
+
+Comparisons with NL block. Table 7 shows the results of video classification on Mini-Kinetics-200. We found that it was easy to overfit in video classification for models adding BAT-Blocks, and initializing BAT-Blocks with parameters pre-trained on ImageNet could alleviate this problem in large measure. For a fair comparison, we also conduct the experiment with pre-trained NL blocks. We can find that BAT blocks with only spatial attention could achieve a better accuracy than NL blocks with less computation cost and fewer parameters whether NL network is pre-trained on ImageNet or not.
+
+Attention on temporal dimension. We also examine if the temporal attention works well for video classification
+
+Table 6: Comparisons with state-of-the-art on ImageNet.
+
+| Method | Pre-trained | GFLOPs | #Params | Val | Train |
| baseline | - | 19.55 | 23.92 | 66.4 | 71.6 |
| NL | No | 30.69 | 31.28 | 67.7 | 72.6 |
| NL | Yes | 30.69 | 31.28 | 68.8 | 74.6 |
| BAT (4, 0) | Yes | 24.76 | 28.60 | 69.5 | 76.0 |
| BAT (4, 1) | Yes | 24.77 | 28.60 | 70.3 | 77.1 |
| BAT (4, 2) | Yes | 24.77 | 28.60 | 70.5 | 77.6 |
| BAT (4, 4) | Yes | 24.77 | 28.60 | 70.6 | 77.5 |
+
+Table 7: Results on Mini-Kinetics-200. Pre-trained means whether the newly added blocks are pre-trained on ImageNet. BAT $(k_{s}, k_{t})$ represents BAT block with $k_{s}$ groups of spatial attention and $k_{t}$ groups of temporal attention. All models adopt ResNet-50 C2D as backbone. Clip Top-1 accuracy is reported here.
+
+| Method | 3D-Conv | GFLOPs | #Params | Top-1 |
| A2-Net [7] | Yes | 40.8 | - | 74.6 |
| Oct-I3D [6] | Yes | 25.6 | - | 74.6 |
| TSM [32] | No | 32.8 | 24.3 | 74.1 |
| GloRe [8] | Yes | 28.9 | - | 75.1 |
| C2D | No | 19.6 | 24.3 | 72.0 |
| I3D | Yes | 28.4 | 28.4 | 72.7 |
| C2D + NL | No | 30.7 | 31.7 | 73.8 |
| I3D + NL | Yes | 39.5 | 35.4 | 73.5 |
| C2D + BAT | No | 24.8 | 29.2 | 74.6 |
| I3D + BAT | Yes | 33.6 | 32.9 | 75.1 |
| C2D + 3D-BAT | No | 24.8 | 29.2 | 75.5 |
| C2D + 3D-BAT† | No | 24.8 | 29.2 | 75.8 |
+
+Table 8: Results on Kinetics-400. The first set is recent state-of-the-art, the second set is our re-implemented models, and the last set is our methods. The group number of spatial attention is 8 and that of the temporal attention is set to 4. All the models use ResNet-50 as backbone and 8 frames as input. “†” represents finetuning with TSN framework [56].
+
+and the results are reported in Table 7. The improvement is significant $(+0.8\%)$ by adding a even single group of spatial attention with negligible extra parameters. More groups of temporal attention could further improve the performance.
+
+Results on Kinetics-400. Here we compare our methods with state-of-the-art on the full dataset to demonstrate the effectiveness and efficiency of our BAT-Block. It has been widely proven that the performance of video classification is closely related with the number of input frames and backbone architectures [57, 11, 44], and as a result, for fair comparisons, we only focus on comparing with models using 8-frame clips as input and ResNet-50 as backbone.
+
+Firstly, we re-implemented the C2D, I3D baselines and NL networks under the same settings as ours. All the results can be found in Table 8, which indicate that the proposed 2D BAT-Block consistently improves the performance over both C2D and I3D baselines, and the benefit of temporal at
+
+
+
+
+
+
+
+
+
+
+Figure 4: Examples of attention weight. To investigate where BAT-blocks focus for each group of attention, we visualize the attention weights of the last BAT block with 8 attention groups as the last block is most related to the final classification. These samples are taken from the validation set of ImageNet randomly. From left to right, each group contains an RGB image and its corresponding eight attention maps. For clear clarification, we note the attention weight images of each group as $a - d$ (the top 4 images, from left to right) and $e - h$ (the bottom 4 images, from left to right). We find that, for all examples, $e$ pays more attention to the bottom of images while $f$ focuses on the top regions, and these two attention collaborate with each other to classify an image by splitting the full image into two sub-regions. Additionally, $g$ tends to observe the background, and $h$ prefers to focus on the regions nearby the foreground. Therefore, they may help the network model rich context information. It can be found that all $a - d$ focus on the foreground, but there are still some differences each corresponding various discriminative details. More examples can be found in supplementary materials.
+
+
+
+
+
+
+
+| Backbone | 8-frame | 16-frame | 64-frame |
| ResNet-50 | 75.5 | 76.9 | 77.7 |
| ResNet-101 | 76.2 | 77.4 | - |
+
+Table 9: Results on Kinetics-400 with different length of sequences or backbones. All the models adopt C2D + 3D-BAT. For models with sequences longer than 8 frames, the block-based matrix trick is adopted along time dimension to reduce parameters, and the number of blocks are set to $8 \times 8$ .
+
+tention is noticeable. Additionally, our method outperforms NL networks by a large margin. Introducing 3D convolution improves C2D + BAT by $0.5\%$ while temporal attention improves $0.9\%$ with almost zero growth of both GFLOPs and parameter numbers, which shows the powerful ability of BAT-blocks to model 3D information.
+
+Comparing with other state-of-the-art, we can see that simply adding 2D BAT-blocks on a basic network can achieve a comparable results with other recent methods, and models with 3D BAT-block outperform most competitive models. Specifically, to our best knowledge, after finetuning with TSN framework [56], we can achieve a new state-of-the-art among models under the similar complexity.
+
+Longer sequences and deeper networks. Finally, we investigate the generality of our methods on longer input videos or deeper networks. And the results can be found in Table 9. For comparison, based on ResNet-101 and 128-frame clips, the accuracy of C2D baseline is $75.3\%$ and I3D + NL is $77.7\%$ [57], which shows that our methods work well on longer sequences or deeper networks.
+
+# 4.4. Visualization
+
+The above experiments have shown the effectiveness of BAT-Block on both 2D and 3D tasks, here we visualize several attention weight maps to investigate how BAT-Block works. In order to visualize where a block pays attention over input images, we adopt the following formula to reproject the attention weights to the input feature maps:
+
+$$
+\mathbf {W} = \mathbf {P} ^ {\intercal} \mathbf {A} \mathbf {Q} ^ {\intercal}, \tag {8}
+$$
+
+where $\mathbf{A} \in \mathbb{R}^{H \times W}$ is an all-ones matrix. $\mathbf{W}$ is the reprojected attention weight with shape $H \times W$ . The results are normalized between 0 and 255 for visualization. Some examples are depicted and analyzed in Figure 4.
+
+# 5. Conclusion
+
+We propose BA-Transform, a novel method which can model various attentional operations by matrix multiplication. The core operation is to learn data-adaptive grouped bilinear attentional transforms. We wrap this operation to a BAT-Block and carefully design transformation predictor. It can be dropped into most existing networks and optimized easily. Extensive experiments on image classification and video action recognition verify the superiority of our method both in accuracy and efficiency. Acknowledgement: This work is partially supported by Beijing Natural Science Foundation (Z190001), Beijing Municipal Commission of Science and Technology (Z181100008918005) and National Natural Science Foundation of China (61772037).
+
+# References
+
+[1] Bowen Baker, Otkrist Gupta, Nikhil Naik, and Ramesh Raskar. Designing neural network architectures using reinforcement learning. In ICLR, 2017.
+[2] João Carreira and Andrew Zisserman. Quo vadis, action recognition? A new model and the kinetics dataset. In CVPR, pages 4724-4733, 2017.
+[3] Jingwen Chen, Yingwei Pan, Yehao Li, Ting Yao, Hongyang Chao, and Tao Mei. Temporal deformable convolutional encoder-decoder networks for video captioning. In AAAI, pages 8167-8174, 2019.
+[4] Liang-Chieh Chen, Yi Yang, Jiang Wang, Wei Xu, and Alan L. Yuille. Attention to scale: Scale-aware semantic image segmentation. In CVPR, pages 3640-3649, 2016.
+[5] Xin Chen, Lingxi Xie, Jun Wu, and Qi Tian. Progressive differentiable architecture search: Bridging the depth gap between search and evaluation. In ICCV, 2019.
+[6] Yunpeng Chen, Haoqi Fan, Bing Xu, Zhicheng Yan, Yannis Kalantidis, Marcus Rohrbach, Shuicheng Yan, and Jiashi Feng. Drop an octave: Reducing spatial redundancy in convolutional neural networks with octave convolution. ICCV, 2019.
+[7] Yunpeng Chen, Yannis Kalantidis, Jianshu Li, Shuicheng Yan, and Jiashi Feng. A2-nets: Double attention networks. In NIPS, pages 350-359, 2018.
+[8] Yunpeng Chen, Marcus Rohrbach, Zhicheng Yan, Shuicheng Yan, Jiashi Feng, and Yannis Kalantidis. Graph-based global reasoning networks. In CVPR, pages 433-442, 2019.
+[9] Junsuk Choe and Hyunjung Shim. Attention-based dropout layer for weakly supervised object localization. In CVPR, pages 2219-2228, 2019.
+[10] Jifeng Dai, Haozhi Qi, Yuwen Xiong, Yi Li, Guodong Zhang, Han Hu, and Yichen Wei. Deformable convolutional networks. In ICCV, pages 764-773, 2017.
+[11] Christoph Feichtenhofer, Haoqi Fan, Jitendra Malik, and Kaiming He. Slowfast networks for video recognition. In ICCV, pages 6202-6211, 2019.
+[12] Jun Fu, Jing Liu, Hajjie Tian, Yong Li, Yongjun Bao, Zhiwei Fang, and Hanqing Lu. Dual attention network for scene segmentation. In CVPR, pages 3146-3154, 2019.
+[13] Jianlong Fu, Heliang Zheng, and Tao Mei. Look closer to see better: Recurrent attention convolutional neural network for fine-grained image recognition. In CVPR, pages 4476-4484, 2017.
+[14] Shang-Hua Gao, Ming-Ming Cheng, Kai Zhao, Xin-Yu Zhang, Ming-Hsuan Yang, and Philip Torr. Res2net: A new multi-scale backbone architecture. IEEE TPAMI, 2020.
+[15] Priya Goyal, Piotr Dólar, Ross B. Girshick, Pieter Noordhuis, Lukasz Wesolowski, Aapo Kyrola, Andrew Tulloch, Yangqing Jia, and Kaiming He. Accurate, large minibatch SGD: training imagenet in 1 hour. CoRR, abs/1706.02677, 2017.
+[16] Karol Gregor, Ivo Danihelka, Alex Graves, Danilo Jimenez Rezende, and Daan Wierstra. DRAW: A recurrent neural network for image generation. In ICML, pages 1462-1471, 2015.
+
+[17] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770-778, 2016.
+[18] Andrew Howard, Mark Sandler, Grace Chu, Liang-Chieh Chen, Bo Chen, Mingxing Tan, Weijun Wang, Yukun Zhu, Ruoming Pang, Vijay Vasudevan, Quoc V. Le, and Hartwig Adam. Searching for mobilenetv3. In ICCV, 2019.
+[19] Andrew G. Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andreetto, and Hartwig Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. CoRR, abs/1704.04861, 2017.
+[20] Han Hu, Zheng Zhang, Zhenda Xie, and Stephen Lin. Local relation networks for image recognition. CoRR, abs/1904.11491, 2019.
+[21] Jie Hu, Li Shen, Samuel Albanie, Gang Sun, and Andrea Vedaldi. Gather-excite: Exploiting feature context in convolutional neural networks. In NeurlPS.
+[22] Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In CVPR, pages 7132-7141, 2018.
+[23] Gao Huang, Zhuang Liu, Laurens van der Maaten, and Kilian Q. Weinberger. Densely connected convolutional networks. In CVPR, pages 2261-2269, 2017.
+[24] Zilong Huang, Xinggang Wang, Lichao Huang, Chang Huang, Yunchao Wei, and Wenyu Liu. Ccnet: Criss-cross attention for semantic segmentation. In ICCV, pages 603-612, 2019.
+[25] Max Jaderberg, Karen Simonyan, Andrew Zisserman, and Koray Kavukcuoglu. Spatial transformer networks. In NIPS, pages 2017-2025, 2015.
+[26] Andrej Karpathy, George Toderici, Sanketh Shetty, Thomas Leung, Rahul Sukthankar, and Fei-Fei Li. Large-scale video classification with convolutional neural networks. In CVPR, pages 1725–1732, 2014.
+[27] Adam R. Kosiorek, Alex Bewley, and Ingmar Posner. Hierarchical attentive recurrent tracking. In NIPS, pages 3053-3061, 2017.
+[28] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In NIPS, pages 1106-1114, 2012.
+[29] Hei Law and Jia Deng. Cornernet: Detecting objects as paired keypoints. In ECCV, pages 765-781, 2018.
+[30] HyunJae Lee, Hyo-Eun Kim, and Hyeonseob Nam. SRM: A style-based recalibration module for convolutional neural networks. In ICCV, pages 1854-1862, 2019.
+[31] Xiang Li, Wenhai Wang, Xiaolin Hu, and Jian Yang. Selective kernel networks. In CVPR, pages 510-519, 2019.
+[32] Ji Lin, Chuang Gan, and Song Han. TSM: Temporal shift module for efficient video understanding. In ICCV, 2019.
+[33] Tianwei Lin, Xu Zhao, Haisheng Su, Chongjing Wang, and Ming Yang. BSN: boundary sensitive network for temporal action proposal generation. In ECCV, pages 3-21, 2018.
+[34] Chenchen Liu, Xinyu Weng, and Yadong Mu. Recurrent attentive zooming for joint crowd counting and precise localization. In CVPR, pages 1217-1226, 2019.
+[35] Hanxiao Liu, Karen Simonyan, and Yiming Yang. DARTS: differentiable architecture search. In ICLR, 2019.
+
+[36] Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. CoRR, abs/1411.4038, 2014.
+[37] Xiang Long, Chuang Gan, Gerard de Melo, Jiajun Wu, Xiao Liu, and Shilei Wen. Attention clusters: Purely attention based local feature integration for video classification. In CVPR, pages 7834-7843, 2018.
+[38] Ilya Loshchilov and Frank Hutter. SGDR: stochastic gradient descent with warm restarts. In *ICLR*, 2017.
+[39] Ningning Ma, Xiangyu Zhang, Hai-Tao Zheng, and Jian Sun. Shufflenet V2: practical guidelines for efficient CNN architecture design. In ECCV, pages 122-138, 2018.
+[40] Carl D. Meyer, editor. Matrix Analysis and Applied Linear Algebra. Society for Industrial and Applied Mathematics, Philadelphia, PA, USA, 2000.
+[41] Volodymyr Mnih, Nicolas Heess, Alex Graves, and Koray Kavukcuoglu. Recurrent models of visual attention. CoRR, abs/1406.6247, 2014.
+[42] 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.
+[43] Zhaofan Qiu, Ting Yao, and Tao Mei. Learning spatiotemporal representation with pseudo-3d residual networks. In ICCV, pages 5534–5542, 2017.
+[44] Zhaofan Qiu, Ting Yao, Chong-Wah Ngo, Xinmei Tian, and Tao Mei. Learning spatio-temporal representation with local and global diffusion. In CVPR, pages 12056-12065, 2019.
+[45] Shaoqing Ren, Kaiming He, Ross B. Girshick, and Jian Sun. Faster R-CNN: towards real-time object detection with region proposal networks. In NIPS, pages 91-99, 2015.
+[46] Laura Walker Renninger, James M. Coughlan, Preeti Verghese, and Jitendra Malik. An information maximization model of eye movements. In NIPS, pages 1121-1128, 2004.
+[47] Mark Sandler, Andrew G. Howard, Menglong Zhu, Andrey Zhmoginov, and Liang-Chieh Chen. Mobilenetv2: Inverted residuals and linear bottlenecks. In CVPR, pages 4510-4520, 2018.
+[48] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015.
+[49] Ke Sun, Mingjie Li, Dong Liu, and Jingdong Wang. IGCV3: interleaved low-rank group convolutions for efficient deep neural networks. In BMVC, page 101, 2018.
+[50] 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 CVPR, pages 1-9, 2015.
+[51] Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jonathon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In CVPR, pages 2818-2826, 2016.
+[52] Du Tran, Lubomir D. Bourdev, Rob Fergus, Lorenzo Torresani, and Manohar Paluri. Learning spatiotemporal features with 3d convolutional networks. In ICCV, pages 4489-4497, 2015.
+
+[53] Du Tran, Heng Wang, Lorenzo Torresani, Jamie Ray, Yann LeCun, and Manohar Paluri. A closer look at spatiotemporal convolutions for action recognition. In CVPR, pages 6450-6459, 2018.
+[54] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NIPS, pages 5998-6008, 2017.
+[55] Fei Wang, Mengqing Jiang, Chen Qian, Shuo Yang, Cheng Li, Honggang Zhang, Xiaogang Wang, and Xiaou Tang. Residual attention network for image classification. In CVPR, pages 6450-6458, 2017.
+[56] Limin Wang, Yuanjun Xiong, Zhe Wang, Yu Qiao, Dahua Lin, Xiaou Tang, and Luc Van Gool. Temporal segment networks: Towards good practices for deep action recognition. In ECCV, pages 20-36, 2016.
+[57] Xiaolong Wang, Ross B. Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. In CVPR, pages 7794-7803, 2018.
+[58] Xiaolong Wang and Abhinav Gupta. Videos as space-time region graphs. In ECCV, pages 399-417, 2018.
+[59] Sanghyun Woo, Jongchan Park, Joon-Young Lee, and In So Kweon. CBAM: convolutional block attention module. In ECCV, pages 3–19, 2018.
+[60] Zuxuan Wu, Xi Wang, Yu-Gang Jiang, Hao Ye, and Xi-angyang Xue. Modeling spatial-temporal clues in a hybrid deep learning framework for video classification. In ACM Multimedia, pages 461–470, 2015.
+[61] Saining Xie, Ross B. Girshick, Piotr Dólar, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In CVPR, pages 5987-5995, 2017.
+[62] Saining Xie, Chen Sun, Jonathan Huang, Zhuowen Tu, and Kevin Murphy. Rethinking spatiotemporal feature learning for video understanding. CoRR, abs/1712.04851, 2017.
+[63] Xiangyu Zhang, Xinyu Zhou, Mengxiao Lin, and Jian Sun. Shufflenet: An extremely efficient convolutional neural network for mobile devices. In CVPR, pages 6848-6856, 2018.
+[64] Xizhou Zhu, Han Hu, Stephen Lin, and Jifeng Dai. Deformable convnets V2: more deformable, better results. In CVPR, pages 9308-9316, 2019.
\ No newline at end of file
diff --git a/nonlocalneuralnetworkswithgroupedbilinearattentionaltransforms/images.zip b/nonlocalneuralnetworkswithgroupedbilinearattentionaltransforms/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..e1ebfece860faae0d5a15408009ed07c41d7bcb9
--- /dev/null
+++ b/nonlocalneuralnetworkswithgroupedbilinearattentionaltransforms/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:116c0c8be9b398e1271692c19457c6b6cb8e6867ab986e575d2c4dfa76e147d2
+size 473047
diff --git a/nonlocalneuralnetworkswithgroupedbilinearattentionaltransforms/layout.json b/nonlocalneuralnetworkswithgroupedbilinearattentionaltransforms/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..a0433344e1d48a5393ec063e16078dc1e07d706d
--- /dev/null
+++ b/nonlocalneuralnetworkswithgroupedbilinearattentionaltransforms/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9c751cce6849d5d061cb8ea33968b467b92a736c8e0af046de5ea9ab6df7349d
+size 482689
diff --git a/nonparametricobjectandpartsmodelingwithliegroupdynamics/21fe1d55-7baa-4e3c-bb51-62f4f6ff7c3d_content_list.json b/nonparametricobjectandpartsmodelingwithliegroupdynamics/21fe1d55-7baa-4e3c-bb51-62f4f6ff7c3d_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..86a53c26449a527f32bbf0f4bf8dbb5cd4a222a3
--- /dev/null
+++ b/nonparametricobjectandpartsmodelingwithliegroupdynamics/21fe1d55-7baa-4e3c-bb51-62f4f6ff7c3d_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2bb4eba66d0a37445e01e581a4f6a9c3b93d9519085533bfbfda8ab5e7e25cdf
+size 93706
diff --git a/nonparametricobjectandpartsmodelingwithliegroupdynamics/21fe1d55-7baa-4e3c-bb51-62f4f6ff7c3d_model.json b/nonparametricobjectandpartsmodelingwithliegroupdynamics/21fe1d55-7baa-4e3c-bb51-62f4f6ff7c3d_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..0904c4e1894d21927da50ea3e02213de6a969a5a
--- /dev/null
+++ b/nonparametricobjectandpartsmodelingwithliegroupdynamics/21fe1d55-7baa-4e3c-bb51-62f4f6ff7c3d_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2ec3589f7ff9086ba90149f1091773015762858b2a14138ee80d92e368f2627d
+size 105389
diff --git a/nonparametricobjectandpartsmodelingwithliegroupdynamics/21fe1d55-7baa-4e3c-bb51-62f4f6ff7c3d_origin.pdf b/nonparametricobjectandpartsmodelingwithliegroupdynamics/21fe1d55-7baa-4e3c-bb51-62f4f6ff7c3d_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..6238779da4d20c6f38b1a2a91ee4334adf6b1acc
--- /dev/null
+++ b/nonparametricobjectandpartsmodelingwithliegroupdynamics/21fe1d55-7baa-4e3c-bb51-62f4f6ff7c3d_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7bc8ae7e8a13b88a3922477e2cb56b9038c609bb7118a7ce6b871f9d6a0051b0
+size 7563981
diff --git a/nonparametricobjectandpartsmodelingwithliegroupdynamics/full.md b/nonparametricobjectandpartsmodelingwithliegroupdynamics/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..f06ed4e074a5095a8736862b0b336da66250e21c
--- /dev/null
+++ b/nonparametricobjectandpartsmodelingwithliegroupdynamics/full.md
@@ -0,0 +1,468 @@
+# Nonparametric Object and Parts Modeling with Lie Group Dynamics
+
+David S. Hayden, Jason Pacheco, John W. Fisher III
+Computer Science and Artificial Intelligence Laboratory
+Massachusetts Institute of Technology
+77 Massachusetts Ave., Cambridge, MA 02139
+{dshayden, pachecoj, fisher}@csail.mit.edu
+
+# Abstract
+
+Articulated motion analysis often utilizes strong prior knowledge such as a known or trained parts model for humans. Yet, the world contains a variety of articulating objects-mammals, insects, mechanized structures-where the number and configuration of parts for a particular object is unknown in advance. Here, we relax such strong assumptions via an unsupervised, Bayesian nonparametric parts model that infers an unknown number of parts with motions coupled by a body dynamic and parameterized by $SE(D)$ , the Lie group of rigid transformations. We derive an inference procedure that utilizes short observation sequences (image, depth, point cloud or mesh) of an object in motion without need for markers or learned body models. Efficient Gibbs decompositions for inference over distributions on $SE(D)$ demonstrate robust part decompositions of moving objects under both 3D and 2D observation models. The inferred representation permits novel analysis, such as object segmentation by relative part motion, and transfers to new observations of the same object type.
+
+# 1. Introduction
+
+The world is full of moving objects comprised of articulating parts. Despite the wide range and complexity of such objects, humans have a remarkable ability to accurately discern both the number of articulating parts and their relation to the whole with few observations. We are interested in developing reasoning methods and algorithms that mimic this ability. While one might consider supervised methods that rely on large amounts of labeled training data about every conceivable object, articulated motion and view, the task of data collection seems daunting and unnecessary.
+
+Consequently, we develop a generative model that infers an object decomposition solely from brief observations of the object in motion. Specifically, we propose a parts-based representation that leverages Bayesian nonparametric dynamical models while eschewing strong assumptions about
+
+
+Figure 1. The number, rotation, translation, and shape of an object's parts are learned from a small number of observations of that object in motion. Motion of the body and parts is parameterized by the Lie group of rigid transformations in 3D or 2D. Supported data sources include sequences of meshes / point clouds (A, human), depth data (B, marmoset), and 2D images (C, hand, spider).
+
+the number or configuration of parts. The model simultaneously infers a dynamic body frame, the number of parts, and their motion relative to the body frame. Diverse inputs are supported-2D image sequences, 2.5D depth sequences and 3D point cloud or mesh sequences—without need for restrictive assumptions about target appearance or the existence of specially-placed markers or sensors.
+
+Objects and parts are assumed to rotate and translate smoothly in space, leading to a natural parameterization in $\operatorname{SE}(D)$ , the Lie group of rigid transformations. By representing statistics of motion in the Lie algebra $\operatorname{se}(D)$ , we derive closed-form Gibbs updates on translation dynamics, and an efficient sampler for rotation dynamics.
+
+Contributions. We specify a novel Bayesian nonparametric model that is well-suited to the properties of articulated objects in motion (part persistence, rigid transformation dynamics, unknown number of parts). We demonstrate a novel decomposition of inferring translations and rotations in posterior distributions on $\mathrm{SE}(D)$ with concentrated Gaussian [35] priors. We validate our methods on 2D and 3D sequences containing different object types. We show that the parts in one data sequence transfer to other data sequences of the same object type (but different instance). Finally, we present novel analysis of the motion of different
+
+
+Figure 2. Simplified graphical model for an unknown number of time-varying parts $\{\theta_{tk}\}_{t = 1,k = 1}^{T,\infty}$ coupled by shared dynamics $\{x_{t}\}_{t = 1}^{T}$ . Observations $y_{tn}$ are generated by part $k$ if $z_{tn} = k$ . Stick weights $\{\pi_k\}_{k = 1}^{\infty}$ influence the observation counts for each part. Priors and $\{Q,\omega_k,S_k,W_k,E_k\}$ omitted for clarity.
+
+regions of an object, such as segmenting an object based on the motion of its parts relative to the body frame.
+
+# 2. Related Work
+
+This work draws on body/parts models, Bayesian nonparametric dynamical models and Lie groups. Each contains a rich literature so we highlight only the most relevant details. Importantly, we are aware of no work that models body and part motion over time with Lie group dynamics, that is also unsupervised and nonparametric in the parts. Body and Part Models The many treatments of part-based modeling begin with the pioneering work on human models of pictorial structures [10] and cardboard people [18]. Later work on deformable parts models [9] removes the need to define object-specific part configurations. Building on the success of offline analysis, real-time human pose tracking is now possible as well [27, 13]. All of these methods require specifying the number of parts. More detailed shape and pose models have been developed for a variety of objects, using a combination of known body models, mesh representations and sophisticated collection schemes including multiple cameras, IMUs, lasers and/or specially-painted targets [21, 41, 3, 24].
+
+Unsupervised methods [36, 20, 26, 41, 40] have significant restrictions such as working for only 2D or only 3D data, or requiring annotated landmarks or point correspondences. In contrast, our unsupervised method works for 2D and 3D inputs, requires only a single sensor observing an object in motion, requires no distinctive or annotated object markings, and no observation correspondences.
+
+Lie Groups Our work relies on the Lie group $\mathrm{SE}(D)$ , the space of rigid transformations, for representing body and part motion. Lie groups have been used extensively in robotics and computer vision tasks such as SLAM [6], navigation [19], and parts-based models [5, 14, 17]. Defining observation models for Lie groups is challenging since the group is not a vector space. As such, notions of distance
+
+(and therefore distributions) require special care [23, 37], e.g., simple additive noise models violate the group topology. Our approach defines a distribution (Gaussian) in the tangent plane about an element of the group [35]. Most works that model dynamics with $\mathrm{SE}(D)$ perform inference with approximate filters or smoothers, commonly the EKF [4] or UKF [6]. One exception that does full posterior inference is [28], though that work is not a dynamical model. See [8] for an accessible introduction to Lie groups, and [16] for a more thorough introduction.
+
+Nonparametric Models Sequential models extending the well-known Dirichlet process (DP) [1] include the HDP-HMM [31], sticky HDP-HMM [12], infinite HMM [2], and infinite factorial HMM (ifHMM) [15]. Each of these permits an infinite number of states, but are restricted to discrete labels. Extensions to continuously-varying latent states include the HDP-SLDS [11], dynamic HDP [25], mixture of DPs [7], and the evolutionary HDP [38]. While each has the desirable property of shared global dynamics, none capture component persistence allowing new atoms at each time instance. This is undesirable for parts modeling as objects do not tend to acquire and lose parts over time and nonparametric priors already risk creating duplicate parts [12].
+
+Closely related is the infinite factorial dynamical model [32], a continuous extension of the ifHMM which only permits shared global binary on/off states, and the Transformed Dirichlet Process [30], a DP allowing multiple groups of observations to share the same set of atoms (but with no dynamics). Most relevant, and what we use for comparison, is the Bayesian nonparametric model of Zhou et al. [39], a linear dynamical model where parts are independently sampled from a Dirichlet process at each time (but with no part persistence or Lie group representation).
+
+# 3. Model
+
+Let $t = 1,\dots ,T$ index time, $k = 1,\ldots ,\infty$ index parts, and $n = 1,\dots ,N_{t}$ index observations at time $t$ Most generally, our nonparametric parts model (Figure 2) takes as its sole input observations $\{y_t\}_{t = 1}^T$ where the $t^{\mathrm{th}}$ batch $y_{t} = \{y_{tn}\}_{n = 1}^{N_{t}}$ contains $N_{t}$ observations with unknown correspondence. There is a global (body) dynamic with time-varying parameters $x_{t}$ and time-fixed parameter $Q$ . There are an unknown number of components (parts) with time-varying parameters $\theta_{tk}$ and time-fixed parameters $\{\omega_k,S_k,E_k,W_k\}$ . Stochastic dynamics models $f,g$ and stochastic observation model $h$ are, for each $t,k,n$
+
+$$
+\begin{array}{l} x _ {t} \sim f (x _ {t - 1}, Q) \quad \theta_ {t k} \sim g \left(\theta_ {(t - 1) k}, \omega_ {k}, S _ {k}\right) \\ y _ {t n} \sim h \left(x _ {t}, \theta_ {t z _ {t n}}, \omega_ {z _ {t n}}, E _ {z _ {t n}}\right) \\ \end{array}
+$$
+
+where $z_{tn} = k$ indicates that observation $y_{tn}$ was generated by component $k$ . A prior probability of association is given
+
+by the discrete distribution of stick weights $\pi$ (for $\alpha > 0$ ):
+
+$$
+z _ {t n} \sim \pi \quad \pi \sim \operatorname {G E M} (\alpha) \tag {1}
+$$
+
+To specialize for object and parts modeling we must further specify the domain of random variables $\{y_{tn},x_t,\theta_{tk},\omega_k,S_k,E_k,W_k,Q\}$ , the form of priors $\{H_x,H_\theta ,H_\omega ,H_S,H_E,H_W,H_Q\}$ and the forms of $\{f,g,h\}$ . First, we introduce distributions on Lie groups.
+
+# 3.1. Lie Groups
+
+A Matrix Lie group $G$ is a continuous group whose elements can be described by matrices with special structure. In this work, $G = \operatorname{SE}(D)$ , the space of rigid transformations on $\mathbb{R}^D$ or $G = \operatorname{SO}(D)$ the space of $D$ -dimensional proper rotations. Associated to $G$ is Lie algebra $\mathfrak{g}$ , which can be viewed as a local vector space approximation about the identity element of $G$ . This approximation can be made with respect to any element in $G$ because group elements compose via matrix multiplication and each element has an inverse. For $b, \mu \in G$ we call the local vector space approximation about $\mu$ the tangent space of $\mu$ , denoted $T_{\mu}G$ . Mappings to and from the tangent space of $\mu$ are accomplished via the left-invariant Riemannian logarithm and left-invariant Riemannian exponential,
+
+$$
+\operatorname {L o g}: G \times G \rightarrow \mathfrak {g} = \log_ {\mu} b = \log_ {G} (\mu^ {- 1} b) \tag {2}
+$$
+
+$$
+\operatorname {E x p}: G \times \mathfrak {g} \rightarrow G = \operatorname {E x p} _ {\mu} v = \mu \exp_ {G} (v) \tag {3}
+$$
+
+where $v \in \mathfrak{g}$ is a tangent vector in the tangent space of $\mu$ , and $\log_G, \exp_G$ are the Lie group logarithm and exponential maps, which can be computed using the matrix logarithm and matrix exponential. Note that $v$ is called a tangent vector even though it is represented as a matrix: this is because a bijective mapping exists between a matrix and vector representation of $v$ . We omit additional notation for brevity.
+
+# 3.1.1 Distributions on Lie Groups
+
+Constructing a distribution on $G$ to reason over body and parts models is complicated by the fact that $G$ is not a vector space. Exploiting the maps between group elements and their tangent spaces, we can define a distribution with location parameter $\mu \in G$ by mapping its support to the tangent space of $\mu$ . Define the left-invariant concentrated Gaussian $\mathrm{N_L}(\cdot)$ in terms of the multivariate Gaussian $\mathrm{N}(\cdot)$ :
+
+$$
+\mathrm {N} _ {\mathrm {L}} (b | \mu , \Sigma) = \mathrm {N} (\log_ {\mu} b | 0, \Sigma) \tag {4}
+$$
+
+In similar fashion to [29] this can be thought of as a Gaussian in the tangent space about mean $\mu \in G$ . The covariance $\Sigma$ exists in the tangent space and can be understood to operate the same as in the typical Euclidean case except that vectors in $T_{\mu}G$ must be mapped back to the group by Eqn. 3. See Figure 3 for a visualization on SO(2).
+
+
+Figure 3. Location and scale distributions such as Gaussians can be locally defined about element $\mu$ in Lie group $G$ by mapping their support into the local vector space approximation $T_{\mu}G$ .
+
+# 3.1.2 $\mathbf{SE}(D)$ Actions
+
+Represent $b, c \in G = \operatorname{SE}(D)$ as real block matrices,
+
+$$
+b = \left( \begin{array}{c c} R _ {b} & d _ {b} \\ 0 & 1 \end{array} \right) \quad c = \left( \begin{array}{c c} R _ {c} & d _ {c} \\ 0 & 1 \end{array} \right) \tag {5}
+$$
+
+The $R_{*}$ are $D\times D$ rotation matrices (with determinant $+1$ ) in $\mathrm{SO}(D)$ and the $d_{*}$ are translations in $\mathbb{R}^D$ . Henceforth, we use this notation to represent the rotation and translation components of any element in $\mathrm{SE}(D)$ ; for example, if $x_{t}\in$ $\mathrm{SE}(D)$ then it has rotation $R_{x_t}$ and translation $d_{x_t}$ .
+
+Elements of $\mathrm{SE}(D)$ compose via matrix multiplication (maintaining group closure), and act as a change of basis for homogeneous coordinates $\tilde{p}$ of point $p\in \mathbb{R}^D$ ..
+
+$$
+b c \tilde {p} = \left( \begin{array}{c} R _ {b} \left(R _ {c} p + d _ {c}\right) + d _ {b} \\ 1 \end{array} \right) \tag {6}
+$$
+
+If $\tilde{p}$ are coordinates in frame $c$ then $c\tilde{p}$ can be interpreted as its coordinates in frame $b$ and $bc\tilde{p}$ can be interpreted as its coordinates in the standard (or world) basis. In general, changes of bases are best viewed as composing from left to right, but acting on points from right to left.
+
+# 3.2. Body and Parts Model
+
+Let $G = \operatorname{SE}(D)$ for dimension $D \in \{2,3\}$ . We seek to infer a parts decomposition of an articulating object by directly observing it in motion. Specifically, we model the inputs $y_{tn} \in \mathbb{R}^D$ as being random collections of points sampled within the object as it moves across time. Variable (including no) observations are supported at each time, and no correspondence between observations is assumed. Diverse inputs are supported, including foreground pixels of 2D image sequences, unprojected points from depth sequences, and 3D point clouds sampled within mesh sequences.
+
+We assume part persistence—an object does not gain or lose parts over time. We also assume that parts move smoothly through space but remain close (in an L2 sense) to a common body which also moves smoothly. The relation between body and part motion could be modeled in
+
+
+Figure 4. The frames that comprise an object at time $t$ . Per-time body frames $x_{t}$ are rigid transformations from world frame $W$ . Each part $k$ contains a time-fixed canonical part frame $\omega_{k}$ and a per-time part frame $\theta_{tk}$ . $\omega_{k}$ are a rigid transformation from body frame $x_{t}$ while $\theta_{tk}$ are a rigid transformation from $\omega_{k}$ . Using stabilized random walk dynamics, each per-time part frame $\theta_{tk}$ is designed to transform smoothly over time but remain near the origin of their respective canonical part frame $\omega_{k}$ .
+
+many ways: one naive extreme would be to model them as floating bodies with linear dynamics while the other extreme would be to model them as existing in a skeletal network of joints. Linear dynamics would fail to capture part articulation while skeletal networks are overly restrictive.
+
+We take a middle ground: parts $\{\theta_{tk},\omega_k,S_k,E_k,W_k\}$ are modeled as floating bodies that rotate and translate smoothly through space about a body frame $x_{t}\in G$ , but whose origins tend to remain near the origin of a canonical part frame $\omega_{k}\in G$ through stabilized random walk dynamics. Canonical part frames are close to the body frame and remain fixed across time but parts also have per-time frames $\theta_{tk}\in G$ . Parts are not fixed in their spatial extent; instead, they have a probabilistic, ellipsoidal shape model governed by Gaussian covariance $E_{k}$ . Part dynamics are governed by covariance $S_{k}$ and body dynamics are governed by covariance $Q$ . The dispersion of canonical part frames about the body frame is governed by covariance $W_{k}$ . Figure 4 graphically depicts how body and part frames compose.
+
+# 3.2.1 Body and Part Dynamics
+
+Body frames $x_{t}$ and parts evolve independently, but are implicitly coupled through the observation model. In particular, the body frame stochastic dynamics model is:
+
+$$
+x _ {t} \sim \mathrm {N} _ {\mathrm {L}} \left(x _ {t} \mid x _ {t - 1}, Q\right) \tag {7}
+$$
+
+Object dynamics are a non-linear random walk on $G$ whose noise covariance $Q$ exists in the tangent space about the body frame at the previous time. Canonical part frames $\omega_{k}$ are dispersed about the body frame with covariance $W_{k}$ ,
+
+$$
+\omega_ {k} \sim H _ {\omega} = \mathrm {N} _ {\mathrm {L}} (\cdot \mid I, W _ {k}) \tag {8}
+$$
+
+where $I \in G$ is the identity element (no translation or rotation) and covariance $W_{k}$ can be thought to (implicitly) exist in the tangent space of $x_{t}$ . Each part has per-time dynamics $\theta_{tk}$ with driving noise covariance $S_{k}$ governed by:
+
+$$
+\theta_ {t k} = \left( \begin{array}{c c} \operatorname {E x p} _ {R _ {\theta_ {(t - 1) k}}} \phi_ {t k} & A d _ {\theta_ {(t - 1) k}} + B m _ {t k} \\ 0 & 1 \end{array} \right) \tag {9}
+$$
+
+with constants $A = \operatorname{diag}(\sqrt{a}, \ldots, \sqrt{a})$ , $B = \operatorname{diag}(\sqrt{1 - a}, \ldots, \sqrt{1 - a})$ and Exp in Eqn. 9 the Riemannian exponential for $\mathrm{SO}(D)$ . $\phi_{tk} \in \mathrm{so}(D)$ is a vector in the tangent space of $R_{\theta_{(t-1)k}}$ . Part translation driving noise $m_{tk}$ and rotation driving noise $\phi_{tk}$ are jointly distributed:
+
+$$
+\left(m _ {t k}, \phi_ {t k}\right) \sim \mathrm {N} (0, S _ {k}) \tag {10}
+$$
+
+As proven in the supplemental, carefully chosen coefficients of matrices $A, B$ ( $a = 0.95$ ) cause the asymptotic covariance of the part translation $d_{\theta_{tk}}$ to equal the covariance of translation driving noise $m_{tk}$ . This form enables parts to transform smoothly, but never too far from their canonical location, and mitigated part confusion during inference.
+
+All driving noise covariances are drawn from Inverse-Wishart distributions, where we note that our model supports arbitrary correlations between translation and rotation for object, canonical part, and part transformations:
+
+$$
+Q \sim H _ {Q} = \operatorname {I W} \left(\cdot | v _ {Q _ {0}}, \Lambda_ {Q _ {0}}\right) \tag {11}
+$$
+
+$$
+S _ {k} \sim H _ {S} = \mathrm {I W} (\cdot | v _ {S _ {0}}, \Lambda_ {S _ {0}}) \tag {12}
+$$
+
+$$
+W _ {k} \sim H _ {W} = \mathrm {I W} \left(\cdot \mid v _ {W _ {0}}, \Lambda_ {W _ {0}}\right) \tag {13}
+$$
+
+And initial body and part frames are drawn according to:
+
+$$
+x _ {1} \sim H _ {x} = \mathrm {N} _ {\mathrm {L}} (\cdot | x _ {0}, \Sigma_ {x}) \tag {14}
+$$
+
+$$
+\theta_ {1 k} \sim H _ {\theta} = \mathrm {N} _ {\mathrm {L}} (\cdot | \theta_ {0}, \Sigma_ {\theta}) \tag {15}
+$$
+
+# 3.2.2 Observation Models for 3D and 2D data
+
+Input $y_{tn}$ is assumed to be in world coordinate system $W$ , which is assumed to be aligned with the sensor's coordinate system (hence, $W$ has no rotation or translation and is henceforth omitted). Parts generate observations in their respective part coordinate systems and are mapped to world coordinates via $\theta_{tk}, \omega_k$ and the body frame $x_t$ . That is, part $k$ generates point $e_{tn} \sim \mathrm{N}(0, E_k)$ which is then mapped to world coordinates $\tilde{y}_{tn} = x_t \omega_k \theta_{tk} \tilde{e}_{tn}$ if $z_{tn} = k$ (where $(\cdot)$ is a homogeneous projection of $(\cdot)$ ). The transformation is linear in $\tilde{e}_{tn}$ allowing straightforward mean and variance computations of the homogeneous point in world coordinate $\tilde{y}_{tn}$ , yielding the following observation model (for $z_{tn} = k$ )
+
+$$
+\tilde {y} _ {t n} \sim \mathrm {N} (\tilde {y} _ {t n} | x _ {t} \omega_ {k} \theta_ {t k} \tilde {0} _ {\mathbb {R}}, x _ {t} \omega_ {k} \theta_ {t k} \tilde {E} _ {k} \theta_ {t k} ^ {\top} \omega_ {k} ^ {\top} x _ {t} ^ {\top}) \tag {16}
+$$
+
+where $\tilde{0}_{\mathbb{R}}$ is the homogeneous zero vector in $\mathbb{R}^D$ and $\tilde{E}_k$ is a degenerate block covariance matrix $E_{k}$ with a zero row and column (a covariance in homogeneous coordinates). Without homogeneous coordinates, this is (via Eqn. 5):
+
+$$
+y _ {t n} \sim \mathrm {N} \left(y _ {t n} \mid \mu_ {t k}, \Sigma_ {t k}\right) \tag {17}
+$$
+
+$$
+\mu_ {t k} = R _ {x _ {t}} R _ {\omega_ {k}} \left(d _ {\theta_ {t k}} + d _ {\omega_ {k}}\right) \tag {18}
+$$
+
+$$
+\Sigma_ {t k} = R _ {x _ {t}} R _ {\omega_ {k}} R _ {\theta_ {t k}} E _ {k} R _ {\theta_ {t k}} ^ {\top} R _ {\omega_ {k}} ^ {\top} R _ {x _ {t}} ^ {\top} \tag {19}
+$$
+
+While simple, it accommodates image plane observations in 2D, depth observations in 2.5D and XYZ observations in 3D. Incorporating additional terms (e.g., appearance) is straightforward, but were not needed for our purposes. As with most generative models, robustness to missing data (common for depth sensors) is handled seamlessly.
+
+The observation covariance $\Sigma_{tk}$ for $y_{tn}$ is some rotation of $E_{k}$ for $z_{tn} = k$ due to the composition of body and part frames. Consequently, $E_{k}$ is constrained to be diagonal (i.e. axis-aligned) so as to avoid ambiguity. While the use of $E_{k}$ implies a probabilistic, ellipsoid part shape model, its primary function is to yield robust associations $z_{tn}$ of observations to parts. Here, we use the following prior:
+
+$$
+E _ {k} \sim H _ {E} = \operatorname {I W} \left(\cdot | v _ {E _ {0}}, \Lambda_ {E _ {0}}\right) \tag {20}
+$$
+
+# 4. Inference
+
+We wish to sample from the posterior, which has likelihood proportional to the product of Equations (1, 7, 8, 10, 11, 12, 13, 14, 15, 17, 20) over all $t, k, n$ . This is accomplished with Markov Chain Monte Carlo (MCMC) inference that exploits Gaussian statistics in the tangent space for efficient updates while simultaneously respecting the geometry of the Lie group via Eqns. 2 and 4. This is accomplished by sampling from the full conditional distributions of each latent variable, grouped in order of discussion,
+
+$$
+\left(x _ {t}, \theta_ {t k}, \omega_ {k}\right) \quad z _ {t n} \quad \left(\pi , E _ {k}, S _ {k}, Q\right) \tag {21}
+$$
+
+
+Body Frame Projection
+
+
+Tangent Distribution
+Figure 5. Left: Object dynamics of body frame at time $t$ are projected into coordinates at time $t - 1$ by the Lie group operation $x_{t - 1}^{-1}x_{t}$ . Right: The projection is in $SE(3)$ with Gaussian statistics in the tangent plane of $x_{t - 1}$ . The figure notionally depicts two degrees of freedom, whereas $SE(3)$ would have 6 degrees.
+
+where $t = 1, \ldots, T, k = 1, \ldots, \infty, n = 1, \ldots, N_t$ and omitted leading subscripts are taken to mean joint dependence (i.e. $y = \{y_t\}_{t=1}^T$ and $y_t = \{y_{tn}\}_{n=1}^{N_t}$ ). Inference complexity is linear in the number of observations and parts. In our experiments, chains were generally mixed after about 300 samples, with approximately 1 minute per sample being the worst-case timing for any data we tested on.
+
+In the sequel we sketch the sampling of body transformations $x_{t}$ . Full details are in the supplement, along with sampling of the canonical parts $\omega_{k}$ and part transformations $\theta_{tk}$ which take a similar form. We also discuss sampling part associations $z_{tn}$ , which are conjugate except when sampling assignments to the base measure. The conditionals in the third grouping $(\pi, E_{k}, S_{k}, Q)$ can be sampled analytically due to conjugate priors, which we defer to the supplement. Finally, parts $\{\theta_{tk}, \omega_{k}, S_{k}, W_{k}, E_{k}\}$ can be sampled in parallel across $k$ and $z_{tn}$ can be sampled in parallel across $t, n$ .
+
+# 4.1. Decomposition of Lie Group dynamics
+
+We exploit the Lie algebra to develop an efficient Gibbs sampler for dynamical terms $\{x_{t},\omega_{k},\theta_{tk}\}$ . For example, the operation $x_{t - 1}^{-1}x_{t}$ transforms the body frame at time $t$ into that of the body frame at time $t - 1$ (Fig. 5, left). This operation is an element of $SE(D)$ :
+
+$$
+x _ {t - 1} ^ {- 1} x _ {t} \triangleq \left( \begin{array}{c c} R _ {x _ {t - 1}, x _ {t}} & d _ {x _ {t - 1}, x _ {t}} \\ 0 & 1 \end{array} \right), \tag {22}
+$$
+
+where $R_{x_{t-1}^{-1}, x_t} = R_{x_{t-1}}^T R_{x_t}$ and $d_{x_{t-1}^{-1}, x_t} = R_{x_{t-1}}^T (d_{x_t} - d_{x_{t-1}})$ . Elements in the frame $x_t$ are mapped to the tangent space of $x_{t-1}$ via the Riemannian Log map (Fig. 5, right):
+
+$$
+\log_ {x _ {t - 1}} x _ {t} \triangleq \log_ {G} \left(x _ {t - 1} ^ {- 1} x _ {t}\right) = \left( \begin{array}{c} V _ {x _ {t - 1} ^ {- 1}, x _ {t}} ^ {- 1} d _ {x _ {t - 1} ^ {- 1}, x _ {t}} \\ \phi_ {x _ {t - 1} ^ {- 1}, x _ {t}} \end{array} \right) \tag {23}
+$$
+
+The first entry $V_{x_{t-1}, x_t}^{-1} d_{x_{t-1}, x_t}^{-1}$ are tangent space coordinates of translation and the second entry $\phi_{x_{t-1}, x_t}^{-1}$ is a rota
+
+tion vector. The invertible linear operator $V_{x_{t-1}^{-1}, x_t}^{-1}$ is computable from rotation $R_{x_{t-1}^{-1}, x_t}$ (or from $\phi_{x_{t-1}^{-1}, x_t}$ ). This is well-defined for $x_{t-1}^{-1} x_t$ sufficiently close to identity and consistent with small incremental motions.
+
+# 4.2. Gibbs Sampling Updates
+
+Recall that Eqns. (22) and (23) map $x_{t}$ to the tangent space of $x_{t-1}$ . When conditioned on rotation, this mapping is linear in the translation component $d_{x_{t}}$ . This observation, combined with Gaussian statistics in the tangent space, yields closed-form Gibbs updates for translation. To see this, observe that the distribution over dynamics in the tangent space is (Fig. 5, right),
+
+$$
+\mathrm {N} _ {L} \left(x _ {t} \mid x _ {t - 1}, Q\right) = \mathrm {N} \left(\left( \begin{array}{c} C d _ {x _ {t}} + u \\ \phi_ {x _ {t - 1} ^ {- 1}, x _ {t}} \end{array} \right) | 0, Q\right) \tag {24}
+$$
+
+where $C = V_{x_{t - 1}^{-1}, x_t}^{-1} R_{x_{t - 1}}^{\top}$ and $u = -V_{x_{t - 1}^{-1}, x_t} R_{x_{t - 1}}^{\top} d_{x_{t - 1}}$ . Conditioned on rotation $R_{x_t}$ and previous body frame $x_{t - 1}$ , the corresponding rotation vector $\phi_{x_{t - 1}^{-1}, x_t}$ and matrix $V_{x_{t - 1}^{-1}, x_t}^{-1}$ are fixed quantities. This renders $C$ and $u$ computable and yields a Gaussian conditional distribution for $d_{x_t}$ . This conditional constitutes our prior belief about $d_{x_t}$ given $R_{x_t}$ , $x_{t - 1}$ and covariance $Q$ . Similar logic allows us to derive a Gaussian conditional on $d_{x_t}$ given future transformation $x_{t + 1}$ . These can be analytically combined to provide a Gaussian distribution for $d_{x_t} \mid R_{x_t}$ , $x_{t - 1}$ , $x_{t + 1}$ . Because this is Gaussian, and the observation model is also a product of Gaussians whose parameters are known given $\{\omega_k, E_k, \theta_{tk}\}_{k = 1}^{\infty}$ and $\{z_{tn}\}_{n = 1}^{N_t}$ , it follows that the posterior on $d_{x_t}$ is also Gaussian, and analytically computable.
+
+In contrast, sampling of rotation parameters lacks a closed form. We utilize univariate slice sampling [22] for the full conditional of each rotation parameter, along with a fixed number of MCMC proposals to correct for known rotational symmetries. Details are in the supplement.
+
+Part Association The conditional distribution for a single assignment to an existing part $k \geq 1$ is given by $p(z_{tn} = k \mid y_{tn}, x_t, \omega, \theta_t, \pi, E) \propto \pi_k p(y_{tn} \mid x_t, \omega_k, \theta_{tk}, E_k)$ . Conversely, association to a new part is given by,
+
+$$
+\begin{array}{l} p \left(z _ {t n} = - 1 \mid y _ {t n}, x _ {t}, \omega , \theta_ {t}, \pi , E\right) \propto \tag {25} \\ \pi_ {*} \int p (y _ {t n} | x _ {t}, \omega_ {*}, \theta_ {t *}, E _ {*}) p (\omega_ {*}, \theta_ {t *}, E _ {*}) \mathrm {d} (\omega_ {*}, \theta_ {t *}, E _ {*}) \\ \end{array}
+$$
+
+where $\pi_*$ is the stick weight corresponding to the base measure (i.e. all uninstantiated parts). This is not analytic in our model, but can be effectively approximated by Monte Carlo sampling of parts (need only be done once) or approximation by a constant (since the predictive distribution of parts will be broad, but centered at the object frame of reference). We obtain satisfactory results with both approaches.
+
+# 5. Results
+
+We compare quantitatively and qualitatively to nonparametric and parametric baselines in 5.1. We present results on dynamic mesh data in 5.2 and demonstrate object segmentation based on relative part motion in 5.3. We show transfer of learned representations to a novel dataset and synthesize motion from the learned representation in the supplement. The video supplemental animates these results.
+
+# 5.1.Quantitative Comparison
+
+We examine part discovery performance on three object motion datasets and compare to manually-annotated ground-truth. We emphasize that annotations are not incorporated into the inference procedure. We refer to the datasets as hand, spider, and marmoset. hand and spider are 2-D image data, while marmoset is 3D data unprojected from a depth camera. Inference utilizes $12 - 44$ frames (depending on the dataset) and results are compared to five manually-annotated ground-truth frames (where ground truth is the number of parts and their segmentations - examples are in the supplement). In each dataset, parts have nearly indistinguishable appearances and none of the compared methods use an appearance model. Consequently, part discovery is achieved via analysis of motion dynamics. Inputs only contain foreground (i.e. background is removed), as is done in related works [20].
+
+We report multi-object tracking and segmentation (MOTS) metrics [34], which measure how well the part associations overlap with groundtruth part segmentations (MOTSA, sMOTSA, MOTSP) and how stable the part associations are over time (IDS). These metrics are intended for segmenting multiple targets, but we repurpose them to segment multiple parts. Comparisons are with IoU 0.3.
+
+We compare against two baselines: the Bayesian nonparametric model of [39] (discussed in Section 2), which we call the nonparametric extents model npe, and a parametric modification of [39], so that it is given the advantage of knowing the true number of parts. We call this the parametric extents model pe. Neither npe nor pe consider part persistence over time (as we do), so for these methods we use the Hungarian algorithm to compute part correspondences between pairs of timesteps on the distance (in the body frame) of component means.
+
+Taken together, our model, and the two baselines, constitute an ablation study in which we consider unknown number of parts with Lie group dynamics, and unknown / known number of parts, without Lie group dynamics. In all cases, we compute mean and standard deviation of MOTS statistics on 100 samples taken from a Markov chain of 1000 samples, use data-dependent priors (specified in the supplemental), and set concentration parameter $\alpha = 0.1$ . Figure 6 (left) shows quantitative results while Figure 9 show qualitative comparisons between our method and the baseline.
+
+| Dataset | Method | IDS | MOTSA | MOTSP | sMOTSA |
| hand | ours | 0.00 ± 0.00 | 2.79 ± 0.30 | 0.71 ± 0.01 | 1.34 ± 0.24 |
| npe | 4.45 ± 1.84 | 1.93 ± 0.8 | 0.51 ± 0.01 | -4.2 ± 0.78 |
| pe | 4.03 ± 2.11 | 1.57 ± 0.44 | 0.47 ± 0.01 | -0.33 ± 0.37 |
| spider | ours | 5.14 ± 1.49 | 3.44 ± 0.25 | 0.55 ± 0.02 | 1.26 ± 0.18 |
| npe | 19.6 ± 2.88 | -4.4 ± 0.92 | 0.51 ± 0.01 | -6.72 ± 0.9 |
| pe | 17.28 ± 3.06 | 1.73 ± 0.31 | 0.52 ± 0.01 | -0.24 ± 0.27 |
| marmoset | ours | 1.24 ± 0.65 | 1.39 ± 0.89 | 0.49 ± 0.02 | -0.47 ± 0.71 |
| npe | 3.18 ± 1.28 | -32.44 ± 2.78 | 0.35 ± 0.01 | -34.06 ± 2.72 |
| pe | 0.43 ± 0.51 | 3.86 ± 0.17 | 0.48 ± 0.00 | 1.77 ± 0.17 |
| average | ours | 2.12 ± 0.71 | 2.54 ± 0.48 | 0.58 ± 0.02 | 0.71 ± 0.38 |
| npe | 9.07 ± 2.0 | -11.63 ± 1.5 | 0.46 ± 0.01 | -15.0 ± 1.47 |
| pe | 7.25 ± 1.89 | 2.39 ± 0.31 | 0.49 ± 0.01 | 0.39 ± 0.27 |
+
+
+
+
+
+
+Figure 6. (Left): Quantitative comparison of our nonparametric parts model (ours) with nonparametric baseline npe and parametric baseline pe using MOTS metrics. Lower IDS is better, higher MOTSA, MOTSP, and sMOTSA is better. Best-performing method is emboldened. (Right): Object segmentation based on part motion across time. Whereas the parts nearest the body center exhibit little motion (in the body frame), the extremities of spider exhibit large amounts of motion. (Top-Left): Part associations. (Top-Right): Part segmentation based on motion energy. (Bottom): Log cumulative part motion energy across time (color-coordinated to associations).
+
+
+Figure 7. Dynamic mesh segmentation. By using points sampled inside a mesh as the input to our nonparametric parts model, then computing associations to mesh vertices, our model can learn parts and dynamics from mesh data. Additional views in Figure 1
+
+
+Figure 8. Part posteriors for hand and spider. Dotted ellipses are the mean part covariance, solid ellipses visualize the part posterior location covariance. Points are observed part locations used for the posterior updates. The leg locations of spider are smeared due to their articulation whereas the fingers of the hand are concentrated.
+
+
+
+Our model outperforms the nonparametric baseline in all datasets and metrics. The pe baseline (which benefits from knowing the number of parts) outperforms our method on label switches (IDS) and overall quality (sMOTSA) on the 3D marmoset data. This is largely due to noisy data from the depth sensor generating observations from the background that are distant from the object, but not so distant
+
+as to be relegated to the base measure. We see very little ID switching (IDS) and relatively high precision (MOTSP) in our model, which we attribute to the canonical parts $\omega_{k}$ enforcing that each part transformation $\theta_{tk}$ move stably. Visually, part assignments correspond best to ground-truth parts that are extremities (fingers, legs, tails), but tend to oversegment large object interiors (palms, bodies). We attribute this to the ellipsoidal observation model but find that, for the purposes of part analysis, it has no obvious negative impact.
+
+# 5.2. Dynamic Mesh Segmentation
+
+We apply our method to the squat1 sequence in the articulated mesh dataset of [33], decomposing the mesh sequence into parts as shown in Figure 7. Note that legs are segmented into two parts each, while arms are segmented into one part. This is consistent with the movement in this sequence where the legs bend, but the arms are held straight. Minor artifacts appear when the lower-left leg (red) has small numbers of associations above the knee when the person is squatting, but not when standing straight up. Qualitatively, the results conform to human part interpretation.
+
+# 5.3. Motion Analysis
+
+We show how our model facilitates novel object / part analysis. Beginning with Figure 8, we visualize part diagrams for hand and spider. Dotted ellipses show the observation noise model $E_{k}$ for each part (in the object frame), while solid ellipses show the covariance for that part's translation across time. Because the part translation covariances are spatially separated, the model resists label switching between parts because they tend to stay proximate to their canonical frame. We observe that the part translation covariances are tight for the hand, but horizontally smeared for the spider—this is expected, because the fingers moved
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Figure 9. Example part associations in hand, spider and marmoset. For each sequence, example frames from the original video are shown (top-row) with part associations and object/part coordinate frames overlaid from our method (middle-row) and baseline NPE associations (bottom-row). Parts estimated by our method are largely consistent over time, even for the highly-articulated spider legs.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+very little in hand compared to the legs in spider.
+
+One analysis that our model enables is the comparison of part motions in the body frame (i.e. motion not from the object moving, but from its parts). By integrating each part's motion over time within the body frame we can determine which areas of an object experience high or low relative motion. Figure 6 (right) shows that, for spider, the legs are able to be segmented from other parts.
+
+# 6. Discussion
+
+In this work we demonstrated that our nonparametric representation of kinematic bodies infers meaningful part decompositions of objects in an unsupervised way, by simply observing them in motion. Furthermore, our Lie group representation constrains articulations of moving parts to physically plausible kinematic states, without the requirement of object-specific knowledge such as skeletal structures. Part decompositions are learnable on very short se
+
+quences, and generalize to other datasets and instances of the same object type. In contrast to methods which rely on extensive training data and/or object-specific 2D/3D models, we were able to demonstrate robust analysis by direct observation of single instances of an object.
+
+Our model simplifies inference and motion analysis while suggesting straightforward extensions. For example, part persistence ensures that the representation of parts persists over a video sequence, even if parts become occluded. A hierarchical model over multiple videos of similar objects would thus be robust to occlusions in any single video. Furthermore, Gaussian tangent-space conditionals allows closed-form Gibbs updates for translation, efficient slice sampling of rotation, and proves sufficient for motion analysis. Explicit models of part shape may avoid oversegmenting large regions and is the focus of current work.
+
+Acknowledgements This work was partially supported by ONR N00014-17-1-2072 and NIH 5R01MH111916.
+
+# References
+
+[1] Charles E Antoniak. Mixtures of dirichlet processes with applications to bayesian nonparametric problems. The annals of statistics, pages 1152-1174, 1974. 2
+[2] Matthew J Beal, Zoubin Ghahramani, and Carl E Rasmussen. The infinite hidden markov model. In Advances in neural information processing systems, pages 577-584, 2002. 2
+[3] Federica Bogo, Javier Romero, Gerard Pons-Moll, and Michael J Black. Dynamic faust: Registering human bodies in motion. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 6233-6242, 2017. 2
+[4] Guillaume Bourmaud, Rémi Mégret, Marc Arnaudon, and Audrey Giremus. Continuous-discrete extended kalman filter on matrix lie groups using concentrated gaussian distributions. Journal of Mathematical Imaging and Vision, 51(1):209-228, 2015. 2
+[5] C. Bregler and J. Malik. Tracking people with twists and exponential maps. Proceedings. 1998 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (Cat. No.98CB36231), pages 8-15, 1998. 2
+[6] Martin Brossard, Silvere Bonnabel, and Jean-Philippe Condomines. Unscented kalman filtering on lie groups. In 2017 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 2485–2491. IEEE, 2017. 2
+[7] David B. Dunson. Bayesian dynamic modeling of latent trait distributions. Biostatistics, 7(4):551-568, 2006. 2
+[8] Ethan Eade. Lie groups for computer vision. Cambridge Univ., Cambridge, UK, Tech. Rep, 2014. 2
+[9] 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, 2010. 2
+[10] Martin A Fischler and Robert A Elschlager. The representation and matching of pictorial structures. IEEE Transactions on computers, (1):67-92, 1973. 2
+[11] Emily Fox, Erik B Sudderth, Michael I Jordan, and Alan S Willsky. Bayesian nonparametric inference of switching dynamic linear models. IEEE Transactions on Signal Processing, 59(4):1569-1585, 2011. 2
+[12] Emily B Fox, Erik B Sudderth, Michael I Jordan, Alan S Willsky, et al. A sticky hdp-hmm with application to speaker diarization. The Annals of Applied Statistics, 5(2A):1020-1056, 2011. 2
+[13] 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. 2
+[14] Oren Freifeld, Alexander Weiss, Silvia Zuffi, and Michael J Black. Contour people: A parameterized model of 2d articulated human shape. In 2010 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pages 639-646. IEEE, 2010. 2
+
+[15] Jurgen V Gael, Yee W Teh, and Zoubin Ghahramani. The infinite factorial hidden markov model. In Advances in Neural Information Processing Systems, pages 1697-1704, 2009. 2
+[16] Brian C Hall. Lie groups, lie algebras, and representations. In Quantum Theory for Mathematicians, pages 333-366. Springer, 2013. 2
+[17] Søren Hauberg, François Lauze, and Kim Steenstrup Pedersen. Unscented kalman filtering on riemannian manifolds. Journal of Mathematical Imaging and Vision, 46(1):103-120, 2013. 2
+[18] Shanon X Ju, Michael J Black, and Yaser Yacoob. Cardboard people: A parameterized model of articulated image motion. In Proceedings of the Second International Conference on Automatic Face and Gesture Recognition, pages 38-44. IEEE, 1996. 2
+[19] Giuseppe Loianno, Michael Watterson, and Vijay Kumar. Visual inertial odometry for quadrotors on SE(3). Proceedings - IEEE International Conference on Robotics and Automation, 2016-June(3):1544-1551, 2016. 2
+[20] Dominik Lorenz, Leonard Bereska, Timo Milbich, and Bjorn Ommer. Unsupervised part-based disentangling of object shape and appearance. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 10955-10964, 2019. 2, 6
+[21] Naureen Mahmood, Nima Ghorbani, Nikolaus F Troje, Gerard Pons-Moll, and Michael J Black. Amass: Archive of motion capture as surface shapes. In Proceedings of the IEEE International Conference on Computer Vision, pages 5442-5451, 2019. 2
+[22] Radford M Neal et al. Slice sampling. The annals of statistics, 31(3):705-767, 2003. 6
+[23] Frank C. Park. Distance Metrics on the Rigid-Body Motions with Applications to Mechanism Design. Journal of Mechanical Design, 117(1):48-54, 1995. 2
+[24] Gerard Pons-Moll, Andreas Baak, Thomas Helten, Meinard Müller, Hans-Peter Seidel, and Bodo Rosenhahn. Multisensor-fusion for 3d full-body human motion capture. In 2010 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pages 663-670. IEEE, 2010. 2
+[25] Lu Ren, David B. Dunson, and Lawrence Carin. The dynamic hierarchical Dirichlet process. Proceedings of the 25th international conference on Machine learning - ICML '08, pages 824-831, 2008. 2
+[26] David A Ross, Daniel Tarlow, and Richard S Zemel. Unsupervised learning of skeletons from motion. In European Conference on Computer Vision, pages 560-573. Springer, 2008. 2
+[27] J Shotton, A Fitzgibbon, M Cook, T Sharp, M Finocchio, R Moore, A Kipman, and A Blake. Real-time human pose recognition in parts from single depth images. In Proceedings of the 2011 IEEE Conference on Computer Vision and Pattern Recognition, pages 1297-1304. IEEE Computer Society, 2011. 2
+[28] Julian Straub, Jason Chang, Oren Freifeld, and John Fisher III. A dirichlet process mixture model for spherical data. In Artificial Intelligence and Statistics, pages 930-938, 2015. 2
+
+[29] Julian Straub, Oren Freifeld, Guy Rosman, John J Leonard, and John W Fisher III. The Manhattan frame model-manhattan world inference in the space of surface normals. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2017. 3
+[30] Erik B Sudderth, Antonio Torralba, William T Freeman, and Alan S Willsky. Describing visual scenes using transformed dirichlet processes. In Advances in neural information processing systems, pages 1297-1304, 2006. 2
+[31] Yee Whye Teh, Michael I. Jordan, Matthew J. Beal, and David M. Blei. Hierarchical Dirichlet processes. Journal of the American Statistical Association, 101(476):1566-1581, 2006. 2
+[32] Isabel Valera, Francisco Ruiz, Lennart Svensson, and Fernando Perez-Cruz. Infinite factorial dynamical model. In Advances in Neural Information Processing Systems, pages 1666-1674, 2015. 2
+[33] Daniel Vlasic, Ilya Baran, Wojciech Matusik, and Jovan Popovic. Articulated mesh animation from multi-view silhouettes. In ACM Transactions on Graphics (TOG), volume 27, page 97. ACM, 2008. 7
+[34] Paul Voigtlaender, Michael Krause, Aljosa Osep, Jonathon Luiten, Berin Balachandar Gnana Sekar, Andreas Geiger, and Bastian Leibe. Mots: Multi-object tracking and segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7942-7951, 2019. 6
+[35] Yunfeng Wang and Gregory S Chirikjian. Error propagation on the euclidean group with applications to manipulator kinematics. IEEE Transactions on Robotics, 22(4):591-602, 2006. 1, 2
+[36] Zhenjia Xu, Zhijian Liu, Chen Sun, Kevin Murphy, William T Freeman, Joshua B Tenenbaum, and Jiajun Wu. Unsupervised discovery of parts, structure, and dynamics. International Conference on Learning and Representation, 2019. 2
+[37] Milos Zefran, Vijay Kumar, and Christopher Croke. Choice of Riemannian Metrics for Rigid Body Kinematics. ASME Design Engineering Technical Conference and Computers in Engineering Conference, (3):1-11, 1996. 2
+[38] Jianwen Zhang, Yangqiu Song, Changshui Zhang, and Shixia Liu. Evolutionary hierarchical dirichlet processes for multiple correlated time-varying corpora. Proceedings of the 16th ACM SIGKDD international conference on Knowledge discovery and data mining - KDD '10, page 1079, 2010. 2
+[39] Yang Zhou, Jitendra Sharma, Qiong Ke, Rogier Landman, Jingli Yuan, Hong Chen, David S Hayden, John W Fisher, Minqing Jiang, William Menegas, et al. Atypical behaviour and connectivity in shank3-mutant macaques. Nature, page 1, 2019. 2, 6
+[40] Silvia Zuffi, Angjoo Kanazawa, and Michael J Black. Lions and tigers and bears: Capturing non-rigid, 3d, articulated shape from images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3955–3963, 2018. 2
+[41] Silvia Zuffi, Angjoo Kanazawa, David W Jacobs, and Michael J Black. 3d menagerie: Modeling the 3d shape and pose of animals. In Proceedings of the IEEE Conference
+
+on Computer Vision and Pattern Recognition, pages 6365-6373, 2017. 2
\ No newline at end of file
diff --git a/nonparametricobjectandpartsmodelingwithliegroupdynamics/images.zip b/nonparametricobjectandpartsmodelingwithliegroupdynamics/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..c712f2795ffd37cd77d707866ee4ebbad53c0b37
--- /dev/null
+++ b/nonparametricobjectandpartsmodelingwithliegroupdynamics/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6a9ec1a1d19a9723683b40fe5c70c9b3d8a1ae145646c0087278112a5d9c5703
+size 548161
diff --git a/nonparametricobjectandpartsmodelingwithliegroupdynamics/layout.json b/nonparametricobjectandpartsmodelingwithliegroupdynamics/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..85ff29d47d19346a6b313802bd98a34a8df5ee18
--- /dev/null
+++ b/nonparametricobjectandpartsmodelingwithliegroupdynamics/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6d6369eaa7fb84a398282052625106479529b2b7f50a2e33e21bd331d357c5bb
+size 586247
diff --git a/normalassistedstereodepthestimation/98b99646-1667-41d6-a0b0-80485ecf61b7_content_list.json b/normalassistedstereodepthestimation/98b99646-1667-41d6-a0b0-80485ecf61b7_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..4f88898bcc1a3e695782104f3eea77fa5d31d605
--- /dev/null
+++ b/normalassistedstereodepthestimation/98b99646-1667-41d6-a0b0-80485ecf61b7_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5e126023efc3afedb7de8fb368ab45b4f2cd66f5a9313270cf7198f0da72cdc3
+size 83081
diff --git a/normalassistedstereodepthestimation/98b99646-1667-41d6-a0b0-80485ecf61b7_model.json b/normalassistedstereodepthestimation/98b99646-1667-41d6-a0b0-80485ecf61b7_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..eef384e2578756435db0326aa1e7dc7287b3c489
--- /dev/null
+++ b/normalassistedstereodepthestimation/98b99646-1667-41d6-a0b0-80485ecf61b7_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f830407b1b5e14ba9be085ab9c08068ddc893b31adfd1b7f16caf4b8ed2def66
+size 102433
diff --git a/normalassistedstereodepthestimation/98b99646-1667-41d6-a0b0-80485ecf61b7_origin.pdf b/normalassistedstereodepthestimation/98b99646-1667-41d6-a0b0-80485ecf61b7_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..664526ae851d04b5be7543242b0a2a6d5f8bcc98
--- /dev/null
+++ b/normalassistedstereodepthestimation/98b99646-1667-41d6-a0b0-80485ecf61b7_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ba49d5a3e3afe5cb832763c4dd519e2c80a0af39a6a3d1644b32067765194683
+size 1298356
diff --git a/normalassistedstereodepthestimation/full.md b/normalassistedstereodepthestimation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..fd60c5ba994264b4e30cf9b89d95a950e970f700
--- /dev/null
+++ b/normalassistedstereodepthestimation/full.md
@@ -0,0 +1,339 @@
+# Normal Assisted Stereo Depth Estimation
+
+Uday Kusupati $^{1*}$
+
+Shuo Cheng
+
+Rui Chen $^{3*}$
+
+Hao $\mathrm{Su}^2$
+
+1The University of Texas at Austin
+
+$^{2}$ University of California San Diego
+
+$^{3}$ Tsinghua University
+
+uday@cs.utexas.edu, scheng@eng.ucsd.edu, chenr17@mails.tsinghua.edu.cn, haosu@eng.ucsd.edu
+
+# Abstract
+
+Accurate stereo depth estimation plays a critical role in various 3D tasks in both indoor and outdoor environments. Recently, learning-based multi-view stereo methods have demonstrated competitive performance with limited number of views. However, in challenging scenarios, especially when building cross-view correspondences is hard, these methods still cannot produce satisfying results. In this paper, we study how to leverage a normal estimation model and the predicted normal maps to improve the depth quality. We couple the learning of a multi-view normal estimation module and a multi-view depth estimation module. In addition, we propose a novel consistency loss to train an independent consistency module that refines the depths from depth/normal pairs. We find that the joint learning can improve both the prediction of normal and depth, and the accuracy & smoothness can be further improved by enforcing the consistency. Experiments on MVS, SUN3D, RGBD and Scenes11 demonstrate the effectiveness of our method and state-of-the-art performance.
+
+# 1. Introduction
+
+Multi-view stereo (MVS) is one of the most fundamental problems in computer vision and has been studied over decades. Recently, learning-based MVS methods have witnessed significant improvement against their traditional counterparts [45, 23, 47, 7]. In general, these methods formulate the task as an optimization problem, where the target is to minimize the overall summation of pixel-wise depth discrepancy. However, the lack of geometric constraints leads to bumpy depth prediction especially in areas with low texture or that are textureless as shown in Fig. 1. Compared with depth that is a property of the global geometry, surface normal represents a more local geometric property and can be inferred more easily from visual appearance. For instance, it is much easier for
+
+
+
+
+Figure 1. Illustration of results of separate learning and joint learning of depth and normal. While the normal prediction is smooth and accurate, existing state-of-the-art stereo depth prediction result is noisy. Our method improves the prediction quality significantly by joint learning of depth and normal and enforcing consistency. Color format. Best viewed on screen.
+
+
+
+
+
+
+
+humans to estimate whether a wall is flat or not than the absolute depth. Fig. 1 shows an example where learning-based MVS methods perform poorly on depth estimation but significantly better on normal prediction.
+
+Attempts have been made to incorporate the normal based geometric constraints into the optimization to improve the monocular depth prediction [49, 59]. One simple form of enforcing a consistency constraint between depth and normal is to enforce orthogonality between the predicted normal and the tangent directions computed from the predicted depths at every point. However, for usage as regularizing loss function during training, we find that a naive consistency method in the world coordinate space is a very soft constraint as there are many sub-optimal depth solutions that are consistent with a given normal. Optimizing depths to be consistent with the normal as a post processing[59] ensures local consistency; however, not only this is an expensive step during inference time, but also the post-processed result may lose grounding from the input images. Therefore, we strive to propose a new formulation of depth-normal consistency that can improve
+
+the training process. Our consistency is defined in the pixel coordinate space and we show that our formulation is better than the simple consistency along with better performance than previous methods to make the geometry consistent in Section 4.4. This constraint is independent of the multiview formulation and can be used to enforce consistency on any pair of depth and normal even in the single view setting. To this end, our contributions are mainly in the following aspects:
+
+First, we propose a novel cost-volume-based multiview surface normal prediction network (NNet). By constructing a 3D cost volume by plane sweeping and accumulating the multi-view image information to different planes through projection, our NNet can learn to infer the normal accurately using the image information at the correct depth. The construction of a cost volume with image features from multiple views contains the information of available features in addition to enforcing additional constraints on the correspondences and thus the depths of each point. We show that the cost volume is a better structural representation that facilitates better learning on the image features for estimating the underlying surface normal. While in single image setting, the network tends to overfit the texture and color and demonstrates worse generalizability, we show that our method of normal estimation generalizes better due to learning on a better abstraction than single view images.
+
+Further, we demonstrate that learning a normal estimation model on the cost volume jointly with the depth estimation pipeline facilitates both tasks. Both traditional and learning-based stereo methods suffer from the noisy nature of the cost volume. The problem is significant in textureless surfaces when the image feature based matching doesn't offer enough cues. We show that enforce the network to predict accurate normal maps from the cost volume results in regularizing the cost volume representation, and thereby assists in producing better depth estimation. Experiments on MVS, SUN3D, RGBD, Scenes11, and Scene Flow datasets demonstrate that our method achieves state-of-the-art performance.
+
+# 2. Related Work
+
+In this section we review the literature relevant to our work concerned with stereo depth estimation, normal estimation and multi-task learning for multi-view geometry.
+
+Classical Stereo Matching. A stereo algorithm typically consists of the following steps: matching cost calculation, matching cost aggregation and disparity calculation. As the pixel representation plays a critical role in the process, previous literature have exploited a variety of representations, from the simplest RGB colors to hand-craft feature descriptors [50, 44, 39, 31, 2]. Together with post-processing techniques like Markov random fields [38] and
+
+semi-global matching [20], these methods can work well on relative simple scenarios.
+
+Learning-based Stereo. To deal with more complex real world scenes, recently researchers leverage CNNs to extract pixel-wise features and match correspondences [25, 51, 27, 6, 30, 29, 19]. The learned representation shows more robustness to low-texture regions and various lightings [22, 45, 47, 7, 32]. Rather than directly estimating depth from image pairs as done in many previous deep learning methods, some approaches also tried to incorporate semantic cues and context information in the cost aggregation process [43, 8, 24] and achieved positive results. While other geometry information such as normal and boundary [56, 16, 26] are widely utilized in traditional methods for further improving the reconstruction accuracy, it is non-trivial to explicitly enforce the geometry constraints in learning-based approaches [15]. To the best of our knowledge, this is the first work that tries to solve depth and normal estimation in multi-view scenario in a joint learning fashion.
+
+Surface Normal Estimation. Surface normal is an important geometry information for 3D scene understanding. Recently, several data-driven methods have achieved promising results [12, 1, 14, 41, 3, 52]. While these methods learn the image level features and textures to address normal prediction in a single image setting, we propose a multi-view method that generalizes better and reduces the learning complexity of the task.
+
+Joint Learning of Normal and Depth. With deep learning, numerous methods have been proposed for joint learning of normal and depth [34, 18, 54, 11, 48, 57, 12]. Even though these methods achieved some progress, all these methods focus on single image scenario, while there are still few works exploring joint estimation of normal and depth in multi-view setting. Gallup et al. [17] estimated candidate plane directions for warping during plane sweep stereo and further enforce an integrability penalty between the predicted depths and the candidate plane for better performance on slanted surfaces, however, the geometry constraints are only applied in a post processing or optimization step (e.g., energy model or graph cut). The lack of end-to-end learning mechanism makes their methods easier to stuck in sub-optimal solutions. In this work, our experiments demonstrate that with careful design, the joint learning of normal and depth is favorable for both sides, as the geometry information is easier to be captured. Benefited from the learned powerful representations, our approach achieves competitive results compared with previous methods.
+
+# 3. Approach
+
+We propose an end-to-end pipeline for multi-view depth and normal estimation as shown in Fig. 2. The entire
+
+
+Figure 2. Illustration of the pipeline of our method. We first extract deep image features from viewed images and build a feature cost volume by using feature wrapping. The depth and normal are jointly learned in a supervision fashion. Further we use our proposed consistency module to refine the depth and apply a consistency loss.
+
+pipeline can be viewed as two modules. The first module consists of joint estimation of depth and normal maps from the cost volume built from multi-view image features. The subsequent module refines the predicted depth by enforcing consistency between the predicted depth and normal maps using the proposed consistency loss. In the first module, joint prediction of normal from the cost volume implicitly improves the learned model for depth estimation. The second module is explicitly trained to refine the estimates by enforcing consistency.
+
+# 3.1. Learning based Plane Sweep Stereo
+
+First, we describe our depth prediction module. In terms of the type of target, current learning-based stereo methods can be categorized into: single object reconstruction [46, 7] and scene reconstruction [23, 22]. Compared with single object reconstruction, scene reconstruction, where multiple objects are included, requires larger receptive field for the network to better infer the context information. Because our work also aims at scene reconstruction, we take DPSNet [23], a state-of-the-art scene reconstruction method, as our depth prediction module.
+
+The inputs to the network are a reference image $\mathbf{I}_1$ and a neighboring view image $\mathbf{I}_2$ of the same scene along with the intrinsic camera parameters and the extrinsic transformation between the two views. We first extract deep image features using a spatial pyramid pooling module. Then a cost volume is built by plane sweeping and 3D CNNs are applied on it. Multiple cost volumes can be built and averaged when multiple views are present. Further context-aware cost aggregation [23] is used to regularize the noisy cost volume. The final depth is regressed using soft argmin [28] from the final cost volume.
+
+
+Figure 3. Network architecture of cost volume based surface normal estimation, NNet
+
+# 3.2. Cost Volume based Surface Normal Estimation
+
+In this section, we describe the network architecture of cost volume based surface normal estimation (Fig. 3). The cost volume contains all the spatial information in the scene as well as image features in it. The probability volume models a depth distribution across candidate planes for each pixel. In the limiting case of infinite candidate planes, an accurately estimated probability volume turns out to be the implicit function representation of the underlying surface i.e. takes value 1 where a point on the surface exists and 0 everywhere else. This motivates us to use the cost volume $\mathbf{C_1}$ which also contains the image-level features to estimate the surface normal map $\vec{\mathbf{n}}$ of the underlying scene.
+
+Given the cost volume $\mathbf{C_1}$ we concatenate the world coordinates of every voxel to its feature. Then, we use three layers of 2-strided convolution along the depth dimension to reduce the size of this input to $((\mathbf{f} + \mathbf{3})\times \mathbf{H}\times \mathbf{W}\times \mathbf{D} / 8)$ and call this $C_n$ . Consider a fronto-parallel slice $S_{i}$ of size $((\mathbf{f} + \mathbf{3})\times \mathbf{H}\times \mathbf{W})$ in $C_n$ . We pass each slice through a normal-estimation network (NNet). NNet contains 7 layers of 2D convolutions of $3\times 3$ with increasing receptive field as the layers go deep using dilated convolutions (1, 2, 4, 6, 8, 1, 1). We add the output of all slices and normalize the
+
+sum to obtain the estimate of the normal map.
+
+$$
+\vec {n} = \frac {\sum_ {i = 1} ^ {D / 8} \mathbf {N N e t} \left(S _ {i}\right)}{\left| \left| \sum_ {i = 1} ^ {D / 8} \mathbf {N N e t} \left(S _ {i}\right) \right| \right| _ {2}} \tag {1}
+$$
+
+We explain the intuition behind this choice as follows. Each slice contains information corresponding to the patch match similarity of each pixel in all the views conditioned on the hallucinated depths in the receptive field of the current slice. In addition, due to the strided 3D convolutions, the slice features accumulate information about features of a group of neighboring planes. The positional information of each pixel in each plane is explicitly encoded into the feature when we concatenated the world coordinates. So $\mathbf{NNet}(S_i)$ is an estimate of the normal at each pixel conditional to the depths in the receptive field of the current slice. For a particular pixel, slices close to the ground truth depth predict good normal estimates, where as slices far from the ground truth predict zero estimates. One way to see this is, if the normal estimate from each slice for a pixel is $\vec{\mathbf{n}}_{\mathrm{i}}$ , the magnitude of $\vec{\mathbf{n}}_{\mathrm{i}}$ can be seen as the correspondence probability at that slice for that pixel. The direction of $\vec{\mathbf{n}}_{\mathrm{i}}$ can be seen as the vector aligning with the strong correspondences in the local patch around the pixel in that slice.
+
+We train the first module with ground truth depth $(\mathbf{Z}_{\mathrm{gt}})$ supervision on $\mathbf{Z}_1$ & $\mathbf{Z}_2$ along with the ground truth normal $(\vec{\mathbf{n}}_{\mathrm{gt}})$ supervision on $(\vec{\mathbf{n}})$ . The loss function $(\mathcal{L})$ is defined as follows.
+
+$$
+\mathcal {L} _ {z} = \left| Z _ {2} - Z _ {g t} \right| _ {\mathbf {H}} + \lambda_ {z} \left| Z _ {1} - Z _ {g t} \right| _ {\mathbf {H}}
+$$
+
+$$
+\mathcal {L} _ {n} = | \vec {n} - n _ {\vec {g t}} ^ {\rightarrow} | _ {\mathbf {H}} \tag {2}
+$$
+
+$$
+\mathcal {L} = \mathcal {L} _ {z} + \lambda_ {n} \mathcal {L} _ {n}
+$$
+
+where $|\cdot |_{\mathbf{H}}$ denotes the Huber norm2.
+
+# 3.3. Depth Normal Consistency
+
+In addition to estimating depth and normal jointly from the cost volume, we use a novel consistency loss to enforce consistency between the estimated depth and normal maps. We utilize the camera model to estimate the spatial gradient of the depth map in the pixel coordinate space using the depth map and normal map. We compute two estimates for $\left(\frac{\partial Z}{\partial u}, \frac{\partial Z}{\partial v}\right)$ and enforce them to be consistent.
+
+A pinhole model of the camera is adopted as shown in Figure 4).
+
+$$
+\left[ \begin{array}{l} u \\ v \\ 1 \end{array} \right] = \frac {1}{Z} \left[ \begin{array}{c c c} f _ {x} & 0 & u _ {c} \\ 0 & f _ {y} & v _ {c} \\ 0 & 0 & 1 \end{array} \right] \left[ \begin{array}{l} X \\ Y \\ Z \end{array} \right] \tag {3}
+$$
+
+where $(u,v)$ is the corresponding image pixel coordinate
+
+
+Figure 4. Camera Model
+
+of 3D point $(X,Y,Z)$ , $(u_c, v_c)$ is the pixel coordinate of camera optical center, and $f_x, f_y$ are the focal lengths for X-axis and Y-axis, respectively.
+
+From the camera model, we can yield:
+
+$$
+\begin{array}{l} X = \frac {Z \left(u - u _ {c}\right)}{f _ {x}} \Rightarrow \frac {\partial X}{\partial u} = \frac {u - u _ {c}}{f _ {x}} \frac {\partial Z}{\partial u} + \frac {Z}{f _ {x}} \tag {4} \\ Y = \frac {Z (v - v _ {c})}{f _ {y}} \Rightarrow \frac {\partial Y}{\partial u} = \frac {v - v _ {c}}{f _ {y}} \frac {\partial Z}{\partial x} \\ \end{array}
+$$
+
+Estimate 1:
+
+The spatial gradient of the depth map can first be computed from the depth map by using a Sobel filter:
+
+$$
+\left(\frac {\partial Z}{\partial u}, \frac {\partial Z}{\partial v}\right) _ {1} = \left(\frac {\Delta Z}{\Delta u}, \frac {\Delta Z}{\Delta v}\right) \tag {5}
+$$
+
+Estimate 2:
+
+We assume the underlying scene to be of a smooth surface which can be expressed as an implicit function $F(X,Y,Z) = 0$ . The normal map $\vec{n}$ is an estimate of the gradient of this surface.
+
+$$
+\begin{array}{l} \vec {n} = \left(n _ {x}, n _ {y}, n _ {z}\right) = \left(\frac {\partial F}{\partial X}, \frac {\partial F}{\partial Y}, \frac {\partial F}{\partial Z}\right) \tag {6} \\ \Rightarrow \frac {\partial Z}{\partial X} = \frac {- n _ {x}}{n _ {z}}, \frac {\partial Z}{\partial Y} = \frac {- n _ {y}}{n _ {z}} \\ \end{array}
+$$
+
+Therefore, we can derive the second estimate of the depth spatial gradient by:
+
+$$
+\begin{array}{l} \left(\frac {\partial Z}{\partial u}\right) _ {2} = \frac {\partial Z}{\partial X} \frac {\partial X}{\partial u} + \frac {\partial Z}{\partial Y} \frac {\partial Y}{\partial u} \\ = \frac {\left(\frac {- n _ {x} Z}{n _ {z} f _ {x}}\right)}{1 + \left[ \frac {n _ {x} (u - u _ {c})}{n _ {z} f _ {x}} \right] + \left[ \frac {n _ {y} (v - v _ {c})}{n _ {z} f _ {y}} \right]} \tag {7} \\ \end{array}
+$$
+
+Similarly,
+
+$$
+\left(\frac {\partial Z}{\partial v}\right) _ {2} = \frac {\left(\frac {- n _ {y} Z}{n _ {z} f _ {y}}\right)}{1 + \left[ \frac {n _ {x} (u - u _ {c})}{n _ {z} f _ {x}} \right] + \left[ \frac {n _ {y} (v - v _ {c})}{n _ {z} f _ {y}} \right]} \tag {8}
+$$
+
+The consistency loss $\mathcal{L}_c$ is given as the Huber norm of the deviation between the two estimates $\left(\frac{\partial Z}{\partial u}, \frac{\partial Z}{\partial v}\right)_1$ and $\left(\frac{\partial Z}{\partial u}, \frac{\partial Z}{\partial v}\right)_2$ :
+
+$$
+\mathcal {L} _ {c} = \left| \left(\frac {\partial Z}{\partial u}, \frac {\partial Z}{\partial v}\right) _ {1} - \left(\frac {\partial Z}{\partial u}, \frac {\partial Z}{\partial v}\right) _ {2} \right| _ {\mathbf {H}} \tag {9}
+$$
+
+The second estimate of the depth spatial gradient depends only on the absolute depth of the pixel in question and not the depths of the neighboring pixels. We obtain the local surface information from the normal map, which we deem more accurate and easier to estimate. Our consistency formulation not only enforces constraints between the relative depths in a pixel's neighborhood but also the absolute depth. Previous approaches like [34], [58] enforce consistency between depth and normal maps by constraining the local surface tangent obtained from the depth map to be orthogonal to the estimated normal. These approaches typically enforce constraints on the spatial depth gradient in the world coordinate space, where as we enforce them in the pixel coordinate space. We convert the previous approach into a depth gradient consistency formulation and provide a detailed comparison along with experiments on SUN3D dataset in the appendix.
+
+In our pipeline, we implement this loss in an independent module. We use a UNet [35] with the raw depth and normal estimates as inputs to predict the refined depth and normal estimates. We train the entire pipeline in a modular fashion. We initially train the first module with loss $\mathcal{L}$ and then add the second module to train with the consistency loss $\mathcal{L}_c$ in conjunction with the previous losses. Moreover, our loss function can also be used for any depth refinement/completion method including single-view estimation given an estimate of the normal map.
+
+# 4. Experiments
+
+# 4.1. Datasets
+
+We use SUN3D [42], RGBD [37] and Scenes11 [4] datasets for training our end-to-end pipeline from scratch. The train set contains 166,285 image pairs from 50420 scenes (SUN3D: 29294, RGBD: 3373, Scenes11: 17753). Scenes11 is a synthetic dataset whereas SUN3D and RGBD consist of real word indoor environments. We test on the same split as previous methods and report the common quantitative measures of depth quality: absolute relative error (Abs Rel), absolute relative inverse error (Abs R-Inv), absolute difference error (Abs diff), square relative error (Sq
+
+
+Figure 5. Visualizing the depths in 3D for SUN3D. Two views for the point cloud from depth prediction.
+
+
+
+
+
+Rel), root mean square error and its log scale (RMSE and RMSE log) and inlier ratios $(\delta < 1.25^i$ where $i\in \{1,2,3\}$
+
+We also evaluate our method on a different class of datasets used by other state-of-the-art methods. We train and test on the Scene Flow datasets [33] which consist of 35454 training and 4370 test stereo pairs in $960 \times 540$ resolution with both synthetic and natural scenes. The metrics we use on this dataset are the popularly used average End Point Error (EPE) and the 1-pixel threshold error rate.
+
+Further, we evaluate our task on ScanNet [10]. The dataset consists of 94212 image pairs from 1201 scenes. We use the same test split as in [53]. We follow [45] for neighboring view selection, and generate ground-truth normal map following [13]. We use ScanNet to evaluate the performance of the surface normal estimation task too. We use the mean angle error (mean) and median angle error (median) per pixel. In addition, we also report the fraction of pixels with absolute angle difference with ground truth less than t where $\mathrm{t} \in \{11.25^{\circ}, 22.5^{\circ}, 30^{\circ}\}$ . For all the tables, we represent if a lower value of a metric is better with $(\downarrow)$ and if an upper value of a metric is better with $(\uparrow)$ .
+
+For all the experiments, to be consistent with other works, we use only two views to train and evaluate. Please refer the supplementary material for View Selection and ground truth normal generation
+
+# 4.2. Comparison with state-of-the-art
+
+For comparisons on the DeMoN datasets (SUN3D, RGBD, Scenes11 and MVS), we choose state-of-the-art approaches of a diverse kind. We also evaluate on another dataset MVS [36] containing outdoor scenes of buildings which is not used for training to evaluate generalizability. The complete comparison on all the metrics is presented in Table 1, and some qualitative results are shown in Fig. 5. Our method outperforms existing methods in terms of all the metrics. Also, our method generates more accurate and smooth point cloud with fine details even in textureless regions (eg. bed, wall).
+
+| Dataset | Method | Abs Rel(↓) | Abs diff(↓) | Sq Rel(↓) | RMSE (↓) | RMSE log(↓) | δ <1.25 (↑) | δ <1.252 (↑) | δ <1.253 (↑) |
| MVS (Outdoor) | COLMAP [36] | 0.3841 | 0.8430 | 1.257 | 1.4795 | 0.5001 | 0.4819 | 0.6633 | 0.8401 |
| DeMoN [40] | 0.3105 | 1.3291 | 19.970 | 2.6065 | 0.2469 | 0.6411 | 0.9017 | 0.9667 |
| DeepMVS [21] | 0.2305 | 0.6628 | 0.6151 | 1.1488 | 0.3019 | 0.6737 | 0.8867 | 0.9414 |
| DPSNet-U [23] | 0.0813 | 0.2006 | 0.0971 | 0.4419 | 0.1595 | 0.8853 | 0.9454 | 0.9735 |
| Ours | 0.0679 | 0.1677 | 0.0555 | 0.3752 | 0.1419 | 0.9054 | 0.9644 | 0.9879 |
| SUN3D (Indoor) | COLMAP [36] | 0.6232 | 1.3267 | 3.2359 | 2.3162 | 0.6612 | 0.3266 | 0.5541 | 0.7180 |
| DeMoN [40] | 0.2137 | 2.1477 | 1.1202 | 2.4212 | 0.2060 | 0.7332 | 0.9219 | 0.9626 |
| DeepMVS [21] | 0.2816 | 0.6040 | 0.4350 | 0.9436 | 0.3633 | 0.5622 | 0.7388 | 0.8951 |
| DPSNet-U [23] | 0.1469 | 0.3355 | 0.1165 | 0.4489 | 0.1956 | 0.7812 | 0.9260 | 0.9728 |
| Ours | 0.1271 | 0.2879 | 0.0852 | 0.3775 | 0.1703 | 0.8295 | 0.9437 | 0.9776 |
| RGBD (Indoor) | COLMAP [36] | 0.5389 | 0.9398 | 1.7608 | 1.5051 | 0.7151 | 0.2749 | 0.5001 | 0.7241 |
| DeMoN [40] | 0.1569 | 1.3525 | 0.5238 | 1.7798 | 0.2018 | 0.8011 | 0.9056 | 0.9621 |
| DeepMVS [21] | 0.2938 | 0.6207 | 0.4297 | 0.8684 | 0.3506 | 0.5493 | 0.8052 | 0.9217 |
| DPSNet-U [23] | 0.1508 | 0.5312 | 0.2514 | 0.6952 | 0.2421 | 0.8041 | 0.8948 | 0.9268 |
| Ours | 0.1314 | 0.4737 | 0.2126 | 0.6190 | 0.2091 | 0.8565 | 0.9289 | 0.9450 |
| Scenes11 (Synthetic) | COLMAP [36] | 0.6249 | 2.2409 | 3.7148 | 3.6575 | 0.8680 | 0.3897 | 0.5674 | 0.6716 |
| DeMoN [40] | 0.5560 | 1.9877 | 3.4020 | 2.6034 | 0.3909 | 0.4963 | 0.7258 | 0.8263 |
| DeepMVS [21] | 0.2100 | 0.5967 | 0.3727 | 0.8909 | 0.2699 | 0.6881 | 0.8940 | 0.9687 |
| DPSNet-U [23] | 0.0500 | 0.1515 | 0.1108 | 0.4661 | 0.1164 | 0.9614 | 0.9824 | 0.9880 |
| Ours | 0.0380 | 0.1130 | 0.0666 | 0.3710 | 0.0946 | 0.9754 | 0.9900 | 0.9947 |
+
+Table 1. Comparative evaluation of our model on SUN3D, RGBD, Scenes11 and MVS datasets. For all the metrics except the inlier ratios, lower the better. We use the performance of COLMAP, DeMoN, and DeepMVS reported in [23].
+
+| Method | EPE(↓) | 1-pixel error rate(↓) |
| GCNet | 1.80 | 15.6 |
| PSMNet | 1.09 | 12.1 |
| DPSNet | 0.80 | 8.4 |
| GANet-15 | 0.84 | 9.9 |
| GANet-deep | 0.78 | 8.7 |
| GANet-NNet | 0.77 | 8.0 |
| Ours | 0.69 | 7.0 |
+
+We compare our performance against similar cost-volume based approaches GCNet [28], PSMNet [5]) and GANet [55] which have different choices of cost aggregation. Since we use the same testing protocol, we use the performance of GCNet, PSMNet and GANet-15 as reported in [55]. We obtain the performance of GANet-deep which uses a deeper network with more 3D convolutions from the authors' website. Further, we append our NNet branch to the existing GANet architecture by passing the cost volume of GANet through our NNet and train this branch simultaneously with the full GANet architecture. We call this GANet-NNet. Finally, we also train DPSNet on scene flow datasets to confirm that the better performance is due to normal supervision rather than
+
+better cost aggregation or a better architecture.
+
+Table 2. Comparative evaluation of our model on Scene Flow datasets. For all the metrics, lower the better.
+
+| Dataset | Method | Abs Rel(↓) | Abs diff(↓) | Sq Rel(↓) | RMSE (↓) |
| ScanNet | DPSNet | 0.1258 | 0.2145 | 0.0663 | 0.3145 |
| Ours | 0.1150 | 0.2068 | 0.0577 | 0.3009 |
| Ours-Sc | 0.1070 | 0.1946 | 0.0508 | 0.2807 |
| SUN3D | DPSNet | 0.1470 | 0.3234 | 0.1071 | 0.4269 |
| Ours | 0.1332 | 0.3038 | 0.0910 | 0.3994 |
| Ours-Sc | 0.1247 | 0.2848 | 0.0791 | 0.3671 |
+
+Table 3. Comparative evaluation of our consistency loss.
+
+We also evaluate the performance of our consistency loss on SUN3D and ScanNet datasets. We train DPSNet only on SUN3D as well as ScanNet independently along with our method and present the results and present them in Table 3. We observe that our pipeline achieves significantly better performance on all the metrics on the MVS, SUN3D, RGBD, Scenes11 & SceneFlow datasets. We find that joint multi-view normal and depth estimation helps improve performance on indoor, outdoor, real and synthetic datasets. We further show that our consistency module significantly improves the performance on top of our existing pipeline. We further evaluate the performance on planar and textureless surfaces and visualise the changes in the cost volume due to the addition of NNet.
+
+# 4.3. Surface Normal Estimation
+
+Table 4 compares our cost volume based surface normal estimation with existing RGB-based, depth-based and RGB-D methods. We perform significantly better than the depth completion based method and perform similar to the RGB based method. The RGB-D based method performs the best, because of using the ground truth depth data.
+
+| Method | Mean (↓) | Median 11.25° (↓) | 22.5° (↑) | 30° (↑) |
| RGB-D [53] | 14.6 | 7.5 | 65.6 | 81.2 |
| DC [59] | 30.6 | 20.7 | 39.2 | 55.3 |
| RGB [59] | 31.1 | 17.2 | 37.7 | 58.3 |
| Ours | 23.1 | 18.0 | 31.1 | 61.8 |
+
+Table 4. Comparison of normal estimation on ScanNet with single view normal estimation. Note that the RGB-D and depth completion (DC) based methods use ground truth depth. The performances of DC & RGB-D are from [53] and RGB from [59].
+
+We evaluate the surface normal estimation performance in the wild by comparing our method against RGB based methods [59]. We use models trained on ScanNet and test them on images from the SUN3D dataset. We present the results in Table 5 and visualize a few cases in Fig. 6. We notice that our method generalizes much better in the wild when compared to the single-view RGB based methods. NNet estimates normals accurately not only in regions of low texture but also in regions with high variance in texture (the bed's surface). We attribute this performance to using two views instead of one which reduces the learning complexity of the task and thus generalizes better.
+
+We also observe that irrespective of the dataset, the normal estimation loss as well as the validation accuracies saturate within 3 epochs, showing that the task of normal estimation from cost volume is much easier than depth estimation.
+
+
+Figure 6. Surface Normal Estimation. Test on SUN3D after training on ScanNet. The RGB-based method is from [59]
+
+| Method | Mean (↓) | Median (↓) | 11.25° (↑) | 22.5° (↑) | 30° (↑) |
| RGB - SUN3D | 31.6 | 25.7 | 17.9 | 45.6 | 57.6 |
| Ours - SUN3D | 22.9 | 17.0 | 34.5 | 63.2 | 73.6 |
| RGB - MVS | 33.3 | 27.8 | 11.8 | 42.4 | 55.1 |
| Ours - MVS | 27.7 | 22.4 | 23.1 | 52.0 | 63.9 |
+
+Table 5. Generalization performance. Both the models were trained on ScanNet (indoor) and tested on SUN3D (indoor) and MVS (outdoor) datasets
+
+| Method | Abs Rel(↓) | Abs diff(↓) | Sq Rel(↓) | RMSE (↓) |
| Raw | 0.1332 | 0.3038 | 0.0910 | 0.3994 |
| UNet | 0.1307 | 0.2863 | 0.0878 | 0.3720 |
| UNet-Lt | 0.1288 | 0.2980 | 0.0842 | 0.3820 |
| UNet-Lc | 0.1247 | 0.2848 | 0.0791 | 0.3671 |
+
+Table 6. Ablation Study of Consistency Loss on SUN3D
+
+# 4.4. Consistency Loss
+
+We perform a few experiments to analyse the performance gains due to our novel consistency loss. We freeze the stereo pipeline and train the UNet that takes the raw estimates of depth and normal maps and refines the depth estimate. We train three configurations of it: (1) Pure network based refinement with just ground truth supervision, (2) Naive consistency loss, $\mathcal{L}_t$ as regularizer3, (3) Our consistency loss $\mathcal{L}_c$ as regularizer. We analyse the performance of the configurations on the SUN3D dataset which consists of indoor environments with a lot of scope for planar, textureless surfaces. Results in Table 6 suggest experimentally that using our consistency loss as regularizer improves the depth estimation accuracy superior to the other approaches.
+
+# 4.5. Visualizing the Cost Volume
+
+Regularization Existing stereo methods, both traditional and learning-based ones perform explicit cost aggregation on the cost volume. This is because each pixel has good correspondences only with a few pixels in its neighborhood in the other view. But the cost volume contains many more candidates, to be specific, the number of slices per pixel. Further, in textureless regions, there are no distinctive features and thus all candidates have similar features. This induces a lot of noise in the cost volume also is responsible for to false-positives. We show that normal supervision during training regularizes the cost volume. Fig. 7 visualises the probability volume slices and compares it against those of DPSNet. We consider the un-aggregated probability volume $\mathbf{P}_1$ in both the cases. We visualise
+
+
+Figure 7. Cost slice visualization: The first column contains the reference image and the ground truth depth map. The first row contains the cost volume slices from DPSNet. The second row contains the same from our network. The third row contains the estimates of ground truth cost slices. This can be seen as a $\mathcal{N}(0,0.01)$ distribution around the ground truth depth corresponding to each slice.
+
+
+Figure 8. Post-softmax probability distributions on disparity Green lines illustrate the ground truth disparities while the red lines illustrate the predicted disparities.
+
+the slices at disparities 14, 15, 16 & 17 (corresponding to depths 2.28, 2.13, 2.0, 1.88) which encompass the wall of the building. The slices of dpsnet are very noisy and do not actually produce good outputs in textureless regions like the walls & sky and reflective regions like the windows.
+
+Planar and Textureless Regions We also visualise the softmax distribution at a few regions in Fig. 8. Challenging regions that are planar or textureless or both are chosen. (a) The chair image consists of very less distinctive textures and the local patches on the chair look the same as those on the floor. But given two views, estimation of normal in the regions with curvature is much easier than estimating depth. This fact allows our model to perform better in the these regions(red & yellow boxes). Cost volume based methods that estimate a probability for each of the candidate depths struggle in textureless regions and usually have long tails in the output distribution. Normal supervision provides additional local constraints on the cost volume and suppresses the tails. This further justifies our understanding (from Section 3.2) that the correspondence probability is related to the slice's contribution to the normal map.
+
+We quantify these observations by evaluating the
+
+performance of depths $\mathbf{D}_1$ obtained from $\mathbf{P}_1$ against the performance of DPSNet without cost aggregation in Table 7. It shows that normal supervision helps to regularize the cost volume by constraining the cost volume better both qualitatively in challenging cases and quantitatively across the entire test data.
+
+| Method | Abs Rel(↓) | Abs diff(↓) | Sq Rel(↓) | RMSE (↓) |
| DPSNet | 0.1274 | 0.3388 | 0.1957 | 0.6230 |
| Ours | 0.1114 | 0.3276 | 0.1466 | 0.5631 |
+
+Further, we quantify the performance of our methods on planar and textureless surfaces by evaluating on semantic classes on ScanNet test images. Specifically we use the eigen13 classes [9] and report the depth estimation metrics of our methods against DPSNet on the top-2 occurring classes in Table 8. The performance on the remaining classes can be found in the supplementary material. We show that our methods perform well on all semantic categories and quantitatively show the improvement on planar and textureless surfaces which are usually found on walls and floors.
+
+Table 7. Test performance without cost aggregation on the DeMoN datasets.
+
+| Label | Method | Abs Rel(↓) | Abs diff(↓) | Sq Rel(↓) | RMSE (↓) |
| Wall | DPSNet | 0.1340 | 0.2968 | 0.0871 | 0.3599 |
| Ours | 0.1255 | 0.2835 | 0.0799 | 0.3436 |
| Ours- \( \mathcal{L}_c \) | 0.1173 | 0.2690 | 0.0721 | 0.3215 |
| Floor | DPSNet | 0.1116 | 0.2472 | 0.0777 | 0.2973 |
| Ours | 0.1092 | 0.2242 | 0.0509 | 0.2642 |
| Ours- \( \mathcal{L}_c \) | 0.1037 | 0.2061 | 0.0474 | 0.2561 |
+
+Table 8. Semantic class specific evaluation on ScanNet
+
+# 5. Conclusion
+
+In this paper, we proposed to leverage multi-view normal estimation and apply geometry constraints between surface normal and depth at training time to improve stereo depth estimation. We jointly learn to predict the depth and the normal based on the multi-view cost volume. Moreover, we proposed to refine the depths from depth, normal pairs with an independent consistency module which is trained independently using a novel consistency loss. Experimental results showed that joint learning can improve both the prediction of normal and depth, and the accuracy & smoothness can be further improved by enforcing the consistency. We achieved state-of-the-art performance on MVS, SUN3D, RGBD, Scenes11 and Scene Flow datasets.
+
+# References
+
+[1] Aayush Bansal, Bryan Russell, and Abhinav Gupta. Marr revisited: 2d-3d alignment via surface normal prediction. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 5965–5974, 2016. 2
+[2] Herbert Bay, Tinne Tuytelaars, and Luc Van Gool. Surf: Speeded up robust features. In European conference on computer vision, pages 404-417. Springer, 2006. 2
+[3] Alexandre Boulch and Renaud Marlet. Deep learning for robust normal estimation in unstructured point clouds. In Computer Graphics Forum, volume 35, pages 281-290. Wiley Online Library, 2016. 2
+[4] 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. 5
+[5] Jia-Ren Chang and Yong-Sheng Chen. Pyramid stereo matching network. CoRR, abs/1803.08669, 2018. 6
+[6] Jia-Ren Chang and Yong-Sheng Chen. Pyramid stereo matching network. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018. 2
+[7] Rui Chen, Songfang Han, Jing Xu, and Hao Su. Point-based multi-view stereo network. In The IEEE International Conference on Computer Vision (ICCV), 2019. 1, 2, 3
+[8] Ian Cherabier, Johannes L Schonberger, Martin R Oswald, Marc Pollefeys, and Andreas Geiger. Learning priors for semantic 3d reconstruction. In Proceedings of the European conference on computer vision (ECCV), pages 314-330, 2018. 2
+[9] Camille Couprie, Clément Farabet, Laurent Najman, and Yann LeCun. Indoor semantic segmentation using depth information. In 1st International Conference on Learning Representations, ICLR 2013, Scottsdale, Arizona, USA, May 2-4, 2013, Conference Track Proceedings, 2013. 8
+[10] Angela Dai, Angel X. Chang, Manolis Savva, Maciej Halber, Thomas A. Funkhouser, and Matthias Nießner. Scannet: Richly-annotated 3d reconstructions of indoor scenes. In 2017 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, Honolulu, HI, USA, July 21-26, 2017, pages 2432-2443, 2017. 5
+[11] Thanuja Dharmasiri, Andrew Spek, and Tom Drummond. Joint prediction of depths, normals and surface curvature from rgb images using cnns. In 2017 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 1505-1512. IEEE, 2017. 2
+[12] David Eigen and Rob Fergus. Predicting depth, surface normals and semantic labels with a common multi-scale convolutional architecture. In The IEEE International Conference on Computer Vision (ICCV), December 2015. 2
+[13] David F Fouhey, Abhinav Gupta, and Martial Hebert. Data-driven 3d primitives for single image understanding. In Proceedings of the IEEE International Conference on Computer Vision, pages 3392-3399, 2013. 5
+[14] David Ford Fouhey, Abhinav Gupta, and Martial Hebert. Unfolding an indoor origami world. In European Conference on Computer Vision, pages 687-702. Springer, 2014. 2
+
+[15] Yasutaka Furukawa, Carlos Hernández, et al. Multi-view stereo: A tutorial. Foundations and Trends® in Computer Graphics and Vision, 9(1-2):1-148, 2015. 2
+[16] Silvano Galliani, Katrin Lasinger, and Konrad Schindler. Gipuma: Massively parallel multi-view stereo reconstruction. *Publicationen der Deutschen Gesellschaft für Photogrammetrie*, Fernerkundung und Geoinformation e. V, 25:361-369, 2016. 2
+[17] David Gallup, Jan-Michael Frahm, Philippines Mordohai, Qingxiong Yang, and Marc Pollefeys. Real-time plane-sweeping stereo with multiple sweeping directions. In 2007 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR 2007), 18-23 June 2007, Minneapolis, Minnesota, USA, 2007. 2
+[18] Christian Hane, Lubor Ladicky, and Marc Pollefeys. Direction matters: Depth estimation with a surface normal classifier. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 381-389, 2015. 2
+[19] Wilfried Hartmann, Silvano Galliani, Michal Havlena, Luc Van Gool, and Konrad Schindler. Learned multipatch similarity. 2017 IEEE International Conference on Computer Vision (ICCV), pages 1595-1603, 2017. 2
+[20] Heiko Hirschmuller. Stereo processing by semiglobal matching and mutual information. IEEE Transactions on pattern analysis and machine intelligence, 30(2):328-341, 2007. 2
+[21] Po-Han Huang, Kevin Matzen, Johannes Kopf, Narendra Ahuja, and Jia-Bin Huang. Deepmvs: Learning multi-view stereopsis. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 2821-2830, 2018. 6
+[22] Po-Han Huang, Kevin Matzen, Johannes Kopf, Narendra Ahuja, and Jia-Bin Huang. Deepmvs: Learning multi-view stereopsis. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 2, 3
+[23] Sunghoon Im, Hae-Gon Jeon, Stephen Lin, and In So Kweon. Dpsnet: End-to-end deep plane sweep stereo. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019, 2019. 1, 3, 6
+[24] Sunghoon Im, Hae-Gon Jeon, Stephen Lin, and In So Kweon. Dpsnet: end-to-end deep plane sweep stereo. arXiv preprint arXiv:1905.00538, 2019. 2
+[25] Mengqi Ji, Juergen Gall, Haitian Zheng, Yebin Liu, and Lu Fang. Surfacenet: An end-to-end 3d neural network for multiview stereopsis. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2307-2315, 2017. 2
+[26] Michael Kazhdan, Matthew Bolitho, and Hugues Hoppe. Poisson surface reconstruction. In Proceedings of the fourth Eurographics symposium on Geometry processing, volume 7, 2006. 2
+[27] Alex Kendall, Hayk Martirosyan, Saumitro Dasgupta, Peter Henry, Ryan Kennedy, Abraham Bachrach, and Adam Bry. End-to-end learning of geometry and context for deep stereo regression. In Proceedings of the IEEE International Conference on Computer Vision, pages 66-75, 2017. 2
+
+[28] Alex Kendall, Hayk Martirosyan, Saumitro Dasgupta, Peter Henry, Ryan Kennedy, Abraham Bachrach, and Adam Bry. End-to-end learning of geometry and context for deep stereo regression. CoRR, abs/1703.04309, 2017. 3, 6
+[29] Sameh Khamis, Sean Fanello, Christoph Rhemann, Adarsh Kowdle, Julien Valentin, and Shahram Izadi. Stereonet: Guided hierarchical refinement for real-time edge-aware depth prediction. In Proceedings of the European Conference on Computer Vision (ECCV), pages 573-590, 2018. 2
+[30] Zhengfa Liang, Yiliu Feng, Yulan Guo, Hengzhu Liu, Wei Chen, Linbo Qiao, Li Zhou, and Jianfeng Zhang. Learning for disparity estimation through feature constancy. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018. 2
+[31] David G Lowe et al. Object recognition from local scale-invariant features. 2
+[32] Keyang Luo, Tao Guan, Lili Ju, Haipeng Huang, and Yawei Luo. P-mvsnet: Learning patch-wise matching confidence aggregation for multi-view stereo. In The IEEE International Conference on Computer Vision (ICCV), October 2019. 2
+[33] N. Mayer, E. Ilg, P. Häusser, P. Fischer, D. Cremers, A. Dosovitskiy, and T. Brox. A large dataset to train convolutional networks for disparity, optical flow, and scene flow estimation. In IEEE International Conference on Computer Vision and Pattern Recognition (CVPR), 2016. arXiv:1512.02134. 5
+[34] Xiaojuan Qi, Renjie Liao, Zhengzhe Liu, Raquel Urtasun, and Jiaya Jia. Geonet: Geometric neural network for joint depth and surface normal estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 283-291, 2018. 2, 5
+[35] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. CoRR, abs/1505.04597, 2015. 5
+[36] Johannes L. Schonberger and Jan-Michael Frahm. Structure-from-motion revisited. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, pages 4104-4113, 2016. 5, 6
+[37] Jürgen Sturm, Nikolas Engelhard, Felix Endres, Wolfram Burgard, and Daniel Cremers. A benchmark for the evaluation of RGB-D SLAM systems. In 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, IROS 2012, Vilamoura, Algarve, Portugal, October 7-12, 2012, pages 573-580, 2012. 5
+[38] Richard Szeliski, Ramin Zabih, Daniel Scharstein, Olga Veksler, Vladimir Kolmogorov, Aseem Agarwala, Marshall Tappen, and Carsten Rother. A comparative study of energy minimization methods for markov random fields. In European conference on computer vision, pages 16-29. Springer, 2006. 2
+[39] Engin Tola, Vincent Lepetit, and Pascal Fua. Daisy: An efficient dense descriptor applied to wide-baseline stereo. IEEE transactions on pattern analysis and machine intelligence, 32(5):815-830, 2009. 2
+[40] Benjamin Ummenhofer, Huizhong Zhou, Jonas Uhrig, Nikolaus Mayer, Eddy Ilg, Alexey Dosovitskiy, and Thomas
+
+Brox. Demon: Depth and motion network for learning monocular stereo. In 2017 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, Honolulu, HI, USA, July 21-26, 2017, pages 5622-5631, 2017. 6
+[41] Xiaolong Wang, David Fouhey, and Abhinav Gupta. Designing deep networks for surface normal estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 539-547, 2015. 2
+[42] Jianxiong Xiao, Andrew Owens, and Antonio Torralba. SUN3D: A database of big spaces reconstructed using sfm and object labels. In IEEE International Conference on Computer Vision, ICCV 2013, Sydney, Australia, December 1-8, 2013, pages 1625-1632, 2013. 5
+[43] Guorun Yang, Hengshuang Zhao, Jianping Shi, Zhidong Deng, and Jiaya Jia. Segstereo: Exploiting semantic information for disparity estimation. In Proceedings of the European Conference on Computer Vision (ECCV), pages 636-651, 2018. 2
+[44] Qingxiong Yang, Liang Wang, Ruigang Yang, Henrik Stewénius, and David Nister. Stereo matching with color-weighted correlation, hierarchical belief propagation, and occlusion handling. IEEE Transactions on Pattern Analysis and Machine Intelligence, 31(3):492-504, 2008. 2
+[45] Yao Yao, Zixin Luo, Shiwei Li, Tian Fang, and Long Quan. Mvsnet: Depth inference for unstructured multi-view stereo. European Conference on Computer Vision (ECCV), 2018. 1, 2, 5
+[46] Yao Yao, Zixin Luo, Shiwei Li, Tian Fang, and Long Quan. Mvsnet: Depth inference for unstructured multiview stereo. In Computer Vision - ECCV 2018 - 15th European Conference, Munich, Germany, September 8-14, 2018, Proceedings, Part VIII, pages 785-801, 2018. 3
+[47] Yao Yao, Zixin Luo, Shiwei Li, Tianwei Shen, Tian Fang, and Long Quan. Recurrent mvvsnet for high-resolution multiview stereo depth inference. Computer Vision and Pattern Recognition (CVPR), 2019. 1, 2
+[48] Wei Yin, Yifan Liu, Chunhua Shen, and Youliang Yan. Enforcing geometric constraints of virtual normal for depth prediction. In Proceedings of the IEEE International Conference on Computer Vision, pages 5684-5693, 2019. 2
+[49] Zhichao Yin and Jianping Shi. Geonet: Unsupervised learning of dense depth, optical flow and camera pose. In CVPR, 2018. 1
+[50] Jae-Chern Yoo and Tae Hee Han. Fast normalized cross-correlation. Circuits, systems and signal processing, 28(6):819, 2009. 2
+[51] Jure Zbontar, Yann LeCun, et al. Stereo matching by training a convolutional neural network to compare image patches. Journal of Machine Learning Research, 17(1-32):2, 2016. 2
+[52] Jin Zeng, Yanfeng Tong, Yunmu Huang, Qiong Yan, Wenxiu Sun, Jing Chen, and Yongtian Wang. Deep surface normal estimation with hierarchical rgb-d fusion. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6153-6162, 2019. 2
+[53] Jin Zeng, Yanfeng Tong, Yunmu Huang, Qiong Yan, Wenxiu Sun, Jing Chen, and Yongtian Wang. Deep surface normal estimation with hierarchical RGB-D fusion. In IEEE Conference on Computer Vision and Pattern Recognition,
+
+CVPR 2019, Long Beach, CA, USA, June 16-20, 2019, pages 6153-6162, 2019. 5, 7
+[54] Huangying Zhan, Chamara Saroj Weerasekera, Ravi Garg, and Ian Reid. Self-supervised learning for single view depth and surface normal estimation. arXiv preprint arXiv:1903.00112, 2019. 2
+[55] Feihu Zhang, Victor Adrian Prisacariu, Ruigang Yang, and Philip H. S. Torr. Ga-net: Guided aggregation net for end-to-end stereo matching. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019, Long Beach, CA, USA, June 16-20, 2019, pages 185-194, 2019. 6
+[56] Shuangli Zhang, Weijian Xie, Guofeng Zhang, Hujun Bao, and Michael Kaess. Robust stereo matching with surface normal prediction. In 2017 IEEE International Conference on Robotics and Automation (ICRA), pages 2540-2547. IEEE, 2017. 2
+[57] Yinda Zhang and Thomas Funkhouser. Deep depth completion of a single rgb-d image. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 175-185, 2018. 2
+[58] Yinda Zhang and Thomas A. Funkhouser. Deep depth completion of a single RGB-D image. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 175-185, 2018. 5
+[59] Yinda Zhang, Shuran Song, Ersin Yumer, Manolis Savva, Joon-Young Lee, Hailin Jin, and Thomas A. Funkhouser. Physically-based rendering for indoor scene understanding using convolutional neural networks. In 2017 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, Honolulu, HI, USA, July 21-26, 2017, pages 5057-5065, 2017. 1, 7
\ No newline at end of file
diff --git a/normalassistedstereodepthestimation/images.zip b/normalassistedstereodepthestimation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..f7cda3f87318c67c4c33cd5d0dfed4aaa4bd949e
--- /dev/null
+++ b/normalassistedstereodepthestimation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b9f578ba805a58987face61d86f99992a54357d5b9b50e5d3c22723407e978ea
+size 720407
diff --git a/normalassistedstereodepthestimation/layout.json b/normalassistedstereodepthestimation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..39d3516131108a6c6b33a8624c60281e95b53eee
--- /dev/null
+++ b/normalassistedstereodepthestimation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2788006903d4a176f81ddf79e7fcfb55bea4d1e15e3a6d2cbbfce88b08734caf
+size 371132
diff --git a/normalizedandgeometryawareselfattentionnetworkforimagecaptioning/225f3053-d04d-4c3c-bbb4-deb7493fd897_content_list.json b/normalizedandgeometryawareselfattentionnetworkforimagecaptioning/225f3053-d04d-4c3c-bbb4-deb7493fd897_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..7a254b13edbd6f115bbc1bc86b0defb61dd071f1
--- /dev/null
+++ b/normalizedandgeometryawareselfattentionnetworkforimagecaptioning/225f3053-d04d-4c3c-bbb4-deb7493fd897_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:eb3474668485d2c31a5570d4e06e60578cd94e9871698448ed8fe0877f3a58dc
+size 82881
diff --git a/normalizedandgeometryawareselfattentionnetworkforimagecaptioning/225f3053-d04d-4c3c-bbb4-deb7493fd897_model.json b/normalizedandgeometryawareselfattentionnetworkforimagecaptioning/225f3053-d04d-4c3c-bbb4-deb7493fd897_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..4f741eacb2bf5f36ce6f8d009660e67e6e71e490
--- /dev/null
+++ b/normalizedandgeometryawareselfattentionnetworkforimagecaptioning/225f3053-d04d-4c3c-bbb4-deb7493fd897_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:23979f20d24afba2932362ae34c33ff33b9dd4b2b584ac095917cd1aa4bc2b89
+size 100464
diff --git a/normalizedandgeometryawareselfattentionnetworkforimagecaptioning/225f3053-d04d-4c3c-bbb4-deb7493fd897_origin.pdf b/normalizedandgeometryawareselfattentionnetworkforimagecaptioning/225f3053-d04d-4c3c-bbb4-deb7493fd897_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..b8a891a65216063fa45caff01ee1bf91ef9435c8
--- /dev/null
+++ b/normalizedandgeometryawareselfattentionnetworkforimagecaptioning/225f3053-d04d-4c3c-bbb4-deb7493fd897_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0b4a1cf52886cd88b04eb2934b1f8dfdb2f1c717e87ae7e36aeb600183200466
+size 423612
diff --git a/normalizedandgeometryawareselfattentionnetworkforimagecaptioning/full.md b/normalizedandgeometryawareselfattentionnetworkforimagecaptioning/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..e02ecb44cca1a1adfc87c45608844c151bb2bb8a
--- /dev/null
+++ b/normalizedandgeometryawareselfattentionnetworkforimagecaptioning/full.md
@@ -0,0 +1,367 @@
+# Normalized and Geometry-Aware Self-Attention Network for Image Captioning
+
+Longteng Guo $^{1,2}$ Jing Liu $^{1}$ Xinxin Zhu $^{1}$ Peng Yao $^{3}$ Shichen Lu $^{4}$ Hanqing Lu
+
+$^{1}$ National Laboratory of Pattern Recognition, Institute of Automation, Chinese Academy of Sciences
+
+$^{2}$ School of Artificial Intelligence, University of Chinese Academy of Sciences
+
+$^{3}$ University of Science and Technology Beijing $^{4}$ Wuhan University
+
+{longteng.quo,jliu,xinxin.zhu,luhq}@nlpr.ia.ac.cn,S20180598@xs.ustb.edu.cn,sclu@whu.edu.cn
+
+# Abstract
+
+Self-attention (SA) network has shown profound value in image captioning. In this paper, we improve SA from two aspects to promote the performance of image captioning. First, we propose Normalized Self-Attention (NSA), a reparameterization of SA that brings the benefits of normalization inside SA. While normalization is previously only applied outside SA, we introduce a novel normalization method and demonstrate that it is both possible and beneficial to perform it on the hidden activations inside SA. Second, to compensate for the major limit of Transformer that it fails to model the geometry structure of the input objects, we propose a class of Geometry-aware Self-Attention (GSA) that extends SA to explicitly and efficiently consider the relative geometry relations between the objects in the image. To construct our image captioning model, we combine the two modules and apply it to the vanilla self-attention network. We extensively evaluate our proposals on MS-COCO image captioning dataset and superior results are achieved when comparing to state-of-the-art approaches. Further experiments on three challenging tasks, i.e. video captioning, machine translation, and visual question answering, show the generality of our methods.
+
+# 1. Introduction
+
+Automatically generating captions for images, namely image captioning [20, 40], has emerged as a prominent research problem at the intersection of computer vision (CV) and natural language processing (NLP). This task is challenging as it requires to first recognize the objects in the image, the relationships between them, and finally properly organize and describe them in natural language.
+
+Inspired by the sequence-to-sequence model for machine
+
+translation, most image captioning approaches adopt an encoder-decoder paradigm, which uses a deep convolutional neural network (CNN) to encode the input image as a vectorial representation, and a recurrent neural network (RNN) based caption decoder to generate the output caption. Recently, self-attention (SA) networks, denoted as SANs, have been introduced by [46, 43] to replace conventional RNNs in image captioning. Since its first introduction in Transformer [32], SA and its variants have shown promising empirical results in a wide range of CV [45, 16, 37, 10, 24, 9] and NLP [30, 8, 41] tasks. Although SAN-based framework has achieved state-of-the-art performance in image captioning, it remains two problems to be solved.
+
+Firstly, SA is susceptible to the internal covariate shift [18] problem. Typically, SA is regarded as a mapping of a set of query and key/value pairs. We observe, from another perspective, that computation of the attention weights in SA could be considered as feeding the queries into a fully-connected layer, whose parameters are dynamically computed according to the inputs. Problem could happen when the distribution of the queries shifts due to the change in network parameters during training. That is, the subsequent layers have to continuously adapt to the new input distribution, and consequently, SA may not be learned effectively. This problem is called "Internal Covariate Shift" in [18] — the tendency that the distribution of activations drifts during training in a feed-forward network.
+
+To eliminate the internal covariate shift problem inside SA, in this paper, we introduce an effective reparameterization of SA, named Normalized Self-Attention (NSA). NSA performs a novel normalization method on the hidden activations of SA to fix their distributions. By doing so, we can effectively decouple the fully-connected layer's parameters from those of other layers, leading to a better-conditioned optimization of SA. While Layer Normalization (LN) [4]
+
+is proven to be very critical for enabling the convergence of Transformer, however, LN is only applied outside SA blocks. To our knowledge, there has not been any deep exploration to find a suitable normalization method inside SA. We demonstrate that our NSA can collaborate with LN to bring improved generalization for SA-based networks.
+
+Another critical issue in SA is its inability to model the geometric relationships among input elements. The vanilla self-attention treats its inputs as "bag-of-features", simply neglecting their structure and the relationships between them. However, the objects in the image, from which the region-based visual features are extracted for image captioning, inherently have geometric structure — 2D spatial layout and variations in scale/aspect ratio. Such inherent geometric relationships between objects play a very complex yet critical role in understanding the image content. One common solution to inject position information into SA is adding representations of absolute positions to each element of the inputs, as is often used in the case of 1D sentences. Nonetheless, this solution does not work well for image captioning because the 2D geometry relations between objects are harder to infer from their absolute positions.
+
+We present a more efficient approach to the above problem: explicitly incorporating relative geometry relationships between objects into SA. The module is named Geometry-aware Self-Attention (GSA). GSA extends the original attention weight into two components: the original content-based weight, and a new geometric bias, which is efficiently calculated by the relative geometry relations and, importantly, the content of the associated elements, i.e. query or key.
+
+By combining both NSA and GSA, we obtain an enhanced SA module. We then construct our Normalized and Geometry-aware Self-Attention Network, namely NG-SAN, by replacing the vanilla SA modules in the encoder of the self-attention network with the proposed one. Extensive experiments on MS-COCO validate the effectiveness of our proposals. In particular, our NG-SAN establishes a new state-of-the-art on the MS-COCO evaluation sever, improving the best single-model result in terms of CIDEr from 125.5 to 128.6. To demonstrate the generality of NSA, we further present video captioning, machine translation, and visual question answering experiments on the VATEX, WMT 2014 English-to-German, and VQA-v2 datasets, respectively. On top of the strong Transformer-based baselines, our methods can consistently increase accuracies on all tasks at a negligible extra computational cost.
+
+To summarize, the main contributions of this paper are three-fold:
+
+- We presented Normalized Self-Attention, an effective reparameterization of self-attention, which brings the benefits of normalization technique inside SA.
+
+- We introduce a class of Geometry-aware Self-Attention that explicitly makes use of the relative geometry relationships and the content of objects to aid image understanding.
+
+- By combining the two modules and apply it on the self-attention network, we establish a new state-of-the-art on the MS-COCO image captioning benchmark. Further experiments on video captioning, machine translation, and visual question answering tasks demonstrate the generality of our methods.
+
+# 2. Related Work
+
+# 2.1. Image Captioning
+
+Existing image captioning approaches typically follow the CNN-RNN architecture [36]. Recently, a variety of improving works have been proposed. [40] introduces soft and hard attention mechanisms to automatically focus on salient objects when generating each word. [13] mimics human polishing process with a ruminant decoder. [2] uses an object detector to propose salient image regions (objects) and extract for each object a feature vector, which are then used as inputs for attention mechanism. [28] introduces reinforcement-learning with a self-critical reward for model training. Recently, [46] and [43] propose to replace conventional RNN with the Transformer architecture, achieving state-of-the-art performance. However, more deep exploration of the self-attention module in Transformer is not conducted on the task of image captioning, which motivates our work in this paper.
+
+# 2.2. Normalization
+
+Normalization [18] has become a critical ingredient in constructing a deep neural network. It is proposed by Batch normalization (BN) [18] to control the distributions of the internal activations of feed-forward neural networks, thereby reducing internal covariate shift. Several variants of normalization method such as Layer Normalization (LN) [4], Instance Normalization (IN) [31], and Group Normalization [39] have been developed mainly to reduce the mini-batch dependencies inherent in BN. LN operates along the channel dimension for each individual element in an example. IN performs BN-like computation but only for each sample. Though BN and LN have been adopted in networks that contain the SA module, e.g. Transformer, they are typically used outside the SA module. For the first time, our normalized self-attention brings the benefit of normalization inside the SA module.
+
+# 2.3. Position encoding in self-attention networks
+
+To inject sequence ordering into SA module, in Transformer, absolute position encodings based on sinusoids are
+
+added to the input elements both in the encoder and decoder. Recently, [29] modulates SA by incorporating the relative distances between sequence elements. [16] proposes an SA-like module for object detection, which multiplies a new relation weight on the original self-attention weight, and is used by [15] in Transformer. Its relation weight is computed solely with the relative coordinates and sizes between bounding boxes. Different from these works, our GSA module explores a broader range of geometric biases that involve not only the geometry information but also the content of the associated objects.
+
+# 3. Preliminaries
+
+# 3.1. Self-Attention (SA)
+
+We first review a basic form of self-attention, called "Scaled Dot-Product Attention", which is first proposed as a core component in Transformer.
+
+The self-attention layer first transforms a set of $N$ $d_{k}$ dimensional vectors, packed into a matrix $X\in \mathbb{R}^{N\times d_k}$ into queries $Q\in \mathbb{R}^{N\times d}$ , keys $K\in \mathbb{R}^{N\times d}$ , and values $V\in \mathbb{R}^{N\times d}$ given by $Q = XW_{Q}$ , $K = XW_{K}$ , $V = XW_{V}$ , where the projections $W_{Q},W_{K}$ , and $W_{V}$ are all $d_{k}\times d$ parameter matrices. The energy scores $E$ between any queries and keys are computed as
+
+$$
+E = Q K ^ {\top}, \tag {1}
+$$
+
+where $E$ is an $N \times N$ weight matrix, on which a softmax function is applied to obtain the weights of the values. The output is computed as a weighted sum of the values as
+
+$$
+Z = \text {A t t e n t i o n} (Q, K, V) = \text {S o f t m a x} (E) V. \tag {2}
+$$
+
+# 3.2. Self-attention network for image captioning
+
+Figure 1 shows self-attention network (SAN), which is our baseline architecture for image captioning. Similar to Transformer, the model consists of an image encoder and a caption decoder, both of which are composed of a stack of $L$ layers. Each layer consists of one (for the encoder layer) or two (for the decoder layer) multi-head attention (MHA) sub-layers followed by a feed-forward network (FFN). The MHA sub-layer contains $h$ parallel "heads" with each head corresponding to an independent scaled dot-product attention function. Besides, a residual connection and layer normalization are used between all the sub-layers.
+
+The inputs to the encoder are the region-based visual features extracted from Faster-RCNN [27] object detector. Each input element corresponds to an object in the image. Before feeding the input vectors into the encoder, they are first passed through a dense layer followed by a ReLU layer to adapt their dimension to be consistent with the encoder.
+
+
+Figure 1. Architecture of the self-attention network (SAN) for image captioning.
+
+The decoder takes the attended visual features and the embeddings of the previous words to predict the next word recursively. Following Transformer, we add sinusoidal "positional encodings" to the inputs at the bottoms of the decoder. Because the regions in the image don't have a natural order like sequences, no position information is added in the encoder side.
+
+# 4. Approach
+
+# 4.1. Normalized SA (NSA)
+
+This section introduces a reparameterization of selfattention that takes advantage of normalization method for improved training.
+
+We first review the formulation of Batch Normalization (BN). Consider feeding an input mini-batch $x$ into a feedforward layer $y = F(x, \Theta)$ , where $F$ is an arbitrary transformation, and $\Theta$ is the parameter to be learned. The internal covariate shift happens when the distribution of $x$ shifts during training. To reduce internal covariate shift, BN normalizes each channel of $x$ using the mean and variance accumulated over the same channel in the whole mini-batch.
+
+We then take a closer look at the attention weight in Eqn. 2:
+
+$$
+\begin{array}{l} S = \operatorname {S o f t m a x} (Q K ^ {\top}) \tag {3} \\ = \operatorname {S o f t m a x} ((X W _ {Q}) \cdot (W _ {K} ^ {\top} X ^ {\top})). \\ \end{array}
+$$
+
+It can be considered as an input instance $X \in \mathbb{R}^{N \times d_k}$ first goes through a $d_k \times d$ linear layer parameterized by $W_Q$ to obtain $Q = X W_Q \in \mathbb{R}^{N \times d}$ , which is then further fed into a $d \times N$ linear layer parameterized by $K^\top = W_K^\top X^\top$ followed by a Softmax activation to output $N$ probabilities over the keys. Thus, we can re-formulate Eqn. 3 as a fully-
+
+connected layer $F$ followed by a Softmax activation:
+
+$$
+\begin{array}{l} S = \operatorname {S o f t m a x} (F (Q, \Theta)), \\ Q = X W ^ {Q}, \quad \Theta = K ^ {\top} = W _ {K} ^ {\top} X ^ {\top}. \tag {4} \\ \end{array}
+$$
+
+Note that the parameter $\Theta$ is dynamically calculated based on $X$ . From this perspective, SA can be susceptible to the internal covariate shift problem just as in a standard feed-forward network. That is, when the distribution of input $Q$ shifts due to the change in network parameters during training, the layer parameter $\Theta$ needs to continuously adapt to the new input distribution. Consequently, SA may not be learned effectively.
+
+Therefore, to eliminate the internal covariate shift, it is advantageous for the distribution of $Q$ to remain fixed over time. Then $\Theta$ does not have to readjust to compensate for the change in the distribution of $Q$ . This can be accomplished by performing normalization on $Q$ by
+
+$$
+\hat {Q} = \operatorname {N o r m} (Q). \tag {5}
+$$
+
+We now consider the implementation of Norm. BN is not directly suitable for Norm because instead of using a shared layer parameters for all examples in the dataset, the layer parameter $\Theta = W_K^\top X^\top$ is dynamically computed with the instance-specific $X$ . Therefore, it is more desirable to perform normalization, Norm, for every single instance independently.
+
+Let $x \in \mathbb{R}^{B \times T \times C}$ and $x_{btc}$ denote the $btc$ -th element of $x$ , where $b$ is the sample index, $c$ is the channel index, and $t$ is the index of the additional spatial dimension. We implement Norm as normalizing each instance in the minibatch independently using per-channel feature statistics:
+
+$$
+\begin{array}{l} \hat {x} _ {b t c} = \frac {x _ {b t c} - \mu_ {b c}}{\sqrt {\sigma_ {b c} ^ {2} + \epsilon}}, \\ \mu_ {b c} = \frac {1}{T} \sum_ {t = 1} ^ {T} x _ {b t c}, \sigma_ {b c} ^ {2} = \frac {1}{T} \sum_ {t = 1} ^ {T} \left(x _ {b t c} - \mu_ {b c}\right) ^ {2}. \tag {6} \\ \end{array}
+$$
+
+The above normalization method is exactly the Instance Normalization (IN) in the 1D case. Subtracting the mean from the queries could be considered as highlighting the differences among the queries and encourage them to query information from distinctive aspects.
+
+We represent the normalization operation in Eqn. 6 as $\hat{x} = \mathrm{IN}(x)$ . Finally, we derive our normalized self-attention that reparameterizes the self-attention as
+
+$$
+\hat {Q} = \operatorname {I N} (Q), \quad Z = \operatorname {S o f t m a x} (\hat {Q} K ^ {\top}) V. \tag {7}
+$$
+
+Similar to BN and IN, it is optional to further apply the channel-wise affine transformation $\tilde{x}_{btc} = \hat{x}_{btc}\gamma_c + \beta_c$ in Norm, where $\gamma ,\beta \in \mathbb{R}^C$ are learnable scale and shift parameters. But we empirically found it not necessary in
+
+our experiments. It is also optional to normalize $K$ with $\hat{K} = \mathrm{IN}(K)$ . This is equivalent to normalizing the dynamic parameters $\Theta$ , which, however, may limit the capacity of SA.
+
+Relation to prior works. Our normalization method differs from Layer Normalization (LN) in that LN normalizes along all channels of each individual element, while our method normalizes along each channel of all input elements in an instance. As for IN, it is typically used in 2D CNNs, e.g. on style transfer task. To our knowledge, IN has not been successfully used for language generation tasks, in particular for SAN.
+
+# 4.2. Geometry-Aware SA (GSA)
+
+The inherent geometric structure among the input objects is beneficial for reasoning about the visual information, which, however, is not modeled in the vanilla Transformer. Therefore, we propose GSA that improves the SA module by taking into account the pairwise geometry relationships and the content information of objects.
+
+Denote the relative geometry features between two objects $i$ and $j$ as $\mathbf{f}_{ij}^{g}$ , which is a 4-dimensional vector of the relative position and size of the bounding boxes:
+
+$$
+\left(\log \left(\frac {\left| x _ {i} - x _ {j} \right|}{w _ {i}}\right), \log \left(\frac {\left| y _ {i} - y _ {j} \right|}{h _ {i}}\right), \log \left(\frac {w _ {i}}{w _ {j}}\right), \log \left(\frac {h _ {i}}{h _ {j}}\right)\right) ^ {T}, \tag {8}
+$$
+
+where $(x_{i},y_{i}),w_{i},h_{i}$ are the center coordinate, width, and height of box $i$ , respectively.
+
+We project $\mathbf{f}_{ij}^{g}$ to a high-dimensional representation $G_{ij}$ with a fully-connected (FC) layer followed by a ReLU activation as
+
+$$
+G _ {i j} = \operatorname {R e L U} \left(\operatorname {F C} \left(\mathbf {f} _ {i j} ^ {g}\right)\right), \tag {9}
+$$
+
+where $G\in \mathbb{R}^{N\times N\times d_g}$
+
+We then modify the energy score in Eq. 1 to include the effect of $G$ as
+
+$$
+E = Q K ^ {\top} + \phi \left(Q ^ {\prime}, K ^ {\prime}, G\right), \tag {10}
+$$
+
+where $\phi$ is the geometric attention function, which outputs a score matrix of shape $N\times N$ , and $Q^{\prime},K^{\prime}\in \mathbb{R}^{N\times d_{g}}$ are geometric queries and keys that are computed in the same way as $Q,K$ , i.e. by projecting the input $X$ . In the above equation, the first term is related to the queries and keys, namely content-based weight. The second term represents the geometric bias, which involves the geometry relations and the contents of $Q^{\prime}$ and $K^{\prime}$ .
+
+We now discuss three choices of $\phi$ , which can be either used individually or combined.
+
+Content-independent geometric bias. The geometry relation $G_{ij}$ conveys useful information for understanding the
+
+relationships between two objects, e.g. object $i$ and $j$ have "comparable sizes" and object $i$ is "next to" object $j$ . Thus, we directly project $G_{ij}$ to a scalar score by
+
+$$
+\phi_ {i j} ^ {1} = \operatorname {R e L U} \left(w _ {g} ^ {\top} G _ {i j}\right), \tag {11}
+$$
+
+where $w_{g}$ is the parameter to be learned. The ReLU nonlinearity acts as a zero trimming operation so that only the relations between objects with certain geometric relationships are considered.
+
+The relation network [16] presented recently for object detection is a special case of the content-independent geometric bias. Different from the above formulation, it fuses the content-independent geometric bias and the original attention weights by multiplication and use sinusoidal embedding of the geometry feature.
+
+Query-dependent geometric bias. The above "content-independent" variant assumes a static geometric bias, i.e. the same geometric bias is applied to all the query-key pairs in an SA layer. However, the geometric biases are more often different, depending on what the associated query object is. For example, for the queries, "sea" and "ball", their scale difference are often huge in the image, and thus their sensitivities to the same change of a key's distance/position vary widely. Therefore, the geometric biases of the two queries should be adapted to match their content. To this end, we decide to dynamically compute the geometric bias for different queries:
+
+$$
+\phi_ {i j} ^ {2} = Q _ {i} ^ {\prime} ^ {\top} G _ {i j}. \tag {12}
+$$
+
+Here we use dot-product to match $Q_{i}^{\prime}$ with $G_{ij}$ since it is more computation and memory efficient than using the Concatenation-FC operation.
+
+Key-dependent geometric bias. Similar to the query-dependent variant, geometric bias can also be associated with the content of the keys, computed as
+
+$$
+\phi_ {i j} ^ {3} = K _ {j} ^ {\prime \top} G _ {i j}. \tag {13}
+$$
+
+# 4.3. Applying NSA and GSA modules to SAN
+
+We first combine both NSA and GSA by replacing $Q$ in Eqn. 10 with the normalized one, $\hat{Q}$ . We then use this module to replace the vanilla SA modules in the encoder of SAN, which results in our full model, namely Normalized and Geometry-aware Self-Attention Network (NG-SAN). NSA is not applied in the decoder of SAN because the decoder is autoregressive and has variable-length inputs. This is undesirable for IN because the mean and variance statistics are meaningless when the sequence length is 1.
+
+
+Figure 2. Changes of CIDEr scores during training.
+
+# 5. Experiments on Image Captioning
+
+# 5.1. Experimental setup
+
+MS-COCO dataset [22]. It is the most popular benchmark for image captioning. We use the 'Karpathy' splits that have been used extensively for reporting results in prior works. This split contains 113,287 training images with 5 captions each, and 5k images for validation and test splits, respectively. We follow standard practice [35] to preprocess the text, resulting in a final vocabulary of 9,487 words. We use the region-based image features provided by Bottom-Up [2] for training.
+
+Evaluation metrics. We use the standard automatic evaluation metrics to evaluate the quality of image caption-s, including BLEU-1/2/3/4 [26], METEOR [7], ROUGE-L [21], CIDEr [33], and SPICE [1], which are denoted as B@1/2/3/4, M, R, C and S, respectively.
+
+Implementation details. We follow Transformer-Base model [32] and [43] to set the model hyper-parameters and train the model. Specifically, the dimensionality of input image features is 2048. The latent dimension in the MHA module is 512, and the number of heads is 8. Inner dimension in the FFN module is 2,048. We apply dropout with a probability of 0.1. We use the same number of layers $L$ for the encoder and decoder. For training, we use the Adam optimizer [19] We use a step decay schedule with warm-up for varying the learning rate. The base learning rate is set to $\min (t\times 10^{-4};3\times 10^{-4})$ , where $t$ is the current epoch number that starts at 1. After 6 epochs, the learning rate is decayed by 1/2 every 3 epochs. All models are first trained for 15 epochs with the cross-entropy loss and then further optimized with CIDEr reward [28] for additional 15 epochs. If not specifically mentioned, by default we set $L = 4$ , only normalize the query and do not apply $\gamma ,\beta$ in NSA, and use the query-dependent variant $(\phi^1)$ of GSA. Beam search with a beam width of 3 is used during testing stage.
+
+Table 1. Comparisons between N-SAN and SAN using different numbers of self-attention layers $L$ .
+
+| #Layers | Model | #params | B@4 | M | R | C | S |
| 1 | SAN | 18.1M | 36.8 | 28.0 | 57.6 | 123.4 | 21.8 |
| N-SAN | 18.1M | 38.2 | 28.6 | 58.2 | 127.2 | 22.2 |
| 2 | SAN | 25.5M | 38.2 | 28.5 | 58.3 | 127.1 | 22.3 |
| N-SAN | 25.5M | 38.9 | 28.9 | 58.6 | 129.7 | 22.6 |
| 4 | SAN | 40.2M | 38.4 | 28.6 | 58.4 | 128.6 | 22.6 |
| N-SAN | 40.2M | 39.3 | 29.1 | 58.9 | 130.8 | 23.0 |
| 6 | SAN | 54.9M | 38.6 | 28.6 | 58.5 | 128.8 | 22.5 |
| N-SAN | 54.9M | 39.3 | 29.2 | 59.1 | 131.1 | 23.0 |
+
+Table 2. Comparison of using various normalization methods in NSA.
+
+| Approach | B@4 | M | R | C | S |
| SAN | 38.4 | 28.6 | 58.4 | 128.6 | 22.6 |
| LN | 38.5 | 28.6 | 58.3 | 128.2 | 22.5 |
| BN | 38.8 | 28.9 | 58.7 | 129.4 | 22.8 |
| IN | 39.4 | 29.2 | 59.0 | 130.7 | 23.0 |
| IN w/o γ,β | 39.3 | 29.1 | 58.9 | 130.8 | 23.0 |
+
+# 5.2. Analysis on NSA
+
+In this section, we examine the effectiveness of NSA module. We replace the SA modules in the encoder of SAN with NSA, resulting in a model named Normalized Self-Attention Network (N-SAN).
+
+Number of attention layers. In Table 1 we compare the performance of N-SAN and SAN under the same number of SA layers $L \in \{1,2,4,6\}$ . We can see that the model size grows linearly as $L$ increases. Regarding the performance, we have two observations as follows. 1) As $L$ increases, the performance of both SAN and N-SAN gradually improves and reaches the optimal value when $L = 6$ . However, the performance gain of increasing $L$ from 4 to 6 is not very significant. Therefore, we use $L = 4$ for later experiments as a compromise between the model's performance and complexity. 2) N-SAN consistently outperforms SAN on all metrics under different $L$ . In Figure 2, we further plot the CIDEr scores of the one-layer SAN and N-SAN models during training, evaluated on the validation split at each epoch. As we can see, the curve of N-SAN is above that of SAN for most of the time.
+
+Different normalization methods. Since we introduced IN into the NSA module for normalization, an intuitive question to ask is whether we can replace IN with other normalization methods. In Table 2 we show the results of using different normalization methods including BN, LN, IN and IN without using the affine transformations $(\gamma$ and $\beta)$ . We have the following observations. 1) Using LN slightly decreases the performance. We conjecture that is because LN normalizes activations of all channels with the same nor
+
+Table 3. Comparison of normalizing query and key in N-SAN.
+
+| Query | Key | B@4 | M | R | C | S |
| X | X | 38.4 | 28.6 | 58.4 | 128.6 | 22.6 |
| ✓ | X | 39.3 | 29.1 | 58.9 | 130.8 | 23.0 |
| X | ✓ | 39.2 | 29.0 | 58.8 | 130.1 | 22.8 |
| ✓ | ✓ | 39.4 | 29.1 | 58.8 | 130.7 | 23.1 |
+
+Table 4. Comparison of various variants of GSA.
+
+| Approach | #params | B@4 | M | R | C | S |
| SAN | 40.2M | 38.4 | 28.6 | 58.4 | 128.6 | 22.6 |
| absolute | 40.2M | 38.3 | 28.5 | 58.4 | 128.4 | 22.6 |
| content-independent | 40.2M | 39.2 | 29.1 | 58.9 | 131.0 | 22.9 |
| key-dependent | 41.5M | 38.9 | 29.0 | 58.8 | 129.5 | 22.8 |
| query-dependent | 41.5M | 39.3 | 29.2 | 59.0 | 131.4 | 23.0 |
+
+malization terms $(\mu$ and $\sigma)$ , thus limiting the expression capacity of each channel when calculating attention weights. 2) IN and IN $w / o\gamma ,\beta$ significantly outperform SAN and all the other normalization methods. Meanwhile, the extra affine transformations $(\gamma$ and $\beta)$ are not necessary. 3) Applying BN outperforms SAN but is inferior to adopting IN. BN has a similar effect as IN to reduce the internal covariate shift by fixing the distribution of the queries. However, as is described in Sec. 4.1, since the layer parameter $\Theta$ in Eqn. 4 depends on instance-specific input, it is more desirable to perform input normalization also on each instance instead of on the whole mini-batch.
+
+What if we normalize the keys in addition to the queries? In Table 3, we compare the variants of Eqn. 7, including normalizing Q alone, K alone, and both Q and K. We have the following observations. 1) Normalizing either of Q and K could increase the performance. 2) The performances of normalizing both Q and K and normalizing Q alone are very similar, and are both significantly higher than that of SAN. 3) Normalizing K alone is inferior to normalizing Q alone. The reason is that normalizing $K$ is equivalent to normalizing $\Theta$ in Eqn. 4, which may limit the model capacity of SA.
+
+# 5.3. Analysis on GSA
+
+In this section, we examine the effectiveness of GSA module. Similar to N-SAN, we replace the SA modules in the encoder of SAN with GSA to obtain a model named Geometry-aware Self-Attention Network (G-SAN).
+
+Variants of GSA. In Table 4 we compare various variants of GSA module introduced in Sec. 4.2. “+absolute” denotes adding absolute geometry information of each individual object to their input representations at the bottoms of the encoder. It is obtained by embedding the geometry features, i.e. the center coordinates and the width/height of the box, normalized by the width/height of the image, to a
+
+Table 5. Leaderboard of the published state-of-the-art, single-model methods on the online MS-COCO test server, where c5 and c40 denote using 5 and 40 references for testing, respectively. CIDEr (C40) is the default sorting metric on the leaderboard.
+
+| Model | BLEU-1 | BLEU-2 | BLEU-3 | BLEU-4 | METEOR | ROUGE-L | CIDEr-D |
| c5 | c40 | c5 | c40 | c5 | c40 | c5 | c40 | c5 | c40 | c5 | c40 | c5 | c40 |
| Up-Down [2] | 80.2 | 95.2 | 64.1 | 88.8 | 49.1 | 79.4 | 36.9 | 68.5 | 27.6 | 36.7 | 57.1 | 72.4 | 117.9 | 120.5 |
| CAVP [23] | 80.1 | 94.9 | 64.7 | 88.8 | 50.0 | 79.7 | 37.9 | 69.0 | 28.1 | 37.0 | 58.2 | 73.1 | 121.6 | 123.8 |
| SGAE [42] | 80.6 | 95.0 | 65.0 | 88.9 | 50.1 | 79.6 | 37.8 | 68.7 | 28.1 | 37.0 | 58.2 | 73.1 | 122.7 | 125.5 |
| VSUA [14] | 79.9 | 94.7 | 64.3 | 88.6 | 49.5 | 79.3 | 37.4 | 68.3 | 28.2 | 37.1 | 57.9 | 72.8 | 123.1 | 125.5 |
| NG-SAN (Ours) | 80.8 | 95.0 | 65.4 | 89.3 | 50.8 | 80.6 | 38.8 | 70.2 | 29.0 | 38.4 | 58.7 | 74.0 | 126.3 | 128.6 |
+
+sinusoidal representation using the same method as the "positional encodings" in [32]. We have the following findings. 1) Adding the absolute geometry information ("absolute") is not beneficial to the performance. That is probably because it is too complex for SA to infer the 2D layout of objects from their absolute geometry information. 2) All the proposed variants of GSA can improve the performance of SAN, showing the advantages of using relative geometry information. 3) "query-dependent" brings the best performance and outperforms the content-independent variant, proving that incorporating the content information of the associated query can help infer a better geometric bias. 4) "key-dependent" is inferior to "query-dependent". That is because when using key-dependent geometric bias, the scores $\phi_{ij}^3 = K_j^\top G_{ij}$ condition on different keys $K_j'$ , thus the differences in $G_{ij}$ may be overwhelmed by the differences in $K_j'$ when performing softmax on the keys' dimension. In comparison, when using query-dependent geometric bias, the effect of $G_{ij}$ could be highlighted since the scores condition on a common query $Q_i'$ when performing softmax. We did not observe further improvement when combing these variants into $\phi$ in Eq. 10.
+
+# 5.4. Analysis on the full model (NG-SAN)
+
+We now validate the effectiveness of NG-SAN that takes advantage of both NSA and GSA.
+
+Comparisons with state-of-the-arts. We compare NG-SAN with the state-of-the-art methods, including Up-Down [2], CAVP [23], SGAE [42], VSUA [14], ORT [15], AoANet [17], and MT [43]. All the methods except ORT, AoANet, and MT are based on single- or multi-layer Long Short-Term Memory (LSTM) networks. MT adopts a Transformer-Base architecture, using 6 SA layers for both the encoder and the decoder, and inserts an additional LSTM layer in the decoder. ORT also adopts the Transformer-Base architecture and follows [16] to model the spatial relationship between inputs. AoANet uses SAN as the encoder and LSTM as the decoder.
+
+Table 6 compares the results of each method. We can see that both G-SAN and N-SAN outperform the SAN baseline across all metrics. Moreover, NG-SAN further outperforms
+
+Table 6. Comparisons with state-of-the-art single-model approaches on MS-COCO Karpathy test split.
+
+| Model | #params | B@4 | M | R | C | S |
| Up-Down [2] | - | 36.3 | 27.7 | 56.9 | 120.1 | 21.4 |
| CAVP [23] | - | 38.6 | 28.3 | 58.5 | 126.3 | 21.6 |
| SGAE [42] | - | 39.0 | 28.4 | 58.9 | 129.1 | 22.2 |
| VSUA [14] | - | 38.4 | 28.5 | 58.4 | 128.6 | 22.0 |
| ORT [15] | - | 38.6 | 28.7 | 58.4 | 128.3 | 22.6 |
| AoANet [17] | - | 38.9 | 29.2 | 58.8 | 129.8 | 22.4 |
| MT [43] | 57.0M | 39.8 | 29.1 | 59.1 | 130.9 | - |
| SAN | 40.2M | 38.4 | 28.6 | 58.4 | 128.6 | 22.6 |
| N-SAN | 40.2M | 39.3 | 29.1 | 58.9 | 130.8 | 23.0 |
| G-SAN | 41.5M | 39.3 | 29.2 | 59.0 | 131.4 | 23.0 |
| NG-SAN | 41.5M | 39.9 | 29.3 | 59.2 | 132.1 | 23.3 |
+
+G-SAN and N-SAN, demonstrating that GSA and NSA are compatible with each other. NG-SAN significantly outperforms all the other methods, including both LSTM-based and SA-based ones, over all metrics. Particularly, we improve the best CIDEr score from 130.9 to 132.1. Table 5 further reports the performance of the top-performing single-model solutions on the official test server. Compared with the published methods, our single model significantly outperforms all the other methods in terms of all evaluation metrics except BLEU-1. In particular, we establish a new state-of-the-art score of 128.6 on CIDEr (C40).
+
+Complexity. As can be seen in the "#params" column in Table 6, NG-SAN requires very few (about $2\mathrm{k}$ ) additional parameters compared with SAN. For NSA, it does not require any parameters, and the computation overhead of the additional normalization process is almost ignorable. While GSA indeed requires some additional parameters, the amount is ignorable. GSA can be efficiently implemented by matrix multiplication and the einstein summation (einsum) operations provided by mainstream deep learning frameworks.
+
+# 6. Extension: Experiments on Other Tasks
+
+We further investigate the effectiveness and generality of our methods on Video Captioning (VC) [34], Machine Translation (MT) [5], and Visual Question Answer
+
+Table 7. Video captioning results on VATEX dataset.
+
+| Model | B@4 | M | R | C |
| VATEX [38] | 28.2 | 21.7 | 46.9 | 45.7 |
| Transformer (Ours) | 30.6 | 22.3 | 48.4 | 53.4 |
| +NSA | 31.0 | 22.7 | 49.0 | 57.1 |
+
+Table 8. Machine translation results on newstest2014 for WMT 2014 En-De dataset.
+
+| Model | BLEU |
| Transformer-Base [32] | 27.30 |
| Transformer-Big [32] | 28.40 |
| Transformer-Base (Ours) | 27.56 |
| +NSA | 27.92 |
+
+ing (VQA) [3] tasks. Since VC and MT are both sequence-to-sequence problems, we directly use Transformer as the baseline models, and we replace the SA modules in their encoder with the proposed NSA module to construct our methods. As for VQA, we use MCAN [44] as the baseline model, which uses a SAN-based network to simultaneously encode image and question information. To build our method for VQA, we replace all the SA modules in MCAN with our GSA modules.
+
+# 6.1. Video Captioning
+
+We use a recently released large-scale video captioning dataset, VATEX [38]. It contains over 41,250 videos and 412,500 English captions. For a fair comparison with VATEX, we directly use the pre-extracted video features provided by the paper. Specifically, each video is sampled at 25fps and 1,000-dimensional features are extracted from these sampled frames using a pretrained I3D [6] model. Because the dataset is relatively small, we found using one layer in both the encoder and decoder is satisfactory. We use a training configuration the same as that of our image captioning model.
+
+In Table 7, we compare our method with the Transformer baseline and the VATEX model. We see that the performance of Transformer strongly exceeds that of VATEX, which adopts an LSTM-based architecture. Our Transformer+NSA method consistently improves over Transformer on all metrics. Particularly, our method improves the CIDEr score by 3.7 points when compared to Transformer, and significantly improves the CIDEr score by 11.4 points when compared to VATEX baseline.
+
+# 6.2. Machine Translation
+
+We also evaluate NSA on MT task, for which the Transformer was originally proposed. We trained on the widely-used WMT 2014 English to German (En-De) dataset, which consists of about 4.56 million sentence pairs. The models were validated on newstest-2013 and tested on newstest
+
+Table 9. Visual question answering accuracies on the VQA-v2 dataset to compare with the state-of-the-art single-model methods.
+
+| Model | test-dev | test-standard |
| MLIN [12] | 70.18 | 70.28 |
| DFAF [11] | 70.22 | 70.34 |
| MCAN [44] | 70.63 | 70.90 |
| MCAN (Ours) | 70.54 | 70.83 |
| +GSA | 70.76 | 71.28 |
+
+2014 with BLEU. We use the well-known Transformer-Base [32] variant of Transformer as the baseline model, which has 6 layers in both the encoder and decoder. Specifically, we follow the implementation of the fairseq-py [25] toolkit.
+
+As shown in Table 8, Compared to Transformer-Base model, NSA increases the BLEU score by 0.36 points without adding any parameters.
+
+# 6.3. Visual Question Answering
+
+We conduct experiments on the most commonly used VQA benchmark, VQA-v2 [3]. It contains human-annotated question-answer pairs relating to the images from the MS-COCO dataset, with 3 questions per image and 10 answers per question. We strictly follow MCAN [44] to implement our models. Specifically, images are represented with region features extracted from Faster R-CNN object detector and the input questions are transformed with GloVe word embeddings and an LSTM network.
+
+Table 9 shows the overall accuracies of our methods and the current state-of-the-art models on the online test-dev and test-standard splits. GSA boosts the test-standard accuracy of MCAN from 70.83 to 71.28.
+
+# 7. Conclusion
+
+We proposed two improvements to the self-attention (SA) mechanism, i.e. a Normalized Self-Attention (NSA) to reduce the internal covariate shift problem inside SA, and a class of Geometry-aware Self-Attention (GSA) that explicitly and dynamically computes the geometric bias between objects to benefit image understanding. We have conducted extensive experiments on MS-COCO image captioning dataset to validate the effectiveness of NSA, GSA, and their combination. We further show the significance and generality of our methods on video captioning, machine translation, and visual question answering tasks. On all tasks, simply replacing the vanilla SA module with our proposed methods provides solid improvements over strong baselines.
+
+# Acknowledgments
+
+This work was supported by National Natural Science Foundation of China (No.61922086 and No.61872366) and Beijing Natural Science Foundation (No.4192059).
+
+# References
+
+[1] Peter Anderson, Basura Fernando, Mark Johnson, and Stephen Gould. Spice: Semantic propositional image caption evaluation. pages 382-398, 2016. 5
+[2] Peter Anderson, Xiaodong He, Chris Buehler, Damien Teney, Mark Johnson, Stephen Gould, and Lei Zhang. Bottom-up and top-down attention for image captioning and vqa. arXiv preprint arXiv:1707.07998, 2017. 2, 5, 7
+[3] Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C Lawrence Zitnick, and Devi Parikh. Vqa: Visual question answering. In Proceedings of the IEEE international conference on computer vision, pages 2425-2433, 2015. 8
+[4] Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016. 1, 2
+[5] Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014. 7
+[6] 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. 8
+[7] Michael Denkowski and Alon Lavie. Meteor universal: Language specific translation evaluation for any target language. In The Workshop on Statistical Machine Translation, pages 376-380, 2014. 5
+[8] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018. 1
+[9] 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. 1
+[10] Jun Fu, Jing Liu, Haijie Tian, Yong Li, Yongjun Bao, Zhiwei Fang, and Hanqing Lu. Dual attention network for scene segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3146-3154, 2019. 1
+[11] Peng Gao, Zhengkai Jiang, Haoxuan You, Pan Lu, Steven C. H. Hoi, Xiaogang Wang, and Hongsheng Li. Dynamic fusion with intra- and inter-modality attention flow for visual question answering. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 8
+[12] Peng Gao, Haoxuan You, Zhanpeng Zhang, Xiaogang Wang, and Hongsheng Li. Multi-modality latent interaction network for visual question answering. In Proceedings of the IEEE International Conference on Computer Vision, pages 5825-5835, 2019. 8
+[13] Longteng Guo, Jing Liu, Shichen Lu, and Hanqing Lu. Show, tell and polish: Ruminant decoding for image captioning. IEEE Transactions on Multimedia, 2019. 2
+[14] Longteng Guo, Jing Liu, Jinhui Tang, Jiangwei Li, Wei Luo, and Lu Hanqing. Aligning linguistic words and visual semantic units for image captioning. In ACM MM, 2019. 7
+
+[15] Simao Herdade, Armin Kappeler, Kofi Boakye, and Joao Soares. Image captioning: Transforming objects into words. arXiv preprint arXiv:1906.05963, 2019. 3, 7
+[16] Han Hu, Jiayuan Gu, Zheng Zhang, Jifeng Dai, and Yichen Wei. Relation networks for object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3588-3597, 2018. 1, 3, 5, 7
+[17] Lun Huang, Wenmin Wang, Jie Chen, and Xiao-Yong Wei. Attention on attention for image captioning. In Proceedings of the IEEE International Conference on Computer Vision, pages 4634-4643, 2019. 7
+[18] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. Computer Science, 2015. 1, 2
+[19] Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.5
+[20] Ryan Kiros, Ruslan Salakhutdinov, and Rich Zemel. Multimodal neural language models. In Proceedings of the 31st International Conference on Machine Learning (ICML-14), pages 595–603, 2014. 1
+[21] Chin-Yew Lin. Rouge: A package for automatic evaluation of summaries. Text Summarization Branches Out, 2004. 5
+[22] Tsungyi Lin, Michael Maire, Serge J Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollar, and C Lawrence Zitnick. Microsoft coco: Common objects in context. *european conference on computer vision*, pages 740-755, 2014. 5
+[23] Daqing Liu, Zheng-Jun Zha, Hanwang Zhang, Yongdong Zhang, and Feng Wu. Context-aware visual policy network for sequence-level image captioning. In 2018 ACM Multimedia Conference on Multimedia Conference, pages 1416-1424. ACM, 2018. 7
+[24] Ziwei Liu, Zhongqi Miao, Xiaohang Zhan, Jiayun Wang, Boqing Gong, and Stella X Yu. Large-scale long-tailed recognition in an open world. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2537-2546, 2019. 1
+[25] Myle Ott, Sergey Edunov, Alexei Baevski, Angela Fan, Sam Gross, Nathan Ng, David Grangier, and Michael Auli. fairseq: A fast, extensible toolkit for sequence modeling. In Proceedings of NAACL-HLT 2019: Demonstrations, 2019. 8
+[26] Kishore Papineni, Salim Roukos, Todd Ward, and Wei Jing Zhu. Bleu: a method for automatic evaluation of machine translation. Meeting on Association for Computational Linguistics, pages 311-318, 2002. 5
+[27] 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. 3
+[28] Steven J Rennie, Etienne Marcheret, Youssef Mroueh, Jarret Ross, and Vaibhava Goel. Self-critical sequence training for image captioning. computer vision and pattern recognition, 2017. 2, 5
+[29] Peter Shaw, Jakob Uszkoreit, and Ashish Vaswani. Self-attention with relative position representations. arXiv preprint arXiv:1803.02155, 2018. 3
+
+[30] Zhixing Tan, Mingxuan Wang, Jun Xie, Yidong Chen, and Xiaodong Shi. Deep semantic role labeling with self-attention. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018. 1
+[31] Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. Instance normalization: The missing ingredient for fast stylization. arXiv preprint arXiv:1607.08022, 2016. 2
+[32] 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 6000-6010, 2017. 1, 5, 7, 8
+[33] Ramakrishna Vedantam, C. Lawrence Zitnick, and Devi Parikh. Cider: Consensus-based image description evaluation. Computer Science, pages 4566-4575, 2015. 5
+[34] Subhashini Venugopalan, Marcus Rohrbach, Jeffrey Donahue, Raymond Mooney, Trevor Darrell, and Kate Saenko. Sequence to sequence-video to text. In Proceedings of the IEEE international conference on computer vision, pages 4534-4542, 2015. 7
+[35] Oriol Vinyals, Alexander Toshev, Samy Bengio, and Dumitru Erhan. Show and tell: A neural image caption generator. In Computer Vision and Pattern Recognition (CVPR), 2015 IEEE Conference on, pages 3156-3164. IEEE, 2015. 5
+[36] Oriol Vinyals, Alexander Toshev, Samy Bengio, and Dumitru Erhan. Show and tell: Lessons learned from the 2015 mscoco image captioning challenge. IEEE transactions on pattern analysis and machine intelligence, 39(4):652-663, 2017. 2
+[37] 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. 1
+[38] Xin Wang, Jiawei Wu, Junkun Chen, Lei Li, Yuan-Fang Wang, and William Yang Wang. Vatex: A large-scale, high-quality multilingual dataset for video-and-language research. arXiv preprint arXiv:1904.03493, 2019. 8
+[39] Yuxin Wu and Kaiming He. Group normalization. In Proceedings of the European Conference on Computer Vision (ECCV), pages 3-19, 2018. 2
+[40] Kelvin Xu, Jimmy Lei Ba, Ryan Kiros, Kyunghyun Cho, Aaron C Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. international conference on machine learning, pages 2048-2057, 2015. 1, 2
+[41] Baosong Yang, Jian Li, Derek F Wong, Lidia S Chao, Xing Wang, and Zhaopeng Tu. Context-aware self-attention networks. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 387–394, 2019. 1
+[42] Xu Yang, Kaihua Tang, Hanwang Zhang, and Jianfei Cai. Auto-encoding scene graphs for image captioning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 10685–10694, 2019. 7
+[43] Jun Yu, Jing Li, Zhou Yu, and Qingming Huang. Multimodal transformer with multi-view visual representation for image captioning. arXiv preprint arXiv:1905.07841, 2019. 1, 2, 5, 7
+
+[44] Zhou Yu, Jun Yu, Yuhao Cui, Dacheng Tao, and Qi Tian. Deep modular co-attention networks for visual question answering. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 8
+[45] Han Zhang, Ian Goodfellow, Dimitris Metaxas, and Augustus Odena. Self-attention generative adversarial networks. arXiv preprint arXiv:1805.08318, 2018. 1
+[46] Xinxin Zhu, Lixiang Li, Jing Liu, Haipeng Peng, and Xinxin Niu. Captioning transformer with stacked attention modules. Applied Sciences, 8(5):739, 2018. 1, 2
\ No newline at end of file
diff --git a/normalizedandgeometryawareselfattentionnetworkforimagecaptioning/images.zip b/normalizedandgeometryawareselfattentionnetworkforimagecaptioning/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..c02219e9a0e228c00f6ef08cde8ecda2652a9467
--- /dev/null
+++ b/normalizedandgeometryawareselfattentionnetworkforimagecaptioning/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:91ae612a229e8436aa8c3f97ab27f1201e50d4ef4afda04f5909c87d256f2ccf
+size 367393
diff --git a/normalizedandgeometryawareselfattentionnetworkforimagecaptioning/layout.json b/normalizedandgeometryawareselfattentionnetworkforimagecaptioning/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..31b530aecbf19e937fd7159d3da82a17bbdfb2a4
--- /dev/null
+++ b/normalizedandgeometryawareselfattentionnetworkforimagecaptioning/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:068e58ffd8c4595a6ce4bcf6affa977455c8430e67fed07359578cc5c3cea67b
+size 420306
diff --git a/normalizingflowswithmultiscaleautoregressivepriors/118b64ad-e76a-419a-b9e2-e488eb50930b_content_list.json b/normalizingflowswithmultiscaleautoregressivepriors/118b64ad-e76a-419a-b9e2-e488eb50930b_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..fd725f2105bb4d739737e06017dbeec185c81b19
--- /dev/null
+++ b/normalizingflowswithmultiscaleautoregressivepriors/118b64ad-e76a-419a-b9e2-e488eb50930b_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c496c769fa36b69e8d8e96a17463484133f811177593622f95f92631b4b638d5
+size 75548
diff --git a/normalizingflowswithmultiscaleautoregressivepriors/118b64ad-e76a-419a-b9e2-e488eb50930b_model.json b/normalizingflowswithmultiscaleautoregressivepriors/118b64ad-e76a-419a-b9e2-e488eb50930b_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..3ebf143e40bfd0123071d9461b3eafc32a9c5023
--- /dev/null
+++ b/normalizingflowswithmultiscaleautoregressivepriors/118b64ad-e76a-419a-b9e2-e488eb50930b_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ec62afe0feda298429c9e17ff46c8a977907ed908d9b787054a6bd8e10418ebb
+size 92120
diff --git a/normalizingflowswithmultiscaleautoregressivepriors/118b64ad-e76a-419a-b9e2-e488eb50930b_origin.pdf b/normalizingflowswithmultiscaleautoregressivepriors/118b64ad-e76a-419a-b9e2-e488eb50930b_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..a7a6a60b9901101e434f0f6d149ae32636d72c94
--- /dev/null
+++ b/normalizingflowswithmultiscaleautoregressivepriors/118b64ad-e76a-419a-b9e2-e488eb50930b_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ecbf48d0423a5c30710e7d9a942226af914e0be7052b47d11919ffedcd565366
+size 1146878
diff --git a/normalizingflowswithmultiscaleautoregressivepriors/full.md b/normalizingflowswithmultiscaleautoregressivepriors/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..d55e109332793732a32262c7e92218ad92769a55
--- /dev/null
+++ b/normalizingflowswithmultiscaleautoregressivepriors/full.md
@@ -0,0 +1,307 @@
+# Normalizing Flows with Multi-Scale Autoregressive Priors
+
+Apratim Bhattacharyya\*1 Shweta Mahajan\*2 Mario Fritz3 Bernt Schiele1 Stefan Roth2
+
+1Max Planck Institute for Informatics, Saarland Informatics Campus
+
+$^{2}$ Department of Computer Science, TU Darmstadt
+
+$^{3}$ CISPA Helmholtz Center for Information Security, Saarland Informatics Campus
+
+# Abstract
+
+Flow-based generative models are an important class of exact inference models that admit efficient inference and sampling for image synthesis. Owing to the efficiency constraints on the design of the flow layers, e.g. split coupling flow layers in which approximately half the pixels do not undergo further transformations, they have limited expressiveness for modeling long-range data dependencies compared to autoregressive models that rely on conditional pixel-wise generation. In this work, we improve the representational power of flow-based models by introducing channel-wise dependencies in their latent space through multi-scale autoregressive priors (mAR). Our mAR prior for models with split coupling flow layers (mAR-SCF) can better capture dependencies in complex multimodal data. The resulting model achieves state-of-the-art density estimation results on MNIST, CIFAR-10, and ImageNet. Furthermore, we show that mAR-SCF allows for improved image generation quality, with gains in FID and Inception scores compared to state-of-the-art flow-based models.
+
+# 1. Introduction
+
+Deep generative models aim to learn complex dependencies within very high-dimensional input data, e.g. natural images [3, 28] or audio data [7], and enable generating new samples that are representative of the true data distribution. These generative models find application in various downstream tasks like image synthesis [11, 20, 38] or speech synthesis [7, 39]. Since it is not feasible to learn the exact distribution, generative models generally approximate the underlying true distribution. Popular generative models for capturing complex data distributions are Generative Adversarial Networks (GANs) [11], which model the distribution implicitly and generate (high-dimensional) samples by transforming a noise distribution into the desired space with complex dependencies; however, they may not cover
+
+
+Figure 1. Our $mAR-SCF$ model combines normalizing flows with autoregressive $(\mathrm{AR})_2$ priors to improve modeling power while ensuring that the computational cost grows linearly with the spatial image resolution $N \times \bar{N}$ .
+
+all modes of the underlying data distribution. Variational Autoencoders (VAEs) [20] optimize a lower bound on the log-likelihood of the data. This implies that VAEs can only approximately optimize the log-likelihood [30].
+
+Autoregressive models [10, 37, 38] and normalizing flow-based generative models [8, 9, 18] are exact inference models that optimize the exact log-likelihood of the data. Autoregressive models can capture complex and long-range dependencies between the dimensions of a distribution, e.g. in case of images, as the value of a pixel is conditioned on a large context of neighboring pixels. The main limitation of this approach is that image synthesis is sequential and thus difficult to parallelize. Recently proposed normalizing flow-based models, such as NICE [8], RealNVP [9], and Glow [18], allow exact inference by mapping the input data to a known base distribution, e.g. a Gaussian, through a series of invertible transformations. These models leverage invertible split coupling flow (SCF) layers in which certain dimensions are left unchanged by the invertible transformation as well as SPLIT operations following which certain dimensions do not undergo subsequent transformations. This allows for considerably easier parallelization of both inference and generation processes. However, these models lag behind autoregressive models for density estimation.
+
+In this work, we (i) propose multi-scale autoregressive priors for invertible flow models with split coupling flow layers, termed $mAR-SCF$ , to address the limited modeling power of non-autoregressive invertible flow models [9, 14, 18, 28] (Fig. 1); (ii) we apply our multi-scale autoregressive prior after every SPLIT operation such that the computational cost of sampling grows linearly in the spatial dimensions of the image compared to the quadratic cost of traditional autoregressive models (given sufficient parallel resources); (iii) our experiments show that we achieve state-of-the-art density estimation results on MNIST [22], CIFAR10 [21], and ImageNet [31] compared to prior invertible flow-based approaches; and finally (iv) we show that our multi-scale autoregressive prior leads to better sample quality as measured by the FID metric [13] and the Inception score [32], significantly lowering the gap to GAN approaches [27, 40].
+
+# 2. Related Work
+
+In this work, we combine the expressiveness of autoregressive models with the efficiency of non-autoregressive flow-based models for exact inference.
+
+Autoregressive models [6, 10, 12, 15, 26, 37, 38] are a class of exact inference models that factorize the joint probability distribution over the input space as a product of conditional distributions, where each dimension is conditioned on the previous ones in a pre-defined order. Recent autoregressive models, such as PixelCNN and PixelRNN [37, 38], can generate high-quality images but are difficult to parallelize since synthesis is sequential. It is worth noting that autoregressive image models, such as that of Domke et al. [10], significantly pre-date their recent popularity. Various extensions have been proposed to improve the performance of the PixelCNN model. For example, Multiscale-PixelCNN [29] extends PixelCNN to improve the sampling runtime from linear to logarithmic in the number of pixels, exploiting conditional independence between the pixels. Chen et al. [6] introduce self-attention in PixelCNN models to improve the modeling power. Salimans et al. [33] introduce skip connections and a discrete logistic likelihood model. WaveRNN [17] leverages customized GPU kernels to improve the sampling speed for audio synthesis. Menick et al. [23] synthesize images by sequential conditioning on sub-images within an image. These methods, however, still suffer from slow sampling speed and are difficult to parallelize.
+
+Flow-based generative models, first introduced in [8], also allow for exact inference. These models are composed of a series of invertible transformations, each with a tractable Jacobian and inverse, which maps the input distribution to a known base density, e.g. a Gaussian. Papamakarios et al. [25] proposed autoregressive invertible transformations using masked decoders. However, these are difficult to parallelize just like PixelCNN-based approaches. Kingma et
+
+al. [19] propose inverse autoregressive flow (IAF), where the means and variances of pixels depend on random variables and not on previous pixels, making it easier to parallelize. However, the approach offers limited generalization [39].
+
+Recent extensions. Recent work [1, 9, 18] extends normalizing flows [8] to multi-scale architectures with split couplings, which allow for efficient inference and sampling. For example, Kingma et al. [18] introduce additional invertible $1 \times 1$ convolutions to capture non-linearities in the data distribution. Hoogeboom et al. [16] extend this to $d \times d$ convolutions, increasing the receptive field. [4] improve the residual blocks of flow layers with memory efficient gradients based on the choice of activation functions. A key advantage of flow-based generative models is that they can be parallelized for inference and synthesis. Ho et al. [14] propose Flow++ with various modifications in the architecture of the flows in [9], including attention and a variational quantization method to improve the data likelihood. The resulting model is computationally expensive as non-linearities are applied along all the dimensions of the data at every step of the flow, i.e., all the dimensions are instantiated with the prior distribution at the last layer of the flow. While comparatively efficient, such flow-based models have limited expressiveness compared to autoregressive models, which is reflected in their lower data log-likelihood. It is thus desirable to develop models that have the expressiveness of autoregressive models and the efficiency of flow-based models. This is our goal here.
+
+Methods with complex priors. Recent work [5] develops complex priors to improve the data likelihoods. VQ-VAE2 integrates autoregressive models as priors [28] with discrete latent variables [5] for high-quality image synthesis and proposes latent graph-based models in a VAE framework. Tomczak et al. [36] propose mixtures of Gaussians with predefined clusters, and [5] use neural autoregressive model priors in the latent space, which improves results for image synthesis. Ziegler et al. [41] learn a prior based on normalizing flows to capture multimodal discrete distributions of character-level texts in the latent spaces with nonlinear flow layers. However, this invertible layer is difficult to be optimized in both directions. Moreover, these models do not allow for exact inference. In this work, we propose complex autoregressive priors to improve the power of invertible split coupling-based normalizing flows [9, 14, 18].
+
+# 3. Overview and Background
+
+In this work, we propose multi-scale autoregressive priors for split coupling-based flow models, termed mAR-SCF, where we leverage autoregressive models to improve the modeling flexibility of invertible normalizing flow models without sacrificing sampling efficiency. As we build upon normalizing flows and autoregressive models, we first provide an overview of both.
+
+
+(a) Generative model for mAR-SCF.
+
+
+(b) SCF flow with mAR prior.
+Figure 2. Flow-based generative models with multi-scale autoregressive priors (mAR-SCF). The generative model (left) shows the multi-scale autoregressive sampling of the channel dimensions of $\mathbf{l}_i$ at each level. The spatial dimensions of each channel are sampled in parallel. $\mathbf{r}_i$ are computed with invertable transformations. The mAR-SCF model (right) shows the complete multi-scale architecture with the mAR prior applied along the channels of $\mathbf{l}_i$ , i.e. at each level $i$ after the SPLIT operation.
+
+Normalizing flows. Normalizing flows [8] are a class of exact inference generative models. Here, we consider invertible flows, which allow for both efficient exact inference and sampling. Specifically, invertible flows consist of a sequence of $n$ invertible functions $f_{\theta_i}$ , which transform a density on the data $\mathbf{x}$ to a density on latent variables $\mathbf{z}$ ,
+
+$$
+\mathbf {x} \stackrel {f _ {\theta_ {1}}} {\longleftrightarrow} \mathbf {h} _ {1} \stackrel {f _ {\theta_ {2}}} {\longleftrightarrow} \mathbf {h} _ {2} \dots \stackrel {f _ {\theta_ {n}}} {\longleftrightarrow} \mathbf {z}. \tag {1}
+$$
+
+Given that we can compute the likelihood of $p(\mathbf{z})$ , the likelihood of the data $\mathbf{x}$ under the transformation $f$ can be computed using the change of variables formula,
+
+$$
+\log p _ {\theta} (\mathbf {x}) = \log p (\mathbf {z}) + \sum_ {i = 1} ^ {n} \log | \det J _ {\theta_ {i}} |, \tag {2}
+$$
+
+where $J_{\theta_i} = \partial \mathbf{h}_i / \partial \mathbf{h}_{i - 1}$ is the Jacobian of the invertible transformation $f_{\theta_i}$ going from $\mathbf{h}_{i - 1}$ to $\mathbf{h}_i$ with $\mathbf{h}_0\equiv \mathbf{x}$ . Note that most prior work [4, 8, 9, 14, 18] considers i.i.d. Gaussian likelihood models of $\mathbf{z}$ , e.g. $p(\mathbf{z}) = \mathcal{N}(\mathbf{z}|\mu ,\sigma)$ .
+
+These models, however, have limitations. First, the requirement of invertibility constrains the class of functions $f_{\theta_i}$ to be monotonically increasing (or decreasing), thus limiting expressiveness. Second, of the three possible variants of $f_{\theta_i}$ to date [41], MAF (masked autoregressive flows), IAF (inverse autoregressive flows), and SCF (split coupling flows), MAFs are difficult to parallelize due to sequential dependencies between dimensions and IAFs do not perform well in practice. SCFs strike the right balance with respect to parallelization and modeling power. In detail, SCFs partition the dimensions into two equal halves and transform one of
+
+the halves $\mathbf{r}_i$ conditioned on $\mathbf{l}_i$ , leaving $\mathbf{l}_i$ unchanged and thus not introducing any sequential dependencies (making parallelization easier). Examples of SCFs include the affine couplings of RealNVP [9] and MixLogCDF couplings of Flow++ [14].
+
+In practice, SCFs are organized into blocks [8, 9, 18] to maximize efficiency such that each $f_{\theta_i}$ typically consists of SQUEEZE, STEPOFFLOW, and SPLIT operations. SQUEEZE trades off spatial resolution for channel depth. Suppose an intermediate layer $\mathbf{h}_i$ is of size $[\mathrm{C}_i, \mathrm{N}_i, \mathrm{N}_i]$ , then the SQUEEZE operation transforms it into size $[4\mathrm{C}_i, \mathrm{N}_i / 2, \mathrm{N}_i / 2]$ by reshaping $2 \times 2$ neighborhoods into 4 channels. STEPOFFLOW is a series of SCF (possibly several) coupling layers and invertible $1 \times 1$ convolutions [8, 9, 18].
+
+The SPLIT operation (distinct from the split couplings) splits an intermediate layer $\mathbf{h}_i$ into two halves $\{\mathbf{l}_i, \mathbf{r}_i\}$ of size $[2C_i, N_i / 2, N_i / 2]$ each. Subsequent invertible layers $f_{\theta j > i}$ operate only on $\mathbf{r}_i$ , leaving $\mathbf{l}_i$ unchanged. In other words, the SPLIT operation fixes some dimensions of the latent representation $\mathbf{z}$ to $\mathbf{l}_i$ as they are not transformed any further. This leads to a significant reduction in the amount of computation and memory needed. In the following, we denote the spatial resolutions at the $n$ different levels as $\mathrm{N} = \{\mathrm{N}_0, \dots, \mathrm{N}_n\}$ , with $N = \mathrm{N}_0$ being the input resolution. Similarly, $\mathrm{C} = \{\mathrm{C}_0, \dots, \mathrm{C}_n\}$ denotes the number of feature channels, with $C = \mathrm{C}_0$ being the number of input channels.
+
+In practice, due to limited modeling flexibility, prior SCF-based models [9, 14, 18] require many SCF coupling layers in $f_{\theta_i}$ to model complex distributions, e.g. images. This in turn leads to high memory requirements and also leads to less efficient sampling procedures.
+
+Autoregressive models. Autoregressive generative models are another class of powerful and highly flexible exact inference models. They factorize complex target distributions by decomposing them into a product of conditional distributions, e.g. images with $N \times N$ spatial resolution as $p(\mathbf{x}) = \prod_{i=1}^{N} \prod_{j=1}^{N} p(\mathbf{x}_{i,j} | \mathbf{x}_{\mathrm{pred}(i,j)})$ [10, 12, 25, 37, 38]. Here, $\mathrm{pred}(i,j)$ denotes the set of predecessors of pixel $(i,j)$ . The functional form of these conditionals can be highly flexible, and allows such models to capture complex multimodal distributions. However, such a dependency structure only allows for image synthesis via ancestral sampling by generating each pixel sequentially, conditioned on the previous pixels [37, 38], making parallelization difficult. This is also inefficient since autoregressive models, including PixelCNN and PixelRNN, require $\mathcal{O}(N^2)$ time steps for sampling.
+
+# 4. Multi-scale Autoregressive Flow Priors
+
+We propose to leverage the strengths of autoregressive models to improve invertible normalizing flow models such as [9, 18]. Specifically, we propose novel multi-scale autoregressive priors for split coupling flows (mAR-SCF). Using them allows us to learn complex multimodal latent priors $p(\mathbf{z})$ in multi-scale SCF models, cf. Eq. (2). This is unlike [9, 14, 18, 28], which rely on Gaussian priors in the latent space. Additionally, we also propose a scheme for interpolation in the latent space of our mAR-SCF models.
+
+The use of our novel autoregressive $mAR$ priors for invertible flow models has two distinct advantages over both vanilla SCF and autoregressive models. First, the powerful autoregressive prior helps mitigate the limited modeling capacity of the vanilla SCF flow models. Second, as only the prior is autoregressive, this makes flow models with our $mAR$ prior an order of magnitude faster with respect to sampling time than fully autoregressive models. Next, we describe our multi-scale autoregressive prior in detail.
+
+Our $mAR-SCF$ model uses an efficient invertible split coupling flow $f_{\theta_i}(\mathbf{x})$ to map the distribution over the data $\mathbf{x}$ to a latent variable $\mathbf{z}$ and then models an autoregressive $mAR$ prior over $\mathbf{z}$ , parameterized by $\phi$ . The likelihood of a data point $\mathbf{x}$ of dimensionality $[C, N, N]$ can be expressed as
+
+$$
+\log p _ {\theta , \phi} (\mathbf {x}) = \log p _ {\phi} (\mathbf {z}) + \sum_ {i = 1} ^ {n} \log | \det J _ {\theta_ {i}} |. \tag {3}
+$$
+
+Here, $J_{\theta_i}$ is the Jacobian of the invertible transformations $f_{\theta_i}$ . Note that, as $f_{\theta_i}(\mathbf{x})$ is an invertible function, $\mathbf{z}$ has the same total dimensionality as the input data point $\mathbf{x}$ .
+
+Formulation of the $mAR$ prior. We now introduce our $mAR$ prior $p_{\phi}(\mathbf{z})$ along with our $mAR-SCF$ model, which combines the split coupling flows $f_{\theta_i}$ with an $mAR$ prior. As shown in Fig. 2, our $mAR$ prior is applied after every SPLIT operation of the invertible flow layers as well as at the smallest spatial resolution. Let $\mathbf{l}_i = \{\mathbf{l}_i^1, \dots, \mathbf{l}_i^{\mathrm{C}_i}\}$ be the $\mathbf{C}_i$
+
+channels of size $\left[\mathbf{C}_i,\mathbf{N}_i,\mathbf{N}_i\right]$ , which do not undergo further transformation $f_{\theta_i}$ after the SPLIT at level $i$ . Following the SPLIT at level $i$ , our $mAR$ prior is modeled as a conditional distribution, $p_{\phi}(\mathbf{l}_i|\mathbf{r}_i)$ ; at the coarsest spatial resolution it is an unconditional distribution, $p_{\phi}(\mathbf{h}_n)$ . Thereby, we assume that our $mAR$ prior at each level $i$ autoregressively factorizes along the channel dimension as
+
+$$
+p _ {\phi} \left(\mathbf {l} _ {i} \mid \mathbf {r} _ {i}\right) = \prod_ {j = 1} ^ {\mathrm {C} _ {i}} p _ {\phi} \left(\mathbf {l} _ {i} ^ {j} \mid \mathbf {l} _ {i} ^ {1}, \dots , \mathbf {l} _ {i} ^ {j - 1}, \mathbf {r} _ {i}\right). \tag {4}
+$$
+
+Furthermore, the distribution at each spatial location $(m,n)$ within a channel $\mathbf{l}_i^j$ is modeled as a conditional Gaussian,
+
+$$
+p _ {\phi} \left(l _ {i (m, n)} ^ {j} \mid \mathbf {l} _ {i} ^ {1}, \dots , \mathbf {l} _ {i} ^ {j - 1}, \mathbf {r} _ {i}\right) = \mathcal {N} \left(\mu_ {i (m, n)} ^ {j}, \sigma_ {i (m, n)} ^ {j}\right). \tag {5}
+$$
+
+Thus, the mean, $\mu_{i(m,n)}^j$ and variance, $\sigma_{i(m,n)}^j$ at each spatial location are autoregressively modeled along the channels. This allows the distribution at each spatial location to be highly flexible and capture multimodality in the latent space. Moreover from Eq. (4), our $mAR$ prior can model long-range correlations in the latent space as the distribution of each channel is dependent on all previous channels.
+
+This autoregressive factorization allows us to employ Conv-LSTMs [34] to model the distributions $p_{\phi}(\mathbf{l}_i^j | \mathbf{l}_i^1, \dots, \mathbf{l}_i^{j-1}, \mathbf{r}_i)$ and $p_{\phi}(\mathbf{h}_n)$ . Conv-LSTMs can model long-range dependencies across channels in their internal state. Additionally, long-range spatial dependencies within channels can be modeled by stacking multiple ConvLSTM layers with a wide receptive field. This formulation allows all pixels within a channel to be sampled in parallel, while the channels are sampled in a sequential manner,
+
+$$
+\hat {\mathbf {l}} _ {i} ^ {j} \sim p _ {\phi} \left(\mathbf {l} _ {i} ^ {j} \mid \mathbf {l} _ {i} ^ {1}, \dots , \mathbf {l} _ {i} ^ {j - 1}, \mathbf {r} _ {i}\right). \tag {6}
+$$
+
+This is in contrast to PixelCNN/RNN-based models, which sample one pixel at a time.
+
+The mAR-SCF model. We illustrate our mAR-SCF model architecture in Fig. 2b. Our mAR-SCF model leverages the SQUEEZE and SPLIT operations for invertible flows introduced in [8, 9] for efficient parallelization. Following [8, 9, 18], we use several SQUEEZE and SPLIT operations in a multi-scale setup at $n$ scales (Fig. 2b) until the spatial resolution at $\mathbf{h}_n$ is reasonably small, typically $4 \times 4$ . Note that there is no SPLIT operation at the smallest spatial resolution. Therefore, the latent space is the concatenation of $\mathbf{z} = \{\mathbf{l}_1, \dots, \mathbf{l}_{n-1}, \mathbf{h}_n\}$ . The split coupling flows (SCF) $f_{\theta_i}$ in the mAR-SCF model remain invertible by construction. We consider different SCF couplings for $f_{\theta_i}$ , including the affine couplings of [9, 18] and MixLogCDF couplings [14].
+
+Given the parameters $\phi$ of our multimodal $mAR$ prior modeled by the Conv-LSTMs, we can compute $p_{\phi}(\mathbf{z})$ using the formulation in Eqs. (4) and (5). We can thus express
+
+Algorithm 1: MARPS: Multi-scale Autoregressive Prior Sampling for our mAR-SCF models
+1 Sample $\hat{\mathbf{h}}_n\sim p_\phi (\mathbf{h}_n)$ .
+2 for $i\gets n - 1$ to 1 do /\*SPLITINVERSE \*/
+3 $\hat{\mathbf{r}}_i\gets \hat{\mathbf{h}}_{i + 1}$ // Assign previous
+4 $\hat{\mathbf{l}}_i\sim p_\phi (\mathbf{l}_i|\mathbf{r}_i)$ //Sample mAR prior
+5 $\hat{\mathbf{h}}_i\gets \left\{\hat{\mathbf{l}}_i,\hat{\mathbf{r}}_i\right\} ;$ // Concatenate /\*STEPOFFLOWINVERSE \*/
+6 Apply $f_{i}^{-1}(\hat{h}_{i})$ //SCF coupling /\* SQUEEZEINVERSE \*/
+7 Reshape $\hat{\mathbf{h}}_i$ //Depth to Space
+8 end
+9 x- $\hat{\mathbf{h}}_1$
+
+Eq. (3) in closed form and directly maximize the likelihood of the data under the multimodal $mAR$ prior distribution learned by the Conv-LSTMs.
+
+Next, we show that the computational cost of our mAR-SCF model is $\mathcal{O}(N)$ for sampling an image of size $[C,N,N]$ ; this is in contrast to the standard $\mathcal{O}(N^2)$ computational cost required by purely autoregressive models.
+
+Analysis of sampling time. We now formally analyze the computational cost in the number of steps $T$ required for sampling with our mAR-SCF model. First, we describe the sampling process in detail in Algorithm 1 (the forward training process follows the sampling process in reverse order). Next, we derive the worst-case number of steps $T$ required by MARPS, given sufficient parallel resources to sample a channel in parallel. Here, the number of steps $T$ can be seen as the length of the critical path while sampling.
+
+Lemma 4.1. Let the sampled image $\mathbf{x}$ be of resolution $[C, N, N]$ , then the worst-case number of steps $T$ (length of the critical path) required by MARPS is $\mathcal{O}(N)$ .
+
+Proof. At the first sampling step (Fig. 2a) at layer $f_{\theta_n}$ , our $mAR$ prior is applied to generate $\mathbf{h}_n$ , which is of shape $[2^{n + 1}C,N / 2^n,N / 2^n]$ . Therefore, the number of sequential steps required at the last flow layer $\mathbf{h}_n$ is
+
+$$
+T _ {n} = C \cdot 2 ^ {n + 1}. \tag {7}
+$$
+
+Here, we are assuming that each channel can be sampled in parallel in one time-step.
+
+From $f_{\theta_{n-1}}$ to $f_{\theta_1}$ , $f_{\theta_i}$ always contains a SPLIT operation. Therefore, at each $f_{\theta_i}$ we use our mAR prior to sample $\mathbf{l}_i$ which has shape $[2^i C, N/2^i, N/2^i]$ . Therefore, the number of sequential steps required for sampling at layers $\mathbf{h}_i$ , $1 \leq i < n$ of our mAR-SCF model is
+
+$$
+T _ {i} = C \cdot 2 ^ {i}. \tag {8}
+$$
+
+Therefore, the total number of sequential steps (length of the critical path) required for sampling is
+
+$$
+\begin{array}{l} T = T _ {n} + T _ {n - 1} + \dots + T _ {i} + \dots + T _ {1} \\ = C \cdot \left(2 ^ {n + 1} + 2 ^ {n - 1} + \dots + 2 ^ {i} + \dots + 2 ^ {1}\right) \tag {9} \\ = C \cdot \left(3 \cdot 2 ^ {n} - 2\right). \\ \end{array}
+$$
+
+Now, the total number of layers in our $mAR-SCF$ model is $n \leq \log(N)$ . This is because each layer reduces the spatial resolution by a factor of two. Therefore, the total number of time-steps required is
+
+$$
+T \leq 3 \cdot C \cdot N. \tag {10}
+$$
+
+In practice, $C \ll N$ , with $C = \mathrm{C}_0 = 3$ for RGB images. Therefore, the total number of sequential steps required for sampling in our mAR-SCF model is $T = \mathcal{O}(N)$ .
+
+It follows that with our multi-scale autoregressive $mAR$ priors in our $mAR-SCF$ model, sampling can be performed in a linear number of time-steps in contrast to fully autoregressive models like PixelCNN, which require a quadratic number of time-steps [38].
+
+Interpolation. A major advantage of invertible flow-based models is that they allow for latent spaces, which are useful for downstream tasks like interpolation – smoothly transforming one data point into another. Interpolation is simple in case of typical invertible flow-based models, because the latent space is modeled as a unimodal i.i.d. Gaussian. To allow interpolation in the space of our multimodal $mAR$ priors, we develop a simple method based on [2].
+
+Let $\mathbf{x}_{\mathrm{A}}$ and $\mathbf{x}_{\mathrm{B}}$ be the two images (points) to be interpolated and $\mathbf{z}_{\mathrm{A}}$ and $\mathbf{z}_{\mathrm{B}}$ be the corresponding points in the latent space. We begin with an initial linear interpolation between the two latent points, $\{\mathbf{z}_{\mathrm{A}},\mathbf{z}_{\mathrm{A,B}}^{1},\dots ,\mathbf{z}_{\mathrm{A,B}}^{k},\mathbf{z}_{\mathrm{B}}\}$ , such that, $\mathbf{z}_{\mathrm{A,B}}^i = (1 - \alpha^i)\mathbf{z}_{\mathrm{A}} + \alpha^i\mathbf{z}_{\mathrm{B}}$ . The initial linearly interpolated points $\mathbf{z}_{\mathrm{A,B}}^i$ may not lie in a high-density region under our multimodal prior, leading to non-smooth transformations. Therefore, we next project the interpolated points $\mathbf{z}_{\mathrm{A,B}}^i$ to a high-density region, without deviating too much from their initial position. This is possible because our $mAR$ prior allows for exact inference. However, the image corresponding to the projected $\bar{\mathbf{z}}_{\mathrm{A,B}}^i$ must also not deviate too far from either $\mathbf{x}_{\mathrm{A}}$ and $\mathbf{x}_{\mathrm{B}}$ either to allow for smooth transitions. To that end, we define the projection operation as
+
+$$
+\begin{array}{l} \bar {\mathbf {z}} _ {\mathrm {A}, \mathrm {B}} ^ {i} = \arg \min \left(\left\| \bar {\mathbf {z}} _ {\mathrm {A}, \mathrm {B}} ^ {i} - \mathbf {z} _ {\mathrm {A}, \mathrm {B}} ^ {i} \right\| - \lambda_ {1} \log p _ {\phi} \left(\bar {\mathbf {z}} _ {\mathrm {A}, \mathrm {B}} ^ {i}\right) \right. \tag {11} \\ \left. + \lambda_ {2} \min \left(\left\| f ^ {- 1} \left(\bar {\mathbf {z}} _ {\mathrm {A}, \mathrm {B}} ^ {i}\right) - \mathbf {x} _ {\mathrm {A}} \right\|, \left\| f ^ {- 1} \left(\bar {\mathbf {z}} _ {\mathrm {A}, \mathrm {B}} ^ {i}\right) - \mathbf {x} _ {\mathrm {B}} \right\|\right)\right), \\ \end{array}
+$$
+
+where $\lambda_1, \lambda_2$ are the regularization parameters. The term controlled by $\lambda_1$ pulls the interpolated $\mathbf{z}_{\mathrm{A,B}}^i$ back to high-density regions, while the term controlled by $\lambda_2$ keeps the result close to the two images $\mathbf{x}_{\mathrm{A}}$ and $\mathbf{x}_{\mathrm{B}}$ . Note that this reduces to linear interpolation when $\lambda_1 = \lambda_2 = 0$ .
+
+| Method | Coupling | MNIST | CIFAR10 |
| Levels | |SCF| | Channels | bits/dim (↓) | Levels | |SCF| | Channels | bits/dim (↓) |
| PixelCNN [38] | Autoregressive | - | - | - | - | - | - | - | 3.00 |
| PixelCNN++ [37] | Autoregressive | - | - | - | - | - | - | - | 2.92 |
| Glow [18] | Affine | 3 | 32 | 512 | 1.05 | 3 | 32 | 512 | 3.35 |
| Flow++ [14] | MixLogCDF | - | - | - | - | 3 | - | 96 | 3.29 |
| Residual Flow [4] | Residual | 3 | 16 | - | 0.97 | 3 | 16 | - | 3.28 |
| mAR-SCF (Ours) | Affine | 3 | 32 | 256 | 1.04 | 3 | 32 | 256 | 3.33 |
| mAR-SCF (Ours) | Affine | 3 | 32 | 512 | 1.03 | 3 | 32 | 512 | 3.31 |
| mAR-SCF (Ours) | MixLogCDF | 3 | 4 | 96 | 0.88 | 3 | 4 | 96 | 3.27 |
| mAR-SCF (Ours) | MixLogCDF | - | - | - | - | 3 | 4 | 256 | 3.24 |
+
+Table 1. Evaluation of our mAR-SCF model on MNIST and CIFAR10 (using uniform dequantization for fair comparison with [4, 18]).
+
+# 5. Experiments
+
+We evaluate our approach on the MNIST [22], CIFAR10 [21], and ImageNet [38] datasets. In comparison to datasets like CelebA, CIFAR10 and ImageNet are highly multimodal and the performance of invertible SCF models has lagged behind autoregressive models in density estimation and behind GAN-based generative models regarding image quality.
+
+# 5.1. MNIST and CIFAR10
+
+Architecture details. Our $mAR$ prior at each level $f_{\theta_i}$ consists of three convolutional LSTM layers, each of which uses 32 convolutional filters to compute the input-to-state and state-to-state components. Keeping the $mAR$ prior architecture constant, we experiment with different SCF couplings in $f_{\theta_i}$ to highlight the effectiveness of our $mAR$ prior. We experiment with affine couplings of [9, 18] and MixLogCDF couplings [14]. Affine couplings have limited modeling flexibility. The more expressive MixLogCDF applies the cumulative distribution function of a mixture of logistics. In the following, we include experiments varying the number of channels in the convolutional blocks of the neural networks used to predict the affine/MixLogCDF transformation parameters.
+
+Hyperparameters. We use Adamax (as in [18]) with a learning rate of $8 \times 10^{-4}$ . We use a batch size of 128 with affine and 64 with MixLogCDF couplings (following [14]).
+
+Density estimation. We report density estimation results on MNIST and CIFAR10 in Table 1 using the per-pixel log-likelihood metric in bits/dim. We also include the architecture details (# of levels, coupling type, # of channels). We compare to the state-of-the-art Flow++ [14] method with SCF couplings and Residual Flows [4]. Note that in terms of architecture, our mAR-SCF model with affine couplings is closest to that of Glow [18]. Therefore, the comparison with Glow serves as an ideal ablation to assess the effectiveness of our mAR prior. Flow++ [14], on the other hand, uses the more powerful MixLogCDF transformations and their model architecture does not include SPLIT operations. Be
+
+cause of this, Flow++ has higher computational and memory requirements for a given batch size compared to Glow. Furthermore, for fair comparison with Glow [18] and Residual flows [4], we use uniform dequantization unlike Flow++, which proposes to use variational dequantization.
+
+In comparison to Glow, we achieve improved density estimation results on both MNIST and CIFAR10. In detail, we outperform Glow (e.g. 1.05 vs. 1.04 bits/dim on MNIST and 3.35 vs. 3.33 bits/dim on CIFAR10) with $|\mathrm{SCF}| = 32$ affine couplings and 3 levels, while using parameter prediction networks with only half (256 vs. 512) the number of channels. We observe that increasing the capacity of our parameter prediction networks to 512 channels boosts the log-likelihood further to 1.03 bits/dim on MNIST and 3.31 bits/dim on CIFAR10. As this setting with 512 channels is identical to setting reported in [18], this shows that our mAR prior boosts the accuracy by $\sim 0.04$ bits/dim in case of CIFAR10. To place this performance gain in context, it is competitive with the $\sim 0.03$ bits/dim boost reported in [18] (cf. Fig. 3 in [18]) with the introduction of the $1\times 1$ convolution. We train our model for $\sim 3000$ epochs, similar to [18]. Also note that we only require a batch size of 128 to achieve state-of-the-art likelihoods, whereas Glow uses batches of size 512. Thus our mAR-SCF model improves density estimates and requires significantly lower computational resources ( $\sim 48$ vs. $\sim 128$ GB memory). Overall, we also observe competitive sampling speed (see also Table 2). This firmly establishes the utility of our mAR-SCF model.
+
+For fair comparison with Flow++ [14] and Residual Flows [4], we employ the more powerful MixLogCDF couplings. Our mAR-SCF model uses 4 MixLogCDF couplings at each level with 96 channels but includes SPLIT operations unlike Flow++. Here, we outperform Flow++ and Residual Flows (3.27 vs. 3.29 and 3.28 bits/dim on CIFAR10) while being equally fast to sample as Flow++ (Table 2). A baseline model without our mAR prior has performance comparable to Flow++ (3.29 bits/dim). Similarly on MNIST, our mAR-SCF model again outperforms Residual Flows (0.88 vs. 0.97 bits/dim). Finally, we train a more powerful mAR-SCF
+
+
+(a) Residual Flows [4] (3.28 bits/dim, 46.3 FID)
+
+
+(c) Our mMAR-SCF Affine (3.31 bits/dim, 41.0 FID)
+
+
+(b) Flow++ with variational dequantization [14] (3.08 bits/dim)
+
+
+(d) Our mMAR-SCF MixLogCDF (3.24 bits/dim, 41.9 FID)
+Figure 3. Comparison of random samples from our $mAR-SCF$ model with state-of-the-art models.
+
+model with 256 channels with sampling speed competitive with [4], which achieves state-of-the-art 3.24 bits/dim on CIFAR10. This is attained after $\sim 400$ training epochs (comparable to $\sim 350$ epochs required by [4] to achieve 3.28 bits/dim). Next, we compare the sampling speed of our mAR-SCF model with that of Flow++ and Residual Flow.
+
+Sampling speed. We report the sampling speed of our mAR-SCF model in Table 2 in terms of sampling one image on CIFAR10. We report the average over 1000 runs using a batch size of 32. We performed all tests on a single Nvidia V100 GPU with 32GB of memory. First, note that our mAR-SCF model with affine coupling layers in 3 levels with 512 channels needs 17 ms on average to sample an image. This is comparable with Glow, which requires 13 ms. This shows
+
+| Method | Coupling | Levels | |SCF| | Ch. | Speed (ms, ↓) |
| Glow [18] | Affine | 3 | 32 | 512 | 13 |
| Flow++ [14] | MixLogCDF | 3 | - | 96 | 19 |
| Residual Flow [4] | Residual | 3 | 16 | - | 34 |
| PixelCNN++ [33] | Autoregressive | - | - | - | 5 × 103 |
| mAR-SCF (Ours) | Affine | 3 | 32 | 256 | 6 |
| mAR-SCF (Ours) | Affine | 3 | 32 | 512 | 17 |
| mAR-SCF (Ours) | MixLogCDF | 3 | 4 | 96 | 19 |
| mAR-SCF (Ours) | MixLogCDF | 3 | 4 | 256 | 32 |
+
+Table 2. Evaluation of sampling speed with batches of size 32.
+
+
+Figure 4. Interpolations of our mAR-SCF model on CIFAR10.
+
+that our $mAR$ prior causes only a slight increase in sampling time – particularly because our $mAR-SCF$ requires only $\mathcal{O}(N)$ steps to sample and the prior has far fewer parameters compared to the invertible flow network. Moreover, our $mAR-SCF$ model with affine coupling layers with 256 channels is considerably faster (6 vs. 13 ms) with an accuracy advantage. Similarly, our $mAR-SCF$ with MixLogCDF and 96 channels is competitive in speed with [14] with an accuracy advantage and considerably faster than [4] (19 vs. 34 ms). This is because Residual Flows are slower to invert (sample) as there is no closed-form expression of the inverse. Furthermore, our $mAR-SCF$ with MixLogCDF and 256 channels is competitive with respect to [4] in terms of sampling speed while having a large accuracy advantage. Finally, note that these sampling speeds are two orders of magnitude faster than state-of-the-art fully autoregressive approaches, e.g. PixelCNN++ [33].
+
+Sample quality. Next, we analyze the sample quality of our mAR-SCF model in Table 3 using the FID metric [13]
+
+
+
+
+(a) Residual Flows [4] (3.75 bits/dim)
+(b) Our mMAR-SCF (Affine, 3.80 bits/dim)
+Figure 5. Random samples on ImageNet $(64\times 64)$
+
+and Inception scores [32]. The analysis of sample quality is important as it is well-known that visual fidelity and test log-likelihoods are not necessarily indicative of each other [35]. We achieve an FID of 41.0 and an Inception score of 5.7 with our mAR-SCF model with affine couplings, significantly better than Glow with the same specifications and Residual Flows. While our mAR-SCF model with MixLogCDF couplings also performs comparably, empirically we find affine couplings to lead to better image quality as in [4]. We show random samples from our mAR-SCF model with both affine and MixLogCDF couplings in Fig. 3. Here, we compare to the version of Flow++ with MixLogCDF couplings and variational dequantization (which gives even better log-likelihoods) and Residual Flows. Our mAR-SCF model achieves better sample quality with more clearly defined objects. Furthermore, we also obtain improved sample quality over both PixelCNN and PixelIQN and close the gap in comparison to adversarial approaches like DCGAN [27] and WGAN-GP [40]. This highlights that our mAR-SCF model is able to better capture long-range correlations.
+
+Interpolation. We show interpolations on CIFAR10 in Fig. 4, obtained using Eq. (11). We observe smooth interpolation between images belonging to distinct classes. This shows that the latent space of our $mAR$ prior can be potentially used for downstream tasks similarly to Glow [18]. We include additional analyses in the supplementary material.
+
+# 5.2. ImageNet
+
+Finally, we evaluate our mAR-SCF model on ImageNet $(32\times 32$ and $64\times 64)$ against the best performing models on MNIST and CIFAR10 in Table 4, i.e. Glow [18] and Residual Flows [4]. Our model with affine couplings outperforms
+
+| Method | Coupling | FID (↓) | Inception Score (↑) |
| PixelCNN [38] | Autoregressive | 65.9 | 4.6 |
| PixelIQN [24] | Autoregressive | 49.4 | - |
| Glow [18] | Affine | 46.9 | - |
| Residual Flow [4] | Residual | 46.3 | 5.2 |
| mAR-SCF (Ours) | MixLogCDF | 41.9 | 5.7 |
| mAR-SCF (Ours) | Affine | 41.0 | 5.7 |
| DCGAN [27] | Adversarial | 37.1 | 6.4 |
| WGAN-GP [40] | Adversarial | 36.4 | 6.5 |
+
+Table 3. Evaluation of sample quality on CIFAR10. Other results are quoted from [4, 24].
+
+| Method | Coupling | |SCF| | Ch. | bits/dim (↓) | Mem (GB, ↓) |
| Glow [18] | Affine | 32 | 512 | 4.09 | ~ 128 |
| Residual Flow [4] | Residual | 32 | - | 4.01 | - |
| mAR-SCF (Ours) | Affine | 32 | 256 | 4.07 | ~ 48 |
| mAR-SCF (Ours) | MixLogCDF | 4 | 460 | 3.99 | ~ 80 |
+
+Table 4. Evaluation on ImageNet $\left( {{32} \times {32}}\right)$ .
+
+Glow while using fewer channels (4.07 vs. 4.09 bits/dim). For comparison with the more powerful Residual Flow models, we use four MixLogCDF couplings at each layer $f_{\theta_i}$ with 460 channels. We again outperform Residual Flows [4] (3.99 vs. 4.01 bits/dim). These results are consistent with the findings in Table 1, highlighting the advantage of our mAR prior. Finally, we also evaluate on the ImageNet (64 × 64) dataset. Our mAR-SCF model with affine flows achieves 3.80 vs. 3.81 bits/dim in comparison to Glow [18]. We show qualitative examples in Fig. 5 and compare to Residual Flows. We see that although the powerful Residual Flows obtain better log-likelihoods (3.75 bits/dim), our mAR-SCF model achieves better visual fidelity. This again highlights that our mAR is able to better capture long-range correlations.
+
+# 6. Conclusion
+
+We presented $mAR-SCF$ , a flow-based generative model with novel multi-scale autoregressive priors for modeling long-range dependencies in the latent space of flow models. Our $mAR$ prior considerably improves the accuracy of flow-based models with split coupling layers. Our experiments show that not only does our $mAR-SCF$ model improve density estimation (in terms of bits/dim), but also considerably improves the sample quality of the generated images compared to previous state-of-the-art exact inference models. We believe the combination of complex priors with flow-based models, as demonstrated by our $mAR-SCF$ model, provides a path toward efficient models for exact inference that approach the fidelity of GAN-based approaches.
+
+Acknowledgement. SM and SR acknowledge the support by the German Research Foundation as part of the Research Training Group Adaptive Preparation of Information from Heterogeneous Sources (AIPHES) under grant No. GRK 1994/1.
+
+# References
+
+[1] Jens Behrmann, Will Grathwohl, Ricky T. Q. Chen, David Duvenaud, and Jörn-Henrik Jacobsen. Invertible residual networks. In ICML, pages 573-582, 2019. 2
+[2] Christoph Bregler and Stephen M. Omohundro. Nonlinear image interpolation using manifold learning. In NIPS, pages 973-980, 1994. 5
+[3] Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale GAN training for high fidelity natural image synthesis. In ICLR, 2019. 1
+[4] Ricky T. Q. Chen, Jens Behrmann, David Duvenaud, and Jorn-Henrik Jacobsen. Residual flows for invertible generative modeling. In NeurIPS, pages 9913-9923, 2019. 2, 3, 6, 7, 8
+[5] Xi Chen, Diederik P. Kingma, Tim Salimans, Yan Duan, Prafulla Dhariwal, John Schulman, Ilya Sutskever, and Pieter Abbeel. Variational lossy autoencoder. In ICLR, 2017. 2
+[6] Xi Chen, Nikhil Mishra, Mostafa Rohaninejad, and Pieter Abbeel. Pixelsnail: An improved autoregressive generative model. In ICML, pages 864-872, 2018. 2
+[7] Sander Dieleman, Aäron van den Oord, and Karen Simonyan. The challenge of realistic music generation: Modelling raw audio at scale. In NeurIPS, pages 7989-7999, 2018. 1
+[8] Laurent Dinh, David Krueger, and Yoshua Bengio. NICE: Non-linear independent components estimation. In ICLR Workshop, 2015. 1, 2, 3, 4
+[9] Laurent Dinh, Jascha Sohl-Dickstein, and Samy Bengio. Density estimation using real NVP. In ICLR, 2017. 1, 2, 3, 4, 6
+[10] Justin Domke, Alap Karapurkar, and Yiannis Aloimonos. Who killed the directed model? In CVPR, 2008. 1, 2, 4
+[11] Ian J. Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron C. Courville, and Yoshua Bengio. Generative adversarial nets. In NIPS, pages 2672–2680, 2014. 1
+[12] Alex Graves. Generating sequences with recurrent neural networks. arXiv:1308.0850, 2013. 2, 4
+[13] 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 NeurIPS, pages 6626-6637, 2017. 2, 7
+[14] Jonathan Ho, Xi Chen, Aravind Srinivas, Yan Duan, and Pieter Abbeel. Flow++: Improving flow-based generative models with variational dequantization and architecture design. In ICML, pages 2722-2730, 2019. 2, 3, 4, 6, 7
+[15] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural Computation, 9(8):1735-1780, 1997. 2
+[16] Emiel Hoogeboom, Rianne van den Berg, and Max Welling. Emerging convolutions for generative normalizing flows. In ICML, pages 2771-2780, 2019. 2
+[17] Nal Kalchbrenner, Erich Elsen, Karen Simonyan, Seb Noury, Norman Casagrande, Edward Lockhart, Florian Stimberg, Aäron van den Oord, Sander Dieleman, and Koray Kavukcuoglu. Efficient neural audio synthesis. In ICML, pages 2410-2419, 2018. 2
+[18] Diederik P. Kingma and Prafulla Dhariwal. Glow: Generative flow with invertible 1x1 convolutions. In NeurIPS, pages 10215-10224, 2018. 1, 2, 3, 4, 6, 7, 8
+
+[19] Diederik P. Kingma, Tim Salimans, Rafal Jozefowicz, Xi Chen, Ilya Sutskever, and Max Welling. Improved variational inference with inverse autoregressive flow. In NIPS, pages 4743-4751, 2016. 2
+[20] Diederik P. Kingma and Max Welling. Auto-encoding variational Bayes. In ICLR, 2014. 1
+[21] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, U. of Toronto, 2009. 2, 6
+[22] Yann LeCun, Léon Bottou, Yoshua Bengio, Patrick Haffner, et al. Gradient-based learning applied to document recognition. Proc. IEEE, 86(11):2278-2324, 1998. 2, 6
+[23] Jacob Menick and Nal Kalchbrenner. Generating high fidelity images with subscale pixel networks and multidimensional upscaling. In ICLR, 2019. 2
+[24] Georg Ostrovski, Will Dabney, and Rémi Munos. Autoregressive quantile networks for generative modeling. In ICML, pages 3936-3945, 2018. 8
+[25] George Papamakarios, Iain Murray, and Theo Pavlakou. Masked autoregressive flow for density estimation. In NeurIPS, pages 2338-2347, 2017. 2, 4
+[26] Niki Parmar, Ashish Vaswani, Jakob Uszkoreit, Lukasz Kaiser, Noam Shazeer, Alexander Ku, and Dustin Tran. Image transformer. In ICML, pages 4055-4064, 2018. 2
+[27] Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. In ICLR, 2016. 2, 8
+[28] Ali Razavi, Aïron van den Oord, and Oriol Vinyals. Generating diverse high-fidelity images with VQ-VAE-2. In NeurIPS, pages 14837–14847, 2019. 1, 2, 4
+[29] Scott E. Reed, Aaron van den Oord, Nal Kalchbrenner, Sergio Gomez Colmenarejo, Ziyu Wang, Yutian Chen, Dan Belov, and Nando de Freitas. Parallel multiscale autoregressive density estimation. In ICML, pages 2912-2921, 2017. 2
+[30] Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In ICML, pages 1278-1286, 2014. 1
+[31] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet large scale visual recognition challenge. International Journal of Computer Vision, 115(13):211–252, 2015. 2
+[32] Tim Salimans, Ian J. Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training GANs. In NIPS, pages 2234-2242, 2016. 2, 8
+[33] Tim Salimans, Andrej Karpathy, Xi Chen, and Diederik P. Kingma. PixelCNN++: Improving the PixelCNN with discretized logistic mixture likelihood and other modifications. In ICLR, 2017. 2, 7
+[34] Xingjian Shi, Zhihan Gao, Leonard Lausen, Hao Wang, Dit-Yan Yeung, Wai-Kin Wong, and Wang-chun Woo. Deep learning for precipitation nowcasting: A benchmark and a new model. In NeurIPS, pages 5617-5627, 2017. 4
+
+[35] Lucas Theis, Aäron van den Oord, and Matthias Bethge. A note on the evaluation of generative models. In ICLR, 2016. 8
+[36] Jakub M. Tomczak and Max Welling. VAE with a VampPrior. In AISTATS, pages 1214-1223, 2018. 2
+[37] Aäron van den Oord, Nal Kalchbrenner, Lasse Espeholt, Koray Kavukcuoglu, Oriol Vinyals, and Alex Graves. Conditional image generation with PixelCNN decoders. In NIPS, pages 4790-4798, 2016. 1, 2, 4, 6
+[38] Aäron van den Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel recurrent neural networks. In ICML, pages 1747-1756, 2016. 1, 2, 4, 5, 6, 8
+[39] Aäron van den Oord, Yazhe Li, Igor Babuschkin, Karen Si
+
+monyan, Oriol Vinyals, Koray Kavukcuoglu, George van den Driessche, Edward Lockhart, Luis C. Cobo, Florian Stimberg, Norman Casagrande, Dominik Grewe, Seb Noury, Sander Dieleman, Erich Elsen, Nal Kalchbrenner, Heiga Zen, Alex Graves, Helen King, Tom Walters, Dan Belov, and Demis Hassabis. Parallel WaveNet: Fast high-fidelity speech synthesis. In ICML, pages 3918-3926, 2018. 1, 2
+[40] Xiang Wei, Boqing Gong, Zixia Liu, Wei Lu, and Liqiang Wang. Improving the improved training of Wasserstein GANs: A consistency term and its dual effect. In ICLR, 2018. 2, 8
+[41] Zachary M. Ziegler and Alexander M. Rush. Latent normalizing flows for discrete sequences. In ICML, pages 7673-7682, 2019. 2, 3
\ No newline at end of file
diff --git a/normalizingflowswithmultiscaleautoregressivepriors/images.zip b/normalizingflowswithmultiscaleautoregressivepriors/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..bbe638d5abc58fff980a50af15033ccdd180812d
--- /dev/null
+++ b/normalizingflowswithmultiscaleautoregressivepriors/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7f1a5a8e0456a744de37c45c429fb60593a5873e074c2f6d5cc9f375c41dd5b7
+size 519234
diff --git a/normalizingflowswithmultiscaleautoregressivepriors/layout.json b/normalizingflowswithmultiscaleautoregressivepriors/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..5774e0d6a3761727af191198705e17376d86247c
--- /dev/null
+++ b/normalizingflowswithmultiscaleautoregressivepriors/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:28c1cf7045a99d6c2d6b93e78c0813d892ab4d218f84063b06892f575c80c275
+size 455290
diff --git a/normawareembeddingforefficientpersonsearch/45391829-b815-44c8-ab09-4c185b32c440_content_list.json b/normawareembeddingforefficientpersonsearch/45391829-b815-44c8-ab09-4c185b32c440_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..a816c195e1796b98a86c9c876800ee0674caa633
--- /dev/null
+++ b/normawareembeddingforefficientpersonsearch/45391829-b815-44c8-ab09-4c185b32c440_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:03021cca011e8981dc0458838b09fe398f7394479739a6712280129dd2a7626f
+size 77272
diff --git a/normawareembeddingforefficientpersonsearch/45391829-b815-44c8-ab09-4c185b32c440_model.json b/normawareembeddingforefficientpersonsearch/45391829-b815-44c8-ab09-4c185b32c440_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..826f14cfdd0ce1881d84fc3cd3a4877b982d5761
--- /dev/null
+++ b/normawareembeddingforefficientpersonsearch/45391829-b815-44c8-ab09-4c185b32c440_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:98fdcdbe16934a62c287c724b692497af63dd7022e59aced7a6907dd2000dfb6
+size 99924
diff --git a/normawareembeddingforefficientpersonsearch/45391829-b815-44c8-ab09-4c185b32c440_origin.pdf b/normawareembeddingforefficientpersonsearch/45391829-b815-44c8-ab09-4c185b32c440_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..1d0f1a8cda1f2665604cd24813ddd3278fe78980
--- /dev/null
+++ b/normawareembeddingforefficientpersonsearch/45391829-b815-44c8-ab09-4c185b32c440_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:98a063c2d995f33dbf60d64e364604df3547d6b0515538321f8e013c194eab10
+size 1630154
diff --git a/normawareembeddingforefficientpersonsearch/full.md b/normawareembeddingforefficientpersonsearch/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..fc2e2e61af33a0bbb2dc785097fb76de1857e29b
--- /dev/null
+++ b/normawareembeddingforefficientpersonsearch/full.md
@@ -0,0 +1,341 @@
+# Norm-Aware Embedding for Efficient Person Search
+
+Di Chen $^{1,3}$ , Shanshan Zhang $^{1*}$ , Jian Yang $^{1,2*}$ , Bernt Schiele $^{3}$
+
+$^{1}$ 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
+
+$^{2}$ Jiangsu Key Lab of Image and Video Understanding for Social Security
+
+3 Max Planck Institute for Informatics, Saarland Informatics Campus
+
+{dichen, shanshan.zhang, csjyang}@njust.edu.cn, {dichen, schiele}@mpi-inf.mpg.de
+
+# Abstract
+
+Person Search is a practically relevant task that aims to jointly solve Person Detection and Person Re-identification (re-ID). Specifically, it requires to find and locate all instances with the same identity as the query person in a set of panoramic gallery images. One major challenge comes from the contradictory goals of the two sub-tasks, i.e., person detection focuses on finding the commonness of all persons while person re-ID handles the differences among multiple identities. Therefore, it is crucial to reconcile the relationship between the two sub-tasks in a joint person search model. To this end, we present a novel approach called Norm-Aware Embedding to disentangle the person embedding into norm and angle for detection and re-ID respectively, allowing for both effective and efficient multi-task training. We further extend the proposal-level person embedding to pixel-level, whose discrimination ability is less affected by misalignment. We outperform other one-step methods by a large margin and achieve comparable performance to two-step methods on both CUHK-SYSU and PRW. Also, our method is easy to train and resource-friendlyly, running at 12 fps on a single GPU.
+
+# 1. Introduction
+
+In visual surveillance systems, the most fundamental problems are 1) how to locate persons within images, and 2) how to determine, if a query person is present in a particular set of images, typically across different cameras. The above two problems are usually investigated as the two independent tasks of Pedestrian Detection and Person Identification (re-ID). However, in practical applications, it is favorable to solve them in a joint framework, not only for convenience and high efficiency, but also for better performance. The task of Person Search, as introduced in [46],
+
+
+(a)
+Figure 1. Illustration on how person and background representations are scattered in the embedding space. Black arrows denote background while colorful ones denote persons with different identities. Gray surfaces are the decision boundary for person and background. (a) For $L_{2}$ normalized embeddings, the inter-class angle distances for different persons are squeezed by backgrounds. (b) Norm-aware embeddings separate persons and background by norms and discriminate person identities by angles, thus the constrain on inter-class distances is relaxed.
+
+
+(b)
+
+has the goal to retrieve a query person from a gallery of uncropped images captured by different cameras. Person search inherits difficulties from both re-ID and detection, e.g. viewpoint and illumination variance, cluttered background, occlusion, changing poses, etc., and is thus more challenging than either of the two tasks alone.
+
+A standard way to address person search is to use a two-step strategy, i.e., cascading a pedestrian detector and a re-ID feature extractor trained separately (e.g. [61, 3, 21, 16]). All candidate persons are cropped from the gallery images according to the detector, and fed into a standard person re-ID model. In contrast, others propose to share the backbone network between detection and re-ID [44, 42, 26, 2, 30, 47]. Given an uncropped image, these models output bounding box coordinates and the corresponding $L_{2}$ normalized identity embeddings for all the persons within. These works extend e.g. Faster R-CNN [34] by stacking an additional fully
+
+connected layer to produce $L_{2}$ normalized embeddings and train the whole model jointly with standard detection losses and an identity classification loss. Nonetheless, they suffer from the conflicting objectives of detection and re-ID during training, as pointed out by [3]. An intuitive illustration for $L_{2}$ normalized embeddings is shown in Fig. 1(a). The detection classification objective tends to squeeze the embedding space for all persons regardless of the identities, so as to better separate from background. Therefore, sharing the feature space with background instances limits the angular margin between different identities. As a consequence, due to the inherent trade-off between the two tasks, their detection and re-ID performances are typically both lower than the separately-trained counterparts.
+
+In this work, our goal is to develop a light-weight yet accurate model for person search. We adopt the one-step strategy, i.e., jointly optimize detection and re-ID in an end-to-end model, and relieve the objective contradictory problem by explicit decomposition. Specifically, we share the representations for detection and re-ID completely but decompose the features in the polar coordinate system, where each embedding vector is decomposed to radial norm $r$ and angle $\theta$ . The radial norm $r$ is used for pedestrian detection and could be interpreted as the detection confidence of a bounding box. The angle term $\theta$ measures the cosine similarity between persons, which is widely used in person re-ID. The principle idea is demonstrated in Fig. 1(b). During training, the embedding norms are optimized with a binary classification loss, and the angles are optimized with an OIM loss [44], which is a multi-class cross-entropy loss with normalized softmax weights. During inference, we fix the norm of the query person to 1 and calculate its similarity (dot product) to an arbitrary proposal, which is determined by both the norm and angle. Therefore, a high value of similarity indicates both high detection confidence and high identity similarity. Since the embedding norm is explicitly utilized, we call our method norm-aware embedding (NAE).
+
+Another challenge for joint detection and re-ID is the spatial misalignment problem. Typically, when we train a detector, one proposal is sampled as positive when it has a larger Intersection over Union (IoU) than 0.5 to any ground truth box. This relatively loose matching criterion makes sure to sample enough positives in each mini-batch, but has a negative effect as it includes many mis-aligned samples. Those samples with low alignment quality are harmful for re-ID performance [61] as the included background clutter usually plays a negative role on the features' discrimination ability. In order to alleviate this problem, we propose to re-weight features of each local patch according to its confidence of belonging to a person. Specifically, we perform fine-grained person/background classification for each proposal, i.e., we predict for each pixel location the confidence
+
+of belonging to a person, which is then used as the spatial attention weight for feature aggregation. After re-weighting, the features used for re-ID are expected to focus more on the person area while suppressing the background clutter, and thus become more discriminative for identity classification. Our approach using the above fine-grained classification is compatible with the norm-aware embedding, hence called $\mathrm{NAE + }$
+
+In summary, the main contributions of this work are as follows:
+
+- We propose the norm-aware embedding method (NAE) for person search. NAE mitigates the objective contradictory problem by decomposing the feature embedding into norm and angle for detection and re-ID respectively.
+- A pixel-wise extension, denoted as $\mathrm{NAE}+$ , is proposed to deal with the misalignment problem for end-to-end person search.
+- Our methods are fast, explainable and achieve competitive performance on standard benchmarks (CUHK-SYSU and PRW).
+
+# 2. Related Work
+
+Person Search. Recently, person search has raised a lot of interest to researchers in the computer vision community. Zheng et al. [61] first make a thorough evaluation on a number of combinations of different detectors and re-identifiers. They also propose a cascaded fine-tuning strategy for training and Confidence Weighted Similarity (CWS) for person matching. Lan et al. [21] analyze the resolution diversity problem in person search and solve the multi-scale matching problem by Cross-Level Semantic Alignment (CLSA). Chen et al. [3] raise attention on the contradictory objective problem in person search, and propose to avoid it by separating detection and re-identification. Han et al. [16] point out that the bounding boxes produced by a vanilla detector are not optimal for re-ID. Thus they develop an RoI transform layer that enables gradient flow from the re-identifier to the detector for localization refinement.
+
+In contrast to the above two-step methods, other works aim to solve the person search problem more efficiently using one-step methods. For example, the Online Instance Matching (OIM) loss [44] and Center Loss [42, 40] are used to address the ill-conditioned training problem and enhance the feature discrimination power. Yan et al. [47] and Munjal et al. [30] propose to enrich the features with surrounding persons or the query person respectively. In [26] and [2], they discard the proposal generation operation and search the query person directly on the uncropped images by sequential decision making or reinforcement learning.
+
+In this paper, we also adopt the one-step strategy. Based on the OIM model [44], we improve the feature learning with our norm-aware embedding. Additionally, the final
+
+similarity calculation of our method is similar to CWS. Different from the original form which is used in a post-processing step, CWS in our method is naturally induced from the explicit decomposition in the polar coordinate system. Therefore, it is also useful to guide the training process for better feature learning.
+
+Person re-ID. Early person re-ID models focus on designing features manually [37, 11, 58, 24] and learning effective distance metrics [20, 23, 50]. Recently, CNNs have become the de facto standard for building a re-ID model. Such models are usually trained as a feature extractor with siamese loss [49, 22, 1, 36, 27, 45], triplet loss [7, 4] or cross-entropy loss [43, 59, 61, 10, 41]. Instead of averaging the convolutional features from all locations, latest methods extract part-level features and join them together as the final person embedding [35, 39, 57, 48]. These methods usually partition the feature maps into horizontal stripes for fine-grained feature learning. Our pixel-wise extension of the norm-aware embedding is also inspired by this approach. Instead of dividing the feature maps into blocks, we use a pixel-wise probability map to re-weight the features at every location, which is further supervised by a segmentation loss with bounding box annotations.
+
+Pedestrian Detection. Similar to person re-ID, early pedestrian detection methods are also based on hand-crafted features [12, 8, 9, 51, 54]. Deep neural networks, as versatile feature extractors, have dominated this task in recent years [52, 53, 32, 31]. Successful general object detection models are adapted for pedestrians, such as R-CNN [13, 52, 53] and Faster R-CNN [34, 55, 56]. In this work, we also build our model based on the adapted Faster R-CNN, which is extensible for fine-grained feature learning and reaches a sweet spot between speed and accuracy.
+
+Embedding Norms. It is common practice to normalize the deep embeddings with unit length in face recognition [28, 29, 6], person re-ID [10, 41] and person search [44]. To the best of our knowledge, only two papers discuss the efficacy of embedding norms [15, 38]. Guo et al. [15] find that the norm of the softmax weight vector is related to the sample number of this class. They further propose to promote the norms of underrepresented classes in order to improve the performance of one-shot face recognition. Wang et al. [38] also use normalized embeddings to represent face identities. Additionally, they regress the norm of the embedding to the age of the given person by reducing the mean squared error between these two during training. However, the norm information is then ignored for age-invariant face recognition when matching identities. Different from the above two works, our method makes explicit use of the embedding norms rather than employing them as a regularization term during training. By using the norm for the classification task (person vs. background), we endow the norm with a clear semantic meaning, i.e., the de
+
+
+Figure 2. Overall architecture for one-step methods based on Faster R-CNN [34]. Black arrows denote the forward pass and colorful ones denote different supervision signals. Region Proposal Net is omitted for simplicity.
+
+tection confidence, which is essential for person search.
+
+# 3. Methodology
+
+A typical one-step person search method based on Faster R-CNN [34] is illustrated in Fig. 2. A multi-task head for localization, detection and re-ID is added on top of the top convolutional features of Faster R-CNN.
+
+The first and most representative one-step method is OIM [44], where an $L_{2}$ normalized fully connected layer is concatenated to the global average pooled convolutional features. As is shown in Fig. 3(a), the box regression and region classification losses remain the same as in Faster R-CNN, with an identity classification loss supervising the person embeddings produced by the fully connected layer. In contrast, our norm-aware embedding method, illustrated in Fig. 3(b), removes the original region classification branch and uses the embedding norm as the binary person/background classification confidence.
+
+In this section, we will describe the norm-aware embedding head in detail and present the pixel-wise extension for fine-grained feature learning.
+
+# 3.1. Norm-Aware Embedding
+
+On top of the final convolutional features, we first apply global average pooling (GAP) and a fully connected (FC) layer to get the $d$ dimensional feature vector $\mathbf{x}$ , where $d$ is fixed to 256 following [44]. Then $\mathbf{x}$ is decomposed explicitly in the polar coordinate system as:
+
+$$
+\mathbf {x} = r \cdot \boldsymbol {\theta}, \tag {1}
+$$
+
+where norm $r \in [0, +\infty)$ and angle $\theta$ is a 256-dimensional vector with unit length.
+
+To interpret the norm $r$ as the detection confidence, we use a monotonic mapping to squeeze its magnitude to the range of [0, 1]:
+
+$$
+\tilde {r} = \sigma \left(\frac {r - \mathbb {E} [ r ]}{\sqrt {\operatorname {V a r} [ r ] + \epsilon}} \cdot \gamma + \beta\right), \tag {2}
+$$
+
+
+(a) OIM
+
+
+(b) NAE
+
+
+(c) NAE+
+Figure 3. Multi-task head architecture for Online Instance Matching (OIM), norm-aware embedding (NAE) and its pixel-wise extension $(\mathrm{NAE}+)$ . Dashed arrows indicate that the procedure is only enabled during inference.
+
+where $\sigma$ is the sigmoid activation, within which is a batch normalization [19] layer.
+
+The original embedding $\mathbf{x}$ is then scaled into our norm-aware embedding $\tilde{\mathbf{x}}$ :
+
+$$
+\tilde {\mathbf {x}} = \tilde {r} \cdot \boldsymbol {\theta} \tag {3}
+$$
+
+This procedure is represented by the dashed arrows in Fig. 3(b).
+
+Inference & Matching. For a query person, we first extract its embedding $\tilde{\mathbf{x}}_q$ by removing the RPN module and setting the proposal coordinate with the given bounding box. Since the query bounding box definitely contains a person, we manually set the norm of $\tilde{\mathbf{x}}_q$ to 1. Then, the similarity of the query person and an arbitrary detected person $\mathbf{x}_q$ in the gallery is calculated as follows:
+
+$$
+\operatorname {s i m} \left(\tilde {\mathbf {x}} _ {q}, \tilde {\mathbf {x}} _ {g}\right) = \tilde {\mathbf {x}} _ {q} ^ {T} \tilde {\mathbf {x}} _ {g} = \tilde {r} _ {g} \cdot \boldsymbol {\theta} _ {q} ^ {T} \boldsymbol {\theta} _ {g} \tag {4}
+$$
+
+In the above equation, $\pmb{\theta}_q^T\pmb{\theta}_g$ is the cosine similarity between the query and the gallery person. Thus, the final similarity equals the cosine similarity weighted by the detection
+
+confidence, which is especially useful to suppress false detections. Meanwhile, it also shares the same formation as Class Weighted Similarity (CWS) [61]. However, instead of just using CWS as a post-processing step, we leverage it to explicitly decompose the embedding for the detection and re-ID objectives during training. We further demonstrate the efficacy of CWS in Sec. 4.3.
+
+Training. As can be seen from Eq. 4, our norm-aware embedding is able to discriminate person identity as well as suppress false detections. Therefore, it can be supervised by re-ID and detection signals simultaneously during training. Specifically, the detection signal is cast on the scaled norm $\tilde{r}$ and formulated as a binary classification:
+
+$$
+\mathcal {L} _ {\det } = - y \log (\tilde {r}) - (1 - y) \log (1 - \tilde {r}) \tag {5}
+$$
+
+where $y$ is a $\{0,1\}$ label indicating if this proposal is considered as background or person. Meanwhile, we use an OIM loss [44] $\mathcal{L}_{\mathrm{reid}}$ on the normalized angular vector $\theta$ , which is a multi-class cross-entropy loss that minimizes the angular margin for the same identity and maximizes that of different identities. The bounding box regression loss $\mathcal{L}_{\mathrm{box}}$ remains identical to the form defined by Faster R-CNN. The three loss functions are illustrated by the yellow, green and blue arrows respectively in Fig. 3(b). Together with RPN classification and regression losses, they are jointly optimized by Stochastic Gradient Descent (SGD).
+
+# 3.2. Pixel-Wise Extension
+
+In Sec. 3.1, the convolutional features of each proposal are collapsed into a vector by global average pooling, losing spatial information. In this way, the person embeddings would suffer from distracting noise of the misaligned regions (the black region in Fig. 4). To address this problem, we propose $\mathrm{NAE + }$ , which is a pixel-wise extension of NAE. We carefully leverage the spatial information via highlighting the body part and suppressing the misaligned regions. Specifically, we first predict a $256\times k\times k$ tensor from the top feature map with a $1\times 1$ convolutional layer. Then the 256- dimensional vectors at all locations can be normalized and scaled into norm-aware embeddings, while still preserving the spatial structure. An illustration is shown in Fig. 3(c). In this way, the mapped norm $\tilde{r}_i$ at each location acts as a spatial attention, calibrating the per-pixel importance before the tensor is collapsed into the final matching vector.
+
+The training of $\mathrm{NAE + }$ can be formulated in a semantic segmentation manner, i.e., supervising all the mapped norms with a per-pixel cross-entropy loss. Different from the standard semantic segmentation approach, the ground truth class map is not available in person search datasets, hence we need to generate the coarse ground truth from bounding box annotations. The generation process is shown in Fig. 4. For each RoI, we set its intersection to the ground truth bounding box as 1 and leave the rest as 0. Bilinear
+
+
+Figure 4. Pixel-wise label generation from bounding box annotation. Red box is the ground truth while blue box is the proposal. Black region is marked as 0, white being one and gray being values in between. Bilinear interpolation is used to match the label size to the feature map size.
+
+interpolation is used to resize the RoI box into $k \times k$ . The loss is then formulated as follows:
+
+$$
+\mathcal {L} _ {\det +} = - \frac {1}{k ^ {2}} \sum_ {i = 1} ^ {k ^ {2}} y _ {i} \log (\tilde {r} _ {i}) + (1 - y _ {i}) \log (1 - \tilde {r} _ {i}) \tag {6}
+$$
+
+where $y_{i}$ is the generated per-pixel label with its value lying between [0, 1]. The label generation procedure is illustrated in Fig. 4.
+
+During inference, even though the per-pixel probability map is trained, a single probability is needed to measure the detection confidence. A direct approach is to use the averaged probability $\mathbb{E}_i[\tilde{r}_i]$ across all spatial locations. However, we find through our experiments that this approach works poorly, i.e., the confidence of a valid bounding box is too low since the mean value would be diluted by the inevitable background regions with low confidence. We address this problem by simply stretching the magnitude of $\mathbb{E}_i[\tilde{r}_i]$ . Specifically, for each image, all the detection confidences are divided by the maximum value among them, such that all of them are expanded and still range between 0 and 1.
+
+Compared to NAE, $\mathrm{NAE + }$ does not increase the number of parameters. It only adds a small overhead on computation, while improving the person search accuracy as demonstrated by experiments.
+
+# 4. Experiments
+
+In this section, we perform a thorough evaluation of our NAE and $\mathrm{NAE + }$ . We begin by introducing the datasets and evaluation protocols, after which we describe the implementation in detail. Comprehensive analysis and visual inspections are conducted to explore the efficacy of our method. We further compare our method with the state-of-the-arts w.r.t. both search performance and running speed.
+
+# 4.1. Datasets and Settings
+
+CUHK-SYSU [44] is a hybrid dataset consisting of city scenes shot by a moving camera and screenshots of movies.
+
+A total of 18,184 uncropped images and 96,143 bounding boxes are collected, among which 11,206 images and 55,272 pedestrians are used for training. The testing set includes 2,900 query persons and 6,978 gallery images. For each query, different gallery sizes are defined by the benchmark to assess the scaling ability of different models. If not specified, we use the gallery size of 100 by default.
+
+PRW [61] is extracted from video frames recorded by 6 stationary cameras that are installed at different locations in a university campus. There are 11,816 frames with 43,110 bounding boxes, where 34,304 of them are annotated with 932 identities and the rest marked as unknown identities. In the training set, there are 5,704 images with 482 identities. The testing set contains 2,057 query persons and each of them are to be searched in a gallery with 6,112 images. Therefore, the gallery size is significantly larger than the default setting of CUHK-SYSU.
+
+Evaluation Protocol. Similar to person re-ID [60], Mean Average Precision (mAP) and Cumulative Matching Characteristics (CMC top-K) are standard metrics used to measure person search performance. However, a candidate in the ranking list would only be considered correct if its IoU to the ground truth bounding box is larger than 0.5, which is the main difference from the re-ID approach.
+
+# 4.2. Implementation Details1
+
+Our model consists of three major parts: a stem network for spatial feature extraction, a region proposal network (RPN) for candidate bounding box sampling and a head network for proposal classification and regression.
+
+We adopt an ImageNet-pretrained [5] ResNet-50 [18] as our backbone network, with the foremost four residual blocks, i.e., 'conv1' to 'conv4', used as the stem network.
+
+A standard RPN is built on top of the stem network to generate pedestrian candidate bounding boxes. We follow the anchor settings in [25] and sample the positive proposals with a lower bound IoU of 0.5 to the ground truth, and the IoU interval for negative proposals is $[0.1, 0.5)$ .
+
+Next, the proposals are cropped and reshaped to $14 \times 14$ by an RoIAlign layer [17]. The head network, which is the 'conv5' residual block of ResNet-50, is used to transform the proposals into 2048-dimensional $7 \times 7$ feature maps. Task-specific heads for bounding box regression and norm-aware embedding generation are added on top of the feature maps. We set the spatial size $k$ to 7 for $\mathrm{NAE}+$ , which is depicted in Fig. 3(c).
+
+During training, we sample 5 images for each batch, which are resized to $900 \times 1,500$ . Our model is trained on a single NVIDIA Tesla P40 GPU for 22 epochs, with an initial learning rate of 0.003 which is progressively warmed up during the first epoch and decreased by 10 at the 16-th epoch. The momentum and weight decay of SGD are set to
+
+| Detector | Recall | AP | Re-identifier | mAP | top-1 |
| OIM-base | 89.3 | 79.7 | OIM-base | 84.4 | 86.1 |
| NAE | 90.0 | 91.8 |
| NAE | 92.6 | 86.8 | OIM-base | 85.9 | 87.6 |
| NAE | 91.5 | 92.4 |
| GT | 100 | 100 | OIM-base | 90.7 | 91.2 |
| NAE | 93.5 | 94.0 |
+
+Table 1. Analytical experiment results on CUHK-SYSU. The upper block uses the detected boxes of OIM-base, while the lower block uses the NAE detection results.
+
+| Method | mAP | top-1 | ΔmAP | Δtop-1 |
| OIM-base | 84.4 | 86.1 | | |
| OIM-base w/ CWS | 87.1 | 88.5 | +2.7 | +2.4 |
| NAE | 91.5 | 92.4 | | |
| NAE w/o CWS | 89.9 | 91.3 | -1.6 | -1.1 |
+
+Table 2. Ablation experiments on Class Weighted Similarity.
+
+0.9 and $5 \times 10^{-4}$ respectively. As for $\mathrm{NAE+}$ , we initialize the weights with a trained NAE model by converting the FC layer weights into $1 \times 1$ convolution weights. It is then finetuned for 11 epochs. The learning rate is set to 0.003 for the first 8 epochs, and then decayed to 0.0003 for the remaining 3 epochs.
+
+At test time, the number of proposals is set to 300. Nonmaximum Suppression [14] with a threshold of 0.4 is used to filter out redundant boxes.
+
+# 4.3. Analytical Experiments
+
+As mentioned in the introduction section, person search accuracy is affected by both the detection quality and the identity recognition accuracy. In order to better understand how well our NAE method handles the above two sub-tasks, we disentangle the person search into detection and re-ID and evaluate their performances individually.
+
+We implement the analysis on our norm-aware embedding and the OIM baseline model. Four variants are evaluated, namely
+
+- OIM-base: Our re-implementation of the OIM model [44] which shares the same architecture settings as our NAE model described in Sec. 4.2. Benefiting from large input image size [56], dense anchor setting [25] and RoIAlign [17], our OIM-base is significantly better than the original implementation.
+- OIM-base w/ CWS: Using the trained model of OIM-base and apply Class Weighted Similarity [61] when matching gallery persons to the query.
+- NAE: Our norm-aware embedding model as described in Sec. 3.1.
+- NAE w/o CWS: Identical to NAE but only using the normalized embedding $\theta$ without the scale operation
+
+
+
+
+
+
+Figure 5. Pixel-wise norm predictions of $\mathrm{NAE + }$ on CUHK-SYSU. Warmer color represents larger norm, which indicates a higher probability of this position being a person. The detection performance of $\mathrm{NAE + }$ is $93.0\%$ and $82.1\%$ w.r.t. Recall and AP, remaining similar to that of NAE.
+
+(the vector marked in green in Fig. 3(b)).
+
+All models are trained on CUHK-SYSU and tested under a gallery size of 100.
+
+For pedestrian detection, we use Recall and Average Precision (AP) as the performance metrics. For person re-ID, mAP and top-1 accuracy are adopted. They are the same as in person search, but the embeddings for matching are extracted differently. We remove the RPN of the trained model and set the proposals manually with the boxes to be inspected. Therefore, an end-to-end person search model serves solely as a re-ID feature extractor.
+
+The evaluation results are collected in Tab. 1 and Tab. 2, from which we make the following conclusions.
+
+The detection quality of NAE is better. The detection results are recorded in the second column of Tab. 1, from which we can see that our NAE model achieves $92.6\%$ and $86.8\%$ w.r.t. Recall and AP, surpassing OIM-base by 3.3 and 7.1 pp. respectively. The better detection quality indicates that the detection objective in NAE is optimized more smoothly and effectively than in our OIM-base. The final person search performance of NAE is also better than OIM-base, thanks to the high-quality bounding boxes.
+
+NAE is more discriminative for re-identification. In the lower block of Tab. 1, we can see that NAE achieves $91.5\%$ and $92.4\%$ w.r.t. mAP and top-1, outperforming OIM-base with NAE detected boxes by 5.6 and $4.8~\mathrm{pp}$ . The performance improvement also holds when switching the bounding boxes to the ground truth boxes or OIM-base detections, as is shown in the upper and lower block of Tab. 1. These results suggest that NAE has better re-ID accuracy, which indicates that the discrimination power of NAE is superior to OIM.
+
+Class Weighted Similarity is helpful. In Tab. 2, we can see that adding CWS to OIM-base yields a gain of $+2.7$ and
+
+| Method | CUHK-SYSU | PRW |
| mAP | top-1 | mAP | top-1 |
| one-step | OIM [44] | 75.5 | 78.7 | 21.3 | 49.9 |
| IAN [42] | 76.3 | 80.1 | 23.0 | 61.9 |
| NPSM [26] | 77.9 | 81.2 | 24.2 | 53.1 |
| RCAA [2] | 79.3 | 81.3 | - | - |
| CTXGraph [47] | 84.1 | 86.5 | 33.4 | 73.6 |
| QEEPS [30] | 88.9 | 89.1 | 37.1 | 76.7 |
| OIM-base (ours) | 84.4 | 86.1 | 34.0 | 75.9 |
| NAE (ours) | 91.5 | 92.4 | 43.3 | 80.9 |
| NAE+ (ours) | 92.1 | 92.9 | 44.0 | 81.1 |
| two-step | DPM+IDE [61] | - | - | 20.5 | 48.3 |
| CNN+MGTS [3] | 83.0 | 83.7 | 32.6 | 72.1 |
| CNN+CLSA [21] | 87.2 | 88.5 | 38.7 | 65.0 |
| FPN+RDLR [16] | 93.0 | 94.2 | 42.9 | 70.2 |
+
+Table 3. Comparison with state-of-the-arts. One-step methods are gathered in the upper block while two-step methods are in the lower block. Best results in each block are marked in bold.
+
++2.4 pp. for mAP and top-1 respectively. Meanwhile, removing CWS from NAE makes mAP and top-1 drop from 91.5 to 89.9 and 92.4 to 91.3. These results confirm the positive efficacy of CWS. As a naturally induced form of NAE, CWS also contributes to the person search performance of our method.
+
+In conclusion, our norm-aware embedding successfully alleviates the contradictory objectives of detection and re-ID by decomposing embedding explicitly into norm and angle. The detection and re-ID sub-tasks both achieve better results than the baseline. As a result, the final person search performance of our method is remarkable, which can be attributed to the improvements on the two sub-tasks.
+
+# 4.4. Visualized Inspections
+
+To inspect the efficacy of the $\mathrm{NAE + }$ method, we visualize the output probability maps in Fig. 5. Specifically, we remove the RPN and RoIAlign modules from a trained $\mathrm{NAE + }$ model and forward the input image directly through the whole network. The output probability map, composed of the mapped norms $\tilde{r}_i$ at each location, is upsampled with bilinear interpolation to match the input image size. We then represent the probability maps with different colors and overlay them with the corresponding input images. We observe from Fig. 5 that $\mathrm{NAE + }$ successfully highlights the human body region and suppresses background clutters, which makes the embedding more robust to noises. As is shown in Tab. 3, $\mathrm{NAE + }$ outperforms $\mathrm{NAE}$ consistently on CUHK-SYSU and PRW.
+
+We also show some qualitative search results in Fig. 7. The selected cases are representative hard ones, including crowd overlapping (case a, f), confusing appearance (c, d, f, g), viewpoint change (c, d, f, g) and obstacle occlusion
+
+
+(a)
+
+
+(b)
+Figure 6. Performance comparison on CUHK-SYSU with varying gallery sizes. Dashed lines represent two-step methods while solid lines denote one-step methods.
+
+| GPU (TFLOPs) | MGTS | QEEPS | NAE | NAE+ |
| K80 (4.1) | 1269 | - | 663 | 606 |
| P6000 (12.6) | - | 300 | - | - |
| P40 (11.8) | - | - | 158 | 161 |
| V100 (14.1) | - | - | 83 | 98 |
+
+Table 4. Speed comparison on different GPUs. Running time is measured in milliseconds.
+
+(e, g). Our NAE method successfully localize and match the query person in most of the hard cases, although there is still room to improve the performance on extreme instances like (f) and (g). Moreover, our NAE+ method is better than NAE as it returns the correct result for all scenarios.
+
+# 4.5. Comparison to the State-of-the-arts
+
+In this section, we compare our NAE and $\mathrm{NAE + }$ to state-of-the-art methods on person search in Tab. 3. All the results are gathered according to their search strategies, i.e., one-step methods in the upper block and two-step method in the lower block. 'DPM', 'CNN' and 'FPN' stand for Deformable Part Model [14], ResNet-50-based Faster R-CNN [34] and Feature Pyramid Network [25] respectively. They are individually trained as vanilla pedestrian detectors. Comparison on CUHK-SYSU. As shown in Tab. 3, both NAE and $\mathrm{NAE + }$ outperform all other one-step methods, including the strong counterparts QEEPS [30] and CTX-Graph [47]. Note that their forward pass requires some computationally heavy operations, e.g. siamese attention and additional graph convolutions. In contrast, our method only needs a single forward pass, consuming less computing resources and memory. Our method is also comparable to the top two-step method 'FPN + RDLR' [16], which uses two backbones for detection and re-ID respectively. We believe the performance-boosting components of [16], i.e., feature pyramid network, RoI transform layer and proxy triplet loss, could also bring improvements to our method, which is however beyond the scope of this paper.
+
+In Fig. 6, we further evaluate the performance under larger search scopes. As is defined in [44], each query per
+
+
+(a)
+
+
+(d)
+Figure 7. Top-1 search results for several hard samples. 'Q' stands for the query image, for each we show the top-1 match given by OIM-base, our NAE and $\mathrm{NAE + }$ . Green/red boxes denote the correct/wrong results respectively. (a) $\sim$ (e) are cases where OIM-base fails while NAE and $\mathrm{NAE + }$ succeed. (f) and (g) are failure cases for both OIM-base and NAE, except for $\mathrm{NAE + }$
+
+son is matched in galleries with an increasing size. From Fig. 6 we can see that the mAP for all methods decrease monotonically as the gallery size becomes larger. This phenomenon indicates that it is more difficult to match a person in larger scopes, which is a typical challenge in real-world applications. Our method outperforms all the one-step methods by a considerable margin, while achieving similar mAP to the two-step methods at all scopes.
+
+Comparison on PRW. In the right column of Tab. 3, we summarize the results of our NAE and $\mathrm{NAE + }$ together with other competitive methods. Our NAE method surpasses all previous methods, including both one-step and two-step ones. In particular, our NAE outperforms the second best method by a large margin of around 9 pp. w.r.t. top-1 accuracy. Compared to CUHK-SYSU, PRW consists of less training data and larger gallery size, thus it is more challenging. Our NAE method behaves better on PRW, indicating that our method is more robust with reduced training data. Moreover, the pixel-wise extension $\mathrm{NAE + }$ further improves over NAE by 0.7 and 0.2 pp. w.r.t. mAP and top-1 metrics, setting the new state-of-the-art on PRW.
+
+Timing. We compare the speed of different methods in Tab. 4. Since different methods are implemented on different GPUs, we show the Tera-Floating Point Operation per-second (TFLOPs) beside each GPU for fair comparison. Our NAE and $\mathrm{NAE + }$ are implemented in PyTorch [33] without bells and whistles. We test the models with an input image size as $900\times 1500$ , which is the same as MGTS and QEEPS [30]. We can see from Tab. 4 that our method is around 2 times faster than the two-step method MGTS [3]. Our method is also 2 times faster than QEEPS, which is the current state-of-the-art one-step method. Finally, our NAE
+
+and NAE+ methods cost 83 and 98 milliseconds per-frame respectively on a V100 GPU. The fast speed of our method reveals its great potential for real-world applications.
+
+# 5. Conclusion
+
+In this paper, we propose an embedding decomposing method to deal with the contradictory objective problem of person search. Person embeddings are disintegrated into norm and angle, which are used to measure the detection confidence and identity similarity accordingly. In this way, the detection and re-ID sub-tasks both get higher performance, which in result improves the person search accuracy. We further extend our method from region-level to pixel-level in order to extract more fine-grained information. Thorough experiments on two standard benchmarks confirm the advantages of our method in terms of both accuracy and speed.
+
+# Acknowledgement
+
+The authors would like to thank the AC and the anonymous reviewers for their critical and constructive comments and suggestions. This work was supported by the National Science Fund of China (Grant Nos. U1713208, 61702262), Funds for International Co-operation and Exchange of the National Natural Science Foundation of China (Grant No. 61861136011), "111" Program B13022, Natural Science Foundation of Jiangsu Province, China (Grant No. BK20181299), Young Elite Scientists Sponsorship Program by CAST (2018QNRC001), and Science and Technology on Parallel and Distributed Processing Laboratory (PDL) Open Fund (WDZC20195500106).
+
+# References
+
+[1] Ejaz Ahmed, Michael Jones, and Tim K Marks. An improved deep learning architecture for person re-identification. In CVPR, 2015.
+[2] Xiaojun Chang, Po-Yao Huang, Yi-Dong Shen, Xiaodan Liang, Yi Yang, and Alexander G. Hauptmann. Rcaa: Relational context-aware agents for person search. In ECCV, 2018.
+[3] Di Chen, Shanshan Zhang, Wanli Ouyang, Jian Yang, and Ying Tai. Person search via a mask-guided two-stream cnn model. In ECCV, 2018.
+[4] De Cheng, Yihong Gong, Sanping Zhou, Jinjun Wang, and Nanning Zheng. Person re-identification by multi-channel parts-based CNN with improved triplet loss function. In CVPR, 2016.
+[5] 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.
+[6] Jiankang Deng, Jia Guo, Niannan Xue, and Stefanos Zafeiriou. Arcface: Additive angular margin loss for deep face recognition. arXiv preprint arXiv:1801.07698.
+[7] Shengyong Ding, Liang Lin, Guangrun Wang, and Hongyang Chao. Deep feature learning with relative distance comparison for person re-identification. PR, 48(10):2993–3003, Oct 2015.
+[8] Piotr Dollar, Ron Appel, Serge Belongie, and Pietro Perona. Fast feature pyramids for object detection. TPAMI, 36(8):1532-1545, Aug 2014.
+[9] Piotr Dollar, Zhuowen Tu, Pietro Perona, and Serge Belongie. Integral channel features. In BMVC, 2009.
+[10] Xing Fan, Wei Jiang, Hao Luo, and Mengjuan Fei. Spherereid: Deep hypersphere manifold embedding for person re-identification. arXiv preprint arXiv:1807.00537, 2018.
+[11] M. Farenzena, L. Bazzani, A. Perina, V. Murino, and M. Cristani. Person re-identification by symmetry-driven accumulation of local features. In CVPR, 2010.
+[12] Pedro F Felzenszwalb, Ross B Girshick, David Mcallester, and Deva Ramanan. Object detection with discriminatively trained part based models. TPAMI, 32(9):1627-1645, Sept 2009.
+[13] Ross Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. In CVPR, 2014.
+[14] Ross Girshick, Forrest Iandola, Trevor Darrell, and Jitendra Malik. Deformable part models are convolutional neural networks. In CVPR, 2015.
+[15] Yandong Guo and Lei Zhang. One-shot face recognition by promoting underrepresented classes. arXiv preprint arXiv:1707.05574, 2017.
+[16] Chuchu Han, Jiacheng Ye, Yunshan Zhong, Xin Tan, Chi Zhang, Changxin Gao, and Nong Sang. Re-id driven localization refinement for person search. In ICCV, 2019.
+[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] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, 2015.
+[20] Martin Kostinger, Martin Hirzer, Paul Wohlhart, Peter M. Roth, and Horst Bischof. Large scale metric learning from equivalence constraints. In CVPR, 2012.
+[21] Xu Lan, Xiatian Zhu, and Shaogang Gong. Person search by multi-scale matching. In ECCV, 2018.
+[22] Wei Li, Rui Zhao, Tong Xiao, and Xiaogang Wang. DeepReID: Deep filter pairing neural network for person re-identification. In CVPR, 2014.
+[23] Xiang Li, Wei Shi Zheng, Xiaojuan Wang, Tao Xiang, and Shaogang Gong. Multi-scale learning for low-resolution person re-identification. In ICCV, 2015.
+[24] Shengcai Liao, Yang Hu, Xiangyu Zhu, and Stan Z. Li. Person re-identification by local maximal occurrence representation and metric learning. In CVPR, 2015.
+[25] Tsung-Yi Lin, Piotr Dollár, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. Feature pyramid networks for object detection. In CVPR, 2017.
+[26] Hao Liu, Jiashi Feng, Zequn Jie, Karlekar Jayashree, Bo Zhao, Meibin Qi, Jianguo Jiang, and Shuicheng Yan. Neural person search machines. In ICCV, 2017.
+[27] Hao Liu, Jiashi Feng, Meibin Qi, Jianguo Jiang, and Shuicheng Yan. End-to-end comparative attention networks for person re-identification. TIP, 26(7):3492–3506, July 2017.
+[28] Weiyang Liu, Yandong Wen, Zhiding Yu, Ming Li, Bhiksha Raj, and Le Song. Spherical face: Deep hypersphere embedding for face recognition. In CVPR, 2017.
+[29] Weiyang Liu, Yandong Wen, Zhiding Yu, and Meng Yang. Large-margin softmax loss for convolutional neural networks. In ICML, 2016.
+[30] Bharti Munjal, Sikandar Amin, Federico Tombari, and Fabio Galasso. Query-guided end-to-end person search. In CVPR, 2019.
+[31] W. Ouyang and X. Wang. A discriminative deep model for pedestrian detection with occlusion handling. In CVPR, 2012.
+[32] W. Ouyang and X. Wang. Joint deep learning for pedestrian detection. In ICCV, 2013.
+[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.
+[34] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster R-CNN: Towards real-time object detection with region proposal networks. TPAMI, 39(6):1137-1149, June 2017.
+[35] Yifan Sun, Liang Zheng, Yi Yang, Qi Tian, and Shengjin Wang. Beyond part models: Person retrieval with refined part pooling (and a strong convolutional baseline). In ECCV, 2018.
+[36] Rahul Rama Varior, Bing Shuai, Jiwen Lu, Dong Xu, and Gang Wang. A siamese long short-term memory architecture for human re-identification. In ECCV, 2016.
+
+[37] Xiaogang Wang, Gianfranco Doretto, Thomas Sebastian, Jens Rittscher, and Peter Tu. Shape and appearance context modeling. In ICCV, 2007.
+[38] Yitong Wang, Dihong Gong, Zheng Zhou, Xing Ji, Hao Wang, Zhifeng Li, Wei Liu, and Tong Zhang. Orthogonal deep features decomposition for age-invariant face recognition. In ECCV, 2018.
+[39] Longhui Wei, Shiliang Zhang, Hantao Yao, Wen Gao, and Qi Tian. Glad: Global-local-alignment descriptor for pedestrian retrieval. In ACM'MM, 2017.
+[40] Yandong Wen, Kaipeng Zhang, Zhifeng Li, and Yu Qiao. A discriminative feature learning approach for deep face recognition. In ECCV, 2016.
+[41] Wangmeng Xiang, Jianqiang Huang, Xianbiao Qi, XianSheng Hua, and Lei Zhang. Homocentric hypersphere feature embedding for person re-identification. arXiv preprint arXiv:1804.08866, 2018.
+[42] Jimin Xiao, Yanchun Xie, Tammam Tillo, Kaizhu Huang, Yunchao Wei, and Jiashi Feng. Ian: The individual aggregation network for person search. arXiv preprint arXiv:1705.05552, 2017.
+[43] Tong Xiao, Hongsheng Li, Wanli Ouyang, and Xiaogang Wang. Learning deep feature representations with domain guided dropout for person re-identification. In CVPR, 2016.
+[44] Tong Xiao, Shuang Li, Bochao Wang, Liang Lin, and Xiaogang Wang. Joint detection and identification feature learning for person search. In CVPR, 2017.
+[45] Jing Xu, Rui Zhao, Feng Zhu, Huaming Wang, and Wanli Ouyang. Attention-aware compositional network for person re-identification. In CVPR, 2018.
+[46] Yuanlu Xu, Bingpeng Ma, Rui Huang, and Liang Lin. Person search in a scene by jointly modeling people commonness and person uniqueness. In ACM'MM, 2014.
+[47] Yichao Yan, Qiang Zhang, Bingbing Ni, Wendong Zhang, Minghao Xu, and Xiaokang Yang. Learning context graph for person search. In CVPR, 2019.
+[48] Hantao Yao, Shiliang Zhang, Richang Hong, Yongdong Zhang, Changsheng Xu, and Qi Tian. Deep representation learning with part loss for person re-identification. TIP, 28(6):2860–2871, June 2019.
+[49] Dong Yi, Zhen Lei, Shengcai Liao, and Stan Z. Li. Deep metric learning for person re-identification. In ICPR, 2014.
+[50] Li Zhang, Tao Xiang, and Shaogang Gong. Learning a discriminative null space for person re-identification. In CVPR, 2016.
+[51] Shanshan Zhang, Christian Bauckhage, and Armin B. Cremers. Informed haar-like features improve pedestrian detection. In CVPR, 2014.
+[52] S. Zhang, R. Benenson, M. Omran, J. Hosang, and B. Schiele. How far are we from solving pedestrian detection? In CVPR, 2016.
+[53] S. Zhang, R. Benenson, M. Omran, J. Hosang, and B. Schiele. Towards reaching human performance in pedestrian detection. TPAMI, 40(4):973-986, April 2018.
+[54] S. Zhang, R. Benenson, and B. Schiele. Filtered channel features for pedestrian detection. In CVPR, 2015.
+
+[55] S. Zhang, R. Benenson, and B. Schiele. Citypersons: A diverse dataset for pedestrian detection. In CVPR, 2017.
+[56] Shanshan Zhang, Jian Yang, and Bernt Schiele. Occluded pedestrian detection through guided attention in cnns. In CVPR, 2018.
+[57] Liming Zhao, Xi Li, Yueting Zhuang, and Jingdong Wang. Deeply-learned part-aligned representations for person re-identification. In ICCV, 2017.
+[58] Rui Zhao, Wanli Ouyang, and Xiaogang Wang. Unsupervised salience learning for person re-identification. In CVPR, 2013.
+[59] Liang Zheng, Zhi Bie, Yifan Sun, Jingdong Wang, Chi Su, Shengjin Wang, and Qi Tian. Mars: A video benchmark for large-scale person re-identification. In ECCV, 2016.
+[60] Liang Zheng, Liyue Shen, Lu Tian, Shengjin Wang, Jingdong Wang, and Qi Tian. Scalable person re-identification: A benchmark. In ICCV, 2015.
+[61] Liang Zheng, Hengheng Zhang, Shaoyan Sun, Manmohan Chandraker, Yi Yang, and Qi Tian. Person re-identification in the wild. In CVPR, 2017.
\ No newline at end of file
diff --git a/normawareembeddingforefficientpersonsearch/images.zip b/normawareembeddingforefficientpersonsearch/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..ec4c9e73cf6f2477e253a7d13037890deb861a2d
--- /dev/null
+++ b/normawareembeddingforefficientpersonsearch/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:78eafdd0d37635de0f6dd0e3cc16c8f09be7c760722119c99d24681300c35d38
+size 512805
diff --git a/normawareembeddingforefficientpersonsearch/layout.json b/normawareembeddingforefficientpersonsearch/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..eb8d428c519eaeed9f5a0a802822e13dc52093a3
--- /dev/null
+++ b/normawareembeddingforefficientpersonsearch/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8d554f3fd5cd13116ec011285ca8f3adc72840702f878c2c875d3d25e3372e12
+size 409526
diff --git a/novelobjectviewpointestimationthroughreconstructionalignment/29dd8743-31ea-4d1e-a9b5-97da1af42a0a_content_list.json b/novelobjectviewpointestimationthroughreconstructionalignment/29dd8743-31ea-4d1e-a9b5-97da1af42a0a_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..02e116062089592a6955ba4335f66420a080b8ea
--- /dev/null
+++ b/novelobjectviewpointestimationthroughreconstructionalignment/29dd8743-31ea-4d1e-a9b5-97da1af42a0a_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0440448ea7acca8f1be89685e8c5865ff09f8187844db2718a4d3271644507f3
+size 69404
diff --git a/novelobjectviewpointestimationthroughreconstructionalignment/29dd8743-31ea-4d1e-a9b5-97da1af42a0a_model.json b/novelobjectviewpointestimationthroughreconstructionalignment/29dd8743-31ea-4d1e-a9b5-97da1af42a0a_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..324159357659f8f4c2aa1467b02c51847cddb4c6
--- /dev/null
+++ b/novelobjectviewpointestimationthroughreconstructionalignment/29dd8743-31ea-4d1e-a9b5-97da1af42a0a_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f1adabc5f7bebeb8bec53a2f077f8877480cdd8942d62d54b50a0f1241ea358b
+size 85358
diff --git a/novelobjectviewpointestimationthroughreconstructionalignment/29dd8743-31ea-4d1e-a9b5-97da1af42a0a_origin.pdf b/novelobjectviewpointestimationthroughreconstructionalignment/29dd8743-31ea-4d1e-a9b5-97da1af42a0a_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..33fa2b65307821f3a9a072ffaca993c024abffcb
--- /dev/null
+++ b/novelobjectviewpointestimationthroughreconstructionalignment/29dd8743-31ea-4d1e-a9b5-97da1af42a0a_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9fec26c177348a9d92c82d60724c46ea97f12d3fe4777edc207905fd7ee23784
+size 1247898
diff --git a/novelobjectviewpointestimationthroughreconstructionalignment/full.md b/novelobjectviewpointestimationthroughreconstructionalignment/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..576a1eb3364a745d5bdbda35be693044b0ca29c5
--- /dev/null
+++ b/novelobjectviewpointestimationthroughreconstructionalignment/full.md
@@ -0,0 +1,251 @@
+# Novel Object Viewpoint Estimation through Reconstruction Alignment
+
+Mohamed El Banani Jason J. Corso David F. Fouhey University of Michigan
+
+{mbanani, jjcorso, fouhey}@umich.edu
+
+# Abstract
+
+The goal of this paper is to estimate the viewpoint for a novel object. Standard viewpoint estimation approaches generally fail on this task due to their reliance on a 3D model for alignment or large amounts of class-specific training data and their corresponding canonical pose. We overcome those limitations by learning a reconstruct and align approach. Our key insight is that although we do not have an explicit 3D model or a predefined canonical pose, we can still learn to estimate the object's shape in the viewer's frame and then use an image to provide our reference model or canonical pose. In particular, we propose learning two networks: the first maps images to a 3D geometry-aware feature bottleneck and is trained via an image-to-image translation loss; the second learns whether two instances of features are aligned. At test time, our model finds the relative transformation that best aligns the bottleneck features of our test image to a reference image. We evaluate our method on novel object viewpoint estimation by generalizing across different datasets, analyzing the impact of our different modules, and providing a qualitative analysis of the learned features to identify what representations are being learnt for alignment.
+
+# 1. Introduction
+
+Consider the two views of the owl in Figure 1. How are they related? As humans, we can easily imagine how to move from view 1 to view 2, even if we have never seen this object before. This problem of understanding object pose and viewpoint has long fascinated researchers in both computer vision (starting with the first PhD thesis on computer vision [21]) and psychology [23, 27]. Within computer vision, many approaches have been proposed to estimate an image's viewpoint with respect to a given, or assumed, oriented 3D model. Despite the success of those approaches on known classes, they struggle with novel objects since both the 3D model and its canonical pose are unknown. In this work, we learn to predict the relative viewpoint for a novel object using a single reference view.
+
+
+
+
+Figure 1. Humans can not help but see the 3D structure in those two views, which makes aligning their viewpoints very easy. This paper proposes a reconstruct-and-align approach to learning viewpoint estimation for novel objects.
+
+Historically, there has been two general approaches to viewpoint estimation. First, 3D model alignment approaches find a transformation that aligns an image to a known 3D model [9, 20, 39]. Despite their efficacy, those approaches were limited to objects with available 3D models. Second, end-to-end discriminative approaches learn to directly estimate the image's viewpoint with respect to a canonical pose (e.g., head-on for a car) [24, 29, 30, 33]. While those approaches do not rely on explicit 3D models, their predictions are with respect to an implicitly-defined, canonically-oriented model. Due to their reliance on explicitly- or implicitly-defined 3D models, those approaches struggle with novel objects where neither the model nor its canonical orientation are known.
+
+How can we estimate the viewpoint of a novel object? Viewpoint is defined with respect to a class-specific coordinate frame or a canonical pose (e.g., head-on for a car) [33]. For small generalization (e.g., from bikes to motorcycles), one can exploit similarity in viewpoint appearance between
+
+categories [15], but this is rarely the case. Motivated by research on mental rotation [23], we observe that an image, as opposed to a 3D model, can serve as a reference pose. Hence, instead of aligning to a 3D model, we find the relative transformation between two views of the same object.
+
+In this work, we combine insights from both 3D alignment and end-to-end learning. We do not use a 3D model, but instead learn to map the input image to a 3D feature grid. Our key insight is that, although we do not have an explicit 3D model, we can still learn a deep network that maps each object instance to a 3D reference frame. This is done by combining learned 2D layers with projection layers constrained to follow projective geometry, similar to [13]. We then learn to align these 3D feature grids to identify the relative transformation that would minimize misalignment in the joint 3D feature grid.
+
+We learn the 3D feature grid via 2D supervision (but not direct 3D supervision via voxels), while incorporating physical constraints inspired by 3D shape carving [14]. We hypothesize that forcing the representation to pass through a geometry-aware bottleneck provides a useful inductive bias. Further, the unlearned projection layers make it far easier for the network to learn an implicit 3D shape representation that can be inspected, where unstructured layers might lead to pure memorization that generalizes worse [28]. We then train an alignment network to estimate whether two views would produce an aligned 3D shape representation by training on randomly misaligned examples similar to [3, 16].
+
+We evaluate novelty via generalization across different datasets. For instance, we show that our model can generalize well from ShapeNet [4] to Thingi10K [45] models, despite them looking very different as shown in Figure 1 and the supplementary material. This sidesteps difficulties involved in using object classes as a proxy for novelty [15, 44, 38]: class distinctions can be arbitrary, with some classes like motorcycles and bicycles sharing a lot of view-specific appearances.
+
+We demonstrate the effectiveness of our proposed approach in Section 5, and show that while standard approaches are challenged by novel objects, our approach generalizes gracefully to new datasets. Specifically, our model achieves a viewpoint estimation accuracy of $40\%$ when generalizing from ShapeNet to Thingi10K, compared to $25\%$ accuracy achieved by standard approaches. We run several analysis experiments to understand the learned representations, and find that our model also shows good across-dataset generalization on view prediction and voxel prediction; achieving an IoU score of 0.43 on ShapeNet airplanes despite being trained on Thingi10K. Overall, our experiments show that a reconstruction and alignment approach generalizes to novel objects better than discriminative approaches, and we hope that our work will spark more interest in this direction.
+
+# 2. Related Work
+
+The ability to accurately orient an object in 3D space in one of the oldest problems in computer vision [21]. Early work posed the problem as an alignment problem, specifically that of estimating "the transformation needed to map an object model from its inherent coordinate system into agreement with sensory data" [9]. This formulation was powerful as it was task agnostic as long as one had access to the 3D model. Early approaches focused on finding correspondences between images and specific model instances [2, 10, 17]. More recent approaches focused on generalizing to all instances within an object classes by using class-specific 3D key-points [31, 37, 39, 46] or deformable part models [1, 20]. While we are inspired by alignment approaches, we assume no access to a 3D model and generalize to novel object classes by learning to both reconstruct the 3D model and align images to it.
+
+Motivated by the success of large-scale image classification, a recent line of work focused on learning pose estimation with little or no supervision beyond image-pose pairs [8, 18, 24, 29, 30, 33, 40]. Those approaches replaced the alignment approach with fully-learned 2D feature-based models like convolutional neural networks (CNNs). Although this approach has been successful at synthetic-to-real generalization [24, 29] and within-class generalization [8, 33], it has remained unclear how successful it would be at generalizing to novel classes. While we also do not assume access to a 3D model; unlike this work, we train our model to be agnostic to object class, learn a 3D object representation, and generalize to novel classes.
+
+A recent line of work incorporates other losses or tasks with pose estimation such as object classification [15, 19, 20, 24], keypoint detection [31, 33, 46], and object reconstruction [12, 32, 42]. Closest to our approach are [12, 32] who jointly learn 3D reconstruction and pose prediction from unannotated images. While our work stems from the same observation that pose and shape are closely related, our goals are different. While [12, 32] are interested in learning shape and pose for a specific classes from very weak supervision, our focus is to generalize to novel classes of objects by learning from standard viewpoint supervision.
+
+Independent of this work, there has been a rising interest in learning more structured or meaningful intermediate representations through representational bottlenecks [20, 33, 35, 36, 43, 46]. The representational bottleneck is interpreted as providing a good inductive bias to the learning process. More relevant to us are approaches that force a 3D representational bottleneck in the form of a voxel grid [13, 32, 35, 41, 42]. While some approaches use 3D supervision, others leverage the 3D representation bottleneck to learn 3D reconstruction using only 2D supervision. We would like to emphasize that while we are inspired by this line of work, our goals are different; while those approaches
+
+
+(a) Learning Shape
+
+
+(b) Learning Alignment
+
+
+(c) Inference Time
+Figure 2. Approach Overview. Our approach consists of two learning stages and an inference stage. (a) We first learn to predict an object's shape from two views of the object and their relative pose. We train our Shape Network to estimate the object's appearance from a third viewpoint. (b) Using the trained Shape Network, we train a discriminator to predict the degree of misalignment between two views. (c) At inference time, we find the relative pose that would best align the two inputs. Note: Input image backgrounds are removed for clarity.
+
+Learned Weights
+
+Frozen Weights
+
+Projection Layer
+
+Features
+
+focused on performing accurate single- or multi-view 3D reconstruction of a known class of objects, our goal is not to reconstruct the object, but rather to use the 3D bottleneck to allow us to estimate the relative viewpoint for novel objects.
+
+Finally, our goal is to generalize to unseen classes. While this problem has been studied extensively in the scope of image classification (see [38] for a survey), it has not received a lot of attention for 3D tasks such as pose estimation. To the best of our knowledge, there has only been two previous approaches that tackled similar problems. Kuznetsova et al. [15] proposed a metric learning approach that performs joint classification and pose-estimation, and they leverage the learned space for zero-shot pose estimation. However, their approach only works if the novel object is similar to previously seen objects (e.g., cars to buses and bicycles to motorcycles), which limits the generalizability of their method. Tseng et al. [31] proposed a keypoint alignment approach that learns to predict 3D keypoints to align the novel class. However, they expect 3D keypoint annotation for the reference images of the novel object at test time, while we only assume a single, unannotated, reference image.
+
+# 3. Novel Object Viewpoint Estimation
+
+Our overarching goal is to build a system that understands the viewpoint of a previously unseen object using as little information about the object as possible, and ideally
+
+generalizes between completely unrelated objects, such as zebras to forks instead of cars to buses. The difficulty is that viewpoint is defined with respect to a coordinate frame or canonical pose (e.g., head-on for a car): without it, the problem is fundamentally undefined and any viewpoint could be the origin viewpoint. Accordingly, past work has defined the coordinate frame using keypoints [31], or generalized across semantically similar objects [15] (e.g., cars to buses).
+
+Rather than use a predefined coordinate frame via keypoints or semantic similarity, we propose to instead use a single image as a reference. Our goal then is, given a reference image $\mathbf{I}_1$ with viewpoint $\mathbf{v}_1$ and an image $\mathbf{I}_2$ whose viewpoint $\mathbf{v}_2$ we would like to estimate, we want to predict the relative rotation $\mathbf{R}_{\mathrm{relative}}$ such that $\mathbf{v}_2 = \mathbf{R}_{\mathrm{relative}}\mathbf{v}_1$ . This formulation maintains the essence of viewpoint estimation, while circumventing the limitations posed by requiring a canonical pose. It should be noted given the relative pose between two images and the canonical pose of the object in one image, it is trivial to calculate the canonicalized pose in the second image.
+
+During training, we assume we have access to image-viewpoint pairs from an arbitrary number of classes. At test time, we are presented with two images from a new class and tasked with predicting the relative viewpoint of the second image with respect to the first image.
+
+# 4. Approach
+
+The goal of this work is to build a system that can predict the relative viewpoint between two views of an object that it has never seen before. Our approach, shown in Figure 2, takes inspiration from the early formulation of pose estimation as alignment [9]. However, instead of using a 3D model, we learn to predict a 3D representation from each view that can be aligned. We first present a high-level sketch of our approach before explaining each stage in more detail. Architectural details are presented in Appendix A.1. We analyze the effectiveness of our design choices in Section 5.3.
+
+Approach Sketch. In the first stage, we learn shape by training our model on a view prediction task. Given two images and the relative viewpoint between them, we train our model to extract 2D features from each image and backproject them into a joint 3D feature tensor. During backprojection, we use the object's depth from each view to carve out the empty space between the viewer and the object. For an arbitrary third view, we project the 3D feature tensor into 2D, and predict either the object mask or depth in that view. In the second stage, we learn alignment by training a discriminator to predict if the extracted 3D feature tensor is well-aligned or not. At test time, we find the relative viewpoint by finding the transformation that minimizes predicted misalignment.
+
+# 4.1. Learning Shape
+
+Given two images and a relative pose, $\{I_1,I_2,\mathbf{R}_{\mathrm{relative}}\}$ we train a Shape Network to generate a 3D feature grid, $\mathcal{F}_{\mathrm{object}}\in \mathbb{R}^{F\times N\times N\times N}$ , that captures the object's shape. Since we assume that the viewer is looking straight at the object for the first image, the second viewpoint is $\mathbf{R}_{\mathrm{relative}}$
+
+The Shape Network consists of a 2D CNN encoder, a differentiable back-projection layer, and a 3D UNet [22, 5]. We provide the specific architectural details in the supplementary material. The 2D encoder extracts a 2D feature map for each image that is then back-projected into a 3D voxel grid of dimension $N$ ( $N = 32$ ) using a viewpoint and a depth map. The back-projection is based on the differentiable projection layers from Kar et al. [13]. We back-project the features by projecting rays for each pixel location in the 2D feature map into the 3D grid using the appropriate viewpoint, the value for each voxel is then set via bi-linear sampling.
+
+Inspired by early work on space carving [14], we leverage known or estimated depth from the object to carve away the empty space in-front and around the object by setting the features in those voxels to 0. After space carving, we have two feature grid tensors, $\mathcal{F}_{\mathrm{v}_1}$ , $\mathcal{F}_{\mathrm{v}_2}$ , that capture the appearance and view of each object in the same frame of reference.
+
+The two feature grid tensors from each view do not see the same parts of the objects and are, essentially, hallu
+
+cinating the unseen parts. Therefore, we fuse them with the goal of predicting a consistent 3D representation of the object. We accomplish this by concatenating the two feature grids along the feature dimension to produce a tensor, $\mathbb{R}^{2F\times N\times N\times N}$ , and pass it into a 3D UNet. The 3D UNet's goal is to refine this representation by aligning the seen and hallucinating the unseen.
+
+We train the Shape Network on 2D view prediction of the object's mask or depth from a third view. This is done by projecting the 3D features to 2D using the relative viewpoint of the third view. Since we do not know the object's depth, we sample the features at multiple depth values along each ray. We use a $1 \times 1$ convolution to aggregate features for all sampled depth values for a given pixel location. This is followed by two convolutional layers and a single up-sampling layer in the middle to match the depth or mask output size. We train the network to minimize binary cross entropy from mask prediction, and $L_{1}$ loss for depth prediction.
+
+# 4.2. Learning Alignment
+
+Once we have trained a Shape Network to estimate the object's 3D feature representation, our goal for the second stage is to use the 3D representation to predict whether two images of an object are aligned or not. We generate training data by freezing the Shape Network's weights and perturbing its input relative viewpoint by a random rotation. We then train a discriminator to predict the magnitude of that perturbation. Our intuition is that while determining the relative viewpoint between two objects might be difficult, misalignment is much easier to detect as it produces inconsistent object shapes, with the degree of inconsistency being a measure of how misaligned the images were.
+
+We implement the discriminator as a 3D CNN. Our network architecture consists of two 3D inception modules followed by two fully-connected layers. We adapt the inception module [26] to 3D by expanding the kernels along the depth dimension. We use the inception module as it allows the network to detect features at multiple scales which would be useful when detecting inconsistencies.
+
+We train the discriminator to predict the perturbation direction (Euler angles) and magnitude (geodesic distance). We randomly perturbed the relative viewpoint of two thirds of our instances by at least 10 degrees. We train the network using an $L_{2}$ loss for all 4 outputs.
+
+# 4.3. Relative Viewpoint Estimation
+
+Given a trained Shape Network and a discriminator, the relative viewpoint is the viewpoint that will minimize predicted misalignment. This problem could be solved as an optimization problem or via a greedy search. In this work, we uniformly sample viewpoints and output the viewpoint that minimized the discriminator's predicted perturbation magnitude.
+
+
+Figure 3. Mask Prediction on Thingi10k. Given two images, our models learn to predict the mask for a third view. The first two columns present two input views, while the third column is the view for which the mask is being predicted. The masks shown are predicted by a model which is trained on a different dataset; ShapeNet. We can accurately predict the 3D model's projection from a novel viewpoint despite being trained on a very different set of shapes.
+
+# 5. Experiments
+
+We now empirically evaluate our model's performance on relative viewpoint estimation, as well as report additional experiments that analyze the different components of the model. Our experiments aim to answer two questions: (1) how well our proposed approach works, especially in the case of generalization to novel objects; and (2) how the method works and whether it has indeed learned to solve the task by using 3D representations.
+
+We address the first question by evaluating the model's ability to generalize across datasets for both viewpoint estimation (Section 5.1) and view prediction (Section 5.2). Cross-dataset generalization gives us a good proxy for how the model would perform on novel objects since ShapeNet and Thingi10K models look drastically different.
+
+We address the second question by evaluating our model's ability to learn shape through view prediction (Section 5.2) and voxel prediction (Section 5.4). We also run several ablations to better understand the significance of different model components (Section 5.3).
+
+Datasets. We use three datasets: ShapeNet, Pix3D, and Thingi10K. While ShapeNet and Pix3D are fairly uniform in terms of their models' types and appearances, Thingi10K models vary greatly in terms of their size, appearance, and geometric properties. Thingi10K [45] consists of $10K$ models created for 3D printing. The lack of strong patterns or prototypical shapes makes Thingi10K very chal
+
+lenging for both pose estimation and reconstruction methods, and an excellent test dataset for our task. Alternatively, ShapeNet's large size (55 categories and $\sim 57K$ models) makes it a great training set, while allowing us to evaluate our approach on models from the same class. Finally, Pix3D [25] is a smaller dataset, consisting of 395 3D models of 9 categories of furniture. The smaller number of models and domain-specificity of Pix3D provide an interesting comparison against the larger variance in object categories in ShapeNet and object shapes in Thingi10K.
+
+Data Sampling. We choose our poses by uniformly sampling around a viewing sphere. With models centered around the origin, the pose transformation is simply the inverse of the viewpoint transformation. This deviates from previous work which sampled according to consumer photos' distributions to promote better synthetic to real generalization [24].
+
+After excluding models with missing or corrupted 3D model files, we end up with 55,281 ShapeNet models, 390 Pix3D models, and 9994 Thingi10K models. For ShapeNet and Thingi10K, we sample 20 different poses per object, while we sample 200 views for Pix3D. We do so to mitigate the large difference between the numbers of models in those datasets. We randomly split our datasets by models to ensure that each of the splits has a disjoint set of models. We use $80\% / 10\% / 10\%$ of the data as our training, validation, and test splits.
+
+Table 1. Relative Viewpoint Estimation Performance. We evaluate our model on its ability to perform within- and across-dataset generalization. The letters represent the initial letter of each dataset: ShapeNet, Pix3D, and Thingi10k. Each column represents different train/test settings $S \rightarrow T$ is training on ShapeNet and testing on Thingi10k. We find that our model is able to generalize across datasets, while previous approaches demonstrate a clear bias towards their training distributions.
+
+ | S → S | P → P | T → T | S → P | S → T | P → T |
| Accπ/6 | MedErr | Accπ/6 | MedErr | Accπ/6 | MedErr | Accπ/6 | MedErr | Accπ/6 | MedErr | Accπ/6 | MedErr |
| Stat. Prior | 4.15 | 114.71 | 4.13 | 115.01 | 4.33 | 114.41 | 4.13 | 115.01 | 4.33 | 114.41 | 4.33 | 114.41 |
| RPNet | 60.23 | 44.32 | 68.93 | 32.61 | 20.82 | 91.43 | 66.42 | 46.07 | 25.00 | 91.85 | 14.43 | 111.80 |
| ConvAE | 50.49 | 52.65 | 51.96 | 56.36 | 15.35 | 100.56 | 48.63 | 46.78 | 8.65 | 116.11 | 3.55 | 129.29 |
| Ours | 47.57 | 66.04 | 58.08 | 46.02 | 41.25 | 61.96 | 60.67 | 43.47 | 40.12 | 70.08 | 33.00 | 96.82 |
+
+# 5.1. Viewpoint Estimation
+
+We first evaluate how well our system performs on viewpoint estimation, our primary task. Our aim here is to evaluate how well the system performs, especially when generalizing from one dataset to another.
+
+Experimental Setup. We evaluate pose estimation performance based on the geodesic distance between the predicted and ground-truth pose as was done in previous work [24, 33]. Given two rotation matrices, the geodesic distance provides the magnitude of the transformation between those two rotation matrices. Following [11], we calculate geodesic distance as $D(R_{gt}, R_{pr}) = ||\log \mathbf{R}_{gt}\mathbf{R}_{pr}^{\top}||$ . Following [24, 33], we report the median geodesic distance and the percentage of viewpoints under threshold $\pi / 6$ .
+
+Baselines. We compare our models performance to several baselines. For all our baselines, we use binned Euler angles to represent rotation and train the models using a cross-entropy loss.
+
+Statistical Prior. We find the mode pose for the validation and use it on testing. Since we uniformly sampled the viewpoints, we find that this baseline is very weak and corresponds to a random baselines.
+
+RPNet. En et al. [7] proposed a Siamese-network to perform relative camera pose estimation. As reported by the authors, we find that for more difficult datasets, it is better to train each network separately on absolute viewpoint and then calculate the relative viewpoint explicitly. We used binned Euler angles instead of quaternions as we found that they perform better. Furthermore, we provide their network with RGB-D input to provide a fair comparison to our method's use of depth-based space carving.
+
+Convolutional Autoencoder (ConvAE). Given that our model learns both reconstruction and pose estimation, we trained a convolutional autoencoder on both tasks. We initially used UNets [22] due to their success in image translation tasks, but found that removing the skip connections improved the viewpoint estimation performance. Viewpoint is estimated on the encoded features using a 3-layer CNN. Like RPNet, we found that training on absolute viewpoint improved performance.
+
+Results. We find that directly estimating viewpoint scales poorly do datasets like Thingi10K. As shown in Figure 3, Thingi10K models exhibit very high variability which makes them challenging for a model that maps 2D patterns directly to a pose as seen by in Table 1. By contrast, our model is able to leverage this high variability in the data as it allows it to learn better reconstruction features. This is evident by the large performance gain that our model on Thingi10K; both when training and testing on it, or when transferring to it from another dataset.
+
+On the other hand, we find that if there is limited difference between training and testing (e.g., training and testing on ShapeNet), directly estimating viewpoint does well. Interestingly, we find that in this domain, training on more data with higher variance improves performance as seen with training on ShapeNet and evaluating on Pix3D, especially since all of Pix3D's classes exist in ShapeNet. This pattern is shown both for the direct pose models as well as our approach. Another interesting finding is that joint reconstruction and pose estimation do not explain our models performance as shown by the convolutional autoencoder baseline. It appears that the additional reconstruction task burdens the network as opposed to providing it with an additional learning signal.
+
+We note that RPNet is representative of current end-to-end discriminative viewpoint-estimation models as they generally follow the structure of a CNN backbone and FC layers to predict viewpoint [18, 24, 30, 33, 40]. As a result, the comparison to RPNet represents a more general comparison against problems that frame viewpoint estimation as a discriminative task.
+
+Furthermore, recent approaches proposed jointly learning reconstruction and pose estimation, where the network learns to predict pose in an emergent coordinate frame [12, 32]. While those models are trained to minimize a reconstruction error, they are still using a CNN to directly estimate the pose with respect to a class-specific, emergent canonical pose. Hence, they face the same challenges as RPNet. Additionally, those approaches can perform better when given ground-truth pose, which we provide to RPNet.
+
+Table 2. 2D Reconstruction Cross-dataset Generalization Experiment. The rows show the training dataset, while the columns present the test dataset. We find that our model can easily generalize across datasets, with very minor performance drops. This supports our claim that our model is learning a generalizable representation of shape, as opposed to memorizing the shapes available within each dataset.
+
+ | ShapeNet | Pix3D | Thingi10k |
| Mask | Depth | Mask | Depth | Mask | Depth |
| IoU | F1 | LogRMSE | δ1.25 | IoU | F1 | LogRMSE | δ1.25 | IoU | F1 | LogRMSE | δ1.25 |
| ShapeNet | 0.83 | 0.90 | 0.53 | 0.66 | 0.80 | 0.88 | 0.63 | 0.60 | 0.82 | 0.90 | 0.35 | 0.84 |
| Pix3D | 0.78 | 0.87 | 0.53 | 0.74 | 0.79 | 0.88 | 0.59 | 0.74 | 0.79 | 0.87 | 0.34 | 0.90 |
| Thingi10k | 0.76 | 0.85 | 0.69 | 0.70 | 0.73 | 0.84 | 0.81 | 0.63 | 0.85 | 0.91 | 0.30 | 0.88 |
+
+# 5.2. 2D Reconstruction
+
+We now analyze our Shape Network's ability to represent shape, as well as how well that ability generalizes to novel objects. Specifically, we evaluate the Shape Network's ability to predict the object's mask or depth from an unseen viewpoint. Note that our model is trained on either depth or mask prediction. Hence, the depth and mask results are shown for models trained on the respective task. Similar to the previous experiment, we are interested in the model's ability to generalize to unseen classes. We emphasize that we have a disjoint set of training and testing models, hence, the testing performance on the same dataset evaluates class-specific generalization, while testing across datasets evaluates generalization to unseen classes.
+
+Experimental Setup. We train and test the performance on the 9 pairwise dataset pairs for ShapeNet, Pix3D, and Thingi10K. We evaluate mask reconstructions using IoU at a threshold of 0.5 as well as a pixel-level F1 score. Following [6], we evaluate depth estimation using log root mean-square-error and threshold accuracy, $\delta_{1.25}$ . For a depth prediction, $y$ , threshold accuracy is calculated as the percentage of pixels, $y_i$ , s.t. $\max \left(\frac{y_i}{y_i^{gt}}, \frac{y_i^{gt}}{y_i}\right) < 1.25$ .
+
+Results. We find that our model achieves high performance for mask prediction across all the datasets as shown in Table 2. More importantly, we find that there is very little variance between the model's performance across datasets. This demonstrates our model's ability to learn to represent 3D shape in a generalizable way. This is in stark contrast to recent findings from reconstruction that find that 3D reconstruction approaches will often memorize some of the training models [28]. We hypothesize that our model is less susceptible to memorization due to (a) the geometry-aware bottleneck and (b) the lack of a shared canonical pose across class instances. The geometry-aware bottle neck forces the model to learn to represent its input in 3D. Furthermore, by removing the canonical pose assumption, the model can no longer rely on specific locations in the tensor having a consistent representation (e.g., airplane wings always being on the side). As a result, the model is forced to represent the specific input, as opposed to just classifying it.
+
+Table 3. Ablation Study. We ablate our model by removing two key components in the 3D and analyzing the effect on 2D reconstruction and relative viewpoint estimation.
+
+ | S → S | S → T |
| Accπ/6 | MedErr | IoU | Accπ/6 | MedErr | IoU |
| Ours | 47.57 | 66.04 | 0.83 | 40.12 | 70.08 | 0.82 |
| - carving | 6.38 | 134.23 | 0.64 | 4.21 | 130.14 | 0.63 |
| - refine | 47.57 | 59.76 | 0.63 | 42.16 | 54.03 | 0.64 |
+
+Of course, like any learned approach, our model is still affected by the quality of the training data. We observe that, in general, the best performing model on a dataset is the one trained on that dataset with two interesting exceptions. The first exception is that for mask prediction, ShapeNet does very well on Pix3D. This is likely due to the degree of class overlap between ShapeNet and Pix3D, as well as the additional variety of models seen in ShapeNet. The second exception is that Pix3D trained model tends to do better on depth prediction. While it is not clear why this would happen, one potential explanation is that the planarity of most furniture might provide a good scaffolding for the networks to learn better depth, while other datasets provide too much variance for the network to learn good representations.
+
+# 5.3. Ablations
+
+We perform an ablation study to better understand the model's performance and failure modes. In particular, we ablate two central elements of our model: 3D refinement and space carving. We train our ablated models on ShapeNet and evaluate them on both ShapeNet and Thingi10K. We follow the same training procedure as before. The results are shown in Table 3.
+
+Space Carving. We find that removing space carving is extremely detrimental to the model. The model's 2D reconstruction performance suffers, while the viewpoint performance is reducing to random guessing. Space carving appears to greatly boost our performance by providing a class and model agnostic benefit. Given two projected views, space carving provides a high degree of certainty to the model regarding which voxels can be ignored, and hence, greatly improves the alignment. The uncertainty about the object's extent appears to stifle its ability to align views.
+
+
+Figure 4. Features To Voxels. Our model can accurately predict occupancy without being trained using voxels or for voxel prediction. We present 3 success cases (IoU $>0.7$ ; in blue) and 3 failure cases of our model (IoU $<0.1$ ; in red), with our prediction on the left and the ground-truth on the right. We observe that our failure cases tend to arise from failure to complete an occluded part or registering the part at an incorrect location, which would be expected from a model that has never seen a plane before.
+
+3D Refinement. We observe that removing the 3D refinement network also greatly deteriorates the reconstruction performance. However, unlike space carving, removing it actually boosts the viewpoint performance. This is likely caused by the network hallucination of features (in order to complete the object), which in turn is mixed with the non-hallucinated features, which may hamper alignment.
+
+# 5.4. Features to Voxels
+
+Given that the model learns to project to and from a voxel grid, we expect that the features of this grid can capture occupancy despite never having been trained on 3D information. While we do not ever directly extract an occupancy grid during training, we find that we can adapt one of the layers in the network to generate it. Specifically, while training the Shape Network, we add a multi-view consistency loss [32, 34]. In particular, Tulsiani et al. [32] propose a loss that samples different points along projected rays to detect ray termination events. We extend their formulation to a feature grid by defining a linear layer that maps the ray-sampled features to a permeability score. Since the permeability layer maps each feature vector to a ray termination probability, it correlates with the occupancy likelihood. Hence, we apply it to the feature tensor output from the Shape Network to generate an occupancy grid. We note that removing this loss does not significantly change our viewpoint estimation or 2D reconstruction performance.
+
+We train our model on Thingi10K and evaluate it on the airplane class of ShapeNet. We would like to emphasize that Thingi10K does not include an airplane class, so we are evaluating on unseen objects. We use the voxel grids
+
+provided by ShapeNet, but we center and resize them to fit a voxel grid of dimension 32. We evaluate the quality of our rendering by calculating the intersection over union (IoU) of the occupancy grids. We pick the threshold based on the validation set.
+
+Since our embedding is in a viewer-centric frame of reference, we rotate it back to the canonical frame before computing IoU. Our model achieves a mean IoU of 0.43 with $98\%$ of the samples having an IoU at least 0.25. We note that this is calculated on the direct embedding dimension without performing any registration or scaling to better match ShapeNet 3D models. We visualize several success and failure cases in Figure 4.
+
+# 6. Conclusion
+
+In this paper, we present a reconstruction and alignment approach for novel object viewpoint prediction. We observe that previous viewpoint prediction approaches have either relied on large amounts of class-specific, canonically-oriented data or on having a 3D model for alignment. However, those two assumptions do not apply when dealing with a novel object. Our key insight is that while we may not have access to a 3D model, we can learn a deep network that estimates the object's shape in the viewer's frame of reference, and use a reference view to determine the viewpoint with respect to other views of the object. To this end, we propose learning two networks: the first network uses a 3D feature bottleneck to represent objects in 3D; the second network learns whether or not two views are aligned.
+
+We evaluate our approach on several datasets. We find that our approach significantly outperforms standard viewpoint estimation approaches when there is a large domain shift between the train and test models, or when the training models themselves have high variance. Furthermore, we find that we can extract 3D occupancy grids despite not training using 3D supervision. This provides ample evidence that our models can generalize to unseen objects.
+
+Our current models greatly rely on the depth input to accurately reconstruct the object. While the 2.5D input might be needed to understand the 3D structure of a novel object, we would like to explore ways of minimizing this reliance in future work. Furthermore, we would like to explore optimization approaches that would allow us to converge to the best viewpoint instead searching over a set of predetermined viewpoints.
+
+Acknowledgments We would like to thank the reviewers and area chairs for their valuable comments and suggestions, and the members of the UM AI Lab for many helpful discussions. Toyota Research Institute ("TRI") provided funds to assist the authors with their research but this article solely reflects the opinions and conclusions of its authors and not TRI or any other Toyota entity.
+
+# References
+
+[1] Alexander C Berg, Tamara L Berg, and Jitendra Malik. Shape matching and object recognition using low distortion correspondences. In CVPR, 2005.
+[2] Rodney A Brooks. Symbolic reasoning among 3-d models and 2-d images. Artificial intelligence, 17, 1981.
+[3] Joao Carreira, Pulkit Agrawal, Katerina Fragkiadaki, and Jitendra Malik. Human pose estimation with iterative error feedback. In CVPR, 2016.
+[4] Angel X. Chang, Thomas Funkhouser, Leonidas Guibas, Pat Hanrahan, Qixing Huang, Zimo Li, Silvio Savarese, Manolis Savva, Shuran Song, Hao Su, Jianxiong Xiao, Li Yi, and Fisher Yu. ShapeNet: An Information-Rich 3D Model Repository. Technical Report arXiv:1512.03012 [cs.GR], Stanford University — Princeton University — Toyota Technological Institute at Chicago, 2015.
+[5] Ö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 Proceedings of the International Conference on Medical Image Computing and Computer-Assisted Intervention, 2016.
+[6] David Eigen, Christian Puhrsch, and Rob Fergus. Depth map prediction from a single image using a multi-scale deep network. In NeurIPS, 2014.
+[7] Sovann En, Alexis Lechery, and Frédéric Jurie. Rpnet: an end-to-end network for relative camera pose estimation. In ECCV, 2018.
+[8] Amir Ghodrati, Marco Pedersoli, and Tinne Tuytelaars. Is 2d information enough for viewpoint estimation? In BMVC, 2014.
+[9] William Eric Leifur Grimson and Daniel P Huttenlocher. Object recognition by computer: the role of geometric constraints. MIT Press, 1990.
+[10] Daniel P Huttenlocher and Shimon Ullman. Recognizing solid objects by alignment with an image. International Journal of Computer Vision, 5(2), 1990.
+[11] Du Q Huynh. Metrics for 3d rotations: Comparison and analysis. Journal of Mathematical Imaging and Vision, 35(2):155-164, 2009.
+[12] Eldar Insafutdinov and Alexey Dosovitskiy. Unsupervised learning of shape and pose with differentiable point clouds. In NeurIPS, 2018.
+[13] Abhishek Kar, Christian Hane, and Jitendra Malik. Learning a multi-view stereo machine. In NeurIPS, 2017.
+[14] Kiriakos N Kutulakos and Steven M Seitz. A theory of shape by space carving. International Journal of Computer Vision, 2000.
+[15] Alina Kuznetsova, Sung Ju Hwang, Bodo Rosenhahn, and Leonid Sigal. Exploiting view-specific appearance similarities across classes for zero-shot pose prediction: a metric learning approach. In AAAI, 2016.
+[16] Ke Li, Bharath Hariharan, and Jitendra Malik. Iterative instance segmentation. In CVPR, 2016.
+[17] David G Lowe. Three-dimensional object recognition from single two-dimensional images. Artificial intelligence, 1987.
+
+[18] Siddharth Mahendran, Haider Ali, and René Vidal. 3d pose regression using convolutional neural networks. In ICCV, 2017.
+[19] Xingchao Peng, Baochen Sun, Karim Ali, and Kate Saenko. Learning deep object detectors from 3d models. In ICCV, 2015.
+[20] Bojan Pepik, Peter Gehler, Michael Stark, and Bernt Schiele. 3d 2 pm-3d deformable part models. In ECCV, 2012.
+[21] Lawrence Roberts. Machine Perception of 3D Solids. PhD thesis, Massachusetts Institute of Technology, 1965.
+[22] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In International Conference on Medical Image Computing and Computer-Assisted Intervention, 2015.
+[23] Roger N Shepard and Jacqueline Metzler. Mental rotation of three-dimensional objects. Science, 1971.
+[24] 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 ICCV, 2015.
+[25] Xingyuan Sun, Jiajun Wu, Xiuming Zhang, Zhoutong Zhang, Chengkai Zhang, Tianfan Xue, Joshua B Tenenbaum, and William T Freeman. Pix3d: Dataset and methods for single-image 3d shape modeling. In CVPR, 2018.
+[26] 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.
+[27] Michael J Tarr and Heinrich H Bülthoff. Image-based object recognition in man, monkey and machine. Cognition, 67, 1998.
+[28] Maxim Tatarchenko, Stephan R Richter, René Ranftl, Zhuwen Li, Vladlen Koltun, and Thomas Brox. What do single-view 3d reconstruction networks learn? In CVPR, 2019.
+[29] Jonathan Tremblay, Thang To, and Stan Birchfield. Falling things: A synthetic dataset for 3d object detection and pose estimation. In CVPR Workshops, 2018.
+[30] Jonathan Tremblay, Thang To, Balakumar Sundaralingam, Yu Xiang, Dieter Fox, and Stan Birchfield. Deep object pose estimation for semantic robotic grasping of household objects. In CoRL, 2018.
+[31] Hung-Yu Tseng, Shalini De Mello, Jonathan Tremblay, Sifei Liu, Stan Birchfield, Ming-Hsuan Yang, and Jan Kautz. Few-shot viewpoint estimation. In BMVC, 2019.
+[32] Shubham Tulsiani, Alexei A. Efros, and Jitendra Malik. Multi-view consistency as supervisory signal for learning shape and pose prediction. In CVPR, 2018.
+[33] Shubham Tulsiani and Jitendra Malik. Viewpoints and keypoints. In CVPR, 2015.
+[34] Shubham Tulsiani, Tinghui Zhou, Alexei A. Efros, and Jitendra Malik. Multi-view supervision for single-view reconstruction via differentiable ray consistency. In CVPR, 2017.
+[35] Hsiao-Yu Fish Tung, Ricson Cheng, and Katerina Fragkiadaki. Learning spatial common sense with geometry-aware recurrent networks. In CVPR, 2019.
+[36] Jiajun Wu, Yifan Wang, Tianfan Xue, Xingyuan Sun, Bill Freeman, and Josh Tenenbaum. Marrnet: 3d shape reconstruction via 2.5d sketches. In NeurIPS, 2017.
+
+[37] Jiajun Wu, Tianfan Xue, Joseph J Lim, Yuandong Tian, Joshua B Tenenbaum, Antonio Torralba, and William T Freeman. Single image 3d interpreter network. In ECCV, 2016.
+[38] Yongqin Xian, Bernt Schiele, and Zeynep Akata. Zero-shot learning-the good, the bad and the ugly. In CVPR, 2017.
+[39] Yu Xiang, Roozbeh Mottaghi, and Silvio Savarese. Beyond Pascal: A benchmark for 3d object detection in the wild. In WACV, 2014.
+[40] Yu Xiang, Tanner Schmidt, Venkatraman Narayanan, and Dieter Fox. PoseCNN: A convolutional neural network for 6d object pose estimation in cluttered scenes. In RSS, 2018.
+[41] Xinchen Yan, Jasmined Hsu, Mohammad Khansari, Yunfei Bai, Arkanath Pathak, Abhinav Gupta, James Davidson, and Honglak Lee. Learning 6-dof grasping interaction via deep geometry-aware 3d representations. In ICRA, 2018.
+[42] Xinchen Yan, Jimei Yang, Ersin Yumer, Yijie Guo, and Honglak Lee. Perspective transformer nets: Learning single-view 3d object reconstruction without 3d supervision. In NeurIPS, 2016.
+[43] Jimei Yang, Scott E Reed, Ming-Hsuan Yang, and Honglak Lee. Weakly-supervised disentangling with recurrent transformations for 3d view synthesis. In Advances in Neural Information Processing Systems, pages 1099-1107, 2015.
+[44] Xiuming Zhang, Zhoutong Zhang, Chengkai Zhang, Joshua B Tenenbaum, William T Freeman, and Jiajun Wu. Learning to Reconstruct Shapes from Unseen Classes. In NeurIPS, 2018.
+[45] Qingnan Zhou and Alec Jacobson. Thingi10k: A dataset of 10,000 3d-printing models. arXiv preprint arXiv:1605.04797, 2016.
+[46] Xingyi Zhou, Arjun Karpur, Linjie Luo, and Qixing Huang. Starmap for category-agnostic keypoint and viewpoint estimation. In ECCV, 2018.
\ No newline at end of file
diff --git a/novelobjectviewpointestimationthroughreconstructionalignment/images.zip b/novelobjectviewpointestimationthroughreconstructionalignment/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..fd1caaf26fccf5844ec4ad493849aa9f0d795805
--- /dev/null
+++ b/novelobjectviewpointestimationthroughreconstructionalignment/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1fd56ee2dec3de8e463ad8355cc428f9b32c94797d5576069f9abed3c31dbd91
+size 375642
diff --git a/novelobjectviewpointestimationthroughreconstructionalignment/layout.json b/novelobjectviewpointestimationthroughreconstructionalignment/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..2ee16938d51727acb452052bed32643a01dc0a69
--- /dev/null
+++ b/novelobjectviewpointestimationthroughreconstructionalignment/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6e9dae5cf69901f7fd4c5dfef910e4d0089b12988c119cfb3a28db5cb7fc9ab7
+size 284491
diff --git a/novelviewsynthesisofdynamicsceneswithgloballycoherentdepthsfromamonocularcamera/c72ce831-d81b-439a-8dcb-a6520e3b45cb_content_list.json b/novelviewsynthesisofdynamicsceneswithgloballycoherentdepthsfromamonocularcamera/c72ce831-d81b-439a-8dcb-a6520e3b45cb_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..2df3d0a07a575574e19b8fb362c2878ab297661b
--- /dev/null
+++ b/novelviewsynthesisofdynamicsceneswithgloballycoherentdepthsfromamonocularcamera/c72ce831-d81b-439a-8dcb-a6520e3b45cb_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:63c734ac10db74a3db2fda1f8499c081241cd8cad74abfa57c4bda0774d5fc7b
+size 77390
diff --git a/novelviewsynthesisofdynamicsceneswithgloballycoherentdepthsfromamonocularcamera/c72ce831-d81b-439a-8dcb-a6520e3b45cb_model.json b/novelviewsynthesisofdynamicsceneswithgloballycoherentdepthsfromamonocularcamera/c72ce831-d81b-439a-8dcb-a6520e3b45cb_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..cc839ded127c01ba277413931b2f499227cb20a1
--- /dev/null
+++ b/novelviewsynthesisofdynamicsceneswithgloballycoherentdepthsfromamonocularcamera/c72ce831-d81b-439a-8dcb-a6520e3b45cb_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b4b1b1cd0389e250560fb06de4368d8d9f5b2e63b48692c6ff4fc4ed33193d2b
+size 98303
diff --git a/novelviewsynthesisofdynamicsceneswithgloballycoherentdepthsfromamonocularcamera/c72ce831-d81b-439a-8dcb-a6520e3b45cb_origin.pdf b/novelviewsynthesisofdynamicsceneswithgloballycoherentdepthsfromamonocularcamera/c72ce831-d81b-439a-8dcb-a6520e3b45cb_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..dba6b2c1f54acde4dc1e9c2247b888de3c3a79a7
--- /dev/null
+++ b/novelviewsynthesisofdynamicsceneswithgloballycoherentdepthsfromamonocularcamera/c72ce831-d81b-439a-8dcb-a6520e3b45cb_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1694585d2517503b93ddabc722550924aa8dfa1beda8b6fb3489b5a854c363e7
+size 3472968
diff --git a/novelviewsynthesisofdynamicsceneswithgloballycoherentdepthsfromamonocularcamera/full.md b/novelviewsynthesisofdynamicsceneswithgloballycoherentdepthsfromamonocularcamera/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..ff0c663c0ec8bbe42a5f23695aea0544e0341559
--- /dev/null
+++ b/novelviewsynthesisofdynamicsceneswithgloballycoherentdepthsfromamonocularcamera/full.md
@@ -0,0 +1,350 @@
+# Novel View Synthesis of Dynamic Scenes with Globally Coherent Depths from a Monocular Camera
+
+Jae Shin Yoon†
+
+Kihwan Kim
+
+Orazio Gallo
+
+Hyun Soo Park†
+
+Jan Kautz#
+
+†University of Minnesota
+
+NVIDIA
+
+
+Figure 1: Dynamic Scene View Synthesis: (Left) A dynamic scene is captured from a monocular camera from the locations $\mathbf{V}_0$ to $\mathbf{V}_k$ . Each image captures people jumping at each time step ( $\mathbf{t} = 0$ to $\mathbf{t} = k$ ). (Middle) A novel view from an arbitrary location between $\mathbf{V}_0$ and $\mathbf{V}_1$ (denoted as an orange frame) is synthesized with the dynamic contents observed at the time $\mathbf{t} = k$ . The estimated depth at $\mathbf{V}_k$ is shown in the inset. (Right) For the novel view (orange frame), we can also synthesize the dynamic content that appeared across any views in different time (traces of the foreground in each time step are shown). More results are shown in Sec. 5 and the supplementary document and video.
+
+
+
+
+
+# Abstract
+
+This paper presents a new method to synthesize an image from arbitrary views and times given a collection of images of a dynamic scene. A key challenge for the novel view synthesis arises from dynamic scene reconstruction where epipolar geometry does not apply to the local motion of dynamic contents. To address this challenge, we propose to combine the depth from single view (DSV) and the depth from multi-view stereo (DMV), where DSV is complete, i.e., a depth is assigned to every pixel, yet view-variant in its scale, while DMV is view-invariant yet incomplete. Our insight is that although its scale and quality are inconsistent with other views, the depth estimation from a single view can be used to reason about the globally coherent geometry of dynamic contents. We cast this problem as learning to correct the scale of DSV, and to refine each depth with locally consistent motions between views to form a coherent depth estimation. We integrate these tasks into a depth fusion network in a self-supervised fashion. Given the fused depth maps, we synthesize a photorealistic virtual view in a specific location and time with our deep blending network that completes the scene and renders the virtual view. We evaluate our method of depth estimation and view synthesis on diverse real-world dynamic scenes and show the outstanding performance over existing methods.
+
+# 1. Introduction
+
+Novel view synthesis [8] is one of the core tasks in computer vision and graphics, and has been used for many visual effects and content creation applications such as cinematograph [4, 26], video stabilization [28, 21], and bullet time visual effect [60]. In this paper, we focus on view synthesis of dynamic scenes observed from a moving monocular camera as shown in Figure 1. Until now, most of existing view synthesis methods are largely limited to static scenes [8, 60, 9, 11, 56, 59] because they commonly rely on geometric assumptions: in principle, dynamic visual content such as people, pets, and vehicles are considered outliers despite being a major focus in videography on social media and otherwise.
+
+Our problem shares the challenge of dynamic scene reconstruction: recovering the underlying 3D geometry of dynamic contents from a moving monocular camera is fundamentally ill-posed [33]. We address this challenge by leveraging the following complementary visual and motion cues. (1) Multi-view images can be combined to reconstruct incomplete yet view-invariant static scene geometry1, which enables synthesizing a novel view image of static contents in a geometrically consistent way.
+(2) Relative depth predicted from a single image provides view-variant [6] yet complete dynamic scene geometry, which allows enforcing locally consistent 3D scene flow for the foreground dynamic contents.
+
+
+Figure 2: Images of a dynamic scene are used to predict and estimate the depth from single view (DSV) and the depth from multiview stereo (DMV). Our depth fusion network (DFNet) fuses the individual strengths of DSV and DMV (Sec. 3.1) to produce a complete and view-invariant depth by enforcing geometric consistency. The computed depth is used to synthesize a novel view and our DeepBlnder network refines the synthesized image (Sec. 3.2).
+
+We combine these cues by learning a nonlinear scale correction function that can upgrade a time series of single view geometries to form a coherent 4D reconstruction. To disambiguate the geometry of the foreground dynamic contents, we find their simplest motion description in 3D (i.e., slow and smooth motion [49, 40]), which generates minimal stereoscopic disparity when seen by a novel view [5].
+
+We model the scale correction function using a depth fusion network that takes input images, view-variant depth from single view (DSV), and incomplete yet view-invariant depth from a multi-view stereo (DMV) algorithm, and outputs complete and view-invariant depth. The network is self-supervised by three visual signals: (i) the static regions of the DSV must be aligned with a DMV; (ii) the output depth of dynamic regions must be consistent with the relative depth of each DSV; and (iii) the estimated scene flow must be minimal and locally consistent. With the predicted depths that are geometrically consistent across views, we synthesize a novel view using a self-supervised rendering network that produces a photorealistic image in the presence of missing data with adversarial training. An overview of our pipeline is shown in Figure 2.
+
+We show that the novel view synthesis with our depth prediction method is highly effective in generating an unseen image. Further, the rendering network seamlessly blends foreground and background, which outperforms existing synthesis approaches quantitatively and qualitatively.
+
+Our key contributions are as follows:
+
+- A novel depth fusion network that models a scale correction function, which completes the depth maps of view-invariant dynamic scene geometry with locally consistent motions.
+- A rendering network that combines foreground and background regions in a photorealistic way using adversarial training.
+- A real-world dataset captured by fixed baseline multiview videos and corresponding benchmark examples for dynamic scene view synthesis.
+
+# 2. Related Work
+
+For the view synthesis of a dynamic scene from images with baselines, the depth and foreground motion from each view need to be consistent across the views. Here we review view synthesis, depth estimation, and scene reconstruction techniques, and discuss the relations to our method.
+
+Novel View Synthesis The problem of novel view synthesis is strongly tied to multiview 3D reconstruction as it requires transporting pixels across views through the geometry of scenes. For a static scene, multiview geometry [15] applies, which allows triangulating correspondences given the calibrated cameras. This leads to dense reconstruction (multiview stereo [14]), which allows continuous view synthesis using a finite number of images [13]. In principle, the triangulation requires a correspondence from at least two views. This requirement often cannot be met in particular for occluded regions, which results in an incomplete view synthesis. Such issue escalates as the baseline between images increases. Various scene priors have been used to mitigate this issue. A scene that can be expressed as a set of planar surfaces can be reconstructed even with a single view image [45, 27], and a scene with known object categories can be reconstructed with the shape priors [16]. For dynamic scene view synthesis, synchronized multiple cameras are used where the same geometric principle can be applied [60, 29, 18]. Recently, single view depth prediction that is learned from a large image repository is used to complete the scene geometry [37, 25, 23], and even enables to extrapolate the views beyond the range of camera motion [46, 9]. More recent approach, which predicts the depth from single view with human specific priors, realizes the view synthesis of dynamic scene of moving people from a monocular camera [24]. Our approach is inspired by learning based scene completion [12, 37, 59, 24] while applying to a dynamic scene with geometric consistency without any category-specific priors.
+
+Monocular Dynamic Scene Reconstruction Dynamic scene reconstruction using a moving monocular camera, without a prior assumption of scenes, is very challenging and ill-posed, similar to reconstructing a scene with a single view image. For a temporal prior, trajectory triangulation extends the concept of point triangulation by representing scene trajectories using a family of algebraic groups, e.g., line/conic [3], homography tensors on the plane [44, 51], polynomials [19], and discrete cosine transform basis [1, 33]. For spatial prior, a shape can be expressed by a linear combination of compact shape basis vectors [7], which is highly effective to describe constrained deformation such as face. A key challenge is learning shape basis vectors for unknown objects, which requires additional spatial priors such as orthogonality of basis vectors [53], temporal smoothness [48, 32, 49], articulation constraint using joint subspace [54], local piecewise rigid-
+
+
+Figure 3: Depth Fusion Network (DFNet) predicts a complete and view-invariant depth map by fusing DSV and DMV with the image. DFNet is self-supervised by minimizing the background depth consistency with DMV $(L_{g})$ , the relative depth consistency with DSV $(L_{l})$ , 3D scene flow $(L_{s})$ , and spatial irregularity $(L_{e})$ .
+
+ity [10], and learning from training data [20]. For completeness, image regions are reconstructed independently using shape basis [41] or local patches [22], which can be stitched together to form complete scene reconstruction. Further, the spatial and temporal priors can be combined to produce dense correspondences, resulting in complete 4D reconstruction [17]. Humans are a special case of spatial constraints, which allow markerless motion capture from a monocular camera [52, 35, 2]. Unlike the explicit spatial priors, our work makes use of general geometric priors and motion constraint to reconstruct a complete and view-invariant geometry of general dynamic scenes, which allows us to generate realistic spatio-temporal view synthesis.
+
+# 3. Approach
+
+We cast the novel view synthesis problem as image warping from input source views to a virtual view using underlying 4D reconstruction, i.e.,
+
+$$
+\mathbf {J} ^ {v} \left(W _ {r \rightarrow v} (\mathbf {x})\right) = \mathbf {I} ^ {r} (\mathbf {x}), \tag {1}
+$$
+
+where $\mathbf{J}^v$ is the synthesized image from an arbitrary virtual view $v$ ( $v$ can be a source viewpoint), $W_{r\rightarrow v}$ is a warping function, and $\mathbf{I}^r$ is the $r^{\mathrm{th}}$ source image.
+
+For view synthesis of static scene, the warping function can be described as:
+
+$$
+\mathbf {y} = W _ {r \rightarrow v} (\mathbf {x}; \mathbf {D} ^ {r}, \Pi^ {r}, \Pi^ {v}), \tag {2}
+$$
+
+where $\Pi^r$ and $\Pi^v$ are the projection matrices at the $r^{\mathrm{th}}$ and $v^{\mathrm{th}}$ viewpoints. The warping function forms the warped coordinates $\mathbf{y}$ by reconstructing the view-invariant 3D geometry using the depth $(\mathbf{D}^r)$ and projection matrix at the
+
+$r^{\mathrm{th}}$ viewpoint, and projecting onto the $v^{\mathrm{th}}$ viewpoint. For instance, this warping function can generate the $i^{\mathrm{th}}$ source image from the $j^{\mathrm{th}}$ source image, i.e., $\mathbf{I}^i (W_{j\rightarrow i}) = \mathbf{I}^j$
+
+For view synthesis of dynamic scene, the warping function can be generalized to include the time-varying geometry using the depth $\mathbf{D}^{r_t}$ , i.e.,
+
+$$
+\mathbf {y} = W _ {r _ {t} \rightarrow v} (\mathbf {x}; \mathbf {D} ^ {r _ {t}}, \Pi^ {r}, \Pi^ {v}), \tag {3}
+$$
+
+where $r_t$ is the time dependent view index, and $t$ is the time instant. Note that for a moving monocular camera, the view is a function of time. Unlike the static scene warping $W_{r \to v}$ in Eq. (2), we cannot synthesize $i^{\mathrm{th}}$ source image from the $j^{\mathrm{th}}$ source image because of the time-varying geometry $\mathbf{D}^{r_t}$ , i.e., $\mathbf{I}^i(W_{j \to i}) \neq \mathbf{I}^j$ .
+
+With these two warping functions, the dynamic scene view synthesis can be expressed as:
+
+$$
+\mathbf {J} = \phi \left(\left\{\mathbf {J} ^ {v} \left(W _ {r \rightarrow v}\right)\right\} _ {r}, \mathbf {J} ^ {v, t} \left(W _ {r _ {t} \rightarrow v}\right); \mathcal {M} ^ {v}\right), \tag {4}
+$$
+
+where $\{\mathbf{J}^v (W_{r\to v})\}_r$ is a set of static scene warping from all source viewpoints, and $\mathbf{J}^{v,t}(W_{r_t\rightarrow v,t})$ is the warping of dynamic contents from the source image of the $t^{\mathrm{th}}$ time instant. $\mathcal{M}^v$ is the set of the coordinates belonging to dynamic contents. $\phi$ is the rendering function that refines the warped images to complete the view synthesis.
+
+In Eq. (4), two quantities are unknowns: the depth from each source view $\mathbf{D}^{r_t}$ and the rendering function $\phi$ . We formulate these two quantities in Sec. 3.1 and Sec. 3.2.
+
+# 3.1. Globally Coherent Depth from Dynamic Scenes
+
+Our conjecture is that there exists a scale correction function that can upgrade a complete view-variant depth $\mathbf{D}_s^{r_t}$
+
+from the single view prediction (DSV) to the depth of the view-invariant 3D geometry $\widehat{\mathbf{D}}^{rt}$ :
+
+$$
+\widehat {\mathbf {D}} ^ {r _ {t}} = \psi \left(\mathbf {D} _ {s} ^ {r _ {t}}\right), \tag {5}
+$$
+
+where $\psi$ is the scale correction function. Ideally, when a scene is stationary, the upgraded depth is expected to be identical to the depth $\mathbf{D}_m^r$ from view-invariant geometry, e.g., depth from multiview stereo (DMV), with uniform scaling, i.e., $\mathbf{D}_m^r = \psi (\mathbf{D}_s) = \alpha \mathbf{D}_s + \beta$ where $\alpha$ and $\beta$ are scalar and bias. When a scene is dynamic, the linear regression of such scale and bias is not applicable. We learn a nonlinear scale correction function that possesses the following three properties.
+
+First, for the static scene, the upgraded depth approximates DMV:
+
+$$
+\mathbf {D} _ {m} ^ {r} (\mathbf {x}) \approx \psi \left(\mathbf {D} _ {s} ^ {r _ {t}} (\mathbf {x})\right) \quad \text {f o r} \mathbf {x} \notin \mathcal {M} ^ {r _ {t}}, \tag {6}
+$$
+
+where $\mathbf{x}$ is the coordinate of pixels belonging to the static background.
+
+Second, for the dynamic contents, the upgraded depth preserves the relative depth from DSV:
+
+$$
+g \left(\mathbf {D} _ {s} ^ {r _ {t}} (\mathbf {x})\right) \approx g \left(\psi \left(\mathbf {D} _ {s} ^ {r _ {t}} (\mathbf {x})\right)\right) \quad \text {f o r} \mathbf {x} \in \mathcal {M} ^ {r _ {t}}, \tag {7}
+$$
+
+where $g$ measures the scale invariant relative gradient of depth, i.e.,
+
+$$
+g (\mathbf {D}; \mathbf {x}, \Delta \mathbf {x}) = \frac {\mathbf {D} (\mathbf {x} + \Delta \mathbf {x}) - \mathbf {D} (\mathbf {x})}{| \mathbf {D} (\mathbf {x} + \Delta \mathbf {x}) | + | \mathbf {D} (\mathbf {x}) |}. \tag {8}
+$$
+
+We use multi-scale neighbors $\mathbf{x} + \Delta \mathbf{x}$ to constrain local and global relative gradients.
+
+Third, 3D scene motion induced by the upgraded depths is smooth and slow [50], i.e., minimal scene flow:
+
+$$
+\mathbf {p} (\mathbf {x}; \mathbf {D} ^ {r _ {t}}, \Pi^ {r _ {t}}) \approx \mathbf {p} \left(F _ {r _ {t} \rightarrow n _ {t}} (\mathbf {x}); \mathbf {D} ^ {n _ {t}}, \Pi^ {n _ {t}}\right), \tag {9}
+$$
+
+where $F_{r_t\to n_t}$ is the optical flow from the $r_t^{\mathrm{th}}$ to $n_t^{\mathrm{th}}$ source images. $\mathbf{p}(\mathbf{x};\mathbf{D})\in \mathbb{R}^3$ is the reconstructed point in the world coordinate using the depth $\mathbf{D}$ :
+
+$$
+\mathbf {p} (\mathbf {x}; \mathbf {D}, \Pi) = \psi (\mathbf {D} (\mathbf {x})) \mathbf {R} ^ {\top} \mathbf {K} ^ {- 1} \widetilde {\mathbf {x}} + \mathbf {C} \tag {10}
+$$
+
+where $\widetilde{\mathbf{x}}$ is the homogeneous representation of $\mathbf{x}$ , and $\mathbf{R} \in SO(3)$ , $\mathbf{C} \in \mathbb{R}^3$ , and $\mathbf{K}$ are the camera rotation matrix, camera optical center, and camera intrinsic parameters from the projection matrix $\Pi$ .
+
+Depth Fusion Network (DFNet) We enable the scale correction function $\psi$ using a depth fusion network that takes as input DSV, DMV, and image $\mathbf{I}^{r_t}$ :
+
+$$
+\widehat {\mathbf {D}} ^ {r _ {t}} = \psi \left(\mathbf {D} _ {s} ^ {r _ {t}}, \mathbf {D} _ {m} ^ {r _ {t}}, \mathbf {I} ^ {r _ {t}}; \mathbf {w}\right), \tag {11}
+$$
+
+where the network is parametrized by its weights $\mathbf{w}$ . To learn $\mathbf{w}$ , we minimize the following loss:
+
+$$
+L (\mathbf {w}) = L _ {g} + \lambda_ {l} L _ {l} + \lambda_ {s} L _ {s} + \lambda_ {e} L _ {e}, \tag {12}
+$$
+
+
+Figure 4: View synthesis pipeline: Given the warped foreground (FG) and background (BG) through the depths and masks, we complete the dynamic scene view synthesis using a rendering network called DeepBlender that predicts the missing region and refines the artifacts.
+
+where $\lambda$ controls the importance of each loss. $L_{g}$ measures the difference between DMV and the estimated depth in Eq. (6) for static scene:
+
+$$
+L _ {g} = \left\| \widehat {\mathbf {D}} ^ {r _ {t}} (\mathbf {x}) - \mathbf {D} _ {m} ^ {r _ {t}} (\mathbf {x}) \right\| \quad \text {f o r} \mathbf {x} \notin \mathcal {M} ^ {r _ {t}},
+$$
+
+$L_{l}$ compares the scale invariant depth gradient between DSV and the estimated depth in Eq. (7):
+
+$$
+L _ {l} = \left\| g \left(\widehat {\mathbf {D}} ^ {r _ {t}} (\mathbf {x})\right) - g \left(\mathbf {D} _ {s} ^ {r _ {t}}\right) (\mathbf {x}) \right\| \quad \text {f o r} \quad \mathbf {x} \in \mathcal {M} ^ {r _ {t}},
+$$
+
+and $L_{s}$ minimize the induced 3D scene motion for entire pixel coordinates in Eq. (9):
+
+$$
+L _ {s} = \| \mathbf {p} (\mathbf {x}; \mathbf {D} ^ {r _ {t}}, \Pi^ {r _ {t}}) - \mathbf {p} \left(F _ {r _ {t} \rightarrow n _ {t}} (\mathbf {x}); \mathbf {D} ^ {n _ {t}}, \Pi^ {n _ {t}}\right) \|.
+$$
+
+In conjunction with self-supervision, we further minimize the Laplacian of the estimated depth as regularization, i.e.,
+
+$$
+L _ {e} = \left\| \nabla^ {2} \widehat {\mathbf {D}} ^ {r _ {t}} (\mathbf {x}) \right\| ^ {2} + \lambda_ {f} \left\| \nabla^ {2} \widehat {\mathbf {D}} ^ {r _ {t}} (\bar {\mathbf {x}}) \right\| ^ {2} \tag {13}
+$$
+
+where $\mathbf{x} \notin \mathcal{M}^{r_t}$ , $\bar{\mathbf{x}} \in \mathcal{M}^{r_t}$ , and $\lambda_f$ balances the spatial smoothness between the static and dynamic regions.
+
+The overview of our self-supervision pipeline and the network architecture are described in Figure 3. DFNet extracts the visual features from DSV and DMV using the same encoder in conjunction with the image. With the visual features, DFNet generates a complete and view invariant depth map that is geometrically consistent. To preserve the local visual features, skip connections between the feature extractor and depth generator are used.
+
+# 3.2. Dynamic Scene View Synthesis
+
+Given a set of warped static scenes from all source views $\{\mathbf{J}^v\}_r$ , we construct a global background $\mathbf{J}_*^v$ based on the baseline between the virtual and source cameras, i.e., assign the pixel value from the warped source view that has the shortest baseline with virtual camera. With $\mathbf{J}_*^v$ and the warped dynamic contents $\mathbf{J}^{v,t}$ from a single time instant, we model the synthesis function $\phi$ in Eq. (4) as follows:
+
+$$
+\phi \left(\mathbf {J} _ {*} ^ {v}, \mathbf {J} ^ {v, t}; \mathcal {M} ^ {v}\right) = \mathbf {J} _ {*} ^ {v} (\mathbf {x}) + \mathbf {J} ^ {v, t} (\mathbf {y}) + \widetilde {\phi} _ {\theta} \left(\mathbf {J} _ {*} ^ {v}, \mathbf {J} ^ {v, t}\right), \tag {14}
+$$
+
+where $\mathbf{x} \notin \mathcal{M}^{v,t}$ and $\mathbf{y} \in \mathcal{M}^{v,t}$ . $\widetilde{\phi}_{\theta}$ is the blending residual that fills the missing regions (unlike a static scene, there exists the regions that are not seen by any source views for a dynamic scene) and refines the synthesized image. We model this blending residual $\widetilde{\phi}_{\theta}$ using our rendering network.
+
+DeepBlender Network The DeepBlender predicts the blending residual $\widetilde{\phi}_{\theta}$ from the inputs of a warped dynamic scene $\mathbf{J}^{v,t}$ and a globally modeled static scene $\mathbf{J}_*^v$ as shown in Figure 4. It combines visual features extracted from $\mathbf{J}^{v,t}$ and $\mathbf{J}_*^v$ to form a decoder with skip connections. We learn this rendering function using source images with self-supervision. Each image is segmented into background and foreground with the corresponding foreground mask. We synthetically generate the missing regions near the foreground boundary and image border, and random pixel noises across the scenes. From the foreground and background images with missing regions and pixel noises, the DeepBlender is trained to generate the in-painting residuals. We incorporate an adversarial loss to produce photorealistic image synthesis:
+
+$$
+L \left(\mathbf {w} _ {\theta}\right) = L _ {\text {r e c}} + \lambda_ {\text {a d v}} L _ {\text {a d v}}, \tag {15}
+$$
+
+where $L_{\mathrm{rec}}$ is the reconstruction loss (difference between the estimated blending residual and ground truth), and $L_{\mathrm{adv}}$ is the adversarial loss [34]. The overview of our view synthesis pipeline is described in Figure 4.
+
+# 4. Implementation Details
+
+DFNet is pre-trained on a synthetic dataset [30] (which provides ground-truth optical flow, depth, and foreground mask) for better weight initialization during the self-supervision. To simulate the characteristic of the real data from synthetic, we partially remove the depth around the foreground region and add the depth noise across the scenes with $5\%$ tolerance of the variance at every training iteration. The same self-supervision loss as Eq. 15 is used to pretrain the network. To avoid the network depth scale confusion, we use the normalized inverse depth [23] for both DMV and DSV and recover the scale of the fused depth based on the original scale of DMV. To obtain DSV and DMV, we use existing single view prediction [23] and multiview stereo method [43]. In Eq. (8), we use five multiscale neighbors, i.e., $\Delta \mathbf{x} = \{1,2,4,8,16\}$ to consider both local and global regions. We use PwCNet [47] to compute the optical flow in Eq. (9), where the outliers were handled by forward-backward flow consistency. When enforcing the scene flow loss, we use $\pm 2$ neighboring camera views, i.e., $n_t = r_t \pm 2$ . We extract the foreground mask using interactive segmentation tools [39]. The foreground masks are manually specified for all baselines in the evaluation, while existing foreground segmentation approaches [38] can be used as a complementary tool as shown in Figure 7.
+
+We also pre-train the DeepBlender using video object segmentation dataset [36]. To create the synthetic residual, we randomly generate the seams and holes around the foreground using mask morphology and superpixel, and remove one side of the image boundary up to 30-pixel thickness. The loss in Eq. 15 is used for pre-training as well. When we warp an image to a virtual view, we check bidirectional warping consistency to prevent the pixel holes. For each image warping, we refine the depth using the bilateral weighted median filters [57]. As shown in Figure 4, we handle the foreground and background separately to prevent the pixel mixing problem around the object boundary.
+
+# 5. Experiments
+
+We evaluate our method with various dynamic scenes.
+
+
+Figure 5: Camera rig.
+
+Dynamic Scene Dataset We collect dynamic scenes using two methods. (1) Moving monocular camera: short-term dynamic events $(\sim 5s)$ are captured by a hand-held monocular moving camera (Samsung Galaxy Note 10) with $60\mathrm{Hz}$
+
+framerate and $1920 \times 1080$ resolution. We sub-sample the sequence if the object motion is not salient, and therefore, the degree of the scene motion is significantly larger than that of the camera egomotion where quasi-static dynamic reconstruction does not apply. Four dynamic scenes are captured, which includes human activity, human-object interaction, and animal movement (see the supplementary video). These scenes are used for the qualitative evaluation, where we use half-resolution inputs. (2) Stationary multiview cameras: 8 scenes are captured by a static camera rig with 12 cameras (GoPro Black Edition), where the ground truth of depth estimation and view synthesis are available for the quantitative evaluation. The cameras are located at two levels, and at each level, 6 cameras are evenly distributed with $0.22\mathrm{m}$ baseline as shown in Figure 5. All cameras are manually synchronized. The dataset is categorized into following: (1) Human: a single or multiple people show their dynamic motion, e.g., dynamic facial expression and body motion. (2) Interaction: a person interacts with objects, e.g., umbrella, balloon, and skate. (3) Vehicle: a truck rigidly move from the right side of the road to the left. (4) Stop motion: a doll is sequentially captured in the different location. When testing, we use a set of images sampled from each camera at different time instant to simulate a moving monocular camera. Given the set of collected images, we calibrate the intrinsic and extrinsic parameters of the moving camera using structure-from-motion [42].
+
+Quantitative Evaluation Metric We evaluate the accuracy of depth estimation and view synthesis using the multiview dataset. (1) Depth estimation: given the estimated depth,
+
+| F+B / F-only | Jumping | Skating | Truck | DynaFace | Umbrella | Balloon1 | Balloon2 | Teadybear | Avg. |
| MVS [43] | 0.53 / 2.12 | 0.29 / 6.81 | 0.52 / 2.94 | 0.05 / 0.21 | 0.35 / 4.70 | 0.13 / 1.72 | 0.04 / 0.31 | 0.06 / 0.92 | 0.24 / 2.46 |
| RMVSNet [55] | 0.61 / 1.55 | 0.76 / 1.56 | 0.84 / 2.43 | 2.24 / 1.57 | 0.67 / 5.24 | 0.23 / 1.40 | 0.13 / 0.38 | 0.58 / 0.89 | 0.75 / 1.87 |
| MonoDepth [23] | 1.79 / 2.55 | 1.34 / 2.02 | 2.62 / 3.86 | 0.39 / 0.74 | 2.69 / 4.75 | 1.07 / 1.88 | 1.06 / 0.99 | 0.76 / 0.28 | 1.46 / 2.13 |
| Sparse2Dense [31] | 1.35 / 3.26 | 1.35 / 10.66 | 2.15 / 7.60 | 0.20 / 0.34 | 1.35 / 6.40 | 0.53 / 3.03 | 0.48 / 0.65 | 0.32 / 0.90 | 0.96 / 4.10 |
| DFNet-Lg | 1.26 / 1.31 | 0.81 / 0.76 | 1.60 / 1.24 | 0.26 / 0.91 | 2.19 / 1.98 | 0.93 / 1.36 | 0.53 / 0.30 | 1.91 / 0.97 | 1.18 / 1.10 |
| DFNet-Ll | 0.46 / 1.58 | 0.15 / 1.38 | 0.62 / 3.34 | 0.09 / 0.26 | 0.58 / 3.14 | 0.15 / 1.57 | 0.08 / 0.30 | 0.16 / 0.67 | 0.28 / 1.53 |
| DFNet-Le | 0.38 / 0.93 | 0.14 / 0.47 | 0.52 / 1.09 | 0.07 / 0.12 | 0.52 / 2.48 | 0.15 / 1.20 | 0.06 / 0.24 | 0.17 / 0.48 | 0.26 / 0.87 |
| DFNet-Ls | 0.37 / 1.09 | 0.14 / 0.51 | 0.53 / 1.11 | 0.07 / 0.13 | 0.59 / 2.54 | 0.16 / 1.18 | 0.07 / 0.25 | 0.16 / 0.52 | 0.26 / 0.91 |
| DFNet | 0.35 / 0.76 | 0.12 / 0.40 | 0.41 / 0.83 | 0.03 / 0.08 | 0.37 / 1.90 | 0.12 / 1.11 | 0.05 / 0.23 | 0.17 / 0.32 | 0.20 / 0.70 |
+
+Table 1: Results of quantitative evaluation for the task of depth estimation from dynamic scenes. RMSE in the metric scale is used for evaluation. F and B represent the foreground and background, respectively. The lower is the better.
+
+
+Figure 6: Qualitative comparison of the dynamic scene depth estimation from each method.
+
+we measure root mean square error (RMSE) by comparing to the ground-truth depth computed by multiview stereo. The error is represented in metric scale (m), i.e., the scale of the estimated depth is upgraded to the metric space using the physical length of the camera baseline. We exclude the region that cannot be reconstructed by multiview stereo. (2) View synthesis: we measure the mean of the optical flow magnitude from the ground-truth image to the synthesized one to validate the view invariant property of the depth map. Ideally, it should be close to 0 with the perfect depth map. Additionally, we measure the perceptual similarity [58] (i.e., the distance of VGG features) with the ground-truth to evaluate the visual plausibility of the synthesized view, where its range is normalized into [0, 1] (the lower is the better).
+
+Baselines and Ablation Study We compare our depth estimation and view synthesis methods with a set of base
+
+line approaches. For the depth evaluation, we compare our method with four baselines: 1) Multiview stereo (MVS [43]) assumes that a scene is stationary. For the pixel of which MVS failed to measure the depth, we assign the average of valid depth. 2) RMVSNet [55] is a learning based multiview stereo algorithm. 3) MonoDepth [23] predicts the depth from a single view image. As it produces the normalized depth, we re-scale the predicted depth by using the mean and standard deviation from MVS depth. 4) Sparse2Dense [31] completes the depth given an incomplete depth estimation, where we use MVS depth as an input. As this method requires the metric depth, we upgrade the estimated depth to the metric space using the physical length of the camera baseline. In conjunction with comparative evaluations, we conduct an ablation study to validate the choice of losses.
+
+For the view synthesis evaluation, we compare our
+
+view warping method (bi-directional 3D warping) with as-similar-as-possible warping [28] which warps an image by estimating grid-wise affine transforms. The correspondences of the warping are computed by projecting the estimated depth, i.e., transporting pixels in a source image to a novel view through the view-invariant depth. In Table 2, we denote bi-directional warping followed by the DeepBlender refinement as B3W, and as-similar-as-possible warping followed by the DeepBlender as ASAP. Note that the DeepBlender refinement is applied to all methods except for DFNet+B3W-DeepBlender which evaluates the effect of the refinement by eliminating the DeepBlender. On top of the comparison with different warping methods, we also test all possible combination of depth estimation methods with view warping methods as listed in Table 2. It quantifies how the quality of depth maps affect the view synthesis results.
+
+Dynamic Scene Depth Estimation In Table 1, we summarize the accuracy of dynamic scene depth estimation results evaluated on: 1) the entire scene, and 2) the only dynamic contents. For the entire scene, our method shows the best results on average, followed by MVS with $0.04\mathrm{m}$ accuracy gap. In the sequence of umbrella and teadybear, MVS shows the better accuracy for the entire scene than ours due to the highly occupant background area as shown in Figure 6, i.e., the depth estimation of dynamic contents much less contributes to depth accuracy evaluation than one of the background. From the evaluation on the only dynamic contents, our method (DFNet) also shows the best result with the noticeable accuracy improvement $(1.17\mathrm{m})$ from the second best method (MonoDepth).
+
+While the relative depth of MonoDepth is well reflective of the ground-truth, its depth range is often biased to a specific range, e.g., the foreground object is located much closer to the background scenes. Sparse2Dense does not fully reconstruct the background depth even with the MVS depth as inputs, and the predicted foreground depth is completely incorrect. It indicates that fusing the individual strength of learning-base and stereo-based geometry is essential to obtain the globally coherent and complete depth map from dynamic scenes. From Figure 6, we can further notice that the learning based multiview stereo (RMVSNet) also fail to model the dynamic foreground geometry. In our experiment, RMVSNet completely fail when the object is too close to the camera.
+
+From the ablation study described in Table 1, $L_{g}$ is the most critical self-supervision signal as the MVS depth plays the key role to convey the accurate static depth. Those accurate depths play the fiducial point for the other self-supervision signals to predict the depth on the missing area. From DFNet- $L_{l}$ , we can verify that the single view depth estimation can upgrade the depth accuracy around the dynamic contents by guiding it with accurate relative depths. Although the contribution of $L_{e}$ and $L_{s}$ are relatively small
+
+
+Mask input
+
+
+Mask input
+View synthesis results
+Figure 7: The mask detection with small mistakes (left) does not have a significant impact on the view synthesis results. However, if the mask detection is completely failed (right), it produces artifacts such as object fragmentation (yellow box) or afterimage (red box).
+
+than others, it helps to regularize the object scene motion and the spatial smoothness of the foreground depth which are keys to reduce the artifacts of the novel view synthesis.
+
+Dynamic Scene Novel View Synthesis Table 2 shows the quantitative evaluation of view synthesis, and the associated qualitative results are shown in Figure 8. From the qualitative results, we can notice that two types of artifacts can be produced depending on the warping methods: B3W produces flying pixel noises, i.e., a pixel is floating due to the warping with incorrect depths, while ASAP produces image distortion. Such artifacts lead to the increase of the perceptual distance with ground-truths as it captures the structural similarity. On average, our method (DFNet+B3W) shows the smallest perceptual distance (0.15), indicating that the geometry from our depth map is highly preservative of scene structure. The comparison of DFNet+B3W with DFNet+ASAPW demonstrates that, given an accurate depth map, pixel-wise warping (B3W) is the better choice over the grid-wise warping (ASAWP) for view synthesis. From the results of DFNet+B3W-Deepblender, we can observe the large improvement of perceptual similarity compared to the results without DeepBlender, indicating that the refinement step (hole filling and noise reduction) is essential for visual plausibility.
+
+Our method (DFNet+B3W) performs the best even for the flow evaluation (5.3 pixels). MVS+B3W is following our method with the 6.8 pixel errors but it produces a significant pixel noise around the dynamic contents as shown in Figure 8. While MonoDepth+B3W reconstructs visually plausible results in Figure 8, it accompanies with large flow errors (10.8 pixels on average), meaning that this result is not geometrically plausible. Note that, the optical flow error of DFNet+B3W-Deepblender is much higher than DFNet+B3W because the flow estimation algorithm [47] shows significant confusion when there are holes around the image boundary and dynamic contents.
+
+Limitation It is worth noting a few limitations of our method. The DFNet may not perform well when a viewing angle between neighboring views are larger (e.g., rotating more than $45^{\circ}$ ), which may decrease the amount of overlaps of dynamic contents. If the scene is highly cluttered by
+
+| Perceptual Sim. / Optical Flow \ | Jumping | Skating | Truck | DynaFace | Umbrella | Balloon1 | Balloon2 | Teadybear | Avg. |
| MVS [43] + ASAPW [28] | 0.21 / 7.0 | 0.17 / 9.3 | 0.10 / 4.0 | 0.30 / 19.0 | 0.19 / 7.5 | 0.23 / 16.0 | 0.17 / 6.7 | 1.80 / 4.9 | 0.19 / 9.3 |
| RMVSNet [55] + ASAP [28] | 0.22 / 6.4 | 0.23 / 13.1 | 0.11 / 3.4 | 0.98 / 10.2 | 0.19 / 7.2 | 0.23 / 14.9 | 0.16 / 6.3 | 0.20 / 10.0 | 0.29 / 8.9 |
| MonoDepth [23] + ASAP [28] | 0.23 / 9.1 | 0.18 / 11.8 | 0.10 / 5.1 | 0.32 / 20.9 | 0.20 / 9.8 | 0.25 / 17.3 | 0.23 / 11.4 | 0.17 / 7.8 | 0.20 / 11.7 |
| Sparse2Dense [31] + ASAP [28] | 0.23 / 7.5 | 0.19 / 9.4 | 0.11 / 4.8 | 0.31 / 20.8 | 0.19 / 7.0 | 0.23 / 13.7 | 0.16 / 6.6 | 0.19 / 6.4 | 0.20 / 9.52 |
| MVS [43] + B3W | 0.24 / 7.0 | 0.20 / 9.2 | 0.12 / 3.5 | 0.27 / 7.5 | 0.19 / 5.7 | 0.23 / 14.4 | 0.17 / 5.4 | 0.13 / 1.5 | 0.19 / 6.8 |
| RMVSNet [55] + B3W | 0.23 / 5.6 | 0.23 / 14.8 | 0.14 / 3.3 | 1.0 / 10.8 | 0.19 / 5.6 | 0.23 / 12.0 | 0.16 / 5.1 | 0.19 / 8.9 | 0.29 / 8.2 |
| MonoDepth [23] + B3W | 0.23 / 8.5 | 0.18 / 11.4 | 0.10 / 5.0 | 0.32 / 19.1 | 0.19 / 8.5 | 0.24 / 17.3 | 0.23 / 11.4 | 0.15 / 5.2 | 0.20 / 10.8 |
| Sparse2Dense [31] + B3W | 0.24 / 7.3 | 0.20 / 9.2 | 0.13 / 4.7 | 0.31 / 11.7 | 0.2 / 6.7 | 0.24 / 14.0 | 0.18 / 6.6 | 0.17 / 4.8 | 0.22 / 8.12 |
| DFNet + ASAP [28] | 0.20 / 5.8 | 0.17 / 9.3 | 0.09 / 3.0 | 0.30 / 18.0 | 0.18 / 6.4 | 0.20 / 13.3 | 0.16 / 6.4 | 0.17 / 5.8 | 0.18 / 8.5 |
| DFNet + B3W-DeepBlender | 0.23 / 8.2 | 0.21 / 13.1 | 0.12 / 4.8 | 0.30 / 15.6 | 0.22 / 9.0 | 0.25 / 15.8 | 0.20 / 9.2 | 0.18 / 4.7 | 0.21 / 10.1 |
| DFNet + B3W (ours) | 0.16 / 4.2 | 0.15 / 8.8 | 0.08 / 2.5 | 0.22 / 6.2 | 0.16 / 3.6 | 0.18 / 10.6 | 0.14 / 5.1 | 0.13 / 2.0 | 0.15 / 5.3 |
+
+Table 2: Quantitative evaluation results on the dynamic scene novel view synthesis task. To measure the accuracy, we compute perceptual similarity and optical flow magnitude between the ground-truth and the synthesized image.
+
+
+Figure 8: Qualitative comparison on the view synthesis task. The pixel error is shown in the inset image (maximum pixel error is set to 50 RGB distance).
+
+many objects from both background and foreground (e.g., many people, thin poles, and trees), our pipeline could cause noisy warping results due to the significant depth discontinuities from the clutter. Our method will fail in the scenes where the camera calibration does not work, e.g., a scene largely occupied by dynamic contents [30]. Finally, our view synthesis with completely failed foreground mask produces significant artifacts such as afterimages and object fragmentation as shown in Figure 7.
+
+# 6. Conclusion
+
+In this paper, we study the problem of monocular view synthesis of a dynamic scene. The main challenge is to reconstruct dynamic contents to produce geometrically coherent view synthesis, which is an ill-posed problem in
+
+general. To address this challenge, we propose to learn a scale correction function that can upgrade the depth from single view (DSV), which allows matching to the depth of the multi-view solution (DMV) for static contents while producing locally consistent scene motion. Given the computed depth, we synthesize a novel view image using the DeepBlender network that is designed to combine foreground, background, and missing regions. Through the evaluations for depth estimation and novel view synthesis, we demonstrate that the proposed method can apply to the daily scenario captured from a monocular camera.
+
+Acknowledgement This work was partly supported by the NSF under IIS 1846031 and CNS 1919965.
+
+# References
+
+[1] Ijaz Akhter, Yaser Sheikh, Sohaib Khan, and Takeo Kanade. Nonrigid structure from motion in trajectory space. In NIPS, 2008.
+[2] T. Alldieck, M. Magnor, B. Bhatnagar, C. Theobalt, and G. Pons-Moll. Learning to reconstruct people in clothing from a single rgb camera. In CVPR, 2019.
+[3] Shai Avidan and Amnon Shashua. Trajectory triangulation: 3D reconstruction of moving points from a monocular image sequence. TPAMI, 2000.
+[4] Jiamin Bai, Aseem Agarwala, Maneesh Agrawala, and Ravi Ramamoorthi. Automatic cinematograph portraits. In Proceedings of the Eurographics Symposium on Rendering, 2013.
+[5] Luca Ballan, Gabriel J. Brostow, Jens Puwein, and Marc Pollefeys. Unstructured video-based rendering: Interactive exploration of casually captured videos. SIGGRAPH, 2010.
+[6] Jiawang Bian, Zhichao Li, Naiyan Wang, Huangying Zhan, Chunhua Shen, Ming-Ming Cheng, and Ian Reid. Unsupervised scale-consistent depth and ego-motion learning from monocular video. In NIPS, 2019.
+[7] Christoph Bregler, Aaron Hertzmann, and Henning Biermann. Recovering non-rigid 3D shape from image streams. In CVPR, 1999.
+[8] Shenchang Eric Chen and Lance Williams. View interpolation for image synthesis. In Conference on Computer Graphics and Interactive Techniques, 1993.
+[9] Inchang Choi, Orazio Gallo, Alejandro Troccoli, Min H Kim, and Jan Kautz. Extreme view synthesis. arXiv preprint arXiv:1812.04777, 2018.
+[10] J. Fayad, Lourdes Agapito, and Alessio Del Bue. Piecewise quadratic reconstruction of non-rigid surface from monocular sequences. In ECCV, 2010.
+[11] John Flynn, Michael Broxton, Paul Debevec, Matthew DuVall, Graham Fyffe, Ryan Overbeck, Noah Snavely, and Richard Tucker. Deepview: View synthesis with learned gradient descent. In CVPR, June 2019.
+[12] John Flynn, Ivan Neulander, James Philbin, and Noah Snavely. Deepstereo: Learning to predict new views from the world's imagery. In CVPR, 2016.
+[13] Jan-Michael Frahm, Pierre Fite-Georgel, David Gallup, Tim Johnson, Rahul Raguram, Changchang Wu, Yi-Hung Jen, Enrique Dunn, Brian Clipp, Svetlana Lazebnik, et al. Building rome on a cloudless day. In ECCV, 2010.
+[14] Yasutaka Furukawa, Brian Curless, Steven M. Seitz, and Richard Szeliski. Manhattan-world stereo. In CVPR, 2010.
+[15] R. Hartley and A. Zisserman. Multiple View Geometry in Computer Vision. Cambridge University Press, second edition, 2004.
+[16] D. Hoiem, A. A. Efros, and M. Hebert. Automatic photo pop-up. SIGGRAPH, 2005.
+[17] Dinghuang Ji, Enrique Dunn, and Jan-Michael Frahm. Spatio-temporally consistent correspondence for dense dynamic scene modeling. In ECCV, 2016.
+[18] Hanqing Jiang, Haomin Liu, Ping Tan, Guofeng Zhang, and Hujun Bao. 3d reconstruction of dynamic scenes with multiple handheld cameras. In ECCV, 2012.
+
+[19] Jeremy Yirmeyahu Kaminski and Mina Teicher. A general framework for trajectory triangulation. JMIV, 2004.
+[20] Chen Kong and Simon Lucey. Deep interpretable non-rigid structure from motion, 2019.
+[21] Johannes Kopf, Michael F. Cohen, and Richard Szeliski. First-person hyper-lapse videos. SIGGRAPH, 2014.
+[22] Suryansh Kumar, Yuchao Dai, and Hongdong Li. Monocular dense 3d reconstruction of a complex dynamic scene from two perspective frames. In ICCV, 2017.
+[23] Katrin Lasinger, René Ranftl, Konrad Schindler, and Vladlen Koltun. Towards robust monocular depth estimation: Mixing datasets for zero-shot cross-dataset transfer. arXiv preprint arXiv:1907.01341, 2019.
+[24] Zhengqi Li, Tali Dekel, Forrester Cole, Richard Tucker, Noah Snavely, Ce Liu, and William T Freeman. Learning the depths of moving people by watching frozen people. CVPR, 2019.
+[25] Zhengqi Li and Noah Snavely. Megadepth: Learning single-view depth prediction from internet photos. In CVPR, 2018.
+[26] Zicheng Liao, Neel Joshi, and Hugues Hoppe. Automated video looping with progressive dynamism. SIGGRAPH, 2013.
+[27] Chen Liu, Kihwan Kim, Jinwei Gu, Yasutaka Furukawa, and Jan Kautz. Planercnn: 3d plane detection and reconstruction from a single image. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4450-4459, 2019.
+[28] Shuaicheng Liu, Lu Yuan, Ping Tan, and Jian Sun. Bundled camera paths for video stabilization. SIGGRAPH, 2013.
+[29] Stephen Lombardi, Jason Saragih, Tomas Simon, and Yaser Sheikh. Deep appearance models for face rendering. SIGGRAPH, 2018.
+[30] Zhaoyang Lv, Kihwan Kim, Alejandro Troccoli, Deqing Sun, James M Rehg, and Jan Kautz. Learning rigidity in dynamic scenes with a moving camera for 3d motion field estimation. In ECCV, 2018.
+[31] Fangchang Mal and Sertac Karaman. Sparse-to-dense: Depth prediction from sparse depth samples and a single image. In ICRA, 2018.
+[32] S. Olsen and A. Bartoli. Using priors for improving generalization in non-rigid structure-from-motion. In BMVC, 2007.
+[33] Hyun Soo Park and Yaser Sheikh. 3d reconstruction of a smooth articulated trajectory from a monocular image sequence. In ICCV, 2011.
+[34] Deepak Pathak, Philipp Krahenbuhl, Jeff Donahue, Trevor Darrell, and Alexei Efros. Context encoders:feature learning by inpainting. In CVPR, 2016.
+[35] Georgios Pavlakos, Vasileios Choutas, Nima Ghorbani, Timo Bolkart, Ahmed A. A. Osman, Dimitrios Tzionas, and Michael J. Black. Expressive body capture: 3d hands, face, and body from a single image. In CVPR, 2019.
+[36] F. Perazzi, J. Pont-Tuset, B. McWilliams, L. Van Gool, M. Gross, and A. Sorkine-Hornung. A benchmark dataset and evaluation methodology for video object segmentation. In CVPR, 2016.
+[37] Julien Philip and George Drettakis. Plane-based multi-view inpainting for image-based rendering in large scenes. In SIG-
+
+GRAPH Symposium on Interactive 3D Graphics and Games, 2018.
+[38] Xuebin Qin, Zichen Zhang, Chenyang Huang, Chao Gao, Masood Dehghan, and Martin Jagersand. Basnet: Boundary-aware salient object detection. In CVPR, 2019.
+[39] Carsten Rother, Vladimir Kolmogorov, and Andrew Blake. Grabcut: Interactive foreground extraction using iterated graph cuts. SIGGRAPH, 2004.
+[40] C. Russell, J. Fayad, and L. Agapito. Energy based multiple model fitting for non-rigid structure from motion. In CVPR, 2011.
+[41] Chris Russell, Rui Yu, and Lourdes Agapito. Video pop-up: Monocular 3d reconstruction of dynamic scenes. In ECCV, 2014.
+[42] Johannes Lutz Schonberger and Jan-Michael Frahm. Structure-from-motion revisited. In CVPR, 2016.
+[43] Johannes L Schonberger, Enliang Zheng, Jan-Michael Frahm, and Marc Pollefeys. Pixelwise view selection for unstructured multi-view stereo. In ECCV, 2016.
+[44] A. Shashua and L. Wolf. Homography tensors: On algebraic entities that represent three views of static or moving planar points. In ECCV, 2000.
+[45] Sudipta N. Sinha, Drew Steedly, and Rick Szeliski. Piecewise planar stereo for image-based rendering. In ICCV, 2009.
+[46] Pratul P. Srinivasan, Richard Tucker, Jonathan T. Barron, Ravi Ramamoorthi, Ren Ng, and Noah Snively. Pushing the boundaries of view extrapolation with multiplane images. CVPR, 2019.
+[47] 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.
+[48] Lorenzo Torresani and Christoph Bregler. Space-time tracking. In ECCV, 2002.
+[49] Jack Valmadre and Simon Lucey. General trajectory prior for non-rigid reconstruction. In CVPR, 2012.
+[50] Jack Valmadre and Simon Lucey. General trajectory prior for non-rigid reconstruction. In CVPR, 2012.
+[51] Y. Wexler and A. Shashua. On the synthesis of dynamic scenes from reference views. In CVPR, 2000.
+[52] Donglai Xiang, Hanbyul Joo, and Yaser Sheikh. Monocular total capture: Posing face, body and hands in the wild. In CVPR, 2019.
+[53] Jing Xiao and Takeo Kanade. Non-rigid shape and motion recovery: Degenerate deformations. In CVPR, 2004.
+[54] Jingyu Yan and Marc Pollefeys. A factorization-based approach to articulated motion recovery. In CVPR, 2005.
+[55] Yao Yao, Zixin Luo, Shiwei Li, Tianwei Shen, Tian Fang, and Long Quan. Recurrent mvsnet for high-resolution multiview stereo depth inference. In CVPR, 2019.
+[56] Guofeng Zhang, Jiaya Jia, Tien-Tsin Wong, and Hujun Bao. Consistent depth maps recovery from a video sequence. TPAMI, year=2009..
+[57] Qi Zhang, Li Xu, and Jiaya Jia. 100+ times faster weighted median filter (wmf). In CVPR, 2014.
+[58] Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In CVPR, 2018.
+
+[59] Tinghui Zhou, Richard Tucker, John Flynn, Graham Fyffe, and Noah Snavely. Stereo magnification: Learning view synthesis using multiplane images. In SIGGRAPH, 2018.
+[60] C Lawrence Zitnick, Sing Bing Kang, Matthew Uyttendaele, Simon Winder, and Richard Szeliski. High-quality video view interpolation using a layered representation. SIGGRAPH, 2004.
\ No newline at end of file
diff --git a/novelviewsynthesisofdynamicsceneswithgloballycoherentdepthsfromamonocularcamera/images.zip b/novelviewsynthesisofdynamicsceneswithgloballycoherentdepthsfromamonocularcamera/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..39213dfb981969525ff01391acfce37188f3c9ba
--- /dev/null
+++ b/novelviewsynthesisofdynamicsceneswithgloballycoherentdepthsfromamonocularcamera/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:27a17e87f94c2dba921f4da1b5881e203a800caef9ab015b2c8f2a1c3d179427
+size 905119
diff --git a/novelviewsynthesisofdynamicsceneswithgloballycoherentdepthsfromamonocularcamera/layout.json b/novelviewsynthesisofdynamicsceneswithgloballycoherentdepthsfromamonocularcamera/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..580dba829a1a3a6a669c9bee37444bc28d51b6f7
--- /dev/null
+++ b/novelviewsynthesisofdynamicsceneswithgloballycoherentdepthsfromamonocularcamera/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:da8eb3b8746dc3bcc92390b15b47852075f20980502df956fe59fef2202b23a4
+size 411851
diff --git a/oasisalargescaledatasetforsingleimage3dinthewild/fca4003b-8403-49bc-9258-e6dc09e92bfa_content_list.json b/oasisalargescaledatasetforsingleimage3dinthewild/fca4003b-8403-49bc-9258-e6dc09e92bfa_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..4a8b688fd955518b28e1fa679248e3b0570be804
--- /dev/null
+++ b/oasisalargescaledatasetforsingleimage3dinthewild/fca4003b-8403-49bc-9258-e6dc09e92bfa_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:da52418d4e1b88a8a7eb1a2496d9f39ea3ea705d3580a0fd5071ae0788c49839
+size 83887
diff --git a/oasisalargescaledatasetforsingleimage3dinthewild/fca4003b-8403-49bc-9258-e6dc09e92bfa_model.json b/oasisalargescaledatasetforsingleimage3dinthewild/fca4003b-8403-49bc-9258-e6dc09e92bfa_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..6882dae9d43cf5f57ad0d57d2ec40dd72046decb
--- /dev/null
+++ b/oasisalargescaledatasetforsingleimage3dinthewild/fca4003b-8403-49bc-9258-e6dc09e92bfa_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c7d8b0f08f2a68f3447dc3757b9fa0022cf4f9480ecfe024b2f6974a55e2988f
+size 101560
diff --git a/oasisalargescaledatasetforsingleimage3dinthewild/fca4003b-8403-49bc-9258-e6dc09e92bfa_origin.pdf b/oasisalargescaledatasetforsingleimage3dinthewild/fca4003b-8403-49bc-9258-e6dc09e92bfa_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..9994f3e372af24d6b8a41ef379d4d43e4cb0c1d3
--- /dev/null
+++ b/oasisalargescaledatasetforsingleimage3dinthewild/fca4003b-8403-49bc-9258-e6dc09e92bfa_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3b7c54276dd889c37c64cf47ecad3f18378f323441eae02521d82db00906aab5
+size 4243926
diff --git a/oasisalargescaledatasetforsingleimage3dinthewild/full.md b/oasisalargescaledatasetforsingleimage3dinthewild/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..30d9d3aaeffe02898c57d3b8984ab884136758e8
--- /dev/null
+++ b/oasisalargescaledatasetforsingleimage3dinthewild/full.md
@@ -0,0 +1,349 @@
+# OASIS: A Large-Scale Dataset for Single Image 3D in the Wild
+
+Weifeng Chen $^{1,2}$ Shengyi Qian $^{1}$ David Fan $^{2}$ Noriyuki Kojima $^{1}$ Max Hamilton $^{1}$ Jia Deng $^{2}$
+
+1University of Michigan, Ann Arbor
+
+$^{2}$ Princeton University
+
+{wfchen, syqian, kojimano, johnmaxh}@umich.edu dfan@alumni.princeton.edu, jiadeng@princeton.edu
+
+
+Human Annotations
+Figure 1. We introduce Open Annotations of Single-Image Surfaces (OASIS), a large-scale dataset of human annotations of 3D surfaces for 140,000 images in the wild. More examples in the supplementary material.
+
+
+
+
+Reconstructed
+
+
+
+
+ixel-wise Depth
+
+
+
+
+Human Annotations
+
+
+
+
+Reconstructed Pixel-wise Depth
+
+
+
+
+
+# Abstract
+
+Single-view 3D is the task of recovering 3D properties such as depth and surface normals from a single image. We hypothesize that a major obstacle to single-image 3D is data. We address this issue by presenting Open Annotations of Single Image Surfaces (OASIS), a dataset for single-image 3D in the wild consisting of annotations of detailed 3D geometry for 140,000 images. We train and evaluate leading models on a variety of single-image 3D tasks. We expect OASIS to be a useful resource for 3D vision research. Project site: https://pvl.cs.princeton.edu/OASIS.
+
+# 1. Introduction
+
+Single-view 3D is the task of recovering 3D properties such as depth and surface normals from a single RGB image. It is a core computer vision problem of critical importance. 3D scene interpretation is a foundation for understanding events and planning actions. 3D shape representation is crucial for making object recognition robust against changes in viewpoint, pose, and illumination. 3D from a single image is especially important due to the ubiquity of monocular images and videos. Even with a stereo camera with which 3D can be reconstructed by triangulating matching pixels from different views, monocular 3D cues are still
+
+necessary in textureless or specular regions where it is difficult to reliably match pixel values.
+
+Single-image 3D is challenging. Unlike multiview 3D, it is ill-posed and resists tractable analytical formulation except in the most simplistic settings. As a result, data-driven approaches have shown greater promise, as evidenced by a plethora of works that train deep networks to map an RGB image to depth, surface normals, or 3D models [11, 17, 36, 14, 43, 24]. However, despite substantial progress, the best systems today still struggle with handling scenes "in the wild"—arbitrary scenes that a camera may encounter in the real world. As prior work has shown [5], state-of-art systems often give erroneous results when presented with unfamiliar scenes with novel shapes or layouts.
+
+We hypothesize that a major obstacle of single-image 3D is data. Unlike object recognition, whose progress has been propelled by datasets like ImageNet [10] covering diverse object categories with high-quality labels, single-image 3D has lacked an ImageNet equivalent that covers diverse scenes with high-quality 3D ground truth. Existing datasets are restricted to either a narrow range of scenes [31, 9] or simplistic annotations such as sparse relative depth pairs or surface normals [5, 7].
+
+In this paper we introduce Open Annotations of Single-Image Surfaces (OASIS), a large-scale dataset for single-image 3D in the wild. It consists of human annotations that
+
+enable pixel-wise reconstruction of 3D surfaces for 140,000 randomly sampled Internet images. Fig. 1 shows the human annotations of example images along with the reconstructed surfaces.
+
+A key feature of OASIS is its rich annotations of human 3D perception. Six types of 3D properties are annotated for each image: occlusion boundary (depth discontinuity), fold boundary (normal discontinuity), surface normal, relative depth, relative normal (orthogonal, parallel, or neither), and planarity (planar or not). These annotations together enable a reconstruction of pixelwise depth.
+
+To construct OASIS, we created a UI for interactive 3D annotation. The UI allows a crowd worker to annotate the aforementioned 3D properties. It also provides a live, rotatable rendering of the resulting 3D surface reconstruction to help the crowd worker fine-tune their annotations.
+
+It is worth noting that 140,000 images may not seem very large compared to millions of images in datasets like ImageNet. But the number of images can be a misleading metric. For OASIS, annotating one image takes 305 seconds on average. In contrast, verifying a single image-level label takes no more than a few seconds. Thus in terms of the total amount of human time, OASIS is already comparable to millions of image-level labels.
+
+OASIS opens up new research opportunities on a wide range of single-image 3D tasks—depth estimation, surface normal estimation, boundary detection, and instance segmentation of planes—by providing in-the-wild ground truths either for the first time, or at a much larger scale than prior work. For depth estimation and surface normals, pixelwise ground truth is available for images in the wild for the first time—prior data in the wild provide only sparse annotations [5, 6]. For the detection of occlusion boundaries and folds, OASIS provides annotations at a scale 700 times larger than prior work—existing datasets [33, 15] have annotations for only about 200 images. For instance segmentation of planes, ground truth annotation is available for images in the wild for the first time.
+
+To facilitate future research, we provide extensive statistics of the annotations in OASIS, and train and evaluate leading deep learning models on a variety of single-image tasks. Experiments show that there is a large room for performance improvement, pointing to ample research opportunities for designing new learning algorithms for single-image 3D. We expect OASIS to serve as a useful resource for 3D vision research.
+
+# 2. Related Work
+
+3D Ground Truth from Depth-Sensors and Computer Graphics Major 3D datasets are either collected by sensors [31, 12, 29, 30, 9] or synthesized with Computer Graphics [4, 23, 32, 22, 26]. But due to the limitations of depth sensors and the lack of varied 3D assets for render-
+
+ing, the diversity of scenes is quite limited. For example, sensor-based ground truth is mostly for indoor or driving scenes [31, 9, 23, 32, 12].
+
+3D Ground Truth from Multiview Reconstruction Single-image 3D training data can also be obtained by applying classical Structure-from-Motion (SfM) algorithms on Internet images or videos [18, 38, 6]. However, classical SfM algorithms have many well known failure modes including scenes with moving objects and scenes with specular or textureless surfaces. In contrast, humans can annotate all types of scenes.
+
+3D Ground Truth from Human Annotations Our work is connected to many previous works that crowdsourced 3D annotations of Internet images. For example, prior work has crowdsourced annotations of relative depth [5] and surface normals [7] at sparse locations of an image (a single pair of relative depth and a single normal per image). Prior work has also aligned pre-existing 3D models to images [39, 34]. However, this approach has a drawback that not every shape can be perfectly aligned with available 3D models, whereas our approach can handle arbitrary geometry.
+
+Our work is related to that of Karsch et al. [15], who reconstruct pixelwise depth from human annotations of boundaries, with the aid of a shape-from-shading algorithm [2]. Our approach is different in that we annotate not only boundaries but also surface normals, planarity, and relative normals, and our reconstruction method does not rely on automatic shape from shading, which is still unsolved and has many failure modes.
+
+One of our inspirations is LabelMe3D [28], which annotated 3D planes attached to a common ground plane. Another is OpenSurfaces [3], which also annotated 3D planes. We differ from LabelMe3D and OpenSurfaces in that our annotations recover not only planes but also curved surfaces. Our dataset is also much larger, being $600 \times$ the size of LabelMe3D and $5 \times$ of OpenSurfaces in terms of the number of images annotated. It is also more diverse, because LabelMe3D and OpenSurface include only city or indoor scenes.
+
+# 3. Crowdsourcing Human Annotations
+
+We use random keywords to query and download Creative Commons Flickr images with a known focal length (extracted from the EXIF data). Each image is presented to a crowd worker for annotation through a custom UI as shown in Fig. 2 (a). The worker is asked to mask out a region that she wishes to work on with a polygon of her choice, with the requirement that the polygon covers a pair of randomly pre-selected locations. She then works on the annotations and iteratively monitors the generated mesh (detailed in Sec 4) from an interactive preview window (Fig. 2 (a)).
+
+
+Figure 2. (a) Our UI allows a user to annotate rich 3D properties and includes a preview window for interactive 3D visualization. (b) An illustration of the depth scaling procedure in our backend.
+
+
+
+Occlusion Boundary and Fold An occlusion boundary denotes locations of depth discontinuity, where the surface on one side is physically disconnected from the surface on the other side. When it is drawn, the worker also specifies which side of the occlusion is closer to the viewer, i.e. depth order of the surfaces on both sides of the occlusion. Workers need to distinguish between two kinds of occlusion boundaries. Smooth occlusion (green in Fig 2 (a)) is where the closer surface smoothly curves away from the viewer, and the surface normals should be orthogonal to the occlusion line and parallel to the image plane, and pointing toward the further side. Sharp occlusion (red in Fig 2 (a)) has none of these constraints. On the other hand, fold denotes locations of surface normal discontinuity, where the surface geometry changes abruptly, but the surfaces on the two sides of the fold are still physically attached to each other (orange in Fig 2 (a)).
+
+Occlusion boundaries segment a region into subregions, each of which is a continuous surface whose geometry can change abruptly but remains physically connected in 3D. Folds further segment a continuous surface into smooth surfaces where the geometry varies smoothly without discontinuity of surface normals.
+
+Surface Normal The worker first specifies if a smooth surface is planar or curved. She annotates one normal at each planar surface which indicates the orientation of the plane. For each curved surface, she annotates normals at as many locations as she sees fit. A normal is visualized as a blue arrow originating from a green grid (see supplementary material), rendered in perspective projection according to the known focal length. Such visualization helps workers perceive the normal in 3D [7]. To rotate and adjust the normal, the worker only needs to drag the mouse.
+
+Relative Normal Finally, to annotate normals with higher accuracy, the worker specifies the relative normal between each pair of planar surfaces. She chooses between Neither, Parallel and Orthogonal. Surfaces pairs that are parallel or
+
+orthogonal to each other then have their normals adjusted automatically to reflect the relation.
+
+Interactive Previewing While annotating, the worker can click a button to see a visualization of the 3D shape constructed from the current annotations (detailed later in Sec. 4). Workers can rotate or zoom to inspect the shape from different angles in a preview window (Fig 2 (a)). She keeps working on it until she is satisfied with the shape.
+
+Quality Control Completing our 3D annotation task requires knowledge of relevant concepts. To ensure good quality of the dataset, we require each worker to complete a training course to learn concepts such as occlusions, folds and normals, and usage of the UI. She then needs to pass a qualification quiz before being allowed to work on our annotation task. Besides explicitly selecting qualified workers, we also set up a separate quality verification task on each collected mesh. In this task, a worker inspects the mesh to judge if it reflects the image well. Only meshes deemed high quality are accepted.
+
+To improve our annotation throughput, we collected annotations from two sources: Amazon Mechanical Turk, which accounts for $31\%$ of all annotations, and a data annotation company that employs full-time annotators, who supplied the rest of the annotations.
+
+# 4. From Human Annotations to Dense Depth
+
+Because humans do not directly annotate the depth value of each pixel, we need to convert the human annotations to pixelwise depth in order to visualize the 3D surface.
+
+Generating Dense Surface Normals We first describe how we generate dense surface normals from annotations. We assume the normals to be smoothly varying in the spatial domain, except across folds or occlusion boundaries where the normals change abruptly. Therefore, our system propagates the known normals to the unknown ones by requiring the final normals to be smooth overall, but stops the propa
+
+
+(a)
+
+
+(b)
+
+
+(c)
+Figure 3. Statistics of OASIS. (a) The distribution of focal length (unit: relative length to the image width). (b) The distribution of surface normals. (c) Boundary: the ratio of regions containing only occlusion, only fold, and both. Curvature: the distribution of regions containing only planes, only curved surfaces, and both. (d) The frequency distribution of each surface type in a region.
+
+
+(d)
+
+gation at fold and occlusion lines.
+
+More concretely, let $N_{p}$ denote the normal at pixel $p$ on a normal map $N$ , and $F$ , $O$ denotes the pixels belong to the folds and occlusion boundaries. We have a set of known normals $\tilde{N}$ at locations $P_{known}$ from (1) surface normal annotations by workers, and (2) the pre-computed normals along the smooth occlusion boundaries as mentioned in Sec 3. Each pixel $p$ has four neighbors $\Phi(p)$ . If $p$ is on an occlusion boundary, its neighbors on the closer side of this boundary are $\Gamma_{O}(p)$ . If $p$ is on a fold line, only its neighbors $\Gamma_{F}(p)$ on one fixed random side of this line are considered.
+
+We solve for the optimal normal $N^{*}$ using LU factorization and then normalize it into unit norm:
+
+$$
+\begin{array}{l} N^{*} = \operatorname *{argmin}_{N}\sum_{p\notin F\cup O}\sum_{\substack{q\in \Phi (p)\\ q\notin F\cup O}}|N_{p} - N_{q}|^{2} + \\ \sum_ {p \in O} \sum_ {q \in \Gamma_ {O} (p)} | N _ {p} - N _ {q} | ^ {2} + \sum_ {p \in F} \sum_ {q \in \Gamma_ {F} (p)} | N _ {p} - N _ {q} | ^ {2} (1) \\ \mathrm {s . t .} \quad N _ {p} = \tilde {N} _ {p}, \forall p \in P _ {\text {k n o w n}} (2) \\ \end{array}
+$$
+
+Generating Dense Depth Our depth generation pipeline consists of two stages: First, from surface normals and focal length, we recover the depth of each continuous surface through integration [25]. Next, we adjust the depth order among these surfaces by performing surface-wise depth scaling (Fig. 2 (b)), i.e. each surface has its own scale factor.
+
+Our design is motivated by this fact: in single-view depth recovery, depth within continuous surface can be recovered only up to an ambiguous scale; thus different surfaces may end up with different scales, leading to incorrect depth ordering between surfaces. But workers already decide which side of an occlusion boundary is closer to the viewer. Based on such knowledge, we correct depth order by scaling the depth of each surface.
+
+We now describe the details. Let $\mathbf{S}$ denotes the set of all continuous surface. From integration, we obtain the depth
+
+$Z_{S}$ of each $S \in \mathbf{S}$ . We then solve for a scaling factor $X_{S}$ for each $S$ , which is used in scaling depth $Z_{S}$ . Let $\mathbf{O}$ denote the set of occlusion boundaries. Along $\mathbf{O}$ , we densely sample a set of point pairs $\mathbf{B}$ . Each pair $(p, q) \in \mathbf{B}$ has $p$ lying on the closer side of one of the occlusion boundaries $O_{i} \in \mathbf{O}$ and $q$ the further side. The continuous surface a pixel $p$ lies on is $S(p)$ , and its depth is $Z_{p}$ . The set of optimal scaling factors $\mathbf{X}^{*}$ is solved for as follows:
+
+$$
+\mathbf {X} ^ {*} = \underset {\mathbf {X}} {\operatorname {a r g m i n}} \sum_ {S \in \mathbf {S}} X _ {S} \tag {3}
+$$
+
+$$
+\text {s . t .} \quad X _ {S (p)} Z _ {p} + \epsilon \leq X _ {S (q)} Z _ {q}, \forall (p, q) \in \mathbf {B} \tag {4}
+$$
+
+$$
+X _ {S} \geq \eta , \forall S \in \mathbf {S} \tag {5}
+$$
+
+where $\epsilon > 0$ is a minimum separation between surfaces, and $\eta > 0$ is a minimum scale factor. Eq.(4) requires the surfaces to meet the depth order constraints specified by point pairs $(p, q) \in \mathbf{B}$ after scaling. Meanwhile, Eq.(3) constrains the value of $\mathbf{X}$ so that they do not increase indefinitely. After correcting the depth order, the final depth for surface $S$ is $X_S^* Z_S$ . We normalize and reproject the final depth to 3D as point clouds, and generate 3D meshes for visualization.
+
+# 5. Dataset Statistics
+
+Statistics of Surfaces Fig. 3 plots various statistics of the 3D surfaces. Fig. 3 (a) plots the distribution of focal length. We see that focal lengths in OASIS vary greatly: they range from wide angle to telezoom, and are mostly $1 \times$ to $10 \times$ of the width of the image. Fig. 3 (b) visualizes the distribution of surface normals. We see that a substantial proportion of normals point directly towards the camera, suggesting that parallel-frontal surfaces frequently occur in natural scenes. Fig. 3 (c) presents region-wise statistics. We see that most regions $(90\% +)$ contain occlusion boundaries and close to half have both occlusion boundaries and folds (top). We also see that most regions $(70\% +)$ contain at least one curve surface (bottom). Fig. 3 (d) shows the histogram of
+
+ | NYU Depth [31] (depth mean: 2.471 m, depth std: 0.754 m) | Tanks & Temples [16] (depth mean: 4.309m, depth std: 3.059m) |
| Human-Human | Human-Sensor | CNN-Sensor | Human-Human | Human-Sensor | CNN-Sensor |
| Depth (EDist) | 0.078m | 0.095m | 0.097m [17] | 0.194m | 0.213m | 0.402m [17] |
| Normals (MAE) | 13.13° | 17.82° | 14.19° [44] | 14.33° | 20.29° | 29.11° [44] |
| Post-Rotation Depth (EDist) | 0.037m | 0.048m | - | 0.082m | 0.080m | - |
| Depth Order (WKDR) | 5.68% | 8.67% | 11.90% | 9.28% | 10.80% | 32.13% |
+
+Table 1. Depth and normal difference between different humans (Human-Human), between human and depth sensor (Human-Sensor), and between ConvNet and depth sensor (CNN-Sensor). The results are averaged over all human pairs.
+
+
+Figure 4. Humans estimate shape correctly but the absolute orientation can be slightly off, causing large depth error after perspective back-projection into 3D. Depth error drops significantly (from $0.07\mathrm{m}$ to $0.01\mathrm{m}$ ) after a global rotation of normals.
+
+the number of different kinds of surfaces in an annotated region. We see that most regions consist of multiple disconnected pieces and have non-trivial geometry in terms of continuity and smoothness.
+
+Annotation Quality We study how accurate and consistent the annotations are. To this end, we randomly sample 50 images from NYU Depth [31] and 70 images from Tanks and Temples [16], and have 20 workers annotate each image. Tab. 1 reports the depth and normal difference between human annotations, between human annotations and sensor ground truth, and between predictions from state-of-the-art ConvNets and sensor ground truth. Depth difference is measured by the mean Euclidean distance (EDist) between corresponding points in two point clouds, after aligning one to the other through a global translation and scaling (surface-wise scaling for human annotations and CNN predictions). Normal difference is measured in Mean Angular Error (MAE). We see in Tab. 1 that human annotations are highly consistent with each other and with sensor ground truth, and are better than ConvNet predictions, especially when the ConvNet is not trained and tested on the same dataset.
+
+We observe that humans often estimate the shape correctly, but the overall orientation can be slightly off, causing a large depth error against sensor ground truth (Fig. 4). This error can be particularly pronounced for planes close to orthogonal to the image plane. Thus we also compute the error after a rotational alignment with the sensor ground truth—we globally rotate the human annotated normals (up to 30 degrees) before generating the shape. After accounting for this global rotation of normals, human-sensor depth difference is further reduced by $47.96\%$ (relative) for NYU and $62.44\%$ (relative) for Tanks and Temples; a significant
+
+drop of normal error is also observed in human-human difference.
+
+We also measure the qualitative aspect of human annotations by evaluating the WKDR metric [5], i.e. the percentage of point pairs with inconsistent depth ordering between query and reference depth. Depth pairs are sampled in the same way as [5]. Tab. 1 again shows that human annotations are qualitatively accurate and highly consistent with each other.
+
+It is worth noting that metric 3D accuracy is not required for many tasks such as navigation, object manipulation, and semantic scene understanding—humans do well without perfect metric accuracy. Therefore human perception of depth alone can be the gold standard for training and evaluating vision systems, regardless of its metric accuracy. As a result, our dataset would still be valuable even if it were less metrically accurate than it is currently.
+
+# 6. Experiments
+
+To facilitate future research, we use OASIS to train and evaluate leading deep learning models on a suite of single-image 3D tasks including depth estimation, normal estimation, boundary detection, plane segmentation. Qualitative results are shown in Fig. 5. A train-val-test split of $110\mathrm{K}$ , $10\mathrm{K}$ , $20\mathrm{K}$ is used for all tasks.
+
+For each task we estimate human performance to provide an upperbound accounting for the variance of human annotations. We randomly sample 100 images from the test set, and have each image re-annotated by 8 crowd workers. That is, each image now has "predictions" from 8 different humans. We evaluate each prediction and report the mean as the performance expected of an average human.
+
+
+Figure 5. Qualitative outputs of the four tasks from representative models. More details and examples are in the supplementary material.
+
+# 6.1. Depth Estimation
+
+We first study single-view depth estimation. OASIS provides pixelwise metric depth in the wild. But as discussed in Sec 4, due to inherent single-image ambiguity, depth in OASIS is independently recovered within each continuous surface, after which the depth undergoes a surface-wise scaling to correct the depth order. The recovered depth is only accurate up to scaling within each continuous surface and ordering between continuous surfaces.
+
+Given this, in OASIS we provide metric depth ground truths that is surface-wise accurate up to a scaling factor. This new form of depth necessitates new evaluation metrics and training losses.
+
+Depth Metric The images in OASIS have varied focal lengths. This means that to evaluate depth estimation, we cannot simply use pixelwise difference between a predicted depth map and the ground truth map. This is because the predicted 3D shape depends greatly on the focal length—given the same depth values, decreasing the focal length will flatten the shape along the depth dimension. In practice, the focal length is often unknown for a test image. Thus, we require a depth estimator to predict a focal length along with depth. Because the predicted focal length may differ from the ground truth focal length, pixelwise depth difference is a poor indicator of how close the predicted 3D shape is to the ground truth.
+
+A more reasonable metric is the Euclidean distance between the predicted and ground-truth 3D point cloud. Concretely, we backproject the predicted depth $Z$ to a 3D point cloud $\mathbf{P} = \{(X_p,Y_p,Z_p)\}$ using $f$ (the predicted focal length), and ground truth depth $Z^{*}$ to $\mathbf{P}^{*} = \{(X_{p}^{*},Y_{p}^{*},Z_{p}^{*})\}$ using $f^{*}$ (the ground truth focal length). We then calculate the distance between $\mathbf{P}$ and $\mathbf{P}^{*}$ .
+
+The metric also needs to be invariant to surface-wise depth scaling and translation. Therefore we introduce a surface-wise scaling factor $\lambda_{S_i} \in \Lambda$ , and a surface-wise translation $\delta_{S_i} \in \Delta$ , to align each predicted surface $S_i \in \mathbf{S}$ in $\mathbf{P}$ to the ground truth point cloud $\mathbf{P}^*$ in a least square manner. The final metric, which we call Locally Scale-Invariant RMSE (LSIV_RMSE), is defined as:
+
+$$
+\begin{array}{l} L S I V \_ R M S E (Z, Z ^ {*}) = \min _ {\boldsymbol {\Lambda}, \boldsymbol {\Delta}} \sum_ {p} \left(\frac {\left(X _ {p} ^ {*} , Y _ {p} ^ {*} , Z _ {p} ^ {*}\right)}{\sigma \left(X ^ {*}\right)}\right) \tag {6} \\ - \lambda_ {S (p)} (X _ {p}, Y _ {p}, Z _ {p}) - (0, 0, \delta_ {S (p)})) ^ {2}, \\ \end{array}
+$$
+
+where $S(p)$ denotes the surface a pixel $p$ is on. The ground truth point cloud $\mathbf{P}^*$ is normalized to a canonical scale by the standard deviation of its X coordinates $\sigma(X^*)$ . Under this metric, as long as $\mathbf{P}$ is accurate up to scaling and translation, it will align perfectly with $\mathbf{P}^*$ , and get 0 error.
+
+Note that LSIV_RMSE ignore the ordering between two separate surfaces; it allows objects floating in the air to be arbitrarily scaled. This is typically not an issue because in most scenes there are not many objects floating in the air. But we nonetheless also measure the correctness of depth ordering. We report WKDR [5], which is the percentage of point pairs that have incorrect depth order in the predicted depth. We evaluate on depth pairs sampled in the same way as [5], i.e. half are random pairs, half are from the same random horizontal lines.
+
+Models We train and evaluate two leading depth estimation networks on OASIS: the Hourglass network [5], and ResNetD [38], a dense prediction network based on ResNet50. Each network predicts a metric depth map and a focal length, which are together used to backproject pixels to 3D points, which are compared against the ground truth to compute the LSIV_RMSE metric, which we optimize as the loss function during training. Note that we do not supervise on the predicted focal length.
+
+We also evaluate leading pre-trained models that estimate single-image depth on OASIS, including FCRN [17] trained on ILSVRC [27] and NYU Depth [31], Hourglass [18] trained on MegaDepth [18], ResNetD [38] trained on a combination of datasets including ILSVRC [27], Depth in the Wild [5], ReDWeb [38] and YouTube3D [6]. For networks that do not produce a focal length, we use the validation set to find the best focal length that leads to the smallest LSIV_RMSE, and use this focal length for each test image. In addition, we also evaluate plane, a naive baseline that predicts a uniform depth map.
+
+Tab. 2 reports the results. In terms of metric depth, we see that networks trained on OASIS perform the best. This is expected because they are trained to predict a focal length and to directly optimize the LSIV_RMSE metric. It is noteworthy that ImageNet pretraining provides a significant benefit even for this purely geometrical task. Off-the-shelf models do not perform better than the naive baseline, probably because they were not trained on diverse enough scenes or were not trained to optimize metric depth error. In terms of relative depth, it is interesting to see that ResNetD trained
+
+| Method | Training Data | LSIV_RMSE | WKDR |
| FCRN [17] | ImageNet [27] + NYU [31] | 0.67 | 39.94% |
| Hourglass [5, 18] | MegaDepth [18] | 0.67 | 38.37% |
| ResNetD [38, 6] | ImageNet [27] + YouTube3D [6] + ReDWeb [38] + DIW [5] | 0.66 | 34.03% |
| ResNetD [38] | ImageNet [27] + OASIS | 0.37 | 32.04% |
| ResNetD [38] | OASIS | 0.47 | 38.79% |
| Hourglass [5] | OASIS | 0.47 | 39.64% |
| Plane | - | 0.67 | 100.00% |
| Human (Approx) | - | 0.24 | 19.33% |
+
+on ImageNet and OASIS performs the best, even though the training loss does not enforce depth ordering. We also see that there is still a significant gap between human performance and machine performance. At the same time, the gap is not hopelessly large, indicating the effectiveness of a large training set.
+
+Table 2. Depth estimation performance of different networks on OASIS (lower is better). For networks that do not produce a focal length, we use the best focal length leading to the smallest error.
+
+| Method | Training Data | OASIS |
| Angle Mean | Distance Median | % Within t° | Relative AUCo | Normal AUCp |
| 11.25° | 22.5° | 30° |
| Hourglass [7] | OASIS | 23.34 | 18.08 | 31.44 | 59.79 | 72.25 | 0.5508 | 0.5439 |
| Hourglass [7] | SNOW [7] | 30.74 | 26.65 | 14.33 | 40.84 | 56.73 | 0.5329 | 0.4714 |
| Hourglass [7] | NYU [31] | 34.69 | 28.76 | 14.65 | 38.49 | 52.06 | 0.5415 | 0.5061 |
| PBRS [44] | NYU [31] | 38.09 | 33.00 | 11.94 | 32.58 | 45.29 | 0.5729 | 0.5227 |
| Front_Facing | - | 31.20 | 24.76 | 27.36 | 46.62 | 56.94 | 0.5000 | 0.5000 |
| Human (Approx) | - | 17.43 | 13.08 | 43.89 | 75.94 | 84.72 | 0.8870 | 0.6439 |
+
+Table 3. Surface normal estimation on OASIS.
+
+| Method | Training Data | DIODE [35] | ETH3D [30] |
| Angle Distance Mean | % Within t° | Angle Distance Mean | % Within t° |
| 11.25° | 22.5° | 30° | 11.25° | 22.5° | 30° |
| Hourglass [7] | OASIS | 34.57 | 13.71 | 35.69 | 49.65 | 34.51 | 23.52 | 52.04 | 62.73 |
| Hourglass [7] | SNOW [7] | 40.10 | 8.29 | 27.20 | 40.67 | 45.71 | 10.69 | 31.16 | 43.16 |
| Hourglass [7] | NYU [31] | 42.23 | 10.97 | 29.76 | 41.35 | 41.84 | 21.94 | 44.05 | 53.81 |
| PBRS [44] | NYU [31] | 42.59 | 9.96 | 29.08 | 40.72 | 39.91 | 18.68 | 44.76 | 56.08 |
| Front_Facing | - | 47.76 | 5.62 | 18.70 | 28.05 | 58.97 | 11.84 | 23.75 | 30.19 |
+
+Table 4. Cross-dataset generalization.
+
+# 6.2. Surface Normal Estimation
+
+We now turn to single-view surface normal estimation. We evaluate on absolute normal, i.e. the pixel-wise predicted normal values, and relative normal, i.e. the parallel and orthogonal relation predicted between planar surfaces.
+
+Absolute Normal Evaluation We use standard metrics proposed in prior work [37]: the mean and median of angular error measured in degrees, and the percentage of pixels whose angular error is within $\gamma$ degrees.
+
+We evaluate on OASIS four state-of-the-art networks that are trained to directly predict normals: (1) Hourglass [7] trained on OASIS, (2) Hourglass trained on the Surface Normal in the Wild (SNOW) dataset [7], (3) Hourglass trained on NYU Depth [31], and (4) PBRS, a normal estimation network by Zhang et al. [44] trained on NYU Depth [31]. We also include Front_Facing, a naive baseline predicting all normals to be orthogonal to the image plane.
+
+Tab. 3 reports the results. As expected, the Hourglass network trained on OASIS performs the best. Although SNOW is also an in-the-wild dataset, the same network trained on it does not perform as well, but is still better
+
+
+RGB Image
+Figure 6. Limitations of standard metrics: a deep network gets low mean angle error but important details are wrong.
+
+
+Predicted Normals
+Ground-truth Normals by Humans
+
+than training on NYU. Notably, the human-machine gap appears fairly small numerically (17.43 versus 23.34 in mean angle error). However, we observe that the naive baseline can achieve 31.20; thus the dynamic range of this metric is small to start with, due to the natural distribution of normals in the wild. In addition, a close examination of the results suggests that these standard metrics of surface normals do not align well with perceptual quality. In natural images there can be large areas that dominate the metric but have uninteresting geometry, such as a blank wall in the background. For example, in Fig. 6, a neural network gets the background correct, but largely misses the important details in the foreground. This opens up an interesting research question about developing new evaluation metrics.
+
+Relative Normal Evaluation We also evaluate the predicted normals in terms of relative relations, specifically orthogonality and parallelism. Getting these relations correct is important because it can help find vanishing lines and perform self-calibration.
+
+We first define a metric to evaluate relative normal. From the human annotations, we first sample an equal number of point pairs from surface pairs that are parallel, orthogonal, and neither. Given a predicted normal map, we look at the two normals at each point pair and measure the angle $\theta$ between them. We consider them orthogonal if $|\cos (\theta - 90^{\circ})| < \cos (\Theta_{o})$ , and parallel if $|\cos (\theta)| > \cos (\Theta_{p})$ , where $\Theta_{o}, \Theta_{p}$ are thresholds. We then plot the Precision-and-Recall curve for orthogonal by varying $\Theta_{o}$ and measure its Area Under Curve $\mathbf{AUC}_{\mathbf{o}}$ , using neither and parallel pairs as negative examples. Varying $\Theta_{p}$ and using neither and orthogonal as negative examples, we obtain $\mathbf{AUC}_{\mathbf{p}}$ for parallel.
+
+Tab. 3 reports results of relative normal evaluation. Notably, all methods perform similarly, and all perform very poorly compared to humans. This suggests that existing approaches to normal estimation have limitations in capturing orthogonality and parallelism, indicating the need for further research.
+
+Cross-Dataset Generalization Next we study how networks trained on OASIS generalize to other datasets. Surface normal estimation is ideal for such evaluation because unlike depth, which is tricky to evaluate on a new dataset due to scale ambiguity and varying focal length, a normal estimation network can be directly evaluated on a new dataset without modification.
+
+We train the same Hourglass network on OASIS, and NYU, and report their performance on two benchmarks not seen in training: DIODE [35] and ETH3D [30]. From Tab. 4 we see that training on NYU underperforms on all benchmarks, showing that networks trained on scene-specific datasets have difficulties generalizing to diverse scenes. Training on OASIS outperforms on all benchmarks, demonstrating the effectiveness of diverse annotations.
+
+# 6.3. Fold and Occlusion Boundary Detection
+
+Occlusion and fold are both important 3D cues, as they tell us about physical connectivity and curvature: Occlusion delineates the boundary at which surfaces are physically disconnected to each other, while Fold is where geometry changes abruptly but the surfaces remain connected.
+
+Task We investigate joint boundary detection and occlusion-versus-fold classification: deciding whether a pixel is a boundary (fold or occlusion) and if so, which kind it is. Prior work has explored similar topics: Hoiem et al. [13] and Stein et al. [33] handcraft edge or motion features to perform occlusion detection, but our task involves folds, not just occlusion lines.
+
+| Metric\Model | Edge: All Fold | Edge: All Occ | HED [40] | Hourglass [5] | Human (Approx) |
| ODS | 0.123 | 0.539 | 0.533 | 0.585 | 0.810 |
| OIS | 0.129 | 0.576 | 0.584 | 0.639 | 0.815 |
| AP | 0.020 | 0.440 | 0.466 | 0.547 | 0.642 |
+
+Evaluation Metric We adopt metrics similar to standard ones used in edge detection [1, 40]: F-score by optimal threshold per image (OIS), by fixed threshold (ODS) and average precision (AP). For a boundary to be considered correct, it has to be labeled correctly as either occlusion or fold. More details on the metrics can be found in the supplementary material.
+
+To perform joint detection of fold and occlusion, we adapt and train two networks on OASIS: Hourglass [5], and a state-of-the-art edge detection network HED [40]. The networks take in an image, and output two probabilities per pixel: $p_e$ is the probability of being an boundary pixel (occlusion or fold), and $p_f$ is the probability of being a fold pixel. Given a threshold $\tau$ , pixels whose $p_e < \tau$ are neither fold nor occlusion. Pixels whose $p_e > \tau$ are fold if $p_F > 0.5$ and otherwise occlusion.
+
+As baselines, we also investigate how a generic edge detector would perform on this task. We use HED network trained on BSDS dataset [1] to detect image edges, and classify the resulting edges to be either all occlusion (Edge: All Occ) or all fold (Edge: All Fold).
+
+All results are reported on Tab 5. Hourglass outperforms HED when trained on OASIS, and significantly outperforms both the All-Fold and All-Occlusion baselines, but still underperforms humans by a large margin, suggesting that fold
+
+and occlusion boundary detection remains challenging in the wild.
+
+# 6.4. Instance Segmentation of Planes
+
+Our last task focuses on instance segmentation of planes in the wild. This task is important because planes often have special functional roles in a scene (e.g. supporting surfaces, walls). Prior work has explored instance segmentation of planes, but is limited to indoor or driving environments [21, 42, 20, 41]. Thanks to OASIS, we are able to present the first-ever evaluation of this task in the wild.
+
+We follow the way prior work [21, 20, 42] performs this task: a network takes in an image, and produces instance masks of planes, along with an estimate of planar parameters that define each 3D plane. To measure performance, we report metrics used in instance segmentation literature [19]: the average precision (AP) computed and averaged across a range of overlap thresholds (ranges from $50\%$ to $95\%$ as in [19, 8]). A ground truth plane is considered correctly detected if it overlaps with one of the detected planes by more than the overlap threshold, and we penalize multiple detection as in [8]. We also report the AP at $50\%$ overlap $(\mathrm{AP}^{50\%})$ and $75\%$ overlap $(\mathrm{AP}^{75\%})$ .
+
+PlanarReconstruction by Yu et al. [42] is a state-of-the-art method for planar instance segmentation. We train PlanarReconstruction on three combinations of data: (1) ScanNet [9] only as done in [42], (2) OASIS only, and (3) ScanNet + OASIS. Tab. 6 compares their performance.
+
+As expected, training on ScanNet alone performs the worse, because ScanNet only has indoor images. Training on OASIS leads to better performance. Leveraging both ScanNet and OASIS is the best overall. But even the best network significantly underperforms humans, suggesting ample space for improvement.
+
+Table 5. Boundary detection performance on OASIS.
+
+| Method | Training Data | AP | \( AP^{50\%} \) | \( AP^{75\%} \) |
| PlanarReconstruction [42] | ScanNet [9] | 0.076 | 0.161 | 0.065 |
| OASIS | 0.127 | 0.250 | 0.112 |
| ScanNet [9] + OASIS | 0.139 | 0.264 | 0.130 |
| Human (Approx) | - | 0.461 | 0.542 | 0.476 |
+
+Table 6. Planar instance segmentation performance on OASIS.
+
+# 7. Conclusion
+
+We have presented OASIS, a dataset of rich human 3D annotations. We trained and evaluated leading models on a variety of single-image tasks. We expect OASIS to be a useful resource for 3D vision research.
+
+Acknowledgement This work was partially supported by a National Science Foundation grant (No. 1617767), a Google gift, and a Princeton SEAS innovation grant.
+
+# References
+
+[1] Pablo Arbelaez, Michael Maire, Charless Fowlkes, and Jitendra Malik. Contour detection and hierarchical image seg
+
+mentation. IEEE transactions on pattern analysis and machine intelligence, 33(5):898-916, 2011.
+[2] Jonathan T Barron and Jitendra Malik. Color constancy, intrinsic images, and shape estimation. In European Conference on Computer Vision, pages 57-70. Springer, 2012.
+[3] Sean Bell, Paul Upchurch, Noah Snavely, and Kavita Bala. OpenSurfaces: A richly annotated catalog of surface appearance. ACM Trans. on Graphics (SIGGRAPH), 32(4), 2013.
+[4] D. J. Butler, J. Wulff, G. B. Stanley, and M. J. Black. A naturalistic open source movie for optical flow evaluation. In A. Fitzgibbon et al. (Eds.), editor, European Conf. on Computer Vision (ECCV), Part IV, LNCS 7577, pages 611-625. Springer-Verlag, Oct. 2012.
+[5] Weifeng Chen, Zhao Fu, Dawei Yang, and Jia Deng. Single-image depth perception in the wild. In Advances in Neural Information Processing Systems, pages 730-738, 2016.
+[6] Weifeng Chen, Shengyi Qian, and Jia Deng. Learning single-image depth from videos using quality assessment networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5604-5613, 2019.
+[7] Weifeng Chen, Donglai Xiang, and Jia Deng. Surface normals in the wild. In Proceedings of the 2017 IEEE International Conference on Computer Vision, Venice, Italy, pages 22-29, 2017.
+[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 Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3213-3223, 2016.
+[9] Angela Dai, Angel X Chang, Manolis Savva, Maciej Halber, Thomas A Funkhouser, and Matthias Nießner. Scannet: Richly-annotated 3d reconstructions of indoor scenes. In CVPR, volume 2, page 10, 2017.
+[10] 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.
+[11] David Eigen, Christian Puhrsch, and Rob Fergus. Depth map prediction from a single image using a multi-scale deep network. In Advances in neural information processing systems, pages 2366-2374, 2014.
+[12] Andreas Geiger, Philip Lenz, Christoph Stiller, and Raquel Urtasun. Vision meets robotics: The kitti dataset. International Journal of Robotics Research (IJRR), 2013.
+[13] Derek Hoiem, Alexei A Efros, and Martial Hebert. Recovering occlusion boundaries from an image. International Journal of Computer Vision, 91(3):328-346, 2011.
+[14] Eddy Ilg, Tonmoy Saikia, Margret Keuper, and Thomas Brox. Occlusions, motion and depth boundaries with a generic network for disparity, optical flow or scene flow estimation. In Proceedings of the European Conference on Computer Vision (ECCV), pages 614-630, 2018.
+[15] Kevin Karsch, Zicheng Liao, Jason Rock, Jonathan T. Barron, and Derek Hoiem. Boundary cues for 3d object shape recovery. In CVPR, 2013.
+
+[16] Arno Knapitsch, Jaesik Park, Qian-Yi Zhou, and Vladlen Koltun. Tanks and temples: Benchmarking large-scale scene reconstruction. ACM Transactions on Graphics, 36(4), 2017.
+[17] Iro Laina, Christian Rupprecht, Vasileios Belagiannis, Federico Tombari, and Nassir Navab. Deeper depth prediction with fully convolutional residual networks. In 2016 Fourth international conference on 3D vision (3DV), pages 239-248. IEEE, 2016.
+[18] Zhengqi Li and Noah Snavely. Megadepth: Learning single-view depth prediction from internet photos. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2041-2050, 2018.
+[19] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dálár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pages 740-755. Springer, 2014.
+[20] Chen Liu, Kihwan Kim, Jinwei Gu, Yasutaka Furukawa, and Jan Kautz. Planercnn: 3d plane detection and reconstruction from a single image. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4450-4459, 2019.
+[21] 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.
+[22] N. Mayer, E. Ilg, P. Häusser, P. Fischer, D. Cremers, A. Dosovitskiy, and T. Brox. A large dataset to train convolutional networks for disparity, optical flow, and scene flow estimation. In IEEE International Conference on Computer Vision and Pattern Recognition (CVPR), 2016. arXiv:1512.02134.
+[23] John McCormac, Ankur Handa, Stefan Leutenegger, and Andrew J Davison. Scenenet rgb-d: 5m photorealistic images of synthetic indoor trajectories with ground truth. arXiv preprint arXiv:1612.05079, 2016.
+[24] Lars Mescheder, Michael Oechsle, Michael Niemeyer, Sebastian Nowozin, and Andreas Geiger. Occupancy networks: Learning 3d reconstruction in function space. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4460-4470, 2019.
+[25] Yvain Queau, Jean-Denis Durou, and Jean-François Aujol. Normal integration: a survey. Journal of Mathematical Imaging and Vision, 60(4):576-593, 2018.
+[26] Stephan R Richter, Vibhav Vineet, Stefan Roth, and Vladlen Koltun. Playing for data: Ground truth from computer games. In European Conference on Computer Vision, pages 102-118. Springer, 2016.
+[27] 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.
+[28] Bryan C Russell and Antonio Torralba. Building a database of 3d scenes from user annotations. In Computer Vision and Pattern Recognition, 2009. CVPR 2009. IEEE Conference on, pages 2711-2718. IEEE, 2009.
+
+[29] Ashutosh Saxena, Sung H Chung, and Andrew Y Ng. 3-d depth reconstruction from a single still image. International journal of computer vision, 76(1):53-69, 2008.
+[30] Thomas Schöps, Johannes L Schonberger, Silvano Galliani, Torsten Sattler, Konrad Schindler, Marc Pollefeys, and Andreas Geiger. A multi-view stereo benchmark with high-resolution images and multi-camera videos. In Conference on Computer Vision and Pattern Recognition (CVPR), volume 2017, 2017.
+[31] Nathan Silberman, Derek Hoiem, Pushmeet Kohli, and Rob Fergus. Indoor segmentation and support inference from rgbd images. In European Conference on Computer Vision, pages 746-760. Springer, 2012.
+[32] Shuran Song, Fisher Yu, Andy Zeng, Angel X Chang, Manolis Savva, and Thomas Funkhouser. Semantic scene completion from a single depth image. IEEE Conference on Computer Vision and Pattern Recognition, 2017.
+[33] Andrew N Stein and Martial Hebert. Occlusion boundaries from motion: Low-level detection and mid-level reasoning. International journal of computer vision, 82(3):325, 2009.
+[34] Xingyuan Sun, Jiajun Wu, Xiuming Zhang, Zhoutong Zhang, Chengkai Zhang, Tianfan Xue, Joshua B Tenenbaum, and William T Freeman. Pix3d: Dataset and methods for single-image 3d shape modeling. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2974-2983, 2018.
+[35] Igor Vasiljevic, Nick Kolkin, Shanyi Zhang, Ruotian Luo, Haochen Wang, Falcon Z Dai, Andrea F Daniele, Mohammadreza Mostajabi, Steven Basart, Matthew R Walter, et al. Diode: A dense indoor and outdoor depth dataset. arXiv preprint arXiv:1908.00463, 2019.
+[36] Peng Wang, Xiaohui Shen, Bryan Russell, Scott Cohen, Brian Price, and Alan L Yuille. Surge: Surface regularized geometry estimation from a single image. In Advances in Neural Information Processing Systems, pages 172-180, 2016.
+[37] Xiaolong Wang, David Fouhey, and Abhinav Gupta. Designing deep networks for surface normal estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 539-547, 2015.
+[38] Ke Xian, Chunhua Shen, Zhiguo Cao, Hao Lu, Yang Xiao, Ruibo Li, and Zhenbo Luo. Monocular relative depth perception with web stereo data supervision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 311-320, 2018.
+[39] Yu Xiang, Wonhui Kim, Wei Chen, Jingwei Ji, Christopher Choy, Hao Su, Roozbeh Mottaghi, Leonidas Guibas, and Silvio Savarese. Objectnet3d: A large scale database for 3d object recognition. In European Conference on Computer Vision, pages 160-176. Springer, 2016.
+[40] Saining Xie and Zhuowen Tu. Holistically-nested edge detection. In Proceedings of the IEEE international conference on computer vision, pages 1395-1403, 2015.
+[41] Fengting Yang and Zihan Zhou. Recovering 3d planes from a single image via convolutional neural networks. In Proceedings of the European Conference on Computer Vision (ECCV), pages 85-100, 2018.
+
+[42] Zehao Yu, Jia Zheng, Dongze Lian, Zihan Zhou, and Shenghua Gao. Single-image piece-wise planar 3d reconstruction via associative embedding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1029-1037, 2019.
+[43] Bernhard Zeisl, Marc Pollefeys, et al. Discriminatively trained dense surface normal estimation. In European conference on computer vision, pages 468-484. Springer, 2014.
+[44] Yinda Zhang, Shuran Song, Ersin Yumer, Manolis Savva, Joon-Young Lee, Hailin Jin, and Thomas Funkhouser. Physically-based rendering for indoor scene understanding using convolutional neural networks. The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017.
\ No newline at end of file
diff --git a/oasisalargescaledatasetforsingleimage3dinthewild/images.zip b/oasisalargescaledatasetforsingleimage3dinthewild/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..e57d8de5ff6a1aa22b5046c23a165cd2e3c8944f
--- /dev/null
+++ b/oasisalargescaledatasetforsingleimage3dinthewild/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c182864f7e74592c5348f661a47f9a3a1acf7284574f1da034dbb36420dcaf92
+size 498754
diff --git a/oasisalargescaledatasetforsingleimage3dinthewild/layout.json b/oasisalargescaledatasetforsingleimage3dinthewild/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..2bebb5b4c90146cb11fe9412cf16499337cadb68
--- /dev/null
+++ b/oasisalargescaledatasetforsingleimage3dinthewild/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d480af9ec9781e4b2a832a8888410a3d0e3d8ed86565b82fd4de7f8130d193ff
+size 417159
diff --git a/objectoccludedhumanshapeandposeestimationfromasinglecolorimage/328349c7-2959-4a8c-97e6-38b16a22439c_content_list.json b/objectoccludedhumanshapeandposeestimationfromasinglecolorimage/328349c7-2959-4a8c-97e6-38b16a22439c_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..66c177a7b7dc8dff5d6dd4fe465e0e68e3e3b159
--- /dev/null
+++ b/objectoccludedhumanshapeandposeestimationfromasinglecolorimage/328349c7-2959-4a8c-97e6-38b16a22439c_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:500cbef61c13e0931521b237d7b8caa7ba2a768291d12c97a6ae75001cd5c8d4
+size 65711
diff --git a/objectoccludedhumanshapeandposeestimationfromasinglecolorimage/328349c7-2959-4a8c-97e6-38b16a22439c_model.json b/objectoccludedhumanshapeandposeestimationfromasinglecolorimage/328349c7-2959-4a8c-97e6-38b16a22439c_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..f17f21fac7a4de68cee41c2edac1c5ac8b317efb
--- /dev/null
+++ b/objectoccludedhumanshapeandposeestimationfromasinglecolorimage/328349c7-2959-4a8c-97e6-38b16a22439c_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:231f890814785e5f94170fa59d0851cba2384878daf561a496636059d371158a
+size 85830
diff --git a/objectoccludedhumanshapeandposeestimationfromasinglecolorimage/328349c7-2959-4a8c-97e6-38b16a22439c_origin.pdf b/objectoccludedhumanshapeandposeestimationfromasinglecolorimage/328349c7-2959-4a8c-97e6-38b16a22439c_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..4e6b1b8b6ee0b7a8f21960b933128a9e3eede798
--- /dev/null
+++ b/objectoccludedhumanshapeandposeestimationfromasinglecolorimage/328349c7-2959-4a8c-97e6-38b16a22439c_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cbcffbec0b582ba0db53184940f8020abe6277c36db7441317c5102c25f9279a
+size 1086089
diff --git a/objectoccludedhumanshapeandposeestimationfromasinglecolorimage/full.md b/objectoccludedhumanshapeandposeestimationfromasinglecolorimage/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..a22f6be5a14b725d96f8db5d317e65fecabd4187
--- /dev/null
+++ b/objectoccludedhumanshapeandposeestimationfromasinglecolorimage/full.md
@@ -0,0 +1,305 @@
+# Object-Occluded Human Shape and Pose Estimation from a Single Color Image
+
+Tianshu Zhang* Buzhen Huang* Yangang Wang†
+
+Southeast University, China
+
+# Abstract
+
+Occlusions between human and objects, especially for the activities of human-object interactions, are very common in practical applications. However, most of the existing approaches for 3D human shape and pose estimation require human bodies are well captured without occlusions or with minor self-occlusions. In this paper, we focus on the problem of directly estimating the object-occluded human shape and pose from single color images. Our key idea is to utilize a partial UV map to represent an object-occluded human body, and the full 3D human shape estimation is ultimately converted as an image inpainting problem. We propose a novel two-branch network architecture to train an end-to-end regressor via the latent feature supervision, which also includes a novel saliency map subnet to extract the human information from object-occluded color images. To supervise the network training, we further build a novel dataset named as 3DOH50K. Several experiments are conducted to reveal the effectiveness of the proposed method. Experimental results demonstrate that the proposed method achieves the state-of-the-art comparing with previous methods. The dataset, codes are publicly available at https://www.yangangwang.com.
+
+# 1. Introduction
+
+3D human shape and pose estimation from color images attracts lots of research interests in the area of computer vision. It may promote several promising virtual reality applications, such as body shape animation, shape retargeting, motion mimic and etc. Conventionally, the full 3D human body shape estimation has experienced from complex hardware (e.g., multi-view cameras, IMU sensors) to single devices (e.g., color camera, Kinect). In recent years, deep learning based techniques [17, 33, 51] have witnessed the rapid progress of recovering the full body human shape from single color images, though most of the existing approaches are addressed for the scenarios that human bod-
+
+
+Figure 1. Our method performs well for the human shape and pose estimation from single object-occluded color images.
+
+ies are well captured without occlusions or with minor self-occlusions. However, occlusions between human and objects, especially for the activities of human-object interactions, are very common in practical applications. It is hard to achieve good performance for recovering the full 3D human body shape from object-occluded color images when the occlusions are not explicitly taken into account. In this paper, we mainly focus on the problem of estimating the object-occluded full 3D human shape and pose from single color images.
+
+Historically, 3D human shape and pose estimation from single color images is flourished after the Skinned Multi-Person Linear model (SMPL) [27] has been presented. It goes through several stages, including SMPL parameters optimization via fitting to 2D visual cues [3, 21], directly regressing the SMPL parameters with Convolutional Neural Network (CNN) [33, 30], volumetric representation for 3D human shape [15, 43], and 2D UV map representation for the human body geometry surface [51, 54]. Although deep learning has become the mainstream of full 3D human body estimation due to its accuracy and runtime efficiency, it cannot be directly shifted to handle the object-occluded human body estimation without explicitly considering occlusions. There are two main challenges. The first one is that there is a lack of sufficient data for the network training. Existing datasets are not originally designed for the occluded human shape estimation. The other one is object-occlusions would introduce severe ambiguities into the network training, and
+
+thus confuse the full 3D human body shape estimation.
+
+To tackle the obstacles, we investigate different human body representations and take the up-to-date 2D UV map [6, 51] to describe the 3D human shape. Even so, it is still hard to directly regress the full 2D UV map via CNN due to the ambiguities caused by occlusions. Our key idea is to utilize a partial UV map to describe an object-occluded human body and convert the full 3D human shape estimation as a UV map inpainting problem, as shown in Fig.2. We propose a novel two-branch encoder-decoder network architecture, where the first branch is a UV map inpainting and the second branch keeps an input color image to be consistent with its partial UV map in their latent feature spaces. Both of the two branches share the same decoder, and they are trained separately with different datasets. Typically, the UV map inpainting branch, which could be regarded as a prior for body shapes, can be trained without color images. It is also worth noting that the pixels in color images that are not part of bodies may fool the color image encoder, we then introduce a saliency map estimation subnetwork to emphasize the importance of human pixels in color images as shown in Fig.2 (b). Although the proposed network focuses on the object-occluded human shape estimation, it does not affect the performance of non-occluded human shape estimation and also achieves the state-of-the-art, as shown in Sec.5.
+
+Our network can be run efficiently both for training and inference. At the training stage, a two-step training strategy is adopted to optimize the network parameters. We first train the UV map inpainting branch, and then its parameters are fixed to supervise the training of the color image encoder (Fig.2 (c) and (d)). At the inference stage, a single color image is passed through the saliency map subnetwork, the color image encoder, and the decoder of UV map inpainting branch. However, to train the proposed network, we found that human-object occlusion datasets are far from sufficient. We first added virtual objects into existing datasets (e.g., Human3.6M [13]) to synthesize occlusions. To further facilitate the network training, we build a new dataset named as 3DOH50K. The new dataset contains more than 51600 images, where all images were captured from real scenes with 6 viewpoints, and we used the modified SMPLify-X[32] to fit the SMPL model. Finally, each instance has an accurate 2D pose, a 3D pose, SMPL parameters, and a binary mask. To the best of our knowledge, 3DOH50K is the first real dataset for the problem of human-object occlusion. The proposed dataset could provide a new challenge benchmark for human reconstruction and pose estimation in occlusion scenarios.
+
+The main contributions of this work are summarized as follows.
+
+- We take a partial UV map representation for an object-occluded 3D human body, and describe the full 3D hu
+
+man shape and pose estimation as an image inpainting problem.
+
+- We propose a novel two-branch network architecture to train an end-to-end human shape regressor for estimating the full 3D human shape and pose from single color images.
+- We build a novel object-occluded human dataset, which is named as 3DOH50K, to ease the network training. The dataset, codes are publicly available at https://www.yangangwang.com.
+
+# 2. Related Work
+
+Human pose and shape estimation. Traditional human pose and shape estimation methods mostly use the complex hardware to obtain the human body's cues, and estimate the full 3D human body pose and shape through iterative optimization[12, 45, 23] or deep learning[41, 2, 25]. Due to various limitations of hardware, they cannot be easily applied to real-world scenarios. In order to accurately estimate the pose and shape of the human body from single RGB camera, [17, 30, 33, 55] parameterized the mesh in terms of 3D joint angles and a low dimensional linear shape space. Unlike the previous methods[48, 3], they directly infer 3D mesh parameters from image features which avoided two stage training and also avoided throwing away lots of image information. In order to avoid complex nonlinear mapping of parameter prediction methods, Venkat et al. [44] proposed HumanMeshNet that regressed a template mesh's vertices. Some recent works[51, 1, 22] turned a hard 3D inference problem into an image-to-image translation which is amenable to CNNs by encoding appearance and geometry layout on a common SMPL UV-space.
+
+Occlusion. Huang et al. [11] presented a method capable of recovering 3D human pose when a person is partially or heavily occluded in the scene from monocular images. However, the occlusions are limited to two rectangles. [36] presented a systematic study of various types of synthetic occlusions in 3D human pose estimation from a single RGB image. Since synthetic data can not fully depict the real occlusion, Girshick et al. [8] learned from real data and used grammar models with explicit occluding templates to reason about occluded people. To avoid specific design for occlusion patterns, [7] presented a method for modeling occlusion that was aimed at explicitly learning the appearance and statistics of occlusion patterns. [34] integrated depth information about occluded objects into 3D pose estimation framework. In the scope of face de-occlusion, [42] tried to address the problem of detailed face reconstruction from occluded images. [53] proposed a novel deep face de-occlusion framework, which can handle face images under challenging conditions. In [46], a very effective occluded face recognition algorithm, GD-HASLR, was proposed. It has strong robustness to the shape and the size of
+
+
+Figure 2. Overview of the proposed two-branch network. At the training stage, UV map inpainting branch (a) is trained at first. Then, the occluded color image is concatenated with its saliency map (b) and fed to color image encoder (c). The corresponding partial UV map is encoded by fixed inpainting network and used for supervising the color image encoder in latent space (d). At the inference stage, a single color image is passed through the saliency map sub-net (b) and the occluded human reconstruction sub-net (c). The output mesh is directly re-sampled from the UV position map.
+
+the occlusion object. Due to the fact that a human visual system explicitly ignores occlusions and only focuses on non-occluded areas, [39] proposed an occlusion robust face recognition approach with the pairwise differential siamese network (PDSN) that explicitly build the correspondence between occluded facial blocks and corrupted feature elements.
+
+Image Inpainting. Pathak et al. [31] proposed Context Encoders – the first work applies deep neural networks for image inpainting. It consists of an encoder capturing the context of an image into a compact latent feature representation and a decoder which uses that representation to produce the missing image content. [40] promoted this task with dividing it into inference and translation as two separate steps and each step with a deep neural network. Xiong et al. [47] learned to predict the foreground contour first, and then inpainted the missing region using the predicted contour as guidance. [52] proposed a new deep generative model-based approach which can not only synthesize novel image structures but also explicitly utilized surrounding image features as references during network training to make better predictions. [50] proposed a multi-scale neural patch synthesis approach based on joint optimization of image content and texture constraints, which preserves contextual structures and produces high-frequency details by matching and adapting patches with the most similar
+
+mid-layer feature correlations of a deep classification network. [49] proposed Shift-Net, which inherits the advantages of exemplar-based and CNN-based methods, and can produce inpainting result with both plausible semantics and fine detailed textures.
+
+# 3. Method
+
+An overview of the proposed method is shown in Fig.2. We use a partial UV map to represent the object-occluded human body, and human shape estimation is finally formulated as a UV map inpainting problem.
+
+# 3.1. Object-Occluded Human Representation
+
+We use the representation of 3-channel UV position map [6] to describe a human body for network training. The RGB values in a UV position map record 3D positions of a body mesh, where the map encodes the geometry topology of body surface. Based on the UV position map, we further promote a representation of 3D object-occluded human shapes. In our method, UV coordinates of all mesh vertices are provided by SMPL [27].
+
+Fig.3 shows how we generate a partial UV position map from a body mesh and a segmentation mask. We project the body mesh into the image plane by a weak perspective projection. The projected points that are outside the segmentation mask are regarded as occluded vertices. Otherwise,
+
+
+(a)
+RGB image
+Figure 3. The Representation of Object-Occluded Human. Given an occluded human image (a) and the corresponding occlusion segmentation (b), we render the fitted human body model onto the 2D image plane (c). For the visible part, we store the normalized $x, y, z$ coordinates of the vertices as $r, g, b$ color values in the UV map. For the occlusion part, we set the $r, g, b$ values of the UV map to -0.5 (e).
+
+
+(b)
+Occlusion
+segmentation
+
+
+(c)
+Mesh overlay
+
+
+(d)
+Occluded Mesh
+
+
+(e)
+Partial UV Map
+
+positions of visible vertices are normalized into a range of $-0.5$ to $0.5$ , and their $x, y, z$ coordinates are stored as 3-channel (RGB) values in the UV map. For occluded parts, we set the values of the UV map as $[-0.5, -0.5, -0.5]$ . Partial UV position map can accurately represent the object-occluded mesh. It should be noted that our partial UV map only considers the object-occlusion. For self-occlusion, [51, 1, 44] have proved that it can be easily estimated through the visible part of the body and the part of self-occlusion is encoded as the supervision in latent space. Notice that the output mesh can be re-sampled from a complete UV position map.
+
+# 3.2. UV Map Inpainting Sub-Network
+
+Estimating a full UV map from a partial UV map is an image-to-image translation problem [14]. As shown in Fig.2 (b), the process of partial-to-full is not affected by the background of the occluded color images. Thus, we can synthesize occlusions to train an inpainting network, which is robust to various types of occlusions. We follow the work [36] to perform the synthetic occlusion data synthesis on the Human3.6M dataset.
+
+We use an encoder-decoder structure to train the UV map inpainting sub-network and our loss function has three terms
+
+$$
+L = L _ {1} + \lambda L _ {t v} + \mu L _ {p}, \tag {1}
+$$
+
+which is a little different from [51].
+
+The first term $L_{1}$ performs the supervision between predicted UV maps and ground-truth UV maps, which is,
+
+$$
+L _ {1} = \sum_ {j = 1} ^ {H} \sum_ {i = 1} ^ {W} \beta_ {i, j} \left(\left| P _ {i, j} - P _ {i, j} ^ {g t} \right|\right), \tag {2}
+$$
+
+where $\beta_{i,j}$ is a weight mask and the weight is inversely proportional to the part area. $W$ and $H$ are the width and height respectively. $P$ is the pixel RGB value.
+
+The second term $L_{tv}$ ensures the smoothness among
+
+each body parts, which has the form,
+
+$$
+L _ {t v} = \sum_ {k} \sum_ {(i, j) \in R _ {k}} \left(| P _ {i + 1, j} - P _ {i, j} | + | P _ {i, j + 1} - P _ {i, j} |\right), \tag {3}
+$$
+
+where $R_{k}$ is defined as the $k^{th}$ body part.
+
+Since $L_{tv}$ only guarantees the smoothness in the same part, it cannot guarantee the body connection part smooth. We then propose a third term named as part loss, which is
+
+$$
+L _ {p} = \sum_ {v _ {i} \in V _ {b}} \left| \bar {P} \left(v _ {i}\right) - p _ {i} ^ {g t} \right|, \tag {4}
+$$
+
+where $V_{b}$ is a set of vertices that have multiple UV coordinates. $\bar{P}(v_{i})$ means the average RGB value of UV coordinates corresponding to vertex $v_{i}$ . $p_{i}^{gt}$ is the ground truth position of vertex $v_{i}$ .
+
+# 3.3. Saliency Map Estimation Sub-Network
+
+To reduce the influences of invalid information such as background and occlusion for human shape and pose recovery, we introduce a sub-network to estimate human saliency map as shown in Fig.4. We use different scales of masks as intermediate supervision. The proposed saliency map, which can be treated as a representation of visual attention, is not an accurate segmentation. Even the state-of-the-art instance segmentation methods[9, 24] are hard to give the correct segmentation in the case of occlusion. However, the imperfect saliency map is good enough to reduce the influence of background and avoid extra cropping operation required by previous methods [17, 19, 20]. In Sec 5, we compare the results with and without saliency map to demonstrate the effectiveness of saliency map.
+
+# 3.4. Latent Feature Supervision
+
+For the UV map inpainting task, we assume that high dimensional features in the encoder part have a certain degree of prior knowledge for human body shapes. This drives us to utilize the high dimensional features extracted from the
+
+
+Figure 4. Overview of saliency map estimation Sub-Network. We propose a sub-network to estimate human saliency map which aims to reduce invalid information such as background and occlusion. We use different scales of masks as intermediate supervision.
+
+
+Figure 5. Samples of the 3DOH50K. Each image in our dataset includes segmentation, 2D and 3D skeleton keypoints annotation and SMPL parameters.
+
+UV map inpainting branch to supervise the training of color image encoder (Fig.2 (d)). We found that using UV map high dimensional features as constraint could accelerate the convergence speed of training and is more accurate than directly predicting full UV position maps from color images as shown in the experiment section.
+
+# 4.3D Occlusion Human Dataset
+
+Most of existing 3D human datasets e.g., [13, 37] focus on the complexity and diversity of poses. Nevertheless, they often overlook the occlusions generated by the interactions between the human and objects, which are commonplace in the real world. Therefore, human pose and shape estimation methods trained on such datasets are sensitive to occlusions. To solve this challenging problem, we propose our dataset 3D Occlusion Human 50K(3DOH50K). It contains 51600 images, most of which are human activities in occlusion scenarios. Fig.5 shows some examples. All images are captured from real scenes with six views. 3DOH50K is the first real 3D human dataset for the problem of occlusion. Our dataset could provide a new challenge benchmark for human reconstruction and pose estimation in occlusion scenarios.
+
+# 4.1. Annotations
+
+Obtaining accurate annotations in occluded scenes is extremely difficult. We tried a variety of the state-of-the-art instance segmentation and pose estimation methods[9, 24, 5, 4]. It turns out that all of them do not achieve the desired results. Therefore, for each image, we first use MaskRCNN[9] and Alphapose[5] to automatically segment the mask and estimate the 2D keypoints. For the inaccurate parts, we manually corrected the mask and keypoints. Then, we fit the SMPL model with annotated keypoints by using SMPLify-X[32] in a multi-view strategy:
+
+$$
+E (\beta , \theta , T) = E _ {J} + \lambda_ {\theta_ {b}} E _ {\theta_ {b}} + \lambda_ {\alpha} E _ {\alpha} + \lambda_ {\beta} E _ {\beta} \tag {5}
+$$
+
+where $E_{\theta_b}$ , $E_{\alpha}$ and $E_{\beta}$ are same as [32]. For the data term $E_J$ we use 6-views re-projections to constrain the SMPL model:
+
+$$
+E _ {J} (\beta , \theta , T; K, J _ {\mathrm {e s t}}) =
+$$
+
+$$
+\sum_ {\text {v i e w} j} \sum_ {\text {j o i n t} i} w _ {j, i} \rho \left(\Pi_ {K _ {j}} \left(R _ {\theta} (J (\beta) _ {i}) + T\right) - J _ {\text {e s t}, j, i}\right) \tag {6}
+$$
+
+Finally, 3DOH50K has camera parameters of 6 views. Each image has an accurate 2D pose and 3D pose, SMPL parameters, and a binary mask.
+
+# 4.2. Dataset Statistics
+
+We compare different public datasets related to 3D pose estimation in Tab.1. Although existing datasets have high-quality annotations and a large amount of data, they hardly contain examples with occlusions. There are some occlusion sequences in CMU Panoptic[16] and 3DPW[45], but they have a similar pose for the entire occlusion sequence.(e.g., in the subset of Musical Instruments in CMU Panoptic Dataset, the instrument produces a large proportion of occlusion, but the pose and occlusion in the entire sequence are similar.) There is also a small amount of occluded samples in UP-3D dataset. However, since it is fitted through a monocular method [3], the depth information of ground truth is not processed well. [29] provides accurate
+
+| Dataset | Occlusion Data | Real Data | 2D Pose | 3D Pose | Occlusion Seg. | Mesh | Camera Param. |
| CMU Panoptic[16] | ++ | ✓ | ✓ | ✓ | - | ✓ | ✓ |
| 3DPW[45] | ++ | ✓ | ✓ | ✓ | - | ✓ | ✓ |
| Human3.6M[13] | - | ✓ | ✓ | ✓ | - | - | ✓ |
| UP-3D[21] | + | ✓ | ✓ | ✓ | - | ✓ | - |
| MPI-INF-3DHP[29] | + | ✓ | ✓ | ✓ | ✓ | - | ✓ |
| 3DOH50K (ours) | +++++ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
+
+Table 1. Comparison among different public datasets related to 3D pose estimation. Occlusion data refers to the object-occluded data and + denotes the amount of occluded samples.
+
+occlusion segmentation, however it only contains very few types of occlusion. These shortcomings of existing datasets lead to their inability to perform 3D pose and shape estimation in occlusion situations.
+
+# 5. Experiments
+
+# 5.1. Datasets
+
+Human3.6M [13] is one of the most widely used 3D human datasets. It has 11 subjects, 15 kinds of action sequences and 1.5 million training images with accurate 3D annotations. Since Human3.6M dataset has no object occlusion, we adopt the method of [36] to add a synthetic occlusion on the image, an example is shown in Fig. 6 (row 3 right). Similar to [17], we use MoSH[26] to process the marker data in the original dataset, and obtain the ground truth SMPL parameters. For a fair comparison, we use 300K data in S1, S5, S6, S7, S8 for network training, and test in S9, S11.
+
+3DOH50K is the first 3D human occlusion dataset proposed by us. It contains 50310 training images and 1290 test images. It provides 2D, 3D annotations and SMPL parameters for generating meshes. Detailed information has been provided in Sec 4.2.
+
+3DPW [45] is captured via IMUs and contains both indoor and outdoor scenes. It provides accurate SMPL parameters and calibrated camera parameters. However, the occluded samples in the dataset are few and not representative. In order to demonstrate the effectiveness of our approach, we selected the occluded sequences from the entire dataset as a new testset. The names of these sequences are provided in the Supplementary Material.
+
+# 5.2. Implementation Details
+
+The U-Net structure [35] is adopted for Saliency Map Estimation and the model is supervised using the segmentation of human. In order to reduce the redundant latent features and make it easier to be consistent, a modified ResNet18 [10] and VGG-19 [38] are respectively used as encoder for partial UV maps and color images. The decoder part is simply composed of 6 consequent up-sampling and convolutional layers. The size of UV maps and color images in this work are all scaled to $256 \times 256$ . To generate ground
+
+truth UV position maps, we transform all meshes into the same normalized camera coordinate frame by weak perspective projection. For testing, SMPL fitting is performed to estimate SMPL parameters for quantitative comparison among different algorithms. Non-optimized L-BFGS algorithm is adopted for fitting, which takes about 30s. Since most of UV maps and saliency maps have zero values regions, we use leaky-ReLu[28] instead of ReLu. We use the Adam optimizer[18] with a batch-size of 10 and the initial learning rate set to 1e-3. Running time of our work with a 2080Ti GPU is 13ms per image, which is effectively real-time.
+
+# 5.3. Quantitative Evaluation and Comparison
+
+To demonstrate the effectiveness of our method, we performed quantitative evaluations on Human3.6M, 3DPW and 3DOH50K. Numerous comparisons are conducted with the state-of-the-art methods. It is noted that previous works do not specifically target the object-occluded problem, we retested their released model on the occlusion dataset. Fig.6 and Fig.7 present some results and more detailed comparisons are described in the following.
+
+We first tested our method on S9 and S11 of the original Human3.6M, verifying that our method can also achieve the state-of-art performance without occlusions. The 3rd column in Tab.2 shows the performance of our approach on the origin Human3.6M dataset. Our method can obtain the very similar results as the recent work [19].
+
+Then, we compared our method on those occlusion datasets. On Synthetic Occlusion Human3.6M, we compared ours with the methods generating human meshes (based on SMPL model). Detailed results are shown in the 4th column of Tab.2, and our method outperforms all the other methods. As 3DPW is not designed for occlusions, we selected only the sequences with occlusions for evaluation. For a fair comparison, the evaluation is performed similar as [19]. The 5th column in Tab.2 shows that our method can also obtain better performance than other methods. It is noted that 3DPW contains numerous outdoor scenes, the errors on this dataset are higher than others. We then performed the comparison on the proposed 3DOH50K. The last 3 columns in Tab.2 show the comparison results. From these columns, we can find that our method performs better
+
+
+Figure 6. Qualitative results of our approach. The left 3 columns show the results on our 3DOH50K. The right 3 columns are the examples on 3DPW[45], UP-3D[21] and Synthetic Occlusion Human3.6M[13] respectively. More results without SMPL fitting are shown in the Sup. Mat.
+
+| Method | Runtime | Human3.6M [13]
+(Protocol#2)
+PA-MPJPE | Human3.6M [13]
+(Synthetic Occlusion)
+PA-MPJPE | 3DPW [45]
+PA-MPJPE | Our 3DOH50K |
| PA-MPJPE | Surface Error |
| SMPLify[3] | 100 sec | 82.3 | 159.4 | 114.0 | 156.4 | 177.3 |
| SMPLify-X[32] | 30 sec | - | 145.6 | 151.3 | 117.2 | 132.4 |
| HMR[17] | 0.420 sec | 56.8 | 82.2 | 103.8 | 83.2 | 92.9 |
| GraphCMR[20] | 0.033 sec | 50.1 | 74.4 | 104.8 | 76.3 | 84.0 |
| SPIN[19] | 0.016 sec | 41.1 | 64.9 | 95.4 | 67.5 | 73.6 |
| Ours | 0.013 sec | 41.7 | 56.4 | 72.2 | 58.5 | 63.3 |
+
+Table 2. Comparisons with the state-of-the-art methods on Human3.6M, 3DPW and our 3DOH50K. Synthetic Occlusion Human3.6M means that we randomly render the synthetic occlusion on images, the minimum is $30\%$ of the bounding-box pixels occluded, details can be found in 5.1. Numbers are 3D joint errors and Surface errors in mm.
+
+than all previous methods for about $10\mathrm{mm}$
+
+Furthermore, we studied the effect of occlusion ratios on the reconstruction accuracy by synthesizing different ratios of occlusion on the Synthetic Occlusion Human3.6M. The results are presented in Fig.8. The curves prove that our method can maintain good performance even with an occlusion ratio of more than $50\%$ . In addition, due to the effectiveness of the proposed UV inpainting branch, our method is relatively insensitive to the increase of occlusion ratios.
+
+# 5.4. Ablation Study
+
+Importance of the UV inpainting branch. In Tab.3, we tested different model structures to demonstrate the importance of our UV inpainting branch. Results show that it is difficult to directly predict object-occluded human shape and pose from color images. We also tried to estimate par
+
+tial UV maps from occluded color images and then inpaint partial maps in a cascade manner. It turns out that latent space supervision performs better in our method.
+
+Importance of the saliency map estimation. Since color images contain a lot of invalid information, we performed a salient detection on color images to obtain valid human features. In order to verify the importance of saliency map estimation network, we compared the results of occluded color images input and color images combined with saliency map as input. As shown in Tab.3, extra saliency map input improves the performance. Furthermore, it makes our method also have a good performance in outdoor scenes.
+
+Importance of the proposed part loss. In UV maps, the whole body is divided into several parts which means that resampled meshes may have a coarse connection between
+
+
+Figure 7. Comparison with different methods. Our method could obtain more visually appealing results.
+
+
+Figure 8. Relationship between the reconstruction accuracy and the occlusion ratio.
+
+
+Figure 9. Importance of the part loss. The right sub-figure shows a smoother result with the proposed part loss.
+
+different parts. Therefore, we put an extra constraint on the connection vertices on UV maps. Fig. 9 shows the result where we can find that part loss is essential to improve smoothness.
+
+| Method | MPJPE | PA-MPJPE |
| end-to-end | 73.1 | 67.3 |
| Cascade | 62.9 | 61.9 |
| (w/o) saliency map | 60.8 | 57.9 |
| two-branch | 58.2 | 56.4 |
+
+Table 3. Comparison of different network structures on the testing dataset. end-to-end: without UV map inpainting network. cascade: cascade the UV map inpainting network with the color image encoder. (w/o) saliency map: without saliency map estimation network. two branch: the proposed two-branch network. More details are shown in the Sup. Mat.
+
+# 6. Conclusion
+
+In this paper, we propose a novel method for the object-occluded human shape and pose estimation from single color images. Our main contribution is to utilize a partial UV map representation to describe the human body occlusion, and convert the occluded human shape estimation as a UV map inpainting problem. A novel two-branch network architecture is proposed to train an efficient regressor via the latent feature matching. We also introduce a saliency map sub-net to extract the human information from object-occluded color images. For fertilizing the network training, we further build a new dataset named as 3DOH50K. We hope the dataset would promote the future research on object-occluded human shape and pose estimation.
+
+Acknowledgments. This work was supported in part by the National Natural Science Foundation of China (No. 61806054), in part by the National Key R&D Program of China (No.2018YFB1403900), in part by the Natural Science Foundation of Jiangsu Province (No. BK20180355) and by the "Zhishan Young Scholar" Program of Southeast University.
+
+# References
+
+[1] T. Alldieck, G. Pons-Moll, C. Theobalt, and M. Magnor. Tex2shape: Detailed full human body geometry from a single image. In ICCV, 2019. 2, 4
+[2] F. Bogo, M. J. Black, M. Loper, and J. Romero. Detailed full-body reconstructions of moving people from monocular rgb-d sequences. In ICCV, 2015. 2
+[3] 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 ECCV, 2016, 1, 2, 5, 7
+[4] Z. Cao, T. Simon, S.-E. Wei, and Y. Sheikh. Realtime multiperson 2d pose estimation using part affinity fields. In CVPR, 2017. 5
+[5] H.-S. Fang, S. Xie, Y.-W. Tai, and C. Lu. RMPE: Regional multi-person pose estimation. In ICCV, 2017. 5
+[6] Y. Feng, F. Wu, X. Shao, Y. Wang, and X. Zhou. Joint 3d face reconstruction and dense alignment with position map regression network. In ECCV, 2018. 2, 3
+[7] G. Ghiasi, Y. Yang, D. Ramanan, and C. C. Fowlkes. Parsing occluded people. In CVPR, 2014. 2
+[8] R. Girshick, P. Felzenszwalb, and D. Mcallester. Object detection with grammar models. IEEE TPAMI, 33, 11 2010. 2
+[9] K. He, G. Gkioxari, P. Dollar, and R. Girshick. Mask r-cnn. In ICCV, 2017. 4, 5
+[10] K. He, X. Zhang, S. Ren, and S. Jian. Deep residual learning for image recognition. In CVPR, 2016. 6
+[11] J.-B. Huang and M.-H. Yang. Estimating human pose from occluded images. In ACCV, 2009. 2
+[12] Y. Huang, F. Bogo, C. Classner, A. Kanazawa, P. Gehler, I. Akhter, and M. Black. Towards accurate markerless human shape and pose estimation over time. In 3DV, 2017. 2
+[13] C. Ionescu, D. Papava, V. Olaru, and C. Sminchisescu. Human3.6m: Large scale datasets and predictive methods for 3d human sensing in natural environments. IEEE Transactions on Pattern Analysis and Machine Intelligence, 36(7):1325-1339, jul 2014. 2, 5, 6, 7
+[14] P. Isola, J. Zhu, T. Zhou, and A. A. Efros. Image-to-image translation with conditional adversarial networks. In CVPR, 2016. 4
+[15] A. S. Jackson, C. Manafas, and G. Tzimiropoulos. 3d human body reconstruction from a single image via volumetric regression. In ECCV, 2018. 1
+[16] H. Joo, T. Simon, X. Li, H. Liu, L. Tan, L. Gui, S. Banerjee, T. S. Godisart, B. Nabbe, I. Matthews, T. Kanade, S. Nobuhara, and Y. Sheikh. Panoptic studio: A massively multiview system for social interaction capture. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2017, 5, 6
+[17] A. Kanazawa, M. J. Black, D. W. Jacobs, and J. Malik. End-to-end recovery of human shape and pose. In CVPR, 2018, 1, 2, 4, 6, 7
+[18] D. Kingma and J. Ba. Adam: A method for stochastic optimization. International Conference on Learning Representations, 12 2014. 6
+
+[19] N. Kolotouros, G. Pavlakos, M. J. Black, and K. Daniilidis. Learning to reconstruct 3d human pose and shape via model-fitting in the loop. In ICCV, 2019. 4, 6, 7
+[20] N. Kolotouros, G. Pavlakos, and K. Daniilidis. Convolutional mesh regression for single-image human shape reconstruction. In CVPR, 2019. 4, 7
+[21] C. Lassner, J. Romero, M. Kiefel, F. Bogo, M. Black, and P. Gehler. Unite the people: Closing the loop between 3d and 2d human representations. In CVPR, 2017. 1, 6, 7
+[22] V. Lazova, E. Insafutdinov, and G. Pons-Moll. 360-degree textures of people in clothing from a single image. In 3DV, 2019. 2
+[23] K. Li, N. Jiao, Y. Liu, Y. Wang, and J. Yang. Shape and Pose Estimation for Closely Interacting Persons Using Multi-view Images. Computer Graphics Forum, 2018. 2
+[24] R. Li, X. Dong, Z. Cai, D. Yang, H. Huang, S. Zhang, P. L. Rosin, and S. Hu. Pose2seg: Human instance segmentation without detection. In CVPR, 2019. 4, 5
+[25] J. Liang and M. C. Lin. Shape-aware human pose and shape reconstruction using multi-view images. In ICCV, 2019. 2
+[26] M. Loper, N. Mahmood, and M. Black. Mosh: Motion and shape capture from sparse markers. volume 33, 12 2014. 6
+[27] M. Loper, N. Mahmood, J. Romero, G. Pons-Moll, and M. J. Black. SMPL: A skinned multi-person linear model. ACM Trans. Graphics (Proc. SIGGRAPH Asia), 34(6):248:1-248:16, oct 2015. 1, 3
+[28] A. L. Maas. Rectifier nonlinearities improve neural network acoustic models. In ICMLW, 2013. 6
+[29] D. Mehta, H. Rhodin, D. Casas, P. Fua, O. Sotnychenko, W. Xu, and C. Theobalt. Monocular 3d human pose estimation in the wild using improved cnn supervision. In 3DV, 2017. 5, 6
+[30] M. Omran, C. Lassner, G. Pons-Moll, P. Gehler, and B. Schiele. Neural body fitting: Unifying deep learning and model based human pose and shape estimation. In 3DV, 2018. 1, 2
+[31] D. Pathak, P. Krahenbuhl, J. Donahue, T. Darrell, and A. Efros. Context encoders: Feature learning by inpainting. In CVPR, 2016. 3
+[32] G. Pavlakos, V. Choutas, N. Ghorbani, T. Bolkart, A. Osman, D. Tzionas, and M. Black. Expressive body capture: 3d hands, face, and body from a single image. In CVPR, 2019. 2, 5, 7
+[33] G. Pavlakos, L. Zhu, X. Zhou, and K. Daniilidis. Learning to estimate 3d human pose and shape from a single color image. In CVPR, 2018. 1, 2
+[34] U. Rafi, J. Gall, and B. Leibe. A semantic occlusion model for human pose estimation from a single depth image. 2015. 2
+[35] O. Ronneberger, P. Fischer, and T. Brox. U-net: Convolutional networks for biomedical image segmentation. In MIC-CAI, 2015. 6
+[36] I. Sárándi, T. Linder, K. O. Arras, and B. Leibe. How robust is 3d human pose estimation to occlusion? CoRR, abs/1808.09316, 2018. 2, 4, 6
+[37] L. Sigal, A. Balan, and M. Black. Humaneva: Synchronized video and motion capture dataset and baseline algorithm for
+
+evaluation of articulated human motion. International Journal of Computer Vision, 87:4-27, 03 2010. 5
+[38] K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. 6
+[39] L. Song, D. Gong, Z. Li, C. Liu, and W. Liu. Occlusion robust face recognition based on mask learning with pairwise-differential siamese network. In ICCV, 2019. 3
+[40] Y. Song, C. Yang, Z. Lin, X. Liu, Q. Huang, H. Li, and C. C. J. Kuo. Contextual-based image inpainting: Infer, match, and translate. In ECCV, 2018. 3
+[41] Y. Tao, Z. Zheng, K. Guo, J. Zhao, and Y. Liu. Doublefusion: Real-time capture of human performances with inner body shapes from a single depth sensor. In CVPR, 2018. 2
+[42] A. Tran, T. Hassner, I. Masi, E. Paz, Y. Nirkin, and G. Medioni. Extreme 3d face reconstruction: Seeing through occlusions. In CVPR, 2018. 2
+[43] G. Varol, D. Ceylan, B. Russell, J. Yang, E. Yumer, I. Laptev, and C. Schmid. Bodynet: Volumetric inference of 3d human body shapes. In ECCV, 2018. 1
+[44] A. Venkat, C. Patel, Y. Agrawal, and A. Sharma. Humanmeshnet: Polygonal mesh recovery of humans. In ICCV, 2019. 2, 4
+[45] T. von Marcard, R. Henschel, M. J. Black, B. Rosenhahn, and G. Pons-Moll. Recovering accurate 3d human pose in the wild using imus and a moving camera. In ECCV, 2018, 2, 5, 6, 7
+[46] C. Wu and J. Ding. Occluded face recognition using low-rank regression with generalized gradient direction. Pattern Recognition, 80, 03 2018. 2
+[47] W. Xiong, J. Yu, Z. Lin, J. Yang, X. Lu, C. Barnes, and J. Luo. Foreground-aware image inpainting. In CVPR, 2019. 3
+[48] W. Xu, A. Chatterjee, M. Zollhöfer, H. Rhodin, D. Mehta, H.-P. Seidel, and C. Theobalt. Monoperfcap: Human performance capture from monocular video. ACM Transactions on Graphics, 37, 08 2017. 2
+[49] Z. Yan, X. Li, M. Li, W. Zuo, and S. Shan. Shift-net: Image inpainting via deep feature rearrangement. In ECCV, 2018. 3
+[50] C. Yang, X. Lu, Z. Lin, E. Shechtman, O. Wang, and H. Li. High-resolution image inpainting using multi-scale neural patch synthesis. In CVPR, 2017. 3
+[51] P. Yao, Z. Fang, F. Wu, Y. Feng, and J. Li. Densebody: Directly regressing dense 3d human pose and shape from a single color image. arXiv preprint arXiv:1903.10153, 2019. 1, 2, 4
+[52] J. Yu, Z. Lin, J. Yang, X. Shen, X. Lu, and T. Huang. Generative image inpainting with contextual attention. In CVPR, 01 2018. 3
+[53] X. Yuan and I. Kyu Park. Face de-occlusion using 3d morphable model and generative adversarial network. In ICCV, 2019. 2
+[54] H. Zhang, J. Cao, G. Lu, W. Ouyang, and Z. Sun. Danet: Decompose-and-aggregate network for 3d human shape and pose estimation. In ACM MM, 2019. 1
+
+[55] H. Zhu, X. Zuo, S. Wang, X. Cao, and R. Yang. Detailed human shape estimation from a single image by hierarchical mesh deformation. In CVPR, 2019. 2
\ No newline at end of file
diff --git a/objectoccludedhumanshapeandposeestimationfromasinglecolorimage/images.zip b/objectoccludedhumanshapeandposeestimationfromasinglecolorimage/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..c6972007db622ad561ac13078905b08a4d17eb70
--- /dev/null
+++ b/objectoccludedhumanshapeandposeestimationfromasinglecolorimage/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cfe40d8ded2ff86bc23fd650b15ba0e3e51306b5735797708ba453a410b5f2d5
+size 687106
diff --git a/objectoccludedhumanshapeandposeestimationfromasinglecolorimage/layout.json b/objectoccludedhumanshapeandposeestimationfromasinglecolorimage/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..29ab78d3ed0da017d23a74d292863623f9bbdd64
--- /dev/null
+++ b/objectoccludedhumanshapeandposeestimationfromasinglecolorimage/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9a14dd289e2e2475862592950a5eab3f41180bd99e24a62b6806c1c9029b2dda
+size 320698
diff --git a/objectrelationalgraphwithteacherrecommendedlearningforvideocaptioning/0b748691-8f7f-4527-aa52-99cb9e1e8863_content_list.json b/objectrelationalgraphwithteacherrecommendedlearningforvideocaptioning/0b748691-8f7f-4527-aa52-99cb9e1e8863_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..29a16e489f2a310126c3ce6e9234d2521316842c
--- /dev/null
+++ b/objectrelationalgraphwithteacherrecommendedlearningforvideocaptioning/0b748691-8f7f-4527-aa52-99cb9e1e8863_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:27586d5356971a877636970835fbdd2d059448bab6fdc02b34f18724dc4b7c53
+size 92739
diff --git a/objectrelationalgraphwithteacherrecommendedlearningforvideocaptioning/0b748691-8f7f-4527-aa52-99cb9e1e8863_model.json b/objectrelationalgraphwithteacherrecommendedlearningforvideocaptioning/0b748691-8f7f-4527-aa52-99cb9e1e8863_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..24d6870418f188bc95e527134ddaf7ad6a8695c6
--- /dev/null
+++ b/objectrelationalgraphwithteacherrecommendedlearningforvideocaptioning/0b748691-8f7f-4527-aa52-99cb9e1e8863_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5b6f7d6201ef7fdece826b697012b6f4061e984f5aaa7afe1fbb270dc9375c68
+size 113725
diff --git a/objectrelationalgraphwithteacherrecommendedlearningforvideocaptioning/0b748691-8f7f-4527-aa52-99cb9e1e8863_origin.pdf b/objectrelationalgraphwithteacherrecommendedlearningforvideocaptioning/0b748691-8f7f-4527-aa52-99cb9e1e8863_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..8a9e6c75196920daec92f5dffa7916e8cb80ecb9
--- /dev/null
+++ b/objectrelationalgraphwithteacherrecommendedlearningforvideocaptioning/0b748691-8f7f-4527-aa52-99cb9e1e8863_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:092ddd64edd925bdfe808069a718fab5b6a42d56d8a793c9f7c406e3e181a9ce
+size 835997
diff --git a/objectrelationalgraphwithteacherrecommendedlearningforvideocaptioning/full.md b/objectrelationalgraphwithteacherrecommendedlearningforvideocaptioning/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..1d729a2e6a355c300a0f3fe66e13fc5766fe7a81
--- /dev/null
+++ b/objectrelationalgraphwithteacherrecommendedlearningforvideocaptioning/full.md
@@ -0,0 +1,414 @@
+# Object Relational Graph with Teacher-Recommended Learning for Video Captioning
+
+Ziqi Zhang $^{1,3*}$ , Yaya Shi $^{2*}$ , Chunfeng Yuan $^{1†}$ , Bing Li $^{1,6,7}$ , Peijin Wang $^{3,5}$ , Weiming Hu $^{1,3,4}$ , Zhengjun Zha $^{2}$ $^{1}$ National Laboratory of Pattern Recognition, CASIA
+
+$^{2}$ University of Science and Technology of China $^{3}$ University of Chinese Academy of Sciences
+
+4Center for Excellence in Brain Science and Intelligence Technology, CAS
+
+$^{5}$ Aerospace Information Research Institute, CAS $^{6}$ PeopleAI, Inc.
+
+${}^{7}$ State Key Laboratory of Communication Content Cognition,People's Daily Online
+
+{zhangziqi2017}@ia.ac.cn,{shiyaya,zhazj}@mail.ustc.edu.cn,{cfyuan,bli,wmhu}@nlpr.iacn
+
+# Abstract
+
+Taking full advantage of the information from both vision and language is critical for the video captioning task. Existing models lack adequate visual representation due to the neglect of interaction between object, and sufficient training for content-related words due to long-tailed problems. In this paper, we propose a complete video captioning system including both a novel model and an effective training strategy. Specifically, we propose an object relational graph (ORG) based encoder, which captures more detailed interaction features to enrich visual representation. Meanwhile, we design a teacher-recommended learning (TRL) method to make full use of the successful external language model (ELM) to integrate the abundant linguistic knowledge into the caption model. The ELM generates more semantically similar word proposals which extend the ground-truth words used for training to deal with the long-tailed problem. Experimental evaluations on three benchmarks: MSVD, MSR-VTT and VATEX show the proposed ORGTRL system achieves state-of-the-art performance. Extensive ablation studies and visualizations illustrate the effectiveness of our system.
+
+# 1. Introduction
+
+Video captioning aims to generate natural language descriptions automatically according to the visual information of given videos. There are many wonderful visions of video captioning such as blind assistance and autopilot assistance. Video captioning needs to consider both spatial appearance and temporal dynamics of video contents,
+
+
+Figure 1. Long-tailed problem of the caption corpus. The top-50 words frequency of MSR-VTT are shown. Under the guidance of TRL, more potential content-specific words are exposed to the caption model. Compared with the words frequency before, the words in tail region get an overall boosting.
+
+which is a promising and challenging task [20, 37, 39, 52]. The key problems in this task are twofold: how to extract discriminative features to represent the contents of videos, and how to leverage the existing visual features to match the corresponding captioning corpus. The ultimate aim is to cross the gap between vision and language.
+
+For vision representation, previous works [48, 50, 25, 24, 38] always leverage appearance features of keyframes and motion features of segments to represent video contents. These features extract global information and hard to capture the detailed temporal dynamics of objects in the video. The most recent works [53, 13] apply a pretrained object detector to obtain some object proposals in each keyframe and use spatial/temporal attention mechanisms to fuse object features. However, they neglect the relationship between objects in the temporal and spatial domains. Some researches in the field of Visual Question Answering, Image Captioning even Action Recognition demonstrate that the relationship between objects is vital, which also plays an important role in generating a more detailed and diverse description for a video.
+
+For sentence generation, according to statistics of word
+
+frequency in caption corpus, it is found that the majority of words are function words and common words e.g. "the" and "man", which are far more than the real content-specific words in number. This is the so-called "long-tailed" problem, as shown in Fig.1. This problem will cause insufficient training for a large number of meaningful words. Although the long-tailed problem can be relieved by giving different weights to different words [9], it can not be solved fundamentally. Furthermore, a caption model should not only comprehend visual information but also grasp linguistic ability using such a small number of samples, which is a so heavy task! Why not employ a ready-made ELM e.g. BERT [8] or GPT [28] as a teacher, to directly impart linguistic knowledge to the caption model, to mitigate the problem caused by insufficient samples.
+
+In this paper, we propose a novel model with the assistance of an original training strategy to deal with above two issues for video captioning: 1) We construct a learnable ORG to fully explore the spatial and temporal relationships between objects. With the help of graph convolutional networks(GCNs) [17], object representations can be enhanced during the process of relational reasoning. Specifically, we explore two kinds of graphs: the partial object relational graph (P-ORG) connects objects in the same frame, and the complete object relational graph (C-ORG) builds a connection for all the objects in video. Scaled dot-product is utilized to implicitly compute relationships between each object, which is learnable during training. Finally, object features are updated by GCNs to be more informative features. 2) Generally, the caption model is forced to learn the ground-truth word at each training step, so we call this process as the teacher-enforced learning (TEL) and these words as hard target. However, TEL doesn't consider the long-tailed problem. Therefore, we propose a TRL method, which makes full use of external language model (ELM) to generate some word proposals according to the prediction probability of current ground-truth words. These proposals are called soft targets, which are often semantically similar with the ground-truth words and extended them. Specifically, the ELM is off-line well-trained on a large-scale external corpus, and it is employed as an experienced teacher, who has contained a wealth of linguistic knowledge. By contrast, the caption model can be regarded as a student. Under the guidance of TRL, excellent linguistic knowledge from ELM is transformed into the caption model.
+
+The contributions of this work can be summarized as following: 1) We construct novel ORGs to connect each object in video and utilizes GCNs to achieve relational reasoning, which enrich the representation of detailed objects further. 2) The TRL is proposed as a supplement of the TEL, to integrate linguistic knowledge from an ELM to the caption model. Several times words are trained at each time step more than before. It's effective to relieve long-tailed prob
+
+lem and improve generalization of the caption model. 3) Our model achieves state-of-the-art performances on three benchmarks: MSVD, MSR-VTT, and newly VATEX.
+
+# 2. Related Works
+
+Video Captioning. Recent researches mainly focus on sequence-learning based methods [34, 48, 50, 25, 24, 38, 27], which adopt encoder-decoder structure. Yao et al. [48] propose a temporal attention mechanism to dynamically summarize the visual features. Wang et al. [38] try to enhance the quality of generated captions by reproducing the frame features from decoding hidden states. More recently, there are some researches concerning the object-level information [47, 53, 13]. Zhang et al. [53] use a bidirectional temporal graph to capture detailed temporal dynamics for the salient objects in the video. Hu et al. [13] use two layers stacked LSTM as an encoder to construct the temporal structure at frame-level and object-level successively.
+
+However, these methods mainly work on the global information or temporal structure of salient objects without considering the interactions between each object in frames. In this work, we propose a graph-based approach, which constructs a temporal-spatial graph on all the objects in a video to enhance object-level representation.
+
+Visual Relational Reasoning. Some researches have shown that visual relational reasoning is effective for computer vision tasks, such as Image Captioning [49, 46], VQA [23, 22, 18] and Action Recognition [41, 42]. Yao et al. [49] exploit predefined semantic relations learned from the scene graph parsing task [51] and embed the graph structure into vector representations by using a modified GCN. Li et al. [18] use both explicit graph and learnable implicit graph to enrich image representation and apply GAT [33] to update relations in attentive weight. Wang et al. [42] compute both implicit similarity relation and relative positional relation of each object in the video, and then apply GCNs to perform reasoning. There are few efforts utilizing relational reasoning for video captioning.
+
+External Language Model for Seq2Seq Generation Tasks. ELM has been applied to many natural language generation tasks such as neural machine translation (NMT) and automatic speech recognition (ASR). An early attempt to use ELM for NMT in [10] is also known as shallow fusion and deep fusion. Kannan et al. [14] fully explore the behavior of shallow fusion with different ELMs and test them on a large-scale ASR task. Sriram et al. [30] propose cold fusion to improve ASR performance.
+
+These above fusion methods illustrate promising performance but also have some limitations. Shallow fusion may bring bias when output logits are used directly because of the difference in the data distribution between language model and task model. Deep fusion also needs ELM during inference and cold fusion relies on additional gating mech
+
+
+Figure 2. The overview of our proposed ORG-TRL system. It mainly consists of the ORG based object encoder presented in the top-left box, and the hierarchical decoder with temporal/spatial attention in the top-right box. Our model is under the co-guidance of the novel TRL in the bottom-left box and the common TEL in the bottom-right. It also illustrates a virtual example during training: when $t = 3$ , the TEL forces the model to learn "talk", but the TRL recommends the model to learn more words via the knowledge from ELM.
+
+anisms and networks, which will bring heavy calculations and complexity to the task model. Inspired by [2], our introduced TRL method only calculates the KL divergence between "soft targets" and output distribution of task model during training which can well overcome above-mentioned limitations.
+
+# 3. Methodology
+
+Fig.2 illustrates the overview of our system. An encoder-decoder framework is followed. Appearance, motion and detailed objects features are extracted by diverse networks. Specifically, we construct a graph based object encoder whose core is a learnable object relational graph (ORG), which can learn the interaction among different objects dynamically. The description generator generates each word by steps, with attentively aggregating visual features in space and time. For the learning process, not only normal teacher-enforced learning (TEL) but also proposed teacher-recommended learning (TRL) strategy are leveraged to learn task-specific knowledge and external linguistic knowledge separately.
+
+# 3.1. Object Relational Graph based Visual Encoder
+
+Formally, given a sequence of video frames, we uniformly extract $T$ frames as keyframes, and collect a short-range video frames around keyframes as segments which reflects the temporal dynamics of a video. The pretrained 2D CNNs and 3D CNNs are employed to extract the appearance features $\mathcal{F} = \{f_i\}$ of each keyframe and motion features $\mathcal{M} = \{m_i\}$ of each segment separately, where $f_{i}$ and $m_{i}$ denote the features of the $i_{th}$ frame and segment respectively; $i = 1,\dots ,L$ ; $L$ denotes the number of keyframes.
+
+People always describe an object based on its relationships with others in the video. In order to get the detailed object representations, the pretrained object detector is ap
+
+plied to capture several class-agnostic object proposals in each keyframe and extract their features $\mathcal{R}^i = \left\{r_k^i\right\}, i = 1, \dots, L, k = 1, \dots, N$ , where $r_k^i$ represents the $k_{th}$ object feature in $i_{th}$ keyframe, $L$ is the number of keyframes and $N$ is the number of objects in each frame. These original object features are independent, and they have no interaction with each other in time and space.
+
+To learn the relation message from surrounding objects, we define a relational graph for a object set and then use it to update the object features. Specifically, given $K$ objects, each object is considered as a node. Let $R \in \mathbb{R}^{K \times d}$ denote $K$ object nodes with $d$ dimensional feature, and $A \in \mathbb{R}^{K \times K}$ denote the relation coefficient matrix between $K$ nodes. We define $A$ as:
+
+$$
+A = \phi (R) \cdot \psi (R) ^ {T} \tag {1}
+$$
+
+$$
+\phi (R) = R \cdot W _ {i} + b _ {i}, \psi (R) = R \cdot W _ {j} + b _ {j} \tag {2}
+$$
+
+where $W_{i}, W_{j} \in \mathbb{R}^{d \times d'}$ and $b_{i} \in \mathbb{R}^{d}, b_{j} \in \mathbb{R}^{d'}$ are learnable parameters. Subsequently, $A$ is normalized to make the sum of edges, connecting to the same node, equals to 1:
+
+$$
+\hat {A} = \operatorname {s o f t m a x} (A, \dim = 1) \tag {3}
+$$
+
+where $\hat{A}$ can be seen as how much information the center object gets from the surrounding objects. We apply GCNs to perform relational reasoning, then original objects features $R$ are updated to $\hat{R}$ :
+
+$$
+\hat {R} = \hat {A} \cdot R \cdot W _ {r} \tag {4}
+$$
+
+where $\hat{R} \in \mathbb{R}^{K \times d}$ is enhanced object features with interaction message between objects, and $W_{r} \in \mathbb{R}^{d \times d}$ is learnable parameters.
+
+We explore two kinds of relational graphs as shown in Fig.3, the P-ORG and the C-ORG. Specifically, the P-ORG only build the relationship between $N$ objects in the
+
+
+Figure 3. The diagrams of the proposed P-ORG and C-ORG. Each colored square represents the vector of the object. $A$ is the relational coefficient matrix.
+
+same frame thus a $A \in \mathbb{R}^{N \times N}$ relational graph is constructed. Note that learnable parameters of relational graph are shared with all $L$ frames. Although object proposals appearing in different frames may belong to the same entity, they are considered as different nodes because of diverse states. Meanwhile, the C-ORG constructs a complete graph $A \in \mathbb{R}^{(N \times L) \times (N \times L)}$ which connects each object with all the other $N \times L$ objects in the video. It's noisy to directly connect center node with all $N \times L$ nodes, thus we select top-k corresponding nodes to connect.
+
+Finally, the enhanced object features are computed by performing relational reasoning. They are together with appearance and motion features to sufficiently present videos.
+
+# 3.2. Description Generation
+
+After getting the sufficient video features, we propose a hierarchical decoder with a temporal-spatial attention module to generate linguistic descriptions by steps. The hierarchical decoder consists of the Attention LSTM and the Language LSTM.
+
+Firstly, the Attention LSTM is to summarize current semantics $h_t^{attn}$ according to the history hidden state $h_{t-1}^{lang}$ of Language LSTM, concatenated with mean-pooled global video feature $\bar{v} = \frac{1}{L}\sum v_i$ and the previous word $w_{t-1}$ at the decoding step $t$ :
+
+$$
+h _ {t} ^ {\text {a t t n}} = \mathbf {L S T M} ^ {\text {a t t n}} \left(\left[ \bar {v}, W _ {e} w _ {t - 1}, h _ {t - 1} ^ {\text {l a n g}} \right]; h _ {t - 1} ^ {\text {a t t n}}\right) \tag {5}
+$$
+
+where $v_{i} = [f_{i},m_{i}]$ , $f_{i}\in \mathcal{F}$ , $m_{i}\in \mathcal{M}$ , is the concatenation of appearance feature and motion feature, $W_{e}$ is the learnable word embedding matrix.
+
+Following the current semantics $h_t^{att}$ , the temporal attention module dynamically decides when (frames) to attend, and abstracts the global context features $c_t^g$ :
+
+$$
+c _ {t} ^ {g} = \sum_ {i = 1} ^ {L} \alpha_ {t, i} v _ {i}
+$$
+
+$$
+\alpha_ {t, i} = \operatorname {s o f t m a x} \left(w _ {a} ^ {T} \tanh \left(W _ {a} v _ {i} + U _ {a} h _ {t} ^ {\text {a t t n}}\right)\right) \tag {6}
+$$
+
+where $\alpha_{t,i}$ is the weight of the $i_{th}$ global feature at the $t_{th}$ decoding step; $L$ is the number of keyframes; $w_{a}, W_{a}$ and $U_{a}$ are learnable parameters.
+
+For local object feature, objects in different frames are firstly aligned to merge together, and then the spatial attention module chooses which objects should be focused on. We use a simple but effective method to align objects in different frames. The process is shown on the left pictures in Fig.2, and the dotted line trajectories present the objects alignment. We set objects in the first frame as anchors, and define $\text{sim}_i(j,j')$ as the cosine distance between the $j_{th}$ object in anchor frame and the $j_{th}'$ in $i_{th}$ frame:
+
+$$
+\operatorname {s i m} _ {i} \left(j, j ^ {\prime}\right) = \cos \left(r _ {j} ^ {1}, r _ {j ^ {\prime}} ^ {i}\right) \tag {7}
+$$
+
+where $j,j^{\prime} = 1,\ldots ,N;i = 2,\ldots ,L$ . Considering the similarity between two objects themselves, we use original object features $\mathcal{R}$ to calculate similarity rather than enhanced features $\hat{\mathcal{R}}$ . The object in each frame is aligned to the anchors according to the maximum similarity. These aligned objects ideally belong to the same entity. Enhanced features $\hat{\mathcal{R}}$ , following the group of aligned objects, are weighted sum by $\{\alpha_{t,i}\}, i = 1,\dots ,L$ . In this way, objects in different frames are merged into one frame as local aligned features $\tilde{R}$ according to alignment operation and temporal attention.
+
+Then, the spatial attention module decides where (objects) to attend, and abstracts local context feature $c_t^l$ :
+
+$$
+c _ {t} ^ {l} = \sum_ {j = 1} ^ {N} \beta_ {t, j} u _ {j}
+$$
+
+$$
+\beta_ {t, j} = \operatorname {s o f t m a x} \left(w _ {b} ^ {T} \tanh \left(W _ {b} u _ {j} + U _ {b} h _ {t} ^ {\text {a t t n}}\right)\right) \tag {8}
+$$
+
+where $u_{j} \in \tilde{R}$ denotes one of the $N$ local aligned features; $w_{b}, W_{b}$ and $U_{b}$ are learnable parameters.
+
+Finally, the Language LSTM summarizes both global and local context features to generate current hidden state $h_t^{lang}$ . The probability distribution of the caption model $P_{t}$ is acquired, followed with a single layer perceptron and the softmax operation at decoding step $t$ :
+
+$$
+h _ {t} ^ {\text {l a n g}} = \mathbf {L S T M} ^ {\text {l a n g}} \left(\left[ c _ {t} ^ {g}, c _ {t} ^ {l}, h _ {t} ^ {\text {a t t n}} \right]; h _ {t - 1} ^ {\text {l a n g}}\right) \tag {9}
+$$
+
+$$
+P _ {t} = \operatorname {s o f t m a x} \left(W _ {z} h _ {t} ^ {\text {l a n g}} + b _ {z}\right) \tag {10}
+$$
+
+where $[\cdot ,\cdot ]$ denotes concatenation; $P_{t}$ is a $D$ -dimensional vector of vocabulary size; $W_{z}$ and $b_{z}$ are learnable parameters.
+
+# 3.3. Teacher-recommended Learning via External Language Model
+
+For a sufficient training of content-specific words, the proposed model is jointly trained under the guidance of common TEL and proposed TRL.
+
+| t=4 | A | woman | with | green | | | | | | | | | |
| soft targets | long | blonde | short | curly | brown | black | red | dark | white | pink | ... | | |
| probability | 0.047 | 0.025 | 0.020 | 0.019 | 0.017 | 0.016 | 0.015 | 0.014 | 0.011 | 0.011 | | |
| t=6 | A | woman | with | green | hair | teaching | | | | | | | |
| soft targets | shows | showing | demonstrates | demonstrating | explains | explaining | teaches | teaching | tells | describes | ... | | |
| probability | 0.086 | 0.066 | 0.065 | 0.033 | 0.023 | 0.015 | 0.014 | 0.014 | 0.013 | 0.012 | | |
| t=13 | A | woman | with | green | hair | teaching | how | to | trim | flowers | in | a | vase |
| soft targets | vase | garden | greenhouse | yard | room | field | tree | backyard | flower | bouquet | ... | | |
| probability | 0.074 | 0.051 | 0.015 | 0.015 | 0.014 | 0.010 | 0.0095 | 0.0081 | 0.0068 | 0.0061 | | |
+
+Table 1. An example of "soft targets" and "hard target" (colored words) at three positions of the same sentence. Given the words before "hard targets", the ELM generate 10 "soft targets" and their probabilities in descending order.
+
+As for conventional TEL process, the caption model is forced to generate the ground-truth word at each time step. This word is the so-called "hard target", which are expressed as $\mathcal{X}_{\text {hard }} = \left\{x_{1}^{h}, x_{2}^{h}, \ldots, x_{T_{s}}^{h}\right\}$ , where $x_{t}^{h}$ is one ground-truth word at the $t_{th}$ decoding step; $T_{s}$ denotes training step in total of the given sentence. We refer to our designed caption model as CAP, and the output probability distribution of CAP is $P_{t} = \text{CAP}(w_{< t} | \theta_{CAP})$ , where $w_{< t}$ is history words; $\theta_{CAP}$ stands all the parameters of the CAP. The training criterion is based on Cross-Entropy loss, only the probability corresponding to ground-truth participate in calculation:
+
+$$
+\mathcal {L} _ {C E} (\theta) = - \sum_ {t = 1} ^ {T} \delta \left(x _ {t} ^ {h}\right) ^ {T} \cdot \log P _ {t} \tag {11}
+$$
+
+where $\delta (d)\in \mathbb{R}^{D}$ denotes one-hot vector, and the value equals to 1 only at the word $d$ position; $P_{t}\in \mathbb{R}^{D}$ is the output distribution of the CAP; $x_{t}^{h}$ is the "hard targets".
+
+The TEL is lack of sufficient training for content-related words due to long-tailed problems. Therefore, we propose the TRL to integrate the knowledge from ELM. There are many ready-made models that can be employed as ELM e.g. Bert and GPT. Suppose we got an ELM that has been well trained on a large scale monolingual corpus. When given the previous $t - 1$ words $w_{| Models | Year | Features | MSVD | MSR-VTT |
| Appearance | Motion | Object | B@4 | M | R | C | B@4 | M | R | C |
| SA-LSTM [38] | 2018 | Inception-V4 | - | - | 45.3 | 31.9 | 64.2 | 76.2 | 36.3 | 25.5 | 58.3 | 39.9 |
| M3 [40] | 2018 | VGG | C3D | - | 52.8 | 33.3 | - | - | 38.1 | 26.6 | - | - |
| RecNet [38] | 2018 | Inception-V4 | - | - | 52.3 | 34.1 | 69.8 | 80.3 | 39.1 | 26.6 | 59.3 | 42.7 |
| PickNet* [6] | 2018 | ResNet-152 | - | - | 52.3 | 33.3 | 69.6 | 76.5 | 41.3 | 27.7 | 59.8 | 44.1 |
| MARN [27] | 2019 | ResNet-101 | C3D | - | 48.6 | 35.1 | 71.9 | 92.2 | 40.4 | 28.1 | 60.7 | 47.1 |
| SibNet [21] | 2019 | GoogleNet | - | - | 54.2 | 34.8 | 71.7 | 88.2 | 40.9 | 27.5 | 60.2 | 47.5 |
| OA-BTG [53] | 2019 | ResNet-200 | - | Mask-RCNN | 56.9 | 36.2 | - | 90.6 | 41.4 | 28.2 | - | 46.9 |
| GRU-EVE [1] | 2019 | InceptionResnetV2 | C3D | YOLO | 47.9 | 35.0 | 71.5 | 78.1 | 38.3 | 28.4 | 60.7 | 48.1 |
| MGSA [5] | 2019 | InceptionResnetV2 | C3D | - | 53.4 | 35.0 | - | 86.7 | 42.4 | 27.6 | - | 47.5 |
| POS+CG [36] | 2019 | InceptionResnetV2 | OpticalFlow | - | 52.5 | 34.1 | 71.3 | 88.7 | 42.0 | 28.2 | 61.6 | 48.7 |
| POS+VCT [12] | 2019 | InceptionResnetV2 | C3D | - | 52.8 | 36.1 | 71.8 | 87.8 | 42.3 | 29.7 | 62.8 | 49.1 |
| ORG-TRL | Ours | InceptionResnetV2 | C3D | FasterRCNN | 54.3 | 36.4 | 73.9 | 95.2 | 43.6 | 28.8 | 62.1 | 50.9 |
+
+Table 2. Performance comparisons on MSVD and MSR-VTT benchmarks. The best results and corresponding features are listed.
+
+| Model | B@4 | M | R | C |
| Shared Enc [43] | 28.9 | 21.9 | 47.4 | 46.8 |
| Shared Enc-Dec [43] | 28.7 | 21.9 | 47.2 | 45.6 |
| Baseline(Ours) | 30.2 | 21.3 | 47.9 | 44.6 |
| Baseline+ORG(Ours) | 31.5 | 21.9 | 48.7 | 48.8 |
| Baseline+TRL(Ours) | 31.5 | 22.1 | 48.7 | 49.3 |
| Baseline+ORG+TRL(Ours) | 32.1 | 22.2 | 48.9 | 49.7 |
+
+Table 3. The results of the VATEX online evaluation system.
+
+| Methods | MSVD | MSR-VTT |
| ORG | TRL | B@4 | M | R | C | B@4 | M | R | C |
| × | × | 53.3 | 35.2 | 72.4 | 91.7 | 41.9 | 27.5 | 61.0 | 47.9 |
| ✓ | × | 54.0 | 36.0 | 73.2 | 94.1 | 43.3 | 28.4 | 61.5 | 50.1 |
| × | ✓ | 54.0 | 36.0 | 73.7 | 93.3 | 43.2 | 28.6 | 61.7 | 50.4 |
| ✓ | ✓ | 54.3 | 36.4 | 73.9 | 95.2 | 43.6 | 28.8 | 62.1 | 50.9 |
+
+nore the relationship between objects. Our ORG method achieves better performances than OA-BTG on MSR-VTT in Tab.2, which illustrates the benefits of object relations. Note that, POS+VCT achieves higher scores under ME-TEOR and ROUGE-L on MSR-VTT, and these are probably caused by the reason that their POS method can learn the syntactic structure representation.
+
+Besides, we also report the results of our model on the public test set of recent published VATEX dataset as shown in Tab.3. These results come from the online test system. Compared with the baseline model, we train the model on English corpus without sharing Encoder and Decoder.
+
+# 4.4. Ablation Experiments
+
+Effectiveness of each component. We design 4 control experiments to demonstrate the effectiveness of the proposed ORG module and TRL. Tab.4 gives the control results on the testing set of MSVD and MSR-VTT datasets. The baseline model only applies appearance and motion features, and the same encoder-decoder architecture as mentioned above except without object encoder. It follows the Cross-Entropy criterion, and the results are shown in
+
+Table 4. Ablation Studies of the ORG and the TRL on MSVD and MSR-VTT benchmarks.
+
+| Methods | Top-k | B@4 | M | R | C |
| Baseline(B) | - | 41.9 | 27.5 | 61.0 | 47.9 |
| B+P-ORG | - | 43.1 | 28.3 | 61.4 | 50.4 |
| B+C-ORG | 5 | 43.3 | 28.4 | 61.5 | 50.1 |
| B+C-ORG | 1 | 42.4 | 28.4 | 61.2 | 49.3 |
| B+C-ORG | 20 | 42.9 | 28.4 | 61.8 | 50.0 |
| B+C-ORG | All | 42.8 | 28.2 | 61.2 | 49.3 |
+
+Table 5. Ablation for two kinds of ORGs (top-half), and performance comparisons of the C-ORG with different top-k objects (bottom-half) on MSR-VTT.
+
+the first row of the table. Compared with the baseline model, both ORG and TRL achieve improvement when added alone. The combination of two methods can further enhance the performance which is illustrated as the last row.
+
+The evaluation of ORG. We explore two proposed ORGs: the P-ORG and the C-ORG, and we connect top-5 object nodes for C-ORG. The top half of Tab.5 demonstrates that C-ORG is better than P-ORG. It is probable that P-ORG can get more comprehensive information from the whole video than P-ORG. Moreover, both ORGs achieve significant improvement compared with the baseline model, which attributes to the association between objects. We also explore the effect of different Top-k for the C-ORG which is listed in the bottom half of Tab.5. "All" means each node acquires information from all nodes. We find that the highest performances are achieved at the sweat point when $k = 5$ . A proper explanation is that, when $k$ is too small, there are not enough related objects to update the relation of node; when $k$ is too large, a few unrelated nodes will be introduced and bring noise.
+
+The evaluation of TRL. We analyze the effect of different ELM temperatures $T_{e}$ and different ratios of KL-loss $\lambda$ . Fig.5 illustrates the performances on CIDEr: If $T_{e}$ is too low, the distribution of soft targets is sharp, thus large noise will be introduced if top-one is not the content related word. Otherwise, the distribution is too smooth to reflect the importance of soft targets. On the other hand, the weight of $\lambda$ reflects the degree of the TRL: the generation will devi
+
+
+GT: a woman is mixing something in a bowl
+Baseline: there is a woman is making a dish
+
+
+
+
+
+
+GT: the man in the green shirt is cutting potatoes in thin slices
+Baseline: a man in a kitchen is slicing a piece of bread
+
+
+
+
+
+
+
+
+
+
+ORG-TRL: a person is mixing some food in a bowl
+
+
+GT: female models are walking down a runway in dresses Baseline: a woman walks down a runway
+
+
+
+
+GT: two men are competing in a fierce table tennis game. Baseline: there is a man in red is playing table tennis
+
+
+ORG-TRL: a man in a black shirt is cutting some vegetables in a kitchen
+
+
+
+
+
+
+
+
+ORG-TRL: a woman in a dress is walking on a stage
+Figure 5. Analysis of different temperatures of ELM and different ratios of KL-loss on MSR-VTT.
+
+ate from the content of the video itself if $\lambda$ is too high; it plays no role if too low. Fig.6 shows comparisons of the intermediate states of the baseline model and our TRL based model at inference time, and two models are trained with the same epoch: the red word is the next word to be predicted; the green box and blue box show the predictions and their probabilities of baseline model and our TRL method respectively. See the first clip, "climate change" is a very common noun phrase, but it rarely appears in the caption task. As shown in the second clip, the caption model can predict various proper combinations after "basketball" according to the sentence context. Moreover, the most of words are relative with video content. Our TRL method can help the model to learn some common matches and content-related words. To some extent, it effectively alleviates the long-tailed problem of video captioning task. We also experiment various top-k soft targets, see the appendix for detail.
+
+# 4.5. Qualitative Analysis
+
+We show some examples in Fig.4. It can be seen, the content of captions generated by our model is richer than the baseline model, and more activity associations are involved. For instance, the example at top-left shows that the baseline model can only understand the general meaning of the video. By contrast, our model can recognize more detailed objects, and the relation "mixing" between "person" and "food", even the position "in a bowl". The rest of the examples have similar characteristics.
+
+ORG-TRL: two men are playing a game of ping pong
+Figure 4. Examples of generations on MSR-VTT with the baseline model and our proposed ORG-TRL system.
+GT: narrator talks about some people not believing in climate change
+
+[EOS] and the to [U 0.531 0.031 0.026 0.021 0.
+
+
+K] change effect [EOS] country weather 70 0.673 0.072 0.055 0.005 0.004
+
+
+
+GT: a guy in shorts and a white shirt is teaching different basketball moves
+Figure 6. Two instances of the baseline model and baseline+TRL model in inference. The red word is the word to be predicted. The left-green box is the prediction of baseline model; the right-blue box is under the guidance of TRL.
+
+[EOS] on ball and in 0.308 0.060 0.058 0.049 0.043
+
+
+[EOS] skills moves tricks in 0.308 0.060 0.057 0.049 0.043
+
+
+
+# 5. Conclusion
+
+In this paper, we have proposed a complete system, which contains a novel model and a training strategy for video captioning. By constructing relational graph between objects and performing relational reasoning, we can acquire more detailed and interactive object features. Furthermore, the novel TRL introduces external language model to guide the caption model to learn abundant linguistic knowledge, which is the supplement of the common TEL. Our system has achieved competitive performances on MSVD, MSR-VTT and VATEX datasets. The experiments and visualizations have demonstrates the effectiveness of our methods.
+
+Acknowledgements This work is supported by NSFC-general technology collaborative Fund for basic research (Grant No.U1636218, U1936204), Natural Science Foundation of China (Grant No.61751212, 61721004, U1803119), Beijing Natural Science Foundation (Grant No.L172051, JQ18018), CAS Key Research Program of Frontier Sciences (Grant No.QYZDJ-SSW-JSC040), CAS External cooperation key project, and National Natural Science Foundation of Guangdong (No.2018B030311046). Bing Li is also supported by Youth Innovation Promotion Association, CAS.
+
+# References
+
+[1] Nayyer Aafaq, Naveed Akhtar, Wei Liu, Syed Zulqarnain Gilani, and Ajmal Mian. Spatio-temporal dynamics and semantic attribute enriched visual encoding for video captioning. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019, pages 12487-12496, 2019.
+[2] Ye Bai, Jiangyan Yi, Jianhua Tao, Zhengkun Tian, and Zhengqi Wen. Learn spelling from teachers: Transferring knowledge from language models to sequence-to-sequence speech recognition. CoRR, abs/1907.06017, 2019.
+[3] David L. Chen and William B. Dolan. Collecting highly parallel data for paraphrase evaluation. In The 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies, Proceedings of the Conference, pages 190-200, 2011.
+[4] 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.
+[5] Shaoxiang Chen and Yu-Gang Jiang. Motion guided spatial attention for video captioning. In The Thirty-Third AAAI Conference on Artificial Intelligence, AAAI 2019, The Thirty-First Innovative Applications of Artificial Intelligence Conference, IAAI 2019, The Ninth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2019, pages 8191-8198, 2019.
+[6] Yangyu Chen, Shuhui Wang, Weigang Zhang, and Qingming Huang. Less is more: Picking informative frames for video captioning. In Computer Vision - ECCV 2018 - 15th European Conference, Munich, Germany, pages 367-384, 2018.
+[7] Michael J. Denkowski and Alon Lavie. Meteor universal: Language specific translation evaluation for any target language. In Proceedings of the Ninth Workshop on Statistical Machine Translation, WMT@ACL 2014, pages 376-380, 2014.
+[8] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, NAACL-HLT 2019, pages 4171–4186, 2019.
+[9] Jiarong Dong, Ke Gao, Xiaokai Chen, Junbo Guo, Juan Cao, and Yongdong Zhang. Not all words are equal: Video-specific information loss for video captioning. In British Machine Vision Conference 2018, BMVC 2018, page 58, 2018.
+[10] Caglar Gülcehre, Orhan First, Kelvin Xu, Kyunghyun Cho, Loic Barrault, Huei-Chi Lin, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. On using monolingual corpora in neural machine translation. CoRR, abs/1503.03535, 2015.
+[11] Kensho Hara, Hirokatsu Kataoka, and Yutaka Satoh. Can spatiotemporal 3d cnns retrace the history of 2d cnns and im
+
+agenet? In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, pages 6546-6555, 2018.
+[12] Jingyi Hou, Xinxiao Wu, Wentian Zhao, Jiebo Luo, and Yunde Jia. Joint syntax representation learning and visual cue translation for video captioning. In The IEEE International Conference on Computer Vision (ICCV), October 2019.
+[13] Yaosi Hu, Zhenzhong Chen, Zheng-Jun Zha, and Feng Wu. Hierarchical global-local temporal modeling for video captioning. In Proceedings of the 27th ACM International Conference on Multimedia, MM '19, pages 774-783, New York, NY, USA, 2019. ACM.
+[14] Anjuli Kannan, Yonghui Wu, Patrick Nguyen, Tara N. Sainath, Zhijeng Chen, and Rohit Prabhavalkar. An analysis of incorporating an external language model into a sequence-to-sequence model. In 2018 IEEE International Conference on Acoustics, Speech and Signal Processing, ICASSP 2018, pages 5824-5828, 2018.
+[15] Will Kay, João Carreira, Karen Simonyan, Brian Zhang, Chloe Hillier, Sudheendra Vijayanarasimhan, Fabio Viola, Tim Green, Trevor Back, Paul Natsev, Mustafa Suleyman, and Andrew Zisserman. The kinetics human action video dataset. CoRR, abs/1705.06950, 2017.
+[16] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In 3rd International Conference on Learning Representations, ICLR 2015, 2015.
+[17] Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In 5th International Conference on Learning Representations, ICLR 2017, 2017.
+[18] Linjie Li, Zhe Gan, Yu Cheng, and Jingjing Liu. Relation-aware graph attention network for visual question answering. CoRR, abs/1903.12314, 2019.
+[19] Chin-Yew Lin. Rouge: A package for automatic evaluation of summaries. In Text summarization branches out, pages 74-81, 2004.
+[20] Daqing Liu, Zheng-Jun Zha, Hanwang Zhang, Yongdong Zhang, and Feng Wu. Context-aware visual policy network for sequence-level image captioning. In MM '18, 2018.
+[21] Sheng Liu, Zhou Ren, and Junsong Yuan. Sibnet: Sibling convolutional encoder for video captioning. In 2018 ACM Multimedia Conference on Multimedia Conference, MM 2018, pages 1425-1434, 2018.
+[22] Medhini Narasimhan, Svetlana Lazebnik, and Alexander G. Schwing. Out of the box: Reasoning with graph convolution nets for factual visual question answering. In Advances in Neural Information Processing Systems 31: Annual Conference on Neural Information Processing Systems 2018, NeurIPS 2018, pages 2659-2670, 2018.
+[23] Will Norcliffe-Brown, Stathis Vafeias, and Sarah Parisot. Learning conditioned graph structures for interpretable visual question answering. In Advances in Neural Information Processing Systems 31: Annual Conference on Neural Information Processing Systems 2018, NeurIPS 2018, pages 8344-8353, 2018.
+[24] Pingbo Pan, Zhongwen Xu, Yi Yang, Fei Wu, and Yueting Zhuang. Hierarchical recurrent neural encoder for video representation with application to captioning. In 2016 IEEE
+
+Conference on Computer Vision and Pattern Recognition, CVPR 2016, pages 1029-1038, 2016.
+[25] Yingwei Pan, Tao Mei, Ting Yao, Houqiang Li, and Yong Rui. Jointly modeling embedding and translation to bridge video and language. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, pages 4594-4602, 2016.
+[26] Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, pages 311-318. ACL, 2002.
+[27] Wenjie Pei, Jiyuan Zhang, Xiangrong Wang, Lei Ke, Xiaoyong Shen, and Yu-Wing Tai. Memory-attended recurrent network for video captioning. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019, pages 8347–8356, 2019.
+[28] Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding by generative pre-training. 2018.
+[29] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael S. Bernstein, Alexander C. Berg, and Fei-Fei Li. Imagenet large scale visual recognition challenge. International Journal of Computer Vision, 115(3):211–252, 2015.
+[30] Anuroop Sriram, Heewoo Jun, Sanjeev Satheesh, and Adam Coates. Cold fusion: Training seq2seq models together with language models. In 6th International Conference on Learning Representations, ICLR 2018, 2018.
+[31] Christian Szegedy, Sergey Ioffe, Vincent Vanhoucke, and Alexander A. Alemi. Inception-v4, inception-resnet and the impact of residual connections on learning. In Proceedings of the Thirty-First AAAI Conference on Artificial Intelligence, pages 4278–4284, 2017.
+[32] Ramakrishna Vedantam, C. Lawrence Zitnick, and Devi Parikh. Cider: Consensus-based image description evaluation. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2015, pages 4566-4575, 2015.
+[33] Petar Velickovic, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Liò, and Yoshua Bengio. Graph attention networks. CoRR, abs/1710.10903, 2017.
+[34] Subhashini Venugopalan, Marcus Rohrbach, Jeffrey Donahue, Raymond Mooney, Trevor Darrell, and Kate Saenko. Sequence to sequence-video to text. In Proceedings of the IEEE international conference on computer vision, pages 4534-4542, 2015.
+[35] Subhashini Venugopalan, Huijuan Xu, Jeff Donahue, Marcus Rohrbach, Raymond J. Mooney, and Kate Saenko. Translating videos to natural language using deep recurrent neural networks. In NAACL HLT 2015, The 2015 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 1494-1504, 2015.
+[36] Bairui Wang, Lin Ma, Wei Zhang, Wenhao Jiang, Jingwen Wang, and Wei Liu. Controllable video captioning with pos sequence guidance based on gated fusion network. In The
+
+IEEE International Conference on Computer Vision (ICCV), October 2019.
+[37] Bairui Wang, Lin Ma, Wei Zhang, and Wei Liu. Reconstruction network for video captioning. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 7622-7631, 2018.
+[38] Bairui Wang, Lin Ma, Wei Zhang, and Wei Liu. Reconstruction network for video captioning. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, pages 7622-7631, 2018.
+[39] Jingwen Wang, Wenhao Jiang, Lin Ma, Wei Liu, and Yong Xu. Bidirectional attentive fusion with context gating for dense video captioning. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 7190-7198, 2018.
+[40] Junbo Wang, Wei Wang, Yan Huang, Liang Wang, and Tieniu Tan. M3: multimodal memory modelling for video captioning. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, pages 7512-7520, 2018.
+[41] Xiaolong Wang, Ross B. Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, pages 7794-7803, 2018.
+[42] Xiaolong Wang and Abhinav Gupta. Videos as space-time region graphs. In Computer Vision - ECCV 2018 - 15th European Conference, pages 413-431, 2018.
+[43] Xin Wang, Jiawei Wu, Junkun Chen, Lei Li, Yuan-Fang Wang, and William Yang Wang. Vatex: A large-scale, high-quality multilingual dataset for video-and-language research. In The IEEE International Conference on Computer Vision (ICCV), October 2019.
+[44] Saining Xie, Ross B. Girshick, Piotr Dólár, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In 2017 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, pages 5987-5995, 2017.
+[45] Jun Xu, Tao Mei, Ting Yao, and Yong Rui. MSR-VTT: A large video description dataset for bridging video and language. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, pages 5288-5296, 2016.
+[46] Xu Yang, Kaihua Tang, Hanwang Zhang, and Jianfei Cai. Auto-encoding scene graphs for image captioning. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019, pages 10685–10694, 2019.
+[47] Ziwei Yang, Yahong Han, and Zheng Wang. Catching the temporal regions-of-interest for video captioning. In Proceedings of the 2017 ACM on Multimedia Conference, MM 2017, pages 146-153, 2017.
+[48] Li Yao, Atousa Torabi, Kyunghyun Cho, Nicolas Ballas, Christopher J. Pal, Hugo Larochelle, and Aaron C. Courville. Describing videos by exploiting temporal structure. In 2015 IEEE International Conference on Computer Vision, ICCV 2015, pages 4507-4515, 2015.
+[49] Ting Yao, Yingwei Pan, Yehao Li, and Tao Mei. Exploring visual relationship for image captioning. In Computer Vision - ECCV 2018 - 15th European Conference, pages 711-727, 2018.
+
+[50] Haonan Yu, Jiang Wang, Zhiheng Huang, Yi Yang, and Wei Xu. Video paragraph captioning using hierarchical recurrent neural networks. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, pages 4584-4593, 2016.
+[51] Rowan Zellers, Mark Yatskar, Sam Thomson, and Yejin Choi. Neural motifs: Scene graph parsing with global context. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, pages 5831-5840, 2018.
+[52] Zheng-Jun Zha, Daqing Liu, Hanwang Zhang, Yongdong Zhang, and Feng Wu. Context-aware visual policy network for fine-grained image captioning. IEEE transactions on pattern analysis and machine intelligence, 2019.
+[53] Junchao Zhang and Yuxin Peng. Object-aware aggregation with bidirectional temporal graph for video captioning. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019, pages 8327-8336, 2019.
\ No newline at end of file
diff --git a/objectrelationalgraphwithteacherrecommendedlearningforvideocaptioning/images.zip b/objectrelationalgraphwithteacherrecommendedlearningforvideocaptioning/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..478cd9520475c22484c51dc91559098efe2d8a93
--- /dev/null
+++ b/objectrelationalgraphwithteacherrecommendedlearningforvideocaptioning/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9a5700d243dc6e2df55ca5c2a95bc006708f8f20898973bf5e50116e698e5957
+size 589813
diff --git a/objectrelationalgraphwithteacherrecommendedlearningforvideocaptioning/layout.json b/objectrelationalgraphwithteacherrecommendedlearningforvideocaptioning/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..c9c9c29bf978324cd52424609a785180064c11ab
--- /dev/null
+++ b/objectrelationalgraphwithteacherrecommendedlearningforvideocaptioning/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:82184ff07390913d3562707a5137ca210f53733574c6fb6dd4444acae587220d
+size 489628
diff --git a/occusegoccupancyaware3dinstancesegmentation/d8551103-9b25-45b4-b007-062251b69d28_content_list.json b/occusegoccupancyaware3dinstancesegmentation/d8551103-9b25-45b4-b007-062251b69d28_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..9503e39a745daf5a3a28a04c1b6c650a541df97a
--- /dev/null
+++ b/occusegoccupancyaware3dinstancesegmentation/d8551103-9b25-45b4-b007-062251b69d28_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e834a9b1cc9eb94a534ec4c771b958f845126e1b8b7ab47d5e50c0fb3f1e2720
+size 78490
diff --git a/occusegoccupancyaware3dinstancesegmentation/d8551103-9b25-45b4-b007-062251b69d28_model.json b/occusegoccupancyaware3dinstancesegmentation/d8551103-9b25-45b4-b007-062251b69d28_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..2fe9fa310f954f2eaedde6e461a9cf36c1777838
--- /dev/null
+++ b/occusegoccupancyaware3dinstancesegmentation/d8551103-9b25-45b4-b007-062251b69d28_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ba1be31d52a78bc676a84c62fe2635a1abf73d27244fffc3b17040649dda43be
+size 97465
diff --git a/occusegoccupancyaware3dinstancesegmentation/d8551103-9b25-45b4-b007-062251b69d28_origin.pdf b/occusegoccupancyaware3dinstancesegmentation/d8551103-9b25-45b4-b007-062251b69d28_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..2d4637e3fbc28cf6011b421ed09daee3914a6218
--- /dev/null
+++ b/occusegoccupancyaware3dinstancesegmentation/d8551103-9b25-45b4-b007-062251b69d28_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:716641cc6774a74411a371d74080dbd82d519b0d9496b4904c1cc214ce962b63
+size 1558310
diff --git a/occusegoccupancyaware3dinstancesegmentation/full.md b/occusegoccupancyaware3dinstancesegmentation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..643b3301ee2006fec9d7a1c7098e44f17aa6c698
--- /dev/null
+++ b/occusegoccupancyaware3dinstancesegmentation/full.md
@@ -0,0 +1,370 @@
+# OccuSeg: Occupancy-aware 3D Instance Segmentation
+
+Lei Han $^{1,2}$ , Tian Zheng $^{1}$ , Lan Xu $^{1,2}$ , and Lu Fang $^{1\boxtimes}$
+
+$^{1}$ Tsinghua University
+
+$^{2}$ Hong Kong University of Science and Technology
+
+
+(a) Input Geometry
+
+
+(b) Result
+
+
+(c) Ground Truth Instance
+
+
+(d) Spatial Term
+Figure 1. Given the input colored point cloud, occupancy size is regressed for each voxel, which predicts the number of voxels occupied by its belonging instance. An adaptive clustering scheme jointly considers both the occupancy information and embedding distance is further applied for 3D instance segmentation.
+
+
+(e) Feature Term
+
+
+(f) Occupancy
+
+# Abstract
+
+3D instance segmentation, with a variety of applications in robotics and augmented reality, is in large demands these days. Unlike 2D images that are projective observations of the environment, 3D models provide metric reconstruction of the scenes without occlusion or scale ambiguity. In this paper, we define "3D occupancy size", as the number of voxels occupied by each instance. It owns advantages of robustness in prediction, on which basis, OccuSeg, an occupancy-aware 3D instance segmentation scheme is proposed. Our multi-task learning produces both occupancy signal and embedding representations, where the training of spatial and feature embedding varies with their difference in scale-aware. Our clustering scheme benefits from the reliable comparison between the predicted occupancy size and the clustered occupancy size, which encourages hard samples being correctly clustered and avoids over segmenta
+
+tion. The proposed approach achieves state-of-the-art performance on 3 real-world datasets, i.e. ScanNetV2, S3DIS and SceneNN, while maintaining high efficiency.
+
+# 1. Introduction
+
+The past ten years have witnessed a rapid development of real-time 3D reconstruction technologies [31, 32, 5, 45, 14] with the popularity of commercial RGB-D depth sensors like Kinect, Xtion, etc. Given the reconstructed scene, there is an increasing attention for instance-level semantic understanding of the 3D environment. More specifically, 3D instance segmentation aims to recognize points belonging to the same object and simultaneously infer their semantic class, which serves as the fundamental technique for mobile robots as well as augmented/virtual reality applications.
+
+Although scene understanding on 2D images has achieved significant progress recently with the development of deep learning techniques, the irregularity of 3D data introduces new challenges beyond the capability of 2D solutions. As demonstrated in previous works [17], directly projecting the state-of-the-art 2D instance segmentation
+
+
+Figure 2. Overview of the proposed instance segmentation scheme. For the input point cloud, our method takes RGB feature as input and employ 3D UNet for point-wise feature learning. The learned feature is decoded to various representations though a fully connected layer for 3D instance segmentation.
+
+MaskRCNN [16] predictions into 3D space leads to poor performance, which inspires better solutions by incorporating 3D geometry information into the network design. A popular solution for 3D instance segmentation [26, 41, 21] is to marry the powerful 3D feature extractors (spatially sparse convolutional networks [13] or PointNet++ [37]) with conventional 2D image instance segmentation techniques [16, 7, 27]. Such existing 3D solutions pay less attention to utilizing the inherent property of the 3D model itself, which provides metric reconstruction of the environment without occlusion or scale ambiguity.
+
+In this paper, we propose an occupancy-aware 3D instance segmentation approach, OccuSeg. It takes the 3D geometry model as input, and produces point-wise predictions of instance level semantic information, as illustrated in Fig. 1. Given the insight that the 3D metric space provides more reliable perception than the 2D image-based projective observations for the 3D scene, we particularly introduce "3D occupancy signal", representing the number of voxels occupied by each instance. Such an occupancy signal represents the inherent and fundamental property of each 3D instance, showing a strong potential to handle the ambiguity of scale, location, texture, lighting and occlusion under the 3D setting. Thus, we encode the novel occupancy signal into the conventional 3D instance segmentation pipeline, i.e., learning stage followed by clustering stage. In our occupancy-aware approach, both the learning and clustering stages fully utilize the characteristic of the occupancy signal, leading to competitive performance on public datasets. The considerable gain on mAP (around 12.3 in mAP) further demonstrates that our occupancy-aware approach owns the superiority of preserving the inherent and fundamental nature of the instances in the 3D environment.
+
+More specifically, the learning stage takes a colored 3D scene as input, and utilizes the spatially sparse convolution approaches [12] to extract a hybrid vector for each voxel [26, 25, 21]. It not only learns the classic embedding such as spatial (Fig. 1(d)) and feature embedding (Fig.
+
+1(e)), but also produces an occupancy signal (Fig. 1(f)) that implies the object-level volume. To make full use of both the semantic and geometric information, our feature and spatial embedding are explicitly supervised with different objectives, and are further combined through covariance estimation for both feature and spatial embedding distance. For the clustering stage, the 3D input point cloud is grouped into super-voxels based on the geometric and appearance constraints using a graph-based segmentation algorithm [9]. Then, to merge the super-voxels with similar feature embedding into the same instance, we utilize an adaptive threshold to evaluate the similarity between the embedding distance and the occupancy size. Aided by the reliable comparison between the predicted occupancy size and the clustered occupancy size, our clustering encourages hard samples to be correctly clustered and eliminates the false positives where partial instances are recognized as an independent instance. The technical contributions are summarized as follows.
+
+- We present an occupancy-aware 3D instance segmentation scheme OccuSeg. It achieves state-of-the-art performance on three public datasets: ScanNetV2 [4], S3DIS [1] and SceneNN [18], ranking first in all metrics with a significant margin while remaining high efficiency, e.g., 12.3 gain in mAP on the ScanNetV2 benchmark.
+- In particular, a novel occupancy signal is proposed in this paper, which predicts the number of occupied voxels for each instance. The occupancy signal is learnt jointly with a combination of feature and spatial embedding and employed to guide the clustering stage of 3D instance segmentation.
+
+# 2. Related Work
+
+2D Instance Segmentation. 2D Instance segmentation methods are generally divided into two categories: proposal-based and proposal-free approaches. Proposal-
+
+based methods [10, 6, 16, 15, 23, 44] firstly generate region proposals (predefined rectangles) that contain objects and further classify pixels inside each proposal as objects or background. By arguing that convolutional operators are translational invariant and thus cannot distinguish similar objects at different places well, Novotny et al. [33] propose semi-convolutional operators based on the coordinates of each pixel for better instance segmentation.
+
+On the other hand, proposal-free methods [24, 7, 8, 20, 22] learn an embedding vector for each pixel and apply a clustering step in the embedding space as post processing for instance segmentation. Brabandere et al. [7] propose to train a per-pixel embedding vector and adopt a discriminative cost to encourage pixels belonging to the same instance to be as close as possible, while the embedding center of different instances to be far away from each other. Liang et al. [24] regress an offset vector pointing to the object center for each pixel and further use the predicted centers for instance segmentation from a "voting" perspective [22]. Recently, Neven et al. [30] introduce a learnable clustering bandwidth instead of learning embedding using hand-crafted cost functions, achieving accurate instance segmentation in real-time.
+
+While all these approaches have achieved promising results in the 2D domain, the extension to the 3D domain is non-trivial. How to utilize the fundamental property of 3D instance remains a challenging problem.
+
+3D Instance Segmentation. Unlike 2D images with regular pixel grids, the irregular distribution of 3D point clouds in physical space raises new challenges for 3D instance segmentation. Pioneer works [43, 40, 17] have tried to directly extend 2D convolutional neural networks to 3D space by voxelizing the input points into uniform voxels, and applying 3D convolutions instead. Yet most computations are wasted on the inactive empty voxels. Thus, recent methods utilize more feasible 3D feature extractors to tackle this problem. Point-based instance segmentation approaches [41, 46, 48] directly consume unordered point clouds as input and use a permutation invariant neural network PointNet [36, 37] for feature extraction. While volumetric approaches [26, 25, 21] employ Spatially-Sparse Convolutional Networks (SSCN) [12, 2] to omit computations on inactive voxels using the sparse convolution technique.
+
+Specifically, SGPN [41] proposes to learn a similarity matrix for all point pairs, based on which, similar points are merged for instance segmentation. 3D BoNet [46] directly predicts the bounding boxes of objects for efficient instance segmentation. GSPN [48] introduces a generative shape proposal network and relies on object proposals to identify instances in 3D point clouds. VoteNet [35] predicts offset vectors to the corresponding object centers for seed points, followed by a clustering module to generate object proposals. Additionally, 3DSIS [17] jointly learns 2D and
+
+
+Figure 3. Toy example of 2D observations at different view angles of the same 3D scene. The number of occupied pixels/voxels of each instance (denoted as occupancy) is uncertain on 2D image, yet can be predicted robustly for the reconstructed 3D model.
+
+3D features by back projecting features extracted from 2D convolution on images to 3D space. It further applies 3D convolution for volumetric feature learning for proposal-based 3D instance segmentation. For proposal-free 3D instance segmentation, MASC [26] combines the SSCN architecture with instance affinity prediction across multiple scales. Liang et al. [25] apply embedding learning [7] on top of the superior performance of SSCN. Lahoud et al. [21] further combine directional information of each object with semantic feature embedding.
+
+# 3. Methods
+
+Recall our goal is that, we take a voxelized 3D colored scene as input, and produce a 3D object instance label for each voxel, where the voxels belonging to the same object share an unique instance label.
+
+Examining the aforementioned approaches, few of them explicitly utilize the inherent nature of 3D models that differs from 2D image observations: reconstruction of the environment in metric space without occlusion or scale ambiguity. As shown in Fig. 3, for the same instance in 3D space, its observations on 2D images can vary greatly. The number of occupied pixels/voxels of each instance (denoted as occupancy) is unpredictable on 2D image, yet can be predicted robustly from the reconstructed 3D model.
+
+On the basis of occupancy signal, we propose an occupancy-aware 3D instance segmentation scheme. The pipeline is illustrated in Fig. 2. While it follows the classic learning followed by clustering procedure, both the learning stage and clustering stage differ from existing approaches. First, the input 3D scene is voxelized at a resolution of $2cm$ and is then fed into a 3D convolutional neural network (U-Net [38]) for feature extraction. Then, the learned feature is forwarded to task-specific heads to learn different representations for each input voxel, including semantic segmentation, which aims to assign a class label, feature and spatial embedding, as well as occupancy regression (Sec. 3.1). Finally, a graph-based occupancy-aware clustering scheme is performed, which utilizes both the predicted occupancy information and the feature embedding from the previous stage (Sec. 3.2). Note that all the 3D convolutions are realized using a submanifold sparse convolutional network [13]
+
+to employ the sparsity nature of input 3D scene. The details of the network are provided in the Appendix.
+
+# 3.1. Multi-task Learning
+
+In order to jointly leverage the inherent occupancy and semantic and spatial information from the 3D scene, we propose a multi-task learning framework to learn task-specific representations for the $i$ -th input voxel, including (1) $\mathbf{c}_i$ for the semantic segmentation, which aims to assign a class label; (2) $\mathbf{s}_i$ and $\mathbf{d}_i$ for the joint feature and spatial embedding, as well as the corresponding $\mathbf{b}_i$ for covariance prediction to fuse feature and spatial information; and (3) $o_i$ for the occupancy regression. The network is trained to minimize a joint cost function $\mathcal{L}_{\mathrm{joint}}$ :
+
+$$
+\mathcal {L} _ {\text {j o i n t}} = \mathcal {L} _ {\mathrm {c}} + \mathcal {L} _ {\mathrm {e}} + \mathcal {L} _ {\mathrm {o}}. \tag {1}
+$$
+
+Here $\mathcal{L}_{\mathrm{c}}$ is a conventional cross-entropy loss [11] for semantic segmentation. $\mathcal{L}_{\mathrm{e}}$ aims to learn an embedding vector that considers jointly feature and spatial embedding for instance segmentation (Sec. 3.1.1). $\mathcal{L}_{\mathrm{o}}$ serves for the regression of the occupancy size of each voxel's belonging instance (Sec. 3.1.2).
+
+# 3.1.1 Embedding Learning
+
+Unlike previous methods [33] that concatenate the feature and spatial embedding directly, we propose to separate them explicitly and supervise their learning process with different objectives. Our key observation is that while spatial embedding is scale-aware and has an explicit physical explanation, such as an offset vector from current voxel to the spatial center of its belonging instance, feature embedding suffers from inherently ambiguous scale, and thus has to be regularized using additional cost functions. Both embeddings are further regularized using the covariance estimation. Our learning function for embedding $\mathcal{L}_{\mathrm{e}}$ consists of three terms, i.e., spatial term $\mathcal{L}_{\mathrm{sp}}$ , feature term $\mathcal{L}_{\mathrm{se}}$ , and covariance term $\mathcal{L}_{\mathrm{cov}}$ ,
+
+$$
+\mathcal {L} _ {\mathrm {e}} = \mathcal {L} _ {\mathrm {s p}} + \mathcal {L} _ {\mathrm {s e}} + \mathcal {L} _ {\mathrm {c o v}}. \tag {2}
+$$
+
+Spatial Term. Spatial embedding $\mathbf{d}_i$ for the $i$ -th voxel is a 3-dimensional vector that regresses to the object center, which is supervised using the following spatial term:
+
+$$
+\mathcal {L} _ {\mathrm {s p}} = \frac {1}{C} \sum_ {c = 1} ^ {C} \frac {1}{N _ {c}} \sum_ {i = 1} ^ {N _ {c}} | | \mathbf {d} _ {i} + \mu_ {i} - \frac {1}{N _ {c}} \sum_ {i = 1} ^ {N _ {c}} \mu_ {i} | |, \tag {3}
+$$
+
+where $C$ is the number of instances in the input 3D scene, $N_{c}$ is the number of voxels in the $c$ -th instance, and $\mu_{i}$ represents the 3D position of the $i$ -th voxel of the $c$ -th instance.
+
+Feature Term. Feature embedding $\mathbf{s}_i$ is learned using a discriminative loss function [7] that consists of three terms:
+
+$$
+\mathcal {L} _ {\mathrm {s e}} = \mathcal {L} _ {\mathrm {v a r}} + \mathcal {L} _ {\mathrm {d i s t}} + \mathcal {L} _ {\mathrm {r e g}}, \tag {4}
+$$
+
+where the variance term $\mathcal{L}_{\mathrm{var}}$ draws current embedding towards the mean embedding of each instance, the distance term $\mathcal{L}_{\mathrm{dist}}$ pushes instances away from each other, and the regularization term $\mathcal{L}_{\mathrm{reg}}$ draws all instances towards the origin to keep the activation bounded. The detailed formulations are as follows.
+
+$$
+\mathcal {L} _ {\text {v a r}} = \frac {1}{C} \sum_ {c = 1} ^ {C} \frac {1}{N _ {c}} \sum_ {i = 1} ^ {N _ {C}} [ | | \mathbf {u} _ {c} - \mathbf {s} _ {i} | | - \delta_ {v} ] _ {+} ^ {2}, \tag {5}
+$$
+
+$$
+\mathcal {L} _ {\text {d i s t}} = \frac {1}{C (C - 1)} \sum_ {c _ {A} = 1} ^ {C} \sum_ {c _ {B} = c _ {A} + 1} ^ {C} [ 2 \delta_ {d} - \left| \left| \mathbf {u} _ {c _ {A}} - \mathbf {u} _ {c _ {B}} \right| \right| ] _ {+} ^ {2}, \tag {6}
+$$
+
+$$
+\mathcal {L} _ {\text {r e g}} = \frac {1}{C} \sum_ {c = 1} ^ {C} \left\| \mathbf {u} _ {c} \right\|. \tag {7}
+$$
+
+Here, $\mathbf{u}_c = \frac{1}{N_c}\sum_{i=1}^{N_c}\mathbf{s}_i$ represents the mean feature embedding of the $c$ -th instance. The predefined thresholds $\delta_v$ and $\delta_d$ are set to be 0.1 and 1.5, ensuring that the intra-instance embedding distance is smaller than the inter-instance distance.
+
+Covariance Term. The covariance term aims to learn an optimal clustering region for each instance. Let $\mathbf{b}_i = (\sigma_s^i, \sigma_d^i)$ denote the predicted feature/spatial covariance for the $i$ -th voxel in the $c$ -th instance. By averaging $\mathbf{b}_i$ , we obtain $(\sigma_s^c, \sigma_d^c)$ , the embedding covariance of the $c$ -th instance. Then, the probability of the $i$ -th voxel belonging to the $c$ -th instance, denoted as $p_i$ , is formulated as:
+
+$$
+p _ {i} = \exp \left(- \left(\frac {\left| \left| \mathbf {s} _ {i} - \mathbf {u} _ {c} \right| \right|}{\sigma_ {s} ^ {c}}\right) ^ {2} - \left(\frac {\left| \left| \mu_ {i} + \mathbf {d} _ {i} - \mathbf {e} _ {c} \right| \right|}{\sigma_ {d} ^ {c}}\right) ^ {2}\right), \tag {8}
+$$
+
+where $\mathbf{e}_c = \frac{1}{N_c}\sum_{k = 0}^{N_c}(\mu_k + \mathbf{d}_k)$ represents the predicted spatial center of the $c$ -th instance. Since $p_i$ is expected to be larger than 0.5 for voxels that belong to the $c$ -th instance, the covariance term is then formulated by a binary cross-entropy loss,
+
+$$
+\mathcal {L} _ {\text {c o v}} = - \frac {1}{C} \sum_ {c = 1} ^ {C} \frac {1}{N} \sum_ {i = 1} ^ {N} \left[ y _ {i} \log \left(p _ {i}\right) + \left(1 - y _ {i}\right) \log \left(1 - p _ {i}\right) \right], \tag {9}
+$$
+
+where $y_{i} = 1$ indicates $i$ belongs to $c$ and $y_{i} = 0$ otherwise, $N$ indicates the number of points in the input point cloud.
+
+# 3.1.2 Occupancy Regression
+
+To utilize the occupancy information under the 3D setting, for the $i$ -th voxel in the $c$ -th instance, we predict a positive value $o_i$ to indicate the number of voxels occupied by the current instance. Then, the average of $o_i$ will serve as the predicted occupancy size of the current instance. For more robust prediction, we regress the logarithm instead of the
+
+
+Figure 4. Cumulative distribution function of the relative prediction error on the validation set of the ScanNetV2 [4].
+
+original value and formulate the following occupancy term,
+
+$$
+\mathcal {L} _ {\mathrm {o}} = \frac {1}{C} \sum_ {c = 1} ^ {C} \frac {1}{N _ {c}} \sum_ {i = 1} ^ {N _ {c}} | | o _ {i} - \log (N _ {c}) | |, \tag {10}
+$$
+
+where $N_{c}$ is the number of voxels in the $c$ -th instance.
+
+To evaluate the feasibility of our occupancy prediction strategy, we use the relative prediction error $R_{c}$ to measure the occupancy prediction performance of the $c$ -th instance,
+
+$$
+R _ {c} = \frac {\left| N _ {c} - \exp \left(\frac {1}{N _ {c}} \sum_ {i = 1} ^ {N _ {c}} o _ {i}\right) \right|}{N _ {c}}. \tag {11}
+$$
+
+We particularly plot the cumulative distribution function of $R_{c}$ in Fig. 4. For over 4000 instances in the validation set of ScanNetV2 dataset [4], more than $68\%$ instances are predicted, with a relative error smaller than 0.3, which illustrates the effectiveness of our occupancy regression for the following clustering stage.
+
+# 3.2. Instance Clustering
+
+In this subsection, based on the multi-representation learning from the previous stage, a graph-based occupancy-aware clustering scheme is introduced to tackle the 3D instance segmentation problem during inference. Specifically, we adopt a bottom-up strategy and group the input voxels into super-voxels using an efficient graph-based segmentation scheme [9]. Compared with super-pixel representations in 2D space [39, 47], super-voxel representation works better to separate different instances where the instance boundaries in 3D space is easier to identify thanks to the geometry continuity or local convexity constraints [3].
+
+Let $\Omega_{i}$ denote the collection of all the voxels belonging to the super-voxel $v_{i}$ , we define the spatial embedding $\mathbf{D}_i$ of $v_{i}$ as,
+
+$$
+\mathbf {D} _ {i} = \frac {1}{| \Omega_ {i} |} \sum_ {k \in \Omega_ {i}} \left(\mathbf {d} _ {i} + \mu_ {i}\right), \tag {12}
+$$
+
+where $|\Omega_i|$ represents the number of voxels in $\Omega_{i}$ . The feature embedding $\mathbf{S}_i$ , occupancy $O_{i}$ and covariance $\sigma_s^i,\sigma_d^i$ of $v_{i}$ are computed based on a similar averaging operation for all the voxels belonging to $v_{i}$ . We further define the follow
+
+
+Figure 5. Qualitative comparisons between OccuSeg and a previous approach [21] on the validation set of the ScanNetV2 [4]. OccuSeg generates more consistent instance labels and successfully distinguishes nearby small instances thanks to the proposed occupancy aware clustering scheme.
+
+ing occupancy ratio $r_i$ to guide the clustering step,
+
+$$
+r _ {i} = \frac {O _ {i}}{| \Omega_ {i} |}. \tag {13}
+$$
+
+Note that $r_i > 1$ indicates that there are too many voxels in $v_i$ for instance segmentation, otherwise $v_i$ should attract more voxels.
+
+Given the super-voxel representation, an undirected graph $G = (V,E,W)$ is established, where the vertices $v_{i} \in V$ represent the generated super-voxels, $e_{i,j} = (v_i,v_j) \in E$ indicates the pairs of vertices with a weight $w_{i,j} \in W$ . The weight $w_{i,j}$ represents the similarity between $v_{i}$ and $v_{j}$ . Here $w_{i,j}$ is formulated as
+
+$$
+w _ {i, j} = \frac {\exp \left(- \left(\frac {\| \mathbf {S} _ {\mathrm {i}} - \mathbf {S} _ {\mathrm {j}} \|}{\sigma_ {s}}\right) ^ {2} - \left(\frac {\| \mathbf {D} _ {\mathrm {i}} - \mathbf {D} _ {\mathrm {j}} \|}{\sigma_ {d}}\right) ^ {2}\right)}{\max (r , 0 . 5)}, \tag {14}
+$$
+
+where $\sigma_s, \sigma_d$ and $r$ represent the feature covariance, spatial covariance and occupancy ratio of the virtual super-voxel that merges both $v_i$ and $v_j$ .
+
+Note that a larger weight indicates a higher possibility that $v_{i}$ and $v_{j}$ belong to the same instance. And during the calculation of the merging weight, our occupancy ratio helps to punish over-segmented instances and encourages partial instances to be merged together as shown in Fig. 5.
+
+For all the edges in $E$ , we select edge $e_{i,j}$ with the highest weight $w_{i,j}$ and merge $v_{i}, v_{j}$ as a new vertex if
+
+
+Figure 6. Representative 3D instance segmentation results on the validation set of public datasets, including ScanNetV2 [4] and S3DIS [1].
+
+$w_{i,j} > T_0$ , where the merge threshold $T_0$ is set to be 0.5. The graph $G$ is then updated after every merge operation. This process is iterated until none of the weight is larger than $T_0$ . Finally, the remaining vertices in $G$ are labeled as instances if their occupancy ratio $r$ satisfies the constraint of $0.3 < r < 2$ to reject false positives in instance segmentation.
+
+# 3.3. Network Training
+
+We employ a simple UNet-like structure [38] for feature extraction from the input point cloud with color information. Network details are presented in the Appendix. For the sake of efficiency, the chunk-based sparse convolution strategy in [19] is adopted, which is $4 \times$ faster than the original implementation of the SCN [13]. The network is trained using Adam optimizer with an initial learning rate of 1e-3. For all the datasets including ScanNetV2 [4], Stanford3D [1] and SceneNN [18] as shown in the experiments of Sec. 4, we use the same hyper-parameters and train the network from scratch for 320 epochs.
+
+# 4. Experiments
+
+In this section, we evaluate our method on a variety of challenging scenarios. For experiments on public datasets, we run our method on a PC with a NVIDIA Titan Xp GPU
+
+and an Intel(R) Xeon(R) E5-2650 CPU. For real-world experiments, our method is conducted on the laptop Microsoft Surface Book 2 with a NVIDIA GTX 1060 (Mobile) GPU and an Intel Core i7-8650U CPU. Using the real-time 3D reconstruction method FlashFusion [14] for the 3D geometric input, we present the demo of online 3D instance segmentation on the portable device. More details are provided in the supplementary video.
+
+We employ the popular 3D instance segmentation benchmark ScanNetV2 [4], as well as the widely used S3DIS [1] and SceneNN [18] datasets. ScanNetV2 benchmark [4] contains 1513 indoor RGBD scans with 3D instance annotations, while Stanford Large-Scale 3D Indoor Space Dataset (S3DIS) [1] contains 6 large-scale indoor areas covering over $6000m^2$ with 13 object classes. SceneNN [18] is a smaller indoor 3D dataset with 50 scans as the training set and 26 scans for evaluation, which is used to evaluate our performance under less training data.
+
+# 4.1. Qualitative Evaluation
+
+The representative 3D instance segmentation results on the validation set of public datasets are presented in Fig. 6, which demonstrate that the proposed approach achieves robust instance segmentation results for complex environments.
+
+
+(1)
+
+
+(2)
+
+
+(3)
+
+
+(4)
+
+
+(5)
+
+
+Instance
+
+
+Figure 7. 3D instance segmentation results on real-world scenes. Here the 3D geometric models are reconstructed using FlashFusion [14] system, with the input being the depth and color sequences from consumer-level RGB-D camera. Our scheme generates robust instance segmentation results in real-world environments using the network trained on a public dataset, ScanNetV2 [4].
+
+
+
+
+
+
+
+| Method | mAP | bath | bed | bkshf | cab | chair | cntr | curt | desk | door | ofurn | pic | fridg | showr | sink | sofa | tabl | toil | wind |
| 3D-SIS [17] | 16.1 | 40.7 | 15.5 | 6.8 | 4.3 | 34.6 | 0.1 | 13.4 | 0.5 | 8.8 | 10.6 | 3.7 | 13.5 | 32.1 | 2.8 | 33.9 | 11.6 | 46.6 | 9.3 |
| PanopticFusion [29] | 21.4 | 25.0 | 33.0 | 27.5 | 10.3 | 22.8 | 0.0 | 34.5 | 2.4 | 8.8 | 20.3 | 18.6 | 16.7 | 36.7 | 12.5 | 22.1 | 11.2 | 66.6 | 16.2 |
| 3D-BoNet [46] | 25.3 | 51.9 | 32.4 | 25.1 | 13.7 | 34.5 | 3.1 | 41.9 | 6.9 | 16.2 | 13.1 | 5.2 | 20.2 | 33.8 | 14.7 | 30.1 | 30.3 | 65.1 | 17.8 |
| MTML [21] | 28.2 | 57.7 | 38.0 | 18.2 | 10.7 | 43.0 | 0.1 | 42.2 | 5.7 | 17.9 | 16.2 | 7.0 | 22.9 | 51.1 | 16.1 | 49.1 | 31.3 | 65.0 | 16.2 |
| Occipital-SCS | 32.0 | 67.9 | 35.2 | 33.4 | 22.9 | 43.6 | 2.5 | 41.2 | 5.8 | 16.1 | 24.0 | 8.5 | 26.2 | 49.6 | 18.7 | 46.7 | 32.8 | 77.5 | 23.1 |
| OccuSeg | 44.3 | 85.2 | 56.0 | 38.0 | 24.9 | 67.9 | 9.7 | 34.5 | 18.6 | 29.8 | 33.9 | 23.1 | 41.3 | 80.7 | 34.5 | 50.6 | 42.4 | 97.2 | 29.1 |
+
+Table 1. Quantitative comparison on the ScanNetV2 [4] benchmark in terms of mAP score on 18 classes. Our approach achieves the best performance in 17 out of 18 classes. Note that the ScanNetV2 benchmark data is accessed on 11/14/2019.
+
+ | mAP | mAP@0.5 | mAP@0.25 |
| 3D-SIS [17] | 16.1 | 38.2 | 55.8 |
| 3D-BoNet [46] | 25.3 | 48.8 | 68.7 |
| MASC [26] | 25.4 | 44.7 | 61.5 |
| MTML [21] | 28.2 | 54.9 | 73.1 |
| Occipital-SCS | 32.0 | 51.2 | 68.8 |
| OccuSeg | 44.3 | 63.4 | 73.9 |
+
+To further verify the robustness of our method on real-world scenes, we implement our method on the basis of real-time 3D reconstruction method FlashFusion [14] for online 3D instance segmentation. As shown in Fig. 7, our network pre-trained on ScanNetV2 can generate 3D instance segmentation results robustly in real-world scenarios. More live results are provided in the supplementary video.
+
+# 4.2. Quantitative Evaluation
+
+Based on the public datasets, our methods are quantitatively compared with a number of representative exist-
+
+Table 2. Quantitative results on the ScanNetV2 [4] benchmark in terms of mAP, mAP@0.5 and mAP@0.25, respectively. Our approach outperforms previous methods by a significant margin. ScanNetV2 benchmark data is accessed on 11/14/2019.
+
+ | mPrec | mRec |
| PartNet [28] | 56.4 | 43.4 |
| ASIS [42] | 63.6 | 47.5 |
| 3D-BoNet [46] | 65.6 | 47.6 |
| OccuSeg | 72.8 | 60.3 |
+
+Table 3. Comparison on the S3DIS [1] dataset. Our method outperforms previous methods in terms of mean Precision (mPrec) and mean recall (mRec) with an IoU threshold of 0.5.
+
+ing methods, including SGPN [41], 3D-SIS [17], PanopticFusion [29], 3D-BoNet [46], HTML [21], ASIS [42] and JSIS3D [34].
+
+ScanNetV2. We follow the benchmark [4] to use the mean average precision at overlap 0.25 (mAP@0.25), overlap 0.5 (mAP@0.5) and overlaps in the range $[0.5:0.95:0.05]$ (mAP) as evaluation metrics. Tab. 1 and Tab. 2 summarize the per-class mAP and the overall performance, respectively. Overall, our method achieves a significant margin on all the three metrics, especially the hardest mAP metric, indicating the effectiveness of our method for 3D instance segmentation.
+
+S3DIS. Following the previous methods [46, 42], we employ the 6-fold cross validation and use the mean precision
+
+| Method | \(mAP@0.5\) | wall | floor | cabinet | bed | chair | sofa | table | desk | tv | prop |
| MT-PNet [34] | 8.5 | 13.1 | 27.3 | 0.0 | 15.0 | 21.2 | 0.0 | 0.7 | 0.0 | 6.0 | 2.0 |
| MLS-CRF [34] | 12.1 | 13.9 | 44.5 | 0.0 | 32.9 | 12.9 | 0.0 | 5.7 | 10.8 | 0.0 | 0.8 |
| OccuSeg | 47.1 | 39.0 | 93.8 | 5.7 | 66.7 | 91.3 | 8.7 | 50.0 | 31.6 | 76.9 | 7.14 |
+
+Table 4. Quantitative results on the SceneNN [18] dataset in terms of mAP@0.5 score of each class. Our approach achieves the best performance for all the 10 classes.
+
+ | Details | Total |
| SGPN [41] | network(GPU): 650
+group merging(CPU): 46562
+block merging(CPU): 2221 | 49433 |
| ASIS [42] | network(GPU): 650
+mean shift(CPU): 53886
+block merging(CPU): 2221 | 56757 |
| GSPN [48] | network(GPU): 500
+point sampling(GPU): 2995
+neighbour search(CPU): 468 | 3963 |
| 3D-SIS [17] | network (GPU+CPU): 38841 | 38841 |
| 3D-BoNet [46] | network(GPU): 650
+SCN (GPU parallel): 208
+block merging(CPU): 2221 | 2871 |
| OccuSeg | network(GPU): 59
+supervoxel(CPU): 375
+clustering (GPU+CPU): 160 | 594 |
+
+Table 5. The processing time (seconds) on the validation set of ScanNetV2 [4]. Note that all the other methods are evaluated based on their released codes according to [46].
+
+ | mAP | mAP@0.5 | mAP@0.25 |
| w/o_feature | 36.7 | 51.8 | 62.6 |
| w/o_spatial | 42.8 | 58.5 | 69.7 |
| w/o_occupancy | 40.9 | 55.7 | 67.4 |
| OccuSeg | 44.2 | 60.7 | 71.9 |
+
+Table 6. Ablation study of each component of our method on the ScanNetV2 validation split, in terms of mAP, mAP@0.5 and mAP@0.25.
+
+(mPrec) / mean recall (mRec) with an IoU threshold 0.5 to evaluate our method in the S3DIS dataset. As shown in Tab. 3, our scheme outperforms all the previous methods by a significant margin in terms of both mPrec and mRec, indicating its ability to segment more instances precisely.
+
+SceneNN. Similar to previous work [34], mAP@0.5 metric is adopted to evaluate our approach in the SceneNN dataset. As presented in Tab. 4, even using only 50 scans for training, our approach outperforms the previous method [34] by a significant margin (35 for mAP@0.5), which illustrates the effectiveness of our approach under small datasets.
+
+# 4.3. Complexity Analysis
+
+Maintaining high efficiency plays a vital role when applying 3D instance segmentation to mixed reality or robotics applications. Similar to the evaluation in [46],
+
+we made a comparison of the processing times on the 312 scans of indoor environments from the validation split of ScanNetV2. Both the proposal-based methods (3DSIS [17], GSPN [48] and 3D-BoNet [46]) and the proposal-free methods (SGPN [41] ASIS [42]) are concerned. The processing time of the full pipeline and the main stages are respectively reported in Tab. 5. Remarkably, our method is more than $4\times$ faster than the existed most efficient approach 3D-BoNet [46].
+
+# 4.4. Ablation Study
+
+Here, we evaluate the individual components of our method on the ScanNetV2 validation split. Let $w/o\_feature$ and $w/o\_spatial$ denote the variations of our method without the feature embedding or spatial feature embedding, respectively. To evaluate the influence of the novel occupancy signal, we disable the occupancy prediction in the learning stage and set the occupancy ratio $r = 1$ for all vertices in Eqn. 14 during the clustering stage, denoted as $w/o\_occupancy$ .
+
+The quantitative comparison results of all the variations of our method are provided in Tab. 6, which demonstrate that the proposed occupancy aware scheme helps to improve the overall quality of 3D instance segmentation.
+
+# 5. Discussion and Conclusion
+
+We presented OccuSeg, an occupancy-aware instance segmentation method for 3D scenes. Our learning stage leverages feature embedding and spatial embedding, as well as a novel 3D occupancy signal to imply the inherent property of 3D objects. The occupancy signal further guides our graph-based clustering stage to correctly merge hard samples and prohibit over-segmented clusters. Extensive experimental results demonstrate the effectiveness of our method, which outperforms previous methods by a significant margin and retains high efficiency. In the future work, we will improve our method by incorporating tailored designs for partially reconstructed objects. Also, we intend to investigate the sub-object level 3D instance segmentation and further improve the efficiency, enabling the practical usage of high quality 3D instance segmentation for tremendous applications in AR/VR, gaming and mobile robots.
+
+# References
+
+[1] 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. 2, 6, 7
+[2] Christopher Choy, JunYoung Gwak, and Silvio Savarese. 4d spatio-temporal convnets: Minkowski convolutional neural networks. arXiv preprint arXiv:1904.08755, 2019. 3
+[3] Simon Christoph Stein, Markus Schoeler, Jeremie Papon, and Florentin Worgotter. Object partitioning using local convexity. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 304-311, 2014. 5
+[4] 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. 2, 5, 6, 7, 8
+[5] Angela Dai, Matthias Nießner, Michael Zollhöfer, Shahram Izadi, and Christian Theobalt. Bundlefusion: Real-time globally consistent 3d reconstruction using on-the-fly surface reintegration. ACM Transactions on Graphics (TOG), 36(3):24, 2017. 1
+[6] Jifeng Dai, Kaiming He, Yi Li, Shaoqing Ren, and Jian Sun. Instance-sensitive fully convolutional networks. In Bastian Leibe, Jiri Matas, Nicu Sebe, and Max Welling, editors, Computer Vision - ECCV 2016, pages 534-549, Cham, 2016. Springer International Publishing. 3
+[7] Bert De Brabandere, Davy Neven, and Luc Van Gool. Semantic instance segmentation with a discriminative loss function. arXiv preprint arXiv:1708.02551, 2017. 2, 3, 4
+[8] Alireza Fathi, Zbigniew Wojna, Vivek Rathod, Peng Wang, Hyun Oh Song, Sergio Guadarrama, and Kevin P. Murphy. Semantic instance segmentation via deep metric learning. CoRR, abs/1703.10277, 2017. 3
+[9] Pedro F Felzenszwalb and Daniel P Huttenlocher. Efficient graph-based image segmentation. International journal of computer vision, 59(2):167-181, 2004. 2, 5
+[10] Ross Girshick. Fast r-cnn. In The IEEE International Conference on Computer Vision (ICCV), December 2015. 3
+[11] Ian Goodfellow, *Yoshua Bengio*, and Aaron Courville. *Deep learning*. MIT press, 2016. 4
+[12] Benjamin Graham. Spatially-sparse convolutional neural networks. arXiv preprint arXiv:1409.6070, 2014. 2, 3
+[13] 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, 3, 6
+[14] Lei Han and Lu Fang. Flashfusion: Real-time globally consistent dense 3d reconstruction using cpu computing. In Robotics: Science and Systems, 2018. 1, 6, 7
+[15] Zeeshan Hayder, Xuming He, and Mathieu Salzmann. Boundary-aware instance segmentation. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017. 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
+[17] Ji Hou, Angela Dai, and Matthias Nießner. 3d-sis: 3d semantic instance segmentation of rgb-d scans. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4421-4430, 2019. 1, 3, 7, 8
+[18] Binh-Son Hua, Quang-Hieu Pham, Duc Thanh Nguyen, Minh-Khoi Tran, Lap-Fai Yu, and Sai-Kit Yeung. Scenenn: A scene meshes dataset with annotations. In 2016 Fourth International Conference on 3D Vision (3DV), pages 92–101. IEEE, 2016. 2, 6, 8
+[19] Anonymous (Attached in the supplementary material). Realtime semantic 3d perception for immersive augmented reality. In conditionally accepted by IEEE VR/TVCG. IEEE, 2019. 6
+[20] Shu Kong and Charless C. Fowlkes. Recurrent pixel embedding for instance grouping. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018. 3
+[21] Jean Lahoud, Bernard Ghanem, Marc Pollefeys, and Martin R Oswald. 3d instance segmentation via multi-task metric learning. arXiv preprint arXiv:1906.08650, 2019. 2, 3, 5, 7
+[22] Bastian Leibe, Aleks Leonardis, and Bernt Schiele. Robust object detection with interleaved categorization and segmentation. International journal of computer vision, 77(1-3):259-289, 2008. 3
+[23] Yi Li, Haozhi Qi, Jifeng Dai, Xiangyang Ji, and Yichen Wei. Fully convolutional instance-aware semantic segmentation. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017. 3
+[24] 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. 3
+[25] Zhidong Liang, Ming Yang, and Chunxiang Wang. 3d graph embedding learning with a structure-aware loss function for point cloud semantic instance segmentation. arXiv preprint arXiv:1902.05247, 2019. 2, 3
+[26] Chen Liu and Yasutaka Furukawa. Masc: Multi-scale affinity with sparse convolution for 3d instance segmentation. arXiv preprint arXiv:1902.04478, 2019. 2, 3, 7
+[27] Yiding Liu, Siyu Yang, Bin Li, Wengang Zhou, Jizheng Xu, Houqiang Li, and Yan Lu. Affinity derivation and graph merge for instance segmentation. In Proceedings of the European Conference on Computer Vision (ECCV), pages 686-703, 2018. 2
+[28] 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 Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 909–918, 2019. 7
+[29] Gaku Narita, Takashi Seno, Tomoya Ishikawa, and Yohsuke Kaji. Panopticfusion: Online volumetric semantic map
+
+ping at the level of stuff and things. arXiv preprint arXiv:1903.01177, 2019. 7
+[30] 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. 3
+[31] R. A. Newcombe, S. Izadi, O. Hilliges, D. Molyneaux, D. Kim, A. J. Davison, P. Kohi, J. Shotton, S. Hodges, and A. Fitzgibbon. Kinectfusion: Real-time dense surface mapping and tracking. In 2011 10th IEEE International Symposium on Mixed and Augmented Reality, pages 127-136, 2011. 1
+[32] Matthias Nießner, Michael Zollhöfer, Shahram Izadi, and Stamminger. Real-time 3d reconstruction at scale using voxel hashing. ACM Transactions on Graphics (TOG), 32(6):169, 2013. 1
+[33] 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. 3, 4
+[34] 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 Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8827–8836, 2019. 7, 8
+[35] 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. 3
+[36] 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. 3
+[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 Advances in neural information processing systems, pages 5099-5108, 2017. 2, 3
+[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. 3, 6
+[39] Mathijs Schuurmans, Maxim Berman, and Matthew B Blaschko. Efficient semantic image segmentation with superpixel pooling. arXiv preprint arXiv:1806.02705, 2018. 5
+[40] Lyne Tchapmi, Christopher Choy, Iro Armeni, JunYoung Gwak, and Silvio Savarese. Segcloud: Semantic segmentation of 3d point clouds. In 2017 International Conference on 3D Vision (3DV), pages 537-547. IEEE, 2017. 3
+[41] Weiyue Wang, Ronald Yu, Qiangui Huang, and Ulrich Neumann. Sgpn: Similarity group proposal network for 3d point cloud instance segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2569-2578, 2018. 2, 3, 7, 8
+
+[42] Xinlong Wang, Shu Liu, Xiaoyong Shen, Chunhua Shen, and Jiaya Jia. Associatively segmenting instances and semantics in point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4096-4105, 2019. 7, 8
+[43] 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. 3
+[44] 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. 3
+[45] L. Xu, Z. Su, L. Han, T. Yu, Y. Liu, and L. FANG. Unstructuredfusion: Realtime 4d geometry and texture reconstruction using commercialrgbd cameras. IEEE Transactions on Pattern Analysis and Machine Intelligence, pages 1-1, 2019. 1
+[46] 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. arXiv preprint arXiv:1906.01140, 2019. 3, 7, 8
+[47] Shichao Yang, Yulan Huang, and Sebastian Scherer. Semantic 3d occupancy mapping through efficient high order crfs. In 2017 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 590-597. IEEE, 2017. 5
+[48] 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 Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3947-3956, 2019. 3, 8
\ No newline at end of file
diff --git a/occusegoccupancyaware3dinstancesegmentation/images.zip b/occusegoccupancyaware3dinstancesegmentation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..36521b7241b1e1debc49d1047063f64e8165dde7
--- /dev/null
+++ b/occusegoccupancyaware3dinstancesegmentation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f84c0f10cfc6f29b15fcb495567da16274fb9a3ba897ce590396a223bc7ced8b
+size 756526
diff --git a/occusegoccupancyaware3dinstancesegmentation/layout.json b/occusegoccupancyaware3dinstancesegmentation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..98b0cb3c04697f1ec7d84c927f2740be5343a707
--- /dev/null
+++ b/occusegoccupancyaware3dinstancesegmentation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:74bd9e90696f81629eca24acdf2b342311ed1d04a499d6e51129955bb1ce760c
+size 428956
diff --git a/octsqueezeoctreestructuredentropymodelforlidarcompression/18a77355-c302-4d0e-a774-910930b83f27_content_list.json b/octsqueezeoctreestructuredentropymodelforlidarcompression/18a77355-c302-4d0e-a774-910930b83f27_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..eedef5b0cf0fdb1dfd908af9ae7a71d1708715bd
--- /dev/null
+++ b/octsqueezeoctreestructuredentropymodelforlidarcompression/18a77355-c302-4d0e-a774-910930b83f27_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4168165cfe766daa0449d5a2e4a7614068e9a9e9084a858aeff1a931eaf02c32
+size 83578
diff --git a/octsqueezeoctreestructuredentropymodelforlidarcompression/18a77355-c302-4d0e-a774-910930b83f27_model.json b/octsqueezeoctreestructuredentropymodelforlidarcompression/18a77355-c302-4d0e-a774-910930b83f27_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..b478da981058852c41c4cf066494656cb822e21b
--- /dev/null
+++ b/octsqueezeoctreestructuredentropymodelforlidarcompression/18a77355-c302-4d0e-a774-910930b83f27_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:740d0d8b3f5ec67b8a7510c1d76c244b4351351f0163a2d1f643db8c55862478
+size 101179
diff --git a/octsqueezeoctreestructuredentropymodelforlidarcompression/18a77355-c302-4d0e-a774-910930b83f27_origin.pdf b/octsqueezeoctreestructuredentropymodelforlidarcompression/18a77355-c302-4d0e-a774-910930b83f27_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..c5ed7d6f1c9a68e1fbed907edf0f2fe312535590
--- /dev/null
+++ b/octsqueezeoctreestructuredentropymodelforlidarcompression/18a77355-c302-4d0e-a774-910930b83f27_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a9dee6e5c318b3e363968179210a1d8edbcd07cf5e73465aa9a58c85c324b7da
+size 1498797
diff --git a/octsqueezeoctreestructuredentropymodelforlidarcompression/full.md b/octsqueezeoctreestructuredentropymodelforlidarcompression/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..83bf14a722b120ddd6e8b85d9bddaf7bd5129a18
--- /dev/null
+++ b/octsqueezeoctreestructuredentropymodelforlidarcompression/full.md
@@ -0,0 +1,355 @@
+# OctSqueeze: Octree-Structured Entropy Model for LiDAR Compression
+
+Lila Huang $^{1,2}$ Shenlong Wang $^{1,3}$ Kelvin Wong $^{1,3}$ Jerry Liu $^{1}$ Raquel Urtasun $^{1,3}$ $^{1}$ Uber Advanced Technologies Group $^{2}$ University of Waterloo $^{3}$ University of Toronto
+
+{lila.huang,shenlong.wang,kelvin.wong,jerryl,urtasun}@uber.com
+
+# Abstract
+
+We present a novel deep compression algorithm to reduce the memory footprint of LiDAR point clouds. Our method exploits the sparsity and structural redundancy between points to reduce the bitrate. Towards this goal, we first encode the LiDAR points into an octree, a data-efficient structure suitable for sparse point clouds. We then design a tree-structured conditional entropy model that models the probabilities of the octree symbols to encode the octree into a compact bitstream. We validate the effectiveness of our method over two large-scale datasets. The results demonstrate that our approach reduces the bitrate by $10 - 20\%$ at the same reconstruction quality, compared to the previous state-of-the-art. Importantly, we also show that for the same bitrate, our approach outperforms other compression algorithms when performing downstream 3D segmentation and detection tasks using compressed representations. Our algorithm can be used to reduce the onboard and offboard storage of LiDAR points for applications such as self-driving cars, where a single vehicle captures 84 billion points per day.
+
+# 1. Introduction
+
+In the past few decades, we have witnessed artificial intelligence revolutionizing robotic perception. Robots powered by these AI algorithms often utilize a plethora of different sensors to perceive and interact with the world. In particular, 3D sensors such as LiDAR and structured light cameras have proven to be crucial for many types of robots, such as self-driving cars, indoor rovers, robot arms, and drones, thanks to their ability to accurately capture the 3D geometry of a scene. These sensors produce a significant amount of data: a single Velodyne HDL-64 LiDAR sensor generates over 100,000 points per sweep, resulting in over 84 billion points per day. This enormous quantity of raw sensor data brings challenges to onboard and offboard storage as well as real-time communication. Hence, it is necessary to develop an efficient compression method for 3D point clouds.
+
+Raw 3D point clouds are represented as unstructured $n \times 3$ matrices at float precision. This uncompressed data
+
+representation does not exploit the fact that the geometry of the scene is usually well structured. Prior works have approached point cloud compression by using data structures such as KD-trees [4] and octrees [19] to encode a point cloud's structure. Quantization is exploited to further reduce storage. However, there remains a massive quantity of redundant information hidden in these representations, such as repetitive local structures, planar surfaces, or object categories with a strong shape prior, such as cars and humans. In theory, this redundant information can be exploited during compression to reduce the bitrate even further. However, this has not yet been exploited to its full potential in point cloud compression.
+
+The recent success of deep neural networks in image and video compression brings a new paradigm towards structured data compression for point clouds. These approaches typically contain three steps: 1) encode the data into a hidden representation through a convolutional neural network; 2) quantize the hidden features; and 3) learn an entropy model to reduce the bitstream further through entropy coding. The key to the learned entropy model is encoding context information to improve the predictability of a symbol's occurrence, which directly increases its compressibility. However, it is non-trivial to apply these deep compression algorithms directly on a LiDAR point cloud, as it is sparse and non-grid structured. Hence, there are two major challenges that we need to address: 1) What is a memory-efficient data structure to represent LiDAR while exploiting its sparsity? 2) How can we train a deep entropy model to encode the representation to bitstreams efficiently?
+
+In this work, we propose a novel deep learning model for LiDAR point cloud compression. Our approach first exploits the efficient and self-adaptive octree structure to get an initial encoding of the raw point cloud. We then learn a tree-structured deep conditional entropy model over each intermediate node of the tree, incorporating both the prior and the context of the scene simultaneously to help predict the node symbols. The predicted probabilities from our learned entropy model are then passed to an entropy coder to encode the serialized symbols into the final bitstream.
+
+We evaluate the performance of our approach over two
+
+
+Figure 1: The overview of the proposed octree-structured entropy model for LiDAR point cloud compression. The input point cloud, received as a $n \times 3$ float array, is quantized to $k$ bits by scaling to $[0,2^k)$ and rounding down. An octree is constructed from the quantized point cloud. Each node is represented by an 8-bit occupancy symbol. We apply a tree-structured conditional entropy model on top of the octree to estimate the probability of each symbol conditioned on prior context. Finally, we use the estimated probability to encode the serialized symbols into the final compressed bitstream.
+
+challenging LiDAR point cloud datasets comprising of complicated urban traffic scenes, namely the KITTI [3] and NorthAmerica datasets. Our results show that the proposed model outperforms all state-of-the-art methods in terms of both reconstruction quality and downstream task performance. At the same reconstruction quality, our bitrate is $10 - 20\%$ lower than the previous state-of-the-art.
+
+# 2. Related Work
+
+# 2.1. Point Cloud Compression
+
+Tree structures are the primary methods used in prior point cloud compression algorithms. Numerous approaches store data in an octree and perform entropy coding with hand-crafted entropy models such as adaptive histograms, parent context [6], and estimations based on planar approximations [31] or neighbour proximity [13]. To exploit temporal redundancies in point cloud streams, Kammerl et al. [14] encode the xor differences between successive octree representations and Mekuria et al. [20] use ICP to encode blocks with rigid transformations. Both methods use range coding with empirical histograms for entropy coding. The advantage of the octree structure is that it can model arbitrary point clouds in a hierarchical structure, which provide a natural progressive coding—if the octree is traversed in breadth-first order, then decoding can stop at any time; the longer the decoding, the finer the precision of the point cloud reconstruction. A related structure is utilized in Google's open-source compression software Draco [8] which uses a KD-tree compression method [5]. All of the
+
+above approaches do not leverage deep learning.
+
+Besides tree structures, point clouds can be represented as regular voxel grids [27, 12]. These methods use voxel-based convolutional autoencoders which can learn surface representations of point clouds but struggles with large-scale sparse data. Moreover, since the geometry of a LiDAR scan can be represented by a panorama image with one channel for distance, point clouds can also be represented as range images, and compressed via image compression techniques. For example, Houshiar et al. [11] use conventional image compressors such as JPEG, PNG, and TIFF to compress LiDAR range images.
+
+# 2.2. Deep Learning on Point Clouds
+
+Inspired by recent successes in the image domain, researchers have developed a flurry of new deep learning methods for point cloud data. One class of methods uses deep convolutional neural networks to process voxel representations of the 3D point cloud [47, 18, 25, 51, 50, 49]. These approaches, however, require large memory footprints and thus induce a trade-off between input resolution and model capacity. To address this shortcoming, [28, 9] propose to use sparse operators on the point cloud's voxel representation and [33, 23] propose to process 2D projections of the point cloud instead.
+
+Another line of work tackles this problem by directly operating on the point cloud, thus leveraging its sparsity to sidestep this trade-off. PointNet [24] uses multi-layer perceptrons to extract features from individual points and then pools them into a global feature. As PointNet can-
+
+
+Figure 2: Construction of octree structures to represent a point cloud. Max depth of the octree (from left to right): 8, 10, 12, 14.
+
+not capture local structures in the point cloud, a number of follow-up works have proposed to hierarchically aggregate local information [26, 42, 46, 48, 35]. These methods can be viewed as graph neural networks that operate on graphs defined by each point's local neighbourhood; e.g., $k$ -nearest neighbors graph. Other possible graphs include KD-trees [15] and octrees [29, 41]. Inspired by the success of these graph-structured networks, we designed an entropy model that operates on an octree's serialized byte streams but exploits its structure to encode contextual information.
+
+# 2.3. Deep Image and Video Compression
+
+The field of image and video compression is extensive and has been well-explored over the past few decades, ranging from lossless image formats (PNG, TIFF), to lossy image codecs (JPEG, BPG), to video codecs (AVC/H.264, HEVC/H.265). In recent years, there has been a rapid increase in learned image and video compression methods [37, 1, 2, 21, 34, 45, 30, 17, 10], which exploit concepts from traditional codecs and the power of deep neural networks. These approaches typically use deep convolutional autoencoders to apply nonlinear transforms to traditional components of the compression pipeline, from transform coding used in JPEG to motion compensation used in video codecs. Moreover, many approaches use separate neural nets to model the entropy of the image/video latent codes as a tight lower bound of the bitrate; this model is then used during entropy coding to losslessly compress the symbols into bits. Such approaches have included fully factorized models [1, 34], encoding "side information" as latent variables for entropy prediction [2, 22, 17] as well as using autoregressive models (e.g. PixelCNN [40]) to model pixel-level conditional distributions [21, 37, 10, 45]. Inspired by these approaches towards entropy modeling, we aim to apply these insights towards the compression of point clouds.
+
+# 3. Octree-Structured Entropy Model
+
+In this work we tackle the problem of lossy compression on 3D LiDAR point clouds. Our goal is to reduce the storage footprint of our encodings as much as possible while preserving reconstruction quality. Towards this goal, we propose a novel, octree-structured compression method using a deep entropy model.
+
+Specifically, we firstly quantize and encode a LiDAR point cloud into an octree. Each node of the tree uses an 8-bit symbol to encode the occupancy of its children. We
+
+then serialize the octree into an intermediate, uncompressed bytestream of symbols. For each node, we select a set of context features that are available during decoding time. We then feed these context features into our tree-structured deep entropy model, which is trained to predict the probability of each symbol's presence given the context input. These probabilities are then directly fed into arithmetic encoding with the symbol bytestream to produce the final bitstream, where the bitrate is approximately measured by the cross-entropy of these probabilities with the actual symbol distribution. Our overall approach is shown in Fig. 1.
+
+# 3.1. Octree Structure
+
+Two difficulties in LiDAR point cloud compression are the sparsity of the data and the lack of structure in a raw point cloud. Space-partitioning data structures, such as octrees and KD-trees, effectively provide a representation for 3D spatial data while keeping sparsity in mind, as their memory usage scales with the number of points in the cloud compared to voxel representations which scale with the cloud's bounding volume. In addition, tree structures give implicit levels of detail which can be used for progressive decoding. We choose to use an octree as the base data structure for quantization due to its memory efficiency and ease of construction and serialization.
+
+Bit Representation: An octree [19] stores point clouds by recursively partitioning the input space into equal octants and storing occupancy in a tree structure. Each intermediate node of the octree contains a 8-bit symbol to store the occupancy of its eight child nodes, with each bit corresponding to a specific child. Each leaf contains a single point and stores additional information to represent the position of the point relative to the cell corner. The size of leaf information is adaptive and depends on the level. An octree with $k$ levels can store $k$ bits of precision by keeping the last $k - i$ bits of each of the $(x, y, z)$ coordinates for a child on the $i$ -th level of the octree. The resolution increases as the number of levels in the octree increases. The advantage of such a representation is twofold: firstly, only non-empty cells are further subdivided and encoded, which makes the data structure adapt to different levels of sparsity; secondly, the occupancy symbol per node is a tight bit representation. Fig. 2 shows the partial construction of the octree structure at different levels from a KITTI point cloud [7].
+
+**Serialization:** Using a breadth-first or depth-first traversal, an octree can be serialized into two intermediate uncompressed bytestreams of occupancy codes and leaf-node offsets. The original tree can be completely reconstructed from these streams. We note that serialization is a lossless scheme in the sense that offsets and occupancy information are all exactly preserved. Thus the only lossy procedure is due to quantization during construction of the octree. Consequently, octree-based compression schemes are lossy up to this quantization error, which gives an upper bound on the distortion ratio.
+
+We use the occupancy serialization format during our entropy coding stage, detailed in Sec. 3.2 and Sec. 3.3. During range decoding of a given occupancy code, we note that information such as node depth, parent occupancy, and spatial locations of the current octant are already known given prior knowledge of the traversal format. Hence we incorporate this information as a context $\mathbf{c}_i$ for each node that we can use during entropy coding.
+
+# 3.2. A Deep Entropy Model for Entropy Coding
+
+The serialized occupancy bytestream of the octree can be further losslessly encoded into a shorter bit-stream through entropy coding. Entropy encoding is theoretically grounded in information theory. Specifically, an entropy model estimates the probability of occurrence of a given symbol; the probabilities can be adaptive given available context information. A key intuition behind entropy coding is that symbols that are predicted with higher probability can be encoded with fewer bits, achieving higher compression rates.
+
+Existing entropy models on octree structures tend to either lack the ability to accurately represent the data in the case of adaptive histograms [31, 14], or require very long decoding times in the case of geometric predictions [13]. Moreover, these entropy models do not fully utilize the hierarchical octree structure to encode geometric priors of the scene to facilitate entropy prediction. Inspired by the success of using deep entropy models in image and video compression, we propose a deep network which models the entropy of the serialized octree data during entropy coding. Our approach extends prior methods in the sense that we better utilize the contextual information over the octree structure for prediction through an end-to-end learnable density estimation network.
+
+Formulation: Given the sequence of occupancy 8-bit symbols $\mathbf{x} = [x_1, x_2 \ldots x_n]$ , the goal of an entropy model is to learn an estimated distribution $q(\mathbf{x})$ such that it minimizes the cross-entropy with the actual distribution of the symbols $p(\mathbf{x})$ :
+
+$$
+H (p, q) = \mathbb {E} _ {\mathbf {x} \sim p} [ - \log_ {2} q (\mathbf {x}) ] \qquad (1)
+$$
+
+According to Shannon's source coding theorem [32], the cross-entropy between $q(\mathbf{x})$ and $p(\mathbf{x})$ provides a tight lower bound on the bitrate achievable by arithmetic or range coding algorithms [43]; the better $q(\mathbf{x})$ approximates $p(\mathbf{x})$ , the lower the true bitrate. We thus train to minimize the cross-entropy loss between the models predicted distribution $q$ and the distribution of training data.
+
+Entropy Model: We now describe the formulation of our entropy model over the octree structure $\mathbf{x}$ . We factorize $q(\mathbf{x})$ into a product of conditional probabilities of each individual occupancy symbol $x_{i}$ as follows:
+
+$$
+q (\mathbf {x}) = \prod_ {i} q _ {i} \left(x _ {i} \mid \mathbf {x} _ {\mathrm {a n} (i)}, \mathbf {c} _ {i}; \mathbf {w}\right). \tag {2}
+$$
+
+where $\mathbf{x}_{\mathrm{an}(i)} = \{x_{\mathrm{pa}(i)}, x_{\mathrm{pa}(\mathrm{pa}(i))}, \dots, x_{\mathrm{pa}(\dots (\mathrm{pa}(i)))}\}$ with $|\mathbf{x}_{\mathrm{an}(i)}| \leq K$ is the set of ancestor nodes of a given node $i$ , up to a given order $K$ , and $\mathbf{w}$ is the weights parametrizing our entropy model. Here, $\mathbf{c}_i$ is the context information that is available as prior knowledge during encoding/decoding of $x_i$ , such as octant index, spatial location of the octant, level in the octree, parent occupancy, etc. These models take advantage of the tree structure to gather both the information from nodes at coarser levels and the context information available at the current node. Intuitively, conditioning on ancestor nodes can help to reduce the entropy for the current node prediction, since it is easier to predict the finer geometry structure at the current node when the coarse structure represented by ancestor nodes is already known. Context information such as location information helps to reduce entropy even further by capturing the prior structure of the scene. For instance, in the setting of using LiDAR in the self-driving scenario, an occupancy node 0.5 meters above the LiDAR sensor is unlikely to be occupied.
+
+Architecture: Our proposed entropy architecture models $q_{i}(x_{i} \mid \mathbf{x}_{\mathrm{an}(i)}, \mathbf{c}_{i}; \mathbf{w})$ by first extracting an independent contextual embedding for each $x_{i}$ , and then performing progressive aggregation of contextual embeddings to incorporate ancestral information $\mathbf{x}_{\mathrm{an}(i)}$ for a given node.
+
+For a given intermediate octree node $x_{i}$ , the input context feature $\mathbf{c}_i$ includes the node's location, octant, level, and parent (see Fig. 1). Specifically, 'location' is the node's 3D location encoded as a vector in $\mathbb{R}^3$ , 'octant' is its octant index encoded as an integer in $\{0,\dots ,7\}$ , 'level' is its depth encoded as an integer in $\{0,\dots ,\text{tree - depth}\}$ , and 'parent' is its parent's 8-bit occupancy encoded as an integer in $\{0,\dots ,255\}$ . We extract an independent deep feature for each node through a multi-layer perceptron (MLP) with the context feature $\mathbf{c}_i$ as input:
+
+$$
+\mathbf {h} _ {i} ^ {(0)} = \operatorname {M L P} ^ {(0)} \left(\mathbf {c} _ {i}\right) \tag {3}
+$$
+
+
+
+
+
+
+
+
+Figure 3: Quantitative results on NorthAmerica and KITTI. From left to right: point-to-plane PSNR, IOU, and Chamfer distance.
+
+
+
+
+
+Then, starting with the feature $\mathbf{h}_i^{(0)}$ for each node, we perform $K$ aggregations between the current node feature and the feature of its parent. At iteration $k$ , the aggregation can also be modeled as an MLP:
+
+$$
+\mathbf {h} _ {i} ^ {(k)} = \mathrm {M L P} ^ {(k)} ([ \mathbf {h} _ {i} ^ {(k - 1)}, \mathbf {h} _ {\mathrm {p a} (i)} ^ {(k - 1)} ]) \tag {4}
+$$
+
+where $\mathbf{h}_{\mathrm{pa}(i)}^{(k - 1)}$ is the hidden feature of node $i$ 's parent. For the root node, we consider its parent feature as all zero features for model consistency. The final output of our model is a linear layer on top of the $K$ -th aggregated feature $\mathbf{h}_i^{(k)}$ , producing a 256-dimensional softmax of probabilities for the 8-bit occupancy symbol of the given node:
+
+$$
+q _ {i} (\cdot \mid \mathbf {x} _ {\mathrm {a n} (i)}, \mathbf {c} _ {i}; \mathbf {w}) = g \left(\mathbf {h} _ {i} ^ {(k)}\right) \tag {5}
+$$
+
+Note that these aggregations only aggregate the node feature with that of its parent, never its child; the child input context is not available during sequential decoding. Moreover, each additional aggregation increases the receptive field of ancestral features by 1, and so the $k$ -th aggregation has a receptive field of $k$ ancestors. Fig. 1 depicts our proposed stacked entropy model with $K = 3$ . In this figure, a model with $K$ levels of aggregations predicts the probability of the current node $x_{i}$ by considering the node feature itself as well as $K - 1$ generations of the ancestor's feature.
+
+In this sense, we can view our aggregation as conceptually similar to other autoregressive models, such as the "masked convolution" used PixelCNN [39] and "causal convolution" proposed in Wavenet [38]. Unlike previous work either on 2D grids or 1D sequences, our autoregressive model is applied along the octree traversal path from the root to each node.
+
+Detailed Architecture: Here we discuss the detailed architecture of the each submodule of our stacked entropy model. The first MLP is a 5-layer MLP with 128 dimensional hidden features. All subsequent MLPs are 3-layer MLPs (with residual layers) with 128 dimensional hidden features. A final linear layer followed by a softmax is used to make the 256-way prediction. Every MLP is Linear + ReLU without normalization layers.
+
+Learning: At training time, the full entropy model is trained end-to-end with the cross-entropy loss on each node:
+
+$$
+\ell = - \sum_ {i} \sum_ {j} y _ {i, j} \log q _ {i, j} \tag {6}
+$$
+
+where $\mathbf{y}_i$ is the one-hot encoding of the ground-truth symbol at node $i$ , and $q_{i,j}$ is the predicted probability of symbol $j$ 's occurrence at node $i$ .
+
+# 3.3. EntropyCoder
+
+Encoding: At the encoding stage, we apply our model sequentially across different levels, from the root to leaves. Our proposed entropy model does not propagate information between nodes at the same level. Therefore, within each level, we are able to parallelize the computation for probability estimation. Afterwards, we losslessly compress the octree raw bit-stream using an entropy coding algorithm such as arithmetic coding. Our network determines the arithmetic coder's entropy model by predicting the categorical distribution (0 to 255) for each byte $x_{i}$ in the sequence.
+
+| L | P | O | LL | Bitrate |
| Depth = 12 | Depth = 14 | Depth = 16 |
| | | | 3.91 | 9.99 | 16.21 |
| ✓ | | | | 3.86 | 9.79 | 15.91 |
| ✓ | ✓ | | | 3.62 | 9.33 | 15.41 |
| ✓ | ✓ | ✓ | | 3.59 | 9.27 | 15.35 |
| ✓ | ✓ | ✓ | ✓ | 3.48 | 8.91 | 14.97 |
+
+Table 1: Ablation study on input context features. L, P, O, and LL stand for the node's octree level, its parent occupancy symbol, its octant index, and its spatial location respectively.
+
+| # Aggregations | Bitrate |
| Depth = 12 | Depth = 14 | Depth = 16 |
| 0 | 3.48 | 8.91 | 14.97 |
| 1 | 3.39 | 8.78 | 14.84 |
| 2 | 3.31 | 8.59 | 14.64 |
| 3 | 3.25 | 8.47 | 14.51 |
| 4 | 3.17 | 8.32 | 14.33 |
+
+Table 2: Ablation study on the number of aggregations.
+
+Decoding: To decode, the same entropy model is used in the arithmetic coder's decoding algorithm. An octree is then built from the decompressed bitstream and used to reconstruct the point cloud. Due to the auto-regressive fasion of the entropy model, each node probability estimation is only dependent on itself and decoded node features at higher level of the octree. In addition, the octree is serialized in a breadth-first search fashion. As a result, given a node $x_{i}$ , its ancestors in the octree $\mathbf{x}_{\mathrm{an}(i)}$ are decoded before $x_{i}$ , making it feasible for the decoder to also decode $x_{i}$ .
+
+# 4. Experiments
+
+In this section we validate the effectiveness of our proposed approach on two challenging real-world LiDAR datasets with drastically varying scenes. We compare our method against several state-of-the-art point cloud compression algorithms in terms of both reconstruction quality and their effects on downstream perception tasks.
+
+# 4.1. Datasets
+
+NorthAmerica: We collected a new internal dataset comprising of driving scenes from a wide variety of urban and highway environments in multiple cities/states across North America. From this dataset, we sampled 500K raw LiDAR scans collected by a Velodyne HDL-64 sensor to train our entropy model. No additional filtering or processing is applied to these LiDAR point clouds. For evaluation of reconstruction quality, we collected 472 snippets each containing 250 LiDAR scans. In addition, we also annotate these frames with 2D bird's eye view bounding boxes for the vehicle, pedestrian, and motorbike classes, as well as per-point semantic labels for the vehicle, pedestrian, motorbike, road, and background classes. We use these labels for
+
+evaluation on downstream perception tasks.
+
+KITTI: To evaluate our method's domain transfer capability, we show results on SemanticKITTI [3]—a public self-driving dataset containing 21351 scans with 4.5 billion points collected from a Velodyne HDL-64 sensor. As SemanticKITTI also contains dense point-wise labels from 25 classes, we also evaluate downstream task performance on this dataset. Note that there is a significant domain shift from our internal data to KITTI in terms of the scene layout as well as sensor configuration, such as sensor height, ego-occlusion, ray angles, etc.
+
+# 4.2. Experimental Details
+
+Baselines: Our baselines include two of the best off-the-shelf point cloud compression approaches, namely Google's Draco encoder ('Draco') [8] and Mekuria et al.'s octree-based algorithm [20] which serves as the MPEG anchor ('MPEG anchor'). In addition, we compare our method against a deep baseline model using a range image representation for the point cloud ('Deep Range'). For the range image representation, we utilize the rolling shutter characteristics to convert each LiDAR scan from Euclidean coordinates to polar coordinates, and store it as a 2.5D range image. We then train the Balle hyperprior model [2], a state-of-the-art image compression model, on these images. During decoding we reconstruct the 2.5D range image and convert it back to Euclidean point cloud.
+
+Implementation Details: We train our entropy models on full 16-level octrees. Training a single model on the full 16-level octree allows for variable rate compression within the same model, since during test time, we can truncate the same octree over different levels to evaluate our models over different levels of quantization. Specifically, we evaluate our octree models with depths ranging from 11 to 16 to measure the bitrate-quality tradeoff. The quantization error ranges from $0.3\mathrm{cm}$ to $9.75\mathrm{cm}$ , and every decrement in tree height doubles this value.
+
+Our entropy model is implemented in PyTorch and trained over 16 GPUs with the Adam optimizer. We use a learning rate of $1\mathrm{e} - 4$ for 500K iterations.
+
+# 4.3. Compression Metrics
+
+Reconstruction Quality: To evaluate reconstruction quality, we use two families of metrics: distance and occupancy. A commonly used distance-based metric to evaluate point cloud similarity is the symmetric point-to-point Chamfer distance $\mathrm{CD}_{\mathrm{sym}}$ . For a given GT point cloud $\mathcal{P} = \{\mathbf{p}_i\}_{i=1,\dots,N}$ and reconstructed point cloud $\hat{\mathcal{P}}$ :
+
+$$
+\mathrm {C D} (\mathcal {P}, \hat {\mathcal {P}}) = \frac {1}{| \mathcal {P} |} \sum_ {i} \min _ {j} \| \mathbf {p} _ {i} - \hat {\mathbf {p}} _ {j} \| _ {2} ^ {2} \tag {7}
+$$
+
+
+
+
+
+
+
+
+GT (NorthAmerica)
+
+
+
+
+Ours: PSNR 58.54, Bitrate 2.06
+
+
+Draco: PSNR 51.52, Bitrate 2.17
+
+
+Range: PSNR 50.35, Bitrate 13.99
+Range: PSNR 46.50, Bitrate 5.58
+
+
+GT (KITTI)
+
+
+Ours: PSNR 71.59, Bitrate 13.59
+
+
+Draco: PSNR 68.85, Bitrate 13.65
+Draco: PSNR 51.16, Bitrate 2.35
+
+
+
+
+Ours: PSNR 54.81, Bitrate 2.02
+
+
+Figure 4: Qualitative results on NorthAmerica and KITTI. From left to right: Ground Truth, Ours, Draco, and Deep Range.
+
+
+Range: PSNR 33.30, Bitrate 3.61
+
+$$
+\mathrm {C D} _ {\text {s y m}} (\mathcal {P}, \hat {\mathcal {P}}) = \mathrm {C D} (\mathcal {P}, \hat {\mathcal {P}}) + \mathrm {C D} (\hat {\mathcal {P}}, \mathcal {P}) \tag {8}
+$$
+
+A second distance-based metric, point-to-plane PSNR, [36] accounts for point cloud resolution:
+
+$$
+\operatorname {P S N R} (\mathcal {P}, \hat {\mathcal {P}}) = 1 0 \log_ {1 0} \frac {p ^ {2}}{\operatorname {M S E} _ {\text {s y m}} (\mathcal {P} , \hat {\mathcal {P}})} \tag {9}
+$$
+
+where $p = \max_{i}\| \mathbf{p}_{i} - \hat{\mathbf{p}}_{i}\|_{2}^{2}$ and $\mathrm{MSE}_{\mathrm{sym}}(\mathcal{P},\hat{\mathcal{P}})$ is the symmetric point-to-plane distance:
+
+$$
+\operatorname {M S E} (\mathcal {P}, \hat {\mathcal {P}}) = \frac {1}{| \mathcal {P} |} \sum_ {i} \left(\left(\hat {\mathbf {p}} _ {i} - \mathbf {p} _ {i}\right) \cdot \mathbf {n} _ {i}\right) ^ {2} \tag {10}
+$$
+
+$$
+\mathrm {M S E} _ {\text {s y m}} (\mathcal {P}, \hat {\mathcal {P}}) = \mathrm {M S E} (\mathcal {P}, \hat {\mathcal {P}}) + \mathrm {M S E} (\hat {\mathcal {P}}, \mathcal {P}) \tag {11}
+$$
+
+where $\hat{\mathbf{p}}_i = \arg \min_{\mathbf{p}\in \hat{\mathcal{P}}}\| \mathbf{p}_i - \mathbf{p}\| _2^2$ is the closest point in $\hat{\mathcal{P}}$ for each point $\mathbf{p}_i$ , and $\mathbf{n}_i$ is the normal at each $\mathbf{p}_i$ .
+
+Occupancy Quality: It is common practice to use Li-DAR point clouds in voxelized form for perception tasks [16, 51, 49]. To reflect this, we computed occupancy-based metrics. In particular, we report the intersection-over-union (IOU) using $0.2 \times 0.2 \times 0.1$ meter voxels:
+
+$$
+\mathrm {I O U} = \frac {\mathrm {T P}}{\mathrm {T P} + \mathrm {F P} + \mathrm {F N}} \tag {12}
+$$
+
+where TP, FP, FN are the numbers of true positives, false positives, and false negatives in terms of voxel occupancy.
+
+# 4.4. Compression Results
+
+Quantitative Results on NorthAmerica: We report the bitrate versus reconstruction quality metrics (PSNR, IOU, Chamfer) over all competing algorithms on the NorthAmerica dataset. As shown in Fig. 3, our method outperforms all previous state-of-the-art algorithms, with a $10 - 20\%$ bitrate reduction over Draco and MPEG Anchor at the same reconstruction quality. All three methods significantly outperform the deep range image compression method. Note that since we use the same octree data structure, our approach has the same reconstruction quality as MPEG Anchor. However, our bitrate is much lower thanks to the deep entropy model. These results validate our proposed deep entropy model and our choice of an octree data structure to compress sparse LiDAR point clouds.
+
+Quantitative Results on KITTI: In Fig. 3, we show the bitrate versus reconstruction quality metrics on KITTI. Although our model was trained using only data from NorthAmerica, it can still significantly outperform all competing algorithms, especially at lower bitrates.
+
+Qualitative Results: Fig. 4 shows point cloud reconstructions on KITTI and NorthAmerica colored by reconstruction error. For fair comparison, we choose results from the competing algorithms that have been compressed at a similar bitrate rate. All cases show that our method and Draco
+
+
+Figure 5: Quantitative results of downstream perception tasks. The leftmost two figures show IOU performance on semantic segmentation for KITTI and NorthAmerica respectively. The rightmost three figures show AP performance on object detection for NorthAmerica.
+
+
+
+
+
+
+
+
+
+
+Figure 6: Qualitative results of semantic segmentation (right) and object detection (left).
+
+give more faithful reconstructions than range image compression at comparable bitrates, as the range image reconstruction suffers from noise and errors at object boundaries as well as lower/upper LiDAR beam. At the same bitrate, our reconstruction quality is also better than Draco.
+
+Ablation Studies: We perform ablation studies on the entropy model, both over the context features $\mathbf{c}_i$ as well as over the number of aggregations $K$ . In Tab. 1, we ablate over context features by progressively incorporating the four features that we use: the node's octree level, its parent occupancy symbol, its octant index, and its spatial location. Note that these ablations are performed without any aggregations ( $K = 0$ ), demonstrating the predictive power of context features alone. As shown in the table, we can see that gradually adding more context information consistently lowers the entropy of our encoding.
+
+Next, we evaluate how the high-order ancestor information helps to predict the probability. We evaluate the proposed entropy model with different levels of aggregation, $K = 0, \dots, 4$ , incorporating $K$ levels of "ancestor" contexts. Tab. 2 show that in general, conducting more aggregations consistently improves the entropy of our model.
+
+# 4.5. Effects on Downstream Perception Tasks
+
+Another important metric for compression is its effects on the performance of relevant downstream tasks. We quantify these effects for two fundamental perception tasks: semantic segmentation and object detection.
+
+In our experiments, we evaluate the semantic segmentation and object detection models described in [44] over point clouds reconstructed from various compression schemes. Note that we train these perception models on uncompressed point clouds with detection and segmentation labels—for NorthAmerica, we use the training dataset
+
+described in [44], and for KITTI, we use the official training dataset [3]. For semantic segmentation, we report mean intersection-over-union (IOU) computed using voxelized ground truth labels. For object detection, we report average precision (AP) at $50\%$ IOU threshold for pedestrians and motorbikes, and $70\%$ for vehicles.
+
+As shown in Fig. 5 and Fig. 6, our method outperforms all competing baselines on both NorthAmerica and KITTI. Our method's strength is particularly highlighted in semantic segmentation where preserving the fine-grained details of the point cloud is especially important. For example, at 5 bits-per-point, our method achieves a $5 - 10\%$ improvement over Draco and MPEG for NorthAmerica. In object detection, our method consistently outperforms the baselines, albeit more slightly than in segmentation; this is due to the fact that the object detection model is already robust to a range of bitrates. Overall, these results attest to the performance of our method and help illustrate its effects on tasks relevant to many robotics applications.
+
+# 5. Conclusion
+
+We presented a novel LiDAR point cloud compression algorithm. Our method uses a deep tree-structured entropy model on an octree representation of the points that leverages available context information to reduce the entropy of each intermediate node. This entropy model exploits both the sparsity and structural redundancy between points to reduce the overall bitrate. We validate the effectiveness of our method over two large-scale datasets. The results suggest that our approach significantly reduces the bitrate compared against other competing algorithms at the same reconstruction quality. In addition, we demonstrate that our compressed representations achieve a lower error on downstream tasks than prior state-of-the-art work.
+
+# References
+
+[1] Johannes Balle, Valero Laparra, and Eero P. Simoncelli. End-to-end optimized image compression. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net, 2017. 3
+[2] Johannes Balle, David Minnen, Saurabh Singh, Sung Jin Hwang, and Nick Johnston. Variational image compression with a scale hyperprior. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net, 2018. 3, 6
+[3] Jens Behley, Martin Garbade, Andres Milioto, Jan Quenzel, Sven Behnke, Cyril Stachniss, and Jirgen Gall. Semantickitti: A dataset for semantic scene understanding of lidar sequences. In 2019 IEEE/CVF International Conference on Computer Vision, ICCV 2019, Seoul, Korea (South), October 27 - November 2, 2019, pages 9296-9306. IEEE, 2019. 2, 6, 8
+[4] Jon Louis Bentley. Multidimensional binary search trees used for associative searching. Commun. ACM, 18(9):509-517, 1975. 1
+[5] Olivier Devillers and Pierre-Marie Gandomin. Geometric compression for interactive transmission. In IEEE Visualization 2000, October 8-13, 2000, Hilton Hotel, Salt Lake City, Utah, USA, Proceedings, pages 319-326. IEEE Computer Society and ACM, 2000. 2
+[6] Diogo C. Garcia and Ricardo L. de Queiroz. Intra-frame context-based octree coding for point-cloud geometry. In 2018 IEEE International Conference on Image Processing, ICIP 2018, Athens, Greece, October 7-10, 2018, pages 1807-1811. IEEE, 2018. 2
+[7] 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, Providence, RI, USA, June 16-21, 2012, pages 3354-3361. IEEE Computer Society, 2012. 3
+[8] Google. Draco 3d data compression. https://github.com/google/draco, 2017.2,6
+[9] Benjamin Graham, Martin Engelcke, and Laurens van der Maaten. 3d semantic segmentation with submanifold sparse convolutional networks. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 9224-9232. IEEE Computer Society, 2018. 2
+[10] AmirHossein Habibian, Ties van Rozendaal, Jakub M. Tomczak, and Taco Cohen. Video compression with rate-distortion autoencoders. In 2019 IEEE/CVF International Conference on Computer Vision, ICCV 2019, Seoul, Korea (South), October 27 - November 2, 2019, pages 7032-7041. IEEE, 2019. 3
+[11] Hamidreza Houshiar and Andreas Nüchter. 3d point cloud compression using conventional image compression for efficient data transmission. In XXV International Conference on Information, Communication and Automation Technologies, ICAT 2015, Sarajevo, Bosnia and Herzegovina, October 29-31, 2015, pages 1-8. IEEE Computer Society, 2015. 2
+
+[12] Tianxin Huang and Yong Liu. 3d point cloud geometry compression on deep learning. In Laurent Amsaleg, Benoit Huet, Martha A. Larson, Guillaume Gravier, Hayley Hung, Chong-Wah Ngo, and Wei Tsang Ooi, editors, Proceedings of the 27th ACM International Conference on Multimedia, MM 2019, Nice, France, October 21-25, 2019, pages 890-898. ACM, 2019. 2
+[13] Yan Huang, Jingliang Peng, C.-C. Jay Kuo, and M. Gopi. A generic scheme for progressive point cloud coding. IEEE Trans. Vis. Comput. Graph., 14(2):440-453, 2008. 2, 4
+[14] Julius Kammerl, Nico Blodow, Radu Bogdan Rusu, Suat Gedikli, Michael Beetz, and Eckehard G. Steinbach. Realtime compression of point cloud streams. In IEEE International Conference on Robotics and Automation, ICRA 2012, 14-18 May, 2012, St. Paul, Minnesota, USA, pages 778-785. IEEE, 2012. 2, 4
+[15] Roman Klokov and Victor S. Lempitsky. Escape from cells: Deep kd-networks for the recognition of 3d point cloud models. In IEEE International Conference on Computer Vision, ICCV 2017, Venice, Italy, October 22-29, 2017, pages 863-872. IEEE Computer Society, 2017. 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 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019, Long Beach, CA, USA, June 16-20, 2019, pages 12697-12705. Computer Vision Foundation / IEEE, 2019. 7
+[17] Guo Lu, Wanli Ouyang, Dong Xu, Xiaoyun Zhang, Chunlei Cai, and Zhiyong Gao. DVC: an end-to-end deep video compression framework. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019, Long Beach, CA, USA, June 16-20, 2019, pages 11006-11015. Computer Vision Foundation / IEEE, 2019. 3
+[18] Daniel Maturana and Sebastian A. Scherer. Voxnet: A 3d convolutional neural network for real-time object recognition. In 2015 IEEE/RSJ International Conference on Intelligent Robots and Systems, IROS 2015, Hamburg, Germany, September 28 - October 2, 2015, pages 922-928. IEEE, 2015. 2
+[19] Donald Meagher. Geometric modeling using octree encoding. Computer Graphics and Image Processing, 19(1):85, 1982. 1, 3
+[20] Rufael Mekuria, Kees Blom, and Pablo César. Design, implementation, and evaluation of a point cloud codec for teleimmersive video. IEEE Trans. Circuits Syst. Video Techn., 27(4):828-842, 2017. 2, 6
+[21] Fabian Mentzer, Eirikur Agustsson, Michael Tschannen, Radu Timofte, and Luc Van Gool. Conditional probability models for deep image compression. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 4394-4402. IEEE Computer Society, 2018. 3
+[22] Fabian Mentzer, Eirikur Agustsson, Michael Tschannen, Radu Timofte, and Luc Van Gool. Practical full resolution learned lossless image compression. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019, Long Beach, CA, USA, June 16-20, 2019, pages 10629-10638. Computer Vision Foundation / IEEE, 2019. 3
+
+[23] 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 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019, Long Beach, CA, USA, June 16-20, 2019, pages 12677-12686. Computer Vision Foundation / IEEE, 2019. 2
+[24] Charles Ruizhongtai Qi, Hao Su, Kaichun Mo, and Leonidas J. Guibas. Pointnet: Deep learning on point sets for 3d classification and segmentation. In 2017 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, Honolulu, HI, USA, July 21-26, 2017, pages 77-85. IEEE Computer Society, 2017. 2
+[25] Charles Ruizhongtai 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 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, pages 5648-5656. IEEE Computer Society, 2016. 2
+[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 Isabelle Guyon, Ulrike von Luxburg, Samy Bengio, Hanna M. Wallach, Rob Fergus, S. V. N. Vishwanathan, and Roman Garnett, editors, Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, 4-9 December 2017, Long Beach, CA, USA, pages 5099-5108, 2017. 3
+[27] Maurice Quach, Giuseppe Valenzise, and Frédéric Dufaux. Learning convolutional transforms for lossy point cloud geometry compression. In 2019 IEEE International Conference on Image Processing, ICIP 2019, Taipei, Taiwan, September 22-25, 2019, pages 4320-4324. IEEE, 2019. 2
+[28] Mengye Ren, Andrei Pokrovsky, Bin Yang, and Raquel Urtasun. Sbnet: Sparse blocks network for fast inference. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 8711-8720. IEEE Computer Society, 2018. 2
+[29] Gernot Riegler, Ali Osman Ulusoy, and Andreas Geiger. Octnet: Learning deep 3d representations at high resolutions. In 2017 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, Honolulu, HI, USA, July 21-26, 2017, pages 6620-6629. IEEE Computer Society, 2017. 3
+[30] Oren Rippel, Sanjay Nair, Carissa Lew, Steve Branson, Alexander G. Anderson, and Lubomir D. Bourdev. Learned video compression. In 2019 IEEE/CVF International Conference on Computer Vision, ICCV 2019, Seoul, Korea (South), October 27 - November 2, 2019, pages 3453-3462. IEEE, 2019. 3
+[31] Ruwen Schnabel and Reinhard Klein. Octree-based pointcloud compression. In Mario Botsch, Baoquan Chen, Mark Pauly, and Matthias Zwicker, editors, Symposium on Point Based Graphics, Boston, Massachusetts, USA, 2006. Proceedings, pages 111-120. Eurographics Association, 2006. 2, 4
+[32] Claude E. Shannon. A mathematical theory of communication. Bell Syst. Tech. J., 27(3):379-423, 1948. 4
+
+[33] Hang Su, Subhransu Maji, Evangelos Kalogerakis, and Erik G. Learned-Miller. Multi-view convolutional neural networks for 3d shape recognition. In 2015 IEEE International Conference on Computer Vision, ICCV 2015, Santiago, Chile, December 7-13, 2015, pages 945-953. IEEE Computer Society, 2015. 2
+[34] Lucas Theis, Wenzhe Shi, Andrew Cunningham, and Ferenc Huszár. Lossy image compression with compressive autoencoders. In 5th International Conference on Learning Representations, ICLR 2017, Toulouse, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net, 2017. 3
+[35] Hugues Thomas, Charles R. Qi, Jean-Emmanuel Deschaud, Beatrix Marcotegui, François Goulette, and Leonidas J. Guibas. Kpconv: Flexible and deformable convolution for point clouds. In 2019 IEEE/CVF International Conference on Computer Vision, ICCV 2019, Seoul, Korea (South), October 27 - November 2, 2019, pages 6410-6419. IEEE, 2019. 3
+[36] Dong Tian, Hideaki Ochimizu, Chen Feng, Robert A. Cohen, and Anthony Vetro. Geometric distortion metrics for point cloud compression. In 2017 IEEE International Conference on Image Processing, ICIP 2017, Beijing, China, September 17-20, 2017, pages 3460-3464. IEEE, 2017. 7
+[37] George Toderici, Damien Vincent, Nick Johnston, Sung Jin Hwang, David Minnen, Joel Shor, and Michele Covell. Full resolution image compression with recurrent neural networks. In 2017 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, Honolulu, HI, USA, July 21-26, 2017, pages 5435-5443. IEEE Computer Society, 2017. 3
+[38] Aäron van den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alex Graves, Nal Kalchbrenner, Andrew W. Senior, and Koray Kavukcuoglu. Wavenet: A generative model for raw audio. In The 9th ISCA Speech Synthesis Workshop, Sunnyvale, CA, USA, 13-15 September 2016, page 125. ISCA, 2016. 5
+[39] Aäron van den Oord, Nal Kalchbrenner, Lasse Espeholt, Koray Kavukcuoglu, Oriol Vinyals, and Alex Graves. Conditional image generation with pixelcnn decoders. In Daniel D. Lee, Masashi Sugiyama, Ulrike von Luxburg, Isabelle Guyon, and Roman Garnett, editors, Advances in Neural Information Processing Systems 29: Annual Conference on Neural Information Processing Systems 2016, December 5-10, 2016, Barcelona, Spain, pages 4790-4798, 2016. 5
+[40] Aäron van den Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel recurrent neural networks. In MariaFlorina Balcan and Kilian Q. Weinberger, editors, Proceedings of the 33nd International Conference on Machine Learning, ICML 2016, New York City, NY, USA, June 19-24, 2016, volume 48 of JMLR Workshop and Conference Proceedings, pages 1747-1756. JMLR.org, 2016. 3
+[41] 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 Trans. Graph., 36(4):72:1-72:11, 2017. 3
+[42] Shenlong Wang, Simon Suo, Wei-Chiu Ma, Andrei Pokrovsky, and Raquel Urtasun. Deep parametric continuous convolutional neural networks. In 2018 IEEE Conference on
+
+Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 2589-2597. IEEE Computer Society, 2018. 3
+[43] Ian H. Witten, Radford M. Neal, and John G. Cleary. Arithmetic coding for data compression. Commun. ACM, 30(6):520-540, 1987. 4
+[44] Kelvin Wong, Shenlong Wang, Mengye Ren, Ming Liang, and Raquel Urtasun. Identifying unknown instances for autonomous driving. CoRR, abs/1910.11296, 2019. 8
+[45] Chao-Yuan Wu, Nayan Singhal, and Philipp Krahenbuhl. Video compression through image interpolation. In Vittorio Ferrari, Martial Hebert, Cristian Sminchisescu, and Yair Weiss, editors, Computer Vision - ECCV 2018 - 15th European Conference, Munich, Germany, September 8-14, 2018, Proceedings, Part VIII, volume 11212 of Lecture Notes in Computer Science, pages 425-440. Springer, 2018. 3
+[46] Wenxuan Wu, Zhongang Qi, and Fuxin Li. Pointconv: Deep convolutional networks on 3d point clouds. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019, Long Beach, CA, USA, June 16-20, 2019, pages 9621-9630. Computer Vision Foundation / IEEE, 2019. 3
+[47] Zhirong Wu, Shuran Song, Aditya Khosla, Fisher Yu, Linguuang Zhang, Xiaou Tang, and Jianxiong Xiao. 3d shapenets: A deep representation for volumetric shapes. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2015, Boston, MA, USA, June 7-12, 2015, pages 1912-1920. IEEE Computer Society, 2015. 2
+[48] Yuwen Xiong, Mengye Ren, Renjie Liao, Kelvin Wong, and Raquel Urtasun. Deformable filter convolution for point cloud reasoning. CoRR, abs/1907.13079, 2019. 3
+[49] Bin Yang, Wenjie Luo, and Raquel Urtasun. **PIXOR: real-time 3d object detection from point clouds.** In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 7652-7660. IEEE Computer Society, 2018. 2, 7
+[50] Chris Zhang, Wenjie Luo, and Raquel Urtasun. Efficient convolutions for real-time semantic segmentation of 3d point clouds. In 2018 International Conference on 3D Vision, 3DV 2018, Verona, Italy, September 5-8, 2018, pages 399-408. IEEE Computer Society, 2018. 2
+[51] Yin Zhou and Oncel Tuzel. Voxelnet: End-to-end learning for point cloud based 3d object detection. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 4490-4499. IEEE Computer Society, 2018. 2, 7
\ No newline at end of file
diff --git a/octsqueezeoctreestructuredentropymodelforlidarcompression/images.zip b/octsqueezeoctreestructuredentropymodelforlidarcompression/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..3395e02d6b18ff9bf9cf94c13842a9db073f14d5
--- /dev/null
+++ b/octsqueezeoctreestructuredentropymodelforlidarcompression/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2594ddda28a477de814f562d2dd25f27259bd57a65a66424b0bc8e87f761674b
+size 716239
diff --git a/octsqueezeoctreestructuredentropymodelforlidarcompression/layout.json b/octsqueezeoctreestructuredentropymodelforlidarcompression/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..6f857e1c4117f401e5ec24c708d6062b3e6dc3f1
--- /dev/null
+++ b/octsqueezeoctreestructuredentropymodelforlidarcompression/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:20c35bfb00424e7962b641674096d43ba03c68559c947b6d1fadd648d894b7a7
+size 418401
diff --git a/offsetbinclassificationnetworkforaccurateobjectdetection/af758b4b-45d1-4ebb-81d8-940a14210476_content_list.json b/offsetbinclassificationnetworkforaccurateobjectdetection/af758b4b-45d1-4ebb-81d8-940a14210476_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..ff7d62a406a068c9a513e6a98d00778f25d70e97
--- /dev/null
+++ b/offsetbinclassificationnetworkforaccurateobjectdetection/af758b4b-45d1-4ebb-81d8-940a14210476_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e1a8ee8fe8d716298e63293a5e0b7fd102a6d0930f1bc6702b30dc71b14b51dd
+size 74762
diff --git a/offsetbinclassificationnetworkforaccurateobjectdetection/af758b4b-45d1-4ebb-81d8-940a14210476_model.json b/offsetbinclassificationnetworkforaccurateobjectdetection/af758b4b-45d1-4ebb-81d8-940a14210476_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..169d4b13660acc343813679de0898aeedfd57d4c
--- /dev/null
+++ b/offsetbinclassificationnetworkforaccurateobjectdetection/af758b4b-45d1-4ebb-81d8-940a14210476_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8a55e8f505047531729bd4dab08fc94daa5578abbb373f79f6256a64d2ddc90b
+size 91708
diff --git a/offsetbinclassificationnetworkforaccurateobjectdetection/af758b4b-45d1-4ebb-81d8-940a14210476_origin.pdf b/offsetbinclassificationnetworkforaccurateobjectdetection/af758b4b-45d1-4ebb-81d8-940a14210476_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..98cbe02928d2d74169e97a054f2d3bb153555d65
--- /dev/null
+++ b/offsetbinclassificationnetworkforaccurateobjectdetection/af758b4b-45d1-4ebb-81d8-940a14210476_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:14b3e689363f00751bae4704b3362032db021c60f0dc610014404321380e5dff
+size 538469
diff --git a/offsetbinclassificationnetworkforaccurateobjectdetection/full.md b/offsetbinclassificationnetworkforaccurateobjectdetection/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..d987b8a36ee1229ef8812a675a54d174c919cdf7
--- /dev/null
+++ b/offsetbinclassificationnetworkforaccurateobjectdetection/full.md
@@ -0,0 +1,318 @@
+# Offset Bin Classification Network for Accurate Object Detection
+
+Heqian Qiu, Hongliang Li*, Qingbo Wu, Hengcan Shi
+University of Electronic Science and Technology of China
+Chengdu, China
+
+hqqiu@std.uestc.edu.cn, hlli@uestc.edu.cn, qbwu@uestc.edu.cn, shihc@std.uestc.edu.cn
+
+# Abstract
+
+Object detection combines object classification and object localization problems. Most existing object detection methods usually locate objects by leveraging regression networks trained with Smooth $L_{1}$ loss function to predict offsets between candidate boxes and objects. However, this loss function applies the same penalties on different samples with large errors, which results in suboptimal regression networks and inaccurate offsets. In this paper, we propose an offset bin classification network optimized with cross entropy loss to predict more accurate offsets. It not only provides different penalties for different samples but also avoids the gradient explosion problem caused by the samples with large errors. Specifically, we discretize the continuous offset into a number of bins, and predict the probability of each offset bin. Furthermore, we propose an expectation-based offset prediction and a hierarchical focusing method to improve the prediction precision. Extensive experiments on the PASCAL VOC and MS-COCO datasets demonstrate the effectiveness of our proposed method. Our method outperforms the baseline methods by a large margin.
+
+# 1. Introduction
+
+Object detection is a fundamental yet challenging computer vision task, which includes object classification and object localization problems. A broad set of computer vision applications, such as autonomous driving [7, 17, 39-41], video surveillance [6, 24] and robotics [38, 42, 45] will benefit from accurate object localization.
+
+Most of state-of-the-art object detection methods [1, 8, 11, 12, 20, 21, 26, 30, 31, 35, 44] firstly generate a series of candidate boxes and then predict offsets for these boxes to locate objects, as shown in Figure 1 (a). Since offsets are continuous values, these methods predict them by leveraging regression networks that are optimized using the $L_{2}$ or Smooth $L_{1}$ losses. However, as investigated by [9], the
+
+
+(a) Offset Regression based Localization
+
+
+
+
+Candidate Box
+(b) Offset Bin Classification based Localization
+Figure 1. A comparison of typical offset regression based object detection method and our proposed offset bin classification method. (a) The typical object detection method locates objects based on offset regression. (b) The proposed method locates objects based on the output probability distribution over different offset bins. The typical offset regression method makes limited offsets from the candidate box towards the object, whereas this problem is avoided by the offset bin classification method.
+
+$L_{2}$ loss [10] may cause gradient explosions when there are large offset errors. To avoid this problem, the Smooth $L_{1}$ loss [9] weakens the effects of the samples with large errors by clipping their gradients. Although the Smooth $L_{1}$ loss solves the gradient explosion problem, it cannot penalize enough the samples with large errors, which results in suboptimal regression networks and inaccurate offsets between candidate boxes and objects. For example, in Figure 1 (a), the train object can not be tightly surrounded by a bounding box.
+
+To address this problem, we propose an offset bin classification network to predict more accurate offsets, as shown in Figure 1 (b). The proposed method adopts a classification network trained with a cross entropy loss rather than a Smooth $L_{1}$ or $L_{2}$ loss. On the one hand, it gives samples with different offset errors adequate penalties. On the
+
+other hand, it avoids the gradient explosion problem. Nevertheless, the classification network can only predict discrete offset values. Therefore, we propose an expectation-based offset prediction and a hierarchical focusing offset prediction to further improve the prediction precision.
+
+Specifically, we quantize the continuous offset into a number of bins using the uniform discretization and then train an offset bin classification network with a cross entropy loss to predict the probability distribution of offset bins. Inspired by [37], we turn the classification results into the object location by calculating the softmax expected value of discretized offset bins. Meanwhile, we propose a hierarchical focusing offset prediction network to gradually refine offset bins for more precise object localization. We validate the effectiveness of our method on two common object detection datasets, including the PASCAL VOC and MS-COCO datasets. The results show that our proposed method is beneficial to accurate object detection.
+
+Our contributions can be summarized as follows:
+
+- We propose an offset bin classification network to predict more accurate offsets instead of regression networks optimized by Smooth $L_{1}$ or $L_{2}$ loss.
+- To further produce more precise object localization, we propose an expectation-based offset prediction and a hierarchical focusing offset prediction.
+- Extensive experiments on two common datasets demonstrate the effectiveness of the proposed methods.
+
+# 2. Related Work
+
+Object Detectors: Modern object detection frameworks usually can be classified as two-stage and single-stage detectors. In two-stage detectors [1,8,11,12,20,21,26,30,31, 35,44], a sparse set of region proposals that may contain objects are first generated, and then their features are extracted for the following classification and localization. The representative methods, including Faster R-CNN [35], FPN [20] and Mask R-CNN [12], have achieved dominated performance on various benchmarks. Compared with two-stage detectors, single-stage detectors [18,19,21,23,32-34] reach high inference speed, such as YOLO [32-34], SSD [23], RetinaNet [21]. They usually skip the region proposal generation step and directly predict bounding boxes following the anchor box scheme. Although these methods have detected objects successfully, it is still a challenging problem to achieve accurate object localization.
+
+Bounding Box Regression: In order to solve the problem of object localization, most of object detection methods [1, 8-11, 15, 26, 28, 44] leverage bounding box regression networks to predict offsets of four coordinates that transform candidate boxes to objects. R-CNN [10] predicted these offsets by training a linear regression model with $L_{2}$ loss. However, it is easy to cause gradient explosion when there are some samples with large errors. Replac
+
+ing $L_{2}$ loss, Fast R-CNN [9] proposed Smooth $L_{1}$ loss to reduce the effects of the samples with large errors, which has been widely accepted for regression in object detection. Balanced L1 loss [28] further increased the gradient contribution of the samples with small errors to rebalance the the involved classification and localization tasks as well as samples with different attributes. A different approach KL loss [14] took the ambiguities of ground truth bounding boxes into account and learned bounding box regression and localization variance for more accurate object localization. In addition, UnitBox [46] and GIoU [36] directly used the evaluation metric as object functions to address the gap between optimizing the commonly used distance loss and maximizing metric values. However, it is hard to optimize different bounding boxes with the same IoU.
+
+In addition, a series of object detectors [1, 8, 11, 26, 44] attempt to improve the object localization by iteratively regressing bounding boxes. They both cascaded multiple regressors and fed the detection results after each iteration into the next bounding box regressor. Cascade R-CNN [1] considered the distribution of detection outputs and resampled bounding boxes at each iteration to guarantee the matching between the quality of detector and that of testing. However, it is non-monotonic to improve the location accuracy as the number of iterations increases. IoU-Net [15] proposed to predict the IoU with matched groundtruth as the localization confidence to guide the regression of bounding box. Instead of regression network, we propose an offset bin classification network with a cross entropy loss to achieve more accurate object localization, which is also effectively turned in other computer vision areas. For example, [27] predicted the detection heatmaps and the associative embedding tags for human pose estimation. [5] trained a depth estimation network by using an ordinal regression loss instead of a $L_{2}$ loss.
+
+Recently, some anchor-free methods [16,43,47] directly predict the heatmaps of keypoints of bounding boxes, and introduce different kinds of loss functions to refine and group these keypoints for the final detected bounding boxes. CornerNet [16] used a SmoothL1 loss to regress the local offsets, and pull loss and push loss to constrain the distances between keypoints. CenterNet [47] regressed localization offset and object size using two L1 loss functions. FCOS [43] employed an IoU loss to regress the area of bounding box. Unlike the proposed method, they usually require carefully group keypoints for final objects.
+
+# 3. Approach
+
+In this section, we first review and analyze the problem of the conventional bounding box regressors. Then, we introduce our proposed offset bin classification network to address this problem, which is implemented based on popular FPN [20].
+
+
+Figure 2. The overall architecture of our proposed offset bin classification method for object detection. It consists of three main parts: RoI features extraction, offset bin labels construction and expectation-based offset prediction. The RoI features are extracted by the backbone network FPN [20]. The offset bin labels construction is to discretize the continuous offset range to several offset bins. The expectation-based offset predict is used to turn the classification results to offset estimation by calculating a expected value.
+
+# 3.1. Revisiting Bounding Box Regression
+
+Let $(x,y,w,h)$ be the center coordinates of bounding box and its width and height. Following R-CNN [10], the common methods leverage regression networks to learn offsets that transform candidate boxes to ground-truth boxes. They parameterize the offsets of four coordinates as follows:
+
+$$
+t _ {x} = (x - x _ {a}) / w _ {a}, t _ {y} = (y - y _ {a}) / h _ {a}
+$$
+
+$$
+t _ {w} = \log \left(w / w _ {a}\right), t _ {h} = \log \left(h / h _ {a}\right) \tag {1}
+$$
+
+$$
+t _ {x} ^ {*} = \left(x ^ {*} - x _ {a}\right) / w _ {a}, t _ {y} ^ {*} = \left(y ^ {*} - y _ {a}\right) / h _ {a} \tag {1}
+$$
+
+$$
+t _ {w} ^ {*} = \log (w ^ {*} / w _ {a}), t _ {h} ^ {*} = \log (h ^ {*} / h _ {a})
+$$
+
+where $t_x, t_y, t_w, t_h$ are the predicted offsets, $t_x^*, t_y^*, t_w^*, t_h^*$ are the target offsets. $x, x^*$ and $x_a$ (likewise for $y, w$ and $h$ ) are from the predicted box, ground-truth box and the candidate box (anchor or proposal box) respectively. The goal is to minimize the errors between the predicted and target offsets:
+
+$$
+L _ {l o c} = \sum_ {i \in \{x, y, w, h \}} L _ {r e g} \left(t _ {i} - t _ {i} ^ {*}\right) \tag {2}
+$$
+
+where $L_{reg}$ is squared-error $L_{2}$ loss function in R-CNN [10]. However, it is sensitive to some samples when there is a large offset errors.
+
+Replacing $L_{2}$ loss, Fast R-CNN [9] adopts Smooth $L_{1}$ loss function to evade the above problem:
+
+$$
+\operatorname {S m o o t h} L _ {1} (x) = \left\{ \begin{array}{l l} \frac {x ^ {2}}{2 \beta}, & | x | \leq \beta \\ | x | - \frac {\beta}{2}, & \text {o t h e r w i s e} \end{array} \right. \tag {3}
+$$
+
+$$
+\frac {\partial \text {S m o o t h} L _ {1}}{\partial t _ {i}} = \frac {\partial \text {S m o o t h} L _ {1}}{\partial x} \left\{ \begin{array}{l l} \frac {x}{\beta}, & | x | \leq \beta \\ \operatorname {s g n} (x), & \text {o t h e r w i s e} \end{array} \right. \tag {4}
+$$
+
+where the deviation $x = t_{i} - t_{i}^{*}$ , $\beta$ is usually set to 1 in two-stage detectors. $sgn$ represents symbolic function. Note that the samples with the offset error larger than $\beta$ are forced to clip the gradients to 1 or -1 for reducing their effects, causing insufficient penalty for these samples. So, the regression networks optimized by the Smooth $L_{1}$ loss function predict inaccurate offsets between candidate boxes and objects.
+
+# 3.2. Offset Bin Classification Network
+
+To address this problem, we propose an offset bin classification network to achieve more accurate object localization. The overall architecture of the proposed method is illustrated in Figure 2. Given an image, we first generate a sparse set of candidate boxes using Region Proposal Network (RPN) [20] and then extract these RoIs features from the image feature maps obtained by feature pyramid networks (FPN) [20]. Based on the extracted RoI features, we predict their corresponding object categories and offset bin confidence scores instead of concrete offset values. Moreover, we use the expectation-based offset prediction and the hierarchical focusing offset prediction in Figure 3 to further improve the precision of predicted offsets.
+
+# 3.2.1 Offset Bin Labels Construction
+
+As shown in Figure 4, we quantize the continuous offset in Section 3.1 into a set of representative discrete offsets. Divide the offset range $(-a,a)$ uniformly into $m$ non-overlapping bins. The width $w$ of each bin in the range $(-a,a)$ is $\frac{2a}{m}$ . In addition, we also separately divide the range $(- \infty, -a]$ and $[a, +\infty)$ into two bins. Thus, the total number of bins is denoted as $n = m + 2$ . The discrete bin labels are denoted as $L \in \{0,1,\dots,n-1\}$ . The representa
+
+
+Figure 3. The architecture of the proposed hierarchical focusing offset prediction. Here, we show three stages in the hierarchical focusing offset prediction. Yellow dashed boxes filled with gray denote the offset range in each stage. Green boxes and red boxes represent predicted boxes and ground-truth boxes in each stage. The offset range in each stage is defined within the offset bins of previous stage.
+
+
+Figure 4. Illustration of offset bin construction. The offset range $(-5, 5)$ is uniformly discretized into five bins, and the median values of each bin stand for their representative offsets. In addition, the range $(-\infty, -5]$ and $[5, +\infty)$ uses the endpoint $-5$ and $5$ as their representative offset, respectively.
+
+tive offset for each bin can be indicated as follows:
+
+$$
+t _ {i, l} ^ {r} = \left\{ \begin{array}{l l} - a + (l + \frac {1}{2}) * w & l \in [ 0, m ] \\ - a & l = m + 1 \\ a & l = m + 2 \end{array} \right. \tag {5}
+$$
+
+where $t_{i,l}^{r}$ is the representative offset corresponding to the bin label $l$ for the coordinate $i$ of the bounding box. The representative offsets for the labels from 0 to $m$ are expressed as the median value of each bin, and the other labels are expressed as the offset of the endpoint.
+
+# 3.2.2 Network Learning
+
+Based on the discretized offset bin labels, it is straightforward to cast the object localization as the multi-class classification problem instead of directly regression. As shown in Figure 2, the candidate box is fed into the BoxHead of backbone network FPN [20] to generate its offset bin score vector $s \in R^{4n}$ , where 4 is the four coordinates of the bounding box, $n$ is the number of offset bins. Then we reshape the
+
+score vector to $R^{4 \times n}$ and normalize respectively the score vector of each coordinate into the form of probability by a softmax function as follows:
+
+$$
+p _ {i, l} = \frac {\exp \left(s _ {i , l}\right)}{\sum_ {l = 0} ^ {n - 1} \exp \left(s _ {i , l}\right)} \tag {6}
+$$
+
+where $p_{i,l}$ indicates the probability of the $i$ -th coordinate offset belongs to the $l$ -th bin.
+
+The loss function $L_{bin}$ for the offset bin classifier is formulated as a cross entropy loss:
+
+$$
+L _ {b i n} \left(p _ {i, l}, l\right) = - \sum_ {i \in \{x, y, w, h \}} \sum_ {l = 0} ^ {n - 1} y _ {l} * \log p _ {i, l} \tag {7}
+$$
+
+in which the loss is calculated when the ground-truth class is labeled $l$ , where $y_{l} \in \{0,1\}$ . The gradient with regard to the output score $s_{il}^{b}$ of the classifier layer can be derived as follows:
+
+$$
+\frac {\partial L _ {b i n}}{\partial s _ {i}} = \left\{ \begin{array}{l l} - \sum_ {i \in \{x, y, w, h \}} \left(p _ {i, l} - 1\right), & y _ {l} = 1 \\ - \sum_ {i \in \{x, y, w, h \}} \left(p _ {i, l}\right), & y _ {l} = 0 \end{array} \right. \tag {8}
+$$
+
+Based on the above formula, the gradient is bounded and its norm is limited to $[0,1]$ , which is more stable for all samples compared with $L_{2}$ loss function. Meanwhile, it effectively takes into account the samples using different gradient contributions based on the predicted probabilities $p_{i,l}$ compared to Smooth L1 loss.
+
+To end up, we use the loss function $L$ to end-to-end train our network for accurate object detection:
+
+$$
+L = L _ {c l s} + \lambda_ {b i n} L _ {b i n} \tag {9}
+$$
+
+where $L_{cls}$ denotes the loss for classification of objects, The offset bin classification loss $L_{bin}$ is used for localization of objects. $\lambda_{bin}$ is the weight that control the balance among these losses. In this paper, we set $\lambda_{bin}$ to 1.
+
+| Method | Expectation | Hierarchical | AP | AP50 | AP60 | AP70 | AP80 | AP90 |
| Bounding Box Regression [20] | | | 45.0 | 74.5 | 69.5 | 57.6 | 36.0 | 6.6 |
| Bin Classification | | | 45.8 | 73.3 | 67.9 | 57.2 | 39.6 | 9.8 |
| Bin Classification | ✓ | | 47.5 | 74.0 | 69.0 | 58.8 | 41.5 | 13.6 |
| Bin Classification | | ✓ | 47.5 | 72.8 | 67.9 | 58.1 | 42.0 | 16.0 |
| Bin Classification | ✓ | ✓ | 49.0 | 73.2 | 68.4 | 59.0 | 44.3 | 19.6 |
+
+Table 1. The effects of each component in the proposed method. Results are reported on the VOC2007 test set [4]. The baseline method with ResNet-50-FPN [20] locates object by bounding box regression method. Expectation and Hierarchical represent the expectation-based offset prediction and hierarchical focusing offset prediction.
+
+# 3.2.3 Expectation-based Offset Prediction
+
+Since offsets are continuous values with high precision, the classification network only predicts discrete offset values. Thus, we propose two different methods to improve the precision of detection results: the expectation-based offset prediction and the hierarchical focusing offset prediction.
+
+For the expectation-based offset prediction method in Figure 2, we utilize the probability distribution over different offset bins to estimate the predicted offset $t_i$ , which is calculated by a softmax expected value instead of a max value, as follows:
+
+$$
+\begin{array}{l} t _ {i} = \mathbb {E} (T _ {i} ^ {r}) \\ = \sum_ {l = 0} ^ {n - 1} \left(p _ {i, l} * t _ {i, l} ^ {r}\right) \tag {10} \\ \end{array}
+$$
+
+where $T_{i}^{r} = \{t_{i,0}^{r}, t_{i,1}^{r}, \dots, t_{i,n-1}^{r}\}$ denotes the set of representative discrete offsets for $n$ bins. The symbol $\mathbb{E}$ indicates the expectation of discrete offsets.
+
+# 3.2.4 Hierarchical Focusing Offset Prediction
+
+Furthermore, we propose a hierarchical focusing offset prediction with a coarse-to-fine strategy to gradually refine the bin interval as shown in Figure 3. The discretized value will be closer to the target value when the bin interval is very small. Assume that there are $K$ stages and $n_k$ bins in the $k$ -th stage. In each stage, the offset range $(-a_k, a_k)$ is defined within the offset bins of previous stage. So, the width $w_k$ of bins can be denoted as $\frac{w_{k-1}}{n_k}$ . Then, we predict the offset $t_i^k$ of each stage similar to Section 3.2.3. The final predicted offset can be calculated as:
+
+$$
+t _ {i} = \sum_ {k = 1} ^ {K} t _ {i} ^ {k} \tag {11}
+$$
+
+As shown in Figure 3, in the first stage, we predict offsets between candidate boxes generated by RPN and objects within the offset range $(-a_{1}, a_{1})$ . Subsequently, at each stage, we predict finer offsets within the previous offset bin. By progressively classifying offsets, we can obtain more precise bounding boxes.
+
+# 4. Experiments
+
+To evaluate the effectiveness of the proposed offset bin classification network, we conduct extensive experiments on two standard object detection datasets, including the PASCAL VOC dataset [4] and the MS-COCO dataset [22]. Datasets. The PASCAL VOC dataset [4] contains 20 object categories, which consists of the PASCAL VOC2007 dataset and the PASCAL VOC2012 dataset. Following [35], we train our network on the union of VOC 2007 trainval and VOC2012 trainval sets, including 5011 and 11540 images, respectively, and evaluate on the VOC2007 test set containing 4952 images. The MS-COCO dataset [22] involves 80 object categories, which has larger scale than the PASCAL VOC dataset. Following the common practice [20, 28], we use the train-2017 set with 115K images for training and report the final results on the test-dev set with 20k images.
+
+Evaluation Metrics. We adopt the standard COCO-style Average Precision (AP) to measure the detection performance of various qualities, which averages mAP across different IoU thresholds from 0.5 to 0.95 with an interval of 0.05. It also includes AP across small scale $AP_{S}$ , medium scale $AP_{M}$ and large scale $AP_{L}$ .
+
+Implementation Details. For fair comparison, we implement all experiments based on PyTorch [29] and MMDetection [2]. We employ FPN [20] based on ResNet-50 and ResNet-101 [13] as the baseline networks. Following the typical convention, we adopt the input image scale of $1000 \times 600$ on the PASCAL VOC dataset [4] and a scale of $1333 \times 800$ on the MS-COCO dataset [22]. We train detectors end-to-end with 2 GPUs (2 images per GPU) for 12 epochs. The initial learning rate is set to 0.005 and decreased by a factor 0.1 after 8 epochs and 11 epochs. Unless otherwise specified, all other hyper-parameters follow the default settings in MMDetection [2]. The loss weights $\lambda_{bin}$ are set to 1. The offset range $a$ and the number of bins $n$ are set to 3 and 20, respectively. In the hierarchical focusing offset prediction, the number of stages $K$ is set to 2.
+
+# 4.1. Ablation Study
+
+In this section, we validate the effectiveness on the baseline ResNet-50-FPN [20]. Without loss generality, we per
+
+| Method | AP | AP50 | AP60 | AP70 | AP80 | AP90 |
| L2 Loss [10] | 44.7 | 72.6 | 67.6 | 56.8 | 37.4 | 7.8 |
| Smooth L1 Loss [20] | | | | | | |
| β = 1.0 | 45.0 | 74.5 | 69.5 | 57.6 | 36.0 | 6.6 |
| β = 1.5 | 44.3 | 73.9 | 68.6 | 56.5 | 34.9 | 6.4 |
| β = 2.0 | 44.2 | 74.3 | 68.9 | 56.1 | 33.9 | 6.2 |
| Bin Classification | 47.5 | 74.0 | 69.0 | 58.8 | 41.5 | 13.6 |
+
+Table 2. The effectiveness of different loss functions. $\beta$ denotes the division point in the Smooth ${L}_{1}$ loss function. Results are reported on the VOC2007 test set [4].
+
+| Stage | AP | AP50 | AP60 | AP70 | AP80 | AP90 |
| K=1 | 47.5 | 74.0 | 69.0 | 58.8 | 41.5 | 13.6 |
| K=2 | 49.0 | 73.2 | 68.4 | 59.0 | 44.3 | 19.6 |
| K=3 | 48.8 | 73.3 | 68.3 | 58.5 | 43.6 | 19.1 |
+
+Table 3. The effectiveness of number of stages in the proposed hierarchical focusing offset prediction method. Results are reported on the VOC2007 test set [4].
+
+form ablation studies to reveal the effect of each component in our proposed method on the PASCAL VOC dataset [4]. Main Component Analysis. We analyze the effect of each proposed component in Table 1. Simply estimating object localization by the proposed offset bin classification method improves the $AP$ by $0.8\%$ compared with the baseline bounding box regression method [20]. Introducing expectation-based offset prediction and hierarchical focusing offset prediction both achieve gain of $2.5\%$ compared with the baseline, which further boost the prediction precise. The expectation-based offset prediction takes into account the probability of samples in other offset bins to estimate offsets, and consistently improves $AP$ with different IoU metrics. The hierarchical focusing offset prediction performs better in the high IoU metrics. The reason is that it predicts more precise offsets within finer offset bin. Ultimately, our full method outperforms the baseline bounding box regression method by $4.0\%$ . The result demonstrates that the effectiveness of the proposed method in terms of more accurate object detection, especially performing better in the high IoU metrics.
+
+Effectiveness of Different Loss Function for Predicting Offsets. The effectiveness of different loss function for predicting offsets is shown in Table 2. Based on the same backbone network ResNet-50-FPN [20], we adjust the division point $\beta$ of regression loss Smooth $L1$ to make more samples be treated based on enough gradient contributions. However, the detection performance $AP$ is decreased when we set $\beta$ to a larger value. One possible reason is that the network learning is dominated by some samples with large distance error. Compared with the Smooth $L_{1}$ loss and the $L_{2}$ loss, our method performs better performance as shown
+
+
+Figure 5. The effectiveness of bin classification for offset bin labels with different hyper-parameters. The horizontal axis represents the number of bins $n$ , the vertical axis stands for detection performance $AP$ . The blue line, the red line and the green line indicate the offset range $a = 1, 3, 5$ , respectively.
+
+in Table 2, which alleviates the problem by the offset bin classification.
+
+Setting of Offset Bin Labels. Figure 5 shows the effectiveness of bin classification for offset bin labels with different hyper-parameters. $a$ and $n$ respectively denote the endpoint of the divided offset range and the number of bins. When the number of bins $n$ is fixed, it can be seen that the detection performance is decreased for $a = 1$ , while the performance is similar for $a = 3$ and $a = 5$ . This is because many samples with offset greater than 1 are ignored during training if $a = 1$ . When the endpoint $a = 3$ or 5, it can be observed that the detection performance are very close to each other when the number of bins $n$ is set from 20 to 50, thereby is robust to a long range of offset bin numbers. In addition, the detection performance is relatively poor when $n$ is small (i.e. $n = 10$ ). To balance the performance with the bin numbers, we choose $a = 3$ and $n = 20$ in our experiments.
+
+Number of Stages in Hierarchical Focusing Offset Prediction. The effectiveness of number of stages in
+
+
+
+
+
+
+
+
+
+
+Figure 6. Visualization comparison between the baseline method and the proposed offset bin classification method on the VOC2007 test set [4]. The first and third columns show the detection results of the baseline method. The second and fourth columns show that the detection results of our method.
+
+
+
+
+
+
+
+| Method | Backbone | AP | AP50 | AP60 | AP70 | AP80 | AP90 |
| Faster R-CNN* [35] | ResNet-50-FPN | 45.0 | 74.5 | 69.5 | 57.6 | 36.0 | 6.6 |
| Our +Faster R-CNN [35] | ResNet-50-FPN | 49.0 | 73.2 | 68.4 | 59.0 | 44.3 | 19.6 |
| Faster R-CNN* [35] | ResNet-101-FPN | 47.8 | 75.5 | 70.6 | 60.3 | 41.3 | 10.5 |
| Our+Faster R-CNN [35] | ResNet-101-FPN | 50.8 | 74.0 | 69.5 | 60.8 | 47.2 | 22.5 |
| Cascade R-CNN* [1] | ResNet-50-FPN | 49.5 | 73.1 | 69.0 | 61.0 | 45.9 | 18.1 |
| Our+Cascade R-CNN [1] | ResNet-50-FPN | 50.4 | 73.3 | 68.9 | 60.4 | 46.5 | 22.2 |
| Cascade R-CNN* [1] | ResNet-101-FPN | 51.0 | 73.6 | 69.6 | 61.9 | 48.3 | 21.1 |
| Our+Cascade R-CNN [1] | ResNet-101-FPN | 51.9 | 73.9 | 69.8 | 62.1 | 48.7 | 25.0 |
+
+Table 4. Comparison with state-of-the-art methods on VOC2007 test set [4]. The symbol * represents our re-implement results based on MMDetection [2].
+
+The hierarchical focusing offset prediction is shown in Table 3. According to the analysis in Figure 5, we set the number of bins $n_k$ in each stage to be same ( $n_k = 20$ , $k = 1, 2, 3$ ) and the endpoint $a_1 = 3$ in the first stage. Thus, the end point of offset range $a_2$ in second stage and $a_3$ in third stage are set to 0.15 and 0.015, respectively. It can be seen that the detection results $AP$ is improved by $1.6\%$ compared with only one stage when the number of stages $K = 2$ . In the second stage, the width of bin is already within a very small range. Adding the third stage, the detection performance is close to the second stage. It can be seen that the bin classification with two stages can achieve the better detection performance.
+
+Visualization Comparison. Figure 6 shows the visualization comparison between the baseline method [20] and the proposed offset bin classification method. It can be observed that the baseline method [20] assigns some bounding boxes that do not tightly surround objects in the
+
+first row images of Figure 6, while our method can detect objects more accurately. The second row images of Figure 6 show that the car object and the person object are missed detection in the baseline method [20] due to the low quality bounding boxes.
+
+# 4.2. Comparison With State-of-the-art Methods
+
+Results on Pascal VOC Dataset. We compare our method with two baselines [1, 20] on VOC2007 test set [4] in Table 4. For fair comparison, we adopt the same parameter setting for our method and the corresponding baselines. We replace the bounding box regression network by the proposed method to validate their effectiveness. Because Cascade R-CNN [1] is a multi-stage object detector, we replace the regression branch of each stage in Cascade R-CNN with our offset bin class branch in Figure 2. To reduce the number of parameters, the offset bin classification branch here does not include the hierarchical focusing in Figure 3. We set the
+
+| Method | Backbone | AP | \(AP_{50}\) | \(AP_{75}\) | \(AP_S\) | \(AP_M\) | \(AP_L\) |
| YOLOv2 [33] | DarkNet-19 | 21.6 | 44.0 | 19.2 | 5.0 | 22.4 | 35.5 |
| SSD512 [23] | ResNet-101 | 31.2 | 50.4 | 33.3 | 10.2 | 34.5 | 49.8 |
| RetinaNet [21] | ResNet-101-FPN | 39.1 | 59.1 | 42.3 | 21.8 | 42.7 | 50.2 |
| Faster R-CNN [20] | ResNet-101-FPN | 36.2 | 59.1 | 39.0 | 18.2 | 39.0 | 48.2 |
| Deformable R-FCN [3] | Inception-ResNet-v2 | 37.5 | 58.0 | 40.8 | 19.4 | 40.1 | 52.5 |
| Mask R-CNN [12] | ResNet-101-FPN | 38.2 | 60.3 | 41.7 | 20.1 | 41.1 | 50.2 |
| Libra R-CNN [28] | ResNet-101-FPN | 40.3 | 61.3 | 43.9 | 22.9 | 43.1 | 51.0 |
| KL Loss [14] | ResNet-50-FPN | 39.2 | 57.6 | 42.5 | 21.2 | 41.8 | 52.5 |
| Grid R-CNN [25] | ResNet-101-FPN | 41.5 | 60.9 | 44.5 | 23.3 | 44.9 | 53.1 |
| IoU-Net [15] | ResNet-101-FPN | 40.6 | 59.0 | - | - | - | - |
| Cascade R-CNN [1] | ResNet-101-FPN | 42.8 | 62.1 | 46.3 | 23.7 | 45.5 | 55.2 |
| Faster R-CNN* [20] | ResNet-50-FPN | 36.6 | 58.8 | 39.6 | 21.6 | 39.8 | 45.0 |
| Our+Faster R-CNN | ResNet-50-FPN | 40.5 | 59.6 | 43.1 | 22.6 | 43.1 | 51.0 |
| Faster R-CNN* [20] | ResNet-101-FPN | 38.8 | 60.9 | 42.1 | 22.6 | 42.4 | 48.5 |
| Our+Faster R-CNN | ResNet-101-FPN | 42.5 | 61.7 | 45.4 | 23.9 | 45.6 | 53.8 |
| Faster R-CNN* [20] | ResNeXt-101-FPN | 41.9 | 63.9 | 45.9 | 25.0 | 45.3 | 52.3 |
| Our+Faster R-CNN | ResNeXt-101-FPN | 43.2 | 62.7 | 46.3 | 24.7 | 46.4 | 54.8 |
| Cascade R-CNN* [1] | ResNet-50-FPN | 40.7 | 59.3 | 44.1 | 23.1 | 43.6 | 51.4 |
| Our+Cascade R-CNN | ResNet-50-FPN | 42.3 | 60.4 | 45.8 | 23.9 | 44.8 | 53.6 |
| Cascade R-CNN* [1] | ResNet-101-FPN | 42.4 | 61.1 | 46.1 | 23.6 | 45.0 | 54.4 |
| Our+Cascade R-CNN | ResNet-101-FPN | 44.4 | 62.6 | 48.3 | 24.7 | 47.5 | 56.7 |
| Cascade R-CNN* [1] | ResNeXt-101-FPN | 43.7 | 62.6 | 47.5 | 25.3 | 46.7 | 55.5 |
| Our+Cascade R-CNN | ResNeXt-101-FPN | 44.7 | 63.1 | 48.5 | 25.3 | 47.8 | 57.1 |
+
+Table 5. Comparison with state-of-the-art methods on MS-COCO test-dev set [22]. The symbol * represents our re-implement results based on MMDetection [2].
+
+number of stages of Cascade R-CNN to 2. The IoU thresholds are set to 0.5 and 0.7 in the first and second stages, respectively. These baselines are consistently improved by our methods, which demonstrates the advantage and generality of the proposed methods.
+
+Results on MS-COCO Dataset. Furthermore, we also compare the proposed method with some state-of-the-art object detection methods on the large-scale MS-COCO test-dev set [22] in Table 5. It can be observed that the proposed method significantly outperforms these state-of-the-art methods. The proposed offset bin classification method can improve the $AP$ of Faster R-CNN [20,35] with ResNet-50-FPN, ResNet-101-FPN and ResNeXt-101-FPN by $3.9\%$ , $3.7\%$ and $1.3\%$ , respectively. The results $AP$ can achieve a considerable accuracy $42.3\%$ , $44.4\%$ and $44.7\%$ when we introduce Cascade R-CNN [1] to our method. The superior performance demonstrates the effectiveness of the proposed offset bin classification method.
+
+# 5. Conclusion
+
+In this paper, we have proposed an offset bin classification network to achieve more accurate object detection.
+
+The offset bin labels construction is first used to discretize the continuous offset into several bins. Then the offset bin classification network predicts the probability distribution of offset bins. Furthermore, the expectation-based offset prediction and the hierarchical focusing offset prediction methods are introduced to turn the discretized classification results into more precise offsets. Our method both achieve superior performance on the PASCAL VOC and MS-COCO object detection datasets. The results demonstrate the effectiveness of our proposed method.
+
+Acknowledgement. This work was supported in part by National Natural Science Foundation of China (No. 61525102, 61831005, 61971095 and 61871078).
+
+# 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.
+[2] 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, Tian
+
+heng 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.
+[3] Jifeng Dai, Yi Li, Kaiming He, and Jian Sun. R-fcn: Object detection via region-based fully convolutional networks. In Advances in neural information processing systems, pages 379-387, 2016.
+[4] 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.
+[5] Huan Fu, Mingming Gong, Chaohui Wang, Kayhan Bat-manghelich, and Dacheng Tao. Deep ordinal regression network for monocular depth estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2002-2011, 2018.
+[6] Zhihang Fu, Yaowu Chen, Hongwei Yong, Rongxin Jiang, Lei Zhang, and Xian-Sheng Hua. Foreground gating and background refining network for surveillance object detection. IEEE Transactions on Image Processing, 28(12):6077-6090, 2019.
+[7] 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.
+[8] Spyros Gidaris and Nikos Komodakis. Object detection via a multi-region and semantic segmentation-aware cnn model. In Proceedings of the IEEE international conference on computer vision, pages 1134-1142, 2015.
+[9] Ross Girshick. Fast r-cnn. In Proceedings of the IEEE international conference on computer vision, pages 1440-1448, 2015.
+[10] 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.
+[11] Jicheng Gong, Zhao Zhao, and Nic Li. Improving multi-stage object detection via iterative proposal refinement.
+[12] 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.
+[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.
+[14] Yihui He, Chenchen Zhu, Jianren Wang, Marios Savvides, and Xiangyu Zhang. Bounding box regression with uncertainty for accurate object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2888-2897, 2019.
+[15] 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.
+
+[16] 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.
+[17] 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.
+[18] Wei Li, Hongliang Li, Qingbo Wu, Xiaoyu Chen, and King Ngi Ngan. Simultaneously detecting and counting dense vehicles from drone images. IEEE Transactions on Industrial Electronics, 66(12):9651-9662, 2019.
+[19] Wei Li, Hongliang Li, Qingbo Wu, Fanman Meng, Linfeng Xu, and King Ngi Ngan. Headnet: An end-to-end adaptive relational network for head detection. IEEE Transactions on Circuits and Systems for Video Technology, 2019.
+[20] 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.
+[21] Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dollar. Focal loss for dense object detection. In Proceedings of the IEEE international conference on computer vision, pages 2980-2988, 2017.
+[22] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dólár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pages 740-755. Springer, 2014.
+[23] 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.
+[24] Wei Liu, Shengcai Liao, and Weidong Hu. Perceiving motion from dynamic memory for vehicle detection in surveillance videos. IEEE Transactions on Circuits and Systems for Video Technology, 2019.
+[25] Xin Lu, Buyu Li, Yuxin Yue, Quanquan Li, and Junjie Yan. Grid r-cnn. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7363-7372, 2019.
+[26] Mahyar Najibi, Mohammad Rastegari, and Larry S Davis. G-cnn: an iterative grid based object detector. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2369-2377, 2016.
+[27] Alejandro Newell and Jia Deng. Pixels to graphs by associative embedding. In Advances in neural information processing systems, pages 2171-2180, 2017.
+[28] Jiangmiao Pang, Kai Chen, Jianping Shi, Huajun Feng, Wanli Ouyang, and Dahua Lin. Libra r-cnn: Towards balanced learning for object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 821-830, 2019.
+[29] Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. 2017.
+
+[30] Heqian Qiu, Hongliang Li, Qingbo Wu, Fanman Meng, King Ngi Ngan, and Hengcan Shi. A2rmnet: Adaptively aspect ratio multi-scale network for object detection in remote sensing images. Remote Sensing, 11(13):1594, 2019.
+[31] Heqian Qiu, Hongliang Li, Qingbo Wu, Fanman Meng, Linfeng Xu, King N Ngan, and Hengcan Shi. Hierarchical context features embedding for object detection. IEEE Transactions on Multimedia, 2020.
+[32] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 779-788, 2016.
+[33] 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.
+[34] Joseph Redmon and Ali Farhadi. Yolov3: An incremental improvement. arXiv preprint arXiv:1804.02767, 2018.
+[35] 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.
+[36] 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 Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 658-666, 2019.
+[37] Rasmus Rothe, Radu Timofte, and Luc Van Gool. Dex: Deep expectation of apparent age from a single image. In Proceedings of the IEEE International Conference on Computer Vision Workshops, pages 10-15, 2015.
+[38] Hengcan Shi, Hongliang Li, Fanman Meng, and Qingbo Wu. Key-word-aware network for referring expression image segmentation. In Proceedings of the European Conference on Computer Vision (ECCV), pages 38-54, 2018.
+[39] Hengcan Shi, Hongliang Li, Fanman Meng, Qingbo Wu, Linfeng Xu, and King Ngi Ngan. Hierarchical parsing net: Semantic scene parsing from global scene to objects. IEEE Transactions on Multimedia, 20(10):2670-2682, 2018.
+[40] Hengcan Shi, Hongliang Li, Qingbo Wu, Fanman Meng, and King N Ngan. Boosting scene parsing performance via reliable scale prediction. In Proceedings of the 26th ACM international conference on Multimedia, pages 492-500, 2018.
+[41] Hengcan Shi, Hongliang Li, Qingbo Wu, and Zichen Song. Scene parsing via integrated classification model and variance-based regularization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5307-5316, 2019.
+[42] 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.
+[43] Zhi Tian, Chunhua Shen, Hao Chen, and Tong He. Fcos: Fully convolutional one-stage object detection. In Proceedings of the IEEE International Conference on Computer Vision, pages 9627-9636, 2019.
+[44] Bin Yang, Junjie Yan, Zhen Lei, and Stan Z Li. Craft objects from images. In Proceedings of the IEEE Conference
+
+on Computer Vision and Pattern Recognition, pages 6043-6051, 2016.
+[45] Tsun-Yi Yang, Yi-Ting Chen, Yen-Yu Lin, and Yung-Yu Chuang. Fsa-net: Learning fine-grained structure aggregation for head pose estimation from a single image. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1087-1096, 2019.
+[46] Jiahui Yu, Yuning Jiang, Zhangyang Wang, Zhimin Cao, and Thomas Huang. Unitbox: An advanced object detection network. In Proceedings of the 24th ACM international conference on Multimedia, pages 516-520. ACM, 2016.
+[47] Xingyi Zhou, Dequan Wang, and Philipp Krahenbuhl. Objects as points. arXiv preprint arXiv:1904.07850, 2019.
\ No newline at end of file
diff --git a/offsetbinclassificationnetworkforaccurateobjectdetection/images.zip b/offsetbinclassificationnetworkforaccurateobjectdetection/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..e4526f5383decd5102213d5fd34ebba8c21574d4
--- /dev/null
+++ b/offsetbinclassificationnetworkforaccurateobjectdetection/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bc74e4a7a1490b05782d2f7a582e11dad5463f0f28c38123369fd98720dd02e4
+size 695606
diff --git a/offsetbinclassificationnetworkforaccurateobjectdetection/layout.json b/offsetbinclassificationnetworkforaccurateobjectdetection/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..592e4118097e494a3092d8724841927e3b91d68c
--- /dev/null
+++ b/offsetbinclassificationnetworkforaccurateobjectdetection/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f246f71d6c7c97d0b13d91c280e6261ff85796cb696752cc9d55823abaef88c3
+size 413432
diff --git a/oldisgoldredefiningtheadversariallylearnedoneclassclassifiertrainingparadigm/79608ee8-5208-4421-93ce-116b574e481c_content_list.json b/oldisgoldredefiningtheadversariallylearnedoneclassclassifiertrainingparadigm/79608ee8-5208-4421-93ce-116b574e481c_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..68e59fa250e9dc87b8ce4e30b9c33752478733b3
--- /dev/null
+++ b/oldisgoldredefiningtheadversariallylearnedoneclassclassifiertrainingparadigm/79608ee8-5208-4421-93ce-116b574e481c_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a885f898f7631603098e379a9af17bba13a9473e1414549a15e306d63a91b066
+size 77088
diff --git a/oldisgoldredefiningtheadversariallylearnedoneclassclassifiertrainingparadigm/79608ee8-5208-4421-93ce-116b574e481c_model.json b/oldisgoldredefiningtheadversariallylearnedoneclassclassifiertrainingparadigm/79608ee8-5208-4421-93ce-116b574e481c_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..10b3655c1fb7b25e73f7e9c2024ba334d78d2094
--- /dev/null
+++ b/oldisgoldredefiningtheadversariallylearnedoneclassclassifiertrainingparadigm/79608ee8-5208-4421-93ce-116b574e481c_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:eb2854a1c68ae2900f9876e7de816b52a57aa0bfcda6d683fe293765df92f337
+size 96273
diff --git a/oldisgoldredefiningtheadversariallylearnedoneclassclassifiertrainingparadigm/79608ee8-5208-4421-93ce-116b574e481c_origin.pdf b/oldisgoldredefiningtheadversariallylearnedoneclassclassifiertrainingparadigm/79608ee8-5208-4421-93ce-116b574e481c_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..f171b36218cc0b7ef767f12ed0c45cdc1b2b2db7
--- /dev/null
+++ b/oldisgoldredefiningtheadversariallylearnedoneclassclassifiertrainingparadigm/79608ee8-5208-4421-93ce-116b574e481c_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e143a3c55f349eaabf5944becc5514cdb84575ce99097e538029c446e93db5ac
+size 685551
diff --git a/oldisgoldredefiningtheadversariallylearnedoneclassclassifiertrainingparadigm/full.md b/oldisgoldredefiningtheadversariallylearnedoneclassclassifiertrainingparadigm/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..f81578da516ee49b845c19f6db709c8cad8b44ec
--- /dev/null
+++ b/oldisgoldredefiningtheadversariallylearnedoneclassclassifiertrainingparadigm/full.md
@@ -0,0 +1,300 @@
+# Old is $\mathcal{G}^{\mathrm{old}}$ : Redefining the Adversarily Learned One-Class Classifier Training Paradigm
+
+Muhammad Zaigham Zaheer $^{1,2}$ , Jin-ha Lee $^{1,2}$ , Marcella Astrid $^{1,2}$ , Seung-Ik Lee $^{1,2}$ $^{1}$ University of Science and Technology, $^{2}$ Electronics and Telecommunications Research Institute, Daejeon, South Korea
+
+{mzz, jhlee, marcella.astrid}@ust.ac.kr, the_silee@etri.re.kr
+
+# Abstract
+
+A popular method for anomaly detection is to use the generator of an adversarial network to formulate anomaly score over reconstruction loss of input. Due to the rare occurrence of anomalies, optimizing such networks can be a cumbersome task. Another possible approach is to use both generator and discriminator for anomaly detection. However, attributed to the involvement of adversarial training, this model is often unstable in a way that the performance fluctuates drastically with each training step. In this study, we propose a framework that effectively generates stable results across a wide range of training steps and allows us to use both the generator and the discriminator of an adversarial model for efficient and robust anomaly detection. Our approach transforms the fundamental role of a discriminator from identifying real and fake data to distinguishing between good and bad quality reconstructions. To this end, we prepare training examples for the good quality reconstruction by employing the current generator, whereas poor quality examples are obtained by utilizing an old state of the same generator. This way, the discriminator learns to detect subtle distortions that often appear in reconstructions of the anomaly inputs. Extensive experiments performed on Caltech-256 and MNIST image datasets for novelty detection show superior results. Furthermore, on UCSD Ped2 video dataset for anomaly detection, our model achieves a frame-level AUC of $98.1\%$ , surpassing recent state-of-the-art methods.
+
+# 1. Introduction
+
+Due to rare occurrence of anomalous scenes, the anomaly detection problem is usually seen as one-class classification (OCC) in which only normal data is used to learn a novelty detection model [22, 57, 25, 51, 11, 45, 40, 10, 44, 34, 35]. One of the recent trends to learn one-class data is by using an encoder-decoder architecture such as de
+
+noising auto-encoder [41, 52, 53, 49]. Generally, in this scheme, training is carried out until the model starts to produce good quality reconstructions [41, 43]. During the test time, it is expected to show high reconstruction loss for abnormal data which corresponds to a high anomaly score. With the recent developments in Generative Adversarial Networks (GANs) [8], some researchers also explored the possibility of improving the generative results using adversarial training [43, 32]. Such training fashion substantially enhances the data regeneration quality [30, 8, 43]. At the test time, the trained generator $\mathcal{G}$ is then decoupled from the discriminator $\mathcal{D}$ to be used as a reconstruction model. As reported in [41, 35, 36], a wide difference in reconstruction loss between the normal and abnormal data can be achieved due to adversarial training, which results in a better anomaly detection system. However, relying only on the reconstruction capability of a generator does not oftentimes work well because the usual encoder-decoder style generators may unexpectedly well-reconstruct the unseen data which drastically degrades the anomaly detection performance.
+
+A natural drift in this domain is towards the idea of using $\mathcal{D}$ along with the conventional utilization of $\mathcal{G}$ for anomaly detection. The intuition is to gain maximum benefits of the one-class adversarial training by utilizing both $\mathcal{G}$ and $\mathcal{D}$ instead of only $\mathcal{G}$ . However, this also brings along the problems commonly associated with such architectures. For example, defining a criteria to stop the training is still a challenging problem [8, 30]. As discussed in Sabokrou et al. [41], the performance of such adversarially learnt one-class classification architecture is highly dependent on the criteria of when to halt the training. In the case of stopping prematurely, $\mathcal{G}$ will be undertrained and in the case of overtraining, $\mathcal{D}$ may get confused because of the real-looking fake data. Our experiments show that a $\mathcal{G} + \mathcal{D}$ trained as a collective model for anomaly detection (referred to as a baseline) will not ensure higher convergence at any arbitrary training step over its predecessor. Figure 1 shows frame-level area under the curve (AUC) performance of the baseline over several epochs of training on UCSD Ped2 dataset [4].
+
+
+Figure 1: Dynamics of AUC performance over training epochs: The baseline shows high fluctuations while our approach not only shows stability across various epochs but also yields higher AUC.
+
+Although we get high performance peaks at times, it can be seen that the performance fluctuates substantially even between two arbitrary consecutive epochs. Based on these findings, it can be argued that a $\mathcal{D}$ as we know it, may not be a suitable choice in a one-class classification problem, such as anomaly detection.
+
+Following this intuition, we devise an approach for training of an adversarial network towards anomaly detection by transforming the basic role of $\mathcal{D}$ from distinguishing between real and fake to identifying good and bad quality reconstructions. This property of $\mathcal{D}$ is highly desirable in anomaly detection because a trained $\mathcal{G}$ would not produce as good reconstruction for abnormal data as it would for the normal data conforming to the learned representations. To this end we propose a two-stage training process. Phase one is identical to the common practice of training an adversarial denoising auto-encoder [30, 53, 49]. Once $\mathcal{G}$ achieves a reasonably trained state (i.e. showing low reconstruction losses), we begin phase two in which $\mathcal{D}$ is optimized by training on various good quality and bad quality reconstruction examples. Good quality reconstruction examples come from real data as well as the data regenerated by $\mathcal{G}$ , whereas bad reconstruction examples are obtained by utilizing an old state of the generator ( $\mathcal{G}^{old}$ ) as well as by using our proposed pseudo-anomaly module. Shown in Figure 3, this pseudo-anomaly module makes use of the training data to create anomaly-like examples. With this two-phase training process, we expect $\mathcal{D}$ to be trained in such a way that it can robustly discriminate reconstructions coming from normal and abnormal data. As shown in Figure 1, our model not only provides superior performance but also shows stability across several training epochs.
+
+In summary, the contributions of our paper are as follows: 1) this work is among the first few to employ $\mathcal{D}$ along with $\mathcal{G}$ at test time for anomaly detection. Moreover, to the best of our knowledge, it is the first one to extensively report
+
+the impacts of using the conventional $\mathcal{G} + \mathcal{D}$ formulation and the consequent instability. 2) Our approach of transforming the role of a discriminator towards anomaly detection problem by utilizing an old state $\mathcal{G}^{old}$ of the generator along with the proposed pseudo-anomaly module, substantially improves stability of the system. Detailed analysis provided in this paper shows that our model is independent of a hard stopping criteria and achieves consistent results over a wide range of training epochs. 3) Our method outperforms state-of-the-art [41, 13, 37, 27, 7, 48, 25, 28, 11, 23, 35, 24, 34, 46, 10, 22, 52, 57, 58] in the experiments conducted on MNIST [18] and Caltech-256 [9] datasets for novelty detection as well as on UCSD Ped2 [4] video dataset for anomaly detection. Moreover, on the latter dataset, our approach provides a substantial absolute gain of $5.2\%$ over the baseline method achieving frame level AUC of $98.1\%$ .
+
+# 2. Related Work
+
+Anomaly detection is often seen as a novelty detection problem [22, 57, 25, 11, 51, 45, 40, 2, 10, 44, 34, 34, 35] in which a model is trained based on the known normal class to ultimately detect unknown outliers as abnormal. To simplify the task, some works proposed to use object tracking [50, 1, 26, 31, 56] or motion [16, 12, 5]. Handpicking features in such a way can often deteriorate the performance significantly. With the increased popularity of deep learning, some researchers [44, 35] also proposed to use pre-trained convolution network based features to train one-class classifiers. Success of such methods is highly dependent on the base model which is often trained on some unrelated datasets.
+
+A relatively new addition to the field, image regeneration based works [7, 37, 52, 13, 27, 28, 53, 40] are the ones that make use of a generative network to learn features in an unsupervised way. Ionescu et al. in [13] proposed to use convolutional auto-encoders on top of object detection to learn motion and appearance representations. Xu et al. [52, 53] used a one-class SVM learned using features from stacked auto-encoders. Ravanbakhsh et al. [35] used generator as a reconstructor to detect abnormal events assuming that a generator is unable to reconstruct the inputs that do not conform the normal training data. In [27, 28], the authors suggested to use a cascaded decoder to learn motion as well as appearance from normal videos. However, in all these schemes, only a generator is employed to perform detection. Pathak et al. [30] proposed adversarial training to enhance the quality of regeneration. However, they also discard the discriminator once the training is finished. A unified generator and discriminator model for anomaly detection is proposed in Sabokrou et al. [41]. The model shows promising results, however it is often not stable and the performance relies heavily on the criteria to stop training. Recently, Shama et al. [43] proposed an idea of utilizing output
+
+
+Figure 2: Our proposed OGNet framework. Phase one is the baseline training, carried out to obtain a reasonably trained state of $\mathcal{G}$ and $\mathcal{D}$ . A frozen low epoch state $(\mathcal{G}^{old})$ of the generator is stored during this training. In phase two, only $\mathcal{D}$ is updated to distinguish between good and bad quality reconstructions. Good quality examples correspond to real training images as well as the images reconstructed using $\mathcal{G}$ while bad quality examples are obtained using $\mathcal{G}^{old}$ as well as the proposed pseudo-anomaly module. This module assists $\mathcal{D}$ to learn the underlying patterns of anomalous input reconstructions. During test, inferences are carried out through $\mathcal{G}$ and $\mathcal{D}$ only and the output of $\mathcal{D}$ is considered as anomaly score. Best viewed in color.
+
+of an adversarial discriminator to increase the image quality of generated images. Although not related to anomaly detection, it provides an interesting intuition to make use of both adversarial components for an enhanced performance.
+
+Our work, although built on top of an unsupervised generative network, is different from the approaches in [7, 13, 27, 28, 53, 40] as we explore to utilize the unified generator and discriminator model for anomaly detection. The most similar work to ours is by Sabokrou et al. [41] and Lee et al. [19] as they also explore the possibility of using discriminator, along with the conventional usage of generator, for anomaly detection. However, our approach is substantially different from these. In [41], a conventional adversarial network is trained based on a criteria to stop the training whereas, in [19], an LSTM based approach is utilized for training. In contrast, we utilize a pseudo-anomaly module along with an old state of the generator, to modify the ultimate role of a discriminator from distinguishing between real and fake to detecting between and bad quality reconstructions. This way, our overall framework, although trained adversarially in the beginning, finally aligns both the generator and the discriminator to complement each other towards anomaly detection.
+
+# 3. Method
+
+In this section, we present our OGNet framework. As described in Section 1, most of the existing GANs based
+
+anomaly detection approaches completely discard discriminator at test time and use generator only. Furthermore, even if both models are used, the unavailability of a criteria to stop the training coupled with the instability over training epochs caused by adversary makes the convergence uncertain. We aim to change that by redefining the role of a discriminator to make it more suitable for anomaly detection problems. Our solution is generic, hence it can be integrated with any existing one-class adversarial networks.
+
+# 3.1. Architecture Overview
+
+In order to maintain consistency and to have a fair comparison, we kept our baseline architecture similar to the one proposed by Sabokrou et al. [41]. The generator $\mathcal{G}$ , a typical denoising auto-encoder, is coupled with the discriminator $\mathcal{D}$ to learn one class data in an unsupervised adversarial fashion. The goal of this model is to play a min-max game to optimize the following objective function:
+
+$$
+\begin{array}{l} \min _ {\mathcal {G}} \max _ {\mathcal {D}} \left(\mathbb {E} _ {X \sim p _ {t}} [ \log (1 - \mathcal {D} (X)) ] \right. \tag {1} \\ \left. + \mathbb {E} _ {\tilde {X} \sim p _ {t} + \mathcal {N} _ {\sigma}} [ \log (\mathcal {D} (\mathcal {G} (\tilde {X}))) ]\right), \\ \end{array}
+$$
+
+where $\tilde{X}$ is the input image $X$ with added noise $\mathcal{N}_{\sigma}$ as in a typical denoising auto-encoder. Our model, built on top of the baseline, makes use of an old frozen generator $(\mathcal{G}^{old})$ to create low quality reconstruction examples. We also pro
+
+
+Figure 3: Our proposed pseudo-anomaly module. A pseudo-anomaly $\hat{\hat{X}}$ is created by regenerating two arbitrary training images through $\mathcal{G}^{old}$ followed by a pixel-level mean. Finally, $\hat{X}^{\text{pseudo}}$ is created as $\mathcal{G}(\hat{\hat{X}})$ to mimic the regeneration behavior of $\mathcal{G}$ for anomalous inputs.
+
+pose a pseudo-anomaly module to assist $\mathcal{D}$ in learning the behavior of $\mathcal{G}$ in the case of unusual or anomalous input, which we found out to be very useful towards the robustness of our approach (Table 4). The overall purpose of our proposed framework is to alter the learning paradigm of $\mathcal{D}$ from distinguishing between real and fake to differentiating between good and bad reconstructions. This way, the discriminator gets aligned with the conventional philosophy of generative one-class learning models in which the reconstruction quality of the data from a known class is better than the data from unknown or anomaly classes.
+
+# 3.2. Training
+
+The training of our model is carried out in two phases (see Figure 2). Phase one is similar to the common practices in training an adversarial one-class classifier [41, 17, 42, 36]. $\mathcal{G}$ tries to regenerate real-looking fake data which is then fed into $\mathcal{D}$ along with real data. The $\mathcal{D}$ learns to discriminate between real and fake data, success or failure of which then becomes a supervision signal for $\mathcal{G}$ . This training is carried out until $\mathcal{G}$ starts to create real looking images with a reasonably low reconstruction loss. Overall, phase one minimizes the following loss function:
+
+$$
+\mathcal {L} = \mathcal {L} _ {\mathcal {G} + \mathcal {D}} + \lambda \mathcal {L} _ {R}, \tag {2}
+$$
+
+where $\mathcal{L}_{\mathcal{G} + \mathcal{D}}$ is the loss function of our joint training objective defined in Equation 1, $\mathcal{L}_R = ||X - \mathcal{G}(\tilde{X})||^2$ is the reconstruction loss, and $\lambda$ is a weighing hyperparameter. Additionally, as phase one progresses, we save a low-epoch generator model $(\mathcal{G}^{old})$ for later use in phase two of the training. Deciding which low epoch to be used can be an intuitive selection based on the quality of regeneration. Obviously, we want $\mathcal{G}^{old}$ to generate low quality images compared to a trained $\mathcal{G}$ . However, it is not necessary to select any specific epoch number for this generator. We will prove this empirically in Section 4 by showing that the final convergence of our model is not dependent on a strict selection
+
+of the epoch numbers and that various generic settings are possible to obtain a $\mathcal{G}^{old}$ .
+
+Phase two of the training is where we make use of the frozen models $\mathcal{G}^{old}$ and $\mathcal{G}$ to update $\mathcal{D}$ . This way $\mathcal{D}$ starts learning to discriminate between good and bad quality reconstructions, hence becoming suitable for one-class classification problems such as anomaly detection.
+
+Details of the phase two training are discussed next:
+
+Goal. The essence of phase two training is to provide examples of good quality and bad quality reconstructions to $\mathcal{D}$ , with a purpose of making it learn about the kind of output that $\mathcal{G}$ would produce in the case of an unusual input. The training is performed for just a few iterations since the already trained $\mathcal{D}$ converges quickly. A detailed study on this is added in Section 4.
+
+Good quality examples. $\mathcal{D}$ is provided with real data $(X)$ , which is the best possible case of reconstruction, and the actual high quality reconstructed data $(\hat{X} = \mathcal{G}(X))$ produced by the trained $\mathcal{G}$ as an example of good quality examples.
+
+Bad quality examples. Examples of low quality reconstruction $(\hat{X}^{low})$ are generated using $\mathcal{G}^{old}$ . In addition, a pseudo-anomaly module, shown in Figure 3, is formulated with a combination of $\mathcal{G}^{old}$ and the trained $\mathcal{G}$ , which simulates examples of reconstructed pseudoanomalies $(\hat{X}^{pseudo})$ .
+
+Pseudo anomaly creation. Given two arbitrary images $X_{i}$ and $X_{j}$ from the training dataset, a pseudo anomaly image $\hat{\bar{X}}$ is generated as:
+
+$$
+\hat {\bar {X}} = \frac {\mathcal {G} ^ {\text {o l d}} \left(X _ {i}\right) + \mathcal {G} ^ {\text {o l d}} \left(X _ {j}\right)}{2} = \frac {\hat {X} _ {i} ^ {\text {l o w}} + \hat {X} _ {j} ^ {\text {l o w}}}{2}, \text {w h e r e} i \neq j. \tag {3}
+$$
+
+This way, the resultant image can contain diverse variations such as shadows and unusual shapes, which are completely unknown to both $\mathcal{G}$ and $\mathcal{D}$ models. Finally, as the last step in our pseudo-anomaly module, in order to mimic the behavior of $\mathcal{G}$ when it gets unusual data as input, $\hat{\hat{X}}$ is then reconstructed using $\mathcal{G}$ to obtain $\hat{X}^{\text{pseudo}}$ :
+
+$$
+\hat {X} ^ {\text {p s e u d o}} = \mathcal {G} (\hat {\bar {X}}). \tag {4}
+$$
+
+Example images at each intermediate step can be seen in Figures 3 and 4.
+
+Tweaking the objective function. The model in phase two of the training takes the form:
+
+$$
+\begin{array}{l} \max _ {\mathcal {D}} \left(\alpha \mathbb {E} _ {X} [ \log (1 - \mathcal {D} (X)) ] + \right. \\ (1 - \alpha) \mathbb {E} _ {\hat {X}} [ \log (1 - \mathcal {D} (\hat {X})) ] + \beta \mathbb {E} _ {\hat {X} ^ {l o w}} [ \log (\mathcal {D} (\hat {X} ^ {l o w})) ] + \\ \left. (1 - \beta) \mathbb {E} _ {\hat {X} ^ {p s e u d o}} [ \log (\mathcal {D} (\hat {X} ^ {p s e u d o})) ]\right), \tag {5} \\ \end{array}
+$$
+
+where $\alpha$ and $\beta$ are the trade-off hyperparameters.
+
+Quasi ground truth for the discriminator in phase one training is defined as:
+
+$$
+G T _ {\text {p h a s e - o n e}} = \left\{ \begin{array}{l l} 0 & \text {i f i n p u t i s X ,} \\ 1 & \text {i f i n p u t i s} \hat {X}. \end{array} \right. \tag {6}
+$$
+
+However, for phase two training, it takes the form:
+
+$$
+G T _ {\text {p h a s e - t w o}} = \left\{ \begin{array}{l l} 0 & \text {i f i n p u t i s X o r} \hat {X}, \\ 1 & \text {i f i n p u t i s} \hat {X} ^ {\text {l o w}} \text {o r} \hat {X} ^ {\text {p s e u d o}}. \end{array} \right. \tag {7}
+$$
+
+# 3.3. Testing
+
+At test time, as shown in Figure 2, only $\mathcal{G}$ and $\mathcal{D}$ are utilized for one-class classification (OCC). Final classification decision for an input image $X$ is given as:
+
+$$
+O C C = \left\{ \begin{array}{l l} \text {n o r m a l c l a s s} & \text {i f} \mathcal {D} (\mathcal {G} (X)) < \tau , \\ \text {a n o m a l y c l a s s} & \text {o t h e r w i s e .} \end{array} \right. \tag {8}
+$$
+
+where $\tau$ is a predefined threshold.
+
+# 4. Experiments
+
+The evaluation of our OGNet framework on three different datasets is reported in this section. Detailed analysis of the performance and its comparison with the state-of-the-art methodologies is also reported. In addition, we provide extensive discussion and ablation studies to show the stability as well as the significance of our proposed scheme. In order to keep the experimental setup consistent with the existing works [22, 57, 25, 51, 11, 45, 40, 10, 44, 34, 35, 41, 13, 7,
+
+
+(a) Training images
+Figure 4: Example images from different stages of our framework. (a) Left to right: Original image $(X)$ , high quality reconstructed $(\hat{X})$ , low quality reconstructed $(\hat{X}^{low})$ , pseudo anomaly $(\hat{\bar{X}})$ , pseudo anomaly reconstructed $(\hat{X}^{pseudo})$ . (b) Left column shows outlier / anomaly examples whereas right column shows respective regenerated outputs $\mathcal{G}(X)$ .
+
+28, 27], we tested our method for the detection of outlier images as well as video anomalies.
+
+Evaluation criteria. Most of our results are formulated based on area under the curve (AUC) computed at frame level due to its popularity in related works [48, 25, 28, 11, 23, 35, 24, 7, 34, 46, 10, 22, 52, 27, 57, 13, 58, 41]. Nevertheless, following the evaluation methods adopted in [47, 20, 54, 33, 21, 55, 41, 38, 35, 36, 52, 39, 40] we also report $F_{1}$ score and Equal Error Rate (EER) of our approach.
+
+Parameters and implementation details. Our implementation is done in PyTorch [29] and the source code is provided at https://github.com/xaggi/OGNet. Phase one of the training in our reports is performed from 20 to 30 epochs. These numbers are chosen because the baseline shows high performance peaks within this range (Figure 1). We train on Adam [15] with the learning rate of generator and discriminator in all these epochs set to $10^{-3}$ and $10^{-4}$ , respectively. Phase two of the training is done for 75 iterations with the learning rate of the discriminator reduced to half. $\lambda, \alpha$ , and $\beta$ are set to 0.2, 0.1, 0.001, respectively. Until stated otherwise, default settings of our experiments are set to the aforementioned values. However, for the detailed evaluation provided in a later part of this section, we also conducted experiments and reported results on a range of epochs and iterations for both phases of the training, respectively. Furthermore, until specified otherwise, we pick the generator after $1^{st}$ epoch and freeze it as $\mathcal{G}^{old}$ . This selection is arbitrary and solely based on the intuition explained in Section 3. Additionally, in a later part of this section, we also present a robust and generic method to formulate $\mathcal{G}^{old}$ without any need of handpicking an epoch.
+
+# 4.1. Datasets
+
+Caltech-256. This dataset [9] contains a total of 30,607 images belong to 256 object classes and one 'clutter' class. Each category has different number of images, as low as 80 and as high as 827. In order to perform our experiments, we used the same setup as described in previous works [47, 20, 54, 33, 21, 55, 41]. In a series of three experiments, at most 150 images belong to 1, 3, and 5 randomly chosen classes are defined as training (inlier) data. Outlier images for test are taken from the 'clutter' class in such a way that each experiment has exactly $50\%$ ratio of outliers and inliers.
+
+MNIST. This dataset [18] consists of 60,000 handwritten digits from 0 to 9. The setup to evaluate our method on this dataset is also kept consistent with the previous works [51, 3, 41]. In a series of experiments, each category of digits is individually taken as inliers. Whereas, randomly sampled images of the other categories with a proportion of $10\%$ to $50\%$ are taken as outliers.
+
+USCD Ped2. This dataset [4] comprises of 2,550 frames in 16 training and 2,010 frames in 12 test videos. Each frame is of $240 \times 360$ pixels resolution. Pedestrians dominate most
+
+ | DPCP[47] | REAPER[20] | OutlierPersuit[54] | CoP[33] | LRR[21] | R-graph[55] | ALOCC[41] | Ours |
| AUC | 78.3% | 81.6% | 83.7% | 90.5% | 90.7% | 94.8% | 94.2% | 98.2% |
| F1 | 78.5% | 80.8% | 82.3% | 88.0% | 89.3% | 91.4% | 92.8% | 95.1% |
| AUC | 79.8% | 79.6% | 78.8% | 67.6% | 47.9% | 92.9% | 93.8% | 97.7% |
| F1 | 77.7% | 78.4% | 77.9% | 71.8% | 67.1% | 88.0% | 91.3% | 91.5% |
| AUC | 67.6% | 65.7% | 62.9% | 48.7% | 33.7% | 91.3% | 92.3% | 98.1% |
| F1 | 71.5% | 71.6% | 71.1% | 67.2% | 66.7% | 85.8% | 90.5% | 92.8% |
+
+Table 1: AUC and $F_{1}$ score performance comparison of our framework on Caltech-256 [9] with the other state of the art methods. Following the existing work [55], each subgroup of rows from top to bottom shows evaluation scores on inliers coming from 1, 3, and 5 different random classes respectively (best performance as bold and second best as underlined).
+
+of the frames whereas anomalies include skateboards, vehicles, bicycles, etc. Similar to [48, 25, 28, 11, 23, 35, 24, 7, 34, 46, 10, 22, 52, 27, 57, 13, 58, 41], frame-level AUC and EER metrics are adopted to evaluate performance on this dataset.
+
+# 4.2. Outlier Detection in Images
+
+One of the significant applications of a one-class learning algorithm is outlier detection. In this problem, objects belonging to known classes are treated as inliers based on which the model is trained. Other objects that do not belong to these classes are treated as outliers, which the model is supposed to detect based on its training. Results of the experiments conducted using Caltech-256 [9] and MNIST [18] datasets are reported and comparisons with state-of-the-art outlier detection models [14, 55, 51, 41, 47, 20, 54, 33, 21] are provided.
+
+Results on Caltech-256. Figure 4b shows outlier examples reconstructed using $\mathcal{G}$ . It is interesting to observe that although the generated images are of reasonably good quality, our model still depicts superior results in terms of $F_{1}$ score and area under the curve (AUC), as listed in Table 1, which demonstrates that our model is robust to the over-training of $\mathcal{G}$ .
+
+Results on MNIST. As it is a well-studied dataset, various outlier detection related works use MNIST as a steppingstone to evaluate their approaches. Following [51, 3, 41], we also report $F_{1}$ score as an evaluation metric of our method on this dataset. A comparison provided in Figure 5 shows that our approach performs robustly to detect outliers even when the percentage of outliers is increased. An insight of the performance improvement by our approach is shown in Figure 6. It can be observed that as the phase two training continues, score distribution of inliers and outliers output by our network smoothly distributes to a wider range.
+
+# 4.3. Anomaly Detection in Videos
+
+One-class classifiers are finding their best applications in the domain of anomaly detection for surveillance purposes
+
+[45, 48, 6, 57, 36, 35]. However, this task is more complicated than the outlier detection because of the involvement of moving objects, which cause variations in appearance.
+
+Experimental setup. Each frame $I$ of the Ped2 dataset is divided into grayscale patches $X_{I} = \{X_{1},X_{2},\dots,X_{n}\}$ of size $45\times 45$ pixels. Normal videos, which only contain
+
+
+Figure 5: $F_{1}$ score results on MNIST dataset. Compared to state-of-the-art, our method retains superior performance even with an increased percentage of outliers at test time.
+
+
+Figure 6: Anomaly score distribution on MNIST dataset over various training iterations of our framework. Divisibility of inliers and outliers is improved significantly as phase two of the training proceeds.
+
+| RE[38] | AbnormalGAN[35] | Ravanbakhsh[36] | Dan Xu[52] |
| 15% | 13% | 14% | 17% |
| Sabokrou[39] | Deep-cascade[40] | ALOCC[41] | Ours |
| 19% | 9% | 13% | 7% |
+
+scenes of walking pedestrians, are used to extract training patches. Test patches are extracted from abnormal videos which contain abnormal as well as normal scenes. In order to remove unnecessary inference of the patches, a motion detection criteria based on frame difference is set to discard patches without motion. A maximum of all patch-level anomaly scores is declared as the frame-level anomaly score of that particular frame as:
+
+$$
+A _ {I} = \max _ {X} \mathcal {D} (\mathcal {G} (X)), \text {w h e r e} X \in X _ {I} \tag {9}
+$$
+
+Performance evaluation. Frame-level AUC and EER are the two evaluation metrics used to compare our approach with a series of existing works [48, 25, 28, 11, 23, 35, 24, 7, 34, 46, 10, 22, 52, 27, 57, 13, 58, 41] published within last 5 years. The corresponding results provided in Table 2 and Table 3 show that our method outperforms recent state-of-the-art methodologies in the task of anomaly detection. Comparing with the baseline, our approach achieves an absolute gain of $5.2\%$ in terms of AUC. Examples of the reconstructed patches are provided in Figure 4. As shown in Figure 4b, although $\mathcal{G}$ generates noticeably good reconstructions of anomalous inputs, due to the presence of our proposed pseudo-anomaly module, $\mathcal{D}$ gets to learn the underlying patterns of reconstructed anomalous images. This is why, in contrast to the baseline, our framework provides consistent performance across a wide range of training epochs (Figure 1).
+
+Table 2: EER results comparison with existing works on UCSD Ped2 dataset. Lower numbers mean better results.
+
+| Method | AUC | Method | AUC |
| Unmasking[48] | 82.2% | TSC[25] | 92.2% |
| HybridDN[28] | 84.3% | FRCN action[11] | 92.2% |
| Liu et al[23] | 87.5% | AbnormalGAN[35] | 93.5% |
| ConvLSTM-AE[24] | 88.1% | MemAE[7] | 94.1% |
| Ravanbakhsh et al[34] | 88.4% | GrowingGas[46] | 94.1% |
| ConvAE[10] | 90% | FFP[22] | 95.4% |
| AMDN[52] | 90.8% | ConvAE+UNet[27] | 96.2% |
| Hashing Filters[57] | 91% | STAN[19] | 96.5% |
| AE_Conv3D[58] | 91.2% | Object-centric[13] | 97.8% |
| Baseline | 92.9% | Ours | 98.1% |
+
+Table 3: Frame-level AUC comparison on UCSD Ped2 dataset with state-of-the-art works published in last 5 years. Best and second best performances are highlighted as bold and underlined, respectively.
+
+
+Figure 7: The plot shows frame level AUC performance of our phase two training, starting after different epochs of phase one (baseline) training. The model after phase two training shows significantly less variance than baseline/phase one.
+
+# 4.4. Discussion
+
+When to stop phase one training? The convergence of our framework is not strictly dependent on phase one training. Figure 7 shows the AUC performance of phase two training applied after various epochs of phase one on Ped2 dataset [4]. Values plotted at iterations $= 0$ , representing the performance of the baseline, show a high variance. Interestingly, it can be seen that after few iterations into phase two training of our proposed approach, the model starts to converge better. Irrespective of the initial epoch in phase one training, models converged successfully showing consistent AUC performances.
+
+When to stop phase two training? As seen in Figure 7 and Figure 8, it can be observed that once a specific model is converged, further iterations do not deteriorate its performance. Hence, a model can be trained for any number of iterations as deemed necessary.
+
+Which low epoch generator is better? For the selection of $\mathcal{G}^{old}$ , as mentioned earlier, the generator after the $1^{st}$ epoch of training was arbitrarily chosen in our experiments. This selection is intuitive and mostly based on the fact that the generator has seen all dataset once. In addition, we visually observed that after first epoch, although the generator was capable of reconstructing its input, the quality was not 'good enough', which is a suitable property for $\mathcal{G}^{old}$ in our model. However, this way of selection is not a generalized solution across various datasets. Hence, to investigate the matter further, we evaluate a range of low epoch numbers as candidates for $\mathcal{G}^{old}$ . The baseline epoch of $\mathcal{G}$ is kept fixed throughout this experiment. Results in Figure 8a show that irrespective of the low epoch number chosen as $\mathcal{G}^{old}$ , the model converges and achieves state-of-the-art or comparable AUC. In pursuit of another more systematic way to obtain $\mathcal{G}^{old}$ , we also explored the possibility of using average parameters of all previous $\mathcal{G}$ models. Hence, for each given epoch of the baseline that we pick as $\mathcal{G}$ , a $\mathcal{G}^{old}$ is formu
+
+
+(a) Experiments with the $\mathcal{G}^{old}$ taken across first 10 epochs, where $\mathcal{G}$ is kept fixed.
+
+
+(b) Experiments with the $\mathcal{G}^{old}$ obtained at various arbitrary epochs by averaging the parameters of generators from all previous epochs.
+Figure 8: Results from a series of experiments on UCSD Ped2 dataset show that our framework is not dependent on a strict choice of epoch number for $\mathcal{G}^{old}$ . In (a), various $\mathcal{G}^{old}$ selected at a varied range of epochs are experimented with a fixed $\mathcal{G}$ . In (b), an average of parameters from all past generators is taken as $\mathcal{G}^{old}$ .
+
+lated by taking an average of all previous $\mathcal{G}$ models until that point. The results plotted in Figure 8b show that such $\mathcal{G}^{old}$ also depicts comparable performances. Note that this formulation completely eradicates the need of handpicking a specific epoch number for $\mathcal{G}^{old}$ , thus making our formulation generic towards the size of a training dataset.
+
+# 4.5. Ablation
+
+Ablation results of our framework on UCSD Ped2 dataset [4] are summarized in Table 4. As shown, while each input component of our training model (i.e. real images $X$ , high quality reconstructions $\hat{X}$ , low quality reconstructions $\hat{X}^{low}$ , and pseudo anomaly reconstructions $\hat{X}^{pseudo}$ ) contributes towards a robust training, removing any of these at a time still shows better performance than the baseline. One interesting observation can be seen in the fourth column of the phase two training results. In this case, the performance is measured after we remove the last step of pseudo-anomaly module, which is responsible for providing regenerated pseudo-anomaly $(\hat{X}^{pseudo})$ through $\mathcal{G}$ , as in Equation 4. Hence, by removing this part, the
+
+ | Phase one | Phase two |
| X | ✓ | - | ✓ | ✓ | ✓ | ✓ |
| X̂ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Xlow | - | ✓ | ✓ | - | ✓ | ✓ |
| Xpseudo | - | - | - | ✓ | - | ✓ |
| X̂ as Xpseudo | - | - | - | - | ✓ | - |
| AUC | 92.9% | 94.4% | 95.1% | 95.9% | 88.5% | 98.1% |
+
+Table 4: Frame-level AUC performance ablation of our framework on UCSD Ped2 dataset.
+
+fake anomalies $(\hat{\bar{X}})$ obtained using Equation 3 are channeled directly to the discriminator as one of the two sets of bad reconstruction examples. With this configuration, the performance deteriorates significantly (i.e. $9.6\%$ drop in the AUC). The model shows even worse performance than the baseline after phase one training. This shows the significance of our proposed pseudo-anomaly module. Once pseudo-anomalies are created within the module, it is necessary to obtain a regeneration result of these by inferring $\mathcal{G}$ . This helps $\mathcal{D}$ to learn the underlying patterns of reconstructed anomalous images, which results in a more robust anomaly detection model.
+
+# 5. Conclusion
+
+This paper presents an adversarially learned approach in which both the generator $(\mathcal{G})$ and the discriminator $(\mathcal{D})$ are utilized to perform a stable and robust anomaly detection. A unified $\mathcal{G}$ and $\mathcal{D}$ model employed towards such problems often produces unstable results due to the adversary. However, we attempted to tweak the basic role of the discriminator from distinguishing between real and fake to discriminating between good and bad quality reconstructions, a formulation that aligns well with the philosophy of conventional anomaly detection using generative networks. We also propose a pseudo-anomaly module which is employed to create fake anomaly examples from normal training data. These fake anomaly examples help $\mathcal{D}$ to learn about the behavior of $\mathcal{G}$ in the case of unusual input data.
+
+Our extensive experimentation shows that the approach not only generates stable results across a wide range of training epochs but also outperforms a series of state-of-the-art methods [48, 25, 28, 11, 23, 35, 24, 7, 34, 46, 10, 22, 52, 27, 57, 13, 58, 41] for outliers and anomaly detection.
+
+# 6. Acknowledgment
+
+This work was supported by the ICT R&D program of MSIP/IITP. [2017-0-00306, Development of Multimodal Sensor-based Intelligent Systems for Outdoor Surveillance Robots]. Also, we thank HoChul Shin, Ki-In Na, Hamza Saleem, Ayesha Zaheer, Arif Mahmood, and Shah Nawaz for the discussions and support in improving our work.
+
+# References
+
+[1] Arslan Basharat, Alexei Gritai, and Mubarak Shah. Learning object motion patterns for anomaly detection and improved object detection. In 2008 IEEE Conference on Computer Vision and Pattern Recognition, pages 1-8. IEEE, 2008.
+[2] Francesco Bergadano. Keyed learning: An adversarial learning framework—formalization, challenges, and anomaly detection applications. ETRI Journal, 41(5):608-618, 2019.
+[3] Markus M Breunig, Hans-Peter Kriegel, Raymond T Ng, and Jorg Sander. Lof: identifying density-based local outliers. In ACM sigmoid record, volume 29, pages 93-104. ACM, 2000.
+[4] Antoni Chan and Nuno Vasconcelos. Ucsd pedestrian dataset. IEEE Trans. on Pattern Analysis and Machine Intelligence (TPAMI), 30(5):909-926, 2008.
+[5] Xinyi Cui, Qingshan Liu, Mingchen Gao, and Dimitris N Metaxas. Abnormal detection using interaction energy potentials. In CVPR 2011, pages 3161-3167. IEEE, 2011.
+[6] Jayanta Kumar Dutta and Bonny Banerjee. Online detection of abnormal events using incremental coding length. In Twenty-Ninth AAAI Conference on Artificial Intelligence, 2015.
+[7] Dong Gong, Lingqiao Liu, Vuong Le, Budhaditya Saha, Moussa Reda Mansour, Svetha Venkatesh, and Anton van den Hengel. Memorizing normality to detect anomaly: Memory-augmented deep autoencoder for unsupervised anomaly detection. In The IEEE International Conference on Computer Vision (ICCV), October 2019.
+[8] 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.
+[9] Gregory Griffin, Alex Holub, and Pietro Perona. Caltech-256 object category dataset. 2007.
+[10] Mahmudul Hasan, Jonghyun Choi, Jan Neumann, Amit K Roy-Chowdhury, and Larry S Davis. Learning temporal regularity in video sequences. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 733-742, 2016.
+[11] Ryota Hinami, Tao Mei, and Shin'ichi Satoh. Joint detection and recounting of abnormal events by learning deep generic knowledge. In Proceedings of the IEEE International Conference on Computer Vision, pages 3619-3627, 2017.
+[12] Rui Hou, Chen Chen, and Mubarak Shah. Tube convolutional neural network (t-cnn) for action detection in videos. In Proceedings of the IEEE International Conference on Computer Vision, pages 5822-5831, 2017.
+[13] Radu Tudor Ionescu, Fahad Shahbaz Khan, Mariana-Iuliana Georgescu, and Ling Shao. Object-centric auto-encoders and dummy anomalies for abnormal event detection in video. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7842–7851, 2019.
+[14] Jaechul Kim and Kristen Grauman. Observe locally, infer globally: a space-time mrf for detecting abnormal activities with incremental updates. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pages 2921-2928. IEEE, 2009.
+
+[15] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
+[16] Louis Kratz and Ko Nishino. Anomaly detection in extremely crowded scenes using spatio-temporal motion pattern models. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pages 1446-1453. IEEE, 2009.
+[17] Wallace Lawson, Esube Bekele, and Keith Sullivan. Finding anomalies with generative adversarial networks for a patrolbot. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 12-13, 2017.
+[18] Yann LeCun, Corinna Cortes, and Christopher J.C. Burges. Mnist handwritten digit database. ATT Labs [Online]. Available: http://yann.lecun.com/exdb/mnist, 2010.
+[19] Sangmin Lee, Hak Gu Kim, and Yong Man Ro. Stan: Spatiotemporal adversarial networks for abnormal event detection. In 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 1323-1327. IEEE, 2018.
+[20] Gilad Lerman, Michael B McCoy, Joel A Tropp, and Teng Zhang. Robust computation of linear models by convex relaxation. Foundations of Computational Mathematics, 15(2):363-410, 2015.
+[21] Guangcan Liu, Zhouchen Lin, and Yong Yu. Robust subspace segmentation by low-rank representation. In ICML, volume 1, page 8, 2010.
+[22] Wen Liu, Weixin Luo, Dongze Lian, and Shenghua Gao. Future frame prediction for anomaly detection-a new baseline. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6536-6545, 2018.
+[23] Yusha Liu, Chun-Liang Li, and Barnabás Póczos. Classifier two sample test for video anomaly detections. In BMVC, page 71, 2018.
+[24] Weixin Luo, Wen Liu, and Shenghua Gao. Remembering history with convolutional LSTM for anomaly detection. In 2017 IEEE International Conference on Multimedia and Expo (ICME), pages 439-444. IEEE, 2017.
+[25] Weixin Luo, Wen Liu, and Shenghua Gao. A revisit of sparse coding based anomaly detection in stacked rnn framework. In Proceedings of the IEEE International Conference on Computer Vision, pages 341-349, 2017.
+[26] Gérard Medioni, Isaac Cohen, François Brémond, Somboon Hongeng, and Ramakant Nevatia. Event detection and analysis from video streams. IEEE Transactions on pattern analysis and machine intelligence, 23(8):873-889, 2001.
+[27] Trong-Nguyen Nguyen and Jean Meunier. Anomaly detection in video sequence with appearance-motion correspondence. In The IEEE International Conference on Computer Vision (ICCV), October 2019.
+[28] Trong Nguyen Nguyen and Jean Meunier. Hybrid deep network for anomaly detection. arXiv preprint arXiv:1908.06347, 2019.
+[29] Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. 2017.
+
+[30] 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.
+[31] Claudio Piciarelli, Christian Micheloni, and Gian Luca Foresti. Trajectory-based anomalous event detection. IEEE Transactions on Circuits and Systems for video Technology, 18(11):1544-1554, 2008.
+[32] Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015.
+[33] Mostafa Rahmani and George K Atia. Coherence pursuit: Fast, simple, and robust principal component analysis. IEEE Transactions on Signal Processing, 65(23):6260-6275, 2017.
+[34] Mahdyar Ravanbakhsh, Moin Nabi, Hossein Mousavi, Enver Sangineto, and Nicu Sebe. Plug-and-play cnn for crowd motion analysis: An application in abnormal event detection. In 2018 IEEE Winter Conference on Applications of Computer Vision (WACV), pages 1689-1698. IEEE, 2018.
+[35] Mahdyar Ravanbakhsh, Moin Nabi, Enver Sangineto, Lucio Marcenaro, Carlo Regazzoni, and Nicu Sebe. Abnormal event detection in videos using generative adversarial nets. In 2017 IEEE International Conference on Image Processing (ICIP), pages 1577-1581. IEEE, 2017.
+[36] Mahdyar Ravanbakhsh, Enver Sangineto, Moin Nabi, and Nicu Sebe. Training adversarial discriminators for cross-channel abnormal event detection in crowds. In 2019 IEEE Winter Conference on Applications of Computer Vision (WACV), pages 1896-1904. IEEE, 2019.
+[37] Huamin Ren, Weifeng Liu, Søren Ingvor Olsen, Sergio Escalera, and Thomas B Moeslund. Unsupervised behavior-specific dictionary learning for abnormal event detection. In BMVC, pages 28-1, 2015.
+[38] Mohammad Sabokrou, Mahmood Fathy, and Mojtaba Hoseini. Video anomaly detection and localisation based on the sparsity and reconstruction error of auto-encoder. *Electronics Letters*, 52(13):1122–1124, 2016.
+[39] Mohammad Sabokrou, Mahmood Fathy, Mojtaba Hoseini, and Reinhard Klette. Real-time anomaly detection and localization in crowded scenes. In Proceedings of the IEEE conference on computer vision and pattern recognition workshops, pages 56-62, 2015.
+[40] Mohammad Sabokrou, Mohsen Fayyaz, Mahmood Fathy, and Reinhard Klette. Deep-cascade: Cascading 3d deep neural networks for fast anomaly detection and localization in crowded scenes. IEEE Transactions on Image Processing, 26(4):1992-2004, 2017.
+[41] Mohammad Sabokrou, Mohammad Khalooei, Mahmood Fathy, and Ehsan Adeli. Adversarily learned one-class classifier for novelty detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3379-3388, 2018.
+[42] Thomas Schlegl, Philipp Seebock, Sebastian M Waldstein, Ursula Schmidt-Erfurth, and Georg Langs. Unsupervised
+
+anomaly detection with generative adversarial networks to guide marker discovery. In International Conference on Information Processing in Medical Imaging, pages 146-157. Springer, 2017.
+[43] Firas Shama, Roey Mechrez, Alon Shoshan, and Lihi Zelnik-Manor. Adversarial feedback loop. In The IEEE International Conference on Computer Vision (ICCV), October 2019.
+[44] Sorina Smeureanu, Radu Tudor Ionescu, Marius Popescu, and Bogdan Alexe. Deep appearance features for abnormal behavior detection in video. In International Conference on Image Analysis and Processing, pages 779-789. Springer, 2017.
+[45] Waqas Sultani, Chen Chen, and Mubarak Shah. Real-world anomaly detection in surveillance videos. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6479-6488, 2018.
+[46] Qianru Sun, Hong Liu, and Tatsuya Harada. Online growing neural gas for anomaly detection in changing surveillance scenes. Pattern Recognition, 64:187-201, 2017.
+[47] Manolis C Tsakiris and René Vidal. Dual principal component pursuit. In Proceedings of the IEEE International Conference on Computer Vision Workshops, pages 10-18, 2015.
+[48] Radu Tudor Ionescu, Sorina Smeureanu, Bogdan Alexe, and Marius Popescu. Unmasking the abnormal events in video. In Proceedings of the IEEE International Conference on Computer Vision, pages 2895-2903, 2017.
+[49] Pascal Vincent, Hugo Larochelle, Yoshua Bengio, and Pierre-Antoine Manzagol. Extracting and composing robust features with denoising autoencoders. In Proceedings of the 25th international conference on Machine learning, pages 1096-1103. ACM, 2008.
+[50] Jiang Wang, Yang Song, Thomas Leung, Chuck Rosenberg, Jingbin Wang, James Philbin, Bo Chen, and Ying Wu. Learning fine-grained image similarity with deep ranking. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1386-1393, 2014.
+[51] Yan Xia, Xudong Cao, Fang Wen, Gang Hua, and Jian Sun. Learning discriminative reconstructions for unsupervised outlier removal. In Proceedings of the IEEE International Conference on Computer Vision, pages 1511-1519, 2015.
+[52] Dan Xu, Elisa Ricci, Yan Yan, Jingkuan Song, and Nicu Sebe. Learning deep representations of appearance and motion for anomalous event detection. arXiv preprint arXiv:1510.01553, 2015.
+[53] Dan Xu, Yan Yan, Elisa Ricci, and Nicu Sebe. Detecting anomalous events in videos by learning deep representations of appearance and motion. Computer Vision and Image Understanding, 156:117-127, 2017.
+[54] Huan Xu, Constantine Caramanis, and Sujay Sanghavi. Robust pca via outlier pursuit. In Advances in Neural Information Processing Systems, pages 2496-2504, 2010.
+[55] Chong You, Daniel P Robinson, and René Vidal. Provable self-representation based outlier detection in a union of subspaces. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3395-3404, 2017.
+
+[56] Tianzhu Zhang, Hanqing Lu, and Stan Z Li. Learning semantic scene models by object classification and trajectory clustering. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pages 1940-1947. IEEE, 2009.
+[57] Ying Zhang, Huchuan Lu, Lihe Zhang, Xiang Ruan, and Shun Sakai. Video anomaly detection based on locality sensitive hashing filters. Pattern Recognition, 59:302-311, 2016.
+[58] Yiru Zhao, Bing Deng, Chen Shen, Yao Liu, Hongtao Lu, and Xian-Sheng Hua. Spatio-temporal autoencoder for video anomaly detection. In Proceedings of the 25th ACM international conference on Multimedia, pages 1933-1941. ACM, 2017.
\ No newline at end of file
diff --git a/oldisgoldredefiningtheadversariallylearnedoneclassclassifiertrainingparadigm/images.zip b/oldisgoldredefiningtheadversariallylearnedoneclassclassifiertrainingparadigm/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..35ba1c4fb66f81706d48ba9cc20607bcb481d4f7
--- /dev/null
+++ b/oldisgoldredefiningtheadversariallylearnedoneclassclassifiertrainingparadigm/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c3fc08081eaae2d31be0df95e96084a015ecc26730b92496ca053a4e0f7fa1ad
+size 444698
diff --git a/oldisgoldredefiningtheadversariallylearnedoneclassclassifiertrainingparadigm/layout.json b/oldisgoldredefiningtheadversariallylearnedoneclassclassifiertrainingparadigm/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..48eea2302b9da25a753360165145ab39872c7d1b
--- /dev/null
+++ b/oldisgoldredefiningtheadversariallylearnedoneclassclassifiertrainingparadigm/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0b2beecdef6b55bc56e62060f094e2561dc66647b7308769c126be9726512663
+size 446969
diff --git a/onemanstrashisanothermanstreasureresistingadversarialexamplesbyadversarialexamples/ea91d4e1-6711-4a4d-9629-60443d542ad8_content_list.json b/onemanstrashisanothermanstreasureresistingadversarialexamplesbyadversarialexamples/ea91d4e1-6711-4a4d-9629-60443d542ad8_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..568f5dc6217e34db0d35cd3f09f4744bcdd87f87
--- /dev/null
+++ b/onemanstrashisanothermanstreasureresistingadversarialexamplesbyadversarialexamples/ea91d4e1-6711-4a4d-9629-60443d542ad8_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0599b44b8bbf208ccbd4ae30f87237e5c21c87110423f173a1de7c98e326531f
+size 90492
diff --git a/onemanstrashisanothermanstreasureresistingadversarialexamplesbyadversarialexamples/ea91d4e1-6711-4a4d-9629-60443d542ad8_model.json b/onemanstrashisanothermanstreasureresistingadversarialexamplesbyadversarialexamples/ea91d4e1-6711-4a4d-9629-60443d542ad8_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..568bfc66ad0f65bcb4deab92e002ca881558e58d
--- /dev/null
+++ b/onemanstrashisanothermanstreasureresistingadversarialexamplesbyadversarialexamples/ea91d4e1-6711-4a4d-9629-60443d542ad8_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0b249dd99d0b7b7ce2ec4613e2c0155bb80d055f95cfbd07bf2d791cc9fc5674
+size 112138
diff --git a/onemanstrashisanothermanstreasureresistingadversarialexamplesbyadversarialexamples/ea91d4e1-6711-4a4d-9629-60443d542ad8_origin.pdf b/onemanstrashisanothermanstreasureresistingadversarialexamplesbyadversarialexamples/ea91d4e1-6711-4a4d-9629-60443d542ad8_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..790297ca7d41b6e89710cf43d88d17e2199d95c1
--- /dev/null
+++ b/onemanstrashisanothermanstreasureresistingadversarialexamplesbyadversarialexamples/ea91d4e1-6711-4a4d-9629-60443d542ad8_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:967e7565bf1c5326ee5a04767fbe310754929e42fbac9c12d923aefe1406f2c5
+size 735994
diff --git a/onemanstrashisanothermanstreasureresistingadversarialexamplesbyadversarialexamples/full.md b/onemanstrashisanothermanstreasureresistingadversarialexamplesbyadversarialexamples/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..ac0f9f227fcf14d2c5099b49245f05baf9484476
--- /dev/null
+++ b/onemanstrashisanothermanstreasureresistingadversarialexamplesbyadversarialexamples/full.md
@@ -0,0 +1,343 @@
+# One Man's Trash is Another Man's Treasure: Resisting Adversarial Examples by Adversarial Examples
+
+Chang Xiao Changxi Zheng Columbia University New York, 10027 {chang, cxz}@cs.columbia.edu
+
+# Abstract
+
+Modern image classification systems are often built on deep neural networks, which suffer from adversarial examples—images with deliberately crafted, imperceptible noise to mislead the network's classification. To defend against adversarial examples, a plausible idea is to obfuscate the network's gradient with respect to the input image. This general idea has inspired a long line of defense methods. Yet, almost all of them have proven vulnerable.
+
+We revisit this seemingly flawed idea from a radically different perspective. We embrace the omnipresence of adversarial examples and the numerical procedure of crafting them, and turn this harmful attacking process into a useful defense mechanism. Our defense method is conceptually simple: before feeding an input image for classification, transform it by finding an adversarial example on a pretrained external model. We evaluate our method against a wide range of possible attacks. On both CIFAR-10 and Tiny ImageNet datasets, our method is significantly more robust than state-of-the-art methods. Particularly, in comparison to adversarial training, our method offers lower training cost as well as stronger robustness.
+
+# 1. Introduction
+
+Deep neural networks have vastly improved the performance of image classification systems. Yet they are prone to adversarial examples. Those are natural images with deliberately crafted, imperceptible noise, aiming to mislead the network's decision entirely [5, 41]. In numerous applications, from face recognition authorization to autonomous cars [36, 43], the vulnerability caused by adversarial examples gives rise to serious security concerns and presses for efficient defense mechanisms.
+
+The defense, unfortunately, remains grim. Recent studies [34, 45, 12] suggest that the prevalence of adversarial examples may be an inherent property of high-dimensional natural data distributions. Facing this intrinsic difficulty of eliminating adversarial examples, a plausible thought is to conceal them—making them hard to find. Indeed, a long
+
+
+Figure 1. A simple and effective defense mechanism. Given an input image, our defense method first transforms it through the process of crafting adversarial examples on a pre-trained simple model $f_{b}$ , deliberately adding strong adversarial noise. The transformed image is then fed into another model $f_{a}$ for classification. The same pipeline is applied in both training and inference.
+
+line of works aims to obfuscate the network model's gradient with respect to its input [50, 14, 49, 7, 39, 33], motivated by the fact that the gradient information is essential for crafting adversarial examples: the gradient indicates how to perturb the input to alter the network's decision.
+
+Yet, almost all these gradient obfuscation based defenses have proven vulnerable. In their recent seminal work, Athalye et al. [2] presented a suite of strategies for estimating network gradients in the presence of gradient obfuscation. Adversarial examples crafted by their method have successfully fooled many existing defense models, some of which even yield $0\%$ accuracy under their attack.
+
+We revisit the idea of gradient obfuscation but take a radically different approach. Instead of expelling adversarial examples, we embrace them. Instead of obstructing the way of finding adversarial examples on a model, we exploit it to strengthen the robustness of another model.
+
+Our defense is conceptually simple: before feeding an input image to a classification model, we transform it through the process of finding adversarial examples on an external model. Mathematically, if we use $f(\pmb{x})$ to denote the model that classifies an input image $\pmb{x}$ , our defense model is expressed as $f(g(\pmb{x}))$ , where $g(\cdot)$ represents the process of finding an adversarial example near $\pmb{x}$ on a pre-trained external model (see Fig. 1).
+
+The robustness of our defense model $f(g(\pmb{x}))$ stems from the fundamental difficulties of estimating the gradient of $g(\pmb{x})$ with respect to $\pmb{x}$ . Finding an adversarial example amounts to searching for a local minimum on a highly fluctuated objective landscape [26]. As a result, $g(\pmb{x})$ is not an analytic function, not smooth, not deterministic, but an iterative procedure with random initialization and non-differentiable operators. We show that all these traits together constitute a highly robust defense mechanism.
+
+We play devil's advocate in attacking our defense model thoroughly. We examine a wide range of possible attacks, including those having successfully circumvented many previous defenses [2]. Under these attacks, we compare the worst-case robustness of our method with state-of-the-art defense methods on both CIFAR-10 and Tiny ImageNet datasets. Our defense demonstrates superior robustness over those methods. Particularly, in comparison to models optimized with adversarial training—by far the most effective defense against white-box attacks—our method offers simultaneously lower training cost and stronger robustness.
+
+# 2. Related Work
+
+Adversarial attack. The seminal work of Biggio et al. [5] and Szegedy et al. [41] first suggested the existence of adversarial examples that can mislead deep neural networks. The latter also used a constrained L-BFGS to find adversarial examples. Goodfellow et al. [13] later introduced Fast Gradient Sign Method (FGSM) that generates adversarial examples more efficiently. Madry et al. [26] further formalized the problem of adversarial attacks and proposed Projected Gradient Descent (PGD) method, which further inspires many subsequent attacking methods [11, 8, 28, 19]. PGD-type methods are considered the strongest attacks based on first-order information, namely the network's gradient with respect to the input [26]. To compute the gradients, the adversary must have full access to the network structure and parameters. This scenario is referred as the white-box attack.
+
+When the adversary has no knowledge about the model, the attack, referred as black-box attack, is not as easy as the white-box attack. By far the most popular black-box attack is the so-called transfer attack, which uses adversarial examples generated on a known model (e.g., using PGD) to attack an unknown model [30]. Several methods (e.g., [44, 3, 52, 16]) are proposed to improve the transferability of the adversarial examples so that the adversarial examples generated on one model are more likely to fool another model. Another type of black-box attacking methods is query-based [6, 37, 9, 1, 20]: they execute the model many times with different input in order to learn the behavior of the model and construct adversarial examples.
+
+While our defense is motivated by attacks in white-box scenarios, we evaluate our method under a wide range of possibilities, including both white-box and black-box attacks.
+
+Adversarial defense. The threat of adversarial examples has motivated active studies of defense mechanisms. By far the most successful defense against white-box attacks is adversarial training [26, 13, 38], and a rich set of methods has been proposed to accelerate its training speed or further improve its robustness [51, 54, 21, 13, 46, 35, 53, 29, 27]. In comparison to adversarial training, our method offers both stronger robustness and lower training cost.
+
+To defend against gradient-based attacks (such as the PGD attack), a natural idea is to obfuscate (or mask) network gradients [30, 44]. To this end, there exist a long line of works that apply random transformation to input images [50, 14], or employ stochastic activation functions [10] and nondifferentiable operators in the model [49, 7, 39, 33].
+
+Unfortunately, many of these methods have proven vulnerable by Athalye et al. [2], who introduced a set of attacking strategies, including a method called Backward Pass Differentiable Approximation (BPDA), to circumvent gradient obfuscation (see further discussion in Sec. 3.1 and 3.3). Since then, a few other gradient obfuscation based defenses have been proposed [23, 31, 17, 42, 22]. But those works either report degraded robustness under BPDA attacks [23, 31] or neglected the evaluation against BPDA attacks [17, 42, 22].
+
+Thus far, gradient obfuscation is generally considered vulnerable (and at least incomplete) [2]. We revisit gradient obfuscation, and our defense demonstrates unprecedented robustness against BPDA and other possible attacks.
+
+# 3. Defense via Adversarial Transformation
+
+We now present a simple approach to defend against adversarial attacks. We will first motivate and describe our adversarial transformation (Sec. 3.1 and 3.2), and then provide the rationale of why it improves adversarial robustness (Sec. 3.3 and 3.4), backed by empirical evidence (Sec. 4).
+
+# 3.1. Motivation: Input Transformation
+
+An attempt that has been explored in adversarial defense—albeit unsuccessfully so far—is the defense via input transformation. Consider a neural network model $f_{a}$ that classifies the input image $\pmb{x}$ (i.e., evaluating $f_{a}(\pmb{x})$ ). Instead of feeding $\pmb{x}$ into $f_{a}$ directly, this defense approach transforms the input image through an operator $g$ before presenting it to the classification model (i.e., evaluating $f_{a}(g(\pmb{x}))$ ).
+
+The transformation $g$ is applied in both training and inference. Provided a training dataset $\mathcal{X}$ , the network weights $\theta$ are optimized by solving
+
+$$
+\boldsymbol {\theta} ^ {*} = \underset {\boldsymbol {\theta}} {\arg \min } \mathbb {E} _ {(\boldsymbol {x}, y) \in \mathcal {X}} [ \ell (f _ {a} (g (\boldsymbol {x}); \boldsymbol {\theta}), y) ], \tag {1}
+$$
+
+where $\pmb{x}$ and $y$ are respectively the image and its corresponding label drawn from the training dataset, and $\ell$ is the loss function (such as cross entropy for classification tasks). Correspondingly, at inference time, the model predicts the label of an input image $\pmb{x}$ by evaluating $f_{a}(g(\pmb{x}))$ .
+
+Input transformation $g(\cdot)$ offers an opportunity to implement the idea of gradient obfuscation. For example, by transforming the input image with certain randomness such as random resizing and padding [50], the network gradients become hard to estimate.
+
+Another use of $g(\cdot)$ for defense is to remove the noise (or perturbations) in adversarial examples. For instance, $g(\cdot)$ has been used to restore a natural image from a potentially adversarial input, by projecting it on a GAN- or PixelCNN-represented image manifold [33, 39] or regularizing the input image through total variation minimization [14].
+
+These input-transformation-based defense mechanisms seem plausible. Yet they are all fragile. As demonstrated by Athalye et al. [2], with random input transformation, adversarial examples can still be found using Expectation over Transformation [3], which estimates the network gradient by taking the average over multiple trials (more details in Sec. 3.3). The noise-removal transformation is also ineffective. One can use Backward Pass Differentiable Approximation [2] to easily construct effective adversarial examples. In short, the current consensus is that input transformation as a defense mechanism remains vulnerable.
+
+We challenge this consensus. We now present a new input transformation method for gradient obfuscation, followed by the explanation of why it is able to avoid the shortcomings of prior work and offer stronger adversarial robustness.
+
+# 3.2. Adversarial Transformation
+
+Our input transformation operation takes an approach opposite to the intuition behind previous methods [14, 39, 33]. In contrast to those aiming to purge input images of the adversarial noise, we embrace adversarial noise. As we will show, our transformation injects noticeably strong adversarial noise into the input image. This seemingly counter-intuitive operation is able to strengthen the network model in training, making it more robust.
+
+Our transformation operation relies on another network model $f_{b}$ , whose choice will be discussed later in Sec. 3.4. The model $f_{b}$ is pre-trained to perform the same task as $f_{a}$ . Then, given an input image $x$ , the transformation operator $g(\cdot)$ is defined as the process that finds the adversarial example nearby $x$ to fool $f_{b}$ . Formally, this process is meant to reach a local minimum of the optimization problem,
+
+$$
+g (\boldsymbol {x}) = \underset {\boldsymbol {x} ^ {\prime} \in \Delta_ {\boldsymbol {x}}} {\arg \min } \ell \left(f _ {b} \left(\boldsymbol {x} ^ {\prime}\right), y _ {\mathrm {L}}\right), \tag {2}
+$$
+
+where $\ell (\cdot)$ is the loss function as used in network training (1); and $y_{\mathrm{L}}$ is the adversarial target, setting to be the input $\pmb{x}$ 's least likely class predicted by $f_{b}$ . The adversarial examples are restricted in $\Delta_{x}$ , an $L_{\infty}$ -ball at $\pmb{x}$ , defined as $\| x^{\prime} -$ $\pmb {x}\|_{\infty} < \Delta$ . The perturbation range $\Delta$ is a hyperparameter.
+
+Transformation $g(\pmb{x})$ defined in (2) can be implemented using any gradient-based attacking methods (such as Deepfool [28] and C&W [8]). We choose to use the least-likely
+
+
+(a)
+
+
+(b)
+Figure 2. To launch a valid attack from an input image (a), the adversarial example (b) must be perceptually similar to the original image (e.g., here $\Delta = 0.031$ ). Otherwise, it can be easily pinpointed. In our method, the transformed image is used for training $f_{a}$ , not attacking. We therefore intentionally add much stronger adversarial noise to the input (c) (here $\Delta = 0.2$ ). The strong noise helps to strengthen the robustness of $f_{a}$ and defend against BPDA attacks (see Sec. 3.3).
+
+
+(c)
+
+class projected gradient descent (LL-PGD) method [19, 44]. LL-PGD is an iterative process, wherein each iteration updates the adversarial example by the rule,
+
+$$
+\boldsymbol {x} _ {t} ^ {\prime} = \Pi_ {\boldsymbol {x} ^ {\prime} \in \Delta_ {\boldsymbol {x}}} \left[ \boldsymbol {x} _ {t - 1} ^ {\prime} - \epsilon \cdot \operatorname {s g n} \left(\nabla_ {\boldsymbol {x}} \ell \left(f _ {b} \left(\boldsymbol {x} _ {t - 1} ^ {\prime}\right), y _ {\mathrm {L}}\right)\right) \right]. \tag {3}
+$$
+
+Here $\pmb{x}_t^\prime$ denotes the adversarial example after $t$ iterations; $\operatorname{sgn}(\cdot)$ is the sign function, and $\Pi_{\pmb{x}^{\prime}\in \Delta_{\pmb{x}}}[\cdot ]$ projects the image back into the allowed perturbation ball $\Delta_{\pmb{x}}$ . This iterative process starts from a random perturbation of input image $\pmb{x}$ , namely $\pmb {x} + \pmb{\delta}$ , where each element (pixel) in $\delta$ is uniformly drawn from $[- \Delta ,\Delta ]$ . The output $\pmb{x}_{N}^{\prime}$ (after $N$ iterations) is the transformed version of $\pmb{x}$ . In other words, $g(\pmb {x}) = \pmb{x}_{N}^{\prime}$ which we refer as adversarial transformation.
+
+After defining the adversarial transformation $g(\cdot)$ based on the pre-trained model $f_{b}$ , we use $g(\cdot)$ to train the model $f_{a}$ as described in (1). At inference time, the label of an image $x$ is predicted as $f_{a}(g(x))$ . Figure 1 illustrates the pipeline of our method.
+
+Differences from adversarial training. With adversarial transformation, our training process superficially resembles the adversarial training, because both training processes need to search for adversarial examples of the input training data. But fundamental differences exist. In adversarial training, a single model $f_{a}$ is used for crafting adversarial examples and evolving itself at each epoch, whereas our method involves two models: the model $f_{b}$ is pre-trained and stays fixed during both the training of $f_{a}$ and the inference using $f_{a}$ .
+
+The consequence of using a fixed external model $f_{b}$ for adversarial transformation is substantial. As we will discuss in Sec. 3.4, $f_{b}$ can be chosen much simpler than $f_{a}$ . As a result, crafting the adversarial examples on $f_{b}$ has lower cost than that on $f_{a}$ , and thus our training process is faster than adversarial training (see experiments in Sec. 5). More remarkably, the adversarial transformation using $f_{b}$ makes the model $f_{a}$ much harder to attack, as explained next.
+
+3.3. Rationale behind Adversarial Transformation Embracing adversarial noise. Given an input image $x$ , our adversarial transformation effectively adds perturbation
+
+noise to $\pmb{x}$ . The perturbation range $\Delta$ controls how much noise is added. Normally, in adversarial attacks, $\Delta$ is set small to generate adversarial examples perceptually similar to the input image. But when we use adversarial attacks (on $f_{b}$ ) as a means of input transformation for training $f_{a}$ , we have the freedom to use a much larger $\Delta$ , thereby adding noticeably stronger adversarial noise (see Fig. 2-c).
+
+At training time, the excessively strong adversarial noise forces the network $f_{a}$ to learn how to classify robustly. This is because perturbations crafted on an external model can approximate the adversarial examples of the model under training (an insight inspired the prior work [44]). This reason, although valid, can not explain how our method is able to avoid the deficiencies of prior defense methods. There exist deeper reasons:
+
+Randomness. The adversarial noise added by our $g(\pmb{x})$ is randomized, since the update rule (3) always starts from the input image with a random perturbation (i.e., $\pmb{x} + \pmb{\delta}$ with uniformly sampled $\delta_i \sim [-\Delta, \Delta]$ ). Randomization is not new; prior defenses also employ randomized transformations to the input. But they have been circumvented by Expectation Over Transformation (EOT) [2, 3]. EOT attack first estimates the gradient of expected $f(g(\pmb{x}))$ with respect to $\pmb{x}$ using the relationship $\nabla \mathbb{E}_{\tilde{g} \sim \mathcal{T}} f(\tilde{g}(\pmb{x})) = \mathbb{E}_{\tilde{g} \sim \mathcal{T}} \nabla f(\tilde{g}(\pmb{x}))$ , where $\tilde{g}(\cdot)$ is a deterministic version of $g(\cdot)$ sampled from the distribution of randomized transformations $\mathcal{T}$ . It then uses the estimated gradients in PGD-type attacks to generate adversarial examples. Thus, the feasibility of EOT hinges on a reliable estimation of $\nabla f(\tilde{g}(\pmb{x}))$ . In our method, $\tilde{g}(\pmb{x})$ corresponds to solving the optimization problem (2) starting from a particular sample $\pmb{x} + \pmb{\delta}$ .
+
+In what follows, we examine a range of strategies that have been successfully used to estimate $\nabla f(\tilde{g}(\boldsymbol{x}))$ in prior defense methods (and thus break them), and show that our method is robust against all those attacking strategies.
+
+Automatic differentiation. By chain rule, the estimation of $\nabla f(\tilde{g}(\boldsymbol{x}))$ requires the knowledge of $\tilde{g}(\boldsymbol{x})$ 's Jacobian (first-order derivatives) $\mathrm{D}\tilde{g}(\boldsymbol{x})$ . A straightforward attempt to this end is by unrolling the iterative steps (3) and using automatic differentiation (AD) [47] to compute $\mathrm{D}\tilde{g}(\boldsymbol{x})$ . Yet, this is infeasible. As shown in (3), the iterative steps involve non-differentiable operators including $\operatorname{sgn}(\cdot)$ and $\Pi_{\boldsymbol{x}' \in \Delta_{\boldsymbol{x}}}[\cdot]$ . Thus, directly applying AD leads to erroneous estimation of $\mathrm{D}\tilde{g}(\boldsymbol{x})$ , which in turn obstructs the search for adversarial examples. Our early experiments indeed show that virtually no adversarial examples crafted using AD can fool our model.
+
+Backward Pass Differentiable Approximation (BPDA). To circumvent the defense using non-differentiable operators, Athalye et al. [2] introduced a strategy called Backward Pass Differentiable Approximation (BPDA) to estimate the defense model's gradients. The idea is to replace the non-differentiable operators in $\tilde{g}$ with differentiable approximations, and estimate the derivatives $\mathrm{D}\tilde{g}(\boldsymbol{x})$ in AD by
+
+
+Figure 3. (left) We show a 1D depiction of our input transformation $g(\pmb{x})$ , the process aiming to find the local minimum of the optimization problem (2). Starting from an $\pmb{x}_0$ at the red dot, $g(\pmb{x})$ will reach a position at the red star. Perturbing $\pmb{x}_0$ toward one side (to the red square), $g(\pmb{x})$ will still reach the red star, and in this way, the finite difference gradient vanishes. But if $\pmb{x}_0$ is perturbed to the green square, $g(\pmb{x})$ will reach the green star—an entirely different local minimum, and the finite difference gradient explodes. (right) We plot $\frac{\partial\bar{g}_i(\pmb{x})}{\partial x_j}$ (for particular $i$ and $j$ here) estimated by finite difference method (4) with an increasing $h_j$ . When $h_j$ is extremely small ( $< 10^{-5}$ ), the estimated gradient vanishes; as $h_j$ increases, the estimated gradient fluctuates severely, due to the reason illustrated on the left.
+
+computing the AD's forward pass using the original $\tilde{g}$ and computing its backward pass using $\tilde{g}$ 's differentiable approximation. BPDA has succeeded in gradient-based attacks (such as PGD and C&W [8]) toward many prior defenses, allowing the adversary to craft efficient adversarial examples.
+
+When applying BPDA to estimate the gradients of our defense model, we replace $\mathrm{sgn}(\cdot)$ and $\Pi_{\boldsymbol{x}' \in \Delta_{\boldsymbol{x}}}[\cdot]$ in (3) with their differentiable approximations (see Sec. 4.1 for details). We found that if the number of iterations (LL-PGD steps) for applying (3) is low (i.e., $\leq 2$ ), BPDA indeed enables the adversary to find valid adversarial examples. But when the number of iterations is set moderately high (i.e., $>4$ ), BPDA is greatly thwarted; the adversary can hardly find any valid adversarial example (see Sec. 4.1). This is because the differentiable approximations must be applied in each iteration, and as the number of iterations increases, the approximation error accumulates rapidly.
+
+Finite difference gradients. Another strategy for estimating $\mathrm{D}\tilde{g} (\pmb {x})$ is the classic finite difference estimation. Each element in the Jacobian matrix $\mathrm{D}\tilde{g} (\pmb {x})$ can be estimated using
+
+$$
+\frac {\partial \tilde {g} _ {i} (\boldsymbol {x})}{\partial \boldsymbol {x} _ {j}} \approx \frac {1}{2 h} \left[ \tilde {g} _ {i} \left(\boldsymbol {x} + \boldsymbol {h} _ {j}\right) - \tilde {g} _ {i} \left(\boldsymbol {x} - \boldsymbol {h} _ {j}\right) \right], \tag {4}
+$$
+
+where $\tilde{g}_i(\pmb{x})$ indicates the $i$ -th element (or pixel) of the transformed image, and $\pmb{h}_j$ is a vector with all zeros except the $j$ -th element (or pixel) which has a value $h$ .
+
+Our defense inherently thwarts this attacking strategy. It causes the adversary to suffer from either exploding or vanishing gradients [2]. Figure 3-left shows a 1D depiction illustrating this phenomenon in our method. Indeed, our experiments confirm that it is too unreliable to estimate derivatives using (4) (see Fig. 3-right).
+
+Reparameterization. Vanishing and exploding gradients have been exploited as a defense mechanism [39, 33]. Yet
+
+those defenses have been proven vulnerable under a reparameterization strategy [2]. This strategy aims to find some differentiable function $h(\cdot)$ for a change-of-variable $x = h(z)$ such that $\tilde{g}(h(z)) \approx h(z)$ . If such a function $h(\cdot)$ can be found, then one can compute the gradient of the differentiable function $f(h(z))$ to launch adversarial attack.
+
+To break our defense using this strategy, one must find an $h(\cdot)$ that constructs the adversarial examples of $f_{b}$ directly (so that $\tilde{g}(h(\cdot)) = h(\cdot)$ ), without solving the optimization problem (2). We argue that finding such an $h(\cdot)$ is extremely hard. If $h(\cdot)$ could be constructed, we would have a direct way of crafting adversarial examples; PGD-type iterations would not be needed; and the entire territory of adversarial learning would be redefined—which are unlikely to happen.
+
+Indeed, we implemented this strategy by training a neural network model $h_{\theta}$ that aims to minimize $\| h_{\theta}(\pmb{x}) - \tilde{g}(\pmb{x}) \|_2$ over the natural image distribution. This attempt is futile. Our experiments show that the generalization error of the trained $h_{\theta}$ is too high to launch any valid adversarial attack (see Appendix A.2). This conclusion also echos the prior studies [4, 48], which show that learning-based adversarial attacks usually perform worse than gradient-based attacks.
+
+Identity mapping approximation. Some prior defense methods also use an optimization process to transform the input image—for example, the optimization that aims to erase adversarial noise from the input image [14, 33]. In those defenses, the transformed image $g(\boldsymbol{x})$ remains similar to the input $\boldsymbol{x}$ . Consequently, as shown in [2], those defenses can be easily circumvented by replacing $g(\cdot)$ with the identity mapping in the backward pass of BPDA attack.
+
+Similarly, in our defense, if the perturbation range $\Delta$ in (3) for defining $g(\cdot)$ were set small, $g(\pmb{x})$ (the adversarial example of $f_{b}$ ) would be close to $\pmb{x}$ , and our defense would be at risk. To prevent this vulnerability, we must ensure that $g(\cdot)$ be far from the identity mapping. This requires us to set a relatively large $\Delta$ . In practice, we use $\Delta = 0.2$ for pixel values ranging in [0, 1] (see details in Sec. 4.1).
+
+It turns out that a relatively large $\Delta$ is necessary but not sufficient. The choice of the network model $f_{b}$ also affects how far $g(\pmb{x})$ is from $\pmb{x}$ statistically, as we will discuss next.
+
+# 3.4. Choosing Pre-trained Model $f_{b}$
+
+A large perturbation range $\Delta$ allows our adversarial transformation $g(\cdot)$ to output an image far from the input. Yet, because of the randomness in $g(\cdot)$ , a large $\Delta_{\pmb{x}}$ can not guarantee that $g(\pmb{x})$ is statistically different from $\pmb{x}$ . If the expectation over the transformation $\mathbb{E}_{\tilde{g} \sim \mathcal{T}} \tilde{g}(\pmb{x})$ remains close to $\pmb{x}$ , our defense method may still suffer from the aforementioned BPDA attack, in which identity mapping can be used to approximate $g(\cdot)$ in the backward pass.
+
+This intuition is supported by an empirical discovery. We experimented with an input transformation $g(\cdot)$ constructed using an untrained model $\bar{f}_b$ whose weights are assigned
+
+
+Input Image
+
+
+0 epoch $\ell_{\infty} = 0.006$
+
+
+1 epoch $\ell_{\infty} = 0.034$
+
+
+5 epochs $\ell_{\infty} = 0.048$
+
+
+Expected Adv. Image
+
+
+15 epochs $\ell_{\infty} = 0.137$
+Figure 4. We apply the adversarial transformation $g(\cdot)$ defined on different models $f_{b}$ to an input image (top-left). Corresponding to the six images toward the right are the $f_{b}$ models (with the same network structure) untrained, trained with an increasing number of epochs, and adversarily trained. In each of those six images, we visualize the normalized difference between the input $\mathbf{x}$ and the expectation over transformation (EOT) image $\mathbb{E}_{\tilde{g}\sim \mathcal{T}}\tilde{g} (\mathbf{x})$ (estimated using 5000 samples). The $L_{\infty}$ norms of the difference images are shown under the images. Image in the red box (bottom-left) is the EOT image $\mathbb{E}_{\tilde{g}\sim \mathcal{T}}\tilde{g} (\mathbf{x})$ produced using an adversially trained $f_{b}$ model. Because we intentionally use a large perturbation range $\Delta = 0.2$ , this image has pronounced artifacts.
+
+
+20 epochs $\ell_{\infty} = 0.141$
+
+
+Adv. trained $\ell_{\infty} = 0.263$
+
+randomly. As shown in Fig. 4 and the first column in Table 1, the expectation over transformation $\mathbb{E}_{\tilde{g}\sim \mathcal{T}}\tilde{g} (\pmb {x})$ is indeed close to $\pmb{x}$ (in $L_{\infty}$ norm), and the BPDA attack with identity mapping approximation can easily fool this defense model.
+
+Next, we train a series of models $f_{b}^{(i)}$ , each obtained with an increasing number of training epochs. We found that as the number of training epochs increases, the expectation over transformation $\mathbb{E}_{\tilde{g}\sim \mathcal{T}}\tilde{g} (\pmb {x})$ resulted by using each of these $f_{b}^{(i)}$ models drifts further away from $\pmb{x}$ , that is, $\| x - \mathbb{E}_{\tilde{g}\sim \mathcal{T}}\tilde{g} (\pmb {x})\|_{\infty}$ increases. Meanwhile, the defense model $f(g(\cdot))$ trained with the corresponding $f_{b}^{(i)}$ becomes more robust, yielding increasingly better robust accuracy under the BPDA attack (see Table 1).
+
+Remarkably, we discover that an even larger distance $\| \pmb{x} - \mathbb{E}_{\tilde{g}\sim \mathcal{T}}\tilde{g} (\pmb {x})\|_{\infty}$ can be obtained, if the model $f_{b}$ is adversarially trained. When used in $g(\cdot)$ , the adversarially trained model $f_{b}$ further improves the robustness of our defense model. This discovery confirms our intuition.
+
+Computational performance. The choice of $f_{b}$ also affects the computational cost of our defense method. A complex network structure of $f_{b}$ makes $g(\cdot)$ expensive, which in turn imposes a large performance overhead on both the training of $f_{a}$ and the inference using $f_{a}$ . Therefore, a simple network structure is preferred.
+
+The freedom of choosing a simple network $f_{b}$ brings our method a performance advantage over adversarial training. In adversarial training, adversarial examples are crafted on the classification network $f_{a}$ for each input image at every
+
+ | Untrained | 1 epoch | 2 epochs | 5 epochs | 10 epochs | 15 epochs | 20 epochs | Adv. trained |
| Standard Acc. | 81.8% | 81.6% | 82.4% | 83.0% | 82.4% | 82.2% | 82.7% | 82.9% |
| BPDA-I Acc. | 30.6% | 30.7% | 40.0% | 46.4% | 62.3% | 63.1% | 62.9% | 80.5% |
| Avg. L∞ dist. | 0.005 | 0.033 | 0.036 | 0.067 | 0.130 | 0.133 | 0.136 | 0.272 |
+
+Table 1. Discovery for choosing $f_{b}$ . Corresponding to individual columns are $f_{b}$ models untrained, trained with an increasing number of epochs, and adversarially trained. For the defense model $f_{a}(g(\cdot))$ equipped with each $f_{b}$ , we evaluate its standard accuracy (first row) and robust accuracy (second row) under the BPDA-I attack (see Sec. 4.1). The third row shows $\| \pmb{x} - \mathbb{E}_{\tilde{g}\sim \mathcal{T}}\tilde{g} (\pmb {x})\|_{\infty}$ where $\mathbb{E}_{\tilde{g}\sim \mathcal{T}}\tilde{g} (\pmb {x})$ is estimated using 5000 samples. Notice the correlation between the increase of the $L_{\infty}$ distance and the increase of adversarial robustness.
+
+epoch. In our training, however, by choosing a model $f_{b}$ simpler than $f_{a}$ , it becomes faster to find adversarial examples. As shown in our experiments (in Sec. 5), in comparison to adversarial training, our defense requires shorter training time, and at the same time offers stronger robustness.
+
+Guiding rules. In summary, we present two guiding rules for choosing $f_{b}$ . 1) $f_{b}$ should be chosen to yield a large $\| \pmb{x} - \mathbb{E}_{\tilde{g} \sim \mathcal{T}} \tilde{g}(\pmb{x}) \|_{\infty}$ value. Given an $f_{b}$ 's network structure, adversarial training on $f_{b}$ (in pre-training step) is preferred. 2) Meanwhile, the structure of $f_{b}$ should be as simple as possible. In Appendix A.1, we report $f_{b}$ 's network structure that we use in our experiments.
+
+# 4. Devil's Advocate
+
+We now play devil's advocate in attacking our defense method. In our defense, the network gradient with respect to the input (i.e., $\nabla f_{a}(g(\pmb{x}))$ ) is intentionally undefined. Thus one can not craft adversarial examples by directly applying PGD-type methods on our defense (recall Sec. 2). We therefore evaluate our defense against a range of other possible attacks, including those discussed in Sec. 3.3. Later in Sec. 5, we will compare the worst-case robustness of our defense under these attacks with various recently proposed defense methods. We also release our code for public evaluation1.
+
+Common experiment setups. Experiments in this section are conducted on CIFAR-10 dataset [18] with standard training/test split. We use ResNet18 [15] as the classification model $f_{a}$ and a small VGG-style network for $f_{b}$ , whose details are given in Appendix A.1. All models are trained for 80 epochs using Stochastic Gradient Descent (SGD) (constant learning rate=0.1, momentum=0.9). Our adversarial transformation $g(\cdot)$ performs LL-PGD update (3) for 13 iterations, each with a stepsize $\epsilon = \Delta /6$ . The perturbation range $\Delta$ varies in individual experiments, and will be reported therein.
+
+Metric. Following prior work, our evaluation uses an accuracy measure defined as the ratio of the number of correctly classified images to the total number of tested images. We refer to this measure as standard accuracy if the tested images include only clean images, and as robust accuracy if the tested images consist of adversarially crafted images.
+
+# 4.1. BPDA Attack and the Variants
+
+BPDA attack [2], as reviewed in Sec. 3.3, is a powerful way to estimate network gradients that are obfuscated by defense methods. The estimated gradients are then used in PGD-type methods (if the defense is deterministic) or the EOT method (if the defense is randomized) for crafting adversarial examples. BPDA has circumvented a handful of recent defense techniques [14, 50, 25, 39, 7] that implement gradient obfuscation, in many defenses resulting in $0\%$ robust accuracy. We therefore evaluate our defense against it and its possible variants.
+
+Differentiable approximation on backward pass. The update rule (3) in our adversarial transformation involves two non-differentiable operators, namely, $\operatorname{sgn}(\cdot)$ and $\Pi_{\boldsymbol{x}' \in \Delta_{\boldsymbol{x}}}(\cdot)$ , whose specific forms are given in Appendix A.3. To launch BPDA attack, we need to replace them with differentiable operators and compute their derivatives. We experimented with two different smooth approximations of $\operatorname{sgn}(\cdot)$ : the soft sign function $\frac{x}{1 + |x|}$ and tanh function $\frac{e^x - e^{-x}}{e^x + e^{-x}}$ . The smooth approximation of $\Pi_{\boldsymbol{x}' \in \Delta_{\boldsymbol{x}}}(\cdot)$ is not explicitly defined. Instead, we directly approximate its derivative using
+
+$$
+\frac {\mathrm {d}}{\mathrm {d} x} \Pi_ {x ^ {\prime} \in \Delta_ {x}} (x) \approx \left\{ \begin{array}{l l} 1, & \text {i f} | x | < \Delta , \\ \frac {1}{(1 + | x |) ^ {2}}, & \text {o t h e r w i s e .} \end{array} \right. \tag {5}
+$$
+
+Reported in Fig. 5, the experiments show that our defense is robust to this attack, as long as the number of LL-PGD steps $N$ in $g(\cdot)$ is not too small (i.e., $N > 5$ ).
+
+If the number of LL-PGD steps $N$ is set too small, BPDA attack is indeed able to find adversarial examples (Fig. 5). Therefore, another attempt one may ponder is to craft adversarial examples on a model trained with a small $N$ ( $N \leq 3$ ), and use them to transfer attack our defense (which is trained with a larger $N$ ). This attack remains ineffective (see details in Appendix A.3). We conjecture that this is because the adversarial examples for the model with a small $N$ have a different distribution from that with a larger $N$ [30, 40].
+
+Identity mapping approximation. Another possible attack is by replacing the input transformation $g(\cdot)$ with the identity mapping for gradient estimation in BPDA backward pass (recall discussion in Sec. 3.3). We refer this attack as BPDA-I attack. Under this attack, several previous defenses (e.g., [33, 39, 14]) have been nullified.
+
+
+Figure 5. Robustness under BPDA. We evaluate the robust accuracy of our defense under two versions of BPDA attacks, which replace $\mathrm{sgn}(\cdot)$ in (3) with soft sign (in orange) and tanh (in green), respectively. The resulting two robust accuracies are compared with our defense model's standard accuracy (in blue) evaluated with clean (natural) images. Along X-axis, we repeat this evaluation, each time with an increasing number of LL-PGD steps (3) in our adversarial transformation $g(\cdot)$ . To highlight only the effect of the smooth approximations of $\mathrm{sgn}(\cdot)$ and $\Pi_{\mathbf{x}' \in \Delta_{\mathbf{x}}}(\cdot)$ , we factor out the randomness in our defense by disabling the random start at the beginning of (3). After the network gradient is estimated using BPDA, we use PGD to search for adversarial examples with a maximum perturbation size of 0.031 (in $L_{\infty}$ norm). The PGD search takes 50 iterations with a stepsize 0.002.
+
+We applied BPDA-I attack on our defense. The attack setup and results are summarized in Fig. 6. As the perturbation size $\Delta$ in the adversarial transformation increases, the robust accuracy of our method increases. The robust accuracy is always upper bounded by the standard accuracy, which decreases gradually as $\Delta$ increases. If $\Delta$ is too large, the excessive perturbations to the input make the network $f_{a}$ harder to learn and thus lower the standard and robust accuracies. Empirically, $\Delta = 0.2$ offers the best performance.
+
+Reparameterization. In Sec. 3.3, we described another BPDA strategy, one that uses reparameterization to smoothly approximate our adversarial transformation $g(\cdot)$ . As discussed therein, it is extremely hard to directly derive the reparameterization function. Instead, we attempted to train a Fully Convolutional Network [24] to represent $h(z)$ . We denote this network as $h(x; \theta)$ , whose weights are optimized with the loss function, $\ell(\theta) = \mathbb{E}_{x \in \mathcal{X}} \| h(x; \theta) - g(x) \|^2$ . Here $\mathcal{X}$ represents the distribution of natural images (we use CIFAR-10 as the training dataset).
+
+Our experiment shows that although we can reach a low loss value in training $h(\pmb{x}; \pmb{\theta})$ , the loss on test dataset always stays high, indicating that $h(\pmb{x}; \pmb{\theta})$ is always overfitted. As a result, the adversarial examples resulted in this way have almost no effect on our defense model—the accuracy drop under this attack is within $1\%$ from the standard accuracy. See Appendix A.2 for the details of this experiment.
+
+# 4.2. Gradient-Free Attacks
+
+Several attacking methods require no gradient information of the model, and they can be employed to potentially threaten our defense. As discussed in Sec. 2, these attacks fall into two categories: transfer attack and query-based at
+
+
+Figure 6. Robustness w.r.t. perturbation size. We test our defense robustness using independently trained defense models with increasing perturbation range $\Delta$ used in $g(\cdot)$ . The standard accuracy (blue curve) is measured using clean images. The robust accuracies under BPDA-I attack (Sec. 4.1) and WT attack (Sec. 4.2) are in orange and green, respectively. In our input transformation, we enable random start of (3). Therefore, in BPDA-I attack, we use 500 samples of $\tilde{g}(\cdot)$ for EOT gradient estimation. The gradient-descent setup is the same as that in the earlier experiments in Fig. 5.
+
+tack. Against both types of attacks we evaluate our defense.
+
+White-box transfer attack. In white-box setting, the adversary has full knowledge of our defense model. A tempting idea is to generate adversarial examples on the classifier model $f_{a}$ , and use them to transfer attack our defense model $f_{a}(g(\cdot))$ . Note that this differs from BPDA-I attack in Sec. 4.1, where $f_{a}$ is used only in the backward pass for gradient estimation while the forward pass still uses the full model $f_{a}(g(\cdot))$ . Here, in contrast, adversarial examples are generated solely on $f_{a}$ . We refer this attack as White-box Transfer (WT) attack, and report the robust accuracies of our defense in Fig. 6, along with the results under BPDA-I attack. We found that our model's robustness performances under both attacks are similar, and $\Delta = 0.2$ is the best choice.
+
+One may realize another attacking possibility by noticing the way we choose $f_{b}$ (on which we perform adversarial transformation). In Sec. 3.4, we present that $f_{b}$ should be chosen such that for a given natural image $\pmb{x}$ the average transformation $\mathbb{E}_{\tilde{g}\sim \mathcal{T}}\tilde{g} (\pmb {x})$ stays far from $\pmb{x}$ . Thus, it seems plausible to first generate adversarial examples on $f_{a}$ using PGD attack starting from the average transformation $\mathbb{E}_{\tilde{g}\sim \mathcal{T}}\tilde{g} (\pmb {x})$ , and use them to attack our full model $f_{a}(g(\cdot))$ . However, thanks to the large perturbation range $\Delta_{\pmb{x}}$ we use (recall Sec. 3.3), $\mathbb{E}_{\tilde{g}\sim \mathcal{T}}\tilde{g} (\pmb {x})$ is always far from a natural image (see the image in the red box of Fig. 4). Thus the adversarial examples generated in this way all have easily noticeable artifacts; they are not valid.
+
+Black-box attacks. We also evaluate our defense against the black-box attacks, including the black-box transfer attack [30] and two most recently introduced query-based attacks, HopSkipJumpAttack (HSJ) [9] and GenAttack (GA) [1]. In Table 2, we summarize the robust accuracies of our model under these attacks, along with two baselines from the same classification model ( $f_{a}$ ) optimized respectively using standard training and adversarial training.
+
+| Defense Model | Clean | Transfer | HSJ | GA |
| No defense | 92.9% | 1.3% | 3.6% | 5.8% |
| Madry et al. [26] | 81.7% | 77.5% | 72.1% | 78.4% |
| Ours | 82.9% | 78.1% | 82.0% | 81.9% |
+
+Table 2. Robustness under black-box attacks. In the transfer attack, adversarial examples are crafted on an independently trained ResNet18 model. The query-based attacks are performed using a third-party library foolbox [32] with default parameters to launch these attacks. All adversarial examples are restricted in the $L_{\infty}$ ball with a perturbation size of 0.031.
+
+# 5. Comparisons and Further Evaluation
+
+Comparisons. We now compare the robustness of our method with other state-of-the-art defense methods under white-box attacks. Unlike many others that can be attacked using PGD-type methods, our defense model is inherently non-differentiable, immune to direct PGD attacks. Therefore it is not possible to compare all these defense methods under exactly the same attacks. Instead, we compare the worst-case robustness of our method under all the attacks described in Sec. 4 with other methods.
+
+The comparison results on CIFAR-10 dataset are summarized in Table 3, where $A_{std}$ is the standard accuracy tested with clean images, and $A_{rob}$ is the worst-case robust accuracy under all tested attacks. The methods indicated by a star (*) are those circumvented by Athalye et al. [2]. We include their results therein as a reference. The other defense methods (including ours) all use ResNet18 as their classification model, trained with SGD (learning rate=0.1, momentum=0.9) for 80 epochs.
+
+On CIFAR-10 dataset, the most effective attack on our method is the black-box transfer attack (see Sec. A.4 for detail), the robust accuracy under this attack is $73.4\%$ . The worst-case robust accuracy of our method under BPDA attack and its variants (Sec. 4.1) is $80.2\%$ . Nevertheless, our robustness performance is significantly better than the state-of-the-art methods, as shown in Table 3.
+
+We also performed the comparisons on Tiny ImageNet dataset, and our method demonstrates significantly stronger robustness as well, improving robust accuracy from $18\%$ to $40.2\%$ . The results are reported in details in Appendix A.5.
+
+Sufficiency of EOT samples. Our defense is randomized, and when using EOT to attack our method we take 500 samples of $\tilde{g}(\cdot)$ (recall experiments in Fig. 6). Here we conduct additional experiments to ensure the sufficiency of using 500 samples for estimating the expectation. As shown in Fig. 7, when the perturbation size $\Delta$ is small and the number of samples is also small (e.g., $< 100$ ), increasing sample size indeed allows EOT to better attack our method. However, when the perturbation size is set to 0.2, the value we consistently use throughout all our evaluations, EOT attacks became persistently inefficient, regardless of the sample size. Therefore, we conclude that 500 samples in EOT allow thor
+
+| Method | Astd | Arob | Attack Method |
| No defense | 92.9% | 0.0% | PGD |
| Madry et al. [26] | 81.7% | 42.7% | PGD |
| Zhang et al. [54] | 80.4% | 44.6% | PGD |
| Xie et al. [51] | 83.8% | 45.2% | PGD |
| Guo et al.* [14] | 87.4% | 0.0% | BPDA |
| Buckman et al.* [7] | 89.8% | 0.0% | BPDA |
| Dhillon et al.* [10] | 81.1% | 0.0% | BPDA |
| Song et al.* [39] | 82.0% | 5.0% | BPDA |
| Ours (under BPDA) | 82.9% | 80.2% | BPDA |
| Ours | 82.9% | 73.4% | Transfer |
+
+Table 3. Comparisons on CIFAR-10. Methods indicated by * are those circumvented in [2]. We evaluate other methods using the code provided in the original papers, training them using the same network and hyperparameters as our method. The perturbation range of all adversarial examples is $\Delta = 0.031$ . The last column indicates the most efficient attacking method that produces the worst robustness. The second last row indicates the worst-case robustness of our method under all BPDA-type attacks, while the last row indicates our worst-case robustness under all attacks.
+
+
+Figure 7. Robustness w.r.t. EOT samples. When using EOT to attack our method, we sample our adversarial transformation with different random starts $\pmb{x} + \pmb{\delta}$ to estimate the expected $\nabla f_{a}(g(\pmb{x}))$ . When $\Delta = 0.1$ (blue curve), increasing the sample size allows EOT to better attack our defense, until it plateaus. But when $\Delta = 0.2$ (orange curve), EOT becomes persistently inefficient.
+
+ough evaluation of our defense against EOT.
+
+# 6. Conclusion
+
+We have presented a simple defense mechanism against adversarial attacks. Our method takes advantage of the numerical recipe that searches for adversarial examples, and turns this harmful process into a useful input transformation for better robustness of a network model. On CIFAR-10 and Tiny ImageNet datasets, it demonstrates state-of-the-art worst-case robustness under a wide range of attacks. We hope our work can offer other researchers a new perspective to study the adversarial defense mechanisms. In the future, we would like to better understand the theoretical properties of our adversarial transformation and their connections to stronger adversarial robustness.
+
+Acknowledgements. This work was supported in part by the National Science Foundation (CAREER-1453101, 1910839, 1717178, 1816041), a Columbia SEAS CKGSB Fellowship, and SoftBank Group.
+
+# 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. ACM, 2019. 2, 7
+[2] Anish Athalye, Nicholas Carlini, and David A. Wagner. Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples. In ICML, pages 274-283, 2018. 1, 2, 3, 4, 5, 6, 8
+[3] Anish Athalye, Logan Engstrom, Andrew Ilyas, and Kevin Kwok. Synthesizing robust adversarial examples. In International Conference on Machine Learning, pages 284-293, 2018. 2, 3, 4
+[4] Shumeet Baluja and Ian Fischer. Learning to attack: Adversarial transformation networks. In Proceedings of AAAI-2018, 2018. 5
+[5] Battista Biggio, Igino Corona, Davide Maiorca, Blaine Nelson, Nedim Šrndić, Pavel Laskov, Giorgio Giacinto, and Fabio Roli. Evasion attacks against machine learning at test time. In Joint European conference on machine learning and knowledge discovery in databases, pages 387-402. Springer, 2013. 1, 2
+[6] Wieland Brendel, Jonas Rauber, and Matthias Bethge. Decision-based adversarial attacks: Reliable attacks against black-box machine learning models. In International Conference on Learning Representations, 2018. 2
+[7] Jacob Buckman, Aurko Roy, Colin Raffel, and Ian Goodfellow. Thermometer encoding: One hot way to resist adversarial examples. In International Conference on Learning Representations, 2018. 1, 2, 6, 8
+[8] 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, 3, 4
+[9] Jianbo Chen and Michael I Jordan. Boundary attack++. Query-efficient decision-based adversarial attack. arXiv preprint arXiv:1904.02144, 2019. 2, 7
+[10] Guneet S. Dhillon, Kamyar Azizzadenesheli, Jeremy D. Bernstein, Jean Kossaifi, Aran Khanna, Zachary C. Lipton, and Animashree Anandkumar. Stochastic activation pruning for robust adversarial defense. In International Conference on Learning Representations, 2018. 2, 8
+[11] Yinpeng Dong, Fangzhou Liao, Tianyu Pang, Hang Su, Jun Zhu, Xiaolin Hu, and Jianguo Li. Boosting adversarial attacks with momentum. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 9185–9193, 2018. 2
+[12] Alhussein Fawzi, Hamza Fawzi, and Omar Fawzi. Adversarial vulnerability for any classifier. In Advances in Neural Information Processing Systems, pages 1178-1187, 2018. 1
+[13] Ian Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In International Conference on Learning Representations, 2015. 2
+[14] Chuan Guo, Mayank Rana, Moustapha Cisse, and Laurens van der Maaten. Countering adversarial images using input transformations. In International Conference on Learning Representations, 2018. 1, 2, 3, 5, 6, 8
+
+[15] 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
+[16] Nathan Inkawich, Wei Wen, Hai (Helen) Li, and Yiran Chen. Feature space perturbations yield more transferable adversarial examples. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2
+[17] Xiaojun Jia, Xingxing Wei, Xiaochun Cao, and Hassan Foroosh. Comdefend: An efficient image compression model to defend adversarial examples. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2
+[18] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, CiteSeer, 2009. 6
+[19] Alexey Kurakin, Ian J. Goodfellow, and Samy Bengio. Adversarial machine learning at scale. In International Conference on Learning Representations, 2017. 2, 3
+[20] Yandong Li, Lijun Li, Liqiang Wang, Tong Zhang, and Boqing Gong. Nattack: Learning the distributions of adversarial examples for an improved black-box attack on deep neural networks. In International Conference on Machine Learning, pages 3866-3876, 2019. 2
+[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 Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1778-1787, 2018. 2
+[22] Xuanqing Liu, Minhao Cheng, Huan Zhang, and Cho-Jui Hsieh. Towards robust neural networks via random self-ensemble. In Proceedings of the European Conference on Computer Vision (ECCV), pages 369–385, 2018. 2
+[23] Zihao Liu, Qi Liu, Tao Liu, Nuo Xu, Xue Lin, Yanzhi Wang, and Wujie Wen. Feature distillation: Dnn-oriented jpeg compression against adversarial examples. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2
+[24] 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. 7, 1
+[25] Xingjun Ma, Bo Li, Yisen Wang, Sarah M. Erfani, Sudanthi Wijewickrema, Grant Schoenebeck, Michael E. Houle, Dawn Song, and James Bailey. Characterizing adversarial subspaces using local intrinsic dimensionality. In International Conference on Learning Representations, 2018. 6
+[26] Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In International Conference on Learning Representations, 2018. 2, 8, 3
+[27] Chengzhi Mao, Ziyuan Zhong, Junfeng Yang, Carl Vondrick, and Baishakhi Ray. Metric learning for adversarial robustness. arXiv preprint arXiv:1909.00900, 2019. 2, 3
+[28] Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, and Pascal Frossard. Deepfool: a simple and accurate method to fool deep neural networks. In Proceedings of the IEEE con
+
+ference on computer vision and pattern recognition, pages 2574-2582, 2016. 2, 3
+[29] Aamir Mustafa, Salman Khan, Munawar Hayat, Roland Goecke, Jianbing Shen, and Ling Shao. Adversarial defense by restricting the hidden space of deep neural networks. In The IEEE International Conference on Computer Vision (ICCV), October 2019. 2
+[30] Nicolas Papernot, Patrick McDaniel, Ian Goodfellow, Somesh Jha, Z. Berkay Celik, and Ananthram Swami. Practical blackbox attacks against machine learning. In Proceedings of the 2017 ACM on Asia Conference on Computer and Communications Security, ASIA CCS '17, pages 506-519, New York, NY, USA, 2017. ACM. 2, 6, 7
+[31] Edward Raff, Jared Sylvester, Steven Forsyth, and Mark McLean. Barrage of random transforms for adversarially robust defense. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2
+[32] Jonas Rauber, Wieland Brendel, and Matthias Bethge. Foolbox: A python toolbox to benchmark the robustness of machine learning models. arXiv preprint arXiv:1707.04131, 2017.8
+[33] Pouya Samangouei, Maya Kabbab, and Rama Chellappa. Defense-GAN: Protecting classifiers against adversarial attacks using generative models. In International Conference on Learning Representations, 2018. 1, 2, 3, 4, 5, 6
+[34] Ali Shafahi, W Ronny Huang, Christoph Studer, Soheil Feizi, and Tom Goldstein. Are adversarial examples inevitable? arXiv preprint arXiv:1809.02104, 2018. 1
+[35] Ali Shafahi, Mahyar Najibi, Amin Ghiasi, Zheng Xu, John Dickerson, Christoph Studer, Larry S Davis, Gavin Taylor, and Tom Goldstein. Adversarial training for free! arXiv preprint arXiv:1904.12843, 2019. 2
+[36] 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
+[37] Yucheng Shi, Siyu Wang, and Yahong Han. Curls & whey: Boosting black-box adversarial attacks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2
+[38] Aman Sinha, Hongseok Namkoong, and John Duchi. Certifiable distributional robustness with principled adversarial training. In International Conference on Learning Representations, 2018. 2
+[39] Yang Song, Taesup Kim, Sebastian Nowozin, Stefano Ermon, and Nate Kushman. Pixeldefend: Leveraging generative models to understand and defend against adversarial examples. In International Conference on Learning Representations, 2018. 1, 2, 3, 4, 6, 8
+[40] Dong Su, Huan Zhang, Hongge Chen, Jinfeng Yi, Pin-Yu Chen, and Yupeng Gao. Is robustness the cost of accuracy? - a comprehensive study on the robustness of 18 deep image classification models. In The European Conference on Computer Vision (ECCV), September 2018. 6
+[41] Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus.
+
+Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013. 1, 2
+[42] Olga Taran, Shideh RezaEIFar, Taras Holotyak, and Slava Voloshynovskiy. Defending against adversarial attacks by randomized diversification. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2
+[43] Simen Thys, Wiebe Van Ranst, and Toon Goedemé. Fooling automated surveillance cameras: adversarial patches to attack person detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 0–0, 2019. 1
+[44] Florian Tramér, Alexey Kurakin, Nicolas Papernot, Ian Goodfellow, Dan Boneh, and Patrick McDaniel. Ensemble adversarial training: Attacks and defenses. In International Conference on Learning Representations, 2018. 2, 3, 4
+[45] Dimitris Tsipras, Shibani Santurkar, Logan Engstrom, Alexander Turner, and Aleksander Madry. Robustness may be at odds with accuracy. arXiv preprint arXiv:1805.12152, 2018. 1, 3
+[46] Jianyu Wang and Haichao Zhang. Bilateral adversarial training: Towards fast training of more robust models against adversarial attacks. In Proceedings of the IEEE International Conference on Computer Vision, pages 6629-6638, 2019. 2
+[47] Robert Edwin Wengert. A simple automatic derivative evaluation program. Communications of the ACM, 7(8):463-464, 1964. 4
+[48] Chaowei Xiao, Bo Li, Jun-Yan Zhu, Warren He, Mingyan Liu, and Dawn Song. Generating adversarial examples with adversarial networks. In Proceedings of the 27th International Joint Conference on Artificial Intelligence, pages 3905-3911. AAAI Press, 2018. 5
+[49] Chang Xiao, Peilin Zhong, and Changxi Zheng. Enhancing adversarial defense by $k$ -winners-take-all. International Conference on Learning Representations (ICLR), 2019. 1, 2
+[50] Cihang Xie, Jianyu Wang, Zhishuai Zhang, Zhou Ren, and Alan Yuille. Mitigating adversarial effects through randomization. In International Conference on Learning Representations, 2018. 1, 2, 3, 6
+[51] Cihang Xie, Yuxin Wu, Laurens van der Maaten, Alan L Yuille, and Kaiming He. Feature denoising for improving adversarial robustness. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 501-509, 2019. 2, 8
+[52] Cihang Xie, Zhishuai Zhang, Yuyin Zhou, Song Bai, Jianyu Wang, Zhou Ren, and Alan L. Yuille. Improving transferability of adversarial examples with input diversity. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 2
+[53] Dinghuai Zhang, Tianyuan Zhang, Yiping Lu, Zhanxing Zhu, and Bin Dong. You only propagate once: Painless adversarial training using maximal principle. arXiv preprint arXiv:1905.00877, 2019. 2
+[54] Hongyang Zhang, Yaodong Yu, Jiantao Jiao, Eric Xing, Laurent El Ghaoui, and Michael Jordan. Theoretically principled trade-off between robustness and accuracy. In International Conference on Machine Learning, pages 7472-7482, 2019. 2, 8, 3
\ No newline at end of file
diff --git a/onemanstrashisanothermanstreasureresistingadversarialexamplesbyadversarialexamples/images.zip b/onemanstrashisanothermanstreasureresistingadversarialexamplesbyadversarialexamples/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..196ebce2ae78c9dc18525c3025cd353096462646
--- /dev/null
+++ b/onemanstrashisanothermanstreasureresistingadversarialexamplesbyadversarialexamples/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0668ac3f1669e5b7f5ca1261c6680a5737691c0f4afb06ff5768fc19564c306e
+size 254648
diff --git a/onemanstrashisanothermanstreasureresistingadversarialexamplesbyadversarialexamples/layout.json b/onemanstrashisanothermanstreasureresistingadversarialexamplesbyadversarialexamples/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..31fbcfb81a8bbe19547145b3dfe255aa05dc7f41
--- /dev/null
+++ b/onemanstrashisanothermanstreasureresistingadversarialexamplesbyadversarialexamples/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ee839737ab65803add7e890ffbd6f5b5590d26651076199dd525d6754b834545
+size 617015
diff --git a/oneshotadversarialattacksonvisualtrackingwithdualattention/0a30085b-0678-4734-9aaa-fcee1a3aeb5e_content_list.json b/oneshotadversarialattacksonvisualtrackingwithdualattention/0a30085b-0678-4734-9aaa-fcee1a3aeb5e_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..63d9f3717ccd30f228a9c7559f0229cdee2fdd0f
--- /dev/null
+++ b/oneshotadversarialattacksonvisualtrackingwithdualattention/0a30085b-0678-4734-9aaa-fcee1a3aeb5e_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0c3bc827901dc07a6844e1ebf9b60e924cfd5347891f12c2ffe94acd3a415ca1
+size 75791
diff --git a/oneshotadversarialattacksonvisualtrackingwithdualattention/0a30085b-0678-4734-9aaa-fcee1a3aeb5e_model.json b/oneshotadversarialattacksonvisualtrackingwithdualattention/0a30085b-0678-4734-9aaa-fcee1a3aeb5e_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..cd9d2c1e3359f6bed9e08ae065ae9ee39c50d18d
--- /dev/null
+++ b/oneshotadversarialattacksonvisualtrackingwithdualattention/0a30085b-0678-4734-9aaa-fcee1a3aeb5e_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:088052cea610111ae8fd97d7a9854cc14fd7ee3552961fb5884441b25f6d9214
+size 90914
diff --git a/oneshotadversarialattacksonvisualtrackingwithdualattention/0a30085b-0678-4734-9aaa-fcee1a3aeb5e_origin.pdf b/oneshotadversarialattacksonvisualtrackingwithdualattention/0a30085b-0678-4734-9aaa-fcee1a3aeb5e_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..ee0f550ffc9ec7a0d9467f5da3ec3f7bfbe6a19c
--- /dev/null
+++ b/oneshotadversarialattacksonvisualtrackingwithdualattention/0a30085b-0678-4734-9aaa-fcee1a3aeb5e_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:173f14224a31bff5b483f1894c1b9ef8c219bffb55838a06fe2d5d7d7243b823
+size 2221618
diff --git a/oneshotadversarialattacksonvisualtrackingwithdualattention/full.md b/oneshotadversarialattacksonvisualtrackingwithdualattention/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..d4dfd78632205ae6665f48dd531b4340c48ce1ec
--- /dev/null
+++ b/oneshotadversarialattacksonvisualtrackingwithdualattention/full.md
@@ -0,0 +1,330 @@
+# One-shot Adversarial Attacks on Visual Tracking with Dual Attention
+
+Xuesong Chen\*1 Xiyu Yan\*2 Feng Zheng†3 Yong Jiang\*2,4 Shu-Tao Xia\*4 Yong Zhao1 Rongrong Ji\*4,5 1Peking University, School of ECE 2Tsinghua University 3Southern University of Science and Technology 4Peng Cheng Laboratory 5Xiamen University
+
+cedarchen@pku.edu.cn, yanqy17@mails.tsinghua.edu.cn, zhengf@sustech.edu.cn
+
+# Abstract
+
+Almost all adversarial attacks in computer vision are aimed at pre-known object categories, which could be offline trained for generating perturbations. But as for visual object tracking, the tracked target categories are normally unknown in advance. However, the tracking algorithms also have potential risks of being attacked, which could be maliciously used to fool the surveillance systems. Meanwhile, it is still a challenging task that adversarial attacks on tracking since it has the free-model tracked target. Therefore, to help draw more attention to the potential risks, we study adversarial attacks on tracking algorithms. In this paper, we propose a novel one-shot adversarial attack method to generate adversarial examples for free-model single object tracking, where merely adding slight perturbations on the target patch in the initial frame causes state-of-the-art trackers to lose the target in subsequent frames. Specifically, the optimization objective of the proposed attack consists of two components and leverages the dual attention mechanisms. The first component adopts a targeted attack strategy by optimizing the batch confidence loss with confidence attention while the second one applies a general perturbation strategy by optimizing the feature loss with channel attention. Experimental results show that our approach can significantly lower the accuracy of the most advanced Siamese network-based trackers on three benchmarks.
+
+# 1. Introduction
+
+Visual Object Tracking (VOT) plays a significant role in practical security applications such as intelligent surveillance systems. Recent years have witnessed many breakthroughs in visual object tracking algorithms [2, 25, 5, 17,
+
+
+Figure 1. We only perturb slightly the target patch in the initial frame of a video, resulting in tracking failure in subsequent frames. First line: the original video frames are successfully tracked. Second line: attacking the target only in the initial frame could paralyze the tracker. The green boxes represent the ground truth, and the red boxes represent the tracking result of the tracker.
+
+28, 16] brought by the progress of deep learning. For example, the SiamRPN++ tracker [16] based on Siamese network has reached $91\%$ precision on the OTB100 benchmark [30]. However, whether the deep learning-based object tracking algorithms are as powerful as they seem is a question to worth pondering.
+
+Adversarial attacks on deep learning models in computer vision have attracted increasing interest in the past years [1]. There are many adversarial attacks against deep networks successfully fooling image classifiers and object detectors. For example, Szegedy et al. demonstrated that putting small perturbations in images that remain (almost) imperceptible to the human visual system could fool deep learning models into misclassification [24]. Most recently, [26] created a small adversarial patch that is used as a cloaking device to hide persons from a person detector. Commonly, almost all these attacks are not aimed at free-models (i.e. arbitrary target) but the pre-known categories. Actually, adding adversarial perturbations on the free-model target patch in a cer-
+
+tain frame may cause state-of-the-art trackers to lose the target in subsequent frames, which could be maliciously used to fool surveillance systems. Thus, it is necessary to study adversarial attacks on visual object tracking algorithms to help improve their prevention against these potential risks.
+
+However, attacking a tracker to lose the object in continuous video frames is a challenging task. First, online visual tracking is unable to pre-know the category of tracked and to learn beforehand because of the free-model tacked target and the continuous video frames. Secondly, it is difficult to set an optimization objective to generate adversarial examples since a successful attack on the tracking task is significantly different from that on the multi-classification task which could merely maximize the probability of the class with the second-highest confidence. Specifically, the tracking task in each frame is the same as that of classifying all candidate boxes into one positive sample and the others into negative samples. Such a special binary classification problem makes it difficult to perform a successful attack if only one candidate box is selected to increase its confidence.
+
+To address these challenges, in this paper, we study the adversarial attacks against visual object tracking. Our attack target is a series of excellent trackers based on Siamese networks, in which the tracking accuracy and efficiency are well-balanced due to the unique advantages of off-line learning and the abandonment of similarity updating. For these trackers, we propose a one-shot attack framework—only slightly perturbing the pixel values of the object patch in the initial frame of a video, which achieves the goal of attacking the tracker in subsequent frames, i.e. failure to the tracking of SiamRPN (see Fig. 1).
+
+Specifically, a novel attack method with dual losses and dual attention mechanisms is explored to generate adversarial perturbation on the target patch at the initial frame. Our optimization objective of the proposed attack method consists of two components, and each loss is combined with its corresponding well-designed attention weight to further improve attack abilities. On the one hand, we formulate such Siamese network-based tracking problems as a specific classification task—the candidates of tracking are treated as the labels of classification, for a successful matching of the target template and the candidate box with the maximum confidence. Thus, we can pertinently perturb with a tracker to make it match "the best box". Here, we optimize the batch confidence loss by suppressing the confidence of excellent candidates and stimulate that of moderate candidates. To further distinguish the high-quality candidate boxes, the distance-oriented attention mechanism is adopted to widen the distance between excellent candidates. On the other hand, we apply a general perturbation strategy by optimizing the feature loss that maximizes the distance between the clean image and its adversarial example in the feature space for a powerful attack. To further ensure
+
+the generalization ability of the one-shot attack, the feature channel-wise activation-oriented attention of feature maps is taken into account under limited perturbation conditions.
+
+Eventually, we evaluate our attacks on three tracking benchmarks, including OTB100 [30], LaSOT [4], and GOT10K [11]. The experimental results show that our approaches can significantly lower the accuracy of the most advanced Siamese network-based trackers.
+
+In summary, the key contributions of this paper are as follows.
+
+- To the best of our knowledge, we are the first to study one-shot adversarial attacks against VOT. The proposed one-shot attack method against the trackers based on Siamese networks can make them fail to track in a video by only disturbing the initial frame.
+- We present a new optimization objective function with dual attention mechanisms to generate adversarial perturbations for ensuring the efficiency of the one-shot attack.
+- Experimental results on three popular benchmarks show that our method is able to significantly lower the accuracy of the state-of-the-art Siamese network-based trackers.
+
+# 2. Background and Related Work
+
+In this section, we first briefly describe the background of adversarial attack problems. Next, the development of adversarial attack methods in computer vision (CV) tasks is reviewed. Lastly, we discuss the trackers based on Siamese networks that are adopted as our attack targets in this work.
+
+# 2.1. Background of Adversarial Attacks
+
+It is necessary to introduce some common technical terms related to the adversarial attacks on deep learning models in computer vision and the remaining paper also follows the same definitions of the terms.
+
+Adversarial example. It is a concept related to a natural clean example and is obtained by a specific algorithm processing to make the incorrect decision of models. It can be generated by global pixel perturbations of clean samples, or by adding adversarial patches to clean samples. The global pixel perturbation is applied to our work.
+
+Adversarial attacks. According to the degree of the attacker's understanding of the model, it can be classified into white-box attacks and black-box attacks. Also, through the target attacked by the attacker, it can be divided into targeted attacks and non-targeted attacks.
+
+White-box attacks. It means that when the attackers know all the knowledge of the model, including the structure, the parameters and the values of the trainable weights of the
+
+neural network model, they can generate adversarial examples to mislead the model.
+
+Black-box attacks. It means that, when the attackers only have limited or no information about the model, they construct adversarial examples that can fool most machine learning models.
+
+Targeted attacks. It is usually used to attack classifiers. In this case, the attacker wants to change the prediction result to some specified target category.
+
+Non-targeted attacks. On the contrary, in this case, the goal of attackers is simply to make the classifier give false predictions, regardless of which category the error classification becomes. Our attack is in the middle of these two cases.
+
+Our work focuses on white-box, test-time attacks on visual object tracking algorithms, and other families of attacks not directly relevant to our setting are not discussed here.
+
+# 2.2. Adversarial Attacks in CV Tasks
+
+Szegedy et al. [24] first propose to generate adversarial examples for classification models that successfully misleading the classifier. Following that, Goodfellow et al. [7] extend this line and create a Fast Gradient Sign Method (FGSM) to generate adversarial attacks on images. Besides, attack methods based on the gradient include BIM [15], JSMA [22], DFool [20], Carlini and Wagner Attacks (C&W) [3], etc. Most of these attacks are directed at image classification that is the most basic visual task.
+
+Recently, there are several explorations of the adversarial attacks on some high-level tasks, such as semantic segmentation and object detection. For example, [31] first transforms an attack task into a generation task and proposes a Dense Adversary Generation (DAG) method to optimize the loss function for the generation of adversarial examples, and then uses the generated adversarial example to attack the segmentation and detection models based on the deep network. This transformation makes the attacks no longer limited to the traditional gradient-based algorithms but also introduces more generation models, such as GAN. Then, [26] presents an approach to generate adversarial patches to targets with lots of intra-class variety and successfully hide a person from a person detector.
+
+Most recently, PAT [29] and SPARK [9] generate adversarial samples against VOT through iterative optimization on video frames. However, the attack strategy with online iterative restricts their application scenarios. First, to generate adversarial sequences, they always need to access to the weights of the models during the attack. Second, the forward-backward propagation iteration is difficult to meet the real-time requirements of the tracking task.
+
+# 2.3. Siamese Network-based Tracking
+
+Visual Object Tracking (VOT) aims to predict the position and size of an object in a video sequence after the tar
+
+get has been specified in the first frame [18]. Recently, the Siamese network-based trackers [25, 2, 8, 32, 27, 10] have drawn significant attention due to their simplicity and effectiveness. Bertinetto et al. [2] first proposed a network structure based on Siamese fully convolutional networks for object tracking (SiamFC). Since then, many state-of-the-art algorithms of tracking have been proposed by researchers [32, 10, 17, 16, 28]. For example, the representative tracker—SiamRPN [17] introduces a regional recommendation network after the Siamese network and combines classification and regression for tracking.
+
+These Siamese trackers formulate the VOT problem as a cross-correlation problem and learn a tracking similarity map from deep models with a Siamese network structure, one branch for learning the feature presentation of the target, and the other one for the search area. To ensure tracking efficiency, the offline learned siamese similarity function is often fixed during the running time. Meanwhile, the target template is acquired in the initial frame and remains unchanged in the subsequent video frames.
+
+In the tracking phase of each frame, the target template and the search region including several candidate boxes are fed into the Siamese network to generate a confidence map that represents the confidence of the candidate boxes. It is worth noting that the Gaussian windows are widely applied to refine the confidence of the candidate boxes on the inference phase in tracking tasks. Different from the Non-Maximum Suppression (NMS) algorithm [21] used in detection tasks [23, 6] for suppressing the candidates with low confidence, the role of Gaussian windows in tracking is to weaken the confidence of the candidate boxes far from the center location of the predicted target in the last frame. The explanation for which the Gaussian window can be effectively used is based on the prior knowledge of the continuity of video frames in tracking tasks, that is, the target could not move too far in the two adjacent frames.
+
+# 3. Methodology
+
+In this section, we first introduce the problem definition of the proposed adversarial attack method for tracking algorithms. Then a one-shot attack framework setting against Siamese network-based trackers is detailed. Lastly, we elaborate on the proposed dual attention attack method.
+
+# 3.1. Problem Definition
+
+Our attack targets the most popular VOT pipeline—Siamese network-based trackers described above, which formulate the VOT as learning a general similarity map by cross-correlation between the feature representations learned for the target template and the search region (see Fig. 2). In these trackers, the offline learned siamese similarity function and the target template given in the first frame are fixed during the running time. Such a tracking
+
+
+Figure 2. The framework of the one-shot attack against Siamese trackers by dual attention mechanisms.
+
+process without model updates and template updates makes it possible to encounter attacks. Note that other trackers with updating, such as CREST, MDNet and ATOM, are more easily to be attacked because the adversarial information will lead the feature of the model to draft to the wrong space. Then they almost cannot work after attacks due to the wrong update. They are thus not discussed in this paper.
+
+Although there are many existing attack methods for other high-level CV tasks such as detection and classification, it is quite a challenge to attack tracking tasks because tracking tasks are very different from these tasks. Specifically, we analyze the characteristics of Siamese trackers compared with detection and classification.
+
+First, online visual tracking is unable to pre-know the category of the tracked objects because the target position is only given in the first frame of a video for the model training. Therefore it cannot off-line learn a mechanism to perturb the pixel values in advance while it is impossible to generate general class-level adversarial perturbations, which are just commonly used in attack algorithms against classification and detection.
+
+Second, the concept of failure tracking, which is different from misclassification, that maximizing the probability of the category with the second-highest confidence to exceed the probability of the correct category for the targeted attack. As was explained above, the Siamese trackers output confidence maps that metric the similarity of the target and the candidates in the search region. The candidate with the highest confidence in the rankings is selected for the prediction of the object. Only simple maximizing the box with the second-highest confidence does not lead to failed tracking. For example, all anchors (candidate boxes) in SiamRPN are employed for regression to the location of the target which enables a considerable number of anchors to accurately return to the target location.
+
+Last but not least, different from the NMS algorithm used in the detection, the Gaussian windows are widely applied to refine the box confidences in the tracking task, which induces difficulties to balance the strength and the success of the attack. For example, when only consider
+
+ing the power of the attack, the box farthest from the object is the best perturbation target. However, the confidences of distant boxes are more suppressed by Gaussian windows and selecting these boxes as the target may result in a failed attack.
+
+In response to these challenges, we propose several criteria to generate the adversarial perturbations.
+
+Firstly, it is necessary to generate matching adversarial perturbations for arbitrary targets of tracking because of the unknown category. Therefore, we propose to only add an adversarial perturbation in the initial frame of each video, namely one-shot attack.
+
+Secondly, our adversarial attack must be able to perturb a certain number of boxes, which can increase the success rate of the attack. Specifically, adding the perturbations can reduce the confidence of several high-quality boxes and raise the confidence of many low-quality boxes, resulting in that tracker outputs wrong prediction boxes with large deviations. Thus, we propose to learn attack perturbations by optimizing a batch confidence loss. Besides, we need to consider general attack by designing a feature loss function to ensure the attack power. Therefore, two optimization strategies are introduced by us. One is the batch confidence loss while the other is attacking generally all candidates from the feature space of CNNs.
+
+Lastly, to further improve the attack power, we add both attention mechanisms to these two loss functions. On the batch confidence loss, we distinctively suppress different candidates using confidence attention. On the feature loss, we add attention to the channels of the feature map to distinguish the importance of different channels by feature attention, which is inspired by [12].
+
+Considering these criteria, we propose the one-shot attack based on the dual attention, which is detailed in the next two subsections.
+
+# 3.2. One-shot Attack with Dual Loss
+
+Given the initial frame and the ground-truth bounding box of the tracking target, we could obtain the target patch $z$ . The goal of our one-shot attack is to generate an adver
+
+sarial target image $z^{*}$ ( $z^{*} = z + \Delta z$ ) with slight pixel value perturbation $\Delta z$ only in the initial frame, which could make the tracking results away from the ground-truth (i.e. failure tracking). We define the adversarial example attacking the tracker as follows:
+
+$$
+\boldsymbol {z} ^ {*} = \underset {| z _ {k} - z _ {k} ^ {*} | \leq \varepsilon} {\arg \min } \mathcal {L} (\boldsymbol {z}, \boldsymbol {z} ^ {*}) \tag {1}
+$$
+
+where $z_{k}$ denotes the per pixel of clean image $\mathbf{z}$ while $z_{k}^{*}$ refers to which of the adversary $\mathbf{z}^*$ , and $\varepsilon$ stands for the maximum perturbation range of the per-pixel value in the image. In our experiments, $\varepsilon$ is set to 16, for which the global perturbations with such intensity are considered to be an imperceptible change in the human visual system. The batch confidence loss function $\mathcal{L}_1$ and feature loss function $\mathcal{L}_2$ are detailed below.
+
+Batch Confidence Loss. Our one-shot attack only occurs in the initial frame of each video, so we simulate the tracking process in the initial frame (given the tracking template) to generate the adversarial example. Note that the test has not yet started in this phase for the general tracking task.
+
+Follow the Siamese trackers, we assume that the search region $\mathbf{X}$ is around the target and twice the size of it, includes $n$ candidates $\{\pmb{x}_1,\dots,\pmb{x}_n\}$ . Let $f(z,\pmb{x}_i)$ denotes the tracking model which takes $z\in R^{m}$ and $\pmb{x}_i\in R^m$ as inputs and the confidence of each candidate as the output. The output confidence $f(z,\pmb{x}_i)$ of the $n$ candidates have a ranking $\mathcal{R}_{1:n}$ . Thus the batch confidence loss function can be defined as follows:
+
+$$
+\mathcal {L} _ {1} = \sum_ {\mathcal {R} _ {1: p}} f \left(\boldsymbol {z} ^ {*}, \boldsymbol {x} _ {i}\right) - \sum_ {\mathcal {R} _ {q: r}} f \left(\boldsymbol {z} ^ {*}, \boldsymbol {x} _ {i}\right), \tag {2}
+$$
+
+$$
+s. t. \quad | z _ {k} - z _ {k} ^ {*} | \leq \varepsilon .
+$$
+
+where $\mathcal{R}_{1:p}$ denotes the sort in the first $p$ , $\mathcal{R}_{q:r}$ denotes the sort from $q$ to $r$ in the confidence ranking. The purpose of this approach based on batch confidence is to suppress the candidates with high confidence and stimulate the candidates with moderate confidence.
+
+Feature Loss. Considering the challenges come from the Gaussian window and to balance the strength and success of the attack power, we apply another strategy that is generally attacking all candidates from the feature space of CNNs.
+
+Let $\phi(\cdot)$ represents the feature map of CNNs, then the Euclidean distance of the feature maps of $z$ and $z^*$ are maximized. Thus the loss function is defined as follows:
+
+$$
+\mathcal {L} _ {2} = - \sum_ {j = 1: C} | | \phi_ {j} \left(\boldsymbol {z} ^ {*}\right) - \phi_ {j} (\boldsymbol {z}) | | _ {2}, \tag {3}
+$$
+
+$$
+s. t. \quad | z _ {k} - z _ {k} ^ {*} | \leq \varepsilon .
+$$
+
+where $C$ denotes the channel of the feature maps.
+
+# 3.3. Dual Attention Attacks
+
+Furthermore, we add attention mechanisms to both two loss functions to further improve the attack power.
+
+Confidence Attention. By applying the confidence attention mechanism to the loss function, we can distinguish the degree of suppression and stimulation for the candidates with different confidences. The Eq. (2) is rewritten as
+
+$$
+\mathcal {L} _ {1} ^ {*} = \sum_ {\mathcal {R} _ {1: p}} \left\{w _ {i} \cdot f \left(\boldsymbol {z} ^ {*}, \boldsymbol {x} _ {i}\right) \right\} - \sum_ {\mathcal {R} _ {q: r}} \left\{f \left(\boldsymbol {z} ^ {*}, \boldsymbol {x} _ {i}\right) \right\} \tag {4}
+$$
+
+$$
+s. t. \quad \left| z _ {k} - z _ {k} ^ {*} \right| \leq \varepsilon .
+$$
+
+with $w_{i}$ defined as
+
+$$
+w _ {i} = \frac {1}{a + b \cdot \tanh \left(c \cdot \left(d \left(\boldsymbol {x} _ {i}\right) - d \left(\boldsymbol {x} _ {1}\right)\right)\right)}, \tag {5}
+$$
+
+where $d(\pmb{x}_i)$ denotes the coordinates distance between the any $i$ -th candidate $\pmb{x}_i$ and first $\pmb{x}_1$ in the sorted confidence list. Eq. (5) is inspired by the Shrinkage loss [19], in which $a, b,$ and $c$ are controlling hyper-parameters. Specially, $c$ stands for the shrinkage rate, and both $a$ and $b$ limit the weight $w_i$ to the range of $\left( \frac{1}{a + b}, \frac{1}{a} \right)$ .
+
+Feature Attention. Because of the limited perturbation conditions, we further consider the channel-wise activation-guided attention of feature maps to distinguish the importance of different channels, which will guarantee the generalization ability of the one-shot attack. Similarly, the Eq. (3) is rewritten as:
+
+$$
+\mathcal {L} _ {2} ^ {*} = - \sum_ {j = 1: C} \| w _ {j} ^ {\prime} \cdot \left\{\left(\phi_ {j} \left(\boldsymbol {z} ^ {*}\right) - \phi_ {j} (\boldsymbol {z}) \right\} \right\| _ {2}, \tag {6}
+$$
+
+$$
+s. t. \quad | z _ {k} - z _ {k} ^ {*} | \leq \varepsilon .
+$$
+
+and $w_{j}$ is defined as
+
+$$
+w _ {j} = \frac {1}{a ^ {\prime} + b ^ {\prime} \cdot \tanh \left( \right.c ^ {\prime} \cdot \left(m \left(\phi_ {j} (z)\right) - m \left(\phi_ {j} (z)\right) _ {\min }\right))}, \tag {7}
+$$
+
+where $m(\cdot)$ and $m(\cdot)_{\min}$ stand for the mean of each channel $\phi_j(z)$ and the minimum mean value, $a^\prime ,b^\prime$ and $c^\prime$ are controlling hyper-parameters.
+
+Dual Attention Loss. We combine the advantages of $\mathcal{L}_1^*$ with accurate attacks and $\mathcal{L}_2^*$ with general attacks, and eventually obtain the dual attention loss:
+
+$$
+\mathcal {L} = \alpha \mathcal {L} _ {1} ^ {*} + \beta \mathcal {L} _ {2} ^ {*}, \tag {8}
+$$
+
+where the factors $\alpha$ and $\beta$ will be determined empirically.
+
+The goal of our optimizer is to minimize the total loss $\mathcal{L}$ . In the implementation, we use Adam optimizer [13] to minimize the loss by iteratively perturbing the pixels along the gradient directions within the patch area, and the generation process stops when the number of iterations reaches 100 or the first candidate of the ranking $\mathcal{R}_{\tau}[1]$ behinds $p$ in the initial ranking $\mathcal{R}_0$ . The whole attack process is presented in Algorithm 1.
+
+Algorithm 1: One-shot White-box Attack for VOT
+Input: The target crop $z$ in the first frame image of a video; The tracker with Siamese network $f(\cdot, \cdot)$
+Output: An adversarial example $z^{*}$ .
+1 Initialize the adversary $z^{*} = z$ ;
+2 Initialize the iterative variable $\tau = 0$ ;
+3 Feed clean $z$ and search area $X$ containing $n$ candidates $x_{i}$ into the network to get confidence map $f(z, x_{i})$ ;
+4 Sort $f(z, x_{i})$ and obtain the initial Rank $\mathcal{R}_0[1:n]$ ;
+5 Save the candidate indexes in original Rank $\mathcal{R}_0[1:n]$ ;
+6 while Number of iterations $\tau++<100$ do
+7 Sort $f(z^{*}, x_{i})$ and get the new Rank $\mathcal{R}_{\tau}[1:n]$ ;
+8 if the sort of the candidate in $\mathcal{R}_{\tau}[1] > p$ in $\mathcal{R}_0$ then break;
+9 else
+10 dual attention attack;
+11 $z^{*} := z_{\tau}^{*}$ ;
+12 end
+13 end
+
+# 4. Attack Evaluation
+
+In this section, we describe our experimental settings and analyze the attack results of the proposed dual attention attack algorithm against different trackers on 3 challenge tracking datasets, including OTB100 [30], LaSOT [4], and GOT10K [11]. Then we evaluate the effectiveness of the proposed method by ablation studies on various contrast experiments.
+
+# 4.1. Experimental Setting
+
+Attacked Targets. We show our adversarial attack results on four representative Siamese network based trackers, including SiamFC [2], SiamRPN [17], SiamRPN++ [16], and SiamMask [28]. Besides, our experiments employ SiamRPN++ with two different backbones, including ResNet-50 and MobileNet-v2, which are called SiamPRN++(R) and SiamPRN++(M) respectively below.
+
+Evaluation Metrics. For fair evaluation, the standard evaluation methods are applied to measure our attack effect. In the OTB100 and LaSOT datasets, we applied the one-pass evaluation (OPE) with the precision plot and success plot metrics. The precision plot reflects the center location error between tracking results and ground-truth. The threshold distance is set to 20 pixels. Meanwhile, the success rate measures the overlap ratio between the detected box and ground-truth which could reflect the accuracy of tracking in scales. In the GOT10K dataset, we applied Average of Overlap rates (AO) between tracking results and ground-truths over all frames and Success Rate (SR) with a threshold of 0.50. We view successful attacks and failed trackings as consistent. Specifically, the lower the accuracy of the tracking is, the higher the success rate of the attack is.
+
+Table 1. Comparison of results with original, Random noise, and our attack of different Siamese trackers on the OTB100 dataset in terms of precision and success rate.
+
+| Trackers | Precision (%) | Success Rate(%) |
| Org | Noise | Ours | Org | Noise | Ours |
| SiamFC | 76.5 | 73.4 | 27.1 | 57.8 | 56.0 | 32.3 |
| SiamRPN | 87.6 | 83.1 | 27.8 | 66.6 | 63.3 | 20.4 |
| SiamRPN++(R) | 91.4 | 85.0 | 33.7 | 69.6 | 64.9 | 25.2 |
| SiamRPN+(M) | 86.4 | 80.7 | 35.3 | 65.8 | 58.0 | 26.1 |
| SiamMask | 83.7 | 83.6 | 65.0 | 64.6 | 62.6 | 48.1 |
+
+Implementation Details. Our algorithm is implemented by Pytorch and runs on the NVIDIA Tesla V100 GPU. For each attacked video, we use Adam optimizer [13] to optimize the generated adversarial perturbation, with 100 iterations and a learning rate of 0.01. Based on the different purposes of the attention modules, we use different hyperparameter settings. Specifically, for the confidence attention module, we set $a = 0.5$ , $b = 1.5$ and $c = 0.2$ . Meanwhile, for the feature attention module, we set $a' = 2$ , $b' = -1$ , and $c' = 20$ , respectively. To balance the weight parameters $\alpha$ and $\beta$ , we set $\beta = 1$ while $\alpha$ is a model-sensitive parameter in the range of 0.2 to 0.8 in our experiments. In Eq. (2), the hyper-parameters of $p, q, r$ are set to 45 ( $9 \cdot 5$ anchors), 90, and 135, respectively. In addition, all the results presented below are the averaged value of repeated five times experiments under these settings.
+
+# 4.2. Overall Attack Results
+
+Results on OTB100. Table 1 compares the overall results of theses trackers in OTB100 dataset. We compare random noises with our adversarial examples on the target patch in the initial frame and observe that they impact very little on tracking results, but our adversarial attack can cause almost devastating results to the tracking methods. Specifically, the precision of adding random noises to SiamFC, SiamRPN, SiamRPN++(R), SiamRPN++(M) are reduced by $3.1\%$ , $4.5\%$ , $6.4\%$ , and $5.7\%$ respectively. While the precision of adding adversarial perturbations to corresponding trackers are greatly reduced by $49.4\%$ , $59.8\%$ , $57.7\%$ , and $51.1\%$ , respectively.
+
+Fig. 3 shows the success and precision plots on OTB100 dataset with the comparison of the results by original trackers and the results after our corresponding attacks. We can see that the precision results and success rates of the five trackers are significantly reduced after being attacked. In precision plots, we observe that the proposed attack method has the best and second attack effects on SiamRPN and SiamRPN $+ + (\mathrm{R})$ , which reduces the precision by $59.8\%$ and $57.7\%$ , respectively. Similarly, our attack method reduces the success rate on SiamRPN and SiamRPN $+ + (\mathrm{R})$ by $46.2\%$ and $44.4\%$ respectively.
+
+Results on LaSOT. We compare our attack against these
+
+
+Figure 3. Evaluation results of trackers with or without adversarial attacks on OTB100 dataset.
+
+
+
+Table 2. Comparison of results with original, Random noise, and our attack of different Siamese trackers on the LaSOT dataset in terms of precision and success rate.
+
+| Trackers | Precision (%) | Success Rate(%) |
| Org | Noise | Ours | Org | Noise | Ours |
| SiamFC | 34.4 | 33.7 | 12.0 | 35.2 | 34.7 | 16.7 |
| SiamRPN | 42.4 | 42.2 | 10.8 | 43.3 | 43.1 | 14.7 |
| SiamRPN+(R) | 50.2 | 49.3 | 12.2 | 49.6 | 48.5 | 14.9 |
| SiamRPN+(M) | 45.5 | 45.5 | 11.4 | 45.2 | 44.9 | 14.7 |
| SiamMask | 46.3 | 46.0 | 34.3 | 46.5 | 46.3 | 37.1 |
+
+Table 3. Comparison of results with original, Random noise, and our attack of different Siamese trackers on the GOT10k dataset in terms of AO and $\mathrm{SR}_{0.50}$ .
+
+| Trackers | AO (%) | SR0.50 (%) |
| Org | Noise | Ours | Org | Noise | Ours |
| SiamFC | 53.8 | 50.2 | 34.6 | 57.8 | 54.3 | 28.4 |
| SiamRPN | 60.8 | 56.1 | 31.2 | 71.4 | 65.2 | 26.5 |
| SiamRPN++(R) | 65.1 | 65.0 | 31.2 | 76.7 | 75.7 | 26.5 |
| SiamRPN++(M) | 64.1 | 61.0 | 39.4 | 75.0 | 70.2 | 34.7 |
| SiamMask | 64.4 | 64.1 | 55.6 | 76.5 | 75.9 | 64.1 |
+
+trackers on the LaSOT dataset [4]. Table 2 shows the overall results of these trackers after attacks perform poorly. Through the results, we can see that precision of these five trackers has a significant decline, accounting for $34.9\%$ , $25.5\%$ , $24.3\%$ , $25.1\%$ , and $74.1\%$ of the original results in SiamFC, SiamRPN, SiamRPN++(R), SiamRPN++(M), and SiamMask respectively.
+
+Results on GOT10K. We also implement our attack against these five trackers on the large tracking dataset GOT10K [14]. Table 3 shows that there are significant declines in overall results on these trackers after attacks. Through the results, we can see that AO these five trackers decreased by $64.3\%$ , $51.3\%$ , $61.5\%$ , $47.9\%$ , and $86.3\%$ respectively.
+
+Analysis. From the attack results on these trackers in various datasets, we found an interesting phenomenon that the simplest SiamFC shows good robustness on both OTB100 and LaSOT, which we believe is due to the under-fitting of the algorithm. More specifically, to some extent, SiamFC can be considered as a SiamRPN with only one anchor.
+
+Table 4. Ablation comparison studies of dual attention attacks.
+
+| SiamRPN++ (ResNet-50) | Precision (%) | Success Rate (%) |
| Original | 91.4 | 69.6 |
| Random Noise | 85.0 | 64.9 |
| Attack by L1 | 38.8 | 29.1 |
| Attack by L1* | 37.1 | 27.6 |
| Attack by L2 | 38.7 | 27.7 |
| Attack by L2* | 34.3 | 25.6 |
| Attack by L1 + L2 | 37.5 | 26.9 |
| Attack by L1* + L2* | 33.7 | 25.2 |
+
+Generally, too few anchors make SiamFC unable to accurately estimate the target. Meanwhile, it reduces the risk of being attacked by adversarial samples. Moreover, we can see that our attack method has the best attack effect on SiamRPN, which reduces the precision on OTB100 by $59.8\%$ and the success rate by $46.2\%$ , respectively. Thus can be attributed to the excessive head parameters that make SiamRPN difficult to get fully trained. To a certain extent, this problem has been solved in siamRPN++ with the help of multi-stage learning and more efficient cross-correlation. As we can see, siamRPN++ has better robustness and more difficult to be attacked. Besides, our attacking method has the lowest degree of attack on SiamMask compared with other trackers. For example, the attack on SiamMask reduces the precision and success rate by $18.7\%$ and $16.5\%$ on OTB100 respectively, which can be attributed to the multitask learning of SiamMask. Compared with SiamRPN and SiamRPN++, SiamMask adds a semantic segmentation branch and focuses on the tracked object with pixel-level, which makes the learned features more robust.
+
+# 4.3. Ablation Study of Dual Attention Attack
+
+We implement a series of experiments to analyze and evaluate the contribution of each component of our dual attention attacks. We choose the current state-of-the-art tracker SiamRPN++(R) as the representative and the tracking results on OTB100 are shown in Table 4.
+
+Intuitively, we observe that random noises impact very little on tracking results, but our adversarial attacks cause a significant drop in tracking accuracy. Moreover, separately using the loss $\mathcal{L}_1$ and loss $\mathcal{L}_2$ in our experiments greatly reduce the accuracy of tracking and their damage to tracking is similar to each other in terms of the data. It thanks to our selection strategy for candidates of $\mathcal{L}_1$ and the global feature perturbation mechanism of $\mathcal{L}_2$ . Second, we test the effectiveness of the distance-oriented confidence attention mechanism in $\mathcal{L}_1$ component, namely $\mathcal{L}_1^*$ . Specifically, the $\mathcal{L}_1^*$ method further reduces the tracking accuracy by $1.7\%$ and $1.5\%$ for both precision and success rate metrics based on $\mathcal{L}_1$ . At the same time, we validate the contribution of the activation-oriented feature attention mechanism in $\mathcal{L}_2$ component, namely $\mathcal{L}_2^*$ , and reduce the tracking performance by $4.4\%$ and $2.1\%$ for success and precision, respectively.
+
+
+Figure 4. Qualitative evaluation of one-shot adversarial attack in various trackers on video examples Human7 and Human2 from the OTB100 dataset. For each of the two subfigures, the first column represents the adversarial examples generated in the initial frame, except the clean example in the first row. The green, blue, and red rectangles represent the bounding boxes of ground-truth, tracking results before and after being attacked.
+
+Moreover, through the experimental analysis, we can see that the feature attention mechanism brings more gain than the confidence attention mechanism. The potential reason is that the attention mechanism of $\mathcal{L}_1^*$ has narrowed the candidates to a more appropriate range, and all of these selected boxes will contribute to the attack. In addition, the feature attention mechanism can force the algorithm to mine channels that contribute more to the attack in the huge feature space, which effectively reduces the concerned scope belonging to $\mathcal{L}_2$ attack. Besides, the attacking strategy using two basic components $\mathcal{L}_1^*$ and $\mathcal{L}_2^*$ simultaneously achieves gain on each basis. Finally, the dual attention attack method obtains the best attack result by simultaneously employing two attention mechanisms.
+
+# 4.4. Qualitative Evaluation
+
+Fig. 4 shows examples of adversarial attacks against various trackers. We can see that the initial frame perturbation of the five trackers is so subtle that it is difficult to be observed by the human eye. Generally, adding adversarial attacks results in a large deviation of tracking results. Among them, the attacks on SiamFC and SiamRPN are stronger when the target scale changes greatly. In contrast, the impact on the results of SiamRPN++ is not obvious, which is partly attributed to the robust feature extraction using
+
+deeper models.
+
+# 5. Conclusion
+
+In this work, we highlight the adversarial perturbations against VOT to circumvent potential risks of the surveillance system. We focus on the adversarial attacks for freemodel single object tracking and our attack target is a series of excellent trackers based on Siamese networks. We present a one-shot attack method that only perturbs slightly the pixel values of the initial frame image of a video, resulting in tracking failure in subsequent frames. Experimental results prove that our approaches can successfully attack the advanced Siamese network-based trackers. We hope that more researchers can pay attention to the adversarial attack and defense of the tracking algorithms in the future.
+
+Acknowledgement This work is supported in part by the National Natural Science Foundation of China under Grant 61972188, 61771273, the National Key Research and Development Program of China under Grant 2018YFB1800204, the R&D Program of Shenzhen under Grant JCYJ201805-08152204044, the Science and Technology Planning Project of Shenzhen (No. JCYJ20180503182133411), and the research fund of PCL Future Regional Network Facilities for Large-scale Experiments and Applications (PCL2018KP001).
+
+# References
+
+[1] Naveed Akhtar and Ajmal Mian. Threat of adversarial attacks on deep learning in computer vision: A survey. IEEE Access, 6:14410-14430, 2018.
+[2] Luca Bertinetto, Jack Valmadre, Joao F Henriques, Andrea Vedaldi, and Philip HS Torr. Fully-convolutional siamese networks for object tracking. In Proceedings of the European Conference on Computer Vision Workshops (ECCV Workshops), pages 850–865, 2016.
+[3] Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In Symposium on Security and Privacy (SP), pages 39-57, 2017.
+[4] Heng Fan, Liting Lin, Fan Yang, Peng Chu, Ge Deng, Sijia Yu, Hexin Bai, Yong Xu, Chunyuan Liao, and Haibin Ling. Lasot: A high-quality benchmark for large-scale single object tracking. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5374-5383, 2019.
+[5] Heng Fan and Haibin Ling. Sanet: Structure-aware network for visual tracking. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops (CVPR Workshops), pages 42-49, 2017.
+[6] Ross Girshick. Fast r-cnn. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 1440-1448, 2015.
+[7] Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014.
+[8] Qing Guo, Wei Feng, Ce Zhou, Rui Huang, Liang Wan, and Song Wang. Learning dynamic siamese network for visual object tracking. In Proceedings of the IEEE International Conference on Computer Vision (CVPR), pages 1763-1771, 2017.
+[9] Qing Guo, Xiaofei Xie, Lei Ma, Zhongguo Li, Wanli Xue, and Wei Feng. Spark: Spatial-aware online incremental attack against visual tracking. In arxiv preprint arXiv:1910.0868, 2019.
+[10] Anfeng He, Chong Luo, Xinmei Tian, and Wenjun Zeng. A twofold siamese network for real-time object tracking. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4834-4843, 2018.
+[11] Lianghua Huang, Xin Zhao, and Kaiqi Huang. Got-10k: A large high-diversity benchmark for generic object tracking in the wild. arXiv preprint arXiv:1810.11981, 2018.
+[12] Nathan Inkawich, Wei Wen, Hai Helen Li, and Yiran Chen. Feature space perturbations yield more transferable adversarial examples. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 7066-7074, 2019.
+[13] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
+[14] Matej Kristan, Ales Leonardis, Jiri Matas, Michael Felsberg, Roman Pflugfelder, Luka Cehovin Zajc, Tomas Vojir, Goutam Bhat, Alan Lukezic, Abdelrahman Eldisokey, et al. The sixth visual object tracking vot2018 challenge results.
+
+In Proceedings of the European Conference on Computer Vision (ECCV), pages 0-0, 2018.
+[15] Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial examples in the physical world. arXiv preprint arXiv:1607.02533, 2016.
+[16] Bo Li, Wei Wu, Qiang Wang, Fangyi Zhang, Junliang Xing, and Junjie Yan. Siamrpn++: Evolution of siamese visual tracking with very deep networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4282-4291, 2019.
+[17] Bo Li, Junjie Yan, Wei Wu, Zheng Zhu, and Xiaolin Hu. High performance visual tracking with siamese region proposal network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 8971-8980, 2018.
+[18] Peixia Li, Dong Wang, Lijun Wang, and Huchuan Lu. Deep visual tracking: Review and experimental comparison. Pattern Recognition (PR), 76:323-338, 2018.
+[19] Xiankai Lu, Chao Ma, Bingbing Ni, Xiaokang Yang, Ian Reid, and Ming-Hsuan Yang. Deep regression tracking with shrinkage loss. In Proceedings of the European Conference on Computer Vision (ECCV), pages 353-369, 2018.
+[20] Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, and Pascal Frossard. Deepfool: a simple and accurate method to fool deep neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2574–2582, 2016.
+[21] Alexander Neubeck and Luc Van Gool. Efficient nonmaximum suppression. In 18th International Conference on Pattern Recognition (ICPR'06), volume 3, pages 850-855. IEEE, 2006.
+[22] Nicolas Papernot, Patrick Mcdaniel, Somesh Jha, Matt Fredrikson, Z. Berkay Celik, and Ananthram Swami. The limitations of deep learning in adversarial settings. In IEEE European Symposium on Security & Privacy, 2016.
+[23] 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 (NeurIPS), pages 91-99, 2015.
+[24] 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.
+[25] Ran Tao, Efstratos Gavves, and Arnold WM Smeulders. Siamese instance search for tracking. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1420-1429, 2016.
+[26] Simen Thys, Wiebe Van Ranst, and Toon Goedemé. Fooling automated surveillance cameras: adversarial patches to attack person detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops (CVPR Workshops), 2019.
+[27] 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 Proceedings of the IEEE conference on Computer Vision and Pattern Recognition (CVPR), pages 4854-4863, 2018.
+
+[28] Qiang Wang, Li Zhang, Luca Bertinetto, Weiming Hu, and Philip HS Torr. Fast online object tracking and segmentation: A unifying approach. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1328-1338, 2019.
+[29] Rey Reza Wiyatno and Anqi Xu. Physical adversarial textures that fool visual object tracking. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2019.
+[30] Yi Wu, Jongwoo Lim, and Ming-Hsuan Yang. Object tracking benchmark. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 37(9):1834-1848, 2015.
+[31] Cihang Xie, Jianyu Wang, Zhishuai Zhang, Yuyin Zhou, Lingxi Xie, and Alan Yuille. Adversarial examples for semantic segmentation and object detection. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 1369-1378, 2017.
+[32] Yunhua Zhang, Lijun Wang, Jinqing Qi, Dong Wang, Mengyang Feng, and Hutchuan Lu. Structured siamese network for real-time visual tracking. In Proceedings of the European Conference on Computer Cision (ECCV), pages 351-366, 2018.
\ No newline at end of file
diff --git a/oneshotadversarialattacksonvisualtrackingwithdualattention/images.zip b/oneshotadversarialattacksonvisualtrackingwithdualattention/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..d818ab8530bdd50cb62ba0a4e0140f68c19e8c00
--- /dev/null
+++ b/oneshotadversarialattacksonvisualtrackingwithdualattention/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:84092f49d661937608758e00b65eb6610529773f95b099d0a9dda8883fa04689
+size 538365
diff --git a/oneshotadversarialattacksonvisualtrackingwithdualattention/layout.json b/oneshotadversarialattacksonvisualtrackingwithdualattention/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..ba9d466f4bf199bd79080ffeffa8b222d17dda94
--- /dev/null
+++ b/oneshotadversarialattacksonvisualtrackingwithdualattention/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4b5c82d65ba9c49a68e3a0f5c351e41f3b4b6079987c511c030e59c257eb82a0
+size 398128
diff --git a/oneshotdomainadaptationforfacegeneration/d66c6356-bda5-48d3-977e-4f787184e957_content_list.json b/oneshotdomainadaptationforfacegeneration/d66c6356-bda5-48d3-977e-4f787184e957_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..ad947fdf3df19cdb3504b0d4fc3a00cc83f28059
--- /dev/null
+++ b/oneshotdomainadaptationforfacegeneration/d66c6356-bda5-48d3-977e-4f787184e957_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8a48257d462db28647c8551ac00d39ff26f34450a7679c42764c037e86bee218
+size 77003
diff --git a/oneshotdomainadaptationforfacegeneration/d66c6356-bda5-48d3-977e-4f787184e957_model.json b/oneshotdomainadaptationforfacegeneration/d66c6356-bda5-48d3-977e-4f787184e957_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..d54c8d169b129954dadb15e5f28654c39862bba4
--- /dev/null
+++ b/oneshotdomainadaptationforfacegeneration/d66c6356-bda5-48d3-977e-4f787184e957_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3982b52133cc2ece5a2cbf0d69f0adac25102c5fdab945b3934b13d16690959e
+size 94682
diff --git a/oneshotdomainadaptationforfacegeneration/d66c6356-bda5-48d3-977e-4f787184e957_origin.pdf b/oneshotdomainadaptationforfacegeneration/d66c6356-bda5-48d3-977e-4f787184e957_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..eb02f54aab4caec1b01d8befc85cdfb9b56b8457
--- /dev/null
+++ b/oneshotdomainadaptationforfacegeneration/d66c6356-bda5-48d3-977e-4f787184e957_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6d3afefbae8728079a8e6d49179e06fd7a17dac20d6da7dcc8a88e1cd8869383
+size 5781817
diff --git a/oneshotdomainadaptationforfacegeneration/full.md b/oneshotdomainadaptationforfacegeneration/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..f8c2647950dd3f6ccb28ba57b55671f8c0aefc44
--- /dev/null
+++ b/oneshotdomainadaptationforfacegeneration/full.md
@@ -0,0 +1,331 @@
+# One-Shot Domain Adaptation For Face Generation
+
+Chao Yang Ser-Nam Lim
+
+Facebook AI
+
+# Abstract
+
+In this paper, we propose a framework capable of generating face images that fall into the same distribution as that of a given one-shot example. We leverage a pre-trained StyleGAN model that already learned the generic face distribution. Given the one-shot target, we develop an iterative optimization scheme that rapidly adapts the weights of the model to shift the output's high-level distribution to the target's. To generate images of the same distribution, we introduce a style-mixing technique that transfers the low-level statistics from the target to faces randomly generated with the model. With that, we are able to generate an unlimited number of faces that inherit from the distribution of both generic human faces and the one-shot example. The newly generated faces can serve as augmented training data for other downstream tasks. Such setting is appealing as it requires labeling very few, or even one example, in the target domain, which is often the case of real-world face manipulations that result from a variety of unknown and unique distributions, each with extremely low prevalence. We show the effectiveness of our one-shot approach for detecting face manipulations and compare it with other few-shot domain adaptation methods qualitatively and quantitatively.
+
+# 1. Introduction
+
+Deep learning has been prevailing in a variety of computer vision tasks, especially in supervised settings such as learning for classification, detection or segmentation [20, 39, 29, 19]. Deep generative models such as Variational AutoEncoder (VAE) [24, 30] and Generative Adversarial Networks (GAN) [16, 37, 45, 2, 1, 53] in particular have gained significant prominence in the field of deep learning due to their ability to generate highly realistic images depicting faces, natural scenes and objects.
+
+Recent advances in deep learning have paved the way for many important applications ranging from super resolution, movie making, game development, cross domain style transfer, face synthesis and aging prediction, image inpainting, photo editing and others. However, the advent
+
+
+(a)
+
+
+(b)
+
+
+(c)
+Figure 1: One-shot domain adaptation on encoder-decoder DeepFake using StyleGAN generator. (a). A Random StyleGAN generated image. (b). A one-shot image from encoder-decoder DeepFake of DFDC [13]. (c). A StyleGAN generated image using the same random latent input as (a) after domain adaptation. (d). The StyleGAN reconstructed one-shot DeepFake after domain adaptation.
+
+
+(d)
+
+of DL has also precipitated the emerging of applications that abuse its power. Technologies such as Face2Face [45], FaceSwap [2], and encoder-decoder DeepFake [1] have resulted in the rise of online impersonations/fabrication of news, threatening even to sway the outcomes of elections.
+
+In this paper, we are interested in detecting Deepfakes, which refers to manipulations to replace the human face of authentic media with the face of a different person [40, 10, 13]. This is often coupled with malicious intent of defam
+
+ing other people or spreading fabricated news. Image generations have been trending as a popular research topic due to the rising prevalence and public interest in Deepfake. As a result, many techniques for generating images have been proposed, each with specific probabilistic distributions or fingerprints. Often times, a new type of synthetic images emerges online but the underlying techniques are unknown, and only a few bespoke examples exist. Training a classifier to detect them poses significant challenges as we are unable to infer the complete probabilistic distribution.
+
+To this end, our method aims to mimic a complete distribution of the target domain given just one example. While most existing domain adaptation approaches try to find a feature space in which there is maximum confusion between source and target distributions [27, 32], we directly manipulate the distribution in the image space. We first train a deep generative model to learn the generic probabilistic distribution of human faces on a large collection of face images. Specifically, we adopt Style-based Generator (StyleGAN) [23] given its high capacity and superior generation quality. With the trained StyleGAN model and a single example from a specific distribution, we run iterative optimization of the input style vector to project the image to the StyleGAN distribution, followed by optimizing the model weights to minimize the projection distance and shift the StyleGAN distribution to the target's. We are then able to generate an unlimited number of random faces that are from a similar distribution as the target and yet preserve the manifold of the generic human face distributions. We further transfer low-level style from the one-shot target to the StyleGAN generated images. To do so, we notice the style vector of a given image has hierarchical structures and represents different attributes at different style layers. If we replace the style vector of randomly synthesized images with the style vector of the target at late layers, we are able to transfer the low-level statistics from the target domain to the random images we generated. We refer to this procedure as style-mixing. Combining iterative weight optimization with style-mixing, the generated images not only capture the overall probabilistic distribution of the target domain but also resemble the one-shot image in low-level appearances and details. Finally, one can then use the generated images to train a model for detecting images from the target domain. Extensive experiment shows that our detector achieves significantly improved accuracy compared with the baseline and other state-of-the-art few-shot domain adaptation and image translation techniques.
+
+Our contributions can be summarized as follows:
+
+1. We introduce a novel one-shot domain adaptation framework that is effective at training a face manipulation detector given a single example of a specific face manipulation distribution.
+2. We demonstrate that the images generated with our ap
+
+proach, when utilized to train a classifier, achieves superior performance in telling apart real and manipulated face images.
+
+# 2. Related Work
+
+# 2.1. Face Manipulation and Detection
+
+Only recently, a new generation of AI-based image and video synthesis algorithms have become prominent due to the development of new deep generative models such as VAEs [24, 30] and GANs [16, 37]. In this paper, we mostly consider face identity manipulation methods including Face2Face [45], FaceSwap [2], and encoder-decoder Deepfake [1]. Other notable face manipulation methods include audio to lip-sync [44], training a parameter-to-video rendering network [5], synthesizing dynamic-textures with deep neural networks [34], using paired video to learn a conditional GAN [37], or training an identity-specific celebrity network [25]. There are publicly available DeepFake datasets such as FaceForensics++ [40] and DFDC [13]. A comprehensive state-of-the-art report has been published by Zollhofer et al. [53].
+
+Our interest in this paper lies in detecting such face manipulations. Existing approaches exploit specific artifacts arising from the synthesis process, such as eye blinking [26], or color, texture and shape cues [11, 9]. Li et al. [26] observed that DeepFake faces lack realistic eye blinking, which is utilized in a CNN/RNN model to expose DeepFake videos. Yang et al. [49] utilized the inconsistency in head pose to detect fake videos. As a more generic approach, Zhou et al. [51] proposed a two-stream CNN for DeepFake detection.
+
+# 2.2. Few-shot Domain Adaptation
+
+Overcoming the need for large training sets and improving the capability of the model to generalize from few examples have been extensively studied in recent literatures [15, 28, 31, 46]. Earlier work leverages generative models of appearance that share priors across classes in a hierarchical manner [14, 41]. More recently, a new category of works emerges which focuses on using meta-learning to quickly adapt models to novel tasks [15, 35, 38, 33]. These methods adopt better optimization strategies during training and enhance the generalizability of the model. On the other hand, [47, 42, 43] focuses on learning image embeddings that are better suited for few-shot learning. Similarly, [12, 18, 48] also propose augmenting the training set for the few-shot classification task.
+
+# 2.3. Deep Generative Model for Image Synthesis and Disentanglement
+
+Deep generative models such as GAN [16] and VAE [24] have been very successful in modeling natural image distributions and synthesizing realistic-looking figures. Re
+
+cent advances such as WGAN [4], BigGAN [7], Progressive GAN [22] and StyleGAN [23] have developed better architectures, losses and training schemes. In particular, StyleGAN [23] proposes a GAN architecture to implicitly learn hierarchical latent styles that contribute to the synthesized images. Our approach leverages StyleGAN as backbone and directly takes advantage of its expressiveness and disentanglement ability. On the other hand, several recent works aim to reverse the generation process and project an image onto latent manifold of GANs, as well as manipulating the latent code to control the output [52, 8, 3, 6]. Our work is motivated to not only manipulate the latent manifold, but also adjust the model-parameter manifold to shift the whole output space given an input image.
+
+# 3. Our Approach
+
+We first motivate our approach. We are concerned about the scenario where we spot a single face image that is suspected to be generated (aka fake), yet we have no knowledge about the technique that produced it. Our goal is to: (1) Predict the probabilistic distribution of the target given the one-shot example; (2) Sample from the distribution to synthesize random images that are similar to the target domain and; (3) Train a classifier to detect future face images generated by the same technique. At first sight, predicting the distribution of the unknown face manipulation given one example seems ill-posed and unfeasible. We address this by learning a generic face manifold as prior, and then shift the distribution towards the target domain.
+
+# 3.1. Overview
+
+Our pipeline consists of the following components:
+
+1. Face Manifold Approximation. We learn the generic probabilistic distribution of human faces by training StyleGAN on a large collection of natural face images. All possible style vectors of the trained StyleGAN shall span a low-dimensional space that approximates the generic face manifold.
+2. One-shot Manifold Projection. Given a manipulated face as input, we fix the weight of the StyleGAN model and optimize the style vector to minimize the distance between the synthesized image and the input. Doing so enables us to find the one-shot's nearest neighbor on the StyleGAN manifold. In other words, we project the target image onto the manifold.
+3. StyleGAN Manifold Shifting. After finding the nearest neighbor of the input image, we then fix the corresponding style vector and update the StyleGAN model weights to again minimize the distance between the synthesized image and the target. Updating the weights of the model shifts the output manifold towards the target distribution.
+
+4. **Style Mixing.** We generate a large number of random faces from the updated StyleGAN model. Each time we generate a face, we replace the final layers of the random style vector with those of the target, such that we transfer the low-level statistics from the target to the generated images.
+
+5. Deepfake Detection. We use the generated images as training data to learn model for detecting images in the target domain.
+
+# 3.2. Face Manifold Approximation
+
+Deep generative models are rich, hierarchical models that can learn probability distributions of the training data. As the first step, we resort to these models to learn the generic distribution of faces. We begin by training a deep generative model on a large collections of face images. If the model has sufficient capacity and is well trained, the entirety of its generated images shall span a low-dimension space that approximates the real-world face manifold. Furthermore, given enough training data, the larger capacity the model has, the more closely the output manifold would match with the true face distribution. We consider a few GAN variants including StyleGAN [23], ProGAN [22] and WGAN-GP [17] as candidate models to learn the face manifold.
+
+We analytically examine the capacity and expressiveness of the models by running the following experiment: we first train all three models on real-world face images. After the models are trained, we select one of the models as model A, and fine-tune it with images generated from model B. We then train a classifier on real vs images generated by fine-tuned A, and then test on real vs images generated by B. We can expect that, if A has higher capacity than B, it would learn to generate images with similar distributions and coverages as B. Otherwise, if B is more expressive, it is difficult for fine-tuned A to recover model B's manifold, hence the classification accuracy would be low. Table 1 lists the classifier generalization results, which clearly shows that StyleGAN is most expressive amongst the candidate models. In addition, StyleGAN generates the most realistic and high-resolution images compared with other generative models. For these reasons, we utilize a StyleGAN model trained on an online collection of high-resolution face images as the base model for our approach.
+
+# 3.3. StyleGAN Manifold Projection
+
+The original StyleGAN consists of a mapping network $f$ and a synthesis network $g$ . $f$ takes random noise as input and outputs a style vector $s$ . $s$ is modeled as an 18 layer vector. The synthesis network takes the style vector $s$ and a random noise vector as input, and $s$ is used as parameters for adaptive instance normalization [21] to transform the output after each convolution layer. Karras et
+
+| Model A | Model B | Classification Accuracy |
| StyleGAN | ProGAN | 99.6% |
| WGAN-GP | 99.4% |
| ProGAN | StyleGAN | 72.7% |
| WGAN-GP | 98.1% |
| WGAN-GP | StyleGAN | 68.5% |
| ProGAN | 88.2% |
+
+Table 1: Comparing the capacity of StyleGAN, ProGAN and WGAN-GP. Higher classification accuracy indicates A has larger capacity and could better mimic the distribution of B.
+
+al. [22] shows that using style vector as layer-wise guidance not only makes synthesizing high-resolution images easier, but also leads to hierarchical disentanglement of local and global attributes. For our purpose, we consider a trained StyleGAN model. In this case, all possible style vectors generated by the mapping network form a synthetic-face manifold that mimics the true distribution of human faces.
+
+With the StyleGAN manifold and a visual example from an arbitrary distribution, our next step is to project the example onto the manifold. To do so, we first detect the facial landmarks and preprocess the image by cropping it to be 1.3 times larger than the face region, followed by resizing it to $1024 \times 1024$ which is the output size of StyleGAN. Let the preprocessed image be $I$ . Projecting $I$ to StyleGAN manifold means we would like to find the style vector $s_I$ that the generated image $g(s_I)$ is most similar to $I$ . In this way, $s_I$ is the style vector corresponding to $I$ 's manifold projection. This process could be more formally formulated as solving for the following objective function:
+
+$$
+s _ {I} = \underset {s} {\arg \min } D (g (s), I). \tag {1}
+$$
+
+With a differentiable distance function $D$ , we can solve for Eqn. 1 by backpropagating the loss $D$ through $g$ with the weights fixed, and then iteratively update $s$ until the loss converges. This is similar to fine-tuning using the given example $I$ , but here we are optimizing $s$ instead of the weights of $g$ . It is also important to use an appropriate distance function $D$ . Common candidates for reconstruction loss are $\ell_1$ , $\ell_2$ and CNN-based perceptual loss. We experimented with those losses and found that using a combination of perceptual and $\ell_1$ loss leads to the best visual quality and reconstruction fidelity:
+
+$$
+D (g (s), I) = \sum_ {l} \| f _ {l} (g (s)) - f _ {l} (I) \| _ {2} ^ {2} + \lambda \| g (s) - I \| _ {1} ^ {1}. \tag {2}
+$$
+
+Here $f_{l}$ is the neuron responses at $l_{th}$ layer extracted with a pre-trained VGG-16 model, and $\lambda = 5$ is the weight of $\ell_{1}$ loss. The reconstruction loss usually converges within 1,000 iterations of optimization. After it converges, the
+
+style vector $s_I$ is taken as the projection of $I$ on the StyleGAN manifold, and the reconstruction $g(s_I)$ is the nearest neighbor of $I$ amongst StyleGAN output images.
+
+A more accurate projection requires optimizing the style vector and the noise vector at the same time. However, we found that the noise vector had little effects on the final reconstruction output. In our experiments, we always initialize the style vector to be a zero vector and the noise vector to be random Gaussian, and we update the style vector but keep the noise fixed during optimization.
+
+# 3.4. StyleGAN Manifold Shifting
+
+After we found the projection of the target on the original StyleGAN manifold, our next step is to shift the StyleGAN manifold towards the target distribution. To do so, we use similar iterative optimization procedure as 3.3. However, instead of updating the style vector $s$ , we fix $s$ to be the output of $3.3s_I$ while updating the model weights to match the generated image with the target. The idea here is that every time we update the weight of $g$ , we are slightly adjusting the StyleGAN manifold when the weight changes are sufficiently small. By fixing the style vector to be $s_I$ and updating the model weights of $g$ , we are pulling the nearest neighbor of StyleGAN manifold closer to the target such that the entire manifold becomes more similar to the target distribution. Similar to Eqn. 1, the objective function can be defined as:
+
+$$
+g _ {I} = \underset {g} {\arg \min } D (g (s _ {I}), I). \tag {3}
+$$
+
+Here, we reuse Eqn. 2 as the distance function. As far as the optimization is concerned, it comes down to the choice of updating different layers of the StyleGAN. As shown in [23], the late layers of the style vector control the low-level details of the output image such as the color or local textures, while the initial layers control the global attributes such as gender, appearance or identity. We experimented updating different StyleGAN layers for manifold shifting, and examine the synthetic image quality and the domain adaptation effectiveness. Our observation is that updating all StyleGAN layers makes the optimized model generate images most similar to the target and also achieve the highest accuracy when being used to train classifiers. Since we already inferred $s_I$ that generates an image similar to $I$ , this step would only slightly adjust the weights of the model. In this case, the optimized model still preserves the generic face manifold learned in 3.2.
+
+To better illustrate the effects of manifold projection and shifting, Fig. 2 shows visual examples of an input, the reconstructed image after manifold projection, and the reconstructed image after manifold shifting. It shows that after manifold shifting, the reconstructed image matches with the input more closely in global color and appearances.
+
+
+Figure 2: The reconstruction after manifold projection and manifold shifting for one-shot encoder-decoder (top), neural talking head (middle) and FSGAN (bottom). From left to right: the input image; $g(s_I)$ as the reconstructed image after manifold projection; $g_I(s_I)$ as the reconstructed image after manifold shifting.
+
+# 3.5. Style Mixing
+
+In the previous steps, we optimize the weights of the StyleGAN model such that it generates images of similar distribution as the target. However, it does not suffice to simply change the global appearances as there are certain low-level statistics that the target exhibits, which are useful signals when training a classifier. We propose to use style mixing to further generate images that match with the target in low-level details. Karras et al. [23] shows that StyleGAN's style vector comes with the property of disentanglement, which separates the high-level and low-level attributes of the synthesized image at different style layers. Based on this, we use the style vector $s_I$ inferred in 3.3 as the interpretable representation of the target. For each random style vector $s$ that we sampled with the mapping network, we replace the final layers of $s$ with those of $s_I$ before giving it as input to the generator so that the generated random image $g(s)$ inherits the low-level color and textures from $I$ .
+
+We experimented with replacing different number of the final layers, and found that replacing the three last layers of $s$ with those of $s_I$ preserves the global appearance of the image yet still manages to change the output to more closely resemble $I$ . Combining manifold shifting and style mixing, the generated images not only capture the generic human face manifold but also display low-level statistics of
+
+the target.
+
+# 3.6. Classification
+
+The last step is to use the randomly generated images as a synthetic dataset to train a classifier against the target domain. In the case of face manipulation detection, we train a classifier between real images and one-shot optimized StyleGAN synthetic images, and use it to detect the actual face manipulation images from the real images. Another task we could solve using the synthetic datasets is multi-domain classification, where given an image we could classify it into a specific type of face manipulations. For all classification tasks, we use ResNet50 [20] as the backbone model.
+
+# 4. Experiments
+
+# 4.1. Experiment Setup and Results
+
+We evaluate our method on several face manipulation algorithms to show its effectiveness. We use DFDC [13] and FaceForensics++ [40], which consists of a large number of videos that are generated by different face manipulation techniques including encoder-decoder Deepfake [1], Face2Face [45] and FaceSwap [2], neural talking head [50] and FSGAN [36]. For each of the algorithms, we randomly select one image from the dataset. We then apply our one-shot domain adaptation to shift the StyleGAN distribution towards the image and mix the low-level styles and generate a large number of random faces. Finally, we train a classifier using the generated faces to detect images in the target domain.
+
+Qualitatively, we show visual results of one-shot domain adaptation in Fig. 3. For each dataset, we show the one-shot image, the reconstructed image corresponding to the target, and randomly sampled images that mimic the target distribution. At each column, we use the same random style vector to generate the images so that they have the same identities. However, their appearances change according to the one-shot input. We can see that the reconstructed image, which is the closest neighbor of the target on the shifted StyleGAN manifold, visually resembles the target. The randomly sampled images also inherit similar appearances and low-level characteristics from the target.
+
+For quantitative evaluation, we first generate 10,000 random images using the one-shot example for each of the face manipulation techniques. We then train a classifier using real face images as real and the 10,000 synthetic images as fake, and then test on real face images vs the actual face manipulation images (encoder-decoder, Face2Face or FaceSwap). As the baseline, we train the classifier using real faces images and 10,000 random images generated by the original StyleGAN (without domain adaptation) and evaluate on real face images vs actual face manipulations. Table. 2 shows the results. From it we can see that without
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+(a) Target
+
+
+(b) Reconstructed image
+
+
+(c) Randomly sampled images.
+
+
+Figure 3: Visual examples of one-shot DeepFake domain adaptation using StyleGAN. From top to bottom: encoder-decoder, neural talking head and FSGAN.
+
+
+
+domain adaptation, the detection accuracy is low. This is expected as the original StyleGAN generated images have a distinct distribution from the target. However, after domain adaptation using the one-shot example, the classification accuracy improves significantly - almost perfect for all three datasets. This shows that our one-shot domain adaptation is effective at generating images with similar distribution to the target domain, at the slight cost of seeing one more image compared with the baseline. In addition to train a binary classifier on real vs manipulated, we further experimented with fine-grained classification by training a multi-domain classifier using all images from the three StyleGAN-synthetic face manipulation domains. The high accuracy of fine-grained classification $(82.1\%)$ shows that the our synthetic datasets have distinguishable distributions from each other and their distributions are also consistent with the target domain.
+
+In Fig. 4, we plot the t-SNE embeddings of StyleGAN generated image before and after domain adaptation, comparing with the embeddings of actual fake images. We can see that before domain adaptation, the embeddings of StyleGAN generated images and encoder-decoder Deepfake images are separated. After domain adaptation, the embeddings between the two domains are much closer to each
+
+other.
+
+
+Figure 4: t-SNE embedding visualizations. Left: Embeddings of original StyleGAN generated images and encoder-decoder Deepfake images. Right: Embeddings of one-shot domain-adapted StyleGAN generated images and Deepfake images.
+
+
+
+# 4.2. Ablation Study
+
+As described, there are two main components of our approach: StyleGAN manifold shifting and style mixing. To better understand the effects of each component, in Fig. 5 we compare visual examples of a randomly generated image with manifold shifting only and with style mixing only, given the one-shot example. We can see that with only man
+
+| Train | Test | Average Precision |
| Real/StyleGAN | Real/encoder-decoder | 35.2% |
| Real/one-shot encoder-decoder | Real/encoder-decoder | 93.4% |
| Real/StyleGAN | Real/Face2Face | 35.3% |
| Real/one-shot Face2Face | Real/Face2Face | 99.2 % |
| Real/StyleGAN | Real/FaceSwap | 41.6% |
| Real/one-shot FaceSwap | Real/FaceSwap | 95.2% |
| Real/(one-shot) encoder-decoder/Face2Face/FaceSwap | Real/encoder-decoder/Face2Face/FaceSwap | 82.1% |
+
+ifold shifting, the output images are different from the input in low-level characteristics. Meanwhile, if we only mix the styles without adjusting the original StyleGAN model, the output image's colors and textures are distorted and do not look realistic. In both cases, the classification accuracy using the randomly generated images significantly drops compared with the results of utilizing both components (Table 3).
+
+
+Figure 5: Analyzing the effects of different components. From left to right: Target encoder-decoder Deepfake image; Randomly generated image after manifold shifting without style mixing; Randomly generated image using original StyleGAN with style mixing; Randomly generated image after manifold shifting and style mixing.
+
+Table 2: Quantitative evaluation results. (One-shot) encoder-decoder Deepfake/Face2Face/FaceSwap are the synthetic datasets generated by StyleGAN after running domain adaptation algorithm given the one-shot example of encoder-decoder Deepfake/Face2Face/FaceSwap (Fig. 3 (a)).
+
+| Setting | Average Precision |
| StyleGAN manifold shifting only | 43.1% |
| StyleGAN mix style only | 34.0% |
| Ours | 93.4% |
+
+Table 3: Real vs encoder-decoder Deepfake classification results. The classification models are trained using images generated by StyleGAN with manifold-shifting only or style-mixing only.
+
+As for the reconstruction losses used for optimizing the style vector and the model weights, we experimented with $\ell_1, \ell_2$ , VGG-16, and a combination of these losses. We observe that the reconstruction quality is correlated with the reconstruction loss used. As shown by the example images in Fig. 6, using a single loss of either $\ell_1, \ell_2$ or VGG-16 results in bleached color or distorted appearances compared
+
+with accurate reconstructions generated by using a combination of $\ell_{1}$ and perceptual loss. Note that for all VGG-16 losses, we use all the layers to compute the feature responses when measuring the perceptual similarity.
+
+
+Figure 6: Input reconstruction after optimizing style and weights using different losses. From left to right: input, $\ell_1$ loss, $\ell_2$ loss, VGG-16 loss, combining $\ell_1$ and VGG-16 losses.
+
+To show the effectiveness of our approach on datasets other than face manipulations and that it can be used as a generic domain adaptation approach, we further show that our one-shot domain adaptation technique can be applied to other domains such as cats. Given a single cat image as input and a pre-trained StyleGAN cat model, we can generate random images that are visually similar to the target (Fig. 7).
+
+# 4.3. Comparisons
+
+Comparison with Few-shot Classification We compare our results with few-shot classifications. We train a classifier using different number of examples from the target domain (encoder-decoder Deepfake) and use it to classify the target from the real faces. Table. 4 shows the results. We can see that directly training a classifier with very few examples (1 or 10) in the target domain leads to inferior performance compared with ours. Only when the number of examples from the target domain is large enough (over 100), the classifier can achieve high accuracy. For all the experiments, we use 10,000 real face images as real, and adjust the weight between false positive loss and false negative loss to reflect the imbalanced quantity of real and fake. Comparison with Fine-tuning Another possibility is to fine-tune a pre-trained StyleGAN model, by further training it with a few examples from the target domain. Ide
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+(a) Input
+
+
+(b) Randomly generated images
+
+
+
+
+
+Figure 7: One-shot domain adaptation on cats.
+
+| Train | Test | Average Precision |
| Real/1-shot DF Clf | Real/DF | 52.1% |
| Real/10-shot DF Clf | Real/DF | 79.7% |
| Real/100-shot DF Clf | Real/DF | 93.0% |
| Real/1000-shot DF Clf | Real/DF | 99.5% |
| Ours | 93.4 |
+
+ally the fine-tuned model would generate synthetic images with a similar distribution as the target domain. However, we found that fine-tuning StyleGAN with only a few examples is difficult, as the model would collapse and keep generating identical images. The classification accuracy of Table 5 shows that only when we have sufficient examples (over 100) to fine-tune the original StyleGAN model, would it not lead to mode collapse and achieve reasonable classification accuracy. Note here we use the ProGAN (pre-trained on real face images) synthetic images as the target domain, which is more difficult to differentiate with real.
+
+Table 4: Comparing with training a encoder-decoder Deepfake classifier with different number of examples. Our one-shot domain adaptation can achieve detection accuracy on par with a 100-shot DF classifier.
+
+| Train | Test | Average Precision |
| Real/1-shot ProGAN | Real/ProGAN | 10.2% |
| Real/10-shot ProGAN | Real/ProGAN | 21.8% |
| Real/100-shot ProGAN | Real/ProGAN | 88.7% |
| Real/1000-shot ProGAN | Real/ProGAN | 99.0% |
| Ours | | 62.1% |
+
+Table 5: Comparing with fine-tuning StyleGAN with different number of examples.
+
+
+Figure 8: Above from top to bottom: Random StyleGAN generated images; Input 1-shot encoder-decoder Deepfake and translated images using FUNIT; Translated images using our one-shot domain adaptation. Below: DeepFake classification accuracy when trained on FUNIT vs our generated images.
+
+Comparison with FUNIT We also compare our results with Few-Shot Unsupervised Image-to-Image Translation (FUNIT) [28]. FUNIT could also translate an image to the target domain given a few examples of the target domain. However, at training time, FUNIT would require a large number of labeled images in over 100 classes. In contrast, our approach is entirely unsupervised and only requires pretraining the StyleGAN model. At test time, FUNIT can also translate the images from the source domain (e.g. StyleGAN synthetic images) to the target domain (e.g. encoder-decoder Deepfake) given one example. However in terms of translation quality, from Fig. 8 we can see that FUNIT actually modifies the identity of the source image instead of changing the appearances or low-level statistics. We further use these images to train a real/Deepfake classifier: we first use random StyleGAN generated images as the content and the 1-shot Deepfake image as the style, which are given to the trained FUNIT model to generate a synthetic dataset that adapts StyleGAN to Deepfake. We then train a classifier using real vs FUNIT translated images, and test on real vs actual Deepfake images. This results in an average precision significantly lower than ours.
+
+# 5. Conclusions
+
+We propose a simple yet effective one-shot domain adaptation method based on StyleGAN. Our approach not only generates compelling visual results similar to the one-shot target, but also allows us to train robust classifiers in response to different target domains. This process is also fully automatic, requiring little supervision. As future work, we would like to extend our framework to be a more generic image translation and domain adaptation approach.
+
+# References
+
+[1] Deepfakes github. https://github.com/deepfakes/faceswap. Accessed: 2019-11-05. 1, 2, 5
+[2] Faceswap. https://github.com/MarekKowalski/FaceSwap/. Accessed: 2019-11-05. 1, 2, 5
+[3] R. Abdal, Y. Qin, and P. Wonka. Image2stylegan: How to embed images into the stylegan latent space? In Proceedings of the IEEE International Conference on Computer Vision, pages 4432-4441, 2019. 3
+[4] M. Arjovsky, S. Chintala, and L. Bottou. Wasserstein gan. arXiv preprint arXiv:1701.07875, 2017. 3
+[5] H. Averbuch-Elor, D. Cohen-Or, J. Kopf, and M. F. Cohen. Bringing portraits to life. ACM Transactions on Graphics (Proceeding of SIGGRAPH Asia 2017), 36(6):196, 2017. 2
+[6] D. Bau, J.-Y. Zhu, H. Strobelt, B. Zhou, J. B. Tenenbaum, W. T. Freeman, and A. Torralba. Gan dissection: Visualizing and understanding generative adversarial networks. arXiv preprint arXiv:1811.10597, 2018. 3
+[7] A. Brock, J. Donahue, and K. Simonyan. Large scale gan training for high fidelity natural image synthesis. arXiv preprint arXiv:1809.11096, 2018. 3
+[8] A. Brock, T. Lim, J. M. Ritchie, and N. Weston. Neural photo editing with introspective adversarial networks. arXiv preprint arXiv:1609.07093, 2016. 3
+[9] T. Carvalho, F. A. Faria, H. Pedrini, R. d. S. Torres, and A. Rocha. Illuminant-based transformed spaces for image forensics. IEEE transactions on information forensics and security, 11(4):720-733, 2015. 2
+[10] R. Chesney and D. K. Citron. Deep fakes: a looming challenge for privacy, democracy, and national security. 2018. 1
+[11] T. J. De Carvalho, C. Riess, E. Angelopoulou, H. Pedrini, and A. de Rezende Rocha. Exposing digital image forgeries by illumination color classification. IEEE Transactions on Information Forensics and Security, 8(7):1182-1194, 2013. 2
+[12] M. Dixit, R. Kwitt, M. Niethammer, and N. Vasconcelos. Aga: Attribute-guided augmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7455-7463, 2017. 2
+[13] B. Dolhansky, R. Howes, B. Pflaum, N. Baram, and C. C. Ferrer. The deepfake detection challenge (dfdc) preview dataset. arXiv preprint arXiv:1910.08854, 2019. 1, 2, 5
+[14] L. Fei-Fei, R. Fergus, and P. Perona. One-shot learning of object categories. IEEE transactions on pattern analysis and machine intelligence, 28(4):594-611, 2006. 2
+[15] C. Finn, P. Abbeel, and S. Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 1126–1135. JMLR.org, 2017. 2
+[16] I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio. Generative adversarial nets. In Advances in neural information processing systems, pages 2672–2680, 2014. 1, 2
+[17] I. Gulrajani, F. Ahmed, M. Arjovsky, V. Dumoulin, and A. C. Courville. Improved training of wasserstein gans. In
+
+Advances in neural information processing systems, pages 5767-5777, 2017. 3
+[18] B. Hariharan and R. Girshick. Low-shot visual recognition by shrinking and hallucinating features. In Proceedings of the IEEE International Conference on Computer Vision, pages 3018-3027, 2017. 2
+[19] K. He, G. Gkioxari, P. Dólár, and R. Girshick. Mask r-cnn. In Proceedings of the IEEE international conference on computer vision, pages 2961-2969, 2017. 1
+[20] 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. 1, 5
+[21] X. Huang and S. 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. 3
+[22] 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. 3, 4
+[23] T. Karras, S. Laine, and T. Aila. A style-based generator architecture for generative adversarial networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4401-4410, 2019. 2, 3, 4, 5
+[24] D. P. Kingma and M. Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. 1, 2
+[25] I. Korshunova, W. Shi, J. Dambre, and L. Theis. Fast face-swap using convolutional neural networks. In Proceedings of the IEEE International Conference on Computer Vision, pages 3677-3685, 2017. 2
+[26] Y. Li, M.-C. Chang, and S. Lyu. In ictu oculi: Exposing ai created fake videos by detecting eye blinking. In 2018 IEEE International Workshop on Information Forensics and Security (WIFS), pages 1-7. IEEE, 2018. 2
+[27] A. H. Liu, Y.-C. Liu, Y.-Y. Yeh, and Y.-C. F. Wang. A unified feature disentangler for multi-domain image translation and manipulation. In Advances in Neural Information Processing Systems, pages 2590-2599, 2018. 2
+[28] M.-Y. Liu, X. Huang, A. Mallya, T. Karras, T. Aila, J. Lehtinen, and J. Kautz. Few-shot unsupervised image-to-image translation. arXiv preprint arXiv:1905.01723, 2019. 2, 8
+[29] W. Liu, D. Anguelov, D. Erhan, C. Szegedy, S. Reed, C.-Y. Fu, and A. C. Berg. Ssd: Single shot multibox detector. In European conference on computer vision, pages 21-37. Springer, 2016. 1
+[30] S. Lombardi, J. Saragih, T. Simon, and Y. Sheikh. Deep appearance models for face rendering. ACM Transactions on Graphics (TOG), 37(4):68, 2018. 1, 2
+[31] S. Motiian, Q. Jones, S. Iranmanesh, and G. Doretto. Few-shot adversarial domain adaptation. In Advances in Neural Information Processing Systems, pages 6670-6680, 2017. 2
+[32] S. Motiian, M. Piccirilli, D. A. Adjeroh, and G. Doretto. Unified deep supervised domain adaptation and generalization. In Proceedings of the IEEE International Conference on Computer Vision, pages 5715-5725, 2017. 2
+[33] T. Munkhdalai and H. Yu. Meta networks. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 2554–2563. JMLR.org, 2017. 2
+
+[34] K. Nagano, J. Seo, J. Xing, L. Wei, Z. Li, S. Saito, A. Agarwal, J. Fursund, H. Li, R. Roberts, et al. pagan: real-time avatars using dynamic textures. ACM Trans. Graph., 37(6):258-1, 2018. 2
+[35] A. Nichol, J. Achiam, and J. Schulman. On first-order meta-learning algorithms. arXiv preprint arXiv:1803.02999, 2018. 2
+[36] Y. Nirkin, Y. Keller, and T. Hassner. Fsgan: Subject agnostic face swapping and reenactment. In Proceedings of the IEEE International Conference on Computer Vision, pages 7184-7193, 2019. 5
+[37] K. Olszewski, Z. Li, C. Yang, Y. Zhou, R. Yu, Z. Huang, S. Xiang, S. Saito, P. Kohli, and H. Li. Realistic dynamic facial textures from a single image using gans. In Proceedings of the IEEE International Conference on Computer Vision, pages 5429-5438, 2017. 1, 2
+[38] S. Ravi and H. Larochelle. Optimization as a model for few-shot learning. 2016. 2
+[39] 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, pages 91-99, 2015. 1
+[40] A. Rössler, D. Cozzolino, L. Verdoliva, C. Riess, J. Thies, and M. Nießner. Faceforensics++: Learning to detect manipulated facial images. arXiv preprint arXiv:1901.08971, 2019. 1, 2, 5
+[41] R. Salakhutdinov, J. Tenenbaum, and A. Torralba. One-shot learning with a hierarchical nonparametric bayesian model. In Proceedings of ICML Workshop on Unsupervised and Transfer Learning, pages 195-206, 2012. 2
+[42] J. Snell, K. Swersky, and R. Zemel. Prototypical networks for few-shot learning. In Advances in Neural Information Processing Systems, pages 4077-4087, 2017. 2
+[43] F. Sung, Y. Yang, L. Zhang, T. Xiang, P. H. Torr, and T. M. Hospedales. Learning to compare: Relation network for few-shot learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1199–1208, 2018. 2
+[44] S. Suwajanakorn, S. M. Seitz, and I. Kemelmacher-Shlizerman. Synthesizing obama: learning lip sync from audio. ACM Transactions on Graphics (TOG), 36(4):95, 2017. 2
+[45] J. Thies, M. Zollhofer, M. Stamminger, C. Theobalt, and M. Nießner. Face2face: Real-time face capture and reenactment of rgb videos. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2387-2395, 2016. 1, 2, 5
+[46] S. Valverde, M. Salem, M. Cabezas, D. Pareto, J. C. Vilanova, L. Ramio-Torrentà, Å. Rovira, J. Salvi, A. Oliver, and X. Lladó. One-shot domain adaptation in multiple sclerosis lesion segmentation using convolutional neural networks. NeuroImage: Clinical, 21:101638, 2019. 2
+[47] O. Vinyals, C. Blundell, T. Lillicrap, D. Wierstra, et al. Matching networks for one shot learning. In Advances in neural information processing systems, pages 3630-3638, 2016. 2
+[48] Y.-X. Wang, R. Girshick, M. Hebert, and B. Hariharan. Low-shot learning from imaginary data. In Proceedings of the
+
+IEEE Conference on Computer Vision and Pattern Recognition, pages 7278-7286, 2018. 2
+[49] X. Yang, Y. Li, and S. Lyu. Exposing deep fakes using inconsistent head poses. In ICASSP 2019-2019 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 8261-8265. IEEE, 2019. 2
+[50] E. Zakharov, A. Shysheya, E. Burkov, and V. Lempitsky. Few-shot adversarial learning of realistic neural talking head models. In Proceedings of the IEEE International Conference on Computer Vision, pages 9459-9468, 2019. 5
+[51] P. Zhou, X. Han, V. I. Morariu, and L. S. Davis. Two-stream neural networks for tampered face detection. In 2017 IEEE Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), pages 1831-1839. IEEE, 2017. 2
+[52] J.-Y. Zhu, P. Krahenbuhl, E. Shechtman, and A. A. Efros. Generative visual manipulation on the natural image manifold. In European Conference on Computer Vision, pages 597-613. Springer, 2016. 3
+[53] M. Zollhöfer, J. Thies, P. Garrido, D. Bradley, T. Beeler, P. Pérez, M. Stamminger, M. Nießner, and C. Theobalt. State of the art on monocular 3d face reconstruction, tracking, and applications. In Computer Graphics Forum, volume 37, pages 523-550. Wiley Online Library, 2018. 1, 2
\ No newline at end of file
diff --git a/oneshotdomainadaptationforfacegeneration/images.zip b/oneshotdomainadaptationforfacegeneration/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..2c1fcaf4b6e6024f3889fcbdbcc21c62f4d78868
--- /dev/null
+++ b/oneshotdomainadaptationforfacegeneration/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e40abc6617603dec1748b28689b70be6efe59549e3752e90b38c7cbdf2e1927a
+size 552619
diff --git a/oneshotdomainadaptationforfacegeneration/layout.json b/oneshotdomainadaptationforfacegeneration/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..a24f829345f638dd77a2fe27020e2f2f52b64da0
--- /dev/null
+++ b/oneshotdomainadaptationforfacegeneration/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fcc5ee5891f168255c78cf30e9148190ad4d0fffdb4a7b2646f2f5655016fe33
+size 389748
diff --git a/onisometryrobustnessofdeep3dpointcloudmodelsunderadversarialattacks/fcf7f86c-4d10-4a91-86b3-4c1f28f67ab7_content_list.json b/onisometryrobustnessofdeep3dpointcloudmodelsunderadversarialattacks/fcf7f86c-4d10-4a91-86b3-4c1f28f67ab7_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..410dc06c6d30b41accb72f456fd750223e4153d3
--- /dev/null
+++ b/onisometryrobustnessofdeep3dpointcloudmodelsunderadversarialattacks/fcf7f86c-4d10-4a91-86b3-4c1f28f67ab7_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:79c6b25a734d5e38f0696a2c4257c4a0a07b851051df2fabea23a8ee972009a8
+size 88126
diff --git a/onisometryrobustnessofdeep3dpointcloudmodelsunderadversarialattacks/fcf7f86c-4d10-4a91-86b3-4c1f28f67ab7_model.json b/onisometryrobustnessofdeep3dpointcloudmodelsunderadversarialattacks/fcf7f86c-4d10-4a91-86b3-4c1f28f67ab7_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..f8e69b1f2819c384ebdf6f2acf9e72f665a1ed70
--- /dev/null
+++ b/onisometryrobustnessofdeep3dpointcloudmodelsunderadversarialattacks/fcf7f86c-4d10-4a91-86b3-4c1f28f67ab7_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:912871d2cdaa0263c1455385b3407b257346b330ebed9dc805495e62afd94306
+size 111433
diff --git a/onisometryrobustnessofdeep3dpointcloudmodelsunderadversarialattacks/fcf7f86c-4d10-4a91-86b3-4c1f28f67ab7_origin.pdf b/onisometryrobustnessofdeep3dpointcloudmodelsunderadversarialattacks/fcf7f86c-4d10-4a91-86b3-4c1f28f67ab7_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..1b11c69adc1ee55cec3a40b3cd93c69f857bcb51
--- /dev/null
+++ b/onisometryrobustnessofdeep3dpointcloudmodelsunderadversarialattacks/fcf7f86c-4d10-4a91-86b3-4c1f28f67ab7_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c4179b40fb94f714281404410d7ee1d5f7aab0a9ba7d4230ad3a3dff6d9cbb21
+size 1028887
diff --git a/onisometryrobustnessofdeep3dpointcloudmodelsunderadversarialattacks/full.md b/onisometryrobustnessofdeep3dpointcloudmodelsunderadversarialattacks/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..3b6189bca13d55377fba2b55e69124f24e2d9126
--- /dev/null
+++ b/onisometryrobustnessofdeep3dpointcloudmodelsunderadversarialattacks/full.md
@@ -0,0 +1,438 @@
+# On Isometry Robustness of Deep 3D Point Cloud Models under Adversarial Attacks
+
+Yue Zhao $^{1}$ , Yuwei Wu $^{1}$ , Caihua Chen $^{2*}$ , Andrew Lim $^{1}$
+
+$^{1}$ Department of Industrial Systems Engineering and Management, National University of Singapore
+
+$^{2}$ School of Management and Engineering, Nanjing University
+
+{yuezhao, ywwu}@u.nus.edu, chchen@nju.edu.cn, isealam@nus.edu.sg
+
+# Abstract
+
+While deep learning in 3D domain has achieved revolutionary performance in many tasks, the robustness of these models has not been sufficiently studied or explored. Regarding the 3D adversarial samples, most existing works focus on manipulation of local points, which may fail to invoke the global geometry properties, like robustness under linear projection that preserves the Euclidean distance, i.e., isometry. In this work, we show that existing state-of-the-art deep 3D models are extremely vulnerable to isometry transformations. Armed with the Thompson Sampling, we develop a black-box attack with success rate over $95\%$ on ModelNet40 data set. Incorporating with the Restricted Isometry Property, we propose a novel framework of white-box attack on top of spectral norm based perturbation. In contrast to previous works, our adversarial samples are experimentally shown to be strongly transferable. Evaluated on a sequence of prevailing 3D models, our white-box attack achieves success rates from $98.88\%$ to $100\%$ . It maintains a successful attack rate over $95\%$ even within an imperceptible rotation range $[\pm 2.81^{\circ}]$ .
+
+# 1. Introduction
+
+Recently deep learning in 3D data sets has increasingly raised attentions due to its huge potential in real-world applications such as self-driving cars [12, 9], augmented reality [28] and medical image analysis [23]. Although techniques in 2D deep learning like multi-view approaches [35, 31] can be adopted for tackling 3D problems, it is hard to extend these approaches to some 3D tasks, for example point classification. To alleviate this difficulty, the authors of [30] proposed a novel deep neural network PointNet that directly consumes 3D point cloud data. With the proved invariance to order change, it performs well on point cloud classification and segmentation tasks. After this pioneering
+
+
+Figure 1. Demonstration of Thompson Sampling Isometry attack on PointNet model [30] trained by ModelNet40 data [44]. Such classification error may cause safety hazard for autonomous vehicles, since a rotated traffic cone is commonly seen in real world scenarios.
+
+work, there is a surge of researches [32, 19, 20, 42, 21] on 3D neural networks that process directly on point clouds and achieve promising results.
+
+While deep 3D models have gained remarkable success, the invariance or robustness to isometry transformation, a fundamental concern in computer vision [11], has not raised enough attention. It is also important to note that isometry represents a large class of geometry transformations including translation, rotation, and reflection as the most common examples. A misclassification case of a highway cone under our black-box attack is illustrated in Figure 1. To address this issue, in this paper we design a novel block-box attack framework based on Thompson Sampling (TS) [33] and evaluate the robustness of the existing state-of-art deep 3D models (PointNet [30], PointNet++ [32], DG-CNN [42] and RS-CNN [21]) for classification problems under linear isometry. Specifically, in the black box TS is used to generate rotation matrix parameterized by its rotation angle, and the resulted rotation transformation can be applied to nature samples. The adoption of TS is motivated by the basic belief that the attack success rate varies in different rotation
+
+ranges. In order to generate successful attacks, a natural idea is to sample with probability to rotation angles. Compared to random sampling, TS is more efficient and explainable due to its ability to adaptively learn the prior probability of parameters. With the TS techniques, our block box attack can achieve success rates more than $95.66\%$ on ModelNet40 data over all evaluated models by at most 10 times of iterative sampling. Heat map of attack success rates in different regions suggests certain rotation ranges are more likely to fool models, which confirms our insights. We also show links between our attacks and efficient 3D data augmentation subsequently.
+
+Beyond isometry, we hope a deep 3D model can be robust under slightly perturbed isometry, since human beings have the capability to easily recognize a stretched 3D object from the natural one. This idea naturally leads to the Restricted Isometry Property (RIP) matrix [6], where RIP is a nice relaxation of isometry property extensively investigated in the compressed sensing field. In fact, a RIP matrix is coordinated with a small positive number called Restricted Isometric Constant (RIC), as a measurement of its distance from an isometry. In the white-box attack, we start from an initial isometry and further add perturbation on it to transform point cloud. The motivation is to preserve isometry as much as possible while misleading the model. Although finding RIC of a given matrix $A$ is computational hard [39] in general, it is equivalent to compute the spectral norm of $A^T A - I$ in our case. Besides, spectral norm offers a fair and universal standard of perturbation level among different point cloud data sets, which is similar to the $L_p$ norm standard in image domain. On an array of models trained by ModelNet40 data [44], we achieve attack success rates more than $98.11\%$ while the spectral norms are less than 0.068.
+
+The contributions of this paper are fourfold:
+
+- We utilize Thompson Sampling to design an efficient black-box attack with zero loss in the sense of isometry. It achieves success rates over $95\%$ on ModelNet40 data set, which is the first work to fully reveal the vulnerability of deep 3D point cloud models under isometry transformations in black-box settings. To the best of our knowledge, this is the first black-box attack in 3D point cloud adversarial settings.
+- Inspired by the theoretical results of Restricted Isometry Property, we introduce a novel framework of white-box attack on point cloud with success rates more than $98.11\%$ over several state-of-the-art models. Even for imperceptible rotation angles in $[- \pi / 64, \pi / 64]$ $(\pm 2.81^{\circ})$ , it achieves a success rate over $95\%$ .
+- In contrast to previous works, 3D adversarial samples generated by our algorithms have significantly strong
+
+transferability. This property further shows the vulnerability of current models under isometry projections. It also suggests huge potential of our approach in developing further black-box attacks.
+
+- Our adversarial samples are pervasive in practice. For example, calibration in self-driving car system is sometimes inaccurate [38], thus the input signals are often subjected to small perturbations, which can be viewed as our adversarial samples. Hence, our approach might offer insights for improving robustness of real-world applications.
+
+The rest of the paper is organized as follows: We start with related works in deep 3D point cloud models, adversarial attacks in 3D settings and data augmentation. Then we offer technique details of isometry characterization, TS and RIP in preliminaries. After preliminaries, our attack methods are proposed with the pseudo-code of the algorithms. In the end, we evaluate attack performance for on state-of-the-art models trained by two benchmark data sets1. Furthermore, we give an analysis of the trade-off between accuracy and robustness of models from a data augmentation perspective.
+
+# 2. Related Work
+
+Deep 3D Point Cloud Models. 3D data sets are of intrinsic difference from images, thus current neural network designed for 2D domain might not be directly applied in certain 3D tasks. To address this issue, [30] proposed PointNet, a neural network which directly processes on point clouds. Due to its efficiency and invariance to order changes of points, it has been widely accepted and developed [32, 42, 21]. A concept called the critical set, is introduced in [30]. It plays an important role in enhancing model robustness, whereas [43] showed in practice it might instead be a weakness exploited by attacks. PointNet also used a mini-network called T-net and regularization term to make the feature transformation matrix near orthogonal matrix, so that it could be robust against rigid transformations (isometry). However, [21] noticed that accuracy of PointNet reduced to around $40\%$ under rotations about Y axis by $90^{\circ}$ or $180^{\circ}$ . We observe that the issue of isometry invariance has not been well explored in previous works. It will be our main focus in this work.
+
+Adversarial Samples in 3D. In image domain, adversarial attacks [14, 27, 17, 7], along with the defense approaches [22, 2, 48], have been extensively studied. However, 3D point cloud data is essentially coordinates, which are completely different from pixel values, thereby it is necessary to design new approaches for adversarial attacks in 3D. By utilizing critical points, [50] assigned each point a score
+
+measuring its contribution to model training loss, then built saliency maps for attack. With an optimization approach, [45] generated adversarial point clouds by perturbation under $L_{p}$ norm and adding points in local area. They also made use of critical points as the initial points for solving optimization problems in attack. [43] developed a pointwise occlusion attack by iteratively excluding points from point clouds. [46] proposed a pointwise gradient-based perturbation attack and a point attachment/detachment attack, as well as statistical tools to distinguish between adversarial samples and noisy data for defense. All the above papers in 3D adversarial learning develop attacks based on local information of individual points, whereas in this work we analyse the robustness invoking the global geometry structure of point clouds.
+
+On Data Augmentation. For image problems, data augments are well-studied to improve the performance of deep learning models. Common strategies can be roughly divided into traditional methods (cropping, reflecting, rotating, scaling, and translation) and learning-based methods [10, 24, 13], see [34] for a recent survey. Data augmentation is not so well-addressed on point clouds. To our knowledge, simple strategies, such as random scaling, translation, and rotation, are most commonly used in recent studies [30, 32, 20, 51]. In this paper we show that these strategies are far from satisfactory. Consequently, the study of data augmentation, along with the adversarial attack, may have great potential to improve both accuracy and robustness of deep 3D models.
+
+3D Isometry Robustness. The isometry robustness considered in the past are mainly involved with 3D object retrieval [16, 37] and matching problems [4] in computer vision. Although they are different from the classification problem in this paper, we believe many strategies can be adopted and applied in deep learning settings. There are two possible ways of incorporation: 1) normalization (pose estimation), for example, the most prominent one based on PCA [41] can transform data to certain orientation, which could neutralize the effect of rotations, 2) isometry invariant descriptors based on computer vision theory, such as [16, 25], which can be embedded into the network architectures and enhance isometry robustness. Recently there are a few concurrent works [29, 49, 36] utilizing those ideas. However, in general they could suffer from more complex structures, more computational time or less accuracy. Our work fills the research gap between those attempts and prevailing deep 3D models by illustrating the vulnerability of the latter and justifying the importance of the former. Furthermore, we hope our methods can be served as an effective tool to evaluate isometry robustness and offer insights for future works.
+
+# 3. Preliminaries
+
+# 3.1. Linear isometry and Orthogonal matrix
+
+Linear Isometry. An isometry of $\mathbb{R}^n$ is a function $f: \mathbb{R}^n \to \mathbb{R}^n$ that preserves the Euclidean distance
+
+$$
+\| f (x) - f (y) \| = \| x - y \| \quad \forall x, y \in \mathbb {R} ^ {n} \tag {1}
+$$
+
+Trivial examples of isometry include the identity transformation $f(x) = x$ and translation $f(x) = x + b$ . An isometry that fixes the origin is indeed a linear transformation on $\mathbb{R}^n$ [40]. Because the effect of translations can always be easily eliminated by normalization, in this paper we only consider the case of linear isometry, i.e., $f$ is a linear transformation that preserve the Euclidean distance. In the rest of this paper, we mean linear isometry when referring to isometry.
+
+Orthogonal matrix. An $n \times n$ matrix $A$ is said to be orthogonal if
+
+$$
+A \in \mathrm {O} (n) := \left\{A \in \operatorname {G L} _ {n} (\mathbb {R}): A ^ {T} A = I \right\} \tag {2}
+$$
+
+where $\mathrm{GL}_n(\mathbb{R})$ denotes the set of $n\times n$ invertible matrices of real numbers. It is easy to prove that $\operatorname *{det}(A) = \pm 1,\forall A\in$ $\mathrm{O}(n)$ . Let $\mathrm{Iso}(n)$ denote the set of isometries of $\mathbb{R}^n$ , [40] (Lemma1.7, Proposition 1.8) shows
+
+$$
+\operatorname {I s o} (n) = \mathrm {O} (n) \tag {3}
+$$
+
+Rotation matrices are defined as a subset of $\mathrm{O}(n)$
+
+$$
+\mathrm {S O} (n) := \{A \in \mathrm {O} (n): \det (A) = 1 \} \tag {4}
+$$
+
+A reflection matrix over a hyper-plane passing origin is defined by the householder matrix [15]
+
+$$
+P = I - 2 v v ^ {T} \tag {5}
+$$
+
+where $v$ is the unit normal vector of the hyper-plane $\{x\in \mathbb{R}^n:v^T x = 0\}$
+
+Parameterization of linear isometry. By CartanDieudonn theorem any matrix in $\mathrm{O}(3)$ can be described as at most three reflections, and a two reflections case in $\mathbb{R}^3$ is equal to a rotation. To further represent a rotation, the Euler's rotation theorem claims that in $\mathbb{R}^3$ we can always represent a rotation matrix by three rotation matrices about $x, y, z$ axes
+
+$$
+R = R _ {\theta_ {x}} R _ {\theta_ {y}} R _ {\theta_ {z}} \tag {6}
+$$
+
+where $R_{\theta_i}$ is the rotation matrix about axis-i by angle $\theta_i \in [-\pi, \pi]$ . Hence any rotation is captured by three parameters. A unit normal vector can be characterized by two angles thus by (5) any reflection over a hyper-plane passing origin can be represented by two parameters.
+
+The parameterization of linear isometry is the foundation of our statistical-based black-box attack, indeed the parameter space constitutes the sampling space. Further details of this subsection are discussed in supplementary materials.
+
+# 3.2. Thompson Sampling
+
+Thompson sampling (TS), also known as posterior sampling and probability matching, is a powerful sampling method that consecutively learns the prior probability of the parameters for sample distribution during the procedure. In this work, we adopt a Beta-Bernoulli finite bandit arm model [33] because of its efficiency in computation and conjugacy property.
+
+Suppose there is an agent with $K$ actions, each action $k \in \{1, \dots, K\}$ on the environment results in a reward one with probability $\theta_k \in [0, 1]$ and zero with probability $1 - \theta_k$ . $(\theta_1, \dots, \theta_K)$ are unknown to the agent but fixed over time. Suppose the agent has an independent prior belief for choosing $\theta_k$ . Let the priors over $\theta_k$ to be the beta distribution with parameter $\alpha_k, \beta_k$ . Then the prior probability density function for $\theta_k$ is
+
+$$
+p \left(\theta_ {k}\right) = \frac {\Gamma \left(\alpha_ {k} + \beta_ {k}\right)}{\Gamma (\alpha) + \Gamma (\beta)} \theta_ {k} ^ {\alpha_ {k} - 1} \left(1 - \theta_ {k}\right) ^ {\beta_ {k} - 1} \tag {7}
+$$
+
+where $\Gamma$ is the gamma function. Then after each observation from the environment the distribution of $\theta_{k}$ is updated according to Bayes' rule. By conjugacy property of beta distribution we can derive an update rule with simple form:
+
+$$
+\left(\alpha_ {k}, \beta_ {k}\right) \leftarrow \left\{ \begin{array}{l l} \left(\alpha_ {k}, \beta_ {k}\right) & , k _ {t} \neq k \\ \left(\alpha_ {k}, \beta_ {k}\right) + \left(r _ {t}, 1 - r _ {t}\right) & , k _ {t} = k \end{array} \right. \tag {8}
+$$
+
+where $t \in \{1, \dots, T\}$ denotes the time horizon, $k_{t}, r_{t}$ are the action and reward in time $t$ .
+
+Later in our black-box attack settings, the action $k$ will be to sample a parameterized isometry in a local region corresponding to $k$ . The reward is one if attack succeeds and zero otherwise. We assume the reward of attack follows Bernoulli distribution with success probability $\theta_{k}$ , which is learnt by TS during the sampling.
+
+# 3.3. Restricted Isometry Property and Spectral Norm Penalty
+
+The Restricted Isometry Property (RIP) was introduced by [6] to develop theorems in the field of compressed sensing. RIP can describe the almost orthonormal system, which makes it a perfect mathematical tool to quantify the variation of an isometry to a restricted isometry.
+
+For all $s$ -sparse vectors $x \in \mathbb{R}^n$ , i.e., $x$ has at most $s$ nonzero coordinates, matrix $A$ is said to satisfy $s$ -restricted isometry with constant $\delta$ if
+
+$$
+(1 - \delta) \| x \| ^ {2} \leq \| A x \| ^ {2} \leq (1 + \delta) \| x \| ^ {2} \tag {9}
+$$
+
+The smallest quantity of such $\delta$ is called the $s$ -Restricted Isometry Constant (RIC) of $A$ . We just consider the case $s = n$ since 1) there is no sparse constraint on vectors, 2)
+
+this allows us to impose orthogonality to $A$ from an RIP perspective [3]. The RIP condition in (9) is then
+
+$$
+\left| \frac {\| A x \| ^ {2}}{\| x \| ^ {2}} - 1 \right| \leq \delta , \quad \forall x \in \mathbb {R} ^ {n} \tag {10}
+$$
+
+Let $\sigma(A)$ be the spectral norm of $A$ , which is the largest singular value of $A$ . It can be easily shown
+
+$$
+\sigma \left(A ^ {T} A - I\right) = \sup _ {x \in \mathbb {R} ^ {n}, x \neq 0} | \frac {\| A x \| ^ {2}}{\| x \| ^ {2}} - 1 | \tag {11}
+$$
+
+Hence, finding the $n$ -RIC of $A$ is equivalent to computing $\sigma(A^TA - I)$ . We call $\sigma(A^TA - I)$ the spectral norm penalty of $A$ . It will be the core ingredient to help us develop the white-box attack in the next section.
+
+# 4. Attack Methods
+
+In this paper, we only consider adversarial attacks on classification models. Our approaches can be easily extended to other cases like segmentation models.
+
+# 4.1. Point Cloud and Model Notations
+
+Point Cloud. Point cloud is a cluster of points in $\mathbb{R}^3$ that represents an object or a scene. Each point $p$ in a point cloud is described by its Cartesian coordinates $p = (x_p, y_p, z_p)^T \in \mathbb{R}^3$ . Using a matrix notation, a point cloud $P$ with $m$ points is then described by $P = [p_1, p_2, \ldots, p_m]^T \in \mathbb{R}^{m \times 3}$ .
+
+Deep 3D Point Cloud Model. A deep 3D point cloud model is a function $F_{\theta}(\cdot): \mathbb{R}^{m \times 3} \to \mathbb{T}^c$ , where $\mathbb{T}^c = \{(a_1, \ldots, a_c) \in \mathbb{R}_+^c: \sum_{j=1}^c a_j = 1\}$ and $c$ is the total number of classes. We will omit $\theta$ later since in our analysis the model is fixed. Suppose $F$ is the full neural network with the softmax function and let $Z(P) = z \in \mathbb{R}^c$ be the output (called logit) except the softmax function, then $F(P) = \text{softmax}(Z(P))$ .
+
+# 4.2. Thompson Sampling Isometry (TSI) Attack
+
+The intuition of our isometry attack is to find an isometry on point cloud that misleads the model. For a given point cloud $P$ , let $C(P) = \operatorname{argmax}_j F(P)_j$ be the classification result and $C^*(P)$ be the true label of $P$ , then the isometry attack is
+
+find $A$
+
+$$
+\begin{array}{l} s. t. \quad A \in \operatorname {I s o} (3) \tag {12} \\ \operatorname {a r g m a x} _ {j} F \left(P A ^ {T}\right) _ {j} \neq C ^ {*} (P) \\ \end{array}
+$$
+
+For better interpretation and conciseness, we will use the attack based on rotations as examples in this subsection. Following the results in subsection 3.1, we can use three
+
+rotation angles $(\theta_{x},\theta_{y},\theta_{z})\in [a,b]^{3}$ to construct an arbitrary rotation matrix of $\mathbb{R}^3$ . It is not efficient to choose parameters from the uniform distribution $U([a,b]^3)$ , let alone capturing any useful information during the sampling procedure. To address this issue, we utilize TS to design this attack. First we divide $[a,b]^3$ in to $d^3$ intervals of the form
+
+$$
+X _ {i} \times Y _ {j} \times Z _ {h} \tag {13}
+$$
+
+for $(i,j,h)\in [d]^3\coloneqq \{1,\ldots ,d\} ^3$ , where
+
+$$
+X _ {i} = \left[ a + \frac {(i - 1) (b - a)}{d}, a + \frac {i (b - a)}{d} \right]
+$$
+
+$$
+Y _ {j} = [ a + \frac {(j - 1) (b - a)}{d}, a + \frac {j (b - a)}{d} ] \tag {14}
+$$
+
+$$
+Z _ {h} = \left[ a + \frac {(h - 1) (b - a)}{d}, a + \frac {h (b - a)}{d} \right]
+$$
+
+Applying an action $k = (i,j,h)$ means to sample $\theta_{x} \sim U(X_{i}), \theta_{y} \sim U(Y_{j}), \theta_{z} \sim U(Z_{h})$ and use them to create a rotation matrix by (6). Then we generate adversarial samples by this matrix and update parameters of TS. Our algorithm is as followed
+
+Algorithm 1 TSI $(F, \{P_1, \dots, P_N\}, a, b, d, S)$
+
+Input: model $F$ , point clouds $\{P_1, \dots, P_N\}$ , parameters range $[a, b]$ , number of intervals $d$ , maximum sampling times $S$ .
+
+Output: adversarial isometries $A_1^*, \ldots, A_N^*$
+
+1: Initiate $\alpha_{k}\gets 1,\beta_{k}\gets 1,\forall k\in [d]^{3}$ , where $k$ is corresponding to partition in (14)
+2: for $n = 1$ to $N$ do
+3: for $s = 1$ to $S$ do
+4: Sample $\hat{p}_k\sim \mathrm{beta}(\alpha_k,\beta_k),\forall k\in [d]^3$
+$k_{s}\gets \mathrm{argmax}_{k}\hat{p}_{k}$
+6: Apply action $k_{s}$ and get an isometry matrix $A^{(s)}$
+7: if $\operatorname{argmax}_h F(P_n(A^{(s)})^T)_h = C^*(P_n)$ then
+8: $r_s\gets 0$
+9: else
+10: $r_s\gets 1$
+11: end if
+12: $(\alpha_{k_s},\beta_{k_s})\gets (\alpha_{k_s} + r_s,\beta_{k_s} + 1 - r_s)$
+13: end for
+14: $A_{n}^{*}\gets \mathrm{argmin}_{A^{(s)}}F(P_{n}(A^{(s)})^{T})_{C^{*}(P_{n})}$
+15: end for
+
+We assume the prior distribution of $p_s$ follows beta distribution $\mathrm{Beta}(\alpha_s, \beta_s)$ with mean $\frac{\alpha_s}{\alpha_s + \beta_s}$ , which represents the attack success rate in area corresponding to $s$ . In TSI, we can adopt an early stop if the attack succeeds before reaching maximal sampling times.
+
+To show the power of TS, in Figure 2 we present heat maps $^2$ of $\frac{\alpha_s}{\alpha_s + \beta_s}$ , $s \in [d]^3$ projected to three planes. The heat map strongly testifies our insight that when the rotation angle gets closer to 0, it is less likely to achieve a successful attack.
+
+
+
+
+Figure 2. Heat map of success rate in each region learnt by TS. The number of each area represents probability of successful attack if sampling angles from this region. We project the numbers along each axis by taking means, thus they can be seen as marginal probability of a successful attack.
+
+# 4.3. Combined Targeted Restricted Isometry (CTRI) Attack
+
+To further evaluate the robustness, we propose the restricted isometry attack and formulate it as an optimization problem
+
+$$
+\min _ {A \in \operatorname {G L} _ {3} (\mathbb {R})} \sigma \left(A ^ {T} A - I\right) \tag {15}
+$$
+
+$$
+s. t. \quad \operatorname {a r g m i n} _ {j} F (P A ^ {T}) _ {j} \neq C ^ {*} (P)
+$$
+
+Based on the results from subsection 3.3, the objective function is indeed the 3-RIC of $A$ . To impose a targeted attack, i.e., an attack that manipulates the classification result to be a targeted class $t$ , we use the CW loss function introduced by [7]
+
+$$
+g _ {t} (P) = \max \left\{- \kappa , \max _ {j \neq t} Z (P) _ {j} - Z (P) _ {t} \right\} \tag {16}
+$$
+
+where $\kappa \geq 0$ is a chosen threshold. Then the Targeted Restricted Isometry (TRI) attack is formulated as
+
+$$
+\min _ {A \in \operatorname {G L} _ {3} (\mathbb {R})} \quad \sigma \left(A ^ {T} A - I\right) + \lambda g _ {t} \left(P A ^ {T}\right) \tag {17}
+$$
+
+where $\lambda$ is a positive real number.
+
+In practice we usually use Stochastic Gradient Descent (SGD) to iteratively solve optimization problems. To solve the problem in (17), a good initial point is of vital importance. Fortunately, since for any matrix $A \in \mathrm{Iso}(3)$ , $\sigma(A^T A - I) = 0$ , TSI actually provides a fine enough starting point for TRI attack. We now propose the Combined Targeted Restricted Isometry (CTRI) attack in Algorithm 2.
+
+# Algorithm 2 CTRI Attack
+
+Input: model $F$ , point clouds $\{P_1, \dots, P_N\}$ , parameters range $[a, b]$ , number of intervals $d$ , maximum iteration times $K$ , maximum sample times $S$ , learning step $\eta$ , penalty coefficient $\lambda$ , target class $t$ and $\kappa$ .
+
+Output: adversarial samples $P_{1}(A_{1}^{*})^{T},\dots,P_{N}(A_{N}^{*})^{T}$
+
+for $n = 1$ to $N$ do
+
+2: Set $A_{n}^{(0)} \gets \mathrm{TSI}(F, \{P_{n}\}, a, b, d, S)$ , only initiate $(\alpha, \beta)$ in TS at the first time $k \gets 0$
+
+4: while $k < K$ and $F(P_{n}(A_{n}^{(k)})^{T}) = C^{*}(P_{t})$ do
+
+$$
+A _ {n} ^ {(k + 1)} \leftarrow A _ {n} ^ {(k)} - \eta \nabla_ {A _ {n} ^ {(k)}} [ \sigma ((A _ {n} ^ {(k)}) ^ {T} A _ {n} ^ {(k)} - I) +
+$$
+
+$$
+\left. \lambda g _ {t} \left(P _ {n} \left(A _ {n} ^ {(k)}\right) ^ {T}\right) \right]
+$$
+
+6: $k\gets k + 1$
+
+end while
+
+8: $A_{n}^{*}\gets A_{n}^{(k)}$
+
+end for
+
+CTRI attack, enjoying both the merit of TS and the theoretical interpretation of RIP matrices, is a novel framework of white-box attack in 3D settings. By isometry parameterization, TS is capable to sample any isometry and explore the weakness of 3D model under different isometry transformations. Adjusting interval division parameters of TS gives us different scopes of examination, for example we can explore to what rotation range current 3D models are robust, which may provide insights on how to efficiently conduct data augmentation. As we will show in the experiment section, relaxation of isometry to RIP matrix produces a variety of adversarial samples that preserves the global geometry shape. Moreover, the spectral norm penalty, as a unified standard directly measured on transformation, makes the perturbation levels of different adversarial samples fairly comparable regardless the difference of data sets or models.
+
+# 5. Experiment Results and Analysis
+
+In this section, we evaluate the performance of our attacks on the following models: PointNet, PointNet++, DGCNN and RS-CNN. We conduct our experiments on two data sets: ModelNet40 [44] and part of ShapeNet [47]. For conciseness and better interpretation, we will only use rotation matrices in this section. Experiments of other isometries such as reflections will be presented in supplementary materials, indeed attacks based on reflections performs even better under certain settings.
+
+# 5.1. Victim Models Setting
+
+We retrain the above models with normalized (to a unit sphere) and augmented data as the victim models. The augmentation includes random rotation about y axis, random scale, random translation and jitter [30]. For ModelNet40, we use the official split of 9843 point clouds for training and 2468 for testing and attack, the sampling method is the same as those in [30]. For ShapeNet we use a 16 classes part with an official split to 12128 objects for training and
+
+ | ModelNet40 | ShapeNetPart |
| S=1 | S=2 | S=10 | S=1 | S=2 | S=10 |
| PointNet | 92.69 | 96.92 | 98.28 | 83.10 | 92.61 | 98.11 |
| PointNet++ | 83.74 | 91.31 | 95.66 | 79.32 | 89.57 | 92.96 |
| DG-CNN | 79.57 | 89.81 | 97.33 | 73.69 | 87.17 | 96.82 |
| RS-CNN | 85.68 | 94.19 | 96.81 | 76.46 | 90.01 | 97.41 |
+
+Table 1. Attack success rates $(\%)$ of TSI with different maximum sampling times $S$
+
+2874 for testing and attack. 2048 points are used for a single cloud in both data sets. The test accuracy of each retrained model is within $3\%$ of the best reported accuracy.
+
+In the following experiments, attacks will be exerted on these retrained models. Without extra statement, in one attack evaluation, we use 1) $N = 2000$ point clouds; 2) parameter range $[a,b] = [-\pi ,\pi ]$ and division $d = 4$ for TS. A point cloud that victim model fails to correctly classify is not counted in statistics of attack performance.
+
+# 5.2. TSI Attack
+
+We first evaluate TSI attack alone as an approach of black-box attack. Table 1 shows the results of $S = 1,2,10$ . As shown in the table, with maximum sampling times increasing to 10, TS achieves an attack success rate over $95\%$ on ModelNet40, revealing the vulnerability of current 3D models under isometry.
+
+Current black-box attacks in 2D are mainly through adversarial transferability [26], heuristic methods [1] and estimation of gradients [8]. These methods may not work in 3D settings due to different structure of data, for example, [45] finds that transferability is not obvious in 3D adversarial attacks. In comparison, TSI performs exceptionally well as a black-box attack.
+
+The reason why we adopt TS is that we believe for different rotation angles the impact on victim model is different. For example, if the rotation angle is very close to 0, attack might not work, but if it is close to $\pi /4$ , attack might easily succeed. This insight is strongly confirmed by heat maps in Figure 2. By understanding isometry properties of data set and model, TSI approach also shades light on how to conduct more effective and efficient data augmentation. We further guess a more delicate designed Thompson Sampling model such as an infinite-arm model might work better. Moreover, it might also perform well to generate different parameterized transformation other than isometry. We leave them for future work.
+
+# 5.3. CTRI Attack
+
+We then evaluate CTRI, where the target is chosen to be the label with second largest logit predicted by victim models, and $\kappa = 0$ is adopted. In order to find a good enough initial point, we use $S = 50$ in TSI. The attack success rate is presented in Table 2 for maximum gradient iteration times
+
+ | ModelNet40 | ShapeNetPart |
| K=7 | K=50 | K=1000 | K=7 | K=50 | K=1000 |
| PointNet | 99.44 | 99.66 | 100.00 | 99.38 | 99.69 | 100.00 |
| PointNet++ | 97.93 | 98.11 | 98.88 | 96.19 | 96.71 | 99.34 |
| DG-CNN | 97.99 | 98.28 | 99.45 | 98.26 | 99.08 | 99.95 |
| RS-CNN | 98.21 | 98.38 | 99.33 | 98.23 | 98.84 | 99.95 |
+
+Table 2. Attack success rates (\%) of CTRI with different $K$ , same $\lambda = 0.001$ and learning step $\eta = 0.0005$ . Here we use $S = 50$ in TSI.
+
+ | Max | Mean | Var | Mean* | Var* |
| PointNet | 0.064 | 8E-5 | 4E-6 | 0.033 | 3E-4 |
| PointNet++ | 0.055 | 1E-4 | 3E-6 | 0.006 | 9E-5 |
| DG-CNN | 0.066 | 9E-5 | 4E-6 | 0.020 | 5E-4 |
| RS-CNN | 0.068 | 6E-5 | 3E-6 | 0.025 | 5E-4 |
+
+Table 3. Statistics of $\sigma(A^TA - I)$ for the second column of table 2 (ModelNet40, $K = 50$ ). Since we adopt early stop, $\sigma(A^TA - I)$ will be zero if TSI succeeds. 'Mean*' and 'Var*' are the mean and variance over nonzero ones. They better reflect difference caused by TRI alone.
+
+ | Max | Mean | Var | Mean* | Var* |
| PointNet | 1.11 | 0.002 | 0.001 | 0.331 | 0.107 |
| PointNet++ | 1.00 | 0.004 | 0.003 | 0.114 | 0.063 |
| DG-CNN | 0.99 | 0.004 | 0.003 | 0.276 | 0.091 |
| RS-CNN | 0.84 | 0.003 | 0.002 | 0.318 | 0.073 |
+
+$K = 7,50,1000$ . We adopt an early stop here, i.e., when TSI or CTRI succeeds before reaching maximum iteration times, we move to the next sample. We also show the statistics of $\sigma (A^T A - I)$ in Table 3, 4 for restricted isometry $A$ that successfully fools the victim models.
+
+Visualization of TSI and CTRI adversarial examples are shown in Figure 1 and 3. Figure 1 shows misclassification of a rotated highway cone, which may cause safety issues for self-driving cars. Figure 3 consists of natural and adversarial samples of a stair, where the global shape is well preserved in the adversarial sample. More examples are demonstrated in the supplementary materials.
+
+# 5.4. Transferability
+
+Transferability is a commonly-seen property in 2D adversarial samples [26]. It refers to the case that an adversarial sample generate from one model can mislead another different model. However, in deep 3D models the adversarial samples proposed by previous works do not have strong transferability [45, 46].
+
+On the contrary, we find that adversarial samples generated by CTRI attacks have strong transferability, as shown in Table 5. In fact, a transfer attack should perform at least not worse than a random generated isometry, i.e., TSI attack when $S = 1$ . Such high rates indicate again that these mod
+
+
+Figure 3. Illustration of CTRI on PointNet trained by Model-Net40 data. The object in blue is classified as 'stairs' with confidence $99.91\%$ , while the grey object generated by CTRI is predicted as 'person' with confidence $72.66\%$ . Spectral norm penalty $\sigma (A^T A - I) = 0.2033$ .
+
+Table 4. Statistics of $\sigma (A^T A - I)$ for the third column of table 2 (ModelNet40, $K = 1000$ ).
+
+ | PointNet | PointNet++ | DG-CNN | RS-CNN |
| PointNet | / | 86.61 | 80.62 | 85.40 |
| PointNet++ | 95.76 | / | 85.68 | 92.71 |
| DG-CNN | 95.53 | 93.34 | / | 93.11 |
| RS-CNN | 95.04 | 92.58 | 84.59 | / |
+
+Table 5. Transfer attack success rate (\%) of CTRL with $S = 50$ , $K = 1000$ . The adversarial sample is generated from the model corresponding to the row and tested in model corresponding to the column.
+
+els are vulnerable to isometry transformations. Another reason why our approach has stronger transferability than that of others is that, CTRI tries to explore the global geometry structure, while others depend much more on the property of specific model such as critical points.
+
+# 5.5. Attack of Small Rotation Angles
+
+Instead of random sampling rotation angles from $[- \pi, \pi]$ , in this subsection we examine TSI and CTRI attack with a smaller range, say $[- \epsilon, \epsilon]$ . The result is shown in Table 6. TSI attack maintains a success rate of $69.529\%$ when the range shrinks to $[- \pi / 16, \pi / 16]$ . It only fails when the range reduces to an imperceptible level ( $\pi / 64 = 2.81^{\circ}$ ), indicating the model is just robust to relatively small range of rotations. Meanwhile CTRI attack succeeds easily with rates over $95\%$ and means of penalties less than 0.3.
+
+This experiment also provides useful information for efficient data augmentation, which we will discuss in the following subsection.
+
+# 5.6. On Defense: the Price of Robustness
+
+Data augmentation usually slightly lowers down the accuracy but helps improve the robustness [20]. However, our experiments show current data augmentation methods in 3D (random rotation about y, random scale and translation, jitter) are not enough for defense against our attacks.
+
+To better understand the relation between robustness and accuracy from a data augmentation approach, we design an
+
+ | CTRI (%) | TSI (%) | Max | Mean | Var | Mean* | Var* |
| [-π/2,π/2] | 100.000 | 99.335 | 1.012 | 0.001 | 8E-4 | 0.201 | 0.076 |
| [-π/4,π/4] | 99.944 | 99.386 | 0.443 | 0.001 | 4E-4 | 0.197 | 0.024 |
| [-π/8,π/8] | 99.944 | 98.153 | 1.460 | 0.003 | 0.003 | 0.214 | 0.101 |
| [-π/16,π/16] | 99.776 | 69.529 | 1.406 | 0.037 | 0.010 | 0.139 | 0.021 |
| [-π/32,π/32] | 98.222 | 18.000 | 1.833 | 0.178 | 0.047 | 0.246 | 0.047 |
| [-π/64,π/64] | 95.536 | 5.469 | 2.605 | 0.287 | 0.083 | 0.356 | 0.080 |
+
+Table 6. Attack evaluation of small rotation angles on ModelNet40 data and PointNet model. The first two columns are the attack success rate of iterative CTRL and TSI with $K = 1000$ , $S = 100$ , the rest are statistics for $\sigma(A^T A - I)$ . Other parameters are the same as those in Table 2.
+
+
+Figure 4. When $p$ goes up, the right figure shows the attack success rates decrease, while the left figure suggests model accuracy also goes down and the variance increases. Thus, there is a trade-off between model accuracy and robustness when data augmentation approach is considered.
+
+
+
+experiment: 1) First, we propose an augmentation method called random $p$ -rotation. It is to randomly rotate the data by (6) with probability $p$ . 2) Then we train PointNet model with random $p$ -rotation ModelNet40 data 15 times for different $p \in \{0, 0.1, \dots, 0.9, 1.0\}$ . 3) Finally, we randomly choose a victim model for each $p$ , and launch both rotation and reflection based TSI and CTRI attacks (same parameters as those in Table 2, $K = 1000$ ) on these models. The result is demonstrated in Figure 4.
+
+Clearly, accuracy varies a lot with different $p$ . The mean accuracy goes down to $69.47\%$ when $p = 1$ . TSI attack success rates decrease as $p$ increases, but CTRI success rates still remain in a high level. Thus, the point is how to find an efficient way of data augmentation without jeopardizing the accuracy too much. As shown in Figure 4, roughly when $p \in [0.1, 0.3]$ , the model accuracy remains around $90\%$ while TSI attack success rates reduce to around $80\%$ . Hence, random rotation with a low probability is a relatively efficient way to defense against TSI attack.
+
+Another efficient data augmentation method could be to randomly rotate the data by several fixed angles, say $\epsilon, 2\epsilon, \ldots, k\epsilon$ , where $\epsilon$ is chosen from subsection 5.5. The intuition is that since current models are robust to small rotation angles, we can take $\epsilon$ as the minimum step length to rotate the data. This approach is left for future work.
+
+We note that 3D augmentation should draw more attention, since many data sets in 3D are often not so adequate for training large models. In particular, simple augmenta
+
+tions are not sufficient under adversarial attacks. For one thing, data augmentation often brings large variance, which decreases the performance of models [18]. For another, augmentations without understanding of attacks are less efficient, and can lead to computational difficulties [5]. An efficient data augmentation may be able to defense against TSI without too much cost, but against CTRI attack a lot more computational power might be required, for example, by adversarial training [22].
+
+# 6. Conclusion
+
+We propose a black-box attack and a white-box attack in 3D adversarial settings, which is the first work to show the extreme vulnerability of current 3D deep learning model under isometry transformations. On the one hand, there are intriguing properties of our adversarial samples, such as strong transferability. On the other hand, our approaches point out promising directions for future researches in 3D adversarial learning: 1) TS shows great potential in developing black-box attack, which can also be further exploited in data augmentation. 2) CTRI achieves satisfying performance even under small rotation angles, while the geometry property of adversarial samples is well preserved. Therefore, further researches on defense against TSI and CTRI may hugely improve isometry robustness of 3D deep learning models.
+
+# 7. Acknowledgement
+
+The first author would like to thank Wang Qingyu for the help in plotting, Li Xinke for discussion, and Pan Binbin for proof reading. The work is supported under Grant NRF-RSS2016-004, NSF of Jiangsu Province BK20181259, NSFC 11871269 and NSFC 71673130.
+
+# 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. ACM, 2019.
+[2] Anish Athalye, Nicholas Carlini, and David Wagner. Obfuscated gradients give a false sense of security: Circum
+
+venting defenses to adversarial examples. arXiv preprint arXiv:1802.00420, 2018.
+[3] Nitin Bansal, Xiaohan Chen, and Zhangyang Wang. Can we gain more from orthogonality regularizations in training deep cnns? In Proceedings of the 32nd International Conference on Neural Information Processing Systems, pages 4266-4276. Curran Associates Inc., 2018.
+[4] Alexander M Bronstein, Michael M Bronstein, and Ron Kimmel. Efficient computation of isometry-invariant distances between surfaces. SIAM Journal on Scientific Computing, 28(5):1812-1836, 2006.
+[5] Sebastien Bubeck, Yin Tat Lee, Eric Price, and Ilya Razenshteyn. Adversarial examples from computational constraints. In Kamalika Chaudhuri and Ruslan Salakhutdinov, editors, Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pages 831-840, Long Beach, California, USA, 09-15 Jun 2019. PMLR.
+[6] Emmanuel J Candes and Terence Tao. Decoding by linear programming. IEEE TRANSACTIONS ON INFORMATION THEORY, 51(12):4203, 2005.
+[7] 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.
+[8] Pin-Yu Chen, Huan Zhang, Yash Sharma, Jinfeng Yi, and Cho-Jui Hsieh. Zoo: Zeroth order optimization based blackbox attacks to deep neural networks without training substitute models. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, pages 15-26. ACM, 2017.
+[9] 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.
+[10] Terrance DeVries and Graham W Taylor. Dataset augmentation in feature space. arXiv preprint arXiv:1702.05538, 2017.
+[11] Asi Elad and Ron Kimmel. On bending invariant signatures for surfaces. IEEE Transactions on pattern analysis and machine intelligence, 25(10):1285-1295, 2003.
+[12] 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.
+[13] Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pages 2672–2680, 2014.
+[14] Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014.
+[15] Alston S Householder. Unitary triangularization of a nonsymmetric matrix. Journal of the ACM (JACM), 5(4):339-342, 1958.
+
+[16] Michael Kazhdan, Thomas Funkhouser, and Szymon Rusinkiewicz. Rotation invariant spherical harmonic representation of 3 d shape descriptors. In Symposium on geometry processing, volume 6, pages 156-164, 2003.
+[17] Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial examples in the physical world. arXiv preprint arXiv:1607.02533, 2016.
+[18] Shiyi Lan, Ruichi Yu, Gang Yu, and Larry S Davis. Modeling local geometric structure of 3d point clouds using geo-cnn. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 998-1008, 2019.
+[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.
+[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.
+[21] 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.
+[22] Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017.
+[23] Fausto Milletari, Nassir Navab, and Seyed-Ahmad Ahmadi. V-net: Fully convolutional neural networks for volumetric medical image segmentation. In 2016 Fourth International Conference on 3D Vision (3DV), pages 565-571. IEEE, 2016.
+[24] Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, and Pascal Frossard. Deepfool: a simple and accurate method to fool deep neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2574–2582, 2016.
+[25] Marcin Novotni and Reinhard Klein. 3d zernike descriptors for content based shape retrieval. In Proceedings of the eighth ACM symposium on Solid modeling and applications, pages 216-225, 2003.
+[26] Nicolas Papernot, Patrick McDaniel, and Ian Goodfellow. Transferability in machine learning: from phenomena to black-box attacks using adversarial samples. arXiv preprint arXiv:1605.07277, 2016.
+[27] Nicolas Papernot, Patrick McDaniel, Xi Wu, Somesh Jha, and Ananthram Swami. Distillation as a defense to adversarial perturbations against deep neural networks. In 2016 IEEE Symposium on Security and Privacy (SP), pages 582-597. IEEE, 2016.
+[28] Youngmin Park, Vincent Lepetit, and Woontack Woo. Multiple 3d object tracking for augmented reality. In Proceedings of the 7th IEEE/ACM International Symposium on Mixed and Augmented Reality, pages 117-120. IEEE Computer Society, 2008.
+[29] Adrien Poulenard, Marie-Julie Rakotosaona, Yann Ponty, and Maks Ovsjanikov. Effective rotation-invariant point cnn
+
+with spherical harmonics kernels. In 2019 International Conference on 3D Vision (3DV), pages 47-56. IEEE, 2019.
+[30] 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.
+[31] 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.
+[32] 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.
+[33] Daniel J Russo, Benjamin Van Roy, Abbas Kazerouni, Ian Osband, Zheng Wen, et al. A tutorial on thompson sampling. Foundations and Trends in Machine Learning, 11(1):1-96, 2018.
+[34] Connor Shorten and Taghi M. Khoshgoftaar. A survey on image data augmentation for deep learning. Journal of Big Data, 6(1):60, Jul 2019.
+[35] Hang Su, Subhransu Maji, Evangelos Kalogerakis, and Erik Learned-Miller. Multi-view convolutional neural networks for 3d shape recognition. In Proceedings of the IEEE international conference on computer vision, pages 945-953, 2015.
+[36] Xiao Sun, Zhouhui Lian, and Jianguo Xiao. Srinet: Learning strictly rotation-invariant representations for point cloud classification and segmentation. In Proceedings of the 27th ACM International Conference on Multimedia, pages 980-988, 2019.
+[37] Johan WH Tangelder and Remco C Veltkamp. A survey of content based 3d shape retrieval methods. In Proceedings Shape Modeling Applications, 2004., pages 145-156. IEEE, 2004.
+[38] Tesla. Model's owner's manual, 2019.
+[39] Andreas M Tillmann and Marc E Pfetsch. The computational complexity of the restricted isometry property, the nullspace property, and related concepts in compressed sensing. IEEE Transactions on Information Theory, 60(2):1248-1259, 2013.
+[40] Christopher Triola. *Special orthogonal groups and rotations*. PhD thesis, Ph.D. dissertation, University of Mary Washington, 2009.
+[41] Dejan V Vranic, Dietmar Saupe, and Jörg Richter. Tools for 3d-object retrieval: Karhunen-loeve transform and spherical harmonics. In 2001 IEEE Fourth Workshop on Multimedia Signal Processing (Cat. No. 01TH8564), pages 293-298. IEEE, 2001.
+[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. ACM Transactions on Graphics (TOG), 38(5):146, 2019.
+[43] Matthew Wicker and Marta Kwiatkowska. Robustness of 3d deep learning in an adversarial setting. In Proceedings of the
+
+IEEE Conference on Computer Vision and Pattern Recognition, pages 11767-11775, 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] Chong Xiang, Charles R Qi, and Bo Li. Generating 3d adversarial point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9136-9144, 2019.
+[46] 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.
+[47] 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.
+[48] Hongyang Zhang, Yaodong Yu, Jiantao Jiao, Eric P Xing, Laurent El Ghaoui, and Michael I Jordan. Theoretically principled trade-off between robustness and accuracy. arXiv preprint arXiv:1901.08573, 2019.
+[49] Zhiyuan Zhang, Binh-Son Hua, David W Rosen, and Sai-Kit Yeung. Rotation invariant convolutions for 3d point clouds deep learning. In 2019 International Conference on 3D Vision (3DV), pages 204–213. IEEE, 2019.
+[50] Tianhang Zheng, Changyou Chen, Junsong Yuan, Bo Li, and Kui Ren. Pointcloud saliency maps. arXiv preprint arXiv:1812.01687, 2018.
+[51] 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.
\ No newline at end of file
diff --git a/onisometryrobustnessofdeep3dpointcloudmodelsunderadversarialattacks/images.zip b/onisometryrobustnessofdeep3dpointcloudmodelsunderadversarialattacks/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..b7e131e05bf94d59d24a1567ec22cd38c0f5cca0
--- /dev/null
+++ b/onisometryrobustnessofdeep3dpointcloudmodelsunderadversarialattacks/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9554205a6a4653d3f12f19d047dc76b74b934e544435353cbaa07bf643f91e20
+size 331107
diff --git a/onisometryrobustnessofdeep3dpointcloudmodelsunderadversarialattacks/layout.json b/onisometryrobustnessofdeep3dpointcloudmodelsunderadversarialattacks/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..8beae090bedd32bd88d203c216d4786a6e566771
--- /dev/null
+++ b/onisometryrobustnessofdeep3dpointcloudmodelsunderadversarialattacks/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5eabafc3fdcdd4c1bc823d237f42e6f51790f108ca59ee4663094b8e9bfe96e7
+size 560549
diff --git a/onjointestimationofposegeometryandsvbrdffromahandheldscanner/6813bc13-d4a8-46b0-b5f3-baed83a902e4_content_list.json b/onjointestimationofposegeometryandsvbrdffromahandheldscanner/6813bc13-d4a8-46b0-b5f3-baed83a902e4_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..157d67a889db223221a3a4f4d9868bf2b56c44ed
--- /dev/null
+++ b/onjointestimationofposegeometryandsvbrdffromahandheldscanner/6813bc13-d4a8-46b0-b5f3-baed83a902e4_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c504feb878180ea1ee2f0e6263038424bcc3130c4b5cbd1b5c3ce797c25d8b83
+size 92136
diff --git a/onjointestimationofposegeometryandsvbrdffromahandheldscanner/6813bc13-d4a8-46b0-b5f3-baed83a902e4_model.json b/onjointestimationofposegeometryandsvbrdffromahandheldscanner/6813bc13-d4a8-46b0-b5f3-baed83a902e4_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..8485475bae0fa625897958ef5850d42c120b0dad
--- /dev/null
+++ b/onjointestimationofposegeometryandsvbrdffromahandheldscanner/6813bc13-d4a8-46b0-b5f3-baed83a902e4_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:65608e174b30c77c45b072b1e532cad86d92ccbe46d8668695dc5bc47f7b0b57
+size 124378
diff --git a/onjointestimationofposegeometryandsvbrdffromahandheldscanner/6813bc13-d4a8-46b0-b5f3-baed83a902e4_origin.pdf b/onjointestimationofposegeometryandsvbrdffromahandheldscanner/6813bc13-d4a8-46b0-b5f3-baed83a902e4_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..277f44f3063815c1715486f75777c84b6b9d678b
--- /dev/null
+++ b/onjointestimationofposegeometryandsvbrdffromahandheldscanner/6813bc13-d4a8-46b0-b5f3-baed83a902e4_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d3cc07a9f37a2126a6e48ccc17c738bd1950b38655b835634bf7ccea55a5fa0e
+size 1262395
diff --git a/onjointestimationofposegeometryandsvbrdffromahandheldscanner/full.md b/onjointestimationofposegeometryandsvbrdffromahandheldscanner/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..355a23225eaca7734674f273b895d09b170eb4f2
--- /dev/null
+++ b/onjointestimationofposegeometryandsvbrdffromahandheldscanner/full.md
@@ -0,0 +1,446 @@
+# On Joint Estimation of Pose, Geometry and svBRDF from a Handheld Scanner
+
+Carolin Schmitt $^{1,2,*}$ Simon Donne $^{1,2,*}$ Gernot Riegler $^{3}$ Vladlen Koltun $^{3}$ Andreas Geiger $^{1,2}$
+
+1Max Planck Institute for Intelligent Systems, Tübingen
+
+$^{2}$ University of Tübingen $^{3}$ Intel Intelligent Systems Lab
+
+{firstname_lastname}@tue.mpg.de {firstname_lastname}@intel.com
+
+# Abstract
+
+We propose a novel formulation for joint recovery of camera pose, object geometry and spatially-varying BRDF. The input to our approach is a sequence of RGB-D images captured by a mobile, hand-held scanner that actively illuminates the scene with point light sources. Compared to previous works that jointly estimate geometry and materials from a hand-held scanner, we formulate this problem using a single objective function that can be minimized using off-the-shelf gradient-based solvers. By integrating material clustering as a differentiable operation into the optimization process, we avoid pre-processing heuristics and demonstrate that our model is able to determine the correct number of specular materials independently. We provide a study on the importance of each component in our formulation and on the requirements of the initial geometry. We show that optimizing over the poses is crucial for accurately recovering fine details and that our approach naturally results in a semantically meaningful material segmentation.
+
+# 1. Introduction
+
+Reconstructing the shape and appearance of objects is a long standing goal in computer vision and graphics with numerous applications ranging from telepresence to training embodied agents in photo-realistic environments. While novel depth sensing technology (e.g., Kinect) enabled large-scale 3D reconstructions [12, 61, 87], the level of realism provided is limited since physical light transport is not taken into account. As a consequence, material properties are not recovered and illumination effects such as specular reflections or shadows are merged into the texture component.
+
+Material properties can be directly measured using dedicated light stages [26, 40, 49] or inferred from images by assuming known [15, 36, 65] or flat [3, 4, 29, 76] object geometry. However, most setups are either restricted to lab environments, planar geometries, or difficult to employ "in the wild" as they assume aligned 3D models or scans.
+
+
+
+
+
+
+Geometry
+
+
+
+
+Input observations
+
+
+Figure 1: Illustration. Based on images captured from a handheld scanner with point light illumination, we jointly optimize for the camera poses, the surface geometry and spatially varying materials using a single objective function.
+
+
+Normals
+
+
+Appearance
+Diffuse
+
+
+Specular
+
+Ideally, object geometry and material properties are inferred jointly: a good model of light transport allows for recovering geometric detail using shading cues. An accurate shape model, in turn, facilitates the estimation of material properties. This is particularly relevant for shiny surfaces where small changes in the geometry greatly impact the appearance and location of specular reflections. Yet joint optimization of these quantities (shown in Fig. 1) is challenging.
+
+Several works have addressed this problem by assuming multiple images from a static camera [16, 21, 23, 28, 105] which is impractical for mobile scanning applications. Only a few works consider the challenging problem of joint geometry and material estimation from a handheld device [20, 24, 57]. However, existing approaches assume known camera poses and leverage sophisticated pipelines, decomposing the problem into smaller problems using multiple decoupled objectives and optimization algorithms that treat geometry and materials separately. Furthermore the number of base materials must be provided and/or pre-processing is required to cluster the object surface accordingly.
+
+In this work, we provide a novel formulation for this problem which does not rely on sophisticated pipelines or decoupled objective functions. However, we assume that the data was captured under known, non-static illumination with negligible ambient light. We make the following contributions: (1) We demonstrate that joint optimization of camera pose, object geometry and materials is possible using a single objective function and off-the-shelf gradient-based solvers. (2) We integrate material clustering as a differentiable operation into the optimization process by formulating non-local smoothness constraints. (3) Our approach automatically determines the number of specular base materials during the optimization process, leading to parsimonious and semantically meaningful material assignments. (4) We provide a study on the importance of each component in our formulation and a comparison to various baselines. (5) We provide our source code, dataset and reconstructed models publicly available at https://github.com/ autonomousvision/handheld svbrdf.Geometry.
+
+# 2. Related work
+
+We now discuss the most related work on geometry, material as well as joint geometry and material estimation.
+
+# 2.1. Geometry Estimation
+
+Multi-View Stereo (MVS) reconstruction techniques [18,38,39,77,80,84,85] recover the 3D geometry of an object from multiple input images by matching feature correspondences across views or optimizing photo-consistency. As they ignore physical light transport, they cannot recover material properties. Furthermore, they are only able to recover geometry for surfaces which are sufficiently textured.
+
+Shape from Shading (SfS) techniques exploit shading cues for reconstructing [27, 30, 72, 73, 99] or for refining 3D geometry [22, 48, 89, 104] from one or multiple images by relating surface normals to image intensities through Lambert's law. While early SfS approaches were restricted to objects made of a single Lambertian material, modern reincarnations of these models [6, 45, 62] are also able to infer non-Lambertian materials and lighting. Unfortunately, reconstructing geometry from a single image is a highly ill-posed problem, requiring strong assumptions about the surface geometry. Moreover, textured objects often cause ambiguities as intensity changes can be caused by changes in either surface orientation or surface albedo.
+
+Photometric Stereo (PS) approaches [25, 63, 70, 71, 83, 88, 102] assume three or more images captured with a static camera while varying illumination or object pose [41, 82] to resolve the aforementioned ambiguities. In contrast to early PS approaches which often assumed orthographic cameras and distant light sources, newer works have considered the more practical setup of near light sources [42, 43, 74, 94] and perspective projection [53, 54, 68]. To handle non-
+
+Lambertian surfaces, robust error functions have been suggested [69, 75] and the problem has been formulated using specularity-invariant image ratios [10, 50-52]. The advantages of PS (accurate normals) and MVS (global geometry) have also been combined by integrating normals from PS and geometry from MVS [17, 33, 44, 47, 58, 64, 81, 96] into a single consistent reconstruction. However, many classical PS approaches are not capable of estimating material properties other than albedo and most PS approaches require a fixed camera which restricts their applicability to lab environments. In contrast, here we are interested in recovering shape and surface materials using a handheld device.
+
+# 2.2. Material Estimation
+
+Intrinsic Image Decomposition [6,7,11,19] is the problem of decomposing an image into its material-dependent and light-dependent properties. However, only a small portion of the 3D physical process is captured by these models and strong regularizers must be exploited to solve the task. A more accurate description of the reflective properties of materials is provided by the Bidirectional Reflectance Distribution Function (BRDF) [59].
+
+For known 3D geometry, the BRDF can be measured using specialized light stages or gantries [26,40,49,60,78]. While this setup leads to accurate reflectance estimates, it is typically expensive, stationary and only works for objects of limited size. In contrast, recent works have demonstrated that reflectance properties of flat surfaces can be acquired using an ordinary mobile phone [3, 4, 29, 76, 95]. While data collection is easy and practical, these techniques are designed for capturing flat texture surfaces and do not generalize to objects with more complex geometries.
+
+More closely aligned with our goals are approaches that estimate parametric BRDF models for objects with known geometry based on sparse measurements of the BRDF space [15, 36, 55, 56, 65, 90–92, 97, 101]. While we also estimate a parametric BRDF model and assume only sparse measurements of the BRDF domain, we jointly optimize for camera pose, object geometry and material parameters. As our experiments show, joint optimization allows us to recover fine geometric structures (not present in the initial reconstruction) while at the same time improving material estimates compared to a sequential treatment of both tasks.
+
+# 2.3. Joint Geometry and Material Estimation
+
+Several works have addressed the problem of jointly inferring geometry and material. By integrating shading cues with multi-view constraints and an accurate model of materials and light transport, this approach has the potential to deliver the most accurate results. However, joint optimization of all relevant quantities is a challenging task.
+
+Several works have considered extensions of the classic PS setting [1,5,8,16,21,23,28,67,93,103,105]. While some
+
+of these approaches consider multiple viewpoints and/or estimate spatially varying BRDFs, all of them require multiple images from the same viewpoint as input, i.e., they assume that the camera is on a tripod. While this would simplify matters, here we are interested in jointly estimating geometry and materials from a handheld device which can be used for scanning a wide range of objects outside the laboratory and which allows for obtaining more complete reconstructions by scanning objects from multiple viewpoints.
+
+There exist only few works that consider the problem of joint geometry and material estimation from an active handheld device. Higo et al. [24] present a plane-sweeping approach combined with graph cuts for estimating albedo, normals and depth, followed by a post-processing step to integrate normal information into the depth and to remove outliers [58]. Georgoulis et al. [20] optimize an initial mesh computed via structure-from-motion and a data-driven BRDF model in an alternating fashion. They use k-means for clustering initial BRDF estimates into base materials and iteratively recompute the 3D geometry using the method of [58]. In similar spirit, Nam et al. [57] split the optimization problem into separate parts. They first cluster the material estimates using k-means, followed by an alternating optimization procedure which interleaves material, normal and geometry updates. The latter is updated using screened Poisson surface reconstruction [35] while materials are recovered using a separate objective.
+
+The main contribution of our work is a simple and clean formulation of this problem: we demonstrate that geometry and materials can be inferred jointly using a single objective function optimized using standard gradient-based techniques. Our approach naturally allows for optimizing additional relevant quantities such as camera poses and integrates material clustering as a differentiable operation into the optimization process. Moreover, we demonstrate automatic model selection by determining the number of distinct material components as illustrated in Fig. 2.
+
+# 3. Method
+
+Let us assume a set of color images $\mathcal{I}_i: \mathbb{R}^2 \to \mathbb{R}^3$ captured from $N$ different views $i \in \{1, \dots, N\}$ . Without loss of generality, let us select $i = 1$ as the reference view based on which we will parameterize the surface geometry and materials as detailed below. Note that in our visualizations all observations are represented in this reference view.
+
+Our goal is to jointly recover the camera poses, the geometry of the scene as well as the material properties in terms of a spatially varying Bidirectional Reflectance Distribution Function (svBRDF).
+
+More formally, we wish to estimate the locations $\mathbf{x}_p = (x_p,y_p,z_p)^T$ , surface normals $\mathbf{n}_p = (n_p^x,n_p^y,n_p^z)^T$ , and svBRDF $f_{p}(\cdot)$ of a set of $P$ surface points $p$ , as well as the projective mappings $\pi_i:\mathbb{R}^3\to \mathbb{R}^2$ that map a 3D point
+
+$\mathbf{x}_p \in \mathbb{R}^3$ into camera image $i$ . We assume that each image is illuminated by exactly one point light source. Similar to prior works, we assume that global and ambient illumination effects are negligible.
+
+# 3.1. Preliminaries
+
+This section describes the parameterizations of our model.
+
+Camera Representation: We use a perspective pinhole camera model and assume constant intrinsic camera parameters that can be estimated using established calibration procedures [100]. We also assume that all images have been undistorted and the vignetting has been removed. We therefore only optimize for the extrinsic parameters (i.e., rotation and translation) of each projective mapping $\pi_i : \mathbb{R}^3 \to \mathbb{R}^2$ .
+
+Geometry Representation: We define the surface points in terms of the depth map in the reference view $\mathcal{Z}_1 = \{z_p\}$ , using $p$ as the pixel/point index. Assuming a pinhole projection, the 3D location of surface point $p$ is given by
+
+$$
+\begin{array}{l} \mathbf {x} _ {p} = \pi_ {1} ^ {- 1} (u _ {p}, v _ {p}, z _ {p}) \\ = \left(\frac {u _ {p} - c _ {x}}{f}, \frac {v _ {p} - c _ {y}}{f}, 1\right) z _ {p} \tag {1} \\ \end{array}
+$$
+
+where $[u_p, v_p]^T$ denotes the location of pixel $p$ in the reference image $\mathcal{I}_c$ , $z_p$ is the depth at pixel $p$ , $\pi_1^{-1}$ is the inverse projection function and $f, c_x, c_y$ denote its parameters.
+
+Normal Representation: We represent normals $\mathbf{n}_p$ as unit vectors. In every iteration of the gradient-based optimization, we estimate an angular change for this vector so that we avoid both the unit normal constraint and the gimbal lock problem.
+
+svBRDF Representation: The svBRDF $f_{p}(\mathbf{n}_{p}, \boldsymbol{\omega}^{\mathrm{in}}, \boldsymbol{\omega}^{\mathrm{out}})$ models the fraction of light that is reflected from incoming light direction $\boldsymbol{\omega}^{\mathrm{in}}$ to outgoing light direction $\boldsymbol{\omega}^{\mathrm{out}}$ given the surface normal $\mathbf{n}_{p}$ at point $p$ . We use a modified version of the Cook-Torrance microfacet BRDF model [13]
+
+$$
+f _ {p} \left(\mathbf {n} _ {p}, \boldsymbol {\omega} ^ {\text {i n}}, \boldsymbol {\omega} ^ {\text {o u t}}\right) = \mathbf {d} _ {p} + \mathbf {s} _ {p} \frac {D \left(r _ {p}\right) G \left(\mathbf {n} _ {p} , \boldsymbol {\omega} ^ {\text {i n}} , \boldsymbol {\omega} ^ {\text {o u t}} , r _ {p}\right)}{\pi \left(\mathbf {n} _ {p} \cdot \boldsymbol {\omega} ^ {\text {i n}}\right) \left(\mathbf {n} _ {p} \cdot \boldsymbol {\omega} ^ {\text {o u t}}\right)} \tag {2}
+$$
+
+where $D(\cdot)$ describes the microfacet slope distribution, $G(\cdot)$ is the geometric attenuation factor, and $\mathbf{d}_p\in \mathbb{R}^3$ , $\mathbf{s}_p\in \mathbb{R}^3$ and $r_p\in \mathbb{R}$ denote diffuse albedo, specular albedo and surface roughness, respectively. We use Smith's function as implemented in Mitsuba [31] for $G(\cdot)$ and the GTR model of the Disney BRDF [9] for $D(\cdot)$ . Following [57], we ignore the Fresnel effect which cannot be observed using a handheld setup.
+
+As illustrated in Fig. 2, many objects can be modeled well with few specular material components [46] while the object texture is more complex. We thus allow the diffuse
+
+
+Figure 2: Reconstructions and Estimated Material Assignments for Real Objects. The teapot and the globe are very smooth and reflective objects whereas the girl and rabbit are near-Lambertian objects with rich geometry and a rough surface. The duck, the gnome and the hydrant are composed of both shiny and rough parts. While the duck, the gnome, the green vase and the sheep comprise mostly homogeneous colours, both the globe and the teapot have very detailed textures. The teapot is painted, which creates surface irregularities, while the globe is printed and therefore smooth. We show renderings (top) and specular base material segmentations (bottom) from our method; the number of bases $T$ is automatically determined by model selection within our framework. We visualize the more specular materials in red.
+
+albedo $\mathbf{d}_p$ to vary freely per pixel $p$ , and model specular reflectance as a combination of $T$ specular base materials
+
+$$
+\left( \begin{array}{l} \mathbf {s} _ {p} \\ r _ {p} \end{array} \right) = \sum_ {t = 1} ^ {T} \alpha_ {p} ^ {t} \left( \begin{array}{l} \mathbf {s} _ {t} \\ r _ {t} \end{array} \right) \tag {3}
+$$
+
+with per-pixel BRDF weights $\alpha_{p}^{t}\in [0,1]$ and specular base materials $\{(s_t,r_t)\}_{t = 1}^T$ . Note that this is in contrast to other representations [21,40] which linearly combine also the diffuse part, hence requiring more base materials to reach the same fidelity. We found that $T\leq 3$ specular bases are sufficient for almost all objects. In summary, our svBRDF is fully determined by $\{(\mathbf{s}_t,r_t)\}_{t = 1}^T$ and $\{\mathbf{d}_p,\boldsymbol {\alpha}_p\}_{p = 1}^P$ .
+
+# 3.2. Model
+
+This section describes our objective function. Let $\mathcal{X} = \{\{(z_p,\mathbf{n}_p,f_p)\}_{p = 1}^P,\{\pi_i\}_{i = 2}^N\}$ denote the depth, normal and material for every pixel $p$ in the reference view, as well as the projective mapping for each adjacent view. We formulate the following objective function
+
+$$
+\mathcal {X} ^ {*} = \underset {\mathcal {X}} {\operatorname {a r g m i n}} \psi_ {\mathcal {P}} + \psi_ {\mathcal {G}} + \psi_ {\mathcal {D}} + \psi_ {\mathcal {N}} + \psi_ {\mathcal {M}} \tag {4}
+$$
+
+omitting the dependency on $\mathcal{X}$ and the relative weights between the individual terms. Our objective function is composed of five terms which encourage photoconsistency $\psi_{\mathcal{P}}$ geometric consistency $\psi_{\mathcal{G}}$ , depth compatibility $\psi_{\mathcal{D}}$ , normal smoothness $\psi_{\mathcal{N}}$ and material smoothness $\psi_{\mathcal{M}}$
+
+Photoconsistency: The photoconsistency term ensures that the prediction of our model matches the observation
+
+$\mathcal{I}_i$ for every image $i$ and pixel $p$ :
+
+$$
+\psi_ {\mathcal {P}} (\mathcal {X}) = \tag {5}
+$$
+
+$$
+\frac {1}{N} \sum_ {i} \sum_ {p} \| \varphi_ {p} ^ {i} \left[ \mathcal {I} _ {i} (\pi_ {i} (\mathbf {x} _ {p})) - \mathcal {R} _ {i} (\mathbf {x} _ {p}, \mathbf {n} _ {p}, f _ {p}) \right] \| _ {1}
+$$
+
+Here, $\mathcal{R}_i$ denotes the rendering operator for image $i$ which applies the rendering equation [34] to every pixel $p$ . Assuming a single point light source, we obtain
+
+$$
+\mathcal {R} _ {i} \left(\mathbf {x} _ {p}, \mathbf {n} _ {p}, f _ {p}\right) = \tag {6}
+$$
+
+$$
+f _ {p} \left(\mathbf {n} _ {p}, \boldsymbol {\omega} _ {i} ^ {\mathrm {i n}} (\mathbf {x} _ {p}), \boldsymbol {\omega} _ {i} ^ {\mathrm {o u t}} (\mathbf {x} _ {p})\right) \frac {a _ {i} (\mathbf {x} _ {p}) \mathbf {n} _ {p} ^ {T} \boldsymbol {\omega} _ {i} ^ {\mathrm {i n}} (\mathbf {x} _ {p})}{d _ {i} (\mathbf {x} _ {p}) ^ {2}} L
+$$
+
+where $\omega_{i}^{\mathrm{in}}(\mathbf{x}_{p})$ denotes the direction of the ray from the surface point $\mathbf{x}_p$ to the light source and $\omega_{i}^{\mathrm{out}}(\mathbf{x}_{p})$ denotes the direction from $\mathbf{x}_p$ to the camera center. $a_{i}(\mathbf{x}_{p})$ is the angle-dependent light attenuation which is determined through photometric calibration, $d_{i}(\mathbf{x}_{p})$ is the distance between $\mathbf{x}_p$ and the light source and $L$ denotes the radiant intensity of the light. Note that all terms depend on the image index $i$ , as the location of the camera and the light source vary from frame to frame when recording with a handheld lightstage.
+
+The visibility term $\varphi_p^i$ in (5) disables occluded or shadowed observations i.e., we do not optimize for these regions. We set $\varphi_p^i = 1$ if surface point $\mathbf{x}_p$ is both visible in view $i$ (i.e., no occluder between $\mathbf{x}_p$ and the $i$ 'th camera) and illuminated (e.g., no occluder between $\mathbf{x}_p$ and the point light), and $\varphi_p^i = 0$ otherwise. Note that for the reference view every pixel is visible, but not necessarily illuminated.
+
+Geometric Consistency: We enforce consistency between depth $\{z_{p}\}$ and normals $\{\mathbf{n}_p\}$ by ensuring that the normal field integrates to the estimated depth map. We formulate this constraint by maximizing the inner product between the estimated normals $\{\mathbf{n}_p\}$ and the cross product of the surface tangents at $\{\mathbf{x}_p\}$ :
+
+$$
+\psi_ {\mathcal {G}} (\mathcal {X}) = - \sum_ {p} \vec {n} _ {p} ^ {T} \left(\frac {\frac {\partial z _ {p}}{\partial x} \times \frac {\partial z _ {p}}{\partial y}}{\left\| \frac {\partial z _ {p}}{\partial x} \times \frac {\partial z _ {p}}{\partial y} \right\| _ {2}}\right) \qquad (7)
+$$
+
+The surface tangent $\frac{\partial z_p}{\partial x}$ is given by
+
+$$
+\frac {\partial z _ {p}}{\partial x} \propto \left[ 1, 0, \vec {\nabla} \mathcal {Z} _ {1} \left(\pi_ {1} (\vec {x} _ {p})\right) ^ {T} [ f / z _ {p}, 0 ] ^ {T} \right] ^ {T} \tag {8}
+$$
+
+where $\vec{\nabla}\mathcal{Z}_1(\pi_1(\vec{x}_p))$ denotes the gradient of the depth map, which we estimate using finite differences. We obtain a similar equation for $\frac{\partial z_p}{\partial y}$ . See the supplement for details.
+
+A valid question to raise is whether a separate treatment of depth and normals is necessary. An alternative formulation would consider consistency between depth and normals as a hard constraint, i.e., enforcing Equation (7) strictly, and optimizing only for depth. While reducing the number of parameters to be estimated, we found that such a representation is prone to local minima during optimization due to the complementary nature of the constraints (depth vs. normals/shading). Instead, using auxiliary normal variables and optimizing for both depth and normals using a soft coupling between them allows us to overcome these problems.
+
+Depth Compatibility: The optional depth term allows for incorporating depth measurements $\mathcal{Z}_1$ in the reference view $i = 1$ by regularizing our estimates $z_{p}$ against it:
+
+$$
+\psi_ {\mathcal {D}} (\mathcal {X}) = \sum_ {p} \| z _ {p} - \mathcal {Z} _ {1} (u _ {p}, v _ {p}) \| _ {2} ^ {2} \tag {9}
+$$
+
+Note that our model is able to significantly improve upon the initial coarse geometry provided by the structured light sensor by exploiting shading cues. However, as these cues are related to depth variations (i.e., normals) rather than absolute depth, they do not fully constrain the 3D shape of the object. Our experiments demonstrate that combining complementary depth and shading cues yields reconstructions which are both locally detailed and globally consistent.
+
+Normal Smoothness: We apply a standard smoothness regularizer to the normals of adjacent pixels $p \sim q$
+
+$$
+\psi_ {\mathcal {G}} (\mathcal {X}) = \sum_ {p \sim q} \| \mathbf {n} _ {p} - \mathbf {n} _ {q} \| _ {2} ^ {2} \tag {10}
+$$
+
+in order to encourage smooth surfaces.
+
+Material Smoothness: We only observe specular BRDF components for a minority of pixels that actually observe a
+
+specular highlight in at least one of their measurements. We therefore introduce a non-local material regularizer which propagates specular behavior across image regions of similar appearance. Assuming that nearby pixels with similar diffuse behavior also exhibit similar specular behavior, we formulate this term by penalizing deviation of the material weights wrt. a bilaterally smoothed version of themselves
+
+$$
+\begin{array}{l} \psi_ {\mathcal {M}} (\boldsymbol {\mathcal {X}}) = \sum_ {p} \left\| \boldsymbol {\alpha} _ {p} - \frac {\sum_ {q} \boldsymbol {\alpha} _ {q} w _ {q} k _ {p , q}}{\sum_ {q} w _ {q} k _ {p , q}} \right\| _ {1} \\ - \sum_ {p} \left\| \boldsymbol {\alpha} _ {p} - \frac {1}{P} \sum_ {q} \boldsymbol {\alpha} _ {q} \right\| _ {1} \tag {11} \\ \end{array}
+$$
+
+using a Gaussian kernel $k_{p,q}(\mathbf{d}_p,\mathbf{d}_q)$ with 3D location $\mathbf{x}$ and diffuse albedo $\mathbf{d}$ at pixels $p$ and $q$ as features:
+
+$$
+k _ {p, q} = \exp \left(- \frac {\left(\mathbf {x} _ {p} - \mathbf {x} _ {q}\right) _ {2} ^ {2}}{2 \sigma_ {1} ^ {2}} - \frac {\left(\mathbf {d} _ {p} - \mathbf {d} _ {q}\right) _ {2} ^ {2}}{2 \sigma_ {2} ^ {2}}\right) \tag {12}
+$$
+
+As the only informative regions are those that potentially observe a highlight, the weights $w_{q} = \max_{i}\mathrm{acos}^{-1}(\mathbf{n}_{q}\cdot \mathbf{h}_{q}^{i})$ indicate whether pixel $q$ was ever observed close to perfect mirror reflection. This is determined by the normal $\mathbf{n}_q$ and the half-vector $\mathbf{h}_p^i$ (i.e., the bisector between $\omega^{in}$ and $\omega^{out}$ ) for each view $i$ . We use the permutohedral lattice [2] to efficiently evaluate the bilateral filter.
+
+The second term in (11) encourages material sparsity by maximizing the distance to the average BRDF weights where $P$ denotes the total number of surface points/pixels.
+
+# 3.3. Optimization
+
+We now discuss the parameter initialization and how we minimize our objective function (4) with respect to $\mathcal{X}$ .
+
+Initial **Poses:** The camera poses can be either initialized using classical SfM pipelines such as COLMAP [77, 79] or using a set of fiducial markers. As SfM approaches fail in the presence of textureless surfaces, we use a small set of AprilTags [86] attached to the table supporting the object of interest. As evidenced by our experiments, the poses estimated using fiducial markers are not accurate enough to model pixel-accurate light transport. We demonstrate that geometry and materials can be significantly improved by jointly refining the initial camera poses.
+
+Initial Depth: The initial depth map $\mathcal{Z} = \{z_p\}$ can be obtained using active or passive stereo, or the visual hull of the object. As we do not assume textured objects and silhouettes can be difficult to extract in the presence of dark materials, we use active stereo with a Kinect-like dot pattern projector for estimating $\mathcal{Z}$ . More specifically, we estimate a depth map for each of the $N$ views, integrate them using volumetric fusion [14] and project the resulting mesh back to the reference view.
+
+
+Observation
+
+
+Crop
+
+
+Reconstruction
+Figure 3: Super-Resolution and Denoising. Blurred and noisy input images (Observation and Crop) get denoised and sharpened by our method (Reconstruction).
+
+Initial Normals and Albedo: Assuming a Lambertian scene, normals and albedo can be recovered in closed form. We follow the approach of Higo et al. [24] and use RANSAC to reject outliers due to specularities.
+
+Initial Specular BRDF Parameters and Weights: We initialize each pixel in the scene as a uniform mix of all base materials. To diversify the initial base materials, we initialize the specular base components $\mathbf{s}_t$ differently, and set each base roughness $r_t$ to 0.1.
+
+Model Selection: We perform model selection by optimizing for multiple numbers of specular base materials $T \in \{1,2,3\}$ , choosing that with the smallest photometric error while adding a small MDL penalty (linear in $T$ ).
+
+Implementation: We jointly optimize over $\mathcal{X}$ , using ADAM [37] and PyTorch [66], see supplement for details.
+
+# 4. Experimental Evaluation
+
+In order to evaluate our method quantitatively and qualitatively, we capture several real objects using a custom-built rig with active illumination. Reconstructed versions of these objects are shown in Fig. 2. We scanned the objects with an Artec Spider1 to obtain ground truth geometry.
+
+We first briefly describe our hardware and data capture procedure. After introducing the metrics, both geometric and photometric, we provide an ablation study in terms of the individual components of our model. Finally, we compare our approach with several competitive baselines.
+
+# 4.1. Evaluation Protocol
+
+Hardware: Our custom-built handheld sensor rig is shown in Fig. 4. While we use multiple light sources for a dense sampling of the BRDF, our framework and code is directly applicable to any number of lights. We calibrate the camera and depth sensor regarding their intrinsics and extrinsics as well as vignetting effects. We also calibrate the location of the light sources relative to the camera as well as their angular attenuation behavior and radiant intensities. Due to
+
+
+Figure 4: Sensor Rig. Our setup comprises a Kinect-like active depth sensor, a global shutter RGB camera and 12 point light sources (high-power LEDs) surrounding the camera in two circles (with radii $10\mathrm{cm}$ and $25\mathrm{cm}$ ).
+
+space limitations, we provide more details about our system in the supplement.
+
+Data Capture: The objects are placed on a table with AprilTags [86] for tracking the sensor position. We assume that the ambient light is negligible and capture videos of each object by moving the handheld sensor around the object. Given each reference view, we select 45 views within a viewing cone of 30 degrees by maximizing the minimum pairwise distance; no two views are ever close together. These views are then split into 40 training and 5 held-out test views. While a handheld setup is challenging due to the trade-off between motion blur and image noise, our experiments demonstrate that our method is capable to superresolve and denoise fine textures while simultaneously rejecting blurry observations, see Fig. 3.
+
+Evaluation Metrics: We evaluate the estimated structure $\{\mathbf{x}_p\}$ wrt. the Artec Spider scan. The ground truth scan is first roughly aligned by hand and subsequently finetuned using dense image-based alignment wrt. depth and normal errors. We evaluate geometric accuracy by using the average point-to-mesh distance for all reconstructed points as in [32]. To evaluate surface normals, we calculate the average angular error (AAE) between the predicted normal $\mathbf{n}_p$ and the normal of the closest point in the ground truth scan. To quantify photometric reconstruction quality, we calculate the photoconsistency term in Eq. (5) for the test views.
+
+# 4.2. Ablation Study
+
+In this section we demonstrate the need to optimize over the camera poses and discuss the effect of specifically the geometric consistency and the material smoothness terms. Finally, we investigate the impact of the number of views on the photometric and geometric error. Additional results are provided in the supplement.
+
+Pose Optimization: Disambiguating geometric properties from material is a major challenge. We found that optimizing the poses jointly with the other parameters is crucial for this, in particular when working with a handheld scanner. Fig. 5 shows that inaccurate poses cause a significant contamination of the geometry with texture information. This is even more crucial when estimating specularities: misalignment causes highlights to be inconsistent with the geometry and therefore difficult to recover.
+
+
+Figure 5: Pose Optimization. Compared to using the input poses (top), optimizing the poses (bottom) improves reconstructions, both quantitatively and qualitatively. The photometric error is reported for regions with and without specular highlights. See the supplement for more details.
+
+
+(a) Materials
+(b) Geometry
+Figure 6: Loss Regularizers. Without the regularization (top), the appearance is inconsistent within homogeneous areas of the object. Using the regularization losses (bottom), we are able to propagate the information and successfully generalize to new illumination conditions on the test set.
+
+Material Segmentation: Decomposing the appearance of the object into its individual materials is an integral element of our approach. Our material smoothness term Eq. (11) propagates material information over large areas of the image. This is essential as we otherwise only obtain sparse measurements of the BRDF at each pixel. It leads to semantically meaningful full segmentations, as illustrated in Fig. 2, as well as more successful generalization, as shown in Fig. 6a.
+
+Geometric Consistency: Splitting up the depth and normals into separate optimization variables yields a better behaved optimization problem, but coupling depth and normals proves crucial for consistent results. Even though the photometric term provides some constraints for the depth at each pixel, Fig. 6b shows that omitting the geometric consistency term results in high-frequency structure artifacts.
+
+Number of Input Views: Our goal is to estimate the spatially varying BRDF but we only observe a very sparse set
+
+
+Figure 7: Number of Input Views. The photometric test error (blue) degrades gracefully with decreasing number of observations. As expected, the quality of the highlights is most affected by a small number of views.
+
+
+Init. from 5 depth maps
+Figure 8: Geometry Refinement. The final geometry estimate (right) is largely unaffected by the initialization (left). Details are recovered, even from a very coarse initialization.
+
+
+Init. from 40 depth maps
+
+of samples for each surface point $p$ . Reducing the number of images exacerbates this problem, as shown in Fig. 7. We see that our method degrades gracefully, with reasonable results even for using only 10 input images.
+
+We also evaluate the robustness of our method wrt. the initial geometry by reducing the number of depth maps fused for initialization. As Fig. 8 shows, our method is able to recover from inaccurate depth initialization and achieves similar quality reconstructions even when initializing from only 5 depth maps. By construction, our model does not recover geometry that is absent in the initial estimate.
+
+# 4.3. Comparison to Existing Approaches
+
+Similar to us, Higo et al. [24] use a handheld scanner for estimating depth, normals and material using a 2.5D representation. Unlike us, they treat specular highlights, shadows and occlusions as outliers using RANSAC. Georgoulis et al. [20] and Nam et al. [57] also estimate structure and normals, explicitly modeling non-Lambertian materials. But due to the nature of their pipelines, they are restricted to a disjoint optimization procedure and update geometry and materials in alternation. It is important to note that the baselines expect the camera positions to be known accurately. So for the baselines we first refine the poses using SfM [77]. Unfortunately, none of the existing works provide code. We have re-implemented the approach of Higo et al. [24] as baseline. To investigate the benefits of joint optimization, we implemented a disjoint variant of our method that alternates between geometry and material
+
+
+Figure 9: Qualitative Geometry Comparison. We show, for each object, the rendered depth map (shaded based on estimated surface normals rather than the estimated normals $\mathbf{n}_p$ ) and the color-coded depth error wrt. the Artec Spider ground truth. We observe that the photometric approaches recover far more details than the purely geometric TSDF fusion. The resulting structure for Higo et al. [24] is rather noisy, while the disjoint version of our proposed approach is not as successful at disambiguating texture and geometry for very fine details. We refer to the supplement for additional results.
+
+ | duck | pineapple | girl | gnome | sheep | hydrant | rabbit |
| AEA | TSDF Fusion [98] | 0.81 | 1.24 | 1.11 | 0.73 | 0.79 | 1.35 | 2.16 |
| Higo et al. [24] | 2.65 | 1.05 | 1.59 | 1.60 | 2.09 | 1.81 | 2.85 |
| Proposed (disjoint) | 0.81 | 1.00 | 1.06 | 0.65 | 0.64 | 1.18 | 2.25 |
| Proposed | 0.80 | 1.00 | 1.00 | 0.64 | 0.57 | 1.16 | 2.16 |
| AAE | TSDF Fusion [98] | 6.75 | 12.09 | 11.40 | 7.64 | 8.38 | 11.67 | 24.42 |
| Higo et al. [24] | 7.77 | 10.62 | 11.30 | 9.24 | 8.65 | 15.27 | 27.67 |
| Proposed (disjoint) | 6.01 | 9.13 | 9.81 | 6.41 | 6.66 | 9.59 | 23.01 |
| Proposed | 5.17 | 8.98 | 8.73 | 5.74 | 5.60 | 8.50 | 23.50 |
+
+Table 1: Quantitative Geometry Comparison. We report both the average euclidean accuracy and average angular error, as discussed in Section 4.1. Please refer to the supplement for a more detailed table.
+
+updates. We also evaluate the improvement over the initial TSDF fusion using the implementation of Zeng et al. [98].
+
+Our experimental evaluation $^2$ is shown in Fig. 9 and Table 1. We see that TSDF fusion, a purely geometric approach, reconstructs the general surface well but misses fine details. Their spatial regularizer helps Higo et al. [24] to achieve reasonable reconstructions, which are however strongly affected by the noisy, unregularized, normal estimates. Additionally, the RANSAC approach to shadow handling results in artifacts around depth discontinuities.
+
+Both the joint and disjoint versions of our approach reconstruct the scene more accurately than the baselines, but the joint approach consistently obtains better reconstruction accuracy given a fixed computational budget.
+
+Glossy black materials, such as the eyes of the duck (Fig. 6b) or the rabbit (Fig. 2), remain a significant challenge. For such materials, the signal-to-noise of the diffuse component is low and the signal from specular highlights is very sparse so that neither the photoconsistency nor the
+
+
+Figure 10: A strongly Non-Convex Scene. Due to our explicit shadow and occlusion model, our approach is also applicable to the reconstruction of more complex scenes.
+
+
+
+
+
+depth compatibility term constrain the solution correctly.
+
+Finally, Fig. 10 illustrates that our approach is able to also handle strongly non-convex scenes whose shadows and occlusions often cause issues for existing methods.
+
+# 5. Conclusion
+
+We have proposed a practical approach to estimating geometry and materials from a handheld sensor. Accurate camera poses are crucial to this task, but are not readily available. To tackle this problem, we propose a novel formulation which enables joint optimization of poses, geometry and materials using a single objective. Our approach recovers accurate geometry and material properties, and produces a semantically meaningful set of material weights.
+
+Acknowledgements: This work was supported by the Intel Network on Intelligent Systems (NIS). We thank Lars Mescheder and Michal Rolínek for their feedback and the International Max Planck Research School for Intelligent Systems (IMPRS-IS) for supporting Carolin Schmitt.
+
+# References
+
+[1] Jens Ackermann, Martin Ritz, André Stork, and Michael Goesele. Removing the example from example-based photometric stereo. In ECCV Workshops, 2010. 2
+[2] Andrew Adams, Jongmin Baek, and Myers Abraham Davis. Fast high-dimensional filtering using the permutohedral lattice. Computer Graphics Forum, 29(2):753-762, 2010. 5
+[3] Miika Aittala, Tim Weyrich, and Jaakko Lehtinen. Two-shot SVBRDF capture for stationary materials. ACM Trans. on Graphics, 34(4):110:1-110:13, 2015. 1, 2
+[4] Rachel A. Albert, Dorian Yao Chan, Dan B. Goldman, and James F. O'Brien. Approximate svbrdf estimation from mobile phone video. In EUROGRAPHICS, 2018. 1, 2
+[5] Neil Gordon Alldrin, Todd E. Zickler, and David J. Kriegman. Photometric stereo with non-parametric and spatially-varying reflectance. In CVPR, 2008. 2
+[6] Jonathan T. Barron and Jitendra Malik. Shape, illumination, and reflectance from shading. PAMI, 37(8):1670-1687, 2015. 2
+[7] H.G. Barrow. Recovering intrinsic scene characteristics from images. CVS, pages 3-26, 1978. 2
+[8] Neil Birkbeck, Dana Cobzas, Peter F. Sturm, and Martin Jagersand. Variational shape and reflectance estimation under changing light and viewpoints. In ECCV, 2006. 2
+[9] Brent Burley. Physically-based shading at Disney. Technical report, Walt Disney Animation Studios, 2012. 3
+[10] Manmohan Krishna Chandraker, Jiamin Bai, and Ravi Ramamoorthi. A theory of differential photometric stereo for unknown isotropic brdfs. In CVPR, 2011. 2
+[11] Qifeng Chen and Vladlen Koltun. A simple model for intrinsic image decomposition with depth cues. In ICCV, 2013. 2
+[12] Sungjoon Choi, Qian-Yi Zhou, and Vladlen Koltun. Robust reconstruction of indoor scenes. In CVPR, 2015. 1
+[13] Robert L. Cook and Kenneth E. Torrance. A reflectance model for computer graphics. ACM Trans. on Graphics, 1(1):7-24, 1982. 3
+[14] Brian Curless and Marc Levoy. A volumetric method for building complex models from range images. In ACM Trans. on Graphics, 1996. 5
+[15] Yue Dong, Guojun Chen, Pieter Peers, Jiawan Zhang, and Xin Tong. Appearance-from-motion: recovering spatially varying surface reflectance under unknown lighting. ACM Trans. on Graphics, 33(6):193:1-193:12, 2014. 1, 2
+[16] Carlos Hernández Esteban, George Vogiatzis, and Roberto Cipolla. Multiview photometric stereo. PAMI, 30(3):548-554, 2008. 1, 2
+[17] Hao Fan, Lin Qi, Junyu Dong, Gongfa Li, and Hui Yu. Dynamic 3d surface reconstruction using a hand-held camera. In IECON, 2018. 2
+[18] Yasutaka Furukawa and Jean Ponce. Accurate, dense, and robust multi-view stereopsis. PAMI, 32(8):1362-1376, 2010. 2
+[19] Peter V. Gehler, Carsten Rother, Martin Kiefel, Lumin Zhang, and Bernhard Schölkopf. Recovering intrinsic im
+
+ages with a global sparsity prior on reflectance. In NIPS, pages 765-773, 2011. 2
+[20] Stamatios Georgoulis, Marc Proesmans, and Luc J. Van Gool. Tackling shapes and brdfs head-on. In 3DV, 2014. 1, 3, 7
+[21] Dan B. Goldman, Brian Curless, Aaron Hertzmann, and Steven M. Seitz. Shape and spatially-varying brdfs from photometric stereo. PAMI, 32(6):1060-1071, 2010. 1, 2, 4
+[22] Bjoern Haefner, Yvain Queau, Thomas Møllenhoff, and Daniel Cremers. Fight ill-posedness with ill-posedness: Single-shot variational depth super-resolution from shading. In CVPR, 2018. 2
+[23] Aaron Hertzmann and Steven M. Seitz. Example-based photometric stereo: Shape reconstruction with general, varying brdfs. PAMI, 27(8):1254-1264, 2005. 1, 2
+[24] Tomoaki Higo, Yasuyuki Matsushita, Neel Joshi, and Katsushi Ikeuchi. A hand-held photometric stereo camera for 3-d modeling. In ICCV, 2009. 1, 3, 6, 7, 8
+[25] Michael Holroyd, Jason Lawrence, Greg Humphreys, and Todd E. Zickler. A photometric approach for estimating normals and tangents. ACM Trans. on Graphics, 27(5):133:1-133:9, 2008. 2
+[26] Michael Holroyd, Jason Lawrence, and Todd E. Zickler. A coaxial optical scanner for synchronous acquisition of 3d geometry and surface reflectance. ACM Trans. on Graphics, 29(4):99:1-99:12, 2010. 1, 2
+[27] B. K.P. Horn. Shape from shading: A method for obtaining the shape of a smooth opaque object from one view bibtex. Technical report, 1970. 2
+[28] Z. Hui and A. C. Sankaranarayanan. Shape and spatially-varying reflectance estimation from virtual exemplars. PAMI, 2017. 1, 2
+[29] Z. Hui, K. Sunkavalli, J. Lee, S. Hadap, J. Wang, and A. C. Sankaranarayanan. Reflectance capture using univariate sampling of brdfs. In ICCV, 2017. 1, 2
+[30] Katsushi Ikeuchi and Berthold K. P. Horn. Numerical shape from shading and occluding boundaries. AI, 17(1-3):141-184, 1981. 2
+[31] Wenzel Jakob. Mitsuba renderer, 2010. http://www.mitsuba-renderer.org. 3
+[32] Rasmus Ramsbøl Jensen, Anders Lindbjerg Dahl, George Vogiatzis, Engil Tola, and Henrik Aanæs. Large scale multi-view stereopsis evaluation. In CVPR, 2014. 6
+[33] Neel Joshi and David J. Kriegman. Shape from varying illumination and viewpoint. In ICCV, 2007. 2
+[34] James T. Kajiya. The rendering equation. In ACM Trans. on Graphics, 1986. 4
+[35] Michael M. Kazhdan and Hugues Hoppe. Screened poisson surface reconstruction. ACM Trans. on Graphics, 32(3):29, 2013. 3
+[36] Kihwan Kim, Jinwei Gu, Stephen Tyree, Pavlo Molchanov, Matthias Nießner, and Jan Kautz. A lightweight approach for on-the-fly reflectance estimation. In ICCV, 2017. 1, 2
+[37] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015. 6
+[38] Vladimir Kolmogorov and Ramin Zabih. Multi-camera scene reconstruction via graph cuts. In ECCV, 2002. 2
+
+[39] Florent Lafarge, Renaud Keriven, Mathieu Bredif, and Hoang-Hiep Vu. A hybrid multiview stereo algorithm for modeling urban scenes. PAMI, 35(1):5-17, 2013. 2
+[40] Hendrik P. A. Lensch, Jan Kautz, Michael Goesele, Wolfgang Heidrich, and Hans-Peter Seidel. Image-based reconstruction of spatial appearance and geometric detail. ACM Trans. on Graphics, 22(2):234-257, 2003. 1, 2, 4
+[41] Jongwoo Lim, Jeffrey Ho, Ming-Hsuan Yang, and David J. Kriegman. Passive photometric stereo from motion. In ICCV, 2005. 2
+[42] Chao Liu, Srinivasa G. Narasimhan, and Artur W. Dubrawski. Near-light photometric stereo using circularly placed point light sources. 2018. 2
+[43] Fotios Logothetis, Roberto Mecca, and Roberto Cipolla. Semi-calibrated near field photometric stereo. In CVPR, 2017. 2
+[44] Fotios Logothetis, Roberto Mecca, and Roberto Cipolla. A differential volumetric approach to multi-view photometric stereo. In ICCV, 2019. 2
+[45] Stephen Lombardi and Ko Nishino. Single image multitemerial estimation. In CVPR, 2012. 2
+[46] Stephen Lombardi and Ko Nishino. Radiometric scene decomposition: Scene reflectance, illumination, and geometry from RGB-D images. In 3DV, 2016. 3
+[47] Zheng Lu, Yu-Wing Tai, Moshe Ben-Ezra, and Michael S. Brown. A framework for ultra high resolution 3d imaging. In CVPR, 2010. 2
+[48] Robert Maier, Kihwan Kim, Daniel Cremers, Jan Kautz, and Matthias Nießner. Intrinsic3d: High-quality 3d reconstruction by joint appearance and geometry optimization with spatially-varying lighting. In ICCV, pages 3133-3141, 2017. 2
+[49] Wojciech Matusik, Hanspeter Pfister, Matt Brand, and Leonard McMillan. A data-driven reflectance model. ACM Trans. on Graphics, 22(3):759-769, July 2003. 1, 2
+[50] Roberto Mecca and Yvain Queau. Unifying diffuse and specular reflections for the photometric stereo problem. In WACV, 2016. 2
+[51] Roberto Mecca, Yvain Quéau, Fotios Logothetis, and Roberto Cipolla. A single-lobe photometric stereo approach for heterogeneous material. SIAM, 9(4):1858-1888, 2016. 2
+[52] Roberto Mecca, Emanuele Rodolà, and Daniel Cremers. Realistic photometric stereo using partial differential irradiance equation ratios. Computers & Graphics, 51:8-16, 2015. 2
+[53] Roberto Mecca, Ariel Tankus, Aaron Wetzler, and Alfred M. Bruckstein. A direct differential approach to photometric stereo with perspective viewing. SIAM, 7(2):579-612, 2014. 2
+[54] Roberto Mecca, Aaron Wetzler, Alfred M. Bruckstein, and Ron Kimmel. Near field photometric stereo with point light sources. SIAM, 7(4):2732-2770, 2014. 2
+[55] Jean Mélou, Yvain Quéau, Jean-Denis Durou, Fabien Castan, and Daniel Cremers. Beyond multi-view stereo: Shading-reflectance decomposition. In SSVM, pages 694–705, 2017. 2
+
+[56] Jean Mélou, Yvain Quéau, Jean-Denis Durou, Fabien Castan, and Daniel Cremers. Variational reflectance estimation from multi-view images. JMIV, 60(9):1527-1546, 2018. 2
+[57] Giljoo Nam, Joo Ho Lee, Diego Gutierrez, and Min H. Kim. Practical SVBRDF acquisition of 3d objects with unstructured flash photography. ACM Trans. on Graphics, 37(6):267:1-267:12, 2018. 1, 3, 7
+[58] Diego Nehab, Szymon Rusinkiewicz, James Davis, and Ravi Ramamoorthi. Efficiently combining positions and normals for precise 3d geometry. ACM Trans. on Graphics, 24(3):536-543, 2005. 2, 3
+[59] F. E. Nicodemus, J. C. Richmond, J. J. Hsia, I. W. Ginsberg, and T. Limperis. Geometrical considerations and nomenclature for reflectance. In Radiometry, chapter Geometrical Considerations and Nomenclature for Reflectance, pages 94-145. Jones and Bartlett Publishers, Inc., 1992. 2
+[60] Jannik Boll Nielsen, Henrik Wann Jensen, and Ravi Ramamoorthi. On optimal, minimal BRDF sampling for reflectance acquisition. ACM Trans. on Graphics, 34(6):186:1-186:11, 2015. 2
+[61] M. Nießner, M. Zollhöfer, S. Izadi, and M. Stamminger. Real-time 3d reconstruction at scale using voxel hashing. In ACM Trans. on Graphics, 2013. 1
+[62] Geoffrey Oxholm and Ko Nishino. Multiview shape and reflectance from natural illumination. In CVPR, 2014. 2
+[63] Thoma Papadimitri and Paolo Favaro. Uncalibrated nearlight photometric stereo. In BMVC, 2014. 2
+[64] Jaesik Park, Sudipta N. Sinha, Yasuyuki Matsushita, Yu-Wing Tai, and In So Kweon. Robust multiview photometric stereo using planar mesh parameterization. PAMI, 39(8):1591-1604, 2017. 2
+[65] Jeong Joon Park, Richard A. Newcombe, and Steven M. Seitz. Surface light field fusion. In 3DV, 2018. 1, 2
+[66] 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 Workshops, 2017. 6
+[67] Songyou Peng, Bjoern Haefner, Yvain Quéau, and Daniel Cremers. Depth super-resolution meets uncalibrated photometric stereo. In ICCV Workshops, 2017. 2
+[68] Yvain Queau, Bastien Durix, Tao Wu, Daniel Cremers, François Lauze, and Jean-Denis Durou. Led-based photometric stereo: Modeling, calibration and numerical solution. JMMV, 60(3):313-340, 2018. 2
+[69] Yvain Quéau, François Lauze, and Jean-Denis Durou. A l'1 -tv algorithm for robust perspective photometric stereo with spatially-varying lightings. In SsVM, 2015. 2
+[70] Yvain Quéau, François Lauze, and Jean-Denis Durou. Solving uncalibrated photometric stereo using total variation. JMMV, 52(1):87-107, 2015. 2
+[71] Yvain Quéau, Roberto Mecca, and Jean-Denis Durou. Unbiased photometric stereo for colored surfaces: A variational approach. In CVPR, 2016. 2
+[72] Yvain Quéau, Jean Mélou, Fabien Castan, Daniel Cremers, and Jean-Denis Durou. A variational approach to shape-from-shading under natural illumination. In EMMCVPR, 2017. 2
+
+[73] Yvain Queau, Jean Mélou, Jean-Denis Durou, and Daniel Cremers. Dense multi-view 3d-reconstruction without dense correspondences. arXiv.org, 1704.00337, 2017. 2
+[74] Yvain Quéau, Tao Wu, and Daniel Cremers. Semicalibrated near-light photometric stereo. In SSVM, 2017. 2
+[75] Yvain Quéau, Tao Wu, François Lauze, Jean-Denis Durou, and Daniel Cremers. A non-convex variational approach to photometric stereo under inaccurate lighting. In CVPR, 2017. 2
+[76] Jérémy Rivière, Pieter Peers, and Abhijeet Ghosh. Mobile surface reflectometry. Computer Graphics Forum, 35(1):191-202, 2016. 1, 2
+[77] Johannes Lutz Schonberger, Enliang Zheng, Marc Pollefeys, and Jan-Michael Frahm. Pixelwise view selection for unstructured multi-view stereo. In ECCV, 2016. 2, 5, 7
+[78] Christopher Schwartz, Ralf Sarlette, Michael Weinmann, and Reinhard Klein. DOME II: A parallelized BTF acquisition system. In EUROGRAPHICS, 2013. 2
+[79] Johannes Lutz Schonberger and Jan-Michael Frahm. Structure-from-motion revisited. In CVPR, 2016. 5
+[80] S.M. Seitz and C.R. Dyer. Photorealistic scene reconstruction by voxel coloring. In CVPR, 1997. 2
+[81] Boxin Shi, Kenji Inose, Yasuyuki Matsushita, Ping Tan, Sai-Kit Yeung, and Katsushi Ikeuchi. Photometric stereo using internet images. In 3DV, 2014. 2
+[82] Denis Simakov, Darya Frolova, and Ronen Basri. Dense shape reconstruction of a moving object under arbitrary, unknown lighting. In ICCV, 2003. 2
+[83] Borom Tunwattanapong, Graham Fyffe, Paul Graham, Jay Busch, Xueming Yu, Abhijeet Ghosh, and Paul E. Debevec. Acquiring reflectance and shape from continuous spherical harmonic illumination. ACM Trans. on Graphics, 32(4):109:1-109:12, 2013. 2
+[84] Ali Osman Ulusoy, Andreas Geiger, and Michael J. Black. Towards probabilistic volumetric reconstruction using ray potentials. In 3DV, 2015. 2
+[85] George Vogiatzis, Philip H. S. Torr, and Roberto Cipolla. Multi-view stereo via volumetric graph-cuts. In CVPR, 2005. 2
+[86] John Wang and Edwin Olson. AprilTag 2: Efficient and robust fiducial detection. In IROS, October 2016. 5, 6
+[87] Thomas Whelan, Stefan Leutenegger, Renato F. Salas-Moreno, Ben Glocker, and Andrew J. Davison. Elastic-fusion: Dense SLAM without A pose graph. In RSS, 2015. 1
+[88] Robert J Woodham. Photometric method for determining surface orientation from multiple images. $OE$ , 19(1):191139, 1980. 2
+[89] Chenglei Wu, Michael Zollhöfer, Matthias Nießner, Marc Stamminger, Shahram Izadi, and Christian Theobalt. Real-time shading-based refinement for consumer depth cameras. In ACM Trans. on Graphics, 2014. 2
+[90] Hongzhi Wu, Zhaotian Wang, and Kun Zhou. Simultaneous localization and appearance estimation with a consumer RGB-D camera. VCG, 22(8):2012-2023, 2016. 2
+
+[91] Hongzhi Wu and Kun Zhou. Appfusion: Interactive appearance acquisition using a Kinect sensor. Computer Graphics Forum, 34(6):289-298, 2015. 2
+[92] Zhe Wu, Sai-Kit Yeung, and Ping Tan. Towards building an RGBD-M scanner. arXiv.org, 1603.03875, 2016. 2
+[93] Rui Xia, Yue Dong, Pieter Peers, and Xin Tong. Recovering shape and spatially-varying surface reflectance under unknown illumination. ACM Trans. on Graphics, 35(6):187:1-187:12, 2016. 2
+[94] Wuyuan Xie, Chengkai Dai, and Charlie C. L. Wang. Photometric stereo with near point lighting: A solution by mesh deformation. In CVPR, 2015. 2
+[95] Zexiang Xu, Jannik Boll Nielsen, Jiyang Yu, Henrik Wann Jensen, and Ravi Ramamoorthi. Minimal BRDF sampling for two-shot near-field reflectance acquisition. ACM Trans. on Graphics, 35(6):188:1-188:12, 2016. 2
+[96] Yusuke Yoshiyasu and Nobutoshi Yamazaki. Topology-adaptive multi-view photometric stereo. In CVPR, 2011. 2
+[97] Yizhou Yu, Paul E. Debevec, Jitendra Malik, and Tim Hawkins. Inverse global illumination: Recovering reflectance models of real scenes from photographs. In ACM Trans. on Graphics, pages 215-224, 1999. 2
+[98] Andy Zeng, Shuran Song, Matthias Nießner, Matthew Fisher, Jianxiong Xiao, and Thomas Funkhouser. 3dmatch: Learning local geometric descriptors from rgb-d reconstructions. In CVPR, 2017. 8
+[99] Ruo Zhang, Ping-Sing Tsai, James Edwin Cryer, and Mubarak Shah. Shape from shading: A survey. PAMI, 21(8):690-706, 1999. 2
+[100] Zhengyou Zhang. Flexible camera calibration by viewing a plane from unknown orientations. In ICCV, 1999. 3
+[101] Zhiming Zhou, Guojun Chen, Yue Dong, David Wipf, Yong Yu, John Snyder, and Xin Tong. Sparse-as-possible svbrdf acquisition. ACM Trans. on Graphics, 35(6):189:1-189:12, 2016. 2
+[102] Zhenglong Zhou and Ping Tan. Ring-light photometric stereo. In ECCV, 2010. 2
+[103] Zhenglong Zhou, Zhe Wu, and Ping Tan. Multi-view photometric stereo with spatially varying isotropic materials. In CVPR, 2013. 2
+[104] Michael Zollhöfer, Angela Dai, Matthias Innmann, Chenglei Wu, Marc Stamminger, Christian Theobalt, and Matthias Nießner. Shading-based refinement on volumetric signed distance functions. ACM Trans. on Graphics, 34(4):96:1-96:14, 2015. 2
+[105] Xinxin Zuo, Sen Wang, Jiangbin Zheng, and Ruigang Yang. Detailed surface geometry and albedo recovery from RGB-D video under natural illumination. In ICCV, 2017. 1, 2
\ No newline at end of file
diff --git a/onjointestimationofposegeometryandsvbrdffromahandheldscanner/images.zip b/onjointestimationofposegeometryandsvbrdffromahandheldscanner/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..6e15a41df3e34703f98f490c3d91ef538ca2d84a
--- /dev/null
+++ b/onjointestimationofposegeometryandsvbrdffromahandheldscanner/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:96c9737b643637ecb963c91e7e80a199ded821dbd8d0e233351ce9be9b6d70e4
+size 521859
diff --git a/onjointestimationofposegeometryandsvbrdffromahandheldscanner/layout.json b/onjointestimationofposegeometryandsvbrdffromahandheldscanner/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..7f297773e4f024d72d9f8ccdab840719b35fd8ec
--- /dev/null
+++ b/onjointestimationofposegeometryandsvbrdffromahandheldscanner/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c07f0cc9a90396f149a074b5338e48e9667fa240eea48e16db9a890dbc9234cc
+size 546870
diff --git a/onlinedeepclusteringforunsupervisedrepresentationlearning/7ec964d2-dfc0-408a-92de-b5148207206c_content_list.json b/onlinedeepclusteringforunsupervisedrepresentationlearning/7ec964d2-dfc0-408a-92de-b5148207206c_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..2afdd24cf0a225e38aec5d4cf1b71f7902e7f7a9
--- /dev/null
+++ b/onlinedeepclusteringforunsupervisedrepresentationlearning/7ec964d2-dfc0-408a-92de-b5148207206c_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f90375b9a60ad08f23f700e73503712838a63ed64eb75b44a0166a31fcb616d3
+size 73680
diff --git a/onlinedeepclusteringforunsupervisedrepresentationlearning/7ec964d2-dfc0-408a-92de-b5148207206c_model.json b/onlinedeepclusteringforunsupervisedrepresentationlearning/7ec964d2-dfc0-408a-92de-b5148207206c_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..03c465e156efa4924ffc7959ec399ab5109ceb2d
--- /dev/null
+++ b/onlinedeepclusteringforunsupervisedrepresentationlearning/7ec964d2-dfc0-408a-92de-b5148207206c_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cb3de14502d4988ffb8ced2a60947f6ffe146d4eb2a6772a52475be49738f73d
+size 93641
diff --git a/onlinedeepclusteringforunsupervisedrepresentationlearning/7ec964d2-dfc0-408a-92de-b5148207206c_origin.pdf b/onlinedeepclusteringforunsupervisedrepresentationlearning/7ec964d2-dfc0-408a-92de-b5148207206c_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..e2aaa22f4995a16dff5a62a6addfac1d668611d8
--- /dev/null
+++ b/onlinedeepclusteringforunsupervisedrepresentationlearning/7ec964d2-dfc0-408a-92de-b5148207206c_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1ad4eabfec1afefed1f8d3a7b31b8cffbb867328b78ef96206526cc06efc6f69
+size 3597384
diff --git a/onlinedeepclusteringforunsupervisedrepresentationlearning/full.md b/onlinedeepclusteringforunsupervisedrepresentationlearning/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..e7519ab4b19c6605a4f48d09e569674ed06100c4
--- /dev/null
+++ b/onlinedeepclusteringforunsupervisedrepresentationlearning/full.md
@@ -0,0 +1,278 @@
+# Online Deep Clustering for Unsupervised Representation Learning
+
+Xiaohang Zhan $^{1}$ , Jiahao Xie $^{2}$ , Ziwei Liu $^{1}$ , Yew Soon Ong $^{2,3}$ , Chen Change Loy $^{2}$
+
+1CUHK - SenseTime Joint Lab, The Chinese University of Hong Kong
+
+$^{2}$ Nanyang Technological University $^{3}$ AI3, A*STAR, Singapore
+
+1{zx017, zwliu}@ie.cuhk.edu.hk
+
+2{jiahao003, asysong, ccloy}@ntu.edu.sg
+
+# Abstract
+
+Joint clustering and feature learning methods have shown remarkable performance in unsupervised representation learning. However, the training schedule alternating between feature clustering and network parameters update leads to unstable learning of visual representations. To overcome this challenge, we propose Online Deep Clustering (ODC) that performs clustering and network update simultaneously rather than alternatingly. Our key insight is that the cluster centroids should evolve steadily in keeping the classifier stably updated. Specifically, we design and maintain two dynamic memory modules, i.e., samples memory to store samples' labels and features, and centroids memory for centroids evolution. We break down the abrupt global clustering into steady memory update and batchwise label re-assignment. The process is integrated into network update iterations. In this way, labels and the network evolve shoulder-to-shoulder rather than alternatingly. Extensive experiments demonstrate that ODC stabilizes the training process and boosts the performance effectively.
+
+# 1. Introduction
+
+Unsupervised representation learning [1, 2, 3, 4, 5, 6, 7, 8, 9] aims at learning transferable image or video representations without manual annotations. Among them, clustering-based representation learning methods [10, 11, 12, 13, 14] emerge as a promising direction in this area. Different from recovering-based approaches [2, 3, 4, 8], clustering-based methods require little domain knowledge [13] while achieving encouraging performances. Compared to contrastive representation learning [15, 16, 17] that captures merely intra-image invariance, clustering-
+
+
+
+
+(a)
+
+
+
+
+network update
+
+
+label update
+
+
+feature extraction
+
+
+(b)
+Figure 1. (a) Online Deep Clustering (ODC) seeks to reduce the discrepancy in training mechanism between Deep Clustering (DC) and supervised classification via integrating clustering process into network update iterations. ODC training is both unsupervised and uninterrupted. (b) Compared to DC, ODC updates labels continuously rather than in a pulsating manner, enabling the representations to evolve steadily. The loss curves (only initial 32 epochs for clarity) show the stability of ODC. After training, the loss is decreased to around 2.0 for ODC while 2.9 for DC.
+
+based methods are able to explore inter-image similarity. Unlike conventional clustering that is typically performed on fixed features [18, 19], these works jointly optimize clustering and feature learning.
+
+While evaluations of early works [11, 12] are mostly
+
+performed on small datasets, Deep Clustering [13] (DC) proposed by Caron et al. is the first attempt to scale up clustering-based representation learning. DC alternates between deep feature clustering and CNN parameters update. In particular, at the start of each epoch, it performs offline clustering algorithms on the entire dataset to obtain pseudo-labels as the supervision for the next epoch. Offline clustering inevitably permutes the assigned labels in different epochs, i.e., even if some of the clusters do not change, their indices after clustering will be permuted randomly. As a result, parameters in the classifier cannot be inherited from the last epoch and they have to be randomly initialized before each epoch. The mechanism introduces training instability and exposes representations to a high risk of representation corruption. As shown in Figure 1 (a), network update in DC is interrupted by feature extraction and clustering in each epoch. This is in contrast to the conventional supervised classification that is performed in an uninterrupted manner using fixed labels, where an iteration consists of forward and backward propagations of the network.
+
+In this work, we seek to devise a joint clustering and feature learning paradigm with high stability. To reduce the discrepancy of training mechanism between DC and supervised learning, we decompose the clustering process into mini-batch-wise label update, and integrate this update process into iterations of network update. Based on this intuition, we propose Online Deep Clustering (ODC) for joint clustering and feature learning. Specifically, an ODC iteration consists of forward and backward propagations, label re-assignment, and centroids update. For label update, ODC reuses the features in the forward propagation, thus avoiding additional feature extraction. To facilitate online label re-assignment and centroids update, we design and maintain two dynamic memory modules, i.e., samples memory to store samples' labels and features, and centroids memory for centroids evolution. In this way, ODC is trained in an uninterrupted manner similar to supervised classification, while no manual annotation is required. During the training process, labels and network parameters evolve shoulder-to-shoulder, rather than alternatingly. Since labels are updated in each iteration continuously and instantly, the classifier in the CNN also evolves more steadily, resulting in a much more steady loss curve as shown in Figure 1 (b).
+
+While ODC alone achieves compelling unsupervised representation learning performance on various benchmarks, it can be naturally used to fine-tune models that have been trained using other unsupervised learning approaches. Extensive experiments show that the steadiness of ODC helps it to perform superiorly over DC as an unsupervised fine-tuning tool. We conclude our contributions as follows: 1) we propose ODC that learns image representations in an unsupervised manner with high stability. 2) ODC
+
+also serves as a unified unsupervised fine-tuning scheme that further improves previous self-supervised representation learning approaches. 3) Promising performances are observed on different benchmarks, indicating the great potential of joint clustering and feature learning.
+
+# 2. Related Work
+
+Unsupervised Representation Learning. Many unsupervised visual representation learning algorithms are based on generative models, which usually use a latent representation bottleneck to reconstruct input images. Existing generation-based models include Auto-Encoders [20, 21], Restricted Boltzman Machines [22, 23, 24], Variational Auto-Encoders [25] and Generative Adversarial Networks [26], some of which have shown powerful ability in generating images or videos [27, 28, 29, 30, 31, 32]. By learning to generate examples, these models can learn meaningful latent representations that can be used for downstream tasks [5, 33, 34].
+
+Another popular form of unsupervised representation learning is self-supervised learning, where a pretext task is designed to derive proxy labels from raw data. Representations are learned by encouraging a CNN to predict the proxy labels from the data. Various pretext tasks have been explored, e.g., predicting relative patch locations within an image [1], solving jigsaw puzzles [4], colorizing grayscale images [3, 35], inpainting of missing pixels [2], cross-channel prediction [36], counting visual primitives [37], and predicting image rotations [8]. For videos, self-derived supervision signals come from temporal continuity [38, 39, 40, 41, 42, 43, 44] or motion consistency [45, 46, 47, 48, 9]. Joint Clustering and Feature Learning. Clustering-based unsupervised representation learning is of particular interest recently. Various methods are proposed to jointly optimize feature learning and image clustering. Notably, these methods have shown great potential in learning unsupervised features on small datasets [11, 12, 49, 50]. To scale up to large datasets like ImageNet [51], Caron et al. [13] propose DeepCluster to cluster features and update CNN with subsequent assigned pseudo-labels for each epoch. In a subsequent study, Caron et al. [14] propose DeeperCluster to leverage self-supervision and clustering, and validate the representation learning ability of their approaches on non-curated data. Although deep clustering methods are capable of learning good representations from large-scale unlabeled data, the alternating update of feature clustering and CNN parameters update leads to instability in training.
+
+Improvements to Self-supervised Learning. Some works aim at improving previous self-supervised learning approaches from different perspectives. For instance, Larsson et al. [6] give a first in-depth analysis on colorization as a pretext task and provide some insights on improving its effectiveness. Mundhenk et al. [52] explore a set of methods
+
+
+Figure 2. Each ODC iteration mainly contains four steps: 1. forward to obtain a compact feature vector; 2. read labels from the samples memory and perform back-propagation to update the CNN; 3. update samples memory by updating features and assigning new labels; 4. update centroids memory by recomputing the involved centroids.
+
+to avoid some trivial shortcuts like chromatic aberration on context-based self-supervised learning. Noroozi et al. [53] improve the performance of self-supervised models using a clustering-based knowledge transfer method that allows a deeper network during pre-training. Wang et al. [54] and Doersch et al. [55] exploit multiple cues contained in different pretext tasks to improve self-supervised models. Recently, some works [56, 57] have studied extensively the architectures and scaling ability on existing self-supervised approaches. Complementary to these works, ODC serves as a flexible and unified unsupervised fine-tuning scheme to boost general self-supervised learning methods although it can be used alone to perform unsupervised representation learning from scratch.
+
+# 3. Methodology
+
+In the following sub-sections, we first discuss the differences between the proposed ODC to the conventional DC [13] in Sec. 3.1. We then recommend some useful strategies to maintain stable cluster size while using ODC in Sec. 3.2. We finally explain how one can use ODC for unsupervised fine-tuning (Sec. 3.3) and the implementation details of ODC (Sec. 3.4).
+
+# 3.1. Online Deep Clustering
+
+We first discuss the basic idea of DC [13] and then detail the proposed ODC. To learn representations, DC alternates between off-line feature clustering and network back-propagation with pseudo-labels. The off-line clustering process requires deep feature extraction on the entire training set, followed by a global clustering algorithm, $e.g.,$ K-Means clustering. The global clustering permutes the
+
+pseudo labels vastly, requiring the network to adapt to new labels rapidly in the subsequent epoch.
+
+Framework Overview. Different from DC, ODC does not require an extra feature extraction process. Besides, labels evolve alongside the network parameters update smoothly. This is made possible by the newly introduced samples and centroids memories. As shown in Fig. 2, the samples memory stores features and pseudo-labels of the entire dataset; while the centroids memory stores the features of class centroids, i.e., the mean feature of all samples in a class. A "class" here represents a temporary cluster that evolves continuously during training. Labels and network parameters are updated simultaneously during uninterrupted iterations of ODC. Specific techniques including loss re-weighting and dealing with small clusters are introduced to avoid ODC from getting stuck into trivial solutions.
+
+An ODC Iteration. Assuming that we are given with a randomly initialized network $f_{\theta}(*)$ along with a linear classifier $g_{w}(*)$ , the goal is to train the backbone parameters $\theta$ to produce highly discriminative representations. To prepare for ODC, the samples and centroids memories are initialized via a global clustering process, e.g., K-Means. Next, one can perform uninterrupted ODC iteratively.
+
+An ODC iteration contains four steps. First, given a batch of input images $\{x\}$ , the network maps the images into compact feature vectors $F = f_{\theta}(x)$ . Second, we read pseudo-labels for this batch from the samples memory. With the pseudo-labels, we update the network with stochastic gradient descent to solve the following problem:
+
+$$
+\min _ {\theta , w} \frac {1}{B} \sum_ {n = 1} ^ {B} l \left(g _ {w} \left(f _ {\theta} \left(x _ {n}\right)\right), y _ {n}\right), \tag {1}
+$$
+
+where $y_{n}$ is the current pseudo label from the samples memory, $B$ denotes the size of each mini-batch. Third, $f_{\theta}(x)$ after L2 normalization is reused to update the samples memory:
+
+$$
+F _ {m} (x) \leftarrow m \frac {f _ {\theta} (x)}{\| f _ {\theta} (x) \| _ {2}} + (1 - m) F _ {m} (x), \tag {2}
+$$
+
+where $F_{m}(x)$ is the feature of $x$ in the samples memory, $m\in (0,1]$ is a momentum coefficient. Simultaneously, each involved sample is assigned with a new label by finding the nearest centroid following:
+
+$$
+\min _ {y \in \{1,.., C \}} \| F _ {m} (x) - C _ {y} \| _ {2} ^ {2}, \tag {3}
+$$
+
+where $C_y$ denotes the centroid feature of class $y$ . Finally, the involved centroids, including those in which new members join, and those from which old members leave, are recorded. They are updated every $k$ -th iterations by averaging the features of all samples belonging to their corresponding centroid.
+
+# 3.2. Handling Clustering Distribution in ODC
+
+Loss Re-weighting. To avoid the training from collapsing into a few huge clusters, DC adopts uniform sampling before each epoch. However, for ODC, the number of samples over the clusters changes in each iteration. Using uniform sampling requires one to re-sample the entire dataset in each iteration, a process that is deemed redundant and costly. We propose an alternative approach, i.e., reweighting the loss according to the number of samples in each class. To verify their equivalence, we implement a DC model with loss re-weighting and empirically find that the performance remains unchanged when the weight follows $w_{c} \propto \frac{1}{\sqrt{N_{c}}}$ , where $N_{c}$ denotes the number of samples in class $c$ . Hence, we adopt the same loss re-weighting formulation for ODC. With loss re-weighting, samples in smaller clusters contribute more towards backpropagation, thus pushing the decision boundary farther to accept more potential samples.
+
+Dealing with Small Clusters. Loss re-weighting helps to prevent the formation of huge clusters. Nevertheless, we still face the risk of having some small clusters collapsing into empty clusters. To overcome this problem, we propose to process and eliminate extremely small clusters in advance before they collapse. Denoting normal clusters as $\mathcal{C}_n$ whose sizes are larger than a threshold, and small clusters as $\mathcal{C}_s$ whose sizes are not, for $c \in \mathcal{C}_s$ , we first assign samples in $c$ to the nearest centroids in $C_n$ to make $c$ empty. Next, we split the largest cluster $c_{max} \in \mathcal{C}_n$ into two sub-clusters by K-Means and randomly choose one of the sub-clusters as the new $c$ . We repeat the process until all clusters belong to $\mathcal{C}_n$ . Though this process alters some clusters abruptly, it
+
+only affects a small portion of samples which are involved in this process.
+
+Dimensionality Reduction. Some of the backbone networks map an image to a high-dimensional vector, e.g., AlexNet produces 4,096-dimensional features and ResNet-50 yields 2,048-dimensional features, leading to high space and time complexities in subsequent clustering. DC performed PCA on features across the entire dataset to reduce dimension. However, for ODC, the features of different samples have varying timestamps, leading to incompatible statistics among samples. Hence, PCA is not applicable anymore. It is also costly to perform PCA in each iteration. We therefore add a non-linear head layer of {fc-bn-reldropout-fc-relu} to reduce high dimensional features into 256 dimensions. It is jointly tuned during ODC iterations. The head layer is removed for downstream tasks.
+
+# 3.3. ODC for Unsupervised Fine-tuning
+
+Compared with self-supervised learning approaches that tend to capture intra-image semantics, clustering-based methods focus more on inter-image information. Hence, DC and ODC are naturally complementary to previous self-supervised learning approaches. As DC and ODC are not restricted to a specifically designed objective, like rotation angle or color prediction, they readily serve as an unsupervised fine-tuning scheme to boost the performance of existing self-supervised approaches. In this paper, we study the effectiveness of DC and ODC as a fine-tuning process with initialization from different self-supervised learning methods.
+
+# 3.4. Implementation Details
+
+Data Pre-processing. We use ImageNet that contains 1.28M images without labels for training. Images are first randomly cropped to have a resolution of $224 \times 224$ with augmentation including random flipping and rotation $(\pm 2^{\circ})$ . DC adopts a Sobel filter on the images to avoid exploiting color as the shortcut. Such a pre-processing step requires the downstream tasks to include the Sobel layer as well, which potentially limit its application. We find that strong color jittering shows the same effect as a Sobel filter in avoiding shortcuts, while it allows normal RGB images as inputs. Specifically, we adopt PyTorch style color jitter transform with brightness factor (0.6, 1.4), contrast factor (0.6, 1.4), saturation factor (0, 2), and hue factor $(-0.5, 0.5)$ . Besides, we randomly convert images to grayscale with a probability of 0.2. The random color jittering and grayscale applied on training samples randomize the similarity measured in color. This discourages the network from exploiting trivial information from color.
+
+Training of ODC. We use ResNet-50 as our backbone. Considering that most early works use AlexNet, we also perform experiments on AlexNet for comparison. Follow
+
+ing [13], we use AlexNet architecture without Local Response Normalization and add batch normalization layers. The ODC models for AlexNet and ResNet-50 are trained from scratch. The batch size is 512 allocated to 8 GPUs. The learning rate is constantly 0.01 for AlexNet and 0.03 for ResNet-50 for 400 epochs, and decayed by 0.1 for further 80 epochs. Following DC, the number of clusters is set as 10,000, which is 10 times larger than the annotated number of classes of ImageNet. The momentum coefficient $m$ is set as 0.5. The threshold to identify small clusters is set as 20. Varying this threshold does not affect the results significantly, provided that it does not exceed the average number of samples in a cluster. The centroids memory is updated in every 10 iterations. The centroids update frequency constitutes a trade-off between learning efficacy and efficiency. In our experiments, we observe that as long as the frequency is restricted to a reasonable range, the performance of ODC is not sensitive to it.
+
+# 4. Experiments
+
+# 4.1. Evaluation on Unsupervised Representation
+
+After pre-training the ODC model, we evaluate the quality of unsupervised features on standard downstream tasks including ImageNet classification, Places205 [62] classification, VOC2007 [63] SVM classification, and VOC2007 Low-shot classification. We provide the details of each benchmark and show our competing results as follows.
+
+Re-implementation of Deep Clustering. Since the original paper of DC does not include ResNet-50, we implement a DC model with ResNet-50. The DC model adopts the same data augmentations as ODC, except that DC applies a Sobel filter on images. For fair comparisons, the training hyper-parameters of DC are the same as ODC except that we empirically find $lr = 0.1$ is more suitable for DC.
+
+ImageNet Classification. Following the setup in Zhang et al. [36], we keep the backbone including all convolution and batch normalization layers frozen, and train a 1000-way linear classifier on features from different depths of convolutional layers. The features are mapped to around 9000 dimensions via average pooling. We train all models for 100 epochs in total, using SGD with a momentum of 0.9 and batch size of 256. The learning rate is initialized as 0.01, decayed by a factor of 10 after every 30 epochs. Other hyper-parameters are set following Goyal et al. [57]. We report top-1 center-crop accuracy on the official validation split of ImageNet.
+
+For AlexNet, as shown in Table 1, ODC has a consistent improvement over DC in all conv layers, with the largest improvement $(6.7\%)$ observed in conv1 layer. The performance in conv1 layer surpasses the ImageNet pretrained model. With regard to the best-performing layer, ODC achieves $41.4\%$ on conv4 layer, outperforming the
+
+latest LA [61], ranking only second to Rot-Decoupling [60]. Though ODC does not outperform Rot-Decoupling in its best performing layer, it provides a complementary perspective to rotation based methods.
+
+ODC also scales well with deeper architectures. For ResNet-50, as shown in Table 2, ODC achieves $57.6\%$ center-crop accuracy in the conv5 layer, which is $5.4\%$ higher than the best performing layer of the re-implemented DC. Compared with the concurrent state-of-the-art method LA [61], our method produces competing results. Though the result of conv5 is slightly lower than LA, ODC outperforms LA from conv1 to conv4 layers by large margins. We observe a consistent performance increase from shallower layers to deeper layers, indicating that ODC makes full use of all residual layers.
+
+Places205 Classification. Following Zhang et al. [36], to test the generalization ability on other domains, we also transfer the learned models to Places205 dataset that contains 2.45M images of 205 scene categories. Similar to the experiments on ImageNet, we train a 205-way linear classifier on top of each frozen convolutional layer on the train split of Places205, and report top-1 center-crop accuracy on the standard validation split. The evaluation setting and hyper-parameters are the same as those in the ImageNet classification task.
+
+The results in Table 1 show that ODC with AlexNet as the backbone outperforms DC in all layers as well. ODC surpasses all previous works on conv1, conv3 and conv4 layers. Similar to the observation in the ImageNet classification task, ODC scales well on deeper architectures when it is transferred to Places205 with ResNet-50. As shown in Table 2, in all layers, ODC surpasses all previous works, with the largest margin (3.1%) to the runner-up observed in conv2 layer. With regard to the best performing layer, ODC reaches 49.3% center-crop accuracy in the conv5 layer, surpassing the re-implemented DC by 3.2% in the respective best layer. We observe the superiority of ODC in conv1 and conv2 layers over the supervised model using either Places labels or ImageNet labels. The transfer performance of our method in the Places205 classification task indicates that representations learned by ODC can generalize well to different domains from ImageNet.
+
+VOC2007 SVM Classification. To further evaluate the generalization of learned features, we perform experiments on the VOC2007 transfer learning task that resembles real applications with smaller datasets. Following [57], we train linear SVMs on features extracted from the frozen backbone on the "trainval" split of VOC2007 and evaluate on the test split. We follow the same test setting and hyperparameters used in [57], and report the best performing layers of different methods for ResNet-50. The results in Table 3 show that ODC surpasses previous approaches by a significant margin on the VOC2007 SVM classification
+
+Table 1. AlexNet linear classification on ImageNet and Places. We report top-1 center-crop accuracy. Numbers for other methods are obtained either from [36] or from their original papers. The highest performance in each layer is in bold, and the second highest performance in each layer is underlined.
+
+| Method
+(AlexNet) | ImageNet | Places |
| conv1 | conv2 | conv3 | conv4 | conv5 | conv1 | conv2 | conv3 | conv4 | conv5 |
| Places labels [36] | - | - | - | - | - | 22.1 | 35.1 | 40.2 | 43.3 | 44.6 |
| ImageNet labels [36] | 19.3 | 36.3 | 44.2 | 48.3 | 50.5 | 22.7 | 34.8 | 38.4 | 39.4 | 38.7 |
| Random [36] | 11.6 | 17.1 | 16.9 | 16.3 | 14.1 | 15.7 | 20.3 | 19.8 | 19.1 | 17.5 |
| Context [1] | 16.2 | 23.3 | 30.2 | 31.7 | 29.6 | 19.7 | 26.7 | 31.9 | 32.7 | 30.9 |
| ContextEncoder [2] | 14.1 | 20.7 | 21.0 | 19.8 | 15.5 | 18.2 | 23.2 | 23.4 | 21.9 | 18.4 |
| Jigsaw [4] | 19.2 | 30.1 | 34.7 | 33.9 | 28.3 | 23.0 | 32.1 | 35.5 | 34.8 | 31.3 |
| Colorization [3] | 13.1 | 24.8 | 31.0 | 32.6 | 31.8 | 22.0 | 28.7 | 31.8 | 31.3 | 29.7 |
| SplitBrain [36] | 17.7 | 29.3 | 35.4 | 35.2 | 32.8 | 21.3 | 30.7 | 34.0 | 34.1 | 32.5 |
| Counting [37] | 18.0 | 30.6 | 34.3 | 32.5 | 25.7 | 23.3 | 33.9 | 36.3 | 34.7 | 29.6 |
| NPID [58] | 16.8 | 26.5 | 31.8 | 34.1 | 35.6 | 18.8 | 24.3 | 31.9 | 34.5 | 33.6 |
| Rotation [8] | 18.8 | 31.7 | 38.7 | 38.2 | 36.5 | 21.5 | 31.0 | 35.1 | 34.6 | 33.7 |
| DeepCluster [13] | 12.9 | 29.2 | 38.2 | 39.8 | 36.1 | 18.6 | 30.8 | 37.0 | 37.5 | 33.1 |
| AET [59] | 19.2 | 32.8 | 40.6 | 39.7 | 37.7 | 22.1 | 32.9 | 37.1 | 36.2 | 34.7 |
| Rot-Decouple [60] | 19.3 | 33.3 | 40.8 | 41.8 | 44.3 | 22.9 | 32.4 | 36.6 | 37.3 | 38.6 |
| LA [61] | 14.9 | 30.1 | 35.7 | 39.4 | 40.2 | 17.1 | 32.2 | 36.5 | 38.3 | 37.8 |
| ODC (Ours) | 19.6 | 32.8 | 40.4 | 41.4 | 37.3 | 24.0 | 33.2 | 38.3 | 38.4 | 35.5 |
+
+Table 2. ResNet-50 linear classification on ImageNet and Places. We report top-1 center-crop accuracy. Numbers for methods with * and † are produced by third-party studies as cited, and by us, respectively. Numbers for other methods are taken from their original papers. The highest performance in each layer is in bold, and the second highest performance in each layer is underlined.
+
+| Method (ResNet-50) | ImageNet | Places |
| conv1 | conv2 | conv3 | conv4 | conv5 | conv1 | conv2 | conv3 | conv4 | conv5 |
| Places labels [57]* | - | - | - | - | - | 16.7 | 32.3 | 43.2 | 54.7 | 62.3 |
| ImageNet labels [57]* | 11.6 | 33.3 | 48.7 | 67.9 | 75.5 | 14.8 | 32.6 | 42.1 | 50.8 | 52.5 |
| Random [57]* | 9.6 | 13.7 | 12.0 | 8.0 | 5.6 | 12.9 | 16.6 | 15.5 | 11.6 | 9.0 |
| Jigsaw [57]* | 12.4 | 28.0 | 39.9 | 45.7 | 34.2 | 15.1 | 28.8 | 36.8 | 41.2 | 34.4 |
| Colorization [57]* | 10.2 | 24.1 | 31.4 | 39.6 | 35.2 | 14.7 | 27.4 | 32.7 | 37.5 | 34.8 |
| NPID [58] | 15.3 | 18.8 | 24.9 | 40.6 | 54.0 | 18.1 | 22.3 | 29.7 | 42.1 | 45.5 |
| Rotation [56]* | | 41.7 (best layer) | 38.1 (best layer) |
| BigBiGAN [34] | | 55.4 (best layer) | - |
| DeepCluster [13]† | 14.4 | 29.6 | 39.9 | 52.2 | 50.3 | 19.3 | 31.9 | 39.0 | 46.1 | 43.6 |
| LA [61] | 9.3 | 23.2 | 38.0 | 48.6 | 58.8 | 18.3 | 31.5 | 39.2 | 46.3 | 49.1 |
| ODC (Ours) | 14.8 | 31.6 | 42.5 | 55.7 | 57.6 | 21.4 | 35.0 | 41.3 | 47.4 | 49.3 |
+
+task. With ODC, we achieve $78.2\%$ mAP performance, which is $9.1\%$ higher than DC. However, We also note that there is still a significant $9.8\%$ performance gap between our ODC and the supervised model pre-trained with ImageNet labels, leaving room for further exploration.
+
+Low-shot VOC2007 SVM Classification. Following [57], we also transfer our learned representations to a low-shot setting of VOC2007 SVM classification to test the quality of features when there are few training examples per category. We vary the number of positive samples in each class and train linear SVMs on the frozen ResNet-50 backbone using
+
+the same setting from VOC2007 SVM classification. We use the standard "trainval" split of VOC2007 in training and the test split in testing. We report the mean average precision (mAP) across five independent samples for various low-shot values in Figure 3. The final mAP results shown in Table 3 are observed as the averages of all low-shot values and all independent runs. The per-shot results are shown in Figure 3. ODC has a consistent improvement over DC for each shot, with the performance gap further increasing when more positive examples per class are allowed. We also observe that the performance gap between ODC and
+
+Table 3. ResNet-50 SVM classification and low-shot SVM classification mAP on VOC07. Numbers for methods with $\dagger$ are produced by us. Numbers for other methods are taken from [57].
+
+| Method (ResNet-50) | best layer | VOC07 SVM (% mAP) | VOC07 SVM Low-shot (% mAP) |
| ImageNet labels | 5 | 88.0 | 75.4 |
| Random | 1 | 9.6 | 12.7 |
| Jigsaw [4] | 4 | 64.5 | 39.2 |
| Colorization [3] | 4 | 55.6 | 33.3 |
| Rotation [8]† | 4 | 67.4 | 41.0 |
| DeepCluster [13]† | 5 | 69.1 | 46.9 |
| ODC (Ours) | 5 | 78.2 | 57.1 |
+
+
+Figure 3. Low-shot Image Classification on VOC07 with linear SVMs trained and tested on the features from the best layer respectively for each method. We show the average performance for each shot across five runs.
+
+the supervised model pre-trained with ImageNet labels is gradually narrowed down with the increase of training shot values. Table 3 shows that ODC achieves $57.1\%$ mAP performance in low-shot SVM classification on VOC2007, $10.2\%$ higher than our counterpart DC. The low-shot results of ODC in this benchmark suggest that the learned features through ODC generalize well to low-shot classification.
+
+# 4.2. Further Analysis
+
+In this section, we further analyze our ODC model from different perspectives.
+
+ODC as a Fine-tuning Scheme. The high efficiency enables ODC to easily serve as a rapid unsupervised fine-tuning scheme. To assess the fine-tuning ability of ODC, we also use our reimplemented DC to fine-tune other self-supervised models. The improvements over different self-supervised approaches are shown in Table 4. Compared with DC, we observe that ODC boosts the performance of each self-supervised approach by a significant margin. With ODC fine-tuning, we achieve $16.7\%$ improvements for Col., $9.9\%$ for Jig., $7.1\%$ for Rot., and $7.9\%$ for DC, respectively, on the VOC2007 SVM classification benchmark. By contrast, DC also yields fine-tuning improvements but lags
+
+Table 4. Improvements over previous self-supervised approaches. Each model is fine-tuned for 120 epochs. We report VOC07 SVM classification mAP for ResNet-50. Pre-trained models marked* are provided by [57], hence the original results are also taken from [57]. For methods marked†, we reimplement them to obtain the results.
+
+ | Col. [3]* | Jig. [4]* | Rot. [8]† | DC [13]† |
| Original | 55.6 | 64.5 | 67.4 | 69.1 |
| DC [13]† | 61.2 | 68.5 | 68.6 | 70.0 |
| ODC | 72.3 | 74.4 | 74.5 | 77.0 |
+
+
+Figure 4. Influence of centroids update frequency (left) and minimal small cluster size (right) on the quality of features learned by ODC. We study these hyper-parameters on uniformly sampled 90K ImageNet within 300 random classes. We report mAP on VOC07 SVM classification task with ResNet-50.
+
+
+
+far behind ODC.
+
+Influence of the Hyper-parameters. The hyperparameters of ODC include the frequency of updating the centroids memory, and the minimal size of clusters. To study the influence of the aforementioned two hyperparameters, we train models with 90K images that are uniformly sampled from the original 1.28M ImageNet dataset, and evaluate the performance on VOC2007 SVM classification benchmark. Figure 4 shows the influence of the update frequency of centroids memory. We observe no significant decrease in the performance of ODC when the update frequency becomes lower, indicating that our method is insensitive to this hyper-parameter provided that it is within a reasonable range. The influence of the minimal size of small clusters is shown in Figure 4. The results show that a large threshold ( i.e. 160) on clusters size would lead to a performance drop. The result is not surprising. A cluster whose size is smaller than the minimal size is identified as a "small cluster". An overly frequent processing of such small clusters (see Sec. 3.2) introduces instability in feature learning. The large threshold would also group images that should not have belonged to the same class. It is noteworthy that ODC does not experience a significant change in performance within a reasonable range of minimal cluster sizes.
+
+Stability and Convergence. Figure 1 already demonstrates the superior stability of ODC over DC from the aspect of the loss curve. In Figure 5, we show the training stability and
+
+
+Figure 5. The ratio of changed labels in each batch gradually declines, indicating ODC tends to be stable during training.
+
+convergence of ODC throughout the full training iterations. To measure the stability of our models, we record the ratio of samples whose labels are changed in a batch. Intuitively, fewer label switchings suggest a higher stability. We report the ratio when different backbones are trained from scratch with ODC. The curves begin with the highest label-switching ratio, i.e., nearly $100\%$ of samples in a batch experience a switch in their labels. Gradually, the label-switching ratio declines and converges to a relatively low value. Though there is always a small portion of samples altering their labels at last, ODC reaches a stable state.
+
+Training on Long-Tailed Data. In all previous experiments, we train our models on the class-balanced ImageNet dataset. To evaluate the learning efficacy of ODC on long-tailed data, we perform experiments on downsampled long-tail ImageNet following [64]. Specifically, we randomly downsample 300 classes with 100K images from the original ImageNet dataset to make different levels of long-tail ImageNet datasets, where the ratio of the largest class to the smallest class ranges from 1 (the non-long-tail level) to 64 (the highest long-tail level). Figure 6 shows the performance of ODC trained on different levels of long-tail ImageNet. We observe no significant performance drop even in the conditions with large long-tail degrees, suggesting the robustness of our method on long-tailed data. Visualization of Clusters. We visualize some selected clusters as shown in Figure 7. Since the number of clusters is much larger than that of the original annotations, there will certainly be some clusters that represent new semantics beyond the annotated classes. We find new classes, e.g., "hand" and "feet", and new relations, e.g., "animal in cage", "person holds dog" and "person leads dog with a rope", that are discovered by ODC. The phenomenon reveals the potential of unsupervised learning to capture new semantics beyond manual annotations.
+
+# 5. Conclusion
+
+We have proposed an effective joint clustering and feature learning paradigm for unsupervised representation learning. The proposed approach, Online Deep Clustering
+
+
+Figure 6. The efficacy of ODC trained on downsampled 300-class 100K long-tail ImageNet, with the ratio of the size of largest class to smallest class ranging from 1 (non-long-tail) to 64 (highly long-tail). We report mAP on VOC07 SVM task with ResNet-50.
+
+
+Figure 7. This figure shows part of selected clusters. Each row represents a cluster. Apart from the clusters that represent existing classes in ImageNet annotations, shown in the green box, we also find some new classes discovered by ODC. For example, the two rows in the blue box group "hand" and "feet" respectively, while "hand" or "feet" is not a category in ImageNet annotations. ODC also surprisingly groups images with similar relations between objects. As shown in the orange box, the clusters represent "animal in cage", "person holds dog" and "person leads dog with a rope" respectively.
+
+(ODC), attains effective and stable unsupervised training of deep neural networks, via decomposing feature clustering and integrating the process into iterations of network update. ODC performs compellingly as an unsupervised representation learning scheme alone. It can also be used to fine-tune and substantially improve previous self-supervised learning methods.
+
+Acknowledgements. This work is supported by the SenseTime-NTU Collaboration Project, Singapore MOE AcRF Tier 1 (2018-T1-002-056), NTU SUG, NTU NAP, the Max Planck-NTU Joint Lab for Artificial Senses and Data Science and Artificial Intelligence Research Lab. We thank Yue Zhao for his participation in discussing the idea.
+
+# References
+
+[1] Carl Doersch, Abhinav Gupta, and Alexei A Efros. Unsupervised visual representation learning by context prediction. In ICCV, 2015. 1, 2, 6
+[2] Deepak Pathak, Philipp Krahenbuhl, Jeff Donahue, Trevor Darrell, and Alexei A Efros. Context encoders: Feature learning by inpainting. In CVPR, 2016. 1, 2, 6
+[3] Richard Zhang, Phillip Isola, and Alexei A Efros. Colorful image colorization. In ECCV, 2016. 1, 2, 6, 7
+[4] Mehdi Noroozi and Paolo Favaro. Unsupervised learning of visual representations by solving jigsaw puzzles. In ECCV, 2016. 1, 2, 6, 7
+[5] Jeff Donahue, Philipp Krahenbuhl, and Trevor Darrell. Adversarial feature learning. In ICLR, 2017. 1, 2
+[6] Gustav Larsson, Michael Maire, and Gregory Shakhnarovich. Colorization as a proxy task for visual understanding. In CVPR, 2017. 1, 2
+[7] Simon Jenni and Paolo Favaro. Self-supervised feature learning by learning to spot artifacts. In CVPR, 2018. 1
+[8] Spyros Gidaris, Praveer Singh, and Nikos Komodakis. Unsupervised representation learning by predicting image rotations. In ICLR, 2018. 1, 2, 6, 7
+[9] Xiaohang Zhan, Xingang Pan, Ziwei Liu, Dahua Lin, and Chen Change Loy. Self-supervised learning via conditional motion propagation. In CVPR, 2019. 1, 2
+[10] Huang Huang, Chen Change Loy, and Xiaou Tang. Unsupervised learning of discriminative attributes and visual representations. In CVPR, pages 5175-5184, 2016. 1
+[11] Junyuan Xie, Ross Girshick, and Ali Farhadi. Unsupervised deep embedding for clustering analysis. In ICML, 2016. 1, 2
+[12] Jianwei Yang, Devi Parikh, and Dhruv Batra. Joint unsupervised learning of deep representations and image clusters. In CVPR, 2016. 1, 2
+[13] Mathilde Caron, Piotr Bojanowski, Armand Joulin, and Matthijs Douze. Deep clustering for unsupervised learning of visual features. In ECCV, 2018. 1, 2, 3, 5, 6, 7
+[14] Mathilde Caron, Piotr Bojanowski, Julien Mairal, and Armand Joulin. Unsupervised pre-training of image features on non-curated data. In ICCV, pages 2959-2968, 2019. 1, 2
+[15] Olivier J Henaff, Ali Razavi, Carl Doersch, SM Eslami, and Aaron van den Oord. Data-efficient image recognition with contrastive predictive coding. arXiv preprint arXiv:1905.09272, 2019. 1
+[16] Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. arXiv preprint arXiv:1911.05722, 2019. 1
+[17] Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. arXiv preprint arXiv:2002.05709, 2020. 1
+
+[18] Xiaohang Zhan, Ziwei Liu, Junjie Yan, Dahua Lin, and Chen Change Loy. Consensus-driven propagation in massive unlabeled data for face recognition. In ECCV, 2018. 1
+[19] Lei Yang, Xiaohang Zhan, Dapeng Chen, Junjie Yan, Chen Change Loy, and Dahua Lin. Learning to cluster faces on an affinity graph. In CVPR, pages 2298-2306, 2019. 1
+[20] Pascal Vincent, Hugo Larochelle, Yoshua Bengio, and Pierre-Antoine Manzagol. Extracting and composing robust features with denoising autoencoders. In ICML, 2008. 2
+[21] Quoc V Le. Building high-level features using large scale unsupervised learning. In ICASSP, 2013. 2
+[22] Geoffrey E Hinton, Simon Osindero, and Yee-Whye Teh. A fast learning algorithm for deep belief nets. Neural computation, 18(7):1527-1554, 2006. 2
+[23] Honglak Lee, Roger Grosse, Rajesh Ranganath, and Andrew Y Ng. Convolutional deep belief networks for scalable unsupervised learning of hierarchical representations. In ICML, pages 609-616, 2009. 2
+[24] Yichuan Tang, Ruslan Salakhutdinov, and Geoffrey Hinton. Robust boltzmann machines for recognition and denoising. In CVPR, pages 2264-2271, 2012. 2
+[25] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. 2
+[26] Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In NeurIPS, pages 2672-2680, 2014. 2
+[27] Emily L Denton, Soumith Chintala, Rob Fergus, et al. Deep generative image models using a laplacian pyramid of adversarial networks. In NeurIPS, pages 1486-1494, 2015. 2
+[28] Christian Ledig, Lucas Theis, Ferenc Huszár, Jose Caballero, Andrew Cunningham, Alejandro Acosta, Andrew Aitken, Alykhan Tejani, Johannes Totz, Zehan Wang, et al. Photorealistic single image super-resolution using a generative adversarial network. In CVPR, pages 4681-4690, 2017. 2
+[29] Han Zhang, Tao Xu, Hongsheng Li, Shaoting Zhang, Xiaogang Wang, Xiaolei Huang, and Dimitris N Metaxas. Stackgan: Text to photo-realistic image synthesis with stacked generative adversarial networks. In ICCV, pages 5907-5915, 2017. 2
+[30] Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale gan training for high fidelity natural image synthesis. 2019. 2
+[31] Carl Vondrick, Hamed Pirsiavash, and Antonio Torralba. Generating videos with scene dynamics. In NeurIPS, pages 613-621, 2016. 2
+[32] Sergey Tulyakov, Ming-Yu Liu, Xiaodong Yang, and Jan Kautz. Mocogan: Decomposing motion and content for video generation. In CVPR, pages 1526-1535, 2018. 2
+[33] Vincent Dumoulin, Ishmael Belghazi, Ben Poole, Olivier Mastropietro, Alex Lamb, Martin Arjovsky, and Aaron Courville. Adversarily learned inference. arXiv preprint arXiv:1606.00704, 2016. 2
+
+[34] Jeff Donahue and Karen Simonyan. Large scale adversarial representation learning. arXiv preprint arXiv:1907.02544, 2019. 2, 6
+[35] Gustav Larsson, Michael Maire, and Gregory Shakhnarovich. Learning representations for automatic colorization. In ECCV, pages 577-593, 2016. 2
+[36] Richard Zhang, Phillip Isola, and Alexei A Efros. Split-brain autoencoders: Unsupervised learning by cross-channel prediction. In CVPR, 2017. 2, 5, 6
+[37] Mehdi Noroozi, Hamed Pirsiavash, and Paolo Favaro. Representation learning by learning to count. In ICCV, pages 5898-5906, 2017. 2, 6
+[38] Hossein Mobahi, Ronan Collobert, and Jason Weston. Deep learning from temporal coherence in video. In ICML, pages 737-744, 2009. 2
+[39] Dinesh Jayaraman and Kristen Grauman. Slow and steady feature analysis: higher order temporal coherence in video. In CVPR, pages 3852-3861, 2016. 2
+[40] Xiaolong Wang and Abhinav Gupta. Unsupervised learning of visual representations using videos. In ICCV, pages 2794-2802, 2015. 2
+[41] Ziwei Liu, Raymond A Yeh, Xiaou Tang, Yiming Liu, and Aseem Agarwala. Video frame synthesis using deep voxel flow. In ICCV, pages 4463-4471, 2017. 2
+[42] Hsin-Ying Lee, Jia-Bin Huang, Maneesh Singh, and Ming-Hsuan Yang. Unsupervised representation learning by sorting sequences. In ICCV, pages 667-676, 2017. 2
+[43] Ishan Misra, C Lawrence Zitnick, and Martial Hebert. Shuffle and learn: unsupervised learning using temporal order verification. In ECCV, pages 527-544, 2016. 2
+[44] Donglai Wei, Joseph J Lim, Andrew Zisserman, and William T Freeman. Learning and using the arrow of time. In CVPR, pages 8052-8060, 2018. 2
+[45] Deepak Pathak, Ross Girshick, Piotr Dollar, Trevor Darrell, and Bharath Hariharan. Learning features by watching objects move. In CVPR, pages 2701-2710, 2017. 2
+[46] Aravindh Mahendran, James Thewlis, and Andrea Vedaldi. Cross pixel optical-flow similarity for self-supervised learning. In ACCV, pages 99-116, 2018. 2
+[47] Jacob Walker, Abhinav Gupta, and Martial Hebert. Dense optical flow prediction from a static image. In ICCV, pages 2443-2451, 2015. 2
+[48] Jacob Walker, Carl Doersch, Abhinav Gupta, and Martial Hebert. An uncertain future: Forecasting from static images using variational autoencoders. In ECCV, pages 835-851, 2016. 2
+[49] Alexey Dosovitskiy, Jost Tobias Springenberg, Martin Ried-miller, and Thomas Brox. Discriminative unsupervised feature learning with convolutional neural networks. In NeurIPS, pages 766-774, 2014. 2
+[50] Renjie Liao, Alex Schwing, Richard Zemel, and Raquel Urtasun. Learning deep parsimonious representations. In NeurIPS, pages 5076-5084, 2016. 2
+
+[51] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, pages 248–255, 2009. 2
+[52] T Nathan Mundhenk, Daniel Ho, and Barry Y Chen. Improvements to context based self-supervised learning. In CVPR, pages 9339-9348, 2018. 2
+[53] Mehdi Noroozi, Ananth Vinjimoor, Paolo Favaro, and Hamed Piriavash. Boosting self-supervised learning via knowledge transfer. In CVPR, pages 9359–9367, 2018. 3
+[54] Xiaolong Wang, Kaiming He, and Abhinav Gupta. Transitive invariance for self-supervised visual representation learning. In ICCV, pages 1329-1338, 2017. 3
+[55] Carl Doersch and Andrew Zisserman. Multi-task self-supervised visual learning. In ICCV, pages 2051-2060, 2017. 3
+[56] Alexander Kolesnikov, Xiaohua Zhai, and Lucas Beyer. Revisiting self-supervised visual representation learning. arXiv preprint arXiv:1901.09005, 2019. 3, 6
+[57] Priya Goyal, Dhruv Mahajan, Abhinav Gupta, and Ishan Misra. Scaling and benchmarking self-supervised visual representation learning. arXiv preprint arXiv:1905.01235, 2019. 3, 5, 6, 7
+[58] Zhirong Wu, Yuanjun Xiong, Stella X Yu, and Dahua Lin. Unsupervised feature learning via non-parametric instance discrimination. In CVPR, pages 3733-3742, 2018. 6
+[59] Liheng Zhang, Guo-Jun Qi, Liqiang Wang, and Jiebo Luo. Aet vs. aed: Unsupervised representation learning by autoencoding transformations rather than data. In CVPR, pages 2547-2555, 2019. 6
+[60] Zeyu Feng, Chang Xu, and Dacheng Tao. Self-supervised representation learning by rotation feature decoupling. In CVPR, pages 10364–10374, 2019. 5, 6
+[61] Chengxu Zhuang, Alex Lin Zhai, and Daniel Yamins. Local aggregation for unsupervised learning of visual embeddings. In ICCV, pages 6002-6012, 2019. 5, 6
+[62] Bolei Zhou, Agata Lapedriza, Jianxiong Xiao, Antonio Torralba, and Aude Oliva. Learning deep features for scene recognition using places database. In NeurIPS, pages 487-495, 2014. 5
+[63] Mark Everingham, Luc Van Gool, Christopher KI Williams, John Winn, and Andrew Zisserman. The pascal visual object classes (voc) challenge. *IJCV*, 88(2):303–338, 2010. 5
+[64] 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. 8
\ No newline at end of file
diff --git a/onlinedeepclusteringforunsupervisedrepresentationlearning/images.zip b/onlinedeepclusteringforunsupervisedrepresentationlearning/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..55f3de23215995e6dccae937d6c64100894ebfd4
--- /dev/null
+++ b/onlinedeepclusteringforunsupervisedrepresentationlearning/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7ec5ee6e57dc07f6a7a8a4e65dbb17184cb19433e17958e8351d4c8b70388949
+size 515390
diff --git a/onlinedeepclusteringforunsupervisedrepresentationlearning/layout.json b/onlinedeepclusteringforunsupervisedrepresentationlearning/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..02a4950ad4a0d13a56ddb2da02a49a5b52915e52
--- /dev/null
+++ b/onlinedeepclusteringforunsupervisedrepresentationlearning/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:30cebea4dee6225adcaf68ccdcdb0d7a341e3065c24edbdd6061b89e11f1ecf7
+size 345199
diff --git a/onlinedepthlearningagainstforgettinginmonocularvideos/09fc1de2-51a5-441d-a042-f14796f7499a_content_list.json b/onlinedepthlearningagainstforgettinginmonocularvideos/09fc1de2-51a5-441d-a042-f14796f7499a_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..06f79306c39fc0bc738e0be133fab22d4dfb19b6
--- /dev/null
+++ b/onlinedepthlearningagainstforgettinginmonocularvideos/09fc1de2-51a5-441d-a042-f14796f7499a_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e17de7f4cab28e99724806c58ad964410c01c9851c2b41e25a921894d5c751dc
+size 82501
diff --git a/onlinedepthlearningagainstforgettinginmonocularvideos/09fc1de2-51a5-441d-a042-f14796f7499a_model.json b/onlinedepthlearningagainstforgettinginmonocularvideos/09fc1de2-51a5-441d-a042-f14796f7499a_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..86baa514eb49286b9b2168da85c39d44cbaf6597
--- /dev/null
+++ b/onlinedepthlearningagainstforgettinginmonocularvideos/09fc1de2-51a5-441d-a042-f14796f7499a_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5ec1a3fda167a14eed4e91a7128797f981227e2e5ab246439009abda3ce0c2ab
+size 103330
diff --git a/onlinedepthlearningagainstforgettinginmonocularvideos/09fc1de2-51a5-441d-a042-f14796f7499a_origin.pdf b/onlinedepthlearningagainstforgettinginmonocularvideos/09fc1de2-51a5-441d-a042-f14796f7499a_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..db09f94ada987f4a6b3fbc27350fec0fcc2ee674
--- /dev/null
+++ b/onlinedepthlearningagainstforgettinginmonocularvideos/09fc1de2-51a5-441d-a042-f14796f7499a_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:98dc3a3a184d16e6ecb5a7c46b4aade1c535472a048157e4dad733464889b855
+size 780565
diff --git a/onlinedepthlearningagainstforgettinginmonocularvideos/full.md b/onlinedepthlearningagainstforgettinginmonocularvideos/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..1c0f5012016a5e89f488bffc6a0bf9c609208af8
--- /dev/null
+++ b/onlinedepthlearningagainstforgettinginmonocularvideos/full.md
@@ -0,0 +1,328 @@
+# Online Depth Learning against Forgetting in Monocular Videos
+
+Zhenyu Zhang $^{1\dagger}$ , Stéphane Lathuilière $^{2,4}$ , Elisa Ricci $^{2,3}$ , Nicu Sebe $^{2}$ , Yan Yan $^{1* \dagger}$ and Jian Yang $^{1* \dagger}$
+PCA Lab, Nanjing University of Science and Technology, China $^{1}$
+DISI, University of Trento, via Sommarive 14, Povo (TN), Italy $^{2}$
+Technologies of Vision, Fondazione Bruno Kessler, Via Sommarive 18, Povo (TN), Italy $^{3}$
+Télécom Paris, Multimedia Group, France $^{4}$
+
+zhangjesse, yanyan, csjyang@njust.edu.cn
+
+stephane.lathuiliere, e.ricci, niculae.sebe@unitn.it
+
+# Abstract
+
+Online depth learning is the problem of consistently adapting a depth estimation model to handle a continuously changing environment. This problem is challenging due to the network easily overfits on the current environment and forgets its past experiences. To address such problem, this paper presents a novel Learning to Prevent Forgetting (LPF) method for online mono-depth adaptation to new target domains in unsupervised manner. Instead of updating the universal parameters, LPF learns adapter modules to efficiently adjust the feature representation and distribution without losing the pre-learned knowledge in online condition. Specifically, to adapt temporal-continuous depth patterns in videos, we introduce a novel meta-learning approach to learn adapter modules by combining online adaptation process into the learning objective. To further avoid overfitting, we propose a novel temporal-consistent regularization to harmonize the gradient descent procedure at each online learning step. Extensive evaluations on real-world datasets demonstrate that the proposed method, with very limited parameters, significantly improves the estimation quality.
+
+# 1. Introduction
+
+Monocular depth estimation is a fundamental task in visual scene understanding, which has attracted increasing attention in computer vision and robotics [8, 58, 47, 54] communities. With the success of deep learning algorithms [46, 21], recent works usually propose methods
+
+
+Figure 1. The proposed framework for online monocular depth learning. The model is firstly trained on synthetic dataset through un-and supervised loss $\mathcal{L}_{source}$ . Then, a series of online adapters are learned from synthetic video sequences through an online-learning objective $\mathcal{L}_{meta}$ . Finally, when adapting on the target real-world video, we only update the learned adapters and regressors (decoder) by unsupervised loss $\mathcal{L}_{target}$ .
+
+based on deep neural networks [13, 27, 31, 53, 56, 59, 57]. Despite the attractive performance of these approaches, they mainly learn depth information from ground truth in a supervised manner. As such setting may not be practical in real-world applications due to the expensiveness of data collecting, many works turn to design unsupervised depth estimation methods [63, 17, 55, 1, 18], and show good performance compared with supervised approaches.
+
+Despite the attractiveness of the above unsupervised methods, they may have limitations on open-world applications. Due to the classical paradigm in machine learning, after training phase, the model is frozen and used for inferring without any change in the model parameters. However, in real-world applications, the deployment environment (i.e. target domain) may differ significantly from the training one (i.e. source domain), and keeps changing continuously over time. Several recent works are proposed to tackle this practical open-world problem for stereo matching [62, 50, 49], but few work focus on online monocular depth adaptation. Compared with online stereo, online
+
+mono-depth learning is even more challenging from two aspects: (i) scale ambiguity and lack of support from geometrical information inherent to a monocular setting make the model extremely dependent on domain-specific visual features and prone to overfit on the current domain [11, 10]; (ii) the environmental variation (e.g., speed or scene changes) introduces additional challenges both for depth or pose estimation, making the whole model fragile. On the top of these, as deep networks are not flexible in an online learning setting, there is catastrophic forgetting issue. In other words, the model, while updating to the novel domain, will easily forget the pre-learned knowledge. In such perspective, in this paper we argue that preventing forgetting while performing robust adaptation is the key point for online mono-depth learning.
+
+To achieve such goal, as the training data on the source is usually of large amount, we could adjust the reliable pre-learned knowledge rather than update it entirely during adaptation. Firstly we propose to adjust the basic model to overcome domain shift. According to recent works [28, 2, 34] aligning domain shift through batch normalization (BN) [23] layers, although in online condition we never have access to full target data, we are inspired to smoothly adjust model statistics through online data stream of target videos. Besides the statistics, works [20, 37, 41, 40] on multi-domain or incremental learning inspire us to selectively tune a small subset of learned basic parameters while keeping all the other fixed. In our setting this is meant to ensure that visual appearance variations arising from scene changes will never influence the networks weights encoding the reliable knowledge. Following these ideas, we propose novel adapters that enable to adjust the source model online. Furthermore, inspired by recent learning to learn algorithm [12, 38], we develop a novel meta-learning based method to incorporate online learning procedure to the learning objective, which drives adapters for stable long-range adaptation.
+
+Driven by the aforementioned motivation, in this paper we proposed a novel Learning to Prevent Forgetting (LPF) framework for online mono-depth learning. As illustrated in Fig. 1, we first train a monocular depth prediction model using synthetic data. Second, we employ a series of online adapters to adjust model statistics and weights, and train them with a novel meta-learning based strategy to properly update the basic knowledge. Specifically, we incorporate the learning objective $\mathcal{L}_{meta}$ with online adaptation procedures, thus $\mathcal{L}_{meta}$ will derive initial adapters to adapt temporal-continuous depth patterns in videos. Finally, while performing online adaptation on target real-world videos, we only update the learned online adapters and regressors (decoder) by unsupervised loss $\mathcal{L}_{target}$ . In this way, we achieve our main purpose of adapting fast to a target video and long-range adaptation with less forgetting. We also propose a novel temporal-consistent regularization
+
+to harmonize the gradient descent during each online learning step.
+
+In summary, this paper has four main contributions: (i) We propose a novel Learning to Prevent Forgetting framework for online depth learning in monocular videos, which is effective for rapid and long-range online adaptation on target data streams; (ii) We introduce a new adapter to handle the problem of domain shift in the case of continuous online data streams; (iii) We propose a novel meta-learning based method which permits to derive adapters for online learning condition; (iv) We perform an extensive evaluation to validate the effectiveness of our methods, showing that our approach achieve superior performance than state-of-the-art methods on real-world datasets.
+
+# 2. Related Works
+
+Monocular Depth Estimation. Early works on monodepth estimation are mainly based on geometric priors [45, 30, 24]. With the availability of large-scale datasets, recently deep learning based methods have become the mainstream [9, 31, 27, 13, 56]. However, supervised methods require a large amount of pairs of images and ground truth depth maps. To overcome this limitation, unsupervised or self-supervised methods have been proposed [63, 17, 15, 55, 1, 18, 33, 3]. However, none of these papers focus on open-world setting, where the target sequence is gathered from a different environment with respect to the source and keeps changing with sequentially available data stream. Some recent works [5, 19] provide solution for open-world problem, but they need heavy extra annotation or computation like object motion and optical flow.
+
+Domain Adaptation, Multi-domain and Continual Learning. There is a wide range of works on domain adaptation [7]. Recent deep learning-based methods mostly reduce the domain shift by considering distribution losses [32], alignment layers [28, 2, 35] and Generative Adversarial Network [43, 44]. Recently, cross-domain adaptation problems have also been studied for stereo depth estimation [50, 48]. However, these works did not explicitly address the domain shift problem while performing online adaptation. Some cross-domain monocular depth estimation works [61, 60] are also related to our paper, but they tackle no open-world problem.
+
+Works that learn models for multi-domain problem through specific adapters [41, 40] are also related to our work. Besides, continual learning methods are loosely related to our works, where the task is to incrementally update a model trying to prevent catastrophic forgetting [36]. However, previous [26, 4, 29, 42] works mostly focus on classification problems, while we target a dense regression tasks. Further, our problem is in real-time condition with very limited learning stage.
+
+Meta-Learning. Meta-learning, i.e. learning to learn, at-
+
+tempt to design models that can adapt to new environments with few samples. In [51, 20, 12], meta-learning has been utilized for rapid generalization of models to novel domains and categories. Recently, Park et al. [38] introduced a method based on meta-learning to obtain an initial network for online tracking. A more closely related work to ours is [49], where an approach for learning to better adapt models to stereo videos is proposed. In contrast, our paper focuses on online mono-depth learning. Instead of learning a better initial model, our method learns how to exploit pre-existing knowledge for better online adaptation in a continuous data stream, thus aiming at robust adaptation to prevent forgetting. Therefore, the task, the goal and the approach considered in our work are radically different from previous papers.
+
+# 3. Preliminary
+
+In this section, we present the employed unsupervised framework for monocular depth estimation and its online learning algorithm.
+
+Unsupervised Framework: We follow the approach firstly introduced in [63] for unsupervised depth estimation in monocular videos. The framework contains two subnetworks: depth net for predicting depth maps $D_{t}$ of target frame $I_{t}$ , and pose net for predicting relative poses $P_{t-1}, P_{t+1}$ between adjacent frame pairs $(I_{t-1}, I_{t})$ and $(I_{t+1}, I_{t})$ . Many works extended this method by jointly learning optical flow [55] and employing geometric constraints [33, 3]. In this paper we mainly implement and validate our method based on [63] and more recent work [1] but we would like to remark that, in principle, our framework can also integrate most of theses recent advances.
+
+Online Learning: Here we discuss the paradigm for online mono-depth learning. To better formulate the problem, we first employ a source dataset $\mathcal{V}_S$ (usually synthetic and with ground truth) to pre-train our monocular depth estimation model with a supervised loss $\mathcal{L}_s$ (e.g., $L_{1}$ regression) and unsupervised loss $\mathcal{L}_u$ (defined in [63, 1]). Then, the model is deployed and evaluated on target videos $\mathcal{V}_{\mathcal{T}}$ . In previous works, $\mathcal{V}_{\mathcal{T}}$ is usually fixed and from the same domain as $\mathcal{V}_S$ . However, in practical applications, $\mathcal{V}_{\mathcal{T}}$ is usually from different domains (e.g., real-world scenes) and keeps changing (e.g., models implemented on a car have to work in changing environments). In such open-world condition, we process the video frames sequentially and continuously adapt our model at each time step in order to predict more accurate depth maps with $t$ increasing. Similar to [49, 62] on open-world stereo, we follow the paradigm for learning and evaluating. At time $t$ , we first predict depth from $I_t$ (the current frame). Then, we evaluate our prediction according to the supervised loss $\mathcal{L}_s$ , and finally, we update the model using $\mathcal{L}_u$ . The learning process at each time step is obtained
+
+via gradient descent as follows:
+
+$$
+\left[ \theta_ {t + 1} ^ {d}, \theta_ {t + 1} ^ {p} \right] \leftarrow \left[ \theta_ {t} ^ {d}, \theta_ {t} ^ {p} \right] - \alpha \nabla_ {\theta^ {p}, \theta^ {d}} \mathcal {L} _ {u} \left(\left[ \theta_ {t} ^ {d}, \theta_ {t} ^ {p} \right], I _ {t}, I _ {t - 1}\right), \tag {1}
+$$
+
+where $\theta^d, \theta^p$ are parameters of depth net and pose net.
+
+# 4. Learning to Prevent Forgetting
+
+In this section we introduce our proposed Learning to Prevent Forgetting (LPF) framework for online mono-depth learning, including online adapters for depth estimation (in Section 4.1 and 4.2) and corresponding algorithm to learn them (in Section 4.3). A novel Temporal-Consistent Regularization for stable online learning is also introduced in Section 4.4.
+
+# 4.1. Online Statistics Adapter
+
+As discussed in Section 1, scale ambiguity and lack of geometric prior information make monocular depth estimation frameworks over-reliant on appearance cues and domain-specific information. As a consequence, they are especially susceptible to domain shift when deployed on new target data. According to [28, 2], domain discrepancy between source domain $S$ and target domain $\mathcal{T}$ can be reduced by transforming statistics recorded in batch normalization (BN) layer. However, in our case we have no access to the full data but sequential stream of $\mathcal{T}$ . This inspires us to develop a new adapter that smoothly updates statistics over data stream in an online fashion. After pre-training on source dataset, the model gathers statistics $\mathcal{B}_S = (\mu_S, \Sigma_S)$ aligned with $S$ . Here for sake of notation, we only analyse mean $\mu$ and covariance matrix $\Sigma$ in one BN layer but the approach described below applies to all the others. When adapting on the target, using source statistics $\mathcal{B}_S$ would make the model suffer from domain shift since the statistics $\mathcal{B}_{\mathcal{T}}$ are different from $\mathcal{B}_S$ statistics. However, in the beginning of the sequence, we have not disposed of enough frames to have a robust estimation of $\mathcal{B}_{\mathcal{T}}$ . Furthermore, by only using the observed statistics of target frames, the model would completely forget the source knowledge. Motivated by this, we design a more robust way for aligning model statistics. Based on the theory in [52] which analyses statistics across different layers, we can also model the statistics along time axis into a Kalman filtering process. At time $t$ , given the state transition matrix $\mathbf{A}^t$ and feature $x^t$ with $m$ examples, we can estimate statistics as:
+
+$$
+\begin{array}{l} \hat {\mu} ^ {t | t - 1} = \mathbf {A} ^ {t} \hat {\mu} ^ {t - 1 | t - 1}, \\ \hat {\mu} ^ {t | t} = (1 - a ^ {t}) \hat {\mu} ^ {t | t - 1} + a ^ {t} \bar {x} ^ {t}, \\ \hat {\boldsymbol {\Sigma}} ^ {t | t - 1} = \mathbf {A} ^ {t} \hat {\boldsymbol {\Sigma}} ^ {t - 1 | t - 1} (\mathbf {A} ^ {t}) ^ {T} + R, \\ \hat {\Sigma} ^ {t | t} = (1 - a ^ {t}) \hat {\Sigma} ^ {t | t - 1} + a ^ {t} S ^ {t}, \tag {2} \\ \end{array}
+$$
+
+where $\hat{\mu}^{t|t-1}$ and $\hat{\Sigma}^{t|t-1}$ are the calculated mean and covariance matrix from time $t-1$ , $R$ and $S^t$ are the covariance
+
+
+Figure 2. One single training loop of our proposed meta-learning based method for learning online adapters. The adapters start with weight $\theta_0$ , and then continuously adapt to a video sequence of length $T$ on source dataset, with the weight updated to $\theta_T$ through unsupervised loss $\mathcal{L}_u$ . After that we evaluate the adapter using frames that randomly selected from the following time points $T + n$ , and perform gradient descent with respect to the initial weight $\theta_0$ . In this way, we learn a series of better initial adapters for adapting temporal-continuous depth patterns. More details can be seen in Section 4.3.
+
+matrix of bias and observed feature. $\vec{x}^t = \frac{1}{m}\sum_i^m x_i^t$ and $a^t$ is a balancing weight and $\hat{\mu}^{t|t}$ and $\hat{\Sigma}^{t|t}$ are the final estimations. As $\mathbf{A}^t$ and $R$ are difficult to get during the online adaptation, we simply assume $\mathbf{A}^t$ is an identity matrix and bias is zero. In addition, $\boldsymbol{\Sigma}$ is usually vectors in convolution neural networks so that $S^t = \frac{1}{m}\sum_i^m (x_i - \bar{x}^t)$ . In this way, we can simply Eqn. 2 as
+
+$$
+\begin{array}{l} \hat {\mu} ^ {t \mid t} = \mu^ {t} = (1 - a ^ {t}) \hat {\mu} ^ {t \mid t - 1} + a ^ {t} \bar {x} ^ {t}, \\ = (1 - a ^ {t}) \mu^ {t - 1} + a ^ {t} \tilde {\mu} ^ {t} \\ \end{array}
+$$
+
+$$
+\begin{array}{l} \hat {\Sigma} ^ {t \mid t} = \Sigma^ {t} = (1 - a ^ {t}) \hat {\Sigma} ^ {t \mid t - 1} + a ^ {t} S ^ {t} \\ = (1 - a ^ {t}) \Sigma^ {t - 1} + a ^ {t} \bar {\Sigma} ^ {t} \tag {3} \\ \end{array}
+$$
+
+where $\tilde{\mu}^t,\tilde{\Sigma}^t$ are the observed mean and variance at time $t$ respectively, and $\mu^t,\Sigma^t$ are the final estimations of the statistics. $a^t$ is a learnable dynamic weight to decide how much the layer should adapt to the current frame. Note that, different from standard BN operation, we perform Eqn. 3 during forward process of training step, i.e., the input $x$ of a layer in training step will be transformed by
+
+$$
+\hat {x} = \omega \frac {x - \mu^ {t}}{\sqrt {\Sigma^ {t ^ {2}} + \epsilon}} + \rho . \tag {4}
+$$
+
+$\omega, \rho$ are scaling and shifting factor, and $\epsilon$ is a small constant. In this way, $\mathcal{B}_S$ is smoothly aligned to $\mathcal{B}_{\mathcal{T}}$ with time $t$ increasing, and pre-learned knowledge is stably updated.
+
+# 4.2. Online Weight Adapter
+
+To preserve the pre-learned knowledge during online adaptation, we use adapters to adjust the feature representation without updating the main network parameters. This will weaken the misguidance caused by scene changing and benefit long-range adaptation. Besides, these adapters need to be efficient enough with very limited parameters to avoid
+
+
+Figure 3. The proposed online weight adapters. Each adapter is able to adjust basic model through operations with very limited cost. The total amount of parameter is $4.7\mathrm{M}$ , about $1/9$ of DispNet encoder.
+
+computational overload. Here, we borrow some ideas from multi-domain and incremental learning works [40, 41] to design our adapters. The employed adapters are shown in Fig. 3. Considering a given convolutional layer of the main model, $\phi (\cdot ,\lambda)$ denotes its computed function parametrized with weights $\lambda$ . Let $f_{in}$ and $f_{out}$ be the input and output feature maps. We further define $\varphi (\cdot ,\gamma)$ as the adapter with parameter $\gamma$ . In this work we consider three different adapters. First, the original layer $\phi (\cdot ,\lambda)$ can be adjusted as follows:
+
+$$
+f _ {o u t} = \phi \left(f _ {i n}\right) + \varphi \left(\phi \left(f _ {i n}\right)\right). \tag {5}
+$$
+
+Considering that $\varphi$ is a $1\times 1$ convolution, we obtain the series adapters introduced in [40] (see Fig. 3(a)). Second, if we employ a $1\times 1$ convolution, a sigmoid activation and a scaling operation into $\varphi$ , it becomes the attention module proposed in [22]. This adapter is able to re-weight the output of $\phi$ using attention mechanism. In our case we slightly modify this attention adapter by removing the squeezing operation and computing softmax response along each channel, in order to enhance the most related spatial information. This adapter is referred to as attention adapter and is shown in Fig. 3(b). Finally, $\phi (\cdot ,\lambda)$ can also be adapted as follows:
+
+$$
+f _ {o u t} = \phi \left(f _ {i n}\right) + \varphi \left(f _ {i n}\right), \tag {6}
+$$
+
+that is known as parallel adapter [41] (See Fig. 3(c)). The use of these low-cost adapters avoid losing reliable previ
+
+ous knowledge, which is beneficial to fast and long-range adaptation.
+
+# 4.3. Learning to Learn Online Adapter
+
+Through the adapters proposed in Section 4.1 and 4.2, the model obtains capacity to adjust statistics and weight for online adaptation. However, standard off-line training on the source is not satisfactory for learning these adapters which need to work in online mode. To overcome this limitation, we propose a novel learning objective in Fig. 2, which is able to evaluate how well the adapter is for online adaptation. Given adapter weights $\theta_0$ and a video sequence with length $T$ , we first perform online learning through $\mathcal{L}_u$ on every frame pair $I_{t-1}, I_t$ , and finally obtain adapter weight $\theta_T$ . In practical condition, as our goal is to make the model perform well in the following frames, we then evaluate the adapter with $\theta_T$ on a randomly selected following frame pair $I_{T+n-1}, I_{T+n}$ . The un-and supervised loss $\mathcal{L}_{s+u}$ reveals the prediction quality after online adaptation with initial adapter $\theta_0$ . Based on recent meta-learning theory proposed in [12], we can perform gradient descent w.r.t. $\theta_0$ to derive the initial adapter that can perform fast and stable online adaptation.
+
+We now provide the technical details of our meta-learning approach. We consider a sampled video $\mathcal{V}_k$ from source dataset $\mathcal{V}_S$ and composed of the frames $[I_0, \dots, I_{T+N-1}, I_{T+N}]$ . Let $\mathcal{B}_S$ be the obtained main model statistics after pre-training. The approach is detailed in Alg. 1. $T$ is the length of each video sequence for online
+
+Algorithm 1 Learning to learn online adapter
+Require: Initial weight $\theta$ for adapters, training set $\mathcal{V}_S$ , hyper-parameter $T$ , $N$ , $K$ , $\alpha$ , $\beta$ .
+1: while not done do
+2: Sample $\{\mathcal{V}_k\}_{k=1}^K$ from $\mathcal{V}_S$
+3: Initialize evaluation score $L = 0$
+4: for all $\mathcal{V}_k$ do
+5: $\theta_0 = \theta$ , $\mathcal{B}_0 = \mathcal{B}_S$
+6: for $t \gets 1, 2, \dots, T$ do
+7: $\mathcal{B}_t \gets \mathcal{B}_{t-1}$ by Eqn. 3
+8: $\theta_t \gets \theta_{t-1} - \alpha \nabla_{\theta_{t-1}} \mathcal{L}_u(\theta_{t-1}, \mathcal{B}_t; I_{t-1}, I_t)$
+9: end for
+10: Uniform sampling $n \in [1, N]$
+11: $\mathcal{B}_{T+n} \gets \mathcal{B}_T, I_{T+n-1}, I_{T+n}$ by Eqn. 3
+12: $L = L + \mathcal{L}_{s+u}(\theta_T, \mathcal{B}_{T+n}; I_{T+n-1}, I_{T+n})$
+13: end for
+14: $\theta = \theta_0 - \beta \nabla_{\theta_0} L$
+15: end while
+
+learning, and $N$ is the number of following frames. $K$ is the number of selected video sequences $\nu_{k}$ , and $\alpha, \beta$ are learning rate for online adaptation and meta-gradient descent step, respectively. In one single loop, we start initial
+
+adapter weight and model statistics as $\theta_0 = \theta, \mathcal{B}_0 = \mathcal{B}_S$ in line 5. Then in Line 6 to 9 we adapt the model on a selected sequence and finally get $\theta_T$ and $\mathcal{B}_T$ . In line 10 to 12, we randomly select following frames $I_{T + n - 1}, I_{T + n}$ to simulate possible future changes, and perform evaluation on them to obtain score $L$ . Finally after learning and evaluating on all $\{\mathcal{V}_k\}_{k=1}^K$ we conduct a gradient descent step w.r.t. $\theta_0$ to find a good initial weight for online adaptation. Our method is different from the approach in [49] from two aspects: i) it meta-learns and updates adapters rather than the whole model, which preserves and adjusts (rather than totally changes) reliable basic knowledge against drastic changes; ii) it performs evaluation and meta-gradient descent after adapting on video sequences rather than single frame, aiming to achieve good long-range adaptation for future frames.
+
+# 4.4. Online Adaptation on Target Videos
+
+After meta-training the adapters through Alg. 1, we can perform online adaptation on the target videos. However, although updating the adapters with fixed original knowledge prevents forgetting to some extent, the model may still get influenced from various environmental changes on real-world scenes and tends to overfit on the current frame. To further guarantee a stable adaptation process, we propose a Temporal-consistent Regularization (denote by $\mathcal{L}_r$ ). At the time step $t$ of online adaptation, besides the current frame we also make the model predict depth map $\dot{D}_{t - \Delta t}$ from a randomly selected previous frame $I_{t - \Delta t}$ . Then, we force the prediction $\dot{D}_{t - \Delta t}$ to be similar to the previous prediction $D_{t - \Delta t}$ at time step $t - \Delta t$ , which can be achieved by computing
+
+$$
+\mathcal {L} _ {r} = \left\| \dot {D} _ {t - \Delta t} - D _ {t - \Delta t} \right\| _ {1}. \tag {7}
+$$
+
+Here we just let $1 < \Delta t \leq 5$ , thus only small memory is needed to store the previous frames and predictions. In this way, the model is constrained to preserve its ability learned from previous frames. Even if drastic environmental variation happens at time $t$ , $\mathcal{L}_r$ can harmonize the gradient and penalize model's overfitting to current time step. Finally, the total unsupervised loss for adaptation on the target videos can be written as:
+
+$$
+\mathcal {L} _ {\text {t a r g e t}} = \mathcal {L} _ {u} + \delta \mathcal {L} _ {r}, \tag {8}
+$$
+
+where $\delta$ is a weight to balance the regularization. Importantly, we also employ $\mathcal{L}_r$ in our meta learning algorithm (second step of Fig. 2) in order to simulate the learning process on the target that will use this loss.
+
+# 5. Experiment
+
+# 5.1. Datasets
+
+Virtual-KITTI: Virtual Kitti [14] (vKitti) is a synthetic dataset for urban driving environment. It contains 6 differ
+
+Table 1. Analysis on Each Component of LPF for Fast Adaptation
+
+| Method | Training | Lower is better | Higher is better |
| Abs Rel | Sq Rel | RMSE | \( RMSE_{log} \) | < 1.25 | < 1.252 | < 1.253 |
| Basic (no adaptation) | standard | 0.3641 | 6.2917 | 9.9467 | 0.4124 | 0.5070 | 0.7703 | 0.8867 |
| Basic + Naive | standard | 0.2242 | 2.1311 | 7.1179 | 0.2991 | 0.6558 | 0.8709 | 0.9486 |
| Basic + SA | Standard | 0.2150 | 1.9834 | 6.9069 | 0.2883 | 0.6628 | 0.8783 | 0.9539 |
| Basic + SA + WA | Standard | 0.2143 | 1.9576 | 6.9055 | 0.2885 | 0.6625 | 0.8790 | 0.9543 |
| Basic + SA + WA + \( \mathcal{L}_r \) | Standard | 0.2105 | 1.8732 | 6.7656 | 0.2820 | 0.6758 | 0.8802 | 0.9553 |
| Basic + SA | \( \mathcal{L}_{meta} \) | 0.2087 | 1.9003 | 6.8342 | 0.2833 | 0.6695 | 0.8901 | 0.9560 |
| Basic + SA + WA | \( \mathcal{L}_{meta} \) | 0.2045 | 1.7549 | 6.7022 | 0.2791 | 0.6783 | 0.8957 | 0.9591 |
| Basic + SA + WA + \( \mathcal{L}_r \) | \( \mathcal{L}_{meta} \) | 0.2033 | 1.6076 | 6.5613 | 0.2778 | 0.6935 | 0.8965 | 0.9621 |
+
+ent scenes in monocular videos with ground truth depth and different weather conditions. We treat it as source domain and use the videos in all conditions (except for foggy and raining) from all 6 scenes for pre-training our model. The total training set contains $85\mathrm{k}$ images.
+
+Cityscapes: Cityscapes [6] is a urban dataset for autonomous driving and scene understanding. We use the sequential data from 41 different monocular videos for pretraining our model. Although it is in real-world scenes, the environment is still very different from our target domain and we treat it as source domain to validate our method.
+
+KITTI: KITTI [16] is a widely-used real-world dataset for autonomous driving. Following the setting in [63, 1], we use Eigen's test split [10] as target domain for evaluation. Note that, as our method is for online depth learning, we perform online evaluation and adaptation using all the frames in all target videos.
+
+# 5.2. Implementation Details
+
+The proposed method is implemented using PyTorch Library [39]. We validate the method using the framework proposed in SfM-Learner [63] and SC-SfM-Learner [1], which are widely-used or most recent mono-depth estimation approach. Following these two frameworks, we use DispNet and PoseNet for predicting depth and relative pose, respectively. For SfM-Learner, we use a pytorch implementation with input size of $128 \times 416$ ; for SC-SfM-Learner we just use the authors' released code with input size of $256 \times 832$ . We add BN layer after each conv-layer in the encoder as needed by our model statistics adapter. This almost gives no changes to reproduce the results of original papers. We use the combination $\mathcal{L}_{u + s}$ of the supervised and unsupervised losses to train the basic model on source domain for 100 epochs, and use $\mathcal{L}_u$ to train for another 100 epochs to guarantee the learning of PoseNet. For training adapters, we select $T = 5$ , $N = 5$ , $K = 8$ and learning rate $\alpha = 1e - 4$ , $\beta = 1e - 5$ in Alg. 1. We give $a_{t}$ in Eqn. 3 a upper bound of 0.05 during training to avoid too largely changing, and the adapters are trained for 20 epochs. For online adaptation on the target, we use the same learning rate as $\alpha$ to update adapters and regressors. $\delta$ in Eqn. 7 is set to 0.2. Adam optimizer [25] is used during pre-training and online adaptation.
+
+Table 2. Analysis on Different Weight Adapters
+
+| Method | Abs Rel | RMSE | < 1.25 | < 1.252 |
| Basic + Naive | 0.2242 | 7.1179 | 0.6558 | 0.8709 |
| LPF (WA-series) | 0.2054 | 6.5423 | 0.6976 | 0.8960 |
| LPF (WA-parallel) | 0.2033 | 6.5613 | 0.6935 | 0.8965 |
| LPF (WA-attention) | 0.2072 | 6.6107 | 0.6920 | 0.8933 |
+
+# 5.3. Evaluation Protocol
+
+We use an evaluation protocol suited for online condition in which frames are sequentially fed into the network. At each time step, we first measure the performance of our model on the current input frame, and then adapt this frame by a step of back-propagation and weight update. We concatenate all of the videos in Eigen's testing split with a random order and start adaptation from the 1st frame. Such randomly concatenation can further simulate environment changes to some extent. We calculate average scores on all the frames as final results, and we also show the scores on last $20\%$ frames of a video to analyse performance when the model has adapted on a series of frames. These scores can tell how fast and stable the model adap to each video. We employ metrics used in [63, 1] to perform evaluation.
+
+# 5.4. Fast Online Adaptation
+
+In this section we analyse if the components and mechanisms in our method can help for fast online adaptation. Without specially noting, the models are built based on SfM-Learner [63] and pre-trained on vKitti dataset. More additional experiments can be seen in supplementary material.
+
+Analysis on Method Component: For sake of notation, we use Basic to define the basic model without our approach, and WA and SA to define the proposed weight adapter and statistic adapter. We also use $\mathcal{L}_r$ to denote the proposed Temporal-Consistent Regularization in Eqn. 7. In Naive method, we employ the main model without adapters, and update all the parameters in learning steps. Concerning pretraining, Standard refers to the classical pretraining without the meta-learning formulation of Alg. 1. The results are illustrated in table 1. Here for sake of clarity, we just show results with parallel weight adapter (Eqn. 6). We observe that the model without online adaptation cannot provide satisfactory results, and naive online learning shows
+
+Table 3. Comparison of different frameworks and source datasets.
+
+| SfM-Learner [63] |
| Method | data | Abs Rel | RMSE | < 1.25 | < 1.252 |
| Naive | vKitti | 0.2242 | 7.1179 | 0.6558 | 0.8709 |
| Cityscapes | 0.2016 | 6.7935 | 0.7166 | 0.8982 |
| LPF | vKitti | 0.2033 | 6.5613 | 0.6935 | 0.8965 |
| Cityscapes | 0.1751 | 6.0677 | 0.7499 | 0.9186 |
| SC-SfM-Learner [1] |
| Naive | vKitti | 0.1782 | 5.9408 | 0.7473 | 0.9021 |
| Cityscapes | 0.1675 | 5.8185 | 0.7754 | 0.9163 |
| LPF | vKitti | 0.1528 | 5.5081 | 0.7762 | 0.9234 |
| Cityscapes | 0.1383 | 5.3478 | 0.8194 | 0.9307 |
+
+Table 4. Long-range Adaptation: ${\mathrm{K}}_{train} \rightarrow \mathrm{v}\mathrm{{Kitti}} \rightarrow {\mathrm{K}}_{\text{test }}$
+
+| SfM-Learner [63] |
| Method | Abs Rel | RMSE | < 1.25 | < 1.252 |
| Naive | 0.2070 | 6.5248 | 0.7041 | 0.8806 |
| Regressor | 0.2002 | 6.4325 | 0.7156 | 0.8879 |
| L2A [49] | 0.1937 | 6.3804 | 0.7221 | 0.8980 |
| LPF | 0.1794 | 6.1090 | 0.7307 | 0.9126 |
| SC-Sfm-Learner [1] |
| Method | Abs Rel | RMSE | < 1.25 | < 1.252 |
| Naive | 0.1735 | 5.6528 | 0.7743 | 0.9140 |
| Regressor only | 0.1702 | 5.5883 | 0.7769 | 0.9153 |
| L2A [49] | 0.1692 | 5.5500 | 0.7881 | 0.9197 |
| LPF | 0.1505 | 5.4452 | 0.7990 | 0.9325 |
+
+only limited improvements. In the case of standard pretraining, although our SA and $\mathcal{L}_r$ benefit the adaptation procedure, the WA brings very limited improvement. A possible explanation is that standard offline training does not provide online adaptation ability to the model. In contrast, with our proposed meta learning method $\mathcal{L}_{meta}$ for pre-training, SA shows higher improvements and our WA is also able to show better performance, which reveals that our meta-learning method makes WA efficiently work. Our full method achieves best performance compared with other baselines in the table. These results demonstrate that our proposed LPF method obviously leads to a faster online adaptation on target videos.
+
+Besides, we also show the effectiveness of different WA in table 2. In each experiment we just change the weight adapter in our full method. WA-series and WA-attention mean adapters defined in Eqn. 5 but with different $\varphi$ as described in Fig. 3(a) and (b). WA-parallel means adapter defined in Eqn. 6 and shown in Fig. 3(c). We observe that all of the three adapters show consistent improvement in the metrics. These results reveal that our LPF method can be implemented with different kinds of adapters and consistently improve performance.
+
+Comparison with Different Frameworks and Dataset: We evaluate the effectiveness of our method on different unsupervised frameworks and datasets. In each experiment we use parallel adapter. The results are shown in table 3. We first observe that both framework are benefitted by our LPF method, which reveals that LPF can be successfully implemented into different frameworks. Then we observe that the improvement brought by LPF is consistent across different datasets, which further demonstrates the generalization of our method.
+
+
+Figure 4. Illustration of online learning process of different model on a same Kitti video. According to the video picture and choppy performance of ideal offline model, there exists environmental changing near $t = 200$ . Naive method cannot deal with it and brings slower convergence, while our LPF method obtains stable and robust adaptation process.
+
+# 5.5. Long-range Adaptation across Domains
+
+In this section, we analyse how LPF perform in the case of very long-range online adaptation. To simulate a long online learning scenario, we first pre-train the model on Kitti Eigen's training split $(\mathrm{K}_{train})$ . Then, we perform online adaptation on Virtual Kitti (vKitti) dataset using all of the videos that we described in Section 5.1. Finally, after adaptation on Virtual Kitti, we perform online learning on Kitti Eigen's testing split $(\mathrm{K}_{test})$ and calculate the evaluation scores based on Section 5.3. This experiment is able to show whether our LPF method prevents forgetting in such a long-range cross-domain adaptation procedure. Indeed, adapting on vKitti may make the model lose the reliable knowledge learned on $\mathrm{K}_{train}$ and harm the performance on $\mathrm{K}_{test}$ . Results are reported in table 4. In this comparison, we include the L2A method [49] which can also be implemented in our model. Importantly, this method is not design to prevent catastrophic forgetting. Besides, we also consider a model where only the decoder is updated (Regressor). We observe that only updating the regression layer obtains scores that are slightly better than updating the whole network. This reveals that freezing the encoder is even better to address the catastrophic forgetting issue. L2A also provides improvement thanks to its meta-learning formulation that makes the method adapt fast. Nevertheless, our LPF method obtains the best performances in the two frameworks. It shows that the knowledge learned on $\mathrm{K}_{train}$ is still preserved after adapting on vKitti. It confirms that properly adjust the main knowledge rather than updating it mitigate forgetting.
+
+# 5.6. Comparison with Ideal and SOTA Method
+
+In this section we compare our method with ideal and state-of-the-art approaches. The experiment settings are the same as Section 5.4 to analyse fast online adaptation performance on target videos. The results are illustrated in table 5, where the methods are all implemented in the two considered frameworks. To show the upper bound of performance, we also illustrate scores of ideal condition where the
+
+Table 5. Comparisons with Ideal and State-of-the-art Method. Evaluation scores are computed on all the frames of Eigen's testing videos.
+
+ | Online Evaluation Scores | Evaluation Scores on Last 20% frames |
| Method | Training Set | Abs Rel ↓ | RMSE ↓ | <1.25 ↑ | <1.252 ↑ | Abs Rel ↓ | RMSE ↓ | <1.25 ↑ | <1.252 ↑ |
| SfM-Learner [63] |
| Ideal (no adapt.) | Kitti | 0.2024 | 6.5597 | 0.7180 | 0.8935 | 0.2091 | 6.5403 | 0.7111 | 0.8879 |
| Ideal + Naive | Kitti | 0.2032 | 6.5080 | 0.7220 | 0.8989 | 0.2113 | 6.4522 | 0.7075 | 0.8962 |
| Naive | vKitti | 0.2242 | 7.1179 | 0.6558 | 0.8709 | 0.2195 | 6.9022 | 0.6683 | 0.8798 |
| L2A [49] | vKitti | 0.2171 | 6.8024 | 0.6759 | 0.8762 | 0.2103 | 6.7256 | 0.6783 | 0.8791 |
| LPF (Ours) | vKitti | 0.2033 | 6.5613 | 0.6835 | 0.8965 | 0.1962 | 6.3887 | 0.7147 | 0.8996 |
| SC-SfM-Learner [1] |
| Ideal (no adapt.) | Kitti | 0.1537 | 5.6295 | 0.8086 | 0.9338 | 0.1535 | 5.6412 | 0.8027 | 0.9335 |
| Ideal + Naive | Kitti | 0.1468 | 5.2768 | 0.8203 | 0.9431 | 0.1399 | 5.1413 | 0.8320 | 0.9479 |
| Naive | vKitti | 0.1782 | 5.9408 | 0.7473 | 0.9021 | 0.1662 | 5.7583 | 0.7596 | 0.9198 |
| L2A [49] | vKitti | 0.1708 | 5.8764 | 0.7548 | 0.9157 | 0.1615 | 5.6831 | 0.7728 | 0.9213 |
| LPF (Ours) | vKitti | 0.1628 | 5.6581 | 0.7762 | 0.9234 | 0.1495 | 5.4327 | 0.7936 | 0.9301 |
+
+
+(a) Image
+
+
+(b) GT
+Figure 5. Illustration of visual results. The ideal model is pre-trained on Kitti, while the models of (d) and (e) are pre-trained on vKitti and online adapted to Kitti videos. Results of our method are superior than naive baseline, and even competitive with those of ideal method.
+
+
+(c) Ideal
+
+
+(d) Basic + Naive
+
+
+(e) Ours
+
+model is offline pre-trained on Kitti Eigen's training split. For methods implemented on Sfm-Learner, we first observe the performance gain brought by naive online learning is very limited even in ideal condition, and L2A [49] is able to improve the online evaluation scores. Then compared with L2A, our method further improves the performance and obtains best results. These analyses reveal that our LPF method outperforms L2A and naive method. Compared with upper bound i.e., the ideal scenario of the models, our method obtains competitive scores, or even better performance especially on the last $\%$ 20 frames. These results further demonstrate that our LPF method leads to a stable and fast online adaptation process even if the model never sees data in target domain before. For the models implemented on SC-Sfm-Learner, we observe that our LPF method still obtains best results among online learning models in all metrics. Compared with ideal models, our method is slightly weaker but closest to the upper bound than other online approaches. It is worthy noting that the performance gain on SC-Sfm-Learner is comparatively smaller than that on Sfm-Learner. One possible explanation is that SC-Sfm-Learner is able to capture more geometric constraints between two adjacent frames and provide more reliable visual cues, which makes the model depend less on appearance information and robust to environmental changes. Even though, our LPF method still shows its power for online depth learning.
+
+To further analyse our method, we illustrate online learning process of different models in Fig. 4. All models are
+
+built on Sfm-Leaner. We observe that at beginning all models perform similarly. However, when environment changes largely around $t = 200$ , two models of naive method show unstable behavior which leads to worse performance. In contrast, our LPF method properly deals with such environmental changing and shows a more robust and faster learning procedure. Finally, we show qualitative results in Fig. 5. We observe our LPF method predicts more accurate depth maps than naive model, and shows close performance to ideal approach and ground truth. These qualitative results are inline with the quantitative results.
+
+# 6. Conclusion
+
+In this paper we propose a novel Learning to Prevent Forgetting (LPF) framework for unsupervised online adaptation in monocular videos. Two adapters are designed for adjusting model statistics and weights against forgetting issue. A novel meta-learning based algorithm is developed to learn adapters for better online learning procedure. Extensive experiments demonstrate that LPF contributes to fast and stable long-range online adaptation, and obtains competitive or better performance than ideal models.
+
+# 7. Acknowledgement
+
+This work was supported by the National Science Fund of China under Grant Nos. U1713208, 61806094 and "111" Program B13022.
+
+# References
+
+[1] Jia-Wang Bian, Zhichao Li, Naiyan Wang, Huangying Zhan, Chunhua Shen, Ming-Ming Cheng, and Ian Reid. Unsupervised scale-consistent depth and ego-motion learning from monocular video. NeurIPS, 2019.
+[2] Fabio Maria Cariucci, Lorenzo Porzi, Barbara Caputo, Elisa Ricci, and Samuel Rota Bulò. Autodial: Automatic domain alignment layers. In ICCV, pages 5077-5085, 2017.
+[3] Vincent Casser, Soeren Pirk, Reza Mahjourian, and Anelia Angelova. Depth prediction without the sensors: Leveraging structure for unsupervised learning from monocular videos. In AAAI, volume 33, pages 8001-8008, 2019.
+[4] Arslan Chaudhry, Puneet K Dokania, Thalaiyasingam Ajanthan, and Philip HS Torr. Riemannian walk for incremental learning: Understanding forgetting and intransigence. In Proceedings of the European Conference on Computer Vision, pages 532-547, 2018.
+[5] Yuhua Chen, Cordelia Schmid, and Cristian Sminchisescu. Self-supervised learning with geometric constraints in monocular video: Connecting flow, depth, and camera. In Proceedings of the IEEE International Conference on Computer Vision, pages 7063-7072, 2019.
+[6] 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, pages 3213-3223, 2016.
+[7] Gabriela Csurka. Domain adaptation for visual applications: A comprehensive survey. arXiv preprint arXiv:1702.05374, 2017.
+[8] Tom van Dijk and Guido de Croon. How do neural networks see depth in single images? In ICCV, 2019.
+[9] David Eigen and Rob Fergus. Predicting depth, surface normals and semantic labels with a common multi-scale convolutional architecture. In ICCV, pages 2650-2658, 2015.
+[10] David Eigen, Christian Puhrsch, and Rob Fergus. Depth map prediction from a single image using a multi-scale deep network. In NeurIPS, pages 2366-2374, 2014.
+[11] Jose M. Facil, Benjamin Ummenhofer, Huizhong Zhou, Luis Montesano, Thomas Brox, and Javier Civera. Camconvs: Camera-aware multi-scale convolutions for single-view depth. In CVPR, June 2019.
+[12] Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In ICML, pages 1126–1135, 2017.
+[13] Huan Fu, Mingming Gong, Chaohui Wang, Kayhan Bat-manghelich, and Dacheng Tao. Deep ordinal regression network for monocular depth estimation. In CVPR, 2018.
+[14] Adrien Gaidon, Qiao Wang, Yohann Cabon, and Eleonora Vig. Virtual worlds as proxy for multi-object tracking analysis. In CVPR, pages 4340-4349, 2016.
+[15] Ravi Garg, Vijay Kumar BG, Gustavo Carneiro, and Ian Reid. Unsupervised cnn for single view depth estimation: Geometry to the rescue. In ECCV. Springer, 2016.
+[16] Andreas Geiger, Philip Lenz, and Raquel Urtasun. Are we ready for autonomous driving? the kitti vision benchmark suite. In CVPR, pages 3354-3361, 2012.
+
+[17] Clément Godard, Oisin Mac Aodha, and Gabriel J Brostow. Unsupervised monocular depth estimation with left-right consistency. In CVPR, volume 2, page 7, 2017.
+[18] Clément Godard, Oisin Mac Aodha, Michael Firman, and Gabriel Brostow. Digging into self-supervised monocular depth estimation. 2019.
+[19] Ariel Gordon, Hanhan Li, Rico Jonschkowski, and Anelia Angelova. Depth from videos in the wild: Unsupervised monocular depth learning from unknown cameras. arXiv preprint arXiv:1904.04998, 2019.
+[20] Yunhui Guo, Honghui Shi, Abhishek Kumar, Kristen Grauman, Tajana Rosing, and Rogerio Feris. Spottune: transfer learning through adaptive fine-tuning. In CVPR, pages 4805-4814, 2019.
+[21] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770-778, 2016.
+[22] Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In CVPR, pages 7132-7141, 2018.
+[23] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015.
+[24] Kevin Karsch, Ce Liu, and Sing Bing Kang. Depth transfer: Depth extraction from video using non-parametric sampling. IEEE transactions on pattern analysis and machine intelligence, 36(11):2144-2158, 2014.
+[25] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
+[26] 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.
+[27] Iro Laina, Christian Rupprecht, Vasileios Belagiannis, Federico Tombari, and Nassir Navab. Deeper depth prediction with fully convolutional residual networks. In 3DV, 2016.
+[28] Yanghao Li, Naiyan Wang, Jianping Shi, Jiaying Liu, and Xiaodi Hou. Revisiting batch normalization for practical domain adaptation. arXiv preprint arXiv:1603.04779, 2016.
+[29] Zhizhong Li and Derek Hoiem. Learning without forgetting. IEEE transactions on pattern analysis and machine intelligence, 40(12):2935-2947, 2017.
+[30] Beyang Liu, Stephen Gould, and Daphne Koller. Single image depth estimation from predicted semantic labels. In CVPR, pages 1253-1260. IEEE, 2010.
+[31] Fayao Liu, Chunhua Shen, Guosheng Lin, and Ian Reid. Learning depth from single monocular images using deep convolutional neural fields. TPAMI, 2016.
+[32] Mingsheng Long, Han Zhu, Jianmin Wang, and Michael I Jordan. Deep transfer learning with joint adaptation networks. In ICML, pages 2208-2217, 2017.
+[33] Reza Mahjourian, Martin Wicke, and Anelia Angelova. Unsupervised learning of depth and ego-motion from monocular video using 3d geometric constraints. In CVPR, pages 5667-5675, 2018.
+
+[34] Massimiliano Mancini, Hakan Karaoguz, Elisa Ricci, Patric Jensfelt, and Barbara Caputo. Kitting in the wild through online domain adaptation. In IEEE/RSJ International Conference on Intelligent Robots and Systems, pages 1103-1109, 2018.
+[35] Massimiliano Mancini, Lorenzo Porzi, Samuel Rota Bulò, Barbara Caputo, and Elisa Ricci. Boosting domain adaptation by discovering latent domains. In CVPR, pages 3771-3780, 2018.
+[36] Michael McCloskey and Neal J Cohen. Catastrophic interference in connectionist networks: The sequential learning problem. In Psychology of learning and motivation, volume 24, pages 109-165. 1989.
+[37] Oleksiy Ostapenko, Mihai Puscas, Tassilo Klein, Patrick Johannichen, and Moin Nabi. Learning to remember: A synaptic plasticity driven framework for continual learning. In CVPR, pages 11321-11329, 2019.
+[38] Eunbyung Park and Alexander C Berg. Meta-tracker: Fast and robust online adaptation for visual object trackers. In ECCV, pages 569-585, 2018.
+[39] Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. 2017.
+[40] Sylvestre-Alvise Rebuffi, Hakan Bilen, and Andrea Vedaldi. Learning multiple visual domains with residual adapters. In Advances in Neural Information Processing Systems, pages 506-516, 2017.
+[41] Sylvestre-Alvise Rebuffi, Hakan Bilen, and Andrea Vedaldi. Efficient parametrization of multi-domain deep neural networks. In CVPR, pages 8119-8127, 2018.
+[42] Sylvestre-Alvise Rebuffi, Alexander Kolesnikov, Georg Sperl, and Christoph H Lampert. icarl: Incremental classifier and representation learning. In CVPR, pages 2001–2010, 2017.
+[43] Swami Sankaranarayanan, Yogesh Balaji, Carlos D Castillo, and Rama Chellappa. Generate to adapt: Aligning domains using generative adversarial networks. In CVPR, pages 8503-8512, 2018.
+[44] Swami Sankaranarayanan, Yogesh Balaji, Arpit Jain, Ser Nam Lim, and Rama Chellappa. Learning from synthetic data: Addressing domain shift for semantic segmentation. In CVPR, pages 3752-3761, 2018.
+[45] Ashutosh Saxena, Min Sun, and Andrew Y Ng. Make3d: Learning 3d scene structure from a single still image. IEEE transactions on pattern analysis and machine intelligence, 31(5):824-840, 2008.
+[46] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
+[47] 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.
+[48] Alessio Tonioni, Matteo Poggi, Stefano Mattoccia, and Luigi Di Stefano. Unsupervised adaptation for deep stereo. In ICCV, pages 1605-1613, 2017.
+
+[49] Alessio Tonioni, Oscar Rahnama, Thomas Joy, Luigi Di Stefano, Thalaiyasingam Ajanthan, and Philip HS Torr. Learning to adapt for stereo. In CVPR, pages 9661-9670, 2019.
+[50] Alessio Tonioni, Fabio Tosi, Matteo Poggi, Stefano Mattoccia, and Luigi Di Stefano. Real-time self-adaptive deep stereo. In CVPR, 2019.
+[51] Oriol Vinyals, Charles Blundell, Timothy Lillicrap, Daan Wierstra, et al. Matching networks for one shot learning. In Advances in neural information processing systems, pages 3630-3638, 2016.
+[52] Guangrun Wang, Ping Luo, Xinjiang Wang, Liang Lin, et al. Kalman normalization: Normalizing internal representations across network layers. In Advances in Neural Information Processing Systems, pages 21-31, 2018.
+[53] 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, 2018.
+[54] Nan Yang, Rui Wang, Jorg Stuckler, and Daniel Cremers. Deep virtual stereo odometry: Leveraging deep depth prediction for monocular direct sparse odometry. In ECCV, pages 817-833, 2018.
+[55] Zhichao Yin and Jianping Shi. Geonet: Unsupervised learning of dense depth, optical flow and camera pose. In CVPR, pages 1983-1992, 2018.
+[56] 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, 2018.
+[57] Zhenyu Zhang, Zhen Cui, Chunyan Xu, Zequn Jie, Xiang Li, and Jian Yang. Joint task-recursive learning for rgb-d scene understanding. TPAMI, 2019.
+[58] 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, pages 4106-4115, 2019.
+[59] Zhenyu Zhang, Chunyan Xu, Jian Yang, Ying Tai, and Liang Chen. Deep hierarchical guidance and regularization learning for end-to-end depth estimation. Pattern Recognition, 83:430-442, 2018.
+[60] Shanshan Zhao, Huan Fu, Mingming Gong, and Dacheng Tao. Geometry-aware symmetric domain adaptation for monocular depth estimation. In CVPR, pages 9788-9798, 2019.
+[61] Chuanxia Zheng, Tat-Jen Cham, and Jianfei Cai. T2net: Synthetic-to-realistic translation for solving single-image depth estimation tasks. In ECCV, pages 767-783, 2018.
+[62] Yiran Zhong, Hongdong Li, and Yuchao Dai. Open-world stereo video matching with deep rnn. In ECCV, pages 101-116, 2018.
+[63] Tinghui Zhou, Matthew Brown, Noah Snavely, and David G Lowe. Unsupervised learning of depth and ego-motion from video. In CVPR, 2017.
\ No newline at end of file
diff --git a/onlinedepthlearningagainstforgettinginmonocularvideos/images.zip b/onlinedepthlearningagainstforgettinginmonocularvideos/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..2c6d4acf223fd168acba2740e34b3b6dd2200bcf
--- /dev/null
+++ b/onlinedepthlearningagainstforgettinginmonocularvideos/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:519c0837dfd05b295b42aaa7bc74434a0dad1bffcbfc1a14be29b0867b654d94
+size 416775
diff --git a/onlinedepthlearningagainstforgettinginmonocularvideos/layout.json b/onlinedepthlearningagainstforgettinginmonocularvideos/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..f2ad11069679bb4295ba8597fbdabe41d055354b
--- /dev/null
+++ b/onlinedepthlearningagainstforgettinginmonocularvideos/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a160ce8eabc0be44c50930854cf8dcf2d8cc16145168d1c8b08769defa292532
+size 475233
diff --git a/onpositiveunlabeledclassificationingan/d325fa60-8813-4622-8886-67ce8308c280_content_list.json b/onpositiveunlabeledclassificationingan/d325fa60-8813-4622-8886-67ce8308c280_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..9ed700ff1b775fa11efa74fd2484c104948aa6ba
--- /dev/null
+++ b/onpositiveunlabeledclassificationingan/d325fa60-8813-4622-8886-67ce8308c280_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6bd5c06caa3aa4822d07b99108eea8ec34f419bb602672d4cb4aaea63e8b545e
+size 73958
diff --git a/onpositiveunlabeledclassificationingan/d325fa60-8813-4622-8886-67ce8308c280_model.json b/onpositiveunlabeledclassificationingan/d325fa60-8813-4622-8886-67ce8308c280_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..11923b686bb11c78c64ab2b80c778bfefcc4e258
--- /dev/null
+++ b/onpositiveunlabeledclassificationingan/d325fa60-8813-4622-8886-67ce8308c280_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d38aa7fd3d5ec7cc8c69d6ff808f3106834047df478287049a195afd11d9b6e7
+size 87911
diff --git a/onpositiveunlabeledclassificationingan/d325fa60-8813-4622-8886-67ce8308c280_origin.pdf b/onpositiveunlabeledclassificationingan/d325fa60-8813-4622-8886-67ce8308c280_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..b68d8369afb37bf064ebc8ab11313aceabad7e39
--- /dev/null
+++ b/onpositiveunlabeledclassificationingan/d325fa60-8813-4622-8886-67ce8308c280_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:04965e91f003958e2a3c21fd84de2e772431a38bf2938d0d8516188dadd305a9
+size 616387
diff --git a/onpositiveunlabeledclassificationingan/full.md b/onpositiveunlabeledclassificationingan/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..8e8965726f4fabaad988cc5b22be0596fcf1c85f
--- /dev/null
+++ b/onpositiveunlabeledclassificationingan/full.md
@@ -0,0 +1,305 @@
+# On Positive-Unlabeled Classification in GAN
+
+Tianyu Guo $^{1,2}$ , Chang Xu $^{2}$ , Jiajun Huang $^{2}$ , Yunhe Wang $^{3}$ , Boxin Shi $^{4,5}$ , Chao Xu $^{1}$ , Dacheng Tao $^{2}$
+
+1 Key Lab of Machine Perception (MOE), Dept. of Machine Intelligence, Peking University.
+
+$^{2}$ UBTECH Sydney AI Centre, School of Computer Science, Faculty of Engineering, University of Sydney.
+
+3 Noah's Ark Lab, Huawei Technologies. 4 NELVT, Dept. of CS, Peking University. 5 Peng Cheng Laboratory.
+
+{tianyuguo, shiboxin}@pku.edu.cn,xuchao@cis.pku.edu.cn, yunhe.wang@huawei.com
+
+{c.xu, dacheng.tao}@sydney.edu.au, jhua7177@uni.sydney.edu.au
+
+# Abstract
+
+This paper defines a positive and unlabeled classification problem for standard GANs, which then leads to a novel technique to stabilize the training of the discriminator in GANs. Traditionally, real data are taken as positive while generated data are negative. This positive-negative classification criterion was kept fixed all through the learning process of the discriminator without considering the gradually improved quality of generated data, even if they could be more realistic than real data at times. In contrast, it is more reasonable to treat the generated data as unlabeled, which could be positive or negative according to their quality. The discriminator is thus a classifier for this positive and unlabeled classification problem, and we derive a new Positive-Unlabeled GAN (PUGAN). We theoretically discuss the global optimality the proposed model will achieve and the equivalent optimization goal. Empirically, we find that PUGAN can achieve comparable or even better performance than those sophisticated discriminator stabilization methods.
+
+# 1. Introduction
+
+Recently, deep generative models have received remarkable achievements in image generation tasks [14, 22, 25, 5]. As a representative generative model, GANs [5] approximated a target distribution via playing a min-max game. In the standard framework of GAN [5, 23], a generator takes noise vectors from a prior distribution (e.g. Gaussian distribution and normal distribution) as the input and tends to produce data that follows the distribution of the reference natural images, while the discriminator aims to distinguish the generated data from the real data. Various GAN methods have been developed in many interesting applications. For example, in the image-to-image translation task, generators in GANs map the input image to output image. Representative methods include Pix2pix [10] over paired training
+
+images and cycleGAN [30] in an unsupervised way.
+
+In vanilla GANs, the training progress usually lacks stability, and the quality of generated images is not always satisfactory (e.g. model collapse). For instance, DCGAN [23] carefully designed the neural architectures for the generator and the discriminator to alleviate these problems. Progressive GAN [12] generated high-resolution images by progressively deepening the network. BigGAN [3] produced high-quality images by improving training methods, e.g. enlarging batch size, and truncating the latent space. WGAN [1] and WGAN-GP [6] tried to fit and optimize the Wasserstein distance to stabilize the generation process. SNGAN [21] proved the necessity and benefits of introducing Lipschitz continuity to the discriminator.
+
+These aforementioned methods to stabilize GAN could be roughly divided into two categories: designing stable network structures and training strategies and developing new effective optimization goals. However, neither of them has stepped away from the positive-negative classification problem initially established in standard GAN. Although WGAN and WGAN-GP no longer take the discriminator as a classifier for real data and generated data, the aim of the is still to separate the real and generated data as far as possible. To the best of our knowledge, existing GAN models attempt to strictly distinguish between generated data and real data and ignore the fact that the quality of the generated samples is not the same. It is unfair to treat high-quality samples equally with low-quality samples, especially when high-quality samples are sufficiently realistic. Although there are many theoretical results proposed to justify the final equilibrium, such as vanilla GAN [5] proving the existing of the equilibrium and WGAN [1] replacing the JS divergence with the Wasserstein distance, these analysis mainly focus on the final achievement rather than the intermediate status in the training process.
+
+In this paper, we suggest that instead of an ordinary positive and negative classification (i.e. real v.s. fake) problem, GAN is actually in the face of a positive-unlabeled classi-
+
+fication problem. With adequate training, generated data could look real and may appear to be even more realistic than real data at times. It would then be illogical to make a stereotype of generated data as fake data. To catch up with the continuously improved quality of generated data, we thus take them as unlabeled data, which consist of low-quality data and high-quality data. These high-quality data are considered to be close to or even better than some real data. Within the framework of positive-unlabeled classification, the classification objective of standard GAN can be re-defined, and different variants can be easily obtained by considering different scoring functions (e.g. those in LSGAN [20] and HingeGAN [21]). In addition, we get rid of the class balance constraint (i.e. half of the sample are fake), and observe impressive performance improvement by increasing the share of generated data in the mini-batch. Our theoretical analysis suggests that the proposed new algorithm has a guaranteed final equilibrium. Experimental results on benchmark datasets demonstrate that we actually enjoy more stable training progress and thus achieve better generated samples.
+
+# 2. Proposed Approach
+
+In this section, we first review preliminary works about the standard Generative Adversarial Network (SGAN). Then we analyze the problem existing in GAN and define a new role for the discriminator $D$ . We also theoretically develop this idea into a new algorithm within the framework of SGAN, and then extended this algorithm to the general GAN, which shows the flexibility of our method.
+
+# 2.1. Preliminary
+
+GAN [5] was introduced by Goodfellow et al. (2014). It consists of two neural networks: discriminator network $D$ and generator network $G$ . The discriminator $D$ aims to distinguish the provided real data and the fake data generated by the generator $G$ . On the other hand, the generator $G$ aims to generate fake data that can fool the discriminator $D$ . Following this adversarial manner, we expect the $G$ can generate high-quality data in the end. Formally, the objective function of GAN can be written as
+
+$$
+\begin{array}{l} \min _ {G} \max _ {D} V (D, G) = \mathbb {E} _ {\boldsymbol {x} \sim p _ {d a t a} (\boldsymbol {x})} [ \log D (\boldsymbol {x}) ] \tag {1} \\ + \mathbb {E} _ {\boldsymbol {z} \sim p _ {\boldsymbol {z}} (\boldsymbol {z})} [ \log (1 - D (G (\boldsymbol {z}))) ], \\ \end{array}
+$$
+
+where $p_{data}$ indicates the distribution of real data, $z$ is the random noise sampled from a prior distribution $p_z$ (i.e. the Gaussian distribution), and $D(\boldsymbol{x})$ is the predicted probability of $\boldsymbol{x}$ to be real by the discriminator. Since the minimax objective function might lead to gradient vanishing for $G$ when $D$ can perfectly distinguish two data sets. More of GAN's variants (e.g. WGAN [1] and LSGAN [19]) transform this minimax game into a non-saturating game. In general, the
+
+objective functions of these GANs can be concluded as follows:
+
+$$
+\begin{array}{l} \min _ {G} \max _ {D} V (D, G) = \mathbb {E} _ {\boldsymbol {x} \sim p _ {d a t a} (\boldsymbol {x})} [ f _ {1} (D (\boldsymbol {x})) ] \tag {2} \\ - \mathbb {E} _ {\boldsymbol {z} \sim p _ {\boldsymbol {z}} (\boldsymbol {z})} [ f _ {2} (D (G (\boldsymbol {z}))) ], \\ \end{array}
+$$
+
+where $f_{1}$ is the loss of classifying input as real and $f_{2}$ is the loss of classifying input as fake.
+
+# 2.2. Problem Analysis
+
+As shown above, existing GAN variants are trained to separate the real and generated data strictly. However, this does not match the actual situation in training. Some of the generated samples can achieve higher quality and are more realistic than others. This phenomenon usually lasts until the end of the training. As a result, the quality of samples generated by $G$ is very different, and there are many high-quality samples and a considerable proportion of low-quality samples. For instance, there is a certain proportion of unsatisfactory samples in a well-trained generation space, and the gaps in the generated samples of different quality are relatively large. It is natural to model $p_{g}(x)$ as a mixture distribution [2, 18]. Therefore, the traditional method of strictly distinguishing the real sample from the generated sample does not conform to the actual situation of the training. In this paper, we propose an algorithm that is dedicated to picking out low-quality samples from the samples generated by $G$ and promoting them, unlike traditional discriminators $D$ that are dedicated to distinguishing real samples from generated samples. Our algorithm encourages the discriminator $D$ to divide the generation space of $G$ into high-quality samples and low-quality samples so that the generator $G$ could improve the low-quality samples.
+
+By doing so, the proposed method enjoys several desired properties: i) The discriminator pays more attention to poor quality samples, allowing the generator to focus on improving the quality of these bad samples. As a result, the quality of generated samples is more balanced, and the overall quality is expected to be enhanced, ii) The training strategy of our algorithm is more in line with the actual situation of samples generated by $G$ in the training process, so the training process is expected to be more stable, iii) More importantly, the proposed algorithm is a flexible method which means that our algorithm could be easily integrated into existing frameworks of variety GAN, and we will show this desirable feature in the following subsection, and iv) Although the proposed method changes the function of the $D$ network, we provide some theoretical results in Section 3 which demonstrate the proposed method also enjoys the same equilibrium condition with the other GAN and provide some guarantee for performance.
+
+# 2.3. Positive-Unlabeled classification (PU) in SGAN
+
+As mentioned above, we propose to allow the discriminator $D$ to treat the high-quality generated samples as real data and focus on the bad generated samples. The discriminator $D$ is required to learn how to distinguish high-quality samples with other low-quality samples. Identifying high-quality samples from generated samples under the guidance of real samples is very similar to Positive-Unlabeled classification problems [4, 15, 27], where only some positive samples were labeled, and the classifier tried to find positive samples from unlabeled samples consisting of positive and negative samples. According to the solution of the PU classification problem, we develop an algorithm learning a discriminator to recognize high-quality samples. Firstly, we denote the generated data as $\pmb{x}_g$ , consisted with high-quality samples $\pmb{x}_{gr}$ and the bad samples $\pmb{x}_{gf}$ . And we consider both $\pmb{x}_{gr}$ and real data $\pmb{x}_{data}$ to be real (i.e. $y_{gr} = y_{data} = 1$ ) while consider $\pmb{x}_{gf}$ to be fake (i.e. $y_{gf} = -1$ ). In addition, denote $p(x)$ as the marginal density of $\pmb{x}_g$ and $p_{gr}(\pmb{x}) = p(\pmb{x}|1)$ and $p_{gf}(\pmb{x}) = p(\pmb{x}| - 1)$ are the class conditional densities of $\pmb{x}_{gr}$ and $\pmb{x}_{gf}$ respectively. Then the $p_g$ which is the marginal density of $x_{g}$ , can be obtained with:
+
+$$
+p _ {g} (\boldsymbol {x}) = \pi p _ {g r} (\boldsymbol {x}) + (1 - \pi) p _ {g f} (\boldsymbol {x}), \tag {3}
+$$
+
+where $\pi$ is the unknown class prior (i.e., the proportion of $x_{gr}$ in $x_{g}$ ). Now we successfully separate the generated space $p_{g}$ into two parts. To classify $x_{gr}$ and $x_{gf}$ from $x_{g}$ with $D$ as a binary classifier learned the distribution of $x_{g}$ from $p$ , we need to minimize its expected miss-classification rate $R(D)$ . The loss function for minimizing $R(D)$ by a given $\pi$ could be:
+
+$$
+\begin{array}{r l} \min _ {D} R (D) & = \pi \mathbb {E} _ {x \sim p _ {g r} (\boldsymbol {x})} [ \ell (D (\boldsymbol {x}), 1) ] \\ & + (1 - \pi) \mathbb {E} _ {\boldsymbol {x} \sim p _ {g f} (\boldsymbol {x})} [ \ell (D (\boldsymbol {x}), - 1) ], \end{array} \tag {4}
+$$
+
+where $\ell(D(\pmb{x}), t)$ is the loss function measuring the loss of prediction $D(x)$ when the ground true label is $t$ . However, we have less idea about which is $\pmb{x}_{gr}$ . In our definition, the good samples are similar to the real data, which means that $p_{gr}$ can be replaced by $p_{data}$ . Thus, the $p_g(\pmb{x})$ can be calculated by:
+
+$$
+p _ {g} (\boldsymbol {x}) = \pi p _ {d a t a} (\boldsymbol {x}) + (1 - \pi) p _ {g f} (\boldsymbol {x}). \tag {5}
+$$
+
+Similarity, the bad generated samples $x_{gf}$ are also unknown, and we can only access the generated samples $\pmb{x}_g$ and the real data $\pmb{x}_{data}$ . $R(D)$ should be modified to avoid the term of $p_{gf}$ . From Eq. (5), the low-quality part $p_{gf}$ can be expressed as follows,
+
+$$
+(1 - \pi) p _ {g f} (\boldsymbol {x}) = p _ {g} (\boldsymbol {x}) - \pi p _ {\text {d a t a}} (\boldsymbol {x}). \tag {6}
+$$
+
+Then we can find out the follow equation:
+
+$$
+\begin{array}{r l} (1 - \pi) \mathbb {E} _ {p _ {g f}} [ \ell (D (\boldsymbol {x}), - 1) ] & = \mathbb {E} _ {p _ {g}} [ \ell (D (\boldsymbol {x}), - 1) ] \\ & - \pi \mathbb {E} _ {p _ {d a t a}} [ \ell (D (\boldsymbol {x}), - 1) ]. \end{array} \tag {7}
+$$
+
+# Algorithm 1 Implmeneting PU learning in GAN
+
+Input: The number of $D$ iterations pre $G$ iteration $n_d$ ( $n_d = 1$ in normal), the batch size $m$ , the class prior knowledge $\pi$ for the proportion of positive data in unlabeled data.
+
+Input: Initialize the parameters $\theta_{g}$ of the generator $G$ and the parameters $\theta_{d}$ of the discriminator $D$ .
+
+while $\theta_{g}$ has not converged do for $t = 1,\dots ,n_d$ do Randomly sample $\{\pmb {x}^i\}_{i = 1}^m\sim p_{data}(\pmb {x})$ Randomly sample $\{z^i\}_{i = 1}^m\sim p_z(z)$ Sample $\{z^{(i)}\}_{i = 1}^m\sim \mathbb{P}_z$ Calculate $\widehat{R}_p^+ \gets \frac{1}{m}\sum_{i = 1}^m [f_1(D(\pmb{x}^i))]$ Calculate $\widehat{R}_p^- \gets \frac{1}{m}\sum_{i = 1}^m [f_2(D(\pmb{x}^i))]$ Calculate $\widehat{R}_u^- \gets \frac{1}{m}\sum_{i = 1}^m [f_2(D(G(\pmb{z}^i)))]$ Update $\theta_d\gets \nabla_{\theta_d}\pi \widehat{R}_p^+ +max(0,\widehat{R}_u^- -\pi \widehat{R}_p^-)$ end for Randomly sample $\{z^i\}_{i = 1}^m\sim p_z(z)$ Update $\theta_g\gets -\nabla_{\theta_g}\frac{1}{m}\sum_{i = 1}^m [f_2(D(G(z^i)))]$ end while
+
+Output: A generator network $G$ .
+
+By combining Eqs. (4) and (7), the new objective function will be:
+
+$$
+\begin{array}{l} \min _ {D} R (D) = \pi \mathbb {E} _ {p _ {d a t a}} [ \ell (D (\boldsymbol {x}), 1) ] \tag {8} \\ + \mathbb {E} _ {p _ {g}} [ \ell (D (\boldsymbol {x}), - 1) ] - \pi \mathbb {E} _ {p _ {d a t a}} [ \ell (D (\boldsymbol {x}), - 1) ]. \\ \end{array}
+$$
+
+By minimizing Eq. (8), the discriminator $D$ can distinguish not only $\pmb{x}_{gr}$ but also $\pmb{x}_{data}$ from $\pmb{x}_{gf}$ , by only learning the distribution of $\pmb{x}_{data}$ based on $p_{data}$ and distribution of $\pmb{x}_{g}$ (the generated samples) from $p_{g}$ . We notice that the second and third terms of Eq. (8) are introduced from Eq. (6) and aim to calculate the loss over $p_{gf}$ . The original loss $(1 - \pi)\mathbb{E}_{p_{gf}}[\ell (D(\pmb {x}), - 1)]$ is expected to be not less than zero, but the replacement loss function $\mathbb{E}_{p_g}[\ell (D(\pmb {x}), - 1)] - \pi \mathbb{E}_{p_{data}}[\ell (D(\pmb {x}), - 1)]$ , may be negative. This abnormal value of loss may lead to over-fitting. It is important to avoid the it to be negative. Finally, the objective function of discriminator proposed in Eq. (8) will be:
+
+$$
+\begin{array}{l} \max _ {D} V (D) = \pi \mathbb {E} _ {p _ {d a t a}} [ \log (D (\boldsymbol {x})) ] \\ + \max \{0, \mathbb {E} _ {p _ {z}} [ \log (1 - D (G (z))) ] \tag {9} \\ - \pi \mathbb {E} _ {p _ {d a t a}} [ \log (1 - D (\boldsymbol {x})) ] \}. \\ \end{array}
+$$
+
+Here we obtain the proposed objective function of the discriminator. Considering there is also an adversarial game between the discriminator $D$ and the generator $G$ , the generator $G$ should still be trained to deceive the discriminator $D$ . As a result, we can easily lead to the objective function of $G$ as follows,
+
+$$
+\min _ {G} V (G) = \mathbb {E} _ {p _ {z}} [ \log (1 - D (G (\boldsymbol {z}))) ]. \tag {10}
+$$
+
+Following Eqs. (9) and (10), we reached our objective to deal with the generated data in different ways, rather than treating it all as negative samples.
+
+Hou et al. [8] aims to use GAN to improve the PU classification, where two generators were introduced to fit the positive and the unlabeled distributions, respectively. By contrast, we aim to stabilize the training of GANs by treating the generated samples as unlabeled samples consisting of both high-quality and low-quality samples and formulating GAN itself as a PU classification. The main idea and purpose of the two papers are definitely different. To our best knowledge, we are the first paper to treat the generated samples as unlabeled samples and focus on improving the low-quality sample to learn a better generator.
+
+# 2.4. PU classification for general GANs
+
+Above we conclude our objective function within the standard GAN framework. The proposed method can also be integrated into other general GAN frameworks flexibly. In this part, we combine the proposed method with other loss functions of discriminator in GAN.
+
+In general, the objective function Eq. (2) contains two loss functions $f_{1}$ and $f_{2}$ . Those concrete loss functions can be changed for a different variance of GANs, but all these loss functions are following the same concepts that $f_{1}(\pmb{x})$ and $f_{2}(\pmb{x})$ are trying to separate the real data from the generated data as far as possible. Similar to SGAN, we propose that the discriminator in GAN is better to focus on generated samples with low quality and recognize the high-quality samples from the generated samples. Following this concept, we implement the proposed method for the general framework of GAN with the following equation:
+
+$$
+\begin{array}{l} \max _ {G} \min _ {D} V (D, G) = \pi \mathbb {E} _ {p _ {d a t a}} [ f _ {1} (D (\boldsymbol {x})) ] \\ + \max \left\{0, \mathbb {E} _ {p _ {z}} \left[ f _ {2} (D (G (z))) \right] \right. \tag {11} \\ - \pi \mathbb {E} _ {p _ {d a t a}} [ f _ {2} (D (\boldsymbol {x})) ] \}. \\ \end{array}
+$$
+
+With the help of Eq. (11), we can now integrate the proposed method into various frameworks of GAN, such as WGAN-GP [24], LSGAN [19], and SpectualGAN [21]. This flexibility that combining with other models provides the proposed method a chance to get further improvement on existing excellent models. Loss functions corresponding to the specific model can be found in the supplementary material.
+
+Although we finally got a new loss function, in the next section, we theoretically prove that our proposed algorithm is also designed to minimize the distance between the generated distribution and the real distribution, which provides a theory for the effectiveness of our algorithm.
+
+# 3. Theoretical Analysis
+
+In the proposed method, the discriminator $D$ is encouraged to not only distinguish the real samples from the gener-
+
+ated samples but also allow a certain proportion of generated samples of high quality to be recognized as real data, which reduces the instability problem during the training progress. Following this principle, we have obtained a novel loss function Eq. (9) and Eq. (10) in the framework of the standard GAN. Although Eq. (9) and Eq. (10) are designed to achieve the above-mentioned desirable characteristics, it is unclear whether the final convergence of the proposed method satisfies the requirements of the generation task. In this section, we provide a formal technical analysis of the convergence of the proposed objective function and prove that the proposed algorithm will perfectly lead the generated distribution to the real one. See the supplementary material for proof.
+
+Now we consider the standard GAN based framework and analyze the optimal discriminator and generator. The discriminator $D$ is optimized by Eq. (9). Following the analysis proposed in GAN [5], the optimal distribution $D$ will balance between the true distribution $p_{data}$ and the learned distribution $p_{gf}$ .
+
+Theorem 1. For the generator $G$ fixed, the optimal discriminator $D$ is
+
+$$
+D ^ {*} (\boldsymbol {x}) = \frac {p _ {d a t a} (\boldsymbol {x})}{p _ {d a t a} (\boldsymbol {x}) + \frac {1 - \pi}{\pi} p _ {g f} (\boldsymbol {x})},
+$$
+
+where $p_g f(\pmb{x})$ is the distribution of low-quality generated samples of $G$ .
+
+With the optimal discriminator $D$ fixed, we can reformulate the objective function by replacing $D(\pmb{x})$ in Eq. (10) according to Theorem 1. By doing so, we can summarize the behavior of $G$ in the following theorem.
+
+Theorem 2. With the optimal discriminator $D$ fixed, the optimization of generator $G$ is equivalent to minimize $\pi \log \pi + (1 - \pi) \log (1 - \pi) + \pi KL(p_{data}||p_g) + (1 - \pi)KL(p_{gf}||p_g)$ .
+
+Theorem 2 suggests that the optimal generator $G$ will pay attention to reducing the divergence within the generated space by minimizing the distance between $p_g$ and $p_{gf}$ . Moreover, the generator will also guide the generated distribution $p_g$ as close as possible to the real distribution $p_{data}$ , which ensures the quality of the generated sample. Combining Theorem 1 and Theorem 2, we can summarize the following corollary.
+
+Corollary 1. The global minimum of the proposed objective function $V(G, D)$ is achieved if and only if $p_{gf} = p_g = p_{data}$ . At that point, $C(G)$ achieves the value of $\pi \log \pi + (1 - \pi) \log (1 - \pi)$ , and $D(\pmb{x})$ achieves the value of $\pi$ .
+
+The above theoretical results prove that the proposed method will achieve equilibrium if and only if $p_{g} = p_{data}$ , which points out that our method enjoys the same global equilibrium point as other GAN frameworks. These results justify our approach. The next experiment section further illustrates the effectiveness of our approach.
+
+
+(d) CelebA-64
+Figure 1: Generated samples obtained by the proposed method on image datasets.
+
+
+(e) CAT-64
+
+
+(a) LSUN-64
+
+Table 1: Performance comparison on several benchmark datasets.
+
+| Loss | SGAN | PUSGAN | HingeGAN | PUHingeGAN | LSGAN | PULSGAN | WGAN-GP | PUWGAN-GP |
| MNIST | 18.65 | 16.53 | 21.48 | 16.91 | 13.47 | 13.96 | 17.42 | 14.77 |
| Fashion | 25.72 | 24.33 | 28.39 | 25.31 | 32.05 | 26.72 | 26.50 | 23.12 |
| CIFAR-10 | 43.39 | 31.02 | 43.85 | 36.37 | 27.64 | 22.32 | 36.86 | 31.85 |
| CelebA-64 | 48.44 | 43.89 | 46.13 | 43.94 | 51.67 | 47.80 | 36.09 | 35.72 |
| CAT-64 | 46.13 | 16.90 | 29.52 | 25.72 | 57.22 | 26.79 | 21.86 | 17.35 |
+
+# 4. Experiment
+
+In this section, we evaluate the proposed method on a range of datasets including MNIST [17], FMNIST [26], CIFAR-10 [16], CAT [29], and LSUN-bedroom [28]. We resize images in the MNIST and FMNIST datasets to $32 \times 32$ for convenience. For these datasets with more than one kind of resolution, we mark them with the resolution, such as CAT-64. Experiments on CAT-128, CAT-256, CelebA-128, and LSUN-128 datasets are also conducted to evaluate the high-resolution generation ability of the proposed approach. Moreover, due to the limitation of computational resource, for LUSN-128 we randomly sample 100,000 images from the dataset as training set, instead of using all of them. The experiment is implemented in pytorch, and we use FID (Frechet Inception Distance) [7] as the quantitative indicator to evaluate the performance based the quality of the generated results (lower value of FID indicating higher generated quality). FID scores are calculated with 10,000 generated samples and 10,000 real images randomly sampled from the dataset in advance.
+
+As mentioned in Section 2, our approach enjoys a high degree of flexibility can be integrated into most kind of GAN frameworks. We chose some variants of GAN as basic frameworks, such as standard GAN (SGAN) [5], LSGAN [19], WGAN-GP [6], and HingeGAN [21], and then integrate our method into these frameworks for comparison. For a fair comparison, we follow the same settings and architectures of GANs when we integrate our method and make sure the loss functions are the only changed part. We also compare our method with Relativistic GAN [11], which is another flexible GAN framework, and we use the average version
+
+(RaGAN) in the experiment. All objective function of the proposed frameworks could be found in the supplementary material.
+
+All models used in experiments will be trained with Adam optimizer [13], and the random selecting seed is set to 1. In addition, the discriminator follows the CNN structure described by Miyato, et al. [21] while the generator will follow the structure of standard DCGAN [23] for all models generating images whose resolution less than 128 except WGAN-GP whose structure we leave in the supplementary material. We use the stable setting for DCGAN [23] as the basic setting for training, which the learning rate $lr$ is set to 0.0002, the $\beta_{1} = 0.5$ and $\beta_{2} = 0.999$ for Adam optimizer, and the number of training time for discriminator and generator will both equal to 1. In addition, batch normalization [9] is also implemented. Moreover, we set a general case for the hyper-parameter $\pi$ growth pattern called the basic pattern in this experiment. The basic pattern will be initialized $\pi$ with 0.1 and will increase smoothly at each iteration until it reaches 0.7. Detailed network structures used on other datasets could be found in the supplementary material.
+
+# 4.1. Quantitative Image Generation Results
+
+In this section, we evaluate the generation ability of the proposed method on multi-category image sets MNIST [17], FMNIST [26], and CIFAR-10 [16] and single-category image sets CAT [29] and LSUN-bedroom [28]. In this part, the resolution of images in the MNIST, FMNIST, and CIFAR-10 is 32 and is 64 in the rest datasets. We choose four representative adversarial models SGAN, HingeGAN, LSGAN, and WGAN-GP as basic frameworks and compare them with our
+
+Table 2: Stability experiment results (reported by FID) on the CAT dataset with three resolution.
+
+| Loss | Min 64×64 images (N=9304) | Min 128×128 images (N=6645) | Min 256×256 images (N=2011) |
| SGAN | 19.32 | 95.31 | 48.36 | 33.92 | - | - | - | - | - | - | - | - |
| RaSGAN | 19.11 | 42.20 | 32.39 | 7.53 | 23.18 | 38.74 | 26.12 | 5.66 | 33.67 | 133.94 | 60.42 | 23.66 |
| PUSGAN | 12.71 | 18.99 | 16.38 | 1.99 | 17.76 | 28.91 | 23.61 | 3.43 | 35.75 | 63.68 | 50.76 | 9.9 |
| LSGAN | 21.84 | 69.03 | 39.22 | 13.64 | 22.75 | 62.39 | 43.48 | 12.68 | - | - | - | - |
| RaLSGAN | 15.73 | 25.20 | 19.85 | 4.47 | 16.52 | 43.87 | 23.74 | 7.33 | 42.02 | 282.15 | 72.32 | 86.11 |
| PULSGAN | 12.86 | 26.79 | 21.28 | 4.36 | 18.27 | 38.52 | 26.24 | 6.06 | 33.23 | 269.27 | 73.68 | 89.04 |
| WGAN-GP | 17.73 | 31.62 | 24.61 | 5.19 | 21.91 | 43.06 | 34.48 | 8.24 | 58.31 | 262.24 | 109.21 | 64.38 |
| RaSGAN-GP | 16.83 | 24.32 | 20.59 | 2.84 | 18.78 | 44.53 | 31.63 | 10.04 | 39.42 | 115.07 | 69.65 | 24.19 |
| PUWGAN-GP | 13.60 | 20.67 | 17.13 | 1.73 | 17.32 | 36.17 | 27.32 | 5.52 | 35.29 | 93.48 | 59.01 | 17.71 |
+
+Table 3: Performance comparison based on FID on the CIFAR-10 dataset with different settings.
+
+| Loss | basic | lr = .001 | No BN | Tanh |
| SGAN | 43.39 | 74.75 | 47.83 | 57.42 |
| RaSGAN | 33.63 | 44.67 | 42.21 | 55.38 |
| PUSGAN | 31.02 | 40.93 | 37.85 | 54.70 |
| LSGAN | 27.64 | 56.36 | 40.81 | 68.40 |
| RaLSGAN | 23.48 | 35.75 | 37.28 | 55.92 |
| PULSGAN | 22.32 | 37.65 | 37.34 | 51.45 |
| HingeGAN | 43.85 | 41.66 | 39.57 | 58.43 |
| RaHingeGAN | 38.03 | 44.25 | 41.54 | 51.70 |
| PUHingeGAN | 36.37 | 35.60 | 38.09 | 50.84 |
+
+algorithms, which are denoted as PUSGAN, PUHingeGAN, PULSGAN, and PUWGAN-GP, respectively.
+
+Table 1 reports a comparison of the FID score obtained by the proposed method and basic models. Our models enjoy the ability to combine with most variants of GAN, which allows us to achieve the best performance on most data sets. Table 1 shows that most of our methods exceed their corresponding basic frameworks, which demonstrates the effectiveness and the flexibility of our approach. In Figure 1, we show a few images generated by the PUSGAN models. We observe that the proposed method generates high-quality images on various datasets, which is consistent with the quantitative results in Table 1.
+
+# 4.2. Evaluating Stability
+
+We evaluate the stability of the proposed method on three resolution of the CAT dataset, such as $64 \times 64$ , $128 \times 128$ , and $256 \times 256$ pixels. As there are only 6654 and 2011 samples in the CAT-128 dataset and CAT-256 dataset respectively, some variants of GAN are unable to converge on these datasets. We choose SGAN, LSGAN, and WGAN-GP as basic models. We compare the proposed method with both these basic models as well as the corresponding Relativistic GAN (RaGAN). For each model, We calculate the FID score of the current model every 10,000 iterations.
+
+The results will be presented with the minimum, maximum, mean, and standard deviation (SD) of these obtained FID values. Table 2 shows the FID results for different networks in different resolutions of data sets.
+
+For $64 \times 64$ resolution dataset, all models trained by the proposed method except PULSGAN, can achieve much lower FID in minimum, maximum and mean compared with its original version and even can further achieve lower FID values than their relativistic versions, which indicates that our algorithm can effectively improve the training stability and improve the quality of the generation.
+
+For higher resolution data sets, SGAN failed to converge in $128 \times 128$ and $256 \times 256$ resolution datasets while LSGAN will be stuck at the early stage in $256 \times 256$ resolution dataset [11]. The standard version of our model (PUSGAN) shows further stability with lower values of maximum, mean, and SD in all three resolution datasets. On the most challenging 256 resolution dataset, the proposed method achieves both the satisfactory quality and stability. In experiments, we found that although the PULSGAN can converge in the CAT-256 dataset, the convergence is much slower than other GANs. Nevertheless, PULSGAN still can achieve competitive results compared with other states of arts GANs such as WGAN-GP and RaGAN.
+
+Overall, our algorithm presents desirable stability for all three data sets, and it can achieve similar or even better results compare to relativistic versions. It is impressive that all these GANs trained by the proposed method have improved. As a result, we conclude that the above stability experiment demonstrates that the proposed method provides could provide stability for the training progress for a variety of GANs and thus improve the quality of generated images.
+
+# 4.3. Evaluating on Hard Training Setting
+
+As we have claimed, our approach focuses on improving low-quality samples and lead to more stable training progress. Thus our approach enjoys the ability to generalize to many training settings. To demonstrate this, we evaluate the proposed method on several hard training settings and compare it with the other GAN frameworks. In this
+
+
+(a) Generation samples on 128 resolution datasets.
+
+
+(b) Generation samples on the CAT-256 dataset.
+
+
+Figure 2: High-resolution generated samples.
+Figure 3: High-resolution interpolation results.
+
+part, we implement SGAN (RaSGAN, PUSGAN), LSGAN (RaLSGAN, PULSGAN), and HingeGAN (RaHingeGAN, PUHingeGAN) on the CIFAR-10 dataset. The experiment is conducted on one basic setting and three hard settings. The basic setting is same as above, and three hard settings are i) changing learning rate to 0.001 (lr=.001), ii) removing Batch normalization layers in $G$ and $D$ (No BN), and iii) replacing all activation functions with Tanh in $G$ and $D$ (Tanh).
+
+The results are showed in Table 3. In the stable setting, we can find that the PUSGAN has better performance than SGAN and its other variants. The PUHingeGAN has a huge improvement compared with the original HingeGAN with a gap of 14, and it also performs better than RaHingeGAN. On the other hand, the performance of PULSGAN is slightly worse than other LSGAN versions.
+
+When the learning rate is increased to 0.001, all three PU versions of GANs perform well, compared with the original one. While PUSGAN and PUHingeGAN can perform better than their relativistic versions. However, by changing optimization settings such as removing batch normalization or replace ReLU activation function with Tanh activation function (No BN and Tanh in columns respectively), the performances of PUGANs will be worse. It might indicate that the PUGANs rely on optimization terms for stable training.
+
+# 4.4. High-resolution Results
+
+Generating high-resolution images is a complicated task. To demonstrate the generation ability of our algorithm, we evaluate the proposed method on CAT-128, CelebA-128, and
+
+LSUN-128 datasets with $128 \times 128$ pixels and the CAT-256 dataset with $256 \times 256$ pixels. There are 202,599 images in the CelebA-128 dataset, and 3,033,042 in the LSUN-128 dataset (only 100,000 samples are used for training). As mentioned above, the CAT-128 and CAT-256 datasets are considered as more challenging high-resolution datasets because there are only 6,645 and 2,011 samples, respectively. Images shown in Figure 2 are generated by the proposed method within the architecture of SGAN (PUSGAN), while SGAN failed to generate such high-resolution images, especially on the CAT-256 dataset. Moreover, interpolation is also an impressive feature of the generative models, which indicates that the generative model successfully learns to fit the distribution of natural images instead of overfitting to the training samples. We show high-resolution interpolation results obtained by the proposed method in Figure 3. It shows that our model generates smooth interpolation images. Figures 2 and 3 demonstrate that the proposed method could provide improvement on the quality of generated samples.
+
+# 4.5. Evaluating the impact of class prior $\pi$
+
+In Eq. (3), we introduce a class prior $\pi$ into our algorithm. The $\pi$ indicates the proportion of high-quality fake data in fake data, and we treat it as a hyper-parameter. In this section, we further evaluate the impact of class prior $\pi$ with PUSGAN framework on the CAT-64 dataset. The structure and training settings are the same as the previous sections. We set four different increasing patterns for $\pi$ during training. The first pattern is the basic pattern we used in previous sections. The
+
+
+Figure 4: The trend of Fréchet Inception Distance (FID) of PUSGAN using different $\pi$ growth pattern.
+
+second version will set $\pi$ to be 0.3 at the beginning, and it will be increased with 0.1 at every 10k iterations until 0.7 is reached. The second version is used to evaluate the impact of the fast growth of $\pi$ . For the third and fourth patterns, $\pi$ will be fixed at 0.3 and 0.5 during the training process.
+
+In Figure 4, we found that the fast-growing pattern achieves the worst average performance, and its FID scores remain relatively high. As a comparison, the basic pattern can reach lower FID values than the fast pattern, and it is also relatively stable in the later training stage. The fixed $\pi$ value of 0.3 could present more stability and generate a competitive result, compared with the previous two patterns. In addition, the fourth version has the worst performance at the beginning, but it was keep going better and achieved the best performance in the end, within all four patterns. The shortage of this version mainly lies in the large fluctuations and slow convergence. It is interesting that all first three patterns have similar FID values at the early stage, while the performance with a higher $\pi$ is much worse at the same stage. This may be because the proportion of high-quality samples in the $G$ network at the beginning of training is far from 0.5, and setting $\pi$ to 0.5 is against the real situation, leading to an unstable training. On the other hand, the fourth one achieves a lower FID value in the end, while others have similar values at the same time. It might show a too large (e.g. 0.7), or a too small (e.g. 0.3) values of $\pi$ reduce the performances. As a result, the proposed method enjoys considerable tolerance for the selection of hyperparameters.
+
+# 4.6. Evaluating the impact of increasing number of fake data for training
+
+Normally, the size of real data is much smaller than the size of the generated data in the adversarial generative task. It is an interesting problem about how to make the most of this large amount of generated data. In general training progress of GAN, the batch size of real samples and generated samples are the same. Here, we try to increase the batch size of the generated data and maintain that of the actual data to take advantage of this large number of generated samples. We investigate the impact of increasing the batch size of the generated data for training. The evaluation is based on
+
+
+Figure 5: The trend of Fréchet Inception Distance (FID) of PUSGAN trained by different batch sizes of fake data.
+
+three versions of PUSGAN with different batch sizes of fake data. The first version is the basic version that the batch size of real and fake data are the same. The second and third versions will use twice and three times more fake data than real data, respectively. The structure and training settings are the same as the one we used in previous sections. We report these interesting results Figure 5.
+
+From results, we find that the second and third versions of PUSGAN can reach their best performance at the very beginning, which proves that PUSGAN can converge faster by increasing the batch size of fake data. Although it shows that an increase in the number of false samples can provide a small performance boost and faster convergence, it seems to be detrimental to stability. Considering the stability and for a fair comparison, we insist on using the same batch size for both the real and generated data in the above experiments.
+
+# 5. Conclusion
+
+In this paper, we present a positive-unlabeled generative adversarial network (PUGAN), where the discriminator is trained to recognize the high-quality samples from the generated data. The proposed method addresses problems in traditional methods that neglecting the gradual increase in sample quality and the imbalance of generated sample quality, which provides more stable training progress and higher generation quality. We further demonstrate that our approach has the flexibility to combine with most existing GAN frameworks without additional computational cost. Experiments conducted on real-world image datasets suggest that the proposed method successfully improve both the stability and the quality of generated samples. We also provide theoretical results to illustrate the justification of our approach.
+
+# Acknowledgment
+
+We thank anonymous area chairs and reviewers for their helpful comments. This research was supported in part by National Natural Science Foundation of China under Grant No. 61876007 and 61872012, Beijing Academy of Artificial Intelligence (BAAI), National Key R&D Program of China (2019YFF0302902), and Australian Research Council Grant DE-180101438.
+
+# References
+
+[1] Martin Arjovsky, Soumith Chintala, and Léon Bottou. Wasserstein generative adversarial networks. In Proc. of International Conference on Machine Learning, pages 214-223, 2017. 1, 2
+[2] Javad Behboodian. On the modes of a mixture of two normal distributions. Technometrics, 12(1):131-139, 1970. 2
+[3] Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale gan training for high fidelity natural image synthesis. arXiv preprint arXiv:1809.11096, 2018. 1
+[4] Martinus C Du Plessis, Gang Niu, and Masashi Sugiyama. Analysis of learning from positive and unlabeled data. In Advances in neural information processing systems, pages 703-711, 2014. 3
+[5] Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pages 2672–2680, 2014. 1, 2, 4, 5
+[6] 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. 1, 5
+[7] Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, Günter Klambauer, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a nash equilibrium. arXiv preprint arXiv:1706.08500, 2017. 5
+[8] Ming Hou, Brahim Chaib-Draa, Chao Li, and Qibin Zhao. Generative adversarial positive-unlabelled learning. arXiv preprint arXiv:1711.08054, 2017. 4
+[9] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015. 5
+[10] Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. arXiv preprint, 2017. 1
+[11] Alexia Jolicoeur-Martineau. The relativistic discriminator: a key element missing from standard GAN. In Proc. of International Conference on Learning Representations, 2019. 5, 6
+[12] Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of gans for improved quality, stability, and variation. arXiv preprint arXiv:1710.10196, 2017. 1
+[13] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.5
+[14] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. 1
+[15] Ryuichi Kiryo, Gang Niu, Martinus C du Plessis, and Masashi Sugiyama. Positive-unlabeled learning with nonnegative risk estimator. In Advances in neural information processing systems, 2017. 3
+[16] Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. 2009. 5
+[17] Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 1998. 5
+
+[18] Bruce G Lindsay. Mixture models: theory, geometry and applications. In NSF-CBMS regional conference series in probability and statistics, pages i-163. JSTOR, 1995. 2
+[19] Xudong Mao, Qing Li, Haoran Xie, Raymond YK Lau, Zhen Wang, and Stephen Paul Smolley. Least squares generative adversarial networks. In Proc. of International Conference on Computer Vision, 2017. 2, 4, 5
+[20] Xudong Mao, Qing Li, Haoran Xie, Raymond Y. K. Lau, and Zhen Wang. Multi-class generative adversarial networks with the L2 loss function. CoRR, abs/1611.04076, 2016. 2
+[21] Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks. arXiv preprint arXiv:1802.05957, 2018. 1, 2, 4, 5
+[22] Aaron van den Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel recurrent neural networks. arXiv preprint arXiv:1601.06759, 2016. 1
+[23] Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015. 1, 5
+[24] 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. 4
+[25] Aaron van den Oord, Nal Kalchbrenner, Lasse Espeholt, Oriol Vinyals, Alex Graves, et al. Conditional image generation with pixelCNN decoders. In Advances in neural information processing systems, 2016. 1
+[26] Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms, 2017. 5
+[27] Yixing Xu, Chang Xu, Chao Xu, and Dacheng Tao. Multi-positive and unlabeled learning. In *IJCAI*, 2017. 3
+[28] Fisher Yu, Yinda Zhang, Shuran Song, Ari Seff, and Jianxiong Xiao. Lsun: Construction of a large-scale image dataset using deep learning with humans in the loop. arXiv preprint arXiv:1506.03365, 2015. 5
+[29] Weiwei Zhang, Jian Sun, and Xiaou Tang. Cat head detection-how to effectively exploit shape and texture features. In Proc. of European Conference on Computer Vision, pages 802-816. Springer, 2008. 5
+[30] Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. arXiv preprint, 2017. 1
\ No newline at end of file
diff --git a/onpositiveunlabeledclassificationingan/images.zip b/onpositiveunlabeledclassificationingan/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..3a3d41ac5dce8ac60053ff17bcb2902d685d9014
--- /dev/null
+++ b/onpositiveunlabeledclassificationingan/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9fb59b3b72d1245c1c22399389f8296ffbdb18b930eec360203b7aa86893f255
+size 575585
diff --git a/onpositiveunlabeledclassificationingan/layout.json b/onpositiveunlabeledclassificationingan/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..5d25895261dc5971160da76b2941723926f632ad
--- /dev/null
+++ b/onpositiveunlabeledclassificationingan/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a07414c9991d3a97ac7ca591e9a76141e82c8b8aef8463186bbbd82cd9e705b8
+size 423166
diff --git a/ontheaccelerationofdeeplearningmodelparallelismwithstaleness/cc07c830-cef9-431b-93bc-79e103b422d9_content_list.json b/ontheaccelerationofdeeplearningmodelparallelismwithstaleness/cc07c830-cef9-431b-93bc-79e103b422d9_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..6c7d2548ae975ae77af63769f3b2e33634c14ed5
--- /dev/null
+++ b/ontheaccelerationofdeeplearningmodelparallelismwithstaleness/cc07c830-cef9-431b-93bc-79e103b422d9_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1f62b350405b089566f5127c5a83b5665a91d9dbe312166530a584e17d401ecd
+size 63611
diff --git a/ontheaccelerationofdeeplearningmodelparallelismwithstaleness/cc07c830-cef9-431b-93bc-79e103b422d9_model.json b/ontheaccelerationofdeeplearningmodelparallelismwithstaleness/cc07c830-cef9-431b-93bc-79e103b422d9_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..216dbf31c2c139ee0b0a9247b6bc0b7c046864e9
--- /dev/null
+++ b/ontheaccelerationofdeeplearningmodelparallelismwithstaleness/cc07c830-cef9-431b-93bc-79e103b422d9_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2caf625ae0862d64db2beabdb7a9d217f6818e06351f6722e506ecdf8102fb66
+size 77855
diff --git a/ontheaccelerationofdeeplearningmodelparallelismwithstaleness/cc07c830-cef9-431b-93bc-79e103b422d9_origin.pdf b/ontheaccelerationofdeeplearningmodelparallelismwithstaleness/cc07c830-cef9-431b-93bc-79e103b422d9_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..2de85baa9bfb9e86f581ab3361031cdbed1fe2d0
--- /dev/null
+++ b/ontheaccelerationofdeeplearningmodelparallelismwithstaleness/cc07c830-cef9-431b-93bc-79e103b422d9_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4dfd882cfaf44f9cfda7089dca4d45e10e41f2ebf3c45050cd559bd432d5c3cf
+size 554719
diff --git a/ontheaccelerationofdeeplearningmodelparallelismwithstaleness/full.md b/ontheaccelerationofdeeplearningmodelparallelismwithstaleness/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..5be9b7236add3d73e3528833cce79f099be5f724
--- /dev/null
+++ b/ontheaccelerationofdeeplearningmodelparallelismwithstaleness/full.md
@@ -0,0 +1,274 @@
+# On the Acceleration of Deep Learning Model Parallelism with Staleness
+
+An $\mathrm{Xu}^1$ , Zhouyuan $\mathrm{Huo}^1$ , and Heng Huang $^{*1,2}$
+
+1Electrical and Computer Engineering Department, University of Pittsburgh, PA, USA
+2JD Finance America Corporation, Mountain View, CA, USA {an.xu, zhouyuan.huo, heng.huang}@pitt.edu
+
+# Abstract
+
+Training the deep convolutional neural network for computer vision problems is slow and inefficient, especially when it is large and distributed across multiple devices. The inefficiency is caused by the backpropagation algorithm's forward locking, backward locking, and update locking problems. Existing solutions for acceleration either can only handle one locking problem or lead to severe accuracy loss or memory inefficiency. Moreover, none of them consider the straggler problem among devices. In this paper, we propose Layer-wise Staleness and a novel efficient training algorithm, Diversely Stale Parameters (DSP), to address these challenges. We also analyze the convergence of DSP with two popular gradient-based methods and prove that both of them are guaranteed to converge to critical points for non-convex problems. Finally, extensive experimental results on training deep learning models demonstrate that our proposed DSP algorithm can achieve significant training speedup with stronger robustness than compared methods.
+
+# 1. Introduction
+
+The deep convolutional neural network is an important method for solving computer vision problems such as classification, object detection, etc. However, as the neural networks get deeper and larger [8, 17, 10, 31, 34, 24], the required expensive training time has become the bottleneck. Data parallelism [33, 23, 3] and model parallelism [22, 20] are two standard parallelism techniques to utilize multiple devices for efficient training.
+
+The data parallelism for efficient distributed training has been well studied and implemented in existing libraries
+
+[1, 4, 12, 35, 14, 16], but the model parallelism is still underexplored. In this paper, we focus on the model parallelism, where the deep neural network (DNN) benefits from being split onto multiple devices. But the resource utilization of standard model parallelism can be very low. The backpropagation algorithm [29, 21] typically requires two phases to update the model in each training step: the forward pass and backward pass. But the sequential propagation of activation and error gradient leads to backward locking and forward locking [18] respectively because of the computation dependencies between layers. The update locking [18] exists as the backward pass will not start until the forward pass has completed. This sequential execution keeps a device inefficiently waiting for the activation input and error gradient.
+
+Several works have been proposed to address these locking issues (Figure 1). [18] uses Decoupled Neural Interfaces (DNI) to predict the error gradient via auxiliary networks, so that a layer uses the synthetic gradient and needs not to wait for the error gradient. [27] lets hidden layers receive error information directly from the output layer. However, these methods can not converge when dealing with very deep neural networks. [2] proposes layer-wise decoupled greedy learning (DGL), which introduces an auxiliary classifier for each block of layers so that a block updates its parameters according to its own classifier. But the objective function of DGL based on greedy local predictions can be very different from the original model. GPipe [11] proposes pipeline parallelism and divides each mini-batch into microbatches, which can be regarded as a combination of model parallelism and data parallelism. However, the forward and backward lockings of the micro-batch still exist, and the update locking is not addressed because GPipe waits for the whole forward and backward pass to finish before updating the parameters. [15] proposes Decoupled Parallel Backpropagation (DDG), which divides the DNN into blocks and removes the backward locking by storing delayed error gradient and intermediate activations at each block. But
+
+
+Figure 1. Sketches of different methods with three blocks. The forward and recomputation are overlapped in DSP.
+
+DDG suffers from large memory consumption due to storing all the intermediate results, and cannot converge when the DNN goes further deeper. Features Replay (FR) [13, 36] improves DDG via storing the history inputs and recomputing the intermediate results. Nevertheless, blocks in DDG and FR still need to wait for the backward error gradient. Besides, neither DDG nor FR addresses the forward locking problem.
+
+To overcome the aforementioned drawbacks, we first propose Layer-wise Staleness, a fine-grained staleness within the model to allow different parts to be trained independently. Incorporating staleness is useful for efficient asynchronous execution without synchronization barrier [9], which can be interpreted as another form of locking/dependency. The introduction of preset Layer-wise Staleness enables each part of the convolutional neural network (CNN) to run in a very flexible way with a certain degree of asynchrony. Based on the concept of Layer-wise Staleness, we propose a novel parallel CNN training algorithm named as Diversely Stale Parameters (DSP), where lower layers use more stale information to update parameters. DSP also utilizes the recomputation technique [5, 7] to reduce memory consumption, which is overlapped with the forward pass. Our contributions are summarized as follows:
+
+- We propose Layer-wise Staleness and Diversely Stale Parameters (§3) which breaks the forward, backward and update lockings without memory issues.
+- To ensure the theoretical guarantee, we provide convergence analysis (§4) for the proposed method. Even faced with parameters of different Layer-wise Staleness, we prove that DSP converges to critical points for non-convex problems with SGD and momentum SGD.
+- We evaluate our method via training deep convolutional neural networks (§5). Extensive empirical
+
+results show that DSP achieves significant training speedup and strong robustness against random stragglers.
+
+# 2. Background
+
+We divide a CNN into $K$ consecutive blocks so that the whole parameters $x = (x_0, x_1, \ldots, x_{K-1}) \in \mathbb{R}^d$ , where $x_k \in \mathbb{R}^{d_k}$ denotes the partial parameters at block $k \in \{0, 1, \ldots, K-1\}$ and $d = \sum_{k=0}^{K-1} d_k$ . Each block $k$ computes activation $h_{k+1} = f_k(h_k; x_k)$ , where $h_k$ denotes the input of block $k$ . In particular, $h_0$ is the input data. For simplicity, we define $F(h_0; x_0; x_1; \ldots; x_k) \coloneqq f_k(\ldots f_1(f_0(h_0; x_0); x_1) \ldots; x_k) = h_{k+1}$ . The loss is $\mathcal{L}(h_K, l)$ , where $l$ is the label. Minimizing the loss of a $K$ -block neural network can be represented by the following problem:
+
+$$
+\min _ {x \in \mathbb {R} ^ {d}} f (x) := \mathcal {L} \left(F \left(h _ {0}; x _ {0}; x _ {1}; \dots ; x _ {K - 1}\right), l\right). \tag {1}
+$$
+
+Backpropagation algorithm computes the gradient for block $k$ following chain rule via Eq. (2). The forward locking exists because the input of each block is dependent on the output from the lower block. The backward locking exists because each block cannot compute gradients until having received the error gradient $\mathcal{G}_h$ from the upper block. Besides, the backward process can not start until the whole forward process is completed, which is known as the update locking.
+
+$$
+\left\{ \begin{array}{l} \mathcal {G} _ {h _ {k}} = \frac {\partial f _ {k} \left(h _ {k} ; x _ {k}\right)}{\partial h _ {k}} \mathcal {G} _ {h _ {k + 1}}, \quad \mathcal {G} _ {h _ {K}} = \frac {\partial \mathcal {L} \left(h _ {K} , l\right)}{\partial h _ {K}} \\ \mathcal {G} _ {x _ {k}} = \frac {\partial f _ {k} \left(h _ {k} ; x _ {k}\right)}{\partial x _ {k}} \mathcal {G} _ {h _ {k + 1}}. \end{array} \right. \tag {2}
+$$
+
+After computing the gradients, stochastic gradient descent (SGD) [28] and its variants such as stochastic unified momentum (SUM) [37], RMSPROP [32] and ADAM [19] are widely used for updating the model. SGD updates
+
+
+Figure 2. DSP(1,1,0;4,2,0) with Layer-wise Staleness of $\{4,2,0\}$ (the index difference between the forward and backward batch). Worker $k \in \{0,1,2\}$ holds block $k$ .
+
+via $x^{n + 1} = x^n - \alpha \mathcal{G}(x^n; \xi)$ , where $x^n$ is the parameters when feeding the $n^{\text{th}}$ data (batch), $\alpha$ is the learning rate, and $\mathcal{G}(x^n; \xi)$ is the stochastic gradient. SUM updates the parameters via Eq. (3), where $\beta$ is the momentum constant and $y$ is the momentum term. When $s = 1$ , SUM reduces to stochastic Nesterov's accelerated gradient (SNAG) [26].
+
+$$
+\left\{ \begin{array}{l} y ^ {n + 1} = x ^ {n} - \alpha \mathcal {G} \left(x ^ {n}; \xi\right), y ^ {s, n + 1} = x ^ {n} - s \alpha \mathcal {G} \left(x ^ {n}; \xi\right) \\ x ^ {n + 1} = y ^ {n + 1} + \beta \left(y ^ {s, n + 1} - y ^ {s, n}\right). \end{array} \right. \tag {3}
+$$
+
+# 3. Diversely Stale Parameters
+
+In this section, we propose a novel training method named Diversely Stale Parameters (Figure 2). We first define layer-wise staleness and related notations in Section 3.1, then the motivation and formulation of DSP gradient in Section 3.2, finally the practical implementation using queues for pipelined batch input in Section 3.3.
+
+# 3.1. Layer-Wise Staleness
+
+Let the data be forwarded with parameters $x_0$ at times- tamp $t_0$ , $x_{1}$ at timestamp $t_1$ , ..., and $x_{K - 1}$ at timestamp $t_{K - 1}$ . For simplicity we denote the Forward Parameters as $\{x_k^{t_k}\}_{k = 0,\dots ,K - 1}$ . Similarly we denote the Backward Parameters as $\{x_k^{t_{2K - 1 - k}}\}_{k = 0,\dots ,K - 1}$ . Then we define Layer-wise Staleness as $\Delta t_{k} = t_{2K - k - 1} - t_{k}\geq 0$ . We preset each block's Layer-wise Staleness to a different value to break the synchronization barrier of backpropagation.
+
+We also denote the maximum Layer-wise Staleness as $\Delta t = \max_{k=0,1,\dots,K-1} \Delta t_k$ . It is worth noting that a) in standard backpropagation algorithm (Eq. (2)), Layer-wise Staleness $\Delta t_k = 0$ ; and b) Feeding data index is not identical to timestamp/training step.
+
+# 3.2. DSP Gradient
+
+We first set the constraints of DSP as $t_0 < t_1 < \ldots < t_{K-1} \leq t_K < t_{K+1} < \ldots < t_{2K-1}$ such that both the dependencies in the forward and backward pass no longer ex
+
+ist, because we do not need them to finish in the same times-tamp anymore. The non-decreasing property corresponds to the fact that the data needs to go through the bottom layers before the top layers, and the error gradient needs to go through the top layers before the bottom layers.
+
+Based on backpropagation algorithm and Eq. (2), we should compute the gradients according to the following formulas as we are updating the Backward Parameters $\{x_{k}^{t_{2K - 1 - k}}\}_{k = 0,\dots ,K - 1}$
+
+$$
+\mathcal {G} _ {x _ {k}} = \frac {\partial F \left(h _ {0} ; x _ {0} ^ {t _ {2 K} - 1} ; \dots ; x _ {k} ^ {t _ {2 K - 1 - k}}\right)}{\partial x _ {k} ^ {t _ {2 K - 1 - k}}} \mathcal {G} _ {h _ {k + 1}}
+$$
+
+$$
+\mathcal {G} _ {h _ {k}} = \frac {\partial F \left(h _ {0} ; x _ {0} ^ {t _ {2 K - 1}} ; \dots ; x _ {k} ^ {t _ {2 K - 1 - k}}\right)}{\partial F \left(h _ {0}; x _ {0} ^ {t _ {2 K - 1}}; \dots ; x _ {k - 1} ^ {t _ {2 K - 2 - k}}\right)} \mathcal {G} _ {h _ {k + 1}} \tag {4}
+$$
+
+$$
+\mathcal {G} _ {h _ {K}} = \frac {\partial \mathcal {L} (F (h _ {0} ; x _ {0} ^ {t _ {2 K - 1}} ; \ldots ; x _ {K - 1} ^ {t _ {K}}) , l)}{F (h _ {0} ; x _ {0} ^ {t _ {2 K - 1}} ; \ldots ; x _ {K - 1} ^ {t _ {K}})}.
+$$
+
+However, during the forward pass the input of block $k$ is $F(h_0; x_0^{t_0}; \ldots; x_{k-1}^{t_{k-1}})$ . Therefore we incorporate the recomputation technique and utilize both the Forward Parameters and Backward Parameters to compute DSP gradient as follows,
+
+$$
+\mathcal {G} _ {x _ {k}} = \frac {\partial F (h _ {0} ; x _ {0} ^ {t _ {0}} ; \ldots ; x _ {k - 1} ^ {t _ {k - 1}} ; \boldsymbol {x} _ {k} ^ {\boldsymbol {t _ {2 K - 1 - k}}})}{\partial \boldsymbol {x} _ {k} ^ {\boldsymbol {t _ {2 K - 1 - k}}}} \mathcal {G} _ {h _ {k + 1}}
+$$
+
+$$
+\mathcal {G} _ {h _ {k}} = \frac {\partial F \left(h _ {0} ; x _ {0} ^ {t _ {0}} ; \dots ; x _ {k - 1} ^ {t _ {k - 1}} ; \boldsymbol {x} _ {\boldsymbol {k}} ^ {t _ {2 K - 1 - k}}\right)}{\partial F \left(h _ {0}; x _ {0} ^ {t _ {0}}; \dots ; x _ {k - 1} ^ {t _ {k - 1}}\right)} \mathcal {G} _ {h _ {k + 1}} \tag {5}
+$$
+
+$$
+\mathcal {G} _ {h _ {K}} = \frac {\partial \mathcal {L} (F (h _ {0} ; x _ {0} ^ {t _ {0}} ; \ldots ; x _ {K - 1} ^ {t _ {K - 1}}) , l)}{F (h _ {0} ; x _ {0} ^ {t _ {0}} ; \ldots ; x _ {K - 1} ^ {t _ {K - 1}})}.
+$$
+
+The intuition behind the DSP gradient of Eq. (5) is that it is equivalent to Eq. (4) when the model converges to a local optimum where the gradient is zero ( $x_{k}^{t_{k}} = x_{k}^{t_{2K - 1 - k}}$ afterwards).
+
+# 3.3. Batch Pipeline Input
+
+The computation of the DSP gradient breaks the forward and backward dependencies/lockings of the same data as it will not appear in different blocks at the same timestamp. The update locking is naturally broken.
+
+For the parallel implementation of DSP as shown in Figure 2, we incorporate the data batch pipeline to keep all the blocks being fed with different data batches and running. The data source consecutively feeds data input. Different blocks transport and process different data via FIFO queues. As a result, the data travels each block at different timestamps. Specifically, each block $k$ maintains an input queue $\mathcal{M}_k$ , output queue $\mathcal{P}_k$ and gradient queue $\mathcal{Q}_k$ of length $1 + m_k$ , $1 + p_k$ and $1 + q_k$ respectively. We denote it as $DSP(p_0, \dots, p_{K-1}; m_0, \dots, m_{K-1})$ . $\{q_k\}$ is determined by $\{p_k\}$ and $\{m_k\}$ because the input should match the corresponding error gradient. We manually split the model to different workers to balance the workload at the steady stage.
+
+Apart from adopting recomputation to reduce memory consumption, DSP overlaps recomputation with the forward pass to save time. Using queues also make DSP overlap the communication between blocks with computation. The FIFO queues allow for some asynchrony which is effective for dealing with random stragglers. The ideal time complexity of DSP is $\mathcal{O}\left(\frac{T_F + T_B}{K}\right)$ and the space complexity is $\mathcal{O}(L + \sum_{k=0}^{K-1}(m_k + p_k + q_k))$ , where $T_F$ and $T_B$ are serial forward and backward time, and $L$ is the number of layers. $m_k$ also represents the Layer-wise Staleness $\Delta t_k$ of block $k$ . $K$ and the FIFO queues length $m_k + 1, p_k + 1, q_k + 1 \ll L$ for deep models, so the extra space cost is trivial.
+
+# 4. Convergence Analysis
+
+The convergence of DSP with SGD is first analyzed, then DSP with Momentum SGD. For simplicity, we denote the Forward and Backward Parameters of data $n$ as $x^{n'}$ and $x^n$ respectively.
+
+Assumption 1. (Bounded variance) Assume that the DSP stochastic gradient $\mathcal{G}(x;\xi)$ satisfies Var $[\mathcal{G}(x;\xi)]\leq \sigma^2$ Note $\mathbb{E}[\mathcal{G}(x;\xi)] = \mathcal{G}(x)\neq \nabla f(x)$
+
+Assumption 2. (Lipschitz continuous gradient) Assume that the loss and the output of the blocks have Lipschitz continuous gradient, that is, $\forall k\in \{0,1,\dots ,K - 1\}$ , and $\forall (x_{0,1},\ldots ,x_{k,1}),(x_{0,2},\ldots ,x_{k,2})\in \mathbb{R}^{d_0 + d_1 + \dots +d_k}$ , we have $\| \nabla F(h_0;x_{0,1};\ldots ;x_{k,1}) - \nabla F(h_0;x_{0,2};\ldots ;x_{k,2})\| \leq L_k\| (x_{0,1},\ldots ,x_{k,1}) - (x_{0,2},\ldots ,x_{k,2})\|$ ; and $\forall x_{1},x_{2}\in \mathbb{R}^{d}$ , $\| \nabla f(x_1) - \nabla f(x_2)\| \leq L_K\| x_1 - x_2\|$ .
+
+We define $L \coloneqq \max_{k \in \{0,1,\dots,K\}} L_k$ . Note that $\nabla F(h_0; x_{0,1}; \ldots; x_{k,1})$ and $\nabla F(h_0; x_{0,2}; \ldots; x_{k,2})$ regarding parameters are Jacobian matrices. In fact, this is assuming that the partial model consisted of the blocks that the data has traveled, has Lipschitz continuous gradient.
+
+Assumption 3. (Bounded error gradient) Assume that the norm of the error gradient that a block receives is bounded, that is, for any $x \in \mathbb{R}^d$ , $\forall k \in \{0,1,\dots,K-2\}$ , we have $\left\| \frac{\partial f_{k+1}(h_{k+1};x_{k+1})}{\partial h_{k+1}} \dots \frac{\partial f_{K-1}(h_{K-1};x_{K-1})}{\partial h_{K-1}} \frac{\partial \mathcal{L}(h_K,l)}{\partial h_K} \right\| \leq M$ and $\left\| \frac{\partial \mathcal{L}(h_K,l)}{\partial h_K} \right\| \leq M$ .
+
+This is assuming that the error gradient at each block does not explode. It is natural to make the above two blockwise assumptions as we are breaking the neural networks into blocks.
+
+Lemma 1. If Assumptions 2 and 3 hold, the difference between DSP gradient and BP gradient regarding the parameters of block $k \in \{0,1,\dots,K - 1\}$ satisfies $\| \nabla_{x_k}\mathcal{L}(F(h_0;x_0^{t_0};\ldots ;x_{K - 1}^{t_{K - 1}}),y)\quad -$ $\mathcal{G}_{x_k}(x_0^{t_2K - 1};\ldots ;x_{K - 1}^{t_K})\| \leq LM\sum_{i = k}^{K - 1}\left\| x_i^{t_2K - 1 - i} - x_i^{t_i}\right\| .$
+
+# 4.1. DSP with SGD
+
+Theorem 1. Assume Assumptions 1, 2 and 3 hold. Let $c_{0} = M^{2}K(K + 1)^{2}$ , and $c_{1} = -(\Delta t^{2} + 2) + \sqrt{(\Delta t^{2} + 2)^{2} + 2c_{0}\Delta t^{2}}$ . If the learning rate $\alpha_{n} \leq \frac{c_{1}}{Lc_{0}\Delta t^{2}}$ , then $\frac{\sum_{n=0}^{N-1}\alpha_{n}\mathbb{E}\left\|\nabla f(x^{n^{\prime}})\right\|^{2}}{\sum_{n=0}^{N-1}\alpha_{n}} \leq \frac{2[f(x^{0})-f^{*}]}{\sum_{n=0}^{N-1}\alpha_{n}} + \frac{L\sigma^{2}(2+K\Delta t^{2}+\frac{1}{4}Kc_{1})\sum_{n=0}^{N-1}\alpha_{n}^{2}}{\sum_{n=0}^{N-1}\alpha_{n}}$ .
+
+Corollary 1. (Sublinear convergence rate) According to Theorem 1, by setting the learning rate $\alpha_{n} = \min \left\{\frac{1}{\sqrt{N}},\frac{c_{1}}{Lc_{0}\Delta t^{2}}\right\}$ , when $N$ is large enough we have $\alpha_{n} = \frac{1}{\sqrt{N}}$ and $\min_{n = 0,\ldots ,N - 1}\mathbb{E}\left\| \nabla f(x^{n^{\prime}})\right\|^{2}\leq \frac{2(f(x^{0}) - f^{*})}{\sqrt{N}} +$ $\frac{L\sigma^2(2 + K\Delta t^2 + \frac{1}{4}Kc_1)}{\sqrt{N}}.$
+
+Corollary 2. According to Theorem 1, if the learning rate $\alpha_{n}$ diminishes and satisfies the requirements in [28]: $\lim_{N\to \infty}\sum_{n = 0}^{N - 1}\alpha_n = \infty$ and $\lim_{N\to \infty}\sum_{n = 0}^{N - 1}\alpha_n^2 < \infty$ , choose $x^n$ randomly from $\{x^n\}_{n = 0}^{N - 1}$ with probabilities proportional to $\{\alpha_n\}_{n = 0}^{N - 1}$ . Then we can prove that it converges to critical points for the non-convex problem due to $\lim_{n\to \infty}\mathbb{E}\left\| \nabla f(x^n)\right\| ^2 = 0$ .
+
+# 4.2. DSP with Momentum SGD
+
+Theorem 2. Assume Assumption 1, 2 and 3 hold. Let $c_{2} = \frac{((1 - \beta)s - 1)^{2}}{(1 - \beta)^{2}}$ , $c_{3} = M^{2}K(K + 1)^{2}\Delta t^{2}(c_{2} + s^{2})$ , $c_{4} = 3 + \beta^{2}c_{2} + 2(1 - \beta)^{2}\Delta t^{2}(c_{2} + s^{2})$ , and $c_{5} = \frac{2 + \beta^{2}c_{2}}{1 - \beta} + 2(1 - \beta)\Delta t^{2}(c_{2} + s^{2}) + \frac{-c_{4} + \sqrt{c_{4}^{2} + 4(1 - \beta)^{2}c_{3}}}{2(1 - \beta)}$ . If the fixed learning rate $\alpha$ satisfies $\alpha \leq \frac{-c_{4} + \sqrt{c_{4}^{2} + 4(1 - \beta)^{2}c_{3}}}{2(1 - \beta)c_{3}L}$ , then $\frac{1}{N}\sum_{n = 0}^{N - 1}\mathbb{E}\left\| \nabla f(x^{n^{\prime}})\right\|^2 \leq \frac{2(1 - \beta)(f(x^0) - f^*)}{N\alpha} + c_5\sigma^2 L\alpha$ .
+
+Corollary 3. (Sublinear convergence rate) According to Theorem 2, by setting the learning rate $\alpha =$
+
+
+
+
+
+
+
+
+
+
+Figure 3. Training loss (solid line) and testing loss (dash line) for ResNet98, ResNet164 on CIFAR-10. The first row and second row plots the loss regarding the training epochs and time respectively.
+
+
+
+$\min \{\frac{1}{\sqrt{N}},\frac{-c_4 + \sqrt{c_4^2 + 4(1 - \beta)^2c_3}}{2(1 - \beta)c_3L}\} ,$ when $N$ is large enough we have $\alpha = \frac{1}{\sqrt{N}}$ and $\min_{n = 0,\dots ,N - 1}\mathbb{E}\left\| \nabla f(x^{n^{\prime}})\right\|^{2}\leq$ $\frac{2(1 - \beta)(f(x^0) - f^*)}{\sqrt{N}} +\frac{c_5\sigma^2L}{\sqrt{N}}.$
+
+Remark 1. The convergence performance of DSP is af-
+
+fected by Layer-wise Staleness rather than the staleness between different blocks.
+
+Table 1. Best Top-1 Test Accuracy
+
+ | ResNet164 | ResNet98 |
| CIFAR-10 | CIFAR-100 | CIFAR-10 | CIFAR-100 |
| BP | 94.41% | 75.66% | 93.38% | 72.66% |
| K=3 | FR | 94.55% | 76.25% | 93.60% | 73.27% |
| DSP(1,1,0;4,2,0) | 94.68% | 76.05% | 93.36% | 72.99% |
| DSP(2,2,0;6,3,0) | 93.98% | 76.00% | 93.68% | 73.70% |
| DSP(3,3,0;10,5,0) | 93.37% | 76.29% | 93.27% | 73.38% |
| K=4 | FR | 94.44% | 75.84% | 93.26% | 72.41% |
| DSP(1,1,1,0;6,4,2,0) | 94.32% | 76.22% | 93.41% | 73.14% |
| DSP(2,2,2,0;9,6,3,0) | 94.87% | 75.59% | 93.06% | 72.89% |
| DSP(3,3,3,0;15,10,5,0) | 93.34% | 75.15% | 93.45% | 72.96% |
+
+
+
+
+
+
+Figure 4. Top left: Average difference of DSP and BP gradient regarding the number of parameters. The rest: Training loss (solid line), testing loss (dash line) and test top-1 accuracy(.dot line).
+
+
+
+# 5. Experiments
+
+Experiment Settings We implement DSP in TensorFlow [1] and run the experiments on Nvidia Tesla P40 GPUs. The model is divided into $K$ blocks and distributed onto $K$ GPUs. Data augmentation procedures include random cropping, random flipping, and standardization. We use SGD
+
+with the momentum constant of 0.9. In CIFAR experiments, the batch size is 128. We train ResNet98 and ResNet164 for 300 epochs. The weight decay is $5 \times 10^{-4}$ and the initial learning rate is 0.01 (test performance could be a little lower than 0.1 [25]) with a decay of 0.1 at epoch 150, 225; ResNet1001 is trained for 250 epochs. The weight decay is $2 \times 10^{-4}$ and the initial learning rate is 0.1 with a decay of
+
+Table 2. Robustness (ResNet164, CIFAR-10, K=3). Each GPU is randomly slowed down.
+
+| GPU | Slow down percentage |
| 20% | 50% | 100% | 150% |
| FR | 8.977% | 28.52% | 97.06% | 359.2% |
| DSP(1,1,0;4,2,0) | 6.017% | 16.14% | 37.44% | 70.99% |
| DSP(2,2,0;6,3,0) | 7.465% | 16.01% | 36.57% | 54.57% |
| DSP(3,3,0;10,5,0) | 7.391% | 18.15% | 32.10% | 53.42% |
+
+
+Figure 5. Test accuracy@1 on the ImageNet dataset.
+
+
+
+0.1 at epoch 100, 150, 200; VGG-19 and ResNext-29 are trained for 200 epochs. The weight decay is $5 \times 10^{-4}$ and the initial learning rate is 0.01 with a decay of 0.1 at epoch 100, 150. We also train ResNet on ImageNet for 90 epochs. The batch size is 256, the weight decay is $1 \times 10^{-4}$ and the initial learning rate is 0.1 with a decay of 0.1 at epoch 30, 60, 80. There are four compared methods:
+
+- BP: The standard implementation in TensorFlow. BP (or BP-K) runs on one (or K) GPUs.
+- DNI: The Decoupled Neural Interface algorithm in [18]. The auxiliary network consists of two hidden and one output convolution layers with $5 \times 5$ filters and padding size of 2. The hidden layers also use batch-normalization and ReLU.
+- FR: The Features Replay algorithm proposed by [13].
+DSP: Our Diversely Stale Parameters.
+
+# 5.1. Faster Training
+
+The DSP convergence curves regarding training epochs are nearly the same as FR and BP, while DNI does not converge as shown in Figure 3. But the epoch time of DSP is much less. Due to the overlap of communication and computation, the overheads of DSP are much less than model parallel BP and the speedup can even exceed $K$ . However,
+
+it is important that the model should be properly distributed onto different blocks such that the workload of each computing device is balanced. If not, the overall speed will be mostly determined by the slowest device. To further demonstrate the scalability of DSP, we also run experiments on VGG-19 [30], ResNeXt-29 [34], ResNet1001 on the CIFAR dataset, and ResNet18 and ResNet50 on the ImageNet [6] dataset as shown in Figure 4 and Figure 5 respectively. The speedup is summarized in Table 3 (GPipe paper only reports speedup of ResNet101 and AmoebaNet-D (4,512)). Our proposed DSP improves the speedup compared with its counterparts from x0.5 to x3.1 based on different datasets, model and the value of K. Note that the implementation of DSP involves some inefficient copy operations due to limited supported features of the deep learning framework, which means that DSP could achieve a potentially even faster speedup.
+
+# 5.2. Robustness
+
+To show that DSP is more resilient to the straggle problem due to the FIFO queues introduced, we randomly slow down each GPU by a certain percentage with a probability of $1/3$ and run the experiments on ResNet164 (Table 2). The performance of FR degrades a lot because it does not break the forward locking nor completely decouple the backward pass. In comparison, DSP is very robust with the best slow down percentage always less than $1/3$ of the cor-
+
+Table 3. Speedup Comparison Results.
+
+| K, batch size | CIFAR-10 | CIFAR-100 | ImageNet |
| ResNet164 (4, 128) | ResNext-29 (4, 128) | VGG-19 (3, 128) | ResNet1001 (4, 128) | ResNet50 (3, 256) | ResNet101 (4, 128) |
| BP / BP-K | x1 / - | x1 / - | x1 / - | - / x1 | - / x1 | x1 / - |
| FR | x1.7 | x1.3 | x1.1 | x1.9 | x1.6 | x1.7 |
| GPipe | - | - | - | - | - | x2.2 |
| DSP | x2.7 | x2.4 | x1.5 | x4.8 | x3.0 | x2.7 |
+
+Table 4. Best Top-1 Test Accuracy on ImageNet (K=3).
+
+| Method | ResNet18 | ResNet50 |
| BP | 69.89% | 75.35% |
| FR | 68.94% | 74.47% |
| DSP(1,1,0;4,2,0) | 68.95% | 74.91% |
+
+responding GPU slow down percentage. When the upper or lower block suddenly slows down, the current block's feeding data and gradient queues are less likely to be empty if the length of the queue is long. When the straggler effect is not serious, increasing the Layer-wise Staleness will not bring performance gain; when it is serious instead, DSP benefits a lot from increasing the Layer-wise Staleness. Generally speaking, longer queues improve DSP's resilience to random stragglers, which is shown in Table 2.
+
+# 5.3. Generalization
+
+Table 1 and Tabel 4 show the best top-1 test accuracy on the CIFAR and ImageNet dataset respectively. The test performance of DSP is better than BP and FR on the CIFAR dataset. From Lemma 1 we know that the DSP gradient deviates from the BP gradient due to the Layer-wise Staleness. This difference becomes small as the training proceeds but could impose small noise and help find a better local minimum on the comparatively less complex CIFAR classification problem.
+
+In comparison, on the ImageNet dataset, the Layer-wise Staleness can lead to performance degradation. By intuition, it is similar to asynchronous distributed training where the whole gradient is of the same staleness. But in DSP, the more fine-grained Layer-wise Staleness will impose different blocks with different staleness effects. Potential solutions could be using staleness-aware methods as proposed in asynchronous distributed training area, e.g. gradient compensation and staleness-aware learning rate, to alleviate the staleness effect. Another possible direction is to balance the staleness effect between all the blocks. Moreover, when compared with FR, DSP's test accuracy is slightly better. On ResNet18, the test accuracy of FR and DSP is very similar, but on ResNet50 there is a $0.44\%$ gain using DSP. Besides, on the more complicated ResNet50 architecture, the
+
+performance degradation resulting from the staleness effect is smaller than that on ResNet18.
+
+# 5.4. Gradient Difference
+
+Here we attest our theoretical analysis of Lemma 1 via checking the difference between the DSP and the BP gradient on the CIFAR dataset with the ResNet164 model. From the top-left figure of Figure 4, we can see that the difference between the DSP and BP gradient drops very fast to the converged value as the training proceeds. This difference drops even faster for upper blocks where the Layer-wise Staleness effect is milder. It confirms the motivation behind the DSP algorithm that the DSP gradient will finally be similar to the BP gradient. Moreover, the lower blocks suffer from a larger difference. When the Layer-wise Staleness keeps increasing, the difference will also increase, which matches Lemma 1 well. Moreover, as the learning rate drops, the difference between the DSP gradient and the BP gradient will drop a lot. This implies that a smaller learning rate should be used when we need to deal with a larger number of blocks where the Layer-wise Staleness effect becomes non-trivial. This is also shown in Theorem 1 and 2 that the learning rate should be decreased to make sure it converges at the stated speed.
+
+# 6. Conclusion
+
+In this paper, we have proposed Layer-wise Staleness and DSP, a novel way to fast train neural networks. DSP is proved to converge to critical points for non-convex problems with SGD and Momentum SGD optimizer. We apply DSP to train CNNs in parallel and the experiment results confirm our theoretical analysis. Our proposed method achieves significant training speedup, strong resilience to random stragglers, better generalization on the CIFAR dataset and reasonable performance on the ImageNet dataset. The speedup can exceed $K$ compared with the model parallel BP. Potential future works include how to alleviate the staleness effect when we need to utilize a further larger number of blocks; how to automatically determine the proper model splitting strategy for load balance among devices; efficiently incorporating DSP with data parallelism to achieve even faster training speed.
+
+# References
+
+[1] Martin Abadi, Paul Barham, Jianmin Chen, Zhifeng Chen, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Geoffrey Irving, Michael Isard, et al. Tensorflow: A system for large-scale machine learning. In 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI'16), pages 265-283, 2016.
+[2] Eugene Belilovsky, Michael Eickenberg, and Edouard Oyallon. Decoupled greedy learning of cnns. arXiv preprint arXiv:1901.08164, 2019.
+[3] Léon Bottou. Large-scale machine learning with stochastic gradient descent. In Yves Lechevalier and Gilbert Saporta, editors, Proceedings of COMPSTAT'2010, pages 177-186, Heidelberg, 2010. Physica-Verlag HD.
+[4] Tianqi Chen, Mu Li, Yutian Li, Min Lin, Naiyan Wang, Minjie Wang, Tianjun Xiao, Bing Xu, Chiyuan Zhang, and Zheng Zhang. Mxnet: A flexible and efficient machine learning library for heterogeneous distributed systems. arXiv preprint arXiv:1512.01274, 2015.
+[5] Tianqi Chen, Bing Xu, Chiyuan Zhang, and Carlos Guestrin. Training deep nets with sublinear memory cost. arXiv preprint arXiv:1604.06174, 2016.
+[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.
+[7] Andreas Griewank. An implementation of checkpointing for the reverse or adjoint model of differentiation. ACM Trans. Math. Software, 26(1):1-19, 1999.
+[8] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the IEEE international conference on computer vision, pages 1026-1034, 2015.
+[9] Qirong Ho, James Cipar, Henggang Cui, Seunghak Lee, Jin Kyu Kim, Phillip B Gibbons, Garth A Gibson, Greg Ganger, and Eric P Xing. More effective distributed ml via a stale synchronous parallel parameter server. In Advances in neural information processing systems, pages 1223-1231, 2013.
+[10] Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 7132-7141, 2018.
+[11] Yanping Huang, Yonglong Cheng, Dehao Chen, HyoukJoong Lee, Jiquan Ngiam, Quoc V Le, and Zhifeng Chen. Gpipe: Efficient training of giant neural networks using pipeline parallelism. arXiv preprint arXiv:1811.06965, 2018.
+[12] Yuzhen Huang, Xiao Yan, Guanxian Jiang, Tatiana Jin, James Cheng, An Xu, Zhanhao Liu, and Shuo Tu. Tangram: bridging immutable and mutable abstractions for distributed data analytics. In 2019 {USENIX} Annual Technical Conference (\{USENIX\} \{ATC\} 19), pages 191-206, 2019.
+[13] Zhouyuan Huo, Bin Gu, and Heng Huang. Training neural networks using features replay. In Advances in Neural Information Processing Systems, pages 6659-6668, 2018.
+
+[14] Zhouyuan Huo, Bin Gu, and Heng Huang. Large batch training does not need warmup. arXiv preprint arXiv:2002.01576, 2020.
+[15] Zhouyuan Huo, Bin Gu, qian Yang, and Heng Huang. Decoupled parallel backpropagation with convergence guarantee. 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 2098-2106, Stockholm, Sweden, 10-15 Jul 2018. PMLR.
+[16] Zhouyuan Huo and Heng Huang. Straggler-agnostic and communication-efficient distributed primal-dual algorithm for high-dimensional data mining. arXiv preprint arXiv:1910.04235, 2019.
+[17] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015.
+[18] Max Jaderberg, Wojciech Marian Czarnecki, Simon Osindero, Oriol Vinyals, Alex Graves, David Silver, and Koray Kavukcuoglu. Decoupled neural interfaces using synthetic gradients. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 1627-1635. JMLR.org, 2017.
+[19] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
+[20] Alex Krizhevsky. One weird trick for parallelizing convolutional neural networks. arXiv preprint arXiv:1404.5997, 2014.
+[21] 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, 1(4):541-551, 1989.
+[22] Seunghak Lee, Jin Kyu Kim, Xun Zheng, Qirong Ho, Garth A Gibson, and Eric P Xing. On model parallelization and scheduling strategies for distributed machine learning. In Advances in neural information processing systems, pages 2834-2842, 2014.
+[23] Mu Li, David G Andersen, Alexander J Smola, and Kai Yu. Communication efficient distributed machine learning with the parameter server. In Advances in Neural Information Processing Systems, pages 19-27, 2014.
+[24] Yuejiang Liu, An Xu, and Zichong Chen. Map-based deep imitation learning for obstacle avoidance. In 2018 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 8644-8649. IEEE, 2018.
+[25] Zhuang Liu, Mingjie Sun, Tinghui Zhou, Gao Huang, and Trevor Darrell. Rethinking the value of network pruning. arXiv preprint arXiv:1810.05270, 2018.
+[26] Yurii Nesterov. Introductory lectures on convex optimization: A basic course, volume 87. Springer Science & Business Media, 2013.
+[27] Arild Nokland. Direct feedback alignment provides learning in deep neural networks. In Advances in neural information processing systems, pages 1037-1045, 2016.
+
+[28] Herbert Robbins and Sutton Monro. A stochastic approximation method. The annals of mathematical statistics, pages 400-407, 1951.
+[29] David E Rumelhart, Geoffrey E Hinton, Ronald J Williams, et al. Learning representations by back-propagating errors. Cognitive modeling, 5(3):1, 1988.
+[30] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
+[31] Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jonathon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2818-2826, 2016.
+[32] Tijmen Tieleman and Geoffrey Hinton. Lecture 6.5-rmsprop: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural networks for machine learning, 4(2):26-31, 2012.
+[33] Leslie G Valiant. A bridging model for parallel computation. Communications of the ACM, 33(8):103-111, 1990.
+[34] Saining Xie, Ross B. Girshick, Piotr Dólár, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5987-5995, 2017.
+[35] An Xu, Zhouyuan Huo, and Heng Huang. Optimal gradient quantization condition for communication-efficient distributed training. arXiv preprint arXiv:2002.11082, 2020.
+[36] Qian Yang, Zhouyuan Huo, Wenlin Wang, and Lawrence Carin. Ouroboros: On accelerating training of transformer-based language models. In Advances in Neural Information Processing Systems 32, pages 5519-5529. Curran Associates, Inc., 2019.
+[37] Tianbao Yang, Qihang Lin, and Zhe Li. Unified convergence analysis of stochastic momentum methods for convex and non-convex optimization. arXiv preprint arXiv:1604.03257, 2016.
\ No newline at end of file
diff --git a/ontheaccelerationofdeeplearningmodelparallelismwithstaleness/images.zip b/ontheaccelerationofdeeplearningmodelparallelismwithstaleness/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..40763b62780b332e7f752429b88d755acd513119
--- /dev/null
+++ b/ontheaccelerationofdeeplearningmodelparallelismwithstaleness/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5827897ceaa5e0ad2e6433dccccabe8f8bd43ebfeeb22e13b41b99e472d0e260
+size 779391
diff --git a/ontheaccelerationofdeeplearningmodelparallelismwithstaleness/layout.json b/ontheaccelerationofdeeplearningmodelparallelismwithstaleness/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..a5c0519f96a47e093b33c8a82b36c336e77beb28
--- /dev/null
+++ b/ontheaccelerationofdeeplearningmodelparallelismwithstaleness/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:861bd4de1e24ab970dc17debd924194ed75ab8be1f075dc26a94940386ea7758
+size 363654
diff --git a/onthedetectionofdigitalfacemanipulation/9e5fbd81-ebd4-427c-9981-623f401da09c_content_list.json b/onthedetectionofdigitalfacemanipulation/9e5fbd81-ebd4-427c-9981-623f401da09c_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..492d72956b6bcd6f4abe3827aef99af1da83ba3d
--- /dev/null
+++ b/onthedetectionofdigitalfacemanipulation/9e5fbd81-ebd4-427c-9981-623f401da09c_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e3b398f35ea2c03c3ae562de7154e51f8c9ec4e9aac885f84300ffc1b3d58e76
+size 79380
diff --git a/onthedetectionofdigitalfacemanipulation/9e5fbd81-ebd4-427c-9981-623f401da09c_model.json b/onthedetectionofdigitalfacemanipulation/9e5fbd81-ebd4-427c-9981-623f401da09c_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..3ec0c4b9b1760d2f8c7e7dd287d341ebf46a4c8a
--- /dev/null
+++ b/onthedetectionofdigitalfacemanipulation/9e5fbd81-ebd4-427c-9981-623f401da09c_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ff856f0fa5c24b705b363bf7ef14ded91957ed9b8d1178c70ad2c0625aacaf5e
+size 101048
diff --git a/onthedetectionofdigitalfacemanipulation/9e5fbd81-ebd4-427c-9981-623f401da09c_origin.pdf b/onthedetectionofdigitalfacemanipulation/9e5fbd81-ebd4-427c-9981-623f401da09c_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..95efe96de0c6733eaba4e85ed15207e01e6ad3b0
--- /dev/null
+++ b/onthedetectionofdigitalfacemanipulation/9e5fbd81-ebd4-427c-9981-623f401da09c_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:316902932a3e715bf49f45eb6165cf576762d0e52766591d9f02e7bbfe7cbf00
+size 1287330
diff --git a/onthedetectionofdigitalfacemanipulation/full.md b/onthedetectionofdigitalfacemanipulation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..67320ca6bd525f75ddebd5dc2ca37c827c8ea692
--- /dev/null
+++ b/onthedetectionofdigitalfacemanipulation/full.md
@@ -0,0 +1,331 @@
+# On the Detection of Digital Face Manipulation
+
+Hao Dang* Feng Liu* Joel Stehouwer* Xiaoming Liu Anil Jain
+Department of Computer Science and Engineering
+Michigan State University, East Lansing MI 48824
+
+# Abstract
+
+Detecting manipulated facial images and videos is an increasingly important topic in digital media forensics. As advanced face synthesis and manipulation methods are made available, new types of fake face representations are being created which have raised significant concerns for their use in social media. Hence, it is crucial to detect manipulated face images and localize manipulated regions. Instead of simply using multi-task learning to simultaneously detect manipulated images and predict the manipulated mask (regions), we propose to utilize an attention mechanism to process and improve the feature maps for the classification task. The learned attention maps highlight the informative regions to further improve the binary classification (genuine face v. fake face), and also visualize the manipulated regions. To enable our study of manipulated face detection and localization, we collect a large-scale database that contains numerous types of facial forgeries. With this dataset, we perform a thorough analysis of data-driven fake face detection. We show that the use of an attention mechanism improves facial forgery detection and manipulated region localization. The code and database are available at cvlab.cse.msu.edu/project-ffd.html.
+
+# 1. Introduction
+
+Human faces play an important role in human-human communication and association of side information, e.g., gender and age with identity. For instance, face recognition is increasingly utilized in our daily life for applications such as access control and payment [50]. However, these advances also entice malicious actors to manipulate face images to launch attacks, aiming to be authenticated as the genuine user. Moreover, manipulation of facial content has become ubiquitous, and raises new concerns especially in social media content [41-43]. Recent advances in deep learning have led to a dramatic increase in the realism of face synthesis and enabled a rapid dissemination of "fake
+
+
+Genuine face
+
+
+(a) Physical spoofing attack
+
+
+(b) Adversarial attack
+
+
+
+
+(c) Digital manipulation attack
+Figure 1. Given one genuine face image, there are three types of facial forgery attacks: physical spoofing attack (print and replay attack), adversarial attack [18], and digital manipulation attack.
+
+
+
+
+
+news” [7]. Therefore, to mitigate the adverse impact and benefit both public security and privacy, it is crucial to develop effective solutions against these facial forgery attacks.
+
+As shown in Fig. 1, there are three main types of facial forgery attacks. i) Physical spoofing attacks can be as simple as face printed on a paper, replaying image/video on a phone, or as complicated as a 3D mask [8, 24, 34, 35]. ii) Adversarial face attacks generate high-quality and perceptually imperceptible adversarial images that can evade automated face matchers [18, 20, 37, 57]. iii) Digital manipulation attacks, made feasible by Variational AutoEncoders (VAEs) [28, 40] and Generative Adversarial Networks (GANs) [19], can generate entirely or partially modified photorealistic face images. Among these three types, this work addresses only digital manipulation attacks, with the objectives of automatically detecting manipulated faces, as well as localizing modified facial regions. We use the term "face manipulation detection" or "face forgery detection" to describe our objective.
+
+Digital facial manipulation methods fall into four categories: expression swap, identity swap, attribute manipulation and entire face synthesis (Fig. 2). 3D face reconstruction and animation methods [17, 32, 48, 64] are widely used for expression swap, such as Face2Face [47]. These methods can transfer expressions from one person to another in real time with only RGB cameras. Identity swap methods replace the face of one person with the face of an-
+
+
+Figure 2. Our facial forgery detection method tackles faces generated by the four types of face manipulation methods. Given a face image, our approach outputs a binary decision (genuine v. manipulated face) and localizes the manipulated regions via an estimated attention map. For real or entirely synthetic faces, our estimated maps are assumed to be uniformly distributed in [0, 1].
+
+other. Examples include FaceSwap [47, 53], which inserts famous actors into movie clips in which they never appeared and DeepFakes [3], which performs face swapping via deep learning algorithms.
+
+Attribute manipulation edits single or multiple attributes in a face, e.g., gender, age, skin color, hair, and glasses. The adversarial framework of GANs is used for image translation [23,62,63] or manipulation in a given context [10,45], which diversifies facial images synthesis. FaceApp [4] has popularized facial attribute manipulation as a consumer-level application, providing 28 filters to modify specific attributes [4]. The fourth category is entire face synthesis. Fueled by the large amounts of face data and the success of GANs, any user is capable of producing a completely synthetic facial image, whose realism is such that even humans have difficulty assessing if it is genuine or manipulated [15,25,26].
+
+Research on face manipulation detection has been seriously hampered by the lack of large-scale datasets of manipulated faces. Existing approaches are often evaluated on small datasets with limited manipulation types, including Zhou et al. [61], Deepfake [29], and FaceForensics/FaceForensics++ [41, 42]. To remedy this issue, we collect a Diverse Fake Face Dataset (DFFD) of 2.6 million images from all four categories of digital face manipulations.
+
+Due to the fact that the modification of a face image can be in whole or in part, we assume that a well-learned network would gather different information spatially in order to detect manipulated faces. We hypothesize that correctly estimating this spatial information can enable the network to focus on these important spatial regions to make its decision. Hence, we aim to not only detect manipulated faces, but also automatically locate the manipulated regions by estimating an image-specific attention map, as in Fig. 3. We present our approach to estimate the attention map in both supervised and weakly-supervised fashions. We also demonstrate that this attention map is beneficial to the final
+
+task of facial forgery detection. Finally, in order to quantify the attention map estimation, we propose a novel metric for attention map accuracy evaluation. In the future, we anticipate the predicted attention maps for manipulated face images and videos would reveal hints about the type, magnitude, and even intention of the manipulation.
+
+In summary, the contributions of this work include:
+
+$\diamond$ A comprehensive fake face dataset including 0.8M real and 1.8M fake faces generated by a diverse set of face modification methods and an accompanying evaluation protocol.
+A novel attention-based layer to improve classification performance and produce an attention map indicating the manipulated facial regions.
+A novel metric, termed Inverse Intersection Non-Containment (IINC), for evaluating attention maps that produces a more coherent evaluation than existing metrics.
+$\diamond$ State-of-the-art performance of digital facial forgery detection for both seen and unseen manipulation methods.
+
+# 2. Related Work
+
+Digital Face Manipulation Methods. With the rapid progress in computer graphics and computer vision, it is becoming difficult for humans to tell the difference between genuine and manipulated faces [42]. Graphics-based approaches are widely used for identity or expression transfer by first reconstructing 3D models for both source and target faces, and then exploiting the corresponding 3D geometry to warp between them. In particular, Thies et al. [46] present expression swap for facial reenactment with an RGB-D camera. Face2Face [47] is a real-time face reenactment system using only an RGB camera. Instead of manipulating expression only, the extended work [27] transfers the full 3D head position, rotation, expression, and eye blinking from a source actor to a portrait video of a target actor. "Synthesizing Obama" [45] animates the face based on an input audio signal. FaceSwap replaces the identity of 3D models while preserving the expressions.
+
+Deep learning techniques, not surprisingly, are popular in synthesizing or manipulating faces [48]. The term Deepfakes has become a synonym for deep learning based face identity replacement [42]. There are various public implementations of Deepfakes, most recently by ZAO [5] and FaceAPP [4]. FaceAPP can selectively modify facial attributes [4]. GAN-based methods can produce entire synthetic faces, including non-face background [25, 26, 49].
+
+Fake Face Benchmarks. Unfortunately, large and diverse datasets for face manipulation detection are limited in the community. Zhou et al. [61] collected a dataset with face-swapped images generated by an iOS app and an open-source software. Video-based face manipulation became available with the release of FaceForensics [41], which contains 0.5M Face2Face manipulated frames from over 1,000 videos. An extended version, FaceForensics++ [42], further
+
+
+Figure 3. The architecture of our face manipulation detection. Given any backbone network, our proposed attention-based layer can be inserted into the network. It takes the high-dimensional feature $\mathbf{F}$ as input, estimates an attention map $\mathbf{M}_{att}$ using either MAM-based or regression-based methods, and channel-wise multiplies it with the high-dimensional features, which are fed back into the backbone. In addition to the binary classification supervision $\mathcal{L}_{\mathrm{classifier}}$ , either a supervised or weakly supervised loss, $\mathcal{L}_{\mathrm{map}}$ , can be applied to estimate the attention map, depending on whether the ground truth manipulation map $\mathbf{M}_{gt}$ is available.
+
+augments the collection with Deepfake [3] and FaceSwap manipulations. However, these datasets are still limited to two fake types: identity and expression swap. To overcome this limitation, we collect the first fake face dataset with diverse fake types, including identity and expression swapped images from FaceForensics++, face attribute manipulated images using FaceAPP, and complete fake face images using StyleGAN [26] and PGGAN [25].
+
+Manipulation Localization. There are two main approaches to localize manipulated image regions: segmenting the entire image [9, 39], and repeatedly performing binary classification via a sliding window [42]. These methods are often implemented via multi-task learning with additional supervision, yet they do not necessarily improve the final detection performance. In contrast, we propose an attention mechanism to automatically detect the manipulated region for face images, which requires very few additional trainable parameters. In computer vision, attention models have been widely used for image classification [12, 51, 56], image inpainting [33, 60] and object detection [11, 59]. Attention not only serves to select a focused location but also enhances object representations at that location, which is effective for learning generalizable features for a given task. A number of methods [22, 54, 55] utilize an attention mechanism to enhance the accuracy of CNN classification models. Residual Attention Network [51] improves the accuracy of the classification model using 3D self-attention maps. Choe et al. [14] propose an attention-based dropout layer to process the feature maps of the model, which improves the localization accuracy of CNN classifiers. To our knowledge, this is the first work to develop the attention mechanism to face manipulation detection and localization.
+
+# 3. Proposed Method
+
+We pose the manipulated face detection as a binary classification problem using a CNN-based network. We further
+
+propose to utilize the attention mechanism to process the feature maps of the classifier model. The learned attention maps can highlight the regions in an image which influence the CNN's decision, and further be used to guide the CNN to discover more discriminative features.
+
+# 3.1. Motivation for the Attention Map
+
+Assuming the attention map can highlight the manipulated image regions, and thereby guide the network to detect these regions, this alone should be useful for the face forgery detection. In fact, each pixel in the attention map would compute a probability that its receptive field corresponds to a manipulated region in the input image. Digital forensics has shown that camera model identification is possible due to "fingerprints" in the high-frequency information of a real image [13]. It is thus feasible to detect abnormalities in this high-frequency information due to algorithmic processing. Hence we insert the attention map into the backbone network where the receptive field corresponds to appropriately sized local patches. Then, the features before the attention map encode the high-frequency fingerprint of the corresponding patch, which may discriminate between real and manipulated regions at the local level.
+
+Three major factors were considered during the construction and development of our attention map; $i$ ) explainability, ii) usefulness, and iii) modularity.
+
+Explainability: Due to the fact that a face image can be modified entirely or in part, we produce an attention map that predicts where the modified pixels are. In this way, an auxiliary output is produced to explain which spatial regions the network based its decision on. This differs from prior works in that we use the attention map as a mask to remove any irrelevant information from the high-dimensional features within the network. During training, for a face image where the entire image is real, the attention map should ignore the entire image. For a modified or generated face, at
+
+least some parts of the image are manipulated, and therefore the ideal attention map should focus only on these parts.
+
+Usefulness: One objective of our proposed attention map is that it enhances the final binary classification performance of the network. This is accomplished by feeding the attention map back into the network to ignore non-activated regions. This follows naturally from the fact that modified images may only be partially modified. Through the attention map, we can remove the real regions of a partial fake image so that the features used for final binary classification are purely from modified regions.
+
+Modularity: To create a truly utilitarian solution, we take great care to maintain the modularity of the solution. Our proposed attention map can be implemented easily and plugged into existing backbone networks, through the inclusion of a single convolution layer, its associated loss functions, and masking the subsequent high-dimensional features. This can even be done while leveraging pre-trained networks by initializing only the weights that are used to produce the attention map.
+
+# 3.2. Attention-based Layer
+
+As shown in Fig. 3, the attention-based layer can be applied to any feature map of a classification model, and focus the network's attention on discriminative regions. Specifically, the input of the attention-based layer is a convolutional feature map $\mathbf{F} \in \mathbb{R}^{H \times W \times C}$ , where $H$ , $W$ , $C$ are height, width, and the number of channels, respectively. For simplicity, we omit the mini-batch dimension in this notation. Then we can generate an attention map $\mathbf{M}_{att} = \Phi(\mathbf{F}) \in \mathbb{R}^{H \times W}$ by processing $\mathbf{F}$ , where $\Phi(\cdot)$ denotes the processing operator. The output of attention module is the refined feature map $\mathbf{F}'$ , which is calculated as:
+
+$$
+\mathbf {F} ^ {\prime} = \mathbf {F} \odot \operatorname {S i g m o i d} \left(\mathbf {M} _ {a t t}\right), \tag {1}
+$$
+
+where $\odot$ denotes element-wise multiplication. The intensity of each pixel in the attention map is close to 0 for the real regions, and close to 1 for the fake regions. In other words, the pixel of the attention map indicates the probability of the original image patch being a fake region. This helps the subsequent backbone network to focus its processing to the non-zeros areas of the attention map, i.e., the fake regions. Here, we propose two approaches to implement $\Phi(\cdot)$ : manipulation appearance model and direct regression. Manipulation Appearance Model (MAM). We assume that any manipulated map can be represented as a linear combination of a set of map prototypes:
+
+$$
+\mathbf {M} _ {a t t} = \overline {{\mathbf {M}}} + \mathbf {A} \cdot \alpha , \tag {2}
+$$
+
+where $\bar{\mathbf{M}}\in \mathbb{R}^{(H\cdot W)\times 1}$ and $\mathbf{A}\in \mathbb{R}^{(H\cdot W)\times n}$ are the predefined average map and basis functions of maps. Thus the attention map generation can be translated to estimate the
+
+
+Figure 4. Mean map $\overline{\mathbf{M}}$ and 10 basis components $\mathbf{A}$ .
+
+weight parameter $\alpha \in \mathbb{R}^{n\times 1}$ , for each training image. We utilize one additional convolution and one fully connected layer to regress the weights from the feature map $\mathbf{F}$ (Fig. 3).
+
+The benefit of our proposed MAM is two fold. First, this constrains the solution space of map estimation. Second, the complexity of the attention estimation is decreased, which is helpful for generalization. To calculate the statistical bases $\mathbf{A}$ , we apply Principal Component Analysis (PCA) to 100 ground-truth manipulation masks computed from FaceAPP. The first 10 principal components are used as bases, i.e., $n = 10$ . Fig. 4 shows the mean map and 10 bases (or templates).
+
+Direct Regression. Another way to implement $\Phi(\cdot)$ is to estimate the attention map via a convolutional operation $f$ : $\mathbf{F} \xrightarrow{f} \mathbf{M}_{att}$ . $f$ can consist of multiple convolutional layers or a single layer. This direct regression method is simple, yet effective, for adaptive feature refinement. Later we show that the benefits of our proposed attention-based layer are realized regardless of the choice of backbone networks. This further validates our claim that the proposed solution is modular and improves the usefulness and flexibility of the attention map.
+
+# 3.3. Loss Functions
+
+To train the binary classification network, we may begin with a pre-trained backbone network or to learn the backbone from scratch. Either way, the overall training loss is:
+
+$$
+\mathcal {L} = \mathcal {L} _ {\text {c l a s s i f i e r}} + \lambda * \mathcal {L} _ {\text {m a p}}, \tag {3}
+$$
+
+where $\mathcal{L}_{\mathrm{classifier}}$ is the binary classification loss of Softmax and $\mathcal{L}_{\mathrm{map}}$ is the attention map loss. $\lambda$ is the loss weight.
+
+For attention map learning, we consider three different cases: supervised, weakly supervised, and unsupervised.
+
+Supervised learning. If the training samples are paired with ground truth attention masks, we can train the network in a supervised fashion, using Eqn. 4.
+
+$$
+\mathcal {L} _ {\text {m a p}} = \left| \left| \mathbf {M} _ {a t t} - \mathbf {M} _ {g t} \right| \right| _ {1}, \tag {4}
+$$
+
+where $\mathbf{M}_{gt}$ is the ground truth manipulation mask. We use zero-maps as the $\mathbf{M}_{gt}$ for real faces, and one-maps as the $\mathbf{M}_{gt}$ for entirely synthesized fake faces. For partially manipulated faces, we pair fake images with their corresponding source images, compute the absolute pixel-wise difference in the RGB channels, convert into grayscale, and di
+
+Table 1. Comparison of fake face datasets along different aspects: number of still images, number of videos, number of fake types (identity swap (Id. swap), expression swap (Exp. swap), attributes manipulation, and entire image synthesis (Entire syn.)) and pose variation.
+
+| Dataset | Year | # Still images | # Video clips | # Fake types | Pose variation |
| Real | Fake | Real | Fake | Id. swap | Exp. swap | Attr. mani. | Entire syn. |
| Zhou et al. [61] | 2018 | 2,010 | 2,010 | - | - | 2 | - | - | - | Unknown |
| Yang et al. [58] | 2018 | 241 | 252 | 49 | 49 | 1 | - | - | - | Unknown |
| Deepfake [29] | 2018 | - | - | - | 620 | 1 | - | - | - | Unknown |
| FaceForensics++ [42] | 2019 | - | - | 1,000 | 3,000 | 2 | 1 | - | - | [-30°, 30°] |
| FakeSpotter [52] | 2019 | 6,000 | 5,000 | - | - | - | - | - | 2 | Unknown |
| DFFD (our) | 2019 | 58,703 | 240,336 | 1,000 | 3,000 | 2 | 1 | 28 + 40 | 2 | [-90°, 90°] |
+
+vide by 255 to produce a map in the range of [0, 1]. We empirically determine the threshold of 0.1 to obtain the binary modification map as $\mathbf{M}_{gt}$ . We posit this strong supervision can help attention-based layer to learn the most discriminative regions and features for fake face detection.
+
+Weakly supervised learning. For partially manipulated faces, sometimes the source images are not available. Hence, we can not obtain the ground truth manipulation mask as described above. However, we would still like to include these faces in learning the attention maps. To this end, we propose a weak supervision map loss as in Eqn. 5:
+
+$$
+\mathcal {L} _ {\mathrm {m a p}} = \left\{ \begin{array}{l l} | \text {S i g m o i d} (\mathbf {M} _ {a t t}) - 0 |, & \text {i f r e a l} \\ | \max (\text {S i g m o i d} (\mathbf {M} _ {a t t})) - 0. 7 5 |. & \text {i f f a k e} \end{array} \right. \tag {5}
+$$
+
+This loss drives the attention map to remain un-activated for real images, i.e., all 0. For fake images, regardless of entire or partial manipulation, the maximum map value across the entire map should be sufficiently large, 0.75 in our experiments. Hence, for partial manipulation, an arbitrary number of the map values can be zeros, as long as at least one modified local region has a large response.
+
+Unsupervised learning. The proposed attention module can also allow us to train the network without any map supervision when $\lambda_{m}$ is set to 0. With only image-level classification supervision, the attention map learns informative regions automatically. More analysis of these losses is available in the experiments section.
+
+# 4. Diverse Fake Face Dataset
+
+One of our contributions is the construction of a dataset with diverse types of fake faces, termed Diverse Fake Face Dataset (DFFD). Compared with previous datasets in Tab. 1, DFFD contains greater diversity, which is crucial for detection and localization of face manipulations.
+
+Data Collection. In Sec. 1, we introduced four main facial manipulation types: identity swap, expression swap, attribute manipulation, and entire synthesized faces. We thus collect data from these four categories by adopting respective state-of-the-art (SOTA) methods to generate fake images. Among all images and video frames, $47.7\%$ are from male subjects, $52.3\%$ are from females, and the majority of samples are from subjects in the range 21-50 years of age.
+
+For the face size, both real and fake samples have both low quality and high quality images. This ensures that the distributions of gender, age, and face size are less biased.
+
+Real face images. We utilize FFHQ [26] and CelebA [36] datasets as our real face samples since the faces contained therein cover comprehensive variations in race, age, gender, pose, illumination, expression, resolution, and camera capture quality. We further utilize the source frames from FaceForensics++ [42] as additional real faces.
+
+Identity and expression swap. For facial identity and expression swap, we use all the video clips from FaceForensics++ [42]. The FaceForensics++ contains 1,000 real videos collected from YouTube and their corresponding 3,000 manipulated versions which are divided into two groups: identity swap using FaceSwap and Deepfake [3], and expression swap using Face2Face [47]. From a public website [1], we collect additional identity swap data, which are videos generated by Deep Face Lab (DFL) [2].
+
+Attributes manipulation. We adopt two methods FaceAPP [4] and StarGAN [15] to generate attribute manipulated images, where 4,000 faces of FFHQ and 2,000 faces of CelebA are the respective input real images. FaceAPP, as a consumer-level smartphone app, provides 28 filters to modify specified facial attributes, e.g., gender, age, hair, beard, and glasses. The images are randomly modified with an automated script running on Android devices. For each face in FFHQ, we generate three corresponding fake images: two with a single random manipulation filter, and one with multiple manipulation filters. For each face in CelebA, we generate 40 fake images by StarGAN, a GAN-based image-to-image translation method. In total, we collect 92K attribute manipulated images.
+
+Entire face synthesis. Recent works such as PGGAN [25] and StyleGAN [26] achieve remarkable success in realistic face image synthesis. PGGAN proposes a progressive training scheme both for generator and discriminator, which can produce high-quality images. StyleGAN redesigns the generator by borrowing from style transfer literature. Thus, we use the pre-trained model of PGGAN and StyleGAN to create 200k and 100k high-quality entire fake images, respectively. Figure 5 shows examples of DFFD.
+
+Pre-processing. InsightFace [21] is utilized to estimate the bounding box and 5 landmarks for each image. We discard images whose detection or alignment fails. We further gen
+
+
+Figure 5. Example faces in our DFFD. (a) Real images/frames from FFHQ, CelebA and FaceForensics++ datasets; (b) Paired face identity swap images from FaceForensics++ dataset; (c) Paired face expression swap images from FaceForensics++ dataset; (d) Attributes manipulated examples by FaceAPP and StarGAN; (e) Entire synthesized faces by PGGAN and StyleGAN.
+
+erate ground truth manipulation masks for fake images as described in Sec. 3.3. To enforce consistency, if a fake face image is derived from a source real face image, we use the same landmarks of the real face image for face cropping.
+
+Protocols. We collect 781,727 samples for real image, and 1,872,007 samples for fake ones. Within these samples, we randomly select a subset of 58,703 real images and 240,336 fake ones to make the size of our dataset manageable and to balance the size of each sub-category. For video samples, we extract one frame per second in order to reduce the size without sacrificing the diversity of DFFD. We randomly split the data into $50\%$ for training, $5\%$ for validation and $45\%$ for testing. All fake images manipulated from the same real image are in the same set as the source image.
+
+# 5. Experimental Results
+
+# 5.1. Experimental Setup
+
+Implementation Details: The loss weight $\lambda$ is set to 1 and the batch size is 16, where each mini-batch consists of 8 real and 8 fake images. We use XceptionNet [16] and VGG16 [44] as backbone networks. Both two networks were pre-trained on ImageNet and fine-tuned on DFFD. Adam optimizer is used with a learning rate of 0.0002 in all experiments. Depending on the backbone architecture, we train for 75k-150k iterations, which requires less than 8 hours on an NVidia GTX 1080Ti.
+
+Table 2. Ablation for the benefit of the attention map, with various combinations of map generation methods and supervisions. [Key: top performance for supervised and weakly supervised methods]
+
+| Map Supervision | AUC | EER | TDR0.01% | TDR0.1% | PBCA |
| Xception | 99.61 | 2.88 | 77.42 | 85.26 | - |
| + Reg., unsup. | 99.76 | 2.16 | 77.07 | 89.70 | 12.89 |
| + Reg., weak sup. | 99.66 | 2.57 | 46.57 | 75.20 | 30.99 |
| + Reg., sup. | 99.64 | 2.23 | 83.83 | 90.78 | 88.44 |
| + Reg., sup. - map | 99.69 | 2.73 | 48.54 | 72.94 | 88.44 |
| + MAM, unsup. | 99.55 | 3.01 | 58.55 | 77.95 | 36.66 |
| + MAM, weak sup. | 99.68 | 2.64 | 72.47 | 82.74 | 69.49 |
| + MAM, sup. | 99.26 | 3.80 | 77.72 | 86.43 | 85.93 |
| + MAM, sup. - map | 98.75 | 6.24 | 58.25 | 70.34 | 85.93 |
+
+Metrics: For all experiments, we utilize the protocols defined in Sec. 4. For detection, we report Equal Error Rate (EER), Area Under Curve (AUC) of ROC, True Detect Rate (TDR) at False Detect Rate (FDR) of $0.01\%$ (denoted as $\mathrm{TDR}_{0.01\%}$ ), and TDR at FDR of $0.1\%$ (denoted as $\mathrm{TDR}_{0.1\%}$ ). For localization, with known ground-truth masks, we report Pixel-wise Binary Classification Accuracy (PBCA), which treats each pixel as an independent sample to measure classification accuracy, Intersection over Union (IoU), and Cosine similarity between two vectorized maps. We also propose a novel metric, termed Inverse Intersection Non-Containment (IINC) for evaluating face manipulation localization performance, as described in Sec. 5.4.
+
+# 5.2. Ablation Study
+
+Benefit of Attention map: We utilize the SOTA XceptionNet [16] as our backbone network. It is based on depthwise separable convolution layers with residual connections. We convert XceptionNet into our model by inserting the attention-based layer between Block 4 and Block 5 of the middle flow, and then fine-tune on DFFD training set.
+
+In Tab. 2, we show a comparison of the direct regression (Reg.) and manipulation appearance model (MAM) with different supervision strategies, i.e., unsupervised (unsup.), weakly supervised (weak sup.) and supervised (sup.) learning. While four detection metrics are listed for completeness, considering the overall strong performance of some metrics and the preferred operational point of low FDR in practice, TDR at low FDR (i.e., $\mathrm{TDR}_{0.01\%}$ ) should be the primary metric for comparing various methods.
+
+Unsurprisingly, the supervised learning outperforms the weakly supervised and unsupervised, in both the detection and localization accuracies. Additionally, comparing two map estimation approaches, regression-based method performs better with supervision. In contrast, MAM-based method is superior for weakly supervised or unsupervised cases as MAM offers strong constraint for map estimation.
+
+Finally, instead of using the softmax output, an alternative is to use the average of the estimated attention map for detection, since loss functions encourage low attention values for real faces while higher values for fake ones. The
+
+Table 3. Our attention layer in two backbone networks.
+
+| Network | AUC | EER | TDR0.01% | TDR0.1% | PBCA |
| Xception | 99.61 | 2.88 | 77.42 | 85.26 | - |
| Xception + Reg. | 99.64 | 2.23 | 83.83 | 90.78 | 88.44 |
| Xception + MAM | 99.26 | 3.80 | 77.72 | 86.43 | 85.93 |
| VGG16 | 96.95 | 8.43 | 0.00 | 51.14 | - |
| VGG16 + Reg. | 99.46 | 3.40 | 44.16 | 61.97 | 91.29 |
| VGG16 + MAM | 99.67 | 2.66 | 75.89 | 87.25 | 86.74 |
+
+
+Figure 6. Forgery detection ROCs of the XceptionNet backbone with and without the attention mechanism.
+
+performance of this alternative is shown in the rows of ‘*, sup. - map’ in Tab. 2. Although this is not superior to the softmax output, it demonstrates that the attention map is itself useful for the facial forgery detection task.
+
+Effect on Backbone Networks: We also report the results of a shallower backbone network VGG16 [44]. Tab. 3 compares XceptionNet and VGG16 with and without the attention layer. Both Reg. and MAM models are trained in the supervised case. We observe that using attention mechanism does improve the detection on both backbones.
+
+Specifically, with a large and deep network (Xception-Net), the attention map can be directly produced by the network given the large parameter space. This directly produced attention map can better predict the manipulated regions than a map estimated from the MAM bases. Inversely, when using a smaller and shallower network (VGG16), we find that the direct production of the attention map causes contention in the parameter space. Hence including the prior of the MAM bases reduces this contention and allows for increased detection performance, though its estimation of the manipulated regions is constrained by the map bases.
+
+# 5.3. Forgery Detection Results
+
+We first show the ROCs on our DFFD in Fig. 6. Obviously, the direct regression approach for the attention map produces the best performing network at low FDR, which is not only the most challenging scenario, but also the most relevant to the practical applications. In addition, the proposed attention layer substantially outperforms the conventional XceptionNet, especially at lower FDR. Fig. 7 plots binary classification accuracy of our Reg., sup and baseline for different fake types of DFFD. The proposed approach
+
+
+Figure 7. Binary classification accuracy for different fake types.
+
+Table 4. AUC (%) on UADFV and Celeb-DF.
+
+| Methods | Training data | UADFV [58] | Celeb-DF [31] |
| Two-stream [61] | Private data | 85.1 | 55.7 |
| Meso4 [6] | Private data | 84.3 | 53.6 |
| MesoInception4 [6] | 82.1 | 49.6 |
| HeadPose [58] | UADFV | 89.0 | 54.8 |
| FWA [30] | UADFV | 97.4 | 53.8 |
| VA-MLP [38] | Private data | 70.2 | 48.8 |
| VA-LogReg [38] | 54.0 | 46.9 |
| Multi-task [39] | FF | 65.8 | 36.5 |
| Xception-FF++ [42] | FF++ | 80.4 | 38.7 |
| Xception | DFFD | 75.6 | 63.9 |
| Xception | UADFV | 96.8 | 52.2 |
| Xception | UADFV, DFFD | 97.5 | 67.6 |
| Xception+Reg. | DFFD | 84.2 | 64.4 |
| Xception+Reg. | UADFV | 98.4 | 57.1 |
| Xception+Reg. | UADFV, DFFD | 98.4 | 71.2 |
+
+benefits forgery detection of all considered fake types, especially for the facial identity and expression swap.
+
+We further validate our model on public datasets, where SOTA facial forgery detection methods have been tested. Table 4 summarizes the performance of all methods. Note that the performances shown here are not strictly comparable since not all methods are trained on the same dataset. First, we evaluate on the UADFV and Celeb-DF datasets with the models trained with DFFD. As shown in Tab. 4, our proposed approach significantly outperforms all the baselines on Celeb-DF and achieves competitive results on UADFV. FWA [30] and HeadPose [58] demonstrate superior performance on UADFV partially because they are trained on the same UADFV dataset, while this data source is not in our DFFD. Second, for a fair comparison, we train our method and baseline Xception on UADFV training set. In this case, our method outperforms all baselines on UADFV, and still shows superior generalization on Celeb-DF. Third, the results in Tab. 4 also help us to identify both the source and amount of improvements. For example, $75.6\% \rightarrow 84.2\%$ is an improvement due to attention mechanism while $52.2\% \rightarrow 63.9\%$ and $57.1\% \rightarrow 64.4\%$ are due to the greater diversity of DFFD dataset.
+
+# 5.4. Manipulation Localization Results
+
+We utilize three metrics for evaluating the attention maps: Intersection over Union (IoU), Cosine Similarity, and Pixel-wise Binary Classification Accuracy (PBCA). However, these three metrics are inadequate for robust evaluation of these diverse maps. Thus, we propose a novel metric defined in Eqn. 6, termed Inverse Intersection Non
+
+
+Figure 8. Estimated attention maps by applying Xception + Reg. sup. model to real and 4 types of manipulated images, with IINC and PBCA scores computed w.r.t. ground truth. While the overall areas of the attention maps are correct, their fidelity could be further improved.
+
+Table 5. Evaluating manipulation localization with 4 metrics.
+
+| Data | IINC ↓ | IoU ↑ | Cosine Similarity ↓ | PBCA ↑ |
| All Real | 0.015 | - | - | 0.998 |
| All Fake | 0.147 | 0.715 | 0.192 | 0.828 |
| Partial | 0.311 | 0.401 | 0.429 | 0.786 |
| Complete | 0.077 | 0.847 | 0.095 | 0.847 |
| All | 0.126 | - | - | 0.855 |
+
+Containment (IINC), to evaluate the predicted maps:
+
+$$
+I I N C = \frac {1}{3 - | \mathbf {U} |} * \left\{ \begin{array}{l l} 0 & \text {i f} \overline {{\mathbf {M} _ {\mathrm {g t}}}} = 0 \text {a n d} \overline {{\mathbf {M} _ {\mathrm {a t t}}}} = 0 \\ 1 & \text {i f} \overline {{\mathbf {M} _ {\mathrm {g t}}}} = 0 \text {x o r} \overline {{\mathbf {M} _ {\mathrm {a t t}}}} = 0 \\ (2 - \frac {| \mathbf {I} |}{| \mathbf {M} _ {\mathrm {a t t}} |} - \frac {| \mathbf {I} |}{| \mathbf {M} _ {\mathrm {g t}} |}) & \text {o t h e r w i s e ,} \end{array} \right. \tag {6}
+$$
+
+where $\mathbf{I}$ and $\mathbf{U}$ are the intersection and union between the ground truth map, $\mathbf{M}_{gt}$ , and the predicted map, $\mathbf{M}_{att}$ , respectively. $\overline{\mathbf{M}}$ and $|\mathbf{M}|$ are the mean and $L_{1}$ norm of $\mathbf{M}$ , respectively. The two fractional terms measure the ratio of the area of the intersection w.r.t. the area of each map, respectively. IINC improves upon other metrics by measuring the non-overlap ratio of both maps, rather than their combined overlap, as in IoU. Additionally, the IoU and Cosine Similarity are undefined when either map is uniformly 0, which is the case for real face images.
+
+The benefits of IINC as compared to other metrics are shown in Fig. 9. Note that IOU and Cosine similarity are not useful for cases (a-c), where the scores are the same, but the maps have vastly different properties. Similarly, PBCA is not useful for the cases (e-g), as the ratio of misclassification is not represented in PBCA. For example, case (g) over-estimates by a factor of $100\%$ and case (e) over-estimates by $200\%$ , while case (f) both over- and under-estimates by $150\%$ . The IINC provides the optimal ordering by producing the same order as IOU when it is useful, cases (d-g), and similarly with PBCA when it is useful, cases (a-c). Thus, IINC is a more robust metric for comparing the attention maps than the previous metrics.
+
+The localization ability of our Xception + Reg. sup. model to predict the attention maps is shown in Tab. 5. In Fig. 8, we show the IINC and PBCA for some test examples.
+
+
+Figure 9. A toy-example comparing 4 metrics in evaluating attention maps. White is the manipulated pixel and black is the real pixel. IOU and Cosine metrics do not adequately reflect the differences in cases (a-c), while PBCA is not useful for cases (e-g). In contrast, the proposed IINC is discriminative in all cases.
+
+The ordering of the IINC scores aligns with qualitative human analysis. The first cases in (d) and (e) are examples where the PBCA is high only because the majority of each map is non-activated. The IINC is more discriminative in these cases due to the non-overlap between the maps. For the third cases in (d) and (e), the IINC produces the same score because the maps display the same behavior (a large amount of over-activation), whereas the PBCA prefers the example in (d) because its maps have fewer activations.
+
+# 6. Conclusion
+
+We tackle the digitally manipulated face image detection and localization task. Our proposed method leverages an attention mechanism to process the feature maps of the detection model. The learned attention maps highlight the informative regions for improving the detection ability and also highlight the manipulated facial regions. In addition, we collect the first facial forgery dataset that contains diverse types of fake faces. Finally, we empirically show that the use of our attention mechanism improves facial forgery detection and manipulated facial region localization. This is the first unified approach that tackles a diverse set of face manipulation attacks, and also achieves the SOTA performance in comparison to previous solutions.
+
+# References
+
+[1] https://www.patreon.com/ctrl_shift_face. Accessed: 2019-09-04. 5
+[2] https://github.com/iperov/DeepFaceLab. Accessed: 2019-09-04. 5
+[3] Deepfakes github. https://github.com/deepfakes/faceswap. Accessed: 2019-09-11. 2, 3, 5
+[4] FaceApp. https://faceapp.com/app. Accessed: 2019-09-04. 2, 5
+[5] ZAO. https://apps.apple.com/cn/app/zao/id1465199127. Accessed: 2019-09-16. 2
+[6] Darius Afchar, Vincent Nozick, Junichi Yamagishi, and Isao Echizen. MesoNet: a compact facial video forgery detection network. In WIFS, 2018. 7
+[7] Shruti Agarwal, Hany Farid, Yuming Gu, Mingming He, Koki Nagano, and Hao Li. Protecting world leaders against deep fakes. In ICCVW, 2019. 1
+[8] Yousef Atoum, Yaojie Liu, Amin Jourabloo, and Xiaoming Liu. Face anti-spoofing using patch and depth-based CNNs. In IJCB, 2017. 1
+[9] Vijay Badrinarayanan, Alex Kendall, and Roberto Cipolla. Segnet: A deep convolutional encoder-decoder architecture for image segmentation. PAMI, 2017. 3
+[10] David Bau, Jun-Yan Zhu, Hendrik Strobelt, Bolei Zhou, Joshua B Tenenbaum, William T Freeman, and Antonio Torralba. GAN dissection: Visualizing and understanding generative adversarial networks. In ICLR, 2019. 2
+[11] Juan C Caicedo and Svetlana Lazebnik. Active object localization with deep reinforcement learning. In ICCV, 2015. 3
+[12] Chunshui Cao, Xianming Liu, Yi Yang, Yinan Yu, Jiang Wang, Zilei Wang, Yongzhen Huang, Liang Wang, Chang Huang, Wei Xu, et al. Look and think twice: Capturing top-down visual attention with feedback convolutional neural networks. In CVPR, 2015. 3
+[13] Chang Chen, Zhiwei Xiong, Xiaoming Liu, and Feng Wu. Camera trace erasing. In CVPR, 2020. 3
+[14] Junsuk Choe and Hyunjung Shim. Attention-based dropout layer for weakly supervised object localization. In CVPR, 2019. 3
+[15] 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 CVPR, 2018. 2, 5
+[16] François Chollet. Xception: Deep learning with depthwise separable convolutions. In CVPR, 2017. 6
+[17] Kevin Dale, Kalyan Sunkavalli, Micah K Johnson, Daniel Vlasic, Wojciech Matusik, and Hanspeter Pfister. Video face replacement. In TOG, 2011. 1
+[18] Debayan Deb, Jianbang Zhang, and Anil K Jain. AdvFaces: Adversarial face synthesis. arXiv preprint arXiv:1908.05008, 2019. 1
+[19] Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In NeurIPS, 2014. 1
+
+[20] Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In ICLR, 2014. 1
+[21] Jia Guo, Jiankang Deng, Niannan Xue, and Stefanos Zafeiriou. Stacked dense U-Nets with dual transformers for robust face alignment. In BMVC, 2018. 5
+[22] Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In CVPR, 2018. 3
+[23] Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. In CVPR, 2017. 2
+[24] Amin Jourabloo, Yaojie Liu, and Xiaoming Liu. Face spoofing: Anti-spoofing via noise modeling. In ECCV, 2018. 1
+[25] Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of GANs for improved quality, stability, and variation. In ICLR, 2018. 2, 3, 5
+[26] Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In CVPR, 2019. 2, 3, 5
+[27] Hyeongwoo Kim, Pablo Carrido, Ayush Tewari, Weipeng Xu, Justus Thies, Matthias Niessner, Patrick Pérez, Christian Richardt, Michael Zollhöfer, and Christian Theobalt. Deep video portraits. TOG, 2018. 2
+[28] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. In ICLR, 2014. 1
+[29] Pavel Korshunov and Sébastien Marcel. DeepFakes: a new threat to face recognition? assessment and detection. arXiv preprint arXiv:1812.08685, 2018. 2, 5
+[30] Yuezun Li and Siwei Lyu. Exposing deepfake videos by detecting face warping artifacts. In CVPRW, 2019. 7
+[31] Yuezun Li, Xin Yang, Pu Sun, Honggang Qi, and Siwei Lyu. Celeb-DF: A new dataset for deepfake forensics. In CVPR, 2020. 7
+[32] Feng Liu, Ronghang Zhu, Dan Zeng, Qijun Zhao, and Xiaoming Liu. Disentangling features in 3D face shapes for joint face reconstruction and recognition. In CVPR, 2018. 1
+[33] 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
+[34] Yaojie Liu, Amin Jourabloo, and Xiaoming Liu. Learning deep models for face anti-spoofing: Binary or auxiliary supervision. In CVPR, 2018. 1
+[35] Yaojie Liu, Joel Stehouwer, Amin Jourabloo, and Xiaoming Liu. Deep tree learning for zero-shot face anti-spoofing. In CVPR, 2019. 1
+[36] Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaou Tang. Deep learning face attributes in the wild. In ICCV, 2015. 5
+[37] Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In ICLR, 2018. 1
+[38] Falko Matern, Christian Riess, and Marc Stamminger. Exploiting visual artifacts to expose deepfakes and face manipulations. In WACVW, 2019. 7
+[39] Huy H Nguyen, Fuming Fang, Junichi Yamagishi, and Isao Echizen. Multi-task learning for detecting and segmenting manipulated facial images and videos. In BTAS, 2019. 3, 7
+
+[40] Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In ICML, 2014. 1
+[41] Andreas Rössler, Davide Cozzolino, Luisa Verdoliva, Christian Riess, Justus Thies, and Matthias Nießner. FaceForensics: A large-scale video dataset for forgery detection in human faces. arXiv preprint arXiv:1803.09179, 2018. 1, 2
+[42] Andreas Rössler, Davide Cozzolino, Luisa Verdoliva, Christian Riess, Justus Thies, and Matthias Nießner. FaceForensics: Learning to detect manipulated facial images. In ICCV, 2019. 1, 2, 3, 5, 7
+[43] Kai Shu, Amy Sliva, Suhang Wang, Jiliang Tang, and Huan Liu. Fake news detection on social media: A data mining perspective. ACM SIGKDD Explorations Newsletter, 2017. 1
+[44] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. 6, 7
+[45] Supasorn Suwajanakorn, Steven M Seitz, and Ira Kemelmacher-Shlizerman. Synthesizing Obama: learning lip sync from audio. TOG, 2017. 2
+[46] Justus Thies, Michael Zollhöfer, Matthias Nießner, Levi Valgaerts, Marc Stamminger, and Christian Theobalt. Real-time expression transfer for facial reenactment. TOG, 2015. 2
+[47] Justus Thies, Michael Zollhofer, Marc Stamminger, Christian Theobalt, and Matthias Nießner. Face2Face: Real-time face capture and reenactment of RGB videos. In CVPR, 2016. 1, 2, 5
+[48] Luan Tran and Xiaoming Liu. On learning 3D face morphable model from in-the-wild images. TPAMI, 2019. 1, 2
+[49] Luan Tran, Xi Yin, and Xiaoming Liu. Disentangled representation learning GAN for pose-invariant face recognition. In CVPR, 2017. 2
+[50] Luan Tran, Xi Yin, and Xiaoming Liu. Representation learning by rotating your faces. TPAMI, 2018. 1
+[51] Fei Wang, Mengqing Jiang, Chen Qian, Shuo Yang, Cheng Li, Honggang Zhang, Xiaogang Wang, and Xiaou Tang. Residual attention network for image classification. In CVPR, 2017. 3
+[52] Run Wang, Lei Ma, Felix Juefei-Xu, Xiaofei Xie, Jian Wang, and Yang Liu. FakeSpotter: A simple baseline for spotting AI-synthesized fake faces. arXiv preprint arXiv:1909.06122, 2019. 5
+[53] Sheng-Yu Wang, Oliver Wang, Andrew Owens, Richard Zhang, and Alexei A Efros. Detecting photoshopped faces by scripting photoshop. In ICCV, 2019. 2
+[54] Xiaolong Wang, Ross Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. In CVPR, 2018. 3
+[55] Sanghyun Woo, Jongchan Park, Joon-Young Lee, and In So Kweon. CBAM: Convolutional block attention module. In ECCV, 2018. 3
+[56] Tianjun Xiao, Yichong Xu, Kuiyuan Yang, Jiaxing Zhang, Yuxin Peng, and Zheng Zhang. The application of two-level attention models in deep convolutional neural network for fine-grained image classification. In CVPR, 2015. 3
+
+[57] Han Xu, Yao Ma, Haochen Liu, Debayan Deb, Hui Liu, Jiliang Tang, and Anil Jain. Adversarial attacks and defenses in images, graphs and text: A review. International Journal of Automation and Computing, 2020. 1
+[58] Xin Yang, Yuezun Li, and Siwei Lyu. Exposing deep fakes using inconsistent head poses. In ICASSP, 2019. 5, 7
+[59] Donggeun Yoo, Sunggyun Park, Joon-Young Lee, Anthony S Paek, and In So Kweon. AttentionNet: Aggregating weak directions for accurate object detection. In ICCV, 2015. 3
+[60] Jiahui Yu, Zhe Lin, Jimei Yang, Xiaohui Shen, Xin Lu, and Thomas S Huang. Generative image inpainting with contextual attention. In CVPR, 2018. 3
+[61] Peng Zhou, Xintong Han, Vlad I Morariu, and Larry S Davis. Two-stream neural networks for tampered face detection. In CVPRW, 2017. 2, 5, 7
+[62] Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In ICCV, 2017. 2
+[63] Jun-Yan Zhu, Richard Zhang, Deepak Pathak, Trevor Darryll, Alexei A Efros, Oliver Wang, and Eli Shechtman. Toward multimodal image-to-image translation. In NeurIPS, 2017. 2
+[64] Michael Zollhöfer, Justus Thies, Pablo Garrido, Derek Bradley, Thabo Beeler, Patrick Pérez, Marc Stamminger, Matthias Nießner, and Christian Theobalt. State of the art on monocular 3D face reconstruction, tracking, and applications. In Computer Graphics Forum, 2018. 1
\ No newline at end of file
diff --git a/onthedetectionofdigitalfacemanipulation/images.zip b/onthedetectionofdigitalfacemanipulation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..936ced6f4227f90619ace49ea01c3b5c2e2dac53
--- /dev/null
+++ b/onthedetectionofdigitalfacemanipulation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:794d821aa3d8c0f255f4240ed6569f1439da749a455b440b5ad30a1e09ef0ba6
+size 561925
diff --git a/onthedetectionofdigitalfacemanipulation/layout.json b/onthedetectionofdigitalfacemanipulation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..caa0f668937cea66eb400dc447607dd2c8ed9cf5
--- /dev/null
+++ b/onthedetectionofdigitalfacemanipulation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:97a2fafdcc0103354a292ef3b9f12250252ba8b682296d4cf7823b9038a74337
+size 385935
diff --git a/onthedistributionofminimainintrinsicmetricrotationaveraging/e8112cb2-530b-4cf0-81ee-9353398cf657_content_list.json b/onthedistributionofminimainintrinsicmetricrotationaveraging/e8112cb2-530b-4cf0-81ee-9353398cf657_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..227a4620ce8aaab0d749e0c7d1dcb03f4049001f
--- /dev/null
+++ b/onthedistributionofminimainintrinsicmetricrotationaveraging/e8112cb2-530b-4cf0-81ee-9353398cf657_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0ac06017d06f9edd2ce1e9a466f18c0e9f678ebcfd1311a5b185362fc51f5950
+size 82396
diff --git a/onthedistributionofminimainintrinsicmetricrotationaveraging/e8112cb2-530b-4cf0-81ee-9353398cf657_model.json b/onthedistributionofminimainintrinsicmetricrotationaveraging/e8112cb2-530b-4cf0-81ee-9353398cf657_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..f5fd84541dba9d0d35d8eb9587dd32700bb228f4
--- /dev/null
+++ b/onthedistributionofminimainintrinsicmetricrotationaveraging/e8112cb2-530b-4cf0-81ee-9353398cf657_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8a80f0289206576e4c1cb8289634db66b10a6c651c8abea0a291a4b9bb19ded1
+size 94692
diff --git a/onthedistributionofminimainintrinsicmetricrotationaveraging/e8112cb2-530b-4cf0-81ee-9353398cf657_origin.pdf b/onthedistributionofminimainintrinsicmetricrotationaveraging/e8112cb2-530b-4cf0-81ee-9353398cf657_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..f8eff4fe7ab964b043336fa7d8bfe4aee7912cec
--- /dev/null
+++ b/onthedistributionofminimainintrinsicmetricrotationaveraging/e8112cb2-530b-4cf0-81ee-9353398cf657_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:41a01f091a91bee2fabf3b9047e64571419159836b0303760a656a4f76ac48c0
+size 349709
diff --git a/onthedistributionofminimainintrinsicmetricrotationaveraging/full.md b/onthedistributionofminimainintrinsicmetricrotationaveraging/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..960f7dc37b1758f845aa6956a05fd44793909122
--- /dev/null
+++ b/onthedistributionofminimainintrinsicmetricrotationaveraging/full.md
@@ -0,0 +1,404 @@
+# On the Distribution of Minima in Intrinsic-Metric Rotation Averaging
+
+Kyle Wilson
+Washington College
+Department of Math and Computer Science
+Chestertown, MD
+
+kwilson24@washcoll.edu
+
+David Bindel Cornell University Department of Computer Science Ithaca, NY
+
+bindel@cs.cornell.edu
+
+# Abstract
+
+Rotation Averaging is a non-convex optimization problem that determines orientations of a collection of cameras from their images of a 3D scene. The problem has been studied using a variety of distances and robustifiers. The intrinsic (or geodesic) distance on SO(3) is geometrically meaningful; but while some extrinsic distance-based solvers admit (conditional) guarantees of correctness, no comparable results have been found under the intrinsic metric.
+
+In this paper, we study the spatial distribution of local minima. First, we do a novel empirical study to demonstrate sharp transitions in qualitative behavior: as problems become noisier, they transition from a single (easy-to-find) dominant minimum to a cost surface filled with minima. In the second part of this paper we derive a theoretical bound for when this transition occurs. This is an extension of the results of [24], which used local convexity as a proxy to study the difficulty of problem. By recognizing the underlying quotient manifold geometry of the problem we achieve an $n$ -fold improvement over prior work. Incidentally, our analysis also extends the prior $l_{2}$ work to general $l_{p}$ costs. Our results suggest using algebraic connectivity as an indicator of problem difficulty.
+
+# 1. Introduction
+
+The rotation averaging problem arises in computer vision as part of estimating the 3-dimensional poses of a set of cameras. We are given many images of some scene, produced by cameras at unknown locations and with unknown orientations. When two images overlap, it is often possible to estimate the relative orientation of the associated cameras. By considering many overlapping camera pairs we obtain many such pairwise measurements.
+
+Essentially, rotation averaging is an optimization problem on a graph in which vertices represent cameras and edges represent measurements of relative orientation. The goal is to pick an absolute orientation for each vertex in a way that
+
+best agrees with the relative orientation measurements. Both the relative and absolute orientations must be in SO(3), the group of orientation-preserving rotations of 3D space.
+
+We may choose the cost function used in rotation averaging for convenience of computation, for the existence of theoretical guarantees, or for modeling concerns. From a geometric perspective, costs based on intrinsic metrics—geodesic distances on $\mathrm{SO}(3)$ —are a natural choice. However, no such method is presently known to have a guarantee of global convergence. In fact, the $l_{2}$ geodesic cost is known to yield a non-convex problem. Formulations based on extrinsic costs—non-manifold distances within representations—have been more tractable and sometimes give optimality guarantees. When solvers fail the junk solutions doom downstream problems, such as translations averaging and bundle adjustment.
+
+This paper considers cost functions based on the intrinsic, geodesic distance. Two recent surveys [9, 21] propose a familiar pattern: use an extrinsic solver to generate a candidate solution, then refine with with a solver chosen for its modeling properties—even if the latter solver only guarantees local optimality. This is a common pattern in geometric computer vision, with a well-known exemplar being the "Gold-Standard" algorithm for estimating homographies [15]. The extrinsic-intrinsic solver pattern leads to some key questions: "Is this initial guess good enough for us to discover the best solution?" and "Why do some problems require much better initial guesses than others?" In this paper, we seek partial answers to these questions. (Note that we do not propose a new solver.) We make two main contributions:
+
+1. We empirically investigate the cost surfaces of intrinsic rotation averaging problems. We demonstrate how properties of the problem instance can lead to challenging distributions of local minima.
+2. We derive bounds on this behavior by improving the local convexity analysis in [24]. We show how rotation averaging's gauge symmetry leads to a quotient-manifold description of the optimization problem, which leads to an $n$ -fold improvement in bounds.
+
+# 2. Related Work
+
+Relaxed Approaches. The seminal paper introducing the rotation averaging problem [13] also proposed a solver based on the unit quaternion representation of 3D rotations. This is a prototypical relaxed method: by ignoring the length-1 constraint and minimizing Euclidean distances between quaternions, the problem becomes linear. The solution may not satisfy the unit constraint (hence not actually represent rotations), but it can be normalized easily. Many later methods follow the same pattern of solving a relaxed problem, then "rounding" the solution to satisfy the constraints. Most works in this line use a rotation matrix representation and relax the orthonormality and determinant constraints. Martinec and Pajdla [17] relaxed to a least-squares problem. Arie-Nachimson et al. [3] give a spectral solution to a similar cost. Arrigoni et al. [4] solve their relaxed problem in a low rank + sparse framework for greater robustness to outliers. Wang and Singer [23] seek robustness by solving an $l_{1}$ relaxed problem. Unfortunately, even if the unconstrained problem can be solved exactly, the final rounded solution is generally not an optimal solution to any particular problem, and the "relaxation gaps" due to rounding are not well understood.
+
+Manifold Approaches. Manifold methods use the tools of Riemannian geometry to optimize directly on the rotations manifold. In practice, this involves iteratively solving a series of Euclidean tangent space problems. Govindu [14] pioneered this approach, and Hartley et al. [16] and Chatterjee and Govindu [10] have proposed robustified methods. Tron et al. [20] give a distributed consensus solver for a specific "reshaped" cost. Unfortunately, while such solvers converge to a local minimum, that local minimum may not be globally optimal. Two survey papers [9, 21] propose using an initialize-and-refine pattern, where a globally solvable relaxed method generates an initial guess which a manifold-based method then refines.
+
+Verification and Guarantees. More recently, there has been particular interest in validation and performance guarantees for solvers. Fredriksson and Olsson [12] return to quaternions, and are able to verify—via Lagrangian Duality—that their solution is optimal (if noise levels are low enough). Briales and Gonzales-Jimenez [7] give a verifier for camera poses, rather than rotations. Boumal et al. [5, 6] take a statistical approach and study the efficiency of maximum likelihood estimators via Cramér-Rao bounds. They develop visualizations to show how the problem's graph topology affects the uncertainty in the output. In contrast, this paper visualizes how topology affects the macro-scale shape of the cost surface, independent of a choice of solution.
+
+Most recently, Ericsson et al. [11] propose a new solver based on Lagrangian duality. Unusually, this method uses an extrinsic cost but makes no relaxations (and hence suffers no rounding gap). When strong duality holds, this method gives a global solution. For complete graphs, they show that
+
+it is sufficient that residuals are less than $42.9^{\circ}$ . We find it interesting that two very different approaches (theirs: chordal distance and Lagrangian duality and ours: geodesic distance and local convexity) lead to statements with similar form. Briales and Gonzales-Jimenez [8] and Rosen et al.'s [18] fast relaxation methods also give verifiers.
+
+This present paper is most closely related to Wilson et al. [24] which studied $l_{2}$ intrinsic costs via a local convexity analysis. It concluded that some rotation averaging problem instances exhibit large areas of convex behavior, but their extent is related to problem size, noisiness, and connectivity. However, the local convexity is not apparent until an underlying gauge ambiguity is removed. This paper returns to the analysis in [24] with a more geometrically natural description of gauge which yields greatly improved bounds. The present analysis is also more general, as it considers an $l_{p}$ cost rather than the $l_{2}$ cost of [24]. Also, unlike [11] and [24], we empirically investigate what happens outside the optimality bounds.
+
+Outline of Remaining Sections. The remainder of this paper proceeds as follows: Section 3 gives notation and background on representations of rotations. It also states the rotation averaging problem in the form we will use. Section 4 is an empirical investigation into the shape of the cost surfaces of our problems. We use a spectral embedding to visualize the locations and strengths of local minima. These experiments clearly demonstrate transitions from easy problems dominated by a single minimum to difficult problems with a preponderance of bad local minima. In Section 5 we bound this behavior by improving the local convexity analysis from [24], and finally we suggest applications and conclude in Section 6.
+
+# 3. Preliminaries
+
+In this section we introduce notation and formally define the rotation averaging problem. We will also note some properties which are readily apparent.
+
+# 3.1. 3D Rotations and Their Representations
+
+The special orthogonal group in 3 dimensions—SO(3)—is the group of rotations of $\mathbb{R}^3$ . SO(3) is a smooth 3-dimensional manifold, so it is in fact a Lie group—a notion of continuous symmetry. While this suffices as a geometric definition, for computational purposes we require coordinatized representations. Euler's rotation theorem states that every rotation can be decomposed (not uniquely) into an angle $\theta$ and an axis $\hat{\mathbf{v}}$ . Alternately, every element of $SO(3)$ is uniquely represented by a $3 \times 3$ orthogonal matrix with determinant 1. As orthogonal matrices, rotation matrices have the property that $\mathbb{R}^{-1} = \mathbb{R}^{\top}$ . The angle-axis representation $\theta \hat{\mathbf{v}}$ is closely related to the tangent space to SO(3), which is 3-by-3 skew symmetric matrices. We write a tangent space
+
+element:
+
+$$
+\left[ \theta \hat {\mathbf {v}} \right] _ {\times} = \left[ \begin{array}{c c c} 0 & - \theta v _ {z} & \theta v _ {y} \\ \theta v _ {z} & 0 & - \theta v _ {x} \\ - \theta v _ {y} & \theta v _ {x} & 0 \end{array} \right], \text {w h e r e} \hat {\mathbf {v}} = \left[ \begin{array}{c} v _ {x} \\ v _ {y} \\ v _ {z} \end{array} \right].
+$$
+
+Rotation matrices form a 3-dimensional submanifold embedded in $\mathbb{R}^{3\times 3}$ , giving rise to at least two common metrics:
+
+$$
+d _ {\text {i n t r i n s i c}} (\mathbb {R}, \mathbb {S}) = \angle (\mathbb {R} ^ {\top} \mathbb {S}) \tag {1}
+$$
+
+$$
+d _ {\text {e x t r i n s i c}} (\mathrm {R}, \mathrm {S}) = \| \mathrm {R} - \mathrm {S} \| _ {F}. \tag {2}
+$$
+
+where $\angle (\cdot)$ is the angle of a given rotation (a la Euler's rotation theorem) and $\| \cdot \| _F$ denotes the Frobenius matrix norm. The intrinsic metric can be shown to be a geodesic distance—that is, the length of the shortest path that follows the curvature of the rotation manifold. The extrinsic metric cuts through non-manifold space: it is a distance in $\mathbb{R}^{3\times 3}$ , and so is generally shorter than the $d_{\mathrm{intrinsic}}$ . The two are related by $d_{\mathrm{extrinsic}} = 2\sqrt{2}\sin \left(\frac{d_{\mathrm{intrinsic}}}{2}\right)$ . This paper is about rotation averaging under the intrinsic metric, so we will omit the subscripts and simply write $d_{\mathrm{intrinsic}}$ as $d$ .
+
+# 3.2. Problem Definition
+
+A rotation averaging problem instance consists of a graph $G = (V, E)$ with measurements $\widetilde{\mathcal{R}} = \{\widetilde{\mathbb{R}}_{ij} | (i, j) \in E\}$ of relative orientation on each edge. Writing $n = |V|$ , our goal is to choose an absolute orientation $\mathcal{R} \in \mathrm{SO}(3)^n$ for each vertex in a way that best respects those measurements:
+
+$$
+\min _ {\mathcal {R} \in \mathrm {S O} (3) ^ {n}} \phi_ {p} (\mathcal {R}) = \sum_ {(i, j) \in E} d \left(\widetilde {\mathrm {R}} _ {i j}, \mathrm {R} _ {i} \mathrm {R} _ {j} ^ {\top}\right) ^ {p}. \tag {3}
+$$
+
+We will refer to $\phi_p$ as the $l_{p}$ cost function for this problem. Our results in Section 5 will apply for the $p > 1$ cases.
+
+# 3.3. Local Minima
+
+The $l_{p}$ problems in Equation (3) are non-convex, manifold-valued optimization problems. Analogous problems in Euclidean space are convex; the nonconvexity of our problem arises entirely from the manifold geometry. Iterative solvers of the type we consider start from an initial guess, then iterate toward a stationary point (which we hope is a local minimum). This local minimum need not be a global minimizer for the problem, and Section 4 shows that in some situations the problem may have many bad local minima. The guiding concern of the analysis in this paper is improving our understanding of this failure mode. Note that the multiplicity and spatial distribution of local minima are properties of a problem instance itself, not of a solver. In principle, this difficulty can be largely mitigated with a sufficiently high quality guess. Thus, it would be helpful to have some theoretical guidance as to what quality of guess is required.
+
+# 3.4. Some Simple Observations
+
+Edge Directions. If $\widetilde{\mathbb{R}}_{ij}$ is a measurement of $\mathbb{R}_i\mathbb{R}_j^\top$ the relative rotation on edge $(i,j)$ then $\widetilde{\mathbb{R}}_{ij}^{\top}$ is a measurement of $\mathbb{R}_j\mathbb{R}_i^\top$ . We will treat $G$ as an undirected graph, and supply either $\mathbb{R}_{ij}$ or $\widetilde{\mathbb{R}}_{ij}^{\top}$ as appropriate in context.
+
+Minimally Constrained Problems. We assume throughout that $G$ is connected. When $G$ is a tree there always exists a solution with zero cost. Any additional edges overconstrain the problem, but this redundancy improves accuracy in the face of measurement noise.
+
+Gauge Ambiguity. Any rotation averaging cost function of the form above is right-invariant to a multiplication of the form $\mathcal{R} \to \mathcal{RS}$ which maps rotations $\mathrm{R}_i \mapsto \mathrm{R}_i\mathrm{S}$ , $i \in V$ . Given any point $\mathcal{R} \in \mathrm{SO}(3)^n$ , the cost function is constant on the entire gauge-equivalent set $\{\mathcal{RS}, \mathbb{S} \in \mathrm{SO}(3)\}$ . The $3n$ -dimensional problem domain can be considered to be partitioned into 3-dimensional gauge orbits, and solutions are only unique up to the choice of orbit representative. An extra gauge-fixing constraint can be used to pick the orbit representative uniquely. The simplest method of gauge-fixing is to pick one vertex arbitrarily (say, vertex $k$ ), and set $\mathsf{R}_k = \mathbf{I}_3$ . Later in the paper, we will consider an alternate approach that factors out the symmetry. Interestingly, Brales and Gonzalez-Jimenez [7] have observed faster solver performance when moving from simple vertex fixing to a scheme similar to ours.
+
+# 4. Some Empirical Observations
+
+In this section, we demonstrate a way to visualize the spatial distribution of local minima in rotation averaging problems. It shows us that structural factors (such as edge density and connectivity) can greatly affect the distribution. We will describe how this relates to problem tractability.
+
+Motivation for Empirical Mapping. A key failure mode of iterative solvers is finding a local minimum of poor quality. This problem can be largely avoided through good initial guesses (perhaps via a relaxation of the problem). Even then, it is helpful to have some guidance as to what quality of guess is necessary. Indeed, for some optimization problems, sufficiently good initial guesses are rare. In this section we study the problem experimentally, and then in Section 5 we attempt to explain our observations theoretically.
+
+We begin by fixing a problem instance. Then we collect many local minima: we choose $N_{lm}$ initial guesses sampled uniformly at random in $\mathrm{SO}(3)^n$ and then run a Levenberg-Marquardt solver [2] to efficiently iteratively minimize an $l_p$ cost. This gives us $N_{lm}$ (possibly not distinct) local minima.
+
+Now that we have a large, randomly sampled collection of local minima, we visualize their distribution. Because the local minima live in the search space $\mathrm{SO}(3)^n$ , a $3n$ -dimensional manifold, we are unable to plot them directly.
+
+Instead, we first compute (gauge-aligned) pairwise distances between each of the $N_{lm}$ minima. This effectively gives us a graph with labeled edge lengths. We use a spectral projection to embed this graph in a 2D plane. These 2D embeddings are show in Figure 1 and described in greater detail below.
+
+**Embedding Experimental Details.** Each row in Figure 1 is a series of experiments on the same graph; see Table 1 for details. To create each problem instance, we select a ground truth solution for the given graph by choosing elements of SO(3) uniformly at random. We then generate noisy edge measurements by synthetically adding noise (zero-mean and variance $\sigma_{n}^{2}$ Gaussian in the tangent space) to each edge's ground truth relative rotation. The columns of Figure 1 are increasing noise levels. Within a row, only $\sigma_{n}$ varies. The graph and ground truth solution are fixed.
+
+We use $N_{lm} = 200$ random starts for each experiment. For the spectral graph embedding, we use the diffusion kernel $d \mapsto e^{-d^2 / \sigma_d}$ to transform distances to similarities, where $d$ is the distance between two local minima. We used $\sigma_d = \frac{\pi}{4}$ for all of our experiments. The synthetic noise $\sigma_n$ is labeled on each experiment in Figure 1.
+
+| row | graph parameters | connectivity | αmax[11] |
| Watts-Strogatz small world graphs |
| (1) | n = 40, k = 16, p = 0.0 | λ2(G) = 4.6 | 14.7° |
| (2) | n = 40, k = 16, p = 0.2 | λ2(G) = 7.7 | 19.0° |
| (3) | n = 40, k = 16, p = 0.5 | λ2(G) = 8.2 | 19.2° |
| (4*) | n = 40, k = 16, p = 1.0 | λ2(G) = 9.5 | 20.2° |
| Gnm random graphs |
| (5) | n = 40, m = 200 | λ2(G) = 4.2 | 13.6° |
| (4*) | n = 40, m = 240 | λ2(G) = 9.5 | 20.2° |
| (6) | n = 40, m = 400 | λ2(G) = 12.0 | 12.0° |
+
+Table 1. Descriptions of the graphs in Figure 1. The algebraic connectivity $\lambda_{2}(G)$ features in the results in Section 5. The quantity $\alpha_{\max}$ is from [11]: their solution is certifiably optimal if all residuals are less than $\alpha_{\max}$ . (*) Note that graph (4) is an instance of both Watts-Strogatz and $G_{nm}$ random graphs when $p = 1$ .
+
+How to Interpret the Embeddings. Each small colored circle in the plots is a local minimum. Within each plot, absolute distances are not meaningful, but relative distances within each plot correspond (imperfectly) to distances between minima. Gauge is quotiented out when computing distances, as described in Section 5. The colors and radii of the points are both proportionate to the objective function of the minima (cool colors are lower cost and warm colors are higher).
+
+Jittered points are also plotted behind in light grey to reveal multiplicity. For example, the jitter reveals that of the four unique minima in the plot at row 3, column 1, the minimum with lowest cost is strongly dominant. The dominance of the largest minimum $(\%_{\mathrm{max}})$ is labeled on each experiment. This is the percent of the $N_{lm}$ runs that reached the highest multiplicity minimum.
+
+The qualitative results in Figure 1 are stable under repeated trials. Different random graphs and random synthetic noise always result in different 2D embeddings, but all of the trends discussed below are still present.
+
+Observations and Trends. Rows (1) through (4) are Watts-Strogatz small world random graphs [19]. This family of graphs has a rewiring parameter $p$ that smoothly interpolates between a $k$ -connected cycle graph and $G_{nm}$ , the random graph model that randomly samples from all graphs with exactly $n$ vertices and $m$ edges.
+
+These graphs are interesting to us because $G_{nm}$ graphs (and the closely related $G_{np}$ Erdős Rényi graphs) are not that representative of real rotation averaging problems. For their size, they have small radius and high algebraic connectivity. By varying the Watts-Strogatz rewiring parameter $p$ we keep the size of the graph fixed but vary the connectivity. Furthermore, the Watts-Strogatz model comes closer to capturing a qualitative property of image graphs: cameras which have similar pose are more likely to overlap, yet dissimilar cameras do occasionally see the same thing (perhaps on a tall or prominent structure).
+
+Row (1) is the least-connected extreme of the Watts-Strogatz family, with the lowest algebraic connectivity (Table 1). Row (4) is the opposite: with $100\%$ rewiring, this is just a $G_{nm}$ random graph with 240 edges.
+
+Some problem instances look very easy to solve. For instance, in row (3) column 1, $97.5\%$ of the random initializations were sufficient to find the dominant minimum. It certainly seems plausible that this minimum is in fact the global optimum. If such a high percentage of random initial guesses suffice, then a non-random guess (such as from a relaxed solver) seems very likely to succeed.
+
+In contrast, consider row (1) column 5. This is a much noisier problem. Now there are many distinct local minima, many of which are very close to each other. An iterative solver may have difficulty finding a true global optimum.
+
+Finally, consider the trends in these graphs:
+
+- At low noise levels there are very few distinct local minima. One of these is usually dominant and appears to be the global optimum.
+- As noise levels increase, more distinct local minima appear, and they get closer to the dominant minimum.
+- At fixed noise levels, the more connected graphs look easier. They have fewer distinct minima and these are better separated.
+- Going from rows (1) to (2) to (3), the connectivity goes up and the problems appear to get easier. However, rows (3) and (4) look very similar. The extra connectivity does not appear to have much affect. Is there a critical level of connectivity?
+
+Rows (4) - (6) vary a different graph parameter. Recall that the fully rewired Watts-Strogatz graph in (4) is also a
+
+
+(1)
+
+
+
+
+
+
+
+
+
+
+(2)
+
+
+
+
+
+
+
+
+
+
+(3)
+
+
+
+
+
+
+
+
+
+
+(4)
+
+
+
+
+
+
+
+
+
+
+(5)
+
+
+
+
+
+
+
+
+
+
+(6)
+
+
+Figure 1. 2D embeddings of the local minima of rotation averaging problems. Each row is a fixed underlying graph, and the columns are increasing noise levels $(\sigma_{n})$ . Both color and circle radius encode the objective function (cool colors and small radii are low cost). To reveal multiplicity, a small jittered $+$ is plotted in grey behind each point. Additionally, $\%_{\mathrm{max}}$ gives the multiplicity of the most common minimum. Notice that some problem/noise level combinations have essentially one unique dominant local minimum, while others have many. Table 1 describes the graphs for each row.
+
+
+
+
+
+
+
+$G_{nm}$ random graph with 240 edges. Row (5) is a $G_{nm}$ graph with a few fewer edges, and (6) with a few more. Notice how sharply these changes affect the plots of minima! Row (5), which has fewer edges, appears with only $2^{\circ}$ of noise to look as messy as row (4) does with $25^{\circ}$ . Row (6) is still well-behaved with a remarkable $25^{\circ}$ of noise.
+
+Practical Takeaways. These visualizations indicate that some instances of the $l_{p}$ rotation averaging problem are easy—in the sense that a single minimum dominates the cost surface. This is presumably the global optimum, and almost any initialization is adequate to find it.
+
+On the other hand, some problems are qualitatively different. They have many local minima, and these minima are close together. Furthermore, there may even be minima that are very similar in cost but not close to each other. This raises important questions about whether the problem is well-enough posed for solutions (even the global solution, were it available) to be useful.
+
+In these experiments, for the same number of nodes and edges, more connected graphs were better. Unsurprisingly, for all else equal, lower noise was also better. See the supplemental for a discussion of outlier edges.
+
+Looking at the last column of Table 1, we see that the Eriksson et al.'s certification [11] is sufficient, but not necessary. The bound behaves as expected on the Watts-Strogatz graphs, but not on the $G_{nm}$ problems. This may be due to fragile dependence on the maximum degree of the graph.
+
+# 5. Improved Local Convexity Bounds
+
+Now we turn to seeking a theoretical description of the effects shown in Section 4. We proceed by studying the extent of local convexity in a rotation averaging problem instance. We generally follow the calculations in [24], but we add two pieces: (1) the calculations are generalized from $l_{2}$ to $l_{p}$ costs, and (2) we describe the gauge ambiguity in a geometrically natural way, leading to a large improvement in the bounds.
+
+Convex problems enjoy a prominent place in optimization because they provide a guarantee: all local minima are global minima. For rotation averaging, this helpful property does not hold. However, we can proceed with an analysis using local convexity, a far weaker, but closely related property.
+
+Definition 1 A rotation averaging problem $(G, \widetilde{\mathcal{R}})$ is locally convex at a solution $\mathcal{R}$ if there exists an open ball around $\mathcal{R}$ on which the problem is convex.
+
+Practically speaking, for functions that are at least twice differentiable, local convexity is a statement that the Hessian matrix of the problem is positive semi-definite.
+
+
+Figure 2. A picture of a 2D manifold $\bar{\mathcal{M}}$ partitioned into 1D orbits. The tangent space $T_{X}\bar{\mathcal{M}}$ at any point $X\in \bar{\mathcal{M}}$ can be decomposed as the product of two orthogonal vector spaces: a vertical space (which follows the orbits) and a horizontal space (which is orthogonal to the orbits).
+
+In the context of rotations averaging, local convexity limits local minima, because if we have local convexity on a convex region, there cannot be distinct local minima there.
+
+In [24], it was shown that the $l_{2}$ geodesic variant of the rotations averaging cost function frequently exhibits local convexity, and that the extent of that local convexity is bounded by properties of the problem instance. The crux of that argument was an appreciation of the gauge ambiguity—the local convexity in the problem was only visible after the gauge had been treated. In this section, we revisit that treatment with a more natural description of the gauge.
+
+# 5.1. A more natural perspective on gauge
+
+By gauge ambiguity, we mean that our cost function is invariant to right-multiplication by any element of $\mathrm{SO}(3)$ . This is a free group action of $\mathrm{SO}(3)$ on $\mathrm{SO}(3)^n$ , leading us to consider our optimization problem over the quotient manifold $\mathrm{SO}(3)^n / (\mathcal{R} \sim \mathcal{RS})$ . (The natural metric on this manifold is $d_{\mathrm{quot}}(\mathcal{R}_1, \mathcal{R}_2) = \min_{\mathbb{S} \in \mathrm{SO}(3)} d(\mathcal{R}_1, \mathcal{R}_2\mathbb{S})$ .) This quotient no longer has a gauge ambiguity; we have exactly removed the symmetry in question. We would like to analyze the local convexity of this new problem, which raises the question, "How do derivatives of a function on a manifold relate to derivatives of that function on a quotient manifold?"
+
+Quotients of Riemannian manifolds have a particularly nice structure [1, Ch. 3]. Points in the quotient space correspond to gauge-equivalent orbits. A tangent space $T_X\mathcal{M}$ on the quotient manifold is related to the tangent space $T_X\bar{\mathcal{M}}$ on $\bar{\mathcal{M}} = \mathrm{SO}(3)^n$ as shown in Figure 2. In particular, note
+
+that the original tangent space $T_X\bar{\mathcal{M}}$ is a direct product of two orthogonal vector spaces. The vertical space is the subspace consisting of motions that remain in the same gauge orbit, and the horizontal space is the space of motions orthogonal to that. Notably, the horizontal space is identified with the quotient manifold's tangent space: $\mathcal{H}_X = T_X\mathcal{M}$ . Furthermore, through this identification, derivatives of functions on quotient manifolds are simply the projections onto $\mathcal{H}$ of derivatives in the original manifold.
+
+We can explicitly state what these spaces are for our problem. A perturbation in a tangent space to $\mathrm{SO}(3)^n$ can be expressed as an $n$ -tuple $(\mathbf{x_1},\ldots ,\mathbf{x_n})$ , where the $\mathbf{x}_i$ 's are all in $\mathbb{R}^3$ . (Properly speaking, then the tangent space elements are the skew symmetric matrices $[\mathbf{x}_i]_{\times}$ .) Each such tangent space element is mapped through the exp map to a new element of $\mathrm{SO}(3)^n$ :
+
+$$
+\exp_ {\mathcal {R}} (\mathbf {x _ {1}}, \ldots , \mathbf {x _ {n}}) = \left[ \begin{array}{c} \mathsf {R _ {1}} \exp [ \mathbf {x _ {1}} ] _ {\times} \\ \vdots \\ \mathsf {R _ {n}} \exp [ \mathbf {x _ {n}} ] _ {\times} \end{array} \right].
+$$
+
+If this motion is gauge-preserving we must have
+
+$$
+\exp [ \mathbf {x} _ {1} ] _ {\times} = \dots = \exp [ \mathbf {x} _ {n} ] _ {\times} = \mathbf {S}
+$$
+
+for some $\mathbf{S} \in \mathrm{SO}(3)$ . The inverse of the exp map is log, which maps from the manifold into the tangent space. For small $\mathbf{x}$ , $\log[\mathbf{x}]_{\times}$ is one-to-one, so $\mathbf{x}_1 = \mathbf{x}_2 = \ldots = \mathbf{x}_n$ . In other words, in Kronecker product notation, the vertical space is this subspace of $\mathbb{R}^{3n}$ :
+
+$$
+\mathcal {V} = \operatorname {S p a n} \left\{\left[ \begin{array}{l} 1 \\ 0 \\ 0 \end{array} \right] \otimes \mathbf {1} _ {n}, \left[ \begin{array}{l} 0 \\ 1 \\ 0 \end{array} \right] \otimes \mathbf {1} _ {n}, \left[ \begin{array}{l} 0 \\ 0 \\ 1 \end{array} \right] \otimes \mathbf {1} _ {n}. \right\} \tag {4}
+$$
+
+It follows that the horizontal space is $\mathcal{H} = \mathcal{V}^{\perp}$ . Interestingly, $\mathcal{V}$ and $\mathcal{H}$ depend only on $n$ . The tangent spaces at every point $\mathcal{R}$ on the manifold share the same description of the vertical and horizontal spaces.
+
+Returning to the original question, we wish to analyze the local convexity of the quotient-manifold version of the $l_{p}$ rotation averaging problem. Recall that (given sufficient differentiability) local convexity holds when all eigenvalues of the Hessian matrix are non-negative. This will hold exactly when the projection of the Hessian matrix onto $\mathcal{V}^{\perp}$ is positive semi-definite:
+
+Theorem 1 A rotation averaging problem is locally convex with respect to the $l_p$ geodesic cost function when
+
+$$
+\min _ {\mathbf {x} \in \mathbf {V} ^ {\perp}, \| \mathbf {x} \| = 1} \mathbf {x} ^ {\top} \mathbf {H} \mathbf {x} > 0, \tag {5}
+$$
+
+where $\mathbf{H}$ is the Hessian of the $l_{p}$ cost function (on $\mathrm{SO}(3)^n$ ; see below).
+
+# 5.2. Some Lower-Bound Approximations
+
+Now that we have a better way to factor the gauge ambiguity out of our local convexity analysis, we begin with the Hessian matrix computed in [24] and follow it through two approximations. The smallest eigenvalue of the (gauge-projected) Hessian matrix describes how the graph structure of the problem interacts with the magnitude and directions of residuals, determining local convexity. Unfortunately, this description is complicated. In this section we aim to get insight through sacrificing some accuracy for interpretability. In each case, our new gauge approach yields superior bounds over analogous prior results [24].
+
+The Structure of the Hessian. We begin by giving the exact Hessian for the unquotiented $l_{p}$ cost function, as derived by following the chain rule calculations in [24] for $p > 1$ . Recall that the cost function (Equation (3)) is a sum of terms on each edge in the graph. Likewise, the Hessian is a sum of terms for each edge in the cost function:
+
+$$
+\mathbf {H} = \sum_ {(i, j) \in E} \mathbf {H} _ {i j}. \tag {6}
+$$
+
+where the terms are $3n$ -by- $3n$ matrices composed of 3-by-3 blocks. For each term, exactly four 3-by-3 blocks (corresponding to the $i$ th and $j$ th block rows and columns) are non-zero. These blocks are expressed in terms of the residuals $\mathbb{R}_i^\top \widetilde{\mathbb{R}}_{ij}\mathbb{R}_j$ on each edge. We write these residuals in their tangent spaces as $[\theta_{ij}\hat{\mathbf{w}}_{ij}]_{\times} = \log (\mathbb{R}_i^\top \widetilde{\mathbb{R}}_{ij}\mathbb{R}_j)$ . So, where $\theta_{ij}$ is the magnitude of the residual rotation on edge $(i,j)$ , and $\mathbf{w}_{ij}$ is its axis of rotation.
+
+$$
+\mathbf {H} _ {i j} = \begin{array}{c} i \\ i \\ j \end{array} \left[ \begin{array}{c c c c c} & & & j \\ & \vdots & & \vdots \\ \dots & \mathbf {S} _ {i j} & \dots & - \mathbf {S} _ {i j} + \mathbf {A} _ {i j} ^ {\top} & \dots \\ & \vdots & & \vdots \\ \dots & - \mathbf {S} _ {i j} + \mathbf {A} _ {i j} & \dots & \mathbf {S} _ {i j} & \dots \\ & \vdots & & \vdots \end{array} \right], \tag {7}
+$$
+
+where the 3-by-3 blocks making up each $\mathbf{H}_{ij}$ are
+
+$$
+\mathbf {S} _ {i j} = p (p - 1) \theta_ {i j} ^ {p - 2} \mathbf {w} _ {i j} \mathbf {w} _ {i j} ^ {\top} + \frac {p}{2} \theta_ {i j} ^ {p - 1} (\mathbf {I} _ {3} - \mathbf {w} _ {i j} \mathbf {w} _ {i j} ^ {\top}),
+$$
+
+$$
+\mathbf {A} _ {i j} = \frac {p}{2} \theta_ {i j} ^ {p - 1} [ \mathbf {w} _ {i j} ] _ {\times}.
+$$
+
+Notice that the symmetric $\mathbf{S}_{ij}$ terms of the Hessian are arranged in a graph-Laplacian like structure, but the antisymmetric $\mathbf{A}_{ij}$ terms are not.
+
+An Isotropic Bound. A first approach to taming this Hessian is to find a bound that depends only on residual magnitudes. The best isotropic (direction independent) lower bound for the $\mathbf{S}_{ij}$ terms is
+
+$$
+\mathbf {S} _ {i j} \succ \min \left(\frac {p}{2} \theta_ {i j} ^ {p - 1}, p (p - 1) \theta_ {i j} ^ {p - 2} - \frac {p}{2} \theta_ {i j} ^ {p - 1}\right) \mathbf {I} _ {3}. \tag {8}
+$$
+
+Let's call those values $\alpha_{ij}$ , so that we have $\mathbf{S}_{ij} \succ \alpha_{ij} \mathbf{I}_3$ . Notice that $\alpha_{ij}$ is purely a convenience function of $\theta_{ij}$ . Now, the indefinite skew contribution $\mathbf{S}_{ij}$ can be isotropically bounded above as a block:
+
+$$
+\left[ \begin{array}{c c} \mathbf {0} & \mathbf {A} _ {i j} ^ {\top} \\ \mathbf {A} _ {i j} & \mathbf {0} \end{array} \right] \prec \frac {p}{2} \theta_ {i j} ^ {p - 1} \left[ \begin{array}{c c} \mathbf {I} _ {3} & \mathbf {0} \\ \mathbf {0} & \mathbf {I} _ {3} \end{array} \right]. \tag {9}
+$$
+
+Continuing as in [24], we see that for a single Hessian term,
+
+$$
+\mathbf {H} _ {i j} \succ \left(\underbrace {\left[ \begin{array}{c c} \alpha_ {i j} & - \alpha_ {i j} \\ - \alpha_ {i j} & \alpha_ {i j} \end{array} \right]} _ {\text {P S D L a p l a c i a n t e r m}} - \underbrace {\frac {p}{2} \theta_ {i j} ^ {p - 1} \left[ \begin{array}{c c} \mathbf {I} _ {3} & \mathbf {0} \\ \mathbf {0} & \mathbf {I} _ {3} \end{array} \right]} _ {\text {n o n - P S D c u r v a t u r e t e r m}}\right) \otimes \mathbf {I} _ {3}. \tag {10}
+$$
+
+Considering all the residual terms together, we will write this as $\mathbf{H} \succ (\mathbf{L}(\alpha_{ij}) - \mathbf{D}(\theta_{ij})) \otimes \mathbf{I}_3$ . $\mathbf{L}$ is a standard graph Laplacian matrix [22] with edge weights $\alpha_{ij}$ , and $\mathbf{D}$ is a diagonal degree matrix with elements:
+
+$$
+\mathbf {D} _ {i i} = \sum_ {j | (i, j) \in E} \frac {p}{2} \theta_ {i j} ^ {p - 1}. \tag {11}
+$$
+
+Multiplying by $\mathbf{D}^{-\frac{1}{2}}$ on both sides, we see that this is sufficient for $\mathbf{H} \succ \mathbf{0}$ :
+
+$$
+\mathbf {L} _ {\text {n o r m}} = \left(\mathbf {D} \left(\theta_ {i j}\right) ^ {- \frac {1}{2}} \mathbf {L} \left(\alpha_ {i j}\right) \mathbf {D} \left(\theta_ {i j}\right) ^ {- \frac {1}{2}}\right) \succ \mathbf {I} _ {n}. \tag {12}
+$$
+
+The smallest eigenvalue of a graph Laplacian is 0, so this condition appears to be unsatisfiable. We must use what we know about gauge to proceed. Recall that considering the problem from a quotient manifold perspective effectively meant projecting the tangent space off of the vertical space and onto the horizontal space. This means that (allowing for the Kronecker product), we require:
+
+$$
+\min _ {\mathbf {x} \perp \mathbf {1} _ {n}, \| \mathbf {x} \| = 1} \mathbf {x} ^ {\top} \mathbf {L} _ {\text {n o r m}} \mathbf {x} > 1. \tag {13}
+$$
+
+That is, $\mathbf{L}_{\mathrm{norm}}$ is an particular weighted, normalized graph Laplacian. It represents the interaction of graph topology and residual noisiness (but not residual directions, which we approximated away), it bounds local convexity. Projecting this matrix off of the gauge vector $\mathbf{1}_n$ represents considering the problem as being solved on a quotient manifold.
+
+An Even Simpler Bound. If we are a bit more destructive, we can reach a bound that cleanly separates structure and noise terms. Let's begin back with this sufficient condition for local convexity:
+
+$$
+\mathbf {L} \left(\alpha_ {i j}\right) \succ \mathbf {D} \left(\theta_ {i j}\right). \tag {14}
+$$
+
+This next condition is still sufficient, but much weaker:
+
+$$
+\lambda_ {\min } (\mathbf {L} \left(\alpha_ {i j}\right)) > \lambda_ {\max } (\mathbf {D} \left(\theta_ {i j}\right)). \tag {15}
+$$
+
+Now, the eigenvector corresponding to the zero eigenvalue of a graph Laplacian is $\mathbf{1}_n$ , the vector of all ones. This means that (allowing for the Kronecker product) the gauge subspace corresponds perfectly with the 0-eigenvector of the graph Laplacian. Note that the largest value of a diagonal matrix is its largest entry, so we have a bound:
+
+$$
+\lambda_ {2} (\mathbf {L} \left(\alpha_ {i j}\right)) > \max _ {i \in V} \sum_ {j \mid (i, j) \in E} \frac {p}{2} \theta_ {i j} ^ {p - 1}. \tag {16}
+$$
+
+Note that in the $p = 2$ case, the right hand side is simply the maximum weighted degree of the residual graph. If we wish to bound even more aggressively, we can bound by the smallest $\alpha$ , giving:
+
+$$
+\underbrace {\lambda_ {2} (\mathbf {L})} _ {\text {s t r u c t u r e}} > \underbrace {\frac {\operatorname* {m a x} _ {i \in V} \sum_ {(i , j) \in E} \frac {p}{2} \theta_ {i j} ^ {p - 1}}{\operatorname* {m i n} _ {i j} \alpha_ {i j}}} _ {\text {r e s i d u a l s}}. \tag {17}
+$$
+
+This gives a perfect separation of the condition for local convexity into a graph structure term (the so-called algebraic connectivity) a term that depends on residual noise levels. Notice that this bound differs from the one given in [24] in that a factor of $n$ has disappeared from the denominator of the structure term in Equation (17). This is solely a consequence of the improved gauge treatment substantially increases the practical utility of the bound.
+
+# 6. Application and Conclusion
+
+In this paper we studied the cost surface of the geodesic $l_{p}$ rotation averaging problem. We gave empirical evidence that changes in problem structure and noise can cause sharp transitions between easy and challenging distributions of local minima. We then derived a bound on this behavior: connectivity must balance noise to get a single dominant minimum. These bounds are an $n$ -fold improvement over prior work, achieved through treating the problem's gauge ambiguity in a geometrically natural way.
+
+We see this analysis being useful for the development of new intrinsic-metric rotation averaging solvers. Our theoretical work shows how to remain in the easy regime. We hope that this analysis can provide guidance in pipeline design for forming rotation averaging problem instances.
+
+There is a particular application to hierarchical / merging-based solver schemes. In these approaches (which are a current area of active study) small subproblems are selected, solved, and merged into a larger solution. Our results are especially applicable here because unlike in single-shot schemes where the problem is provided as-is, merging solvers have free choice of their subproblems. Schemes that can maintain elevated connectivity may do better at avoiding local minima traps.
+
+Acknowledgements. This work was supported in part by the National Science Foundation under DMS-1620038.
+
+# References
+
+[1] P-A Absil, Robert Mahony, and Rodolphe Sepulchre. Optimization algorithms on matrix manifolds. Princeton University Press, 2009. 6
+[2] Sameer Agarwal, Keir Mierle, and Others. Ceres solver. http://ceres-solver.org.3
+[3] M. Arie-Nachimson, S. Z. Kovalsky, I. Kemelmacher-Shlizerman, A. Singer, and R. Basri. Global motion estimation from point matches. In 3DIMPVT, 2012. 2
+[4] F. Arrigoni, L. Magri, B. Rossi, P. Fragneto, and A. Fusiello. Robust absolute rotation estimation via low-rank and sparse matrix decomposition. In 3DV, 2014. 2
+[5] N. Boumal, A. Singer, and P-A. Absil. Robust estimation of rotations from relative measurements by maximum likelihood. In Decision and Control. IEEE, 2013. 2
+[6] N. Boumal, A. Singer, P-A. Absil, and V. D. Blondel. Cramér-Rao bounds for synchronization of rotations. Information and Inference, 2014. 2
+[7] J. Briales and J. Gonzales-Jimenez. Fast global optimality verification in 3D SLAM. IROS, 2016. 2, 3
+[8] J. Briales and J. Gonzalez-Jimenez. Cartan-sync: Fast and global SE(d)-synchronization. Robotics and Automation Letters, 2017. 2
+[9] L. Carlone, R. Tron, K. Daniilidis, and F. Dellaert. Initialization techniques for 3D SLAM: A survey on rotation estimation and its use in pose graph optimization. ICRA, 2015. 1, 2
+[10] A. Chatterjee and V. M. Govindu. Robust relative rotation averaging. PAMI, 2017. 2
+[11] A. Eriksson, C. Olsson, F. Kahl, and T. Chin. Rotation averaging and strong duality. CVPR, 2018. 2, 4, 6
+[12] J. Fredriksson and C. Olsson. Simultaneous multiple rotation averaging using Lagrangian duality. In ACCV, 2012. 2
+[13] V. M. Govindu. Combining two-view constraints for motion estimation. In CVPR, 2001. 2
+[14] V. M. Govindu. Lie-algebraic averaging for globally consistent motion estimation. In CVPR, 2004. 2
+[15] G. Hartley and A. Zisserman. Multiple View Geometry in Computer Vision (2nd Ed.). Cambridge University Press, 2004. 1
+[16] R. Hartley, J. Trumpf, Y. Dai, and H.. Li. Rotation averaging. In IJCV, 2013. 2
+[17] D. Martinec and T. Pajdla. Robust rotation and translation estimation in multiview reconstruction. In CVPR, 2007. 2
+[18] D. Rosen, L. Carlone, A. Bandiera, and J. Leonard. Se-sync: A certifiably correct algorithm for synchronization over the special euclidean group. *IJRR*, 2019. 2
+[19] S. H. Strogatz. Exploring complex networks. Nature, 410(6825):268-276, March 2001. 4
+[20] R. Tron, R. Vidal, and A. Terzis. Distributed pose averaging in camera networks via consensus in SE(3). In ICDSC, 2008. 2
+[21] R. Tron, X. Zhou, and K. Daniilidis. A survey on rotation optimization in structure from motion. In CVPR Workshops, 2016. 1, 2
+
+[22] U. Von Luxburg. A tutorial on spectral clustering. Statistics and computing, 2007. 8
+[23] L. Wang and A. Singer. Exact and stable recovery of rotations for robust synchronization. In Information and Inference. IMA, 2013. 2
+[24] K. Wilson, D. Bindel, and N. Snavely. When is rotations averaging hard? ECCV, 2016. 1, 2, 6, 7, 8
\ No newline at end of file
diff --git a/onthedistributionofminimainintrinsicmetricrotationaveraging/images.zip b/onthedistributionofminimainintrinsicmetricrotationaveraging/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..a22ce0cbddf5ba2eb8b3d69e1be27be4a251b0a4
--- /dev/null
+++ b/onthedistributionofminimainintrinsicmetricrotationaveraging/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e2addcf75265dacc911d9b312e107a9d881a023fd1c679d8414d6a86ffe1da38
+size 380891
diff --git a/onthedistributionofminimainintrinsicmetricrotationaveraging/layout.json b/onthedistributionofminimainintrinsicmetricrotationaveraging/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..caf511d1695dae06e7dc5afbe650b39c47cfe450
--- /dev/null
+++ b/onthedistributionofminimainintrinsicmetricrotationaveraging/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8a97240486bdf7b1ea8b1c53daa988b06b23753d1aaac0f948082f1b10f1d854
+size 472466
diff --git a/onthegeneralvalueofevidenceandbilingualscenetextvisualquestionanswering/71121e76-fd52-456c-8c0b-c9759dd5e8b2_content_list.json b/onthegeneralvalueofevidenceandbilingualscenetextvisualquestionanswering/71121e76-fd52-456c-8c0b-c9759dd5e8b2_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..c36924295d2a99659549ba9bac4eb1dcb9c4ce48
--- /dev/null
+++ b/onthegeneralvalueofevidenceandbilingualscenetextvisualquestionanswering/71121e76-fd52-456c-8c0b-c9759dd5e8b2_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:aaf9313f6f3c1ff8086c849f374cac3ff106fe8324a9b264e42885f214491385
+size 80592
diff --git a/onthegeneralvalueofevidenceandbilingualscenetextvisualquestionanswering/71121e76-fd52-456c-8c0b-c9759dd5e8b2_model.json b/onthegeneralvalueofevidenceandbilingualscenetextvisualquestionanswering/71121e76-fd52-456c-8c0b-c9759dd5e8b2_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..90bc145e1a80d23cbd8986dc117130e291ef2baf
--- /dev/null
+++ b/onthegeneralvalueofevidenceandbilingualscenetextvisualquestionanswering/71121e76-fd52-456c-8c0b-c9759dd5e8b2_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9f9683a48ca6fe065c2ebcfd2580d94b32a1d94e23155fb49e7850c64d40fd67
+size 99883
diff --git a/onthegeneralvalueofevidenceandbilingualscenetextvisualquestionanswering/71121e76-fd52-456c-8c0b-c9759dd5e8b2_origin.pdf b/onthegeneralvalueofevidenceandbilingualscenetextvisualquestionanswering/71121e76-fd52-456c-8c0b-c9759dd5e8b2_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..5724e55532d1d911bd2f4f366a6aa5ce8c851c53
--- /dev/null
+++ b/onthegeneralvalueofevidenceandbilingualscenetextvisualquestionanswering/71121e76-fd52-456c-8c0b-c9759dd5e8b2_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:13125847250b17af21c9ebb222d84bfe87b4891ed97f5e73d3bb5ebffaa3de06
+size 1321282
diff --git a/onthegeneralvalueofevidenceandbilingualscenetextvisualquestionanswering/full.md b/onthegeneralvalueofevidenceandbilingualscenetextvisualquestionanswering/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..d9cba31469756ee13ee4c446f121c1f7c0b560d3
--- /dev/null
+++ b/onthegeneralvalueofevidenceandbilingualscenetextvisualquestionanswering/full.md
@@ -0,0 +1,362 @@
+# On the General Value of Evidence, and Bilingual Scene-Text Visual Question Answering
+
+Xinyu Wang $^{1*}$ , Yuliang Liu $^{1,2*}$ , Chunhua Shen $^{1\dagger}$ , Chun Chet Ng $^{3}$ , Canjie Luo $^{2}$ , Lianwen Jin $^{2}$ , Chee Seng Chan $^{3}$ , Anton van den Hengel $^{1}$ , Liangwei Wang $^{4}$
+
+1 University of Adelaide 2 South China University of Technology 3 University of Malaya 4 Huawei Noah's Ark Lab
+
+# Abstract
+
+Visual Question Answering (VQA) methods have made incredible progress, but suffer from a failure to generalize. This is visible in the fact that they are vulnerable to learning coincidental correlations in the data rather than deeper relations between image content and ideas expressed in language. We present a dataset that takes a step towards addressing this problem in that it contains questions expressed in two languages, and an evaluation process that co-opts a well understood image-based metric to reflect the method's ability to reason. Measuring reasoning directly encourages generalization by penalizing answers that are coincidentally correct. The dataset reflects the scene-text version of the VQA problem, and the reasoning evaluation can be seen as a text-based version of a referring expression challenge. Experiments and analyses are provided that show the value of the dataset. The dataset is available at www.est-vqa.org.
+
+# 1. Introduction
+
+The fact that Visual Questions Answering [3] methods are able to answer natural language questions that relate to a wide variety of image contents has been an incredible development. The limitations of existing methods, and particularly their tendency to focus on spurious correlations in the data, have been repeatedly identified (see [1, 7, 10], for example). This is visible in the tendency of methods to answer questions on the basis of text alone. The answer to 'How many' questions, for instance, is predominantly 'Two'.
+
+Focusing on coincidental correlations in the data represents a failure to generalize. These correlations are not stable across datasets, meaning that once the test data moves beyond the distribution of the training set, the correlations fail to hold, and methods that exploit them fail to work. The underlying reasoning, in contrast, is stable across datasets.
+
+
+Figure 1. By requiring that vision-and-language methods provide evidence for their decisions encourages the development of approaches that depend on reasoning, and thus that are better able to generalize to new situations. It also helps to build up confidence in the provided answer.
+
+Encouraging VQA methods to reason about the image content is thus critical to achieving methods that generalize.
+
+One of the underlying problems with encouraging VQA methods to generalize has been that it is impossible to tell whether a method arrived at the right answer through for the right reasons. An answer is equally correct whether it results from analysis of the underlying reasoning or through exploiting a coincidental correlation in the data. A series of works have developed more sophisticated measures of performance for vision and language problems [2, 7, 36], and this work falls in this category. What distinguishes this approach is that it uses image-based grounding to encourage generalization, despite the fact that it is not actually required to achieve the desired task.
+
+We propose here an approach to measure VQA performance that encourages generalization by demanding that the algorithm justifies its reasoning (see Fig. 1). Previous methods have applied the same rational, but suffered be
+
+cause the form in which the reason must be provided is constrictive [33, 35]. We show here that it is possible instead to evaluate reasoning by only requiring a method to provide a relatively simple indication of which area of the image it has based its answer on. If the method provides the correct answer and the correct image region then it is likely that it has employed the right reasoning. Using image regions, or more accurately bounding boxes, as an evaluation metric also has the advantage that Intersection-over-Union (IoU) measures are well understood in the field.
+
+The version of the VQA problem that we apply this approach to is Scene Text VQA. Several recent works [4, 29] have revealed that current VQA models perform badly on text VQA datasets, so it represents a compelling challenge falling within the existing framework. The various forms of text VQA problem are also of great practical importance, because text represents a critical cue to understand the content of an image. More than this, text VQA problems are typically less susceptible to solve through exploiting coincidental correlations in the data.
+
+A variety of text-based VQA datasets [4, 15, 24, 29] have been proposed. However, there is still a significant gap between current algorithm performance and that required to support practical applications [4, 24, 29]. Another motivating factor in selecting text-based VQA rather than the generic version of the problem is that the text-based version of the problem is less susceptible to n-way classification over a fixed vocabulary. This is due to the fact that the range of text appearing in images is quite broad. The classification-based approach has repeatedly been shown to be susceptible to overfitting [1, 7]. Text-based VQA requires the development of alternative approaches, some of which will hopefully generalize.
+
+Fig. 2 depicts some of the challenges with existing scenetest based VQA system. For example, Fig. 2(a) is a sample question that can be answered without reference to any textual content; while the question in Fig. 2(b) could have more than one correct answer; the question in Fig. 2(c) requires prior knowledge to answer; and finally in Fig. 2(d), the answer can not be obtained directly from the text in the image, but require other skills.
+
+Empirical results presented in Fig. 3 demonstrate that current VQA approaches rely heavily on a pre-defined answer space constructed by analysis of the answers in the training set, and thus limiting generalization. As shown in Fig. 3(b), their dependence on superficial image features can render conventional VQA methods sensitive to image modifications that do not change the semantics. Fig. 3(c) and 3(d) demonstrate their propensity to generate an answer even when the required information is not present.
+
+Text-VQA [29] employed the generic VQA accuracy as the performance metric, while ST-VQA [4] used a soft score metric inspired by the optical character recognition community. Both of these metrics are results-oriented, which
+
+means that a prediction is deemed correct if it is identical to the ground-truth. They do not assess the reasoning process. Such classification-based VQA models are able to achieve impressive performance but they are prone to overfit a fixed answer space and generalize poorly to other datasets.
+
+To address these issues, we propose a new scene-text based VQA dataset called 'Evidence-based Scene Text Visual Question Answering' (EST-VQA). Based on this, three tasks namely cross language challenge, localization challenge and traditional challenge are introduced to motivate the creation of solutions with practical value from various aspects. Also, a series of baseline experiments were conducted to establish a lower bound for these three challenges. The main contributions of this paper are outlined as follows:
+
+- Dataset: The EST-VQA dataset provides questions, images and answers, but also a bounding box for each question that indicates the area of the image that informs the answer. We refer to such bounding boxes as evidence. The dataset is intended to enable the development of text VQA methods that are closer to the levels of performance required by practical applications, but also to encourage the development of general VQA methods that generalize.
+- Evaluation Metric: We introduce an Evidence-based Evaluation (EvE) metric, which will require a VQA model to provide evidence to support the predicted answer. For this purpose, a new VQA model is also proposed. Under this new metric, it is anticipated that it will be much more difficult for naive classification models to achieve inflated performance.
+- Bilingual: To the best of our knowledge, the proposed EST-VQA is the first bilingual scene text VQA dataset that includes both English and Chinese question and answer pairs. The fact that the proposed dataset embodies questions in two languages further rewards methods that generalize well. It is more difficult for a method to exploit superficial correlations in questions expressed in multiple languages. The languages chosen are also particularly grammatically distinct, and reflect culturally distinct populations, which leads to different question statistics, and further encourages generalization.
+
+# 1.1. Related Work
+
+Visual Question Answering has gained significant attention recently, partly because it seems so unlikely that a method might be capable of answering all possible questions about all possible images[3, 22]. Readers are encouraged to refer to [12, 34] for a complete overview. Due to space constraint, this section only reviews the most relevant works to this paper, i.e., text-based VQA.
+
+
+(a)
+
+
+(b)
+Figure 2. Some example images and QA pairs from the Text-VQA proposed in [29]. Four different types of issues are shown. (a) questions that can be answered without reading image text; (b) questions that have more than one correct answer; (c) questions that require a large amount of external knowledge to answer; (d) questions that require skills that cannot be learned from the training data alone.
+
+
+(c)
+
+
+(d)
+
+# Q: What state does this team play for?
+
+
+(a) Original Image
+
+
+(b) Cropped Image w/ text
+
+
+(c) Cropped Image w/o text
+
+
+(d) Occluded Image
+
+
+Figure 3. A comparison of conventional (LoRRA [29]), and evidence-based VQA methods.
+
+
+
+
+
+
+
+
+
+
+Figure 4. Illustration of the mainstream VQA models. $D_{q}$ , $D_{i}$ , $D_{o}$ and $D_{h}$ are the dimensions of the word embedding, image feature, OCR token embedding and hidden vector representations respectively. $N$ , $N'$ and $P$ indicate question length, number of OCR tokens and answer space. Blocks with dashed lines are optional modules used for text-based VQA.
+
+# 1.2. Text-based VQA
+
+In contrast to generic VQA datasets [12, 34], text-based VQA datasets pay more attention to text related questions where a VQA model is required to read and understand textual content in an image. In [29], the authors proposed a dataset and baseline model, called Text-VQA and LoRRA respectively. LoRRA follows the structure of mainstream VQA models (see Fig. 4) where image features and word embedding are fused to train a classifier. Later, two other similar datasets were introduced, i.e., ST-VQA [4] and OCR-VQA [24]. All these three datasets provide images with text related question and answer pairs. However, there
+
+| Dataset | Train + Val | Test | Image Source |
| # I | # Q | # I | # Q |
| [4] | 19k | 26k | 3k | 4k | [6, 8, 13, 14, 17, 23, 32] |
| [24] | 180k | 900k | 20k | 100k | [9] |
| [29] | 25k | 39k | 3k | 5k | [16] |
| ours | 21k | 23k | 4k | 5k | [5, 13, 14, 20, 25, 31, 32] |
+
+Table 1. A comparison of the amount and source of images between different text-based VQA datasets. #I and #Q indicate the number of images and questions respectively.
+
+are several important differences between them, as well as to our proposed dataset:
+
+Diversity: Table 1 shows the size and image sources of existing datasets and our dataset. Both of the Text-VQA [29] and OCR-VQA [24] images came from a single image database which is Open Images v3 dataset [16] and Book Cover Dataset [9] respectively. While ST-VQA [4] was built upon a combination of public image datasets that include multiple tasks, e.g., text detection [13, 32], image classification [6], generic visual question answering [8], etc. It is noteworthy that although [24] has the highest amount of images and QA pairs, the images are all book covers, thus the diversity of images and questions are very limited. ESTVQA dataset stands out among other text VQA datasets with the consideration that existing datasets pay more attention to the question answering part, and the OCR part is almost ignored in both training and evaluation of the model.
+
+Evaluation Metric: [29] employs a widely used VQA ac
+
+
+(a) English Question
+
+
+(b) Chinese Question
+Figure 5. Distribution of first four words in question sets of EST-VQA.
+
+curacy which was first proposed in [7]. Under this metric, each question has 10 answers that are labeled by different human annotators. Supposed that the prediction of a VQA model is ans, then the score for a single sample is calculated as:
+
+$$
+s _ {v} (a n s) = \min \left\{\frac {\# \text {h u m a n s t h a t s a i d} a n s}{3}, 1 \right\} \tag {1}
+$$
+
+where $\#$ indicates the number of human annotated labels that are identical to the predicted answer. This metric is robust against the incorrect answers given by some annotators. However, it is clear that only 4 discrete scores would appear, i.e., $\{0, \frac{1}{3}, \frac{2}{3}, 1\}$ . In [4], Levenshtein distance [18] was proposed to softly penalize a mistake. Given the predicted answer $ans$ and ground-truth label $gt$ , then the normalized
+
+Levenshtein similarity score $s_l$ is given as:
+
+$$
+s _ {l} (\text {a n s}, g t) = \left\{ \begin{array}{l l} 1 - N L (\text {a n s}, g t), & N L (\text {a n s}, g t) < \tau \\ 0, & N L (\text {a n s}, g t) \geq \tau \end{array} \right. \tag {2}
+$$
+
+where $\tau$ is a penalty threshold, and NL is the normalized Levenshtein distance between ground-truth and prediction.
+
+# 2. Proposed Dataset: EST-VQA
+
+A fundamental hypothesis in EST-VQA dataset is that a VQA model should answer a question correctly based on the textual content in an image. Therefore, we separate our scene text VQA tasks into two parts, i.e., 1) text spotting and 2) question answering. In this section, we describe the process to build the EST-VQA dataset. Also, we will detail the evidence-based evaluation metric and the new tasks for EST-VQA dataset.
+
+# 2.1. Data Collection
+
+Images: As EST-VQA dataset is designed for scene text VQA tasks, we collected a total of 20,757 images from publicly available scene text detection and recognition datasets. Specifically, images annotated with English questions and answers are obtained from Total-Text [5], ICDAR 2013 [14], ICDAR 2015 [13], CTW1500 [20], MLT [25], and COCO Text [32]. Whereas, images with Chinese questions and answers are collected from LSVT [31]. All the images originated from these scene text datasets are comprised of daily scenes that include both indoor and outdoor settings.
+
+Questions and Answers: The proposed EST-VQA dataset consists of 15,056 English questions and 13,006 Chinese questions. The question and answer pairs could be formed in cross-language e.g., an English question queries the name of a Chinese restaurant so that the answer could be a Chinese text and vice versa for Chinese question. For the collection of question and answer pairs, annotators were requested to come up with questions that can be answered only by reading texts in the images. In order to avoid the question that does not require reading any text in the image, annotators are enforced to label a corresponding quadrilateral bounding box of the textual answer. The annotated bounding box will then serve as an evidence to support the answer. Moreover, yes/no questions and ambiguous questions that could have multiple correct answers are prohibited. Fig. 5 shows the common types of question, it is clear that most of the English questions start with "what", and follow by 'is' and 'the'. However, the composition of Chinese questions is far more complex than the English questions due to differences in grammar, vocabulary and other characteristics of the Chinese language. Fig. 6 shows the distribution of the length of questions and answers. Different from English words which can be segmented by space directly, Chinese words are composed of multiple Chinese
+
+
+Figure 6. Percentage of question and answer length in EST-VQA dataset. Questions are tokenized by words. En and Ch stand for English and Chinese respectively.
+
+| Set | English | Chinese | All |
| # I | # Q | # I | # Q | # I | # Q |
| Train | 11,383 | 12,638 | 9,374 | 10,506 | 20,757 | 23,144 |
| Test | 2,267 | 2,514 | 2,215 | 2,500 | 4,482 | 5,014 |
| Total | 13,650 | 15,152 | 11,589 | 13,006 | 25,239 | 28,158 |
+
+Table 2. Volume of the EST-VQA dataset.
+
+characters in a continuous sentence. Therefore, we use [30] to tokenize Chinese questions for counting the percentage of question length. From Fig. 6, it is clear that most of the English and Chinese questions have between 6 to 8 words, and the majority of their answers are of a single word.
+
+In summary, as shown in Table 2, 25,239 images and 28,158 QA pairs are separated into 20,757 images with 23,144 questions for the training set and 4,482 images with 5,014 questions for the testing set.
+
+# 2.2. Evidence-based Evaluation (EvE) Metric
+
+We observed an intriguing trend among the classification based approaches for scene text VQA task. That is to say, if the ground-truth answer was included in the pre-generated answer dictionary, a generic VQA model may predict a correct answer without reading the textual content. However, such methods rely heavily on the pre-defined answer pool and so, they are unable to handle questions with out-of-vocabulary answers. Therefore, it is unclear whether such models truly have the capability to understand and reason about the questions or they are merely over-fitting to the fixed answer space. Inspired by this observation, we introduce a new evaluation protocol, named Evidence-based Evaluation (EvE) metric, which will require a VQA model to provide evidence to support the predicted answers. Under this metric, it will be much more difficult for naive classification models to achieve inflated performance.
+
+Generally, EvE metric consists of two steps: a) check the answer; b) check the evidence. In the former, we use the normalized Levenshtein similarity score (see Eq. (2)). In the latter, we adopt the widely used IoU metric to determine whether the evidence is sufficient or insufficient. Suppose $B_{gt}$ and $B_{det}$ are the ground-truth and predicted bounding box respectively, then the evidence sufficiency score, $E$ is
+
+
+Question: How many milligrams are the Valium 2?
+
+
+(b) Incorrect Evidence
+
+
+(a) Without Evidence
+A: $[x_1', y_1', x_2', y_2', x_3', y_3', x_4', y_4']$ ,'2'
+(c) Insufficient Evidence
+Figure 7. In EvE metric, evidence in the form of bounding box should be provided as well as the predicted answer. Green and red bounding boxes are ground-truth and predicted evidence respectively. Incorrect: (a) answer without evidence; (b) answer with inappropriate evidence; (c) answer with insufficient evidence.
+
+
+A: $[\bar{x}_1,\bar{y}_1,\bar{x}_2,\bar{y}_2,\bar{x}_3,\bar{y}_3,\bar{x}_4,\bar{y}_4,]$ 2
+(d) Sufficient Evidence
+
+Correct: (d) answer with appropriate evidence. It is worth mentioning that all of the above answers would be marked as correct in the conventional VQA evaluation metric because all of them give the right answer '2'.
+
+defined as:
+
+$$
+E _ {\tau} ^ {i} = f \left(\frac {B _ {g t} \cap B _ {d e t}}{B _ {g t} \cup B _ {d e t}}\right) = \left\{ \begin{array}{l l} I n c o r r e c t, & E = 0 \\ I n s u f f i c i e n t, & 0 < E < \theta \\ S u f f i c i e n t, & E \geq \theta \end{array} \right. \tag {3}
+$$
+
+where $\theta = 0.5$ is a predefined threshold. Under the EvE metric, only correct answers with sufficient evidence contribute to the final performance $s_e$ (see Fig. 7) where it is given by:
+
+$$
+s _ {e} (a n s, g t, E) = \left\{ \begin{array}{l l} s _ {l}, & \text {i f} E \text {s u f f i c i e n t} \\ 0, & \text {e l s e} \end{array} \right. \tag {4}
+$$
+
+where $s_l$ is the normalized Levenshtein similarity score as defined in Eq. (2).
+
+# 2.3. Tasks
+
+Both Text-VQA [29] and OCR-VQA [24] follow the same rules as presented in generic question answering task. Although ST-VQA [4] proposed three tasks, the only difference between each of the tasks is the size of external information (vocabulary), which is insignificant and unreasonable to properly evaluate the models' full capability. For instance, in the strongly contextualized task, all ground-truth answers are provided in a dictionary for every image with a set of distractors, which makes the VQA model prone to overfit the provided vocabulary. Besides, it becomes more
+
+
+Figure 8. Overview of the QA R-CNN architecture
+
+difficult for these models that are trained on a fixed dictionary to generalize to other datasets.
+
+As a result of this, we propose three related tasks namely as Cross Language Challenge, Localization Challenge, and Traditional Challenge that will be detailed next to improve the task diversity. An online evaluation server will be set up for results submission.
+
+- Cross Language Challenge (CLC): As the proposed EST-VQA dataset is a bilingual VQA dataset that contains both English and Chinese QA pairs. This challenge aims to explore a model's ability in extracting common knowledge between different languages. Under this challenge, the candidates are requested to submit results predicted by both the monolingual (English-only, Chinese-only) and bilingual models with an identical framework (e.g. network structure) for evaluations. The proposed EvE metric is used to evaluate the model's performance in this challenge.
+- Localization Challenge (LC): To gain insights into a VQA model, we encourage candidates to train an evidence based VQA model to simultaneously predict the answer and its corresponding bounding box as evidence, instead of simply employing an off-the-shelf OCR system to obtain the OCR tokens. Hence, the main objective of this challenge is to explore the VQA model's ability in understanding the question and locating the correct image space that contains the answers. That is to say, this challenge requires the VQA model to provide the spatial location where an answer will be most likely to appear in an image based on a question. Compared to the full challenge, LC ignores the text recognition error and the difficulties of combining multiple OCR tokens for long answers. IoU between the predicted and ground-truth bounding box is employed as the performance metric for this challenge.
+- Traditional Challenge (TC): We maintain the traditional VQA challenge that is consistent with the existing VQA datasets in which this challenge does not consider the evidence for the predicted answers. The normalized Levenshtein similarity score between the prediction and ground-truth is employed as the metric for this challenge.
+
+# 3. Baselines and Results
+
+# 3.1. Baseline Methods
+
+This section presents the naive baseline models and two state-of-the-art VQA methods [28, 29] that were employed in the experiments. This helps to show the difficulty of the proposed EST-VQA dataset and the new tasks. The entire EST-VQA dataset is separated into training and testing sets (see Table 2), and $10\%$ data from the training set is used for validation.
+
+Vocabulary Upper Bound: As both [28] and [29] are classification based, two dictionaries are built under the widely used rules. Specifically, a small vocabulary (SV) is built with 927 English and 365 Chinese answers that appeared more than once in the training set and a Larger Vocabulary (LV) is built with 8,102 English and 8,212 Chinese unique answers. We explore the upper bound accuracy of the pregenerated SV and LV. We assume that answers included in the dictionaries can always be predicted correctly with perfect evidence to calculate the upper bound accuracy.
+
+OCR Upper Bound: Since the traditional VQA models cannot obtain OCR tokens and info directly, we employ the state-of-the-art pre-trained text detection and recognition models [21, 27] to extract OCR bounding boxes and characters. To evaluate the effectiveness of the OCR system, we calculate the OCR upper bound accuracy on the test set. All of the answers and evidence are directly obtained from the OCR results (and suppose the correct one can always be selected), it also considers combinations of up to 4 OCR tokens for multi-word answers.
+
+Random OCR Tokens: To assess arbitrary chance, this baseline returns a random OCR token and its bounding box from the OCR results for each question to obtain the random accuracy.
+
+State-of-the-art Approaches: Both state-of-the-art generic [28] and scene text [29] VQA models are employed as baselines to verify the difficulties of the EST-VQA dataset. It is important to note that these methods cannot provide evidence to support their predicted answers. Therefore, we queried the predicted answers from OCR results, i.e., if there are any identical OCR tokens to the predicted answer, then one of the predicted bounding boxes would be ran-
+
+| Model | CLC (%) | LC (%) | TC (%) | Δr |
| Mono. | Bi. | Bi. | Mono. | Bi. | |
| En | Ch | En | Ch | S | L | Acc | En | Ch | Acc | En | Ch | En | Ch | Acc | |
| SV UB | - | - | - | - | - | - | - | - | - | - | 31.1 | 7.8 | 31.3 | 8.9 | 20.1 | - |
| LV UB | - | - | - | - | - | - | - | - | - | - | 48.0 | 16.1 | 48.3 | 17.0 | 32.7 | - |
| OCR UB | 33.9 | 24.5 | 33.9 | 24.5 | 44.1 | 14.3 | 29.2 | 50.0 | 37.8 | 43.9 | 38.5 | 28.2 | 38.5 | 28.2 | 33.3 | - |
| Random | 4.4 | 1.1 | 4.7 | 1.2 | 5.1 | 0.8 | 3.0 | 15.1 | 5.1 | 10.1 | 5.8 | 1.5 | 5.9 | 1.5 | 3.7 | 0.81 |
| P[28]+SV | 4.3 | 0.1 | 4.5 | 0.1 | 4.3 | 0.2 | 2.3 | 17.2 | 1.8 | 9.5 | 8.0 | 0.7 | 7.7 | 0.7 | 4.2 | 0.54 |
| P[28]+LV | 4.7 | 0.2 | 4.4 | 0.2 | 4.2 | 0.3 | 2.3 | 17.4 | 2.4 | 9.9 | 9.2 | 0.8 | 8.2 | 0.6 | 4.4 | 0.52 |
| L[29]+SV | 8.2 | 1.2 | 8.4 | 2.0 | 9.6 | 0.8 | 5.2 | 18.0 | 5.4 | 11.7 | 12.0 | 2.6 | 13.2 | 3.3 | 8.2 | 0.63 |
| L[29]+LV | 7.7 | 0.5 | 6.8 | 0.7 | 6.8 | 0.7 | 3.8 | 18.5 | 3.9 | 11.2 | 12.0 | 1.6 | 11.2 | 1.7 | 6.5 | 0.58 |
| QA R-CNN | 7.7 | 1.4 | 8.8 | 3.2 | 10.8 | 1.1 | 6.0 | 18.3 | 7.3 | 12.8 | 9.6 | 2.2 | 10.6 | 4.0 | 7.3 | 0.82 |
| QA R-CNN w/ tricks | 7.4 | 1.5 | 8.4 | 2.9 | 10.3 | 1.0 | 5.7 | 18.3 | 7.2 | 12.8 | 11.8 | 7.9 | 12.7 | 9.4 | 11.0 | 0.52 |
+
+Table 3. Quantitative results of the three tasks in EST-VQA dataset. Mono. and Bi. represent monolingual and bilingual model respectively while S and L are short (one word) and long (more than one word) answers. Scores in bold are the best performance across models.
+
+
+Figure 9. CLC score under different $\tau$
+
+domly selected as evidence, otherwise bounding box of the token which has the smallest normalized Levenshtein distance is selected.
+
+QA R-CNN: It is noteworthy that all of the aforementioned baseline methods cannot simultaneously output the answer and its corresponding bounding box as evidence. Therefore, we propose QA R-CNN. Generally, QA R-CNN consists of two parts: Focusing Module (FM) and Reasoning Module (RM) (see Fig. 8). The core component in FM is a customized Faster R-CNN network trained for text detection task. Compared to the regular Faster R-CNN which only predicts the bounding box and object category, QA R-CNN also outputs a focusing score for each of the bounding boxes. Technically, word embedding of question is first extracted by GloVe [26] for English questions and Word2Vec [19] for Chinese questions. Then, the embedding is fed into LSTM layers to obtain question features. Following this, both question and image features are concatenated to classify the bounding box into answer area and non-answer area. This enables the QA R-CNN to gain the ability to draw its attention to the area that the answer may appear in the image. As such, a straightforward idea is that the model can directly use the underlying text of the bounding box with the highest focusing score as the question's answer. However, the rich semantics of the textual content will not be considered. Therefore, RM is introduced to further improve the pipeline. In RM, we follow the similar architecture in LoRRA where the semantics of detected text are further explored. Specifically, word embedding of the OCR tokens is extracted by FastText [11] models that are pretrained on English/Chinese Wikipedia, and then the OCR
+
+embedding is fused with both image features and question embedding for further classification. Different from other classification-based approaches, we do not use a pre-defined fixed dictionary as the answer space but only use the detected OCR tokens, i.e., only the detected text can be used as the answer. In the end, the weighted score of FM and RM are summed up for the final prediction.
+
+# 3.2. Results
+
+Quantitative Results: Table 3 summarizes the results of the baselines and our method on the EST-VQA dataset. The penalty threshold $\tau$ is practically set to 0.75 during the evaluation to ensure the answer quality. Fig. 9 shows the CLC score under different $\tau$ for bilingual models.
+
+We first measure the upper bound performance of the two pre-defined dictionaries SV and LV. Similar to other scene text VQA datasets, SV and LV can achieve high accuracy on English questions, i.e., 31.1 and 48.0 respectively. However, they failed catastrophically on the Chinese questions due to the language features and lower overlapping of answers between the training and testing splits. Hence, it is more difficult for the classification based method to obtain a promising performance on the Chinese split in the EST-VQA dataset. We also provide the upper bound accuracy of the OCR results that are generated by [21, 27], and it achieves better accuracy on Chinese questions compared to the fixed vocabularies. Then a baseline using random OCR token is set as a comparison with other approaches, and this heuristic method only achieves 3.0 and 3.7 overall score for the CLC and TC tasks respectively.
+
+To further justify the need for EST-VQA, we trained two state-of-the-art approaches, i.e., Pythia (P) [28] and LoRRA (L) [29]. As shown in Table 3, both methods perform badly on Chinese questions due to a large amount of out-of-vocabulary answers in the test set. Also, as the CLC task requires a model to provide evidence as well as the answer, the accuracy of all of the studied methods dropped significantly when compared to the TC score. This is because the models infer the answers without actually reading the textual content in the images (see Fig. 3(c) and 3(d)), thus they
+
+
+Q: What is the room number?
+
+A:708
+
+P+SV: 2006
+
+P+IV:ca
+
+L+SV:18
+
+L+LV:18
+
+QA R-CNN: 8
+
+QA R-CNN w/t: 8
+
+
+Q: When was this photo uploaded?
+
+A:2012
+
+P+SV: snowbird
+
+P+LV: 108
+
+L+SV: 2012
+
+L+LV: 29/08/2012
+
+QA R-CNN: 2012
+
+QA R-CNN w/t: 2012
+
+
+Q: 伟业水电安装的联系人是谁?
+Figure 10. Visualization of the output answers on the EST-VQA dataset from different models (first four images). Green and Red bounding boxes are ground-truth and predicted evidence by QA R-CNN. (More examples can be found at https://arxiv.org/abs/2002.10215)
+
+A: 张生
+
+P+SV: 烧烤时代
+
+P+LV: 上海
+
+L+SV: 档口袋
+
+L+LV不
+
+QA R-CNN: 冠前
+
+QA R-CNN w/t: 冠前
+
+
+Q:这里是河南中路多少门牌号?
+
+A:20
+
+P+SV: wells fargo
+
+P+LV: 春昇
+
+L+SV:20
+
+L+LV:长
+
+QA R-CNN: 三
+
+QA R-CNN w/t: 20
+
+
+Q: What's the text on the bottom?
+
+A: snowbird
+
+can not provide reasonable evidence to support the answer. In contrast, the proposed QA R-CNN shows more robust results on the three tasks (see Table 3).
+
+To further explore the proposed CLC task, we also trained a QA R-CNN with bells and whistles, many heuristic manual rules are adopted to lift the performance. Under this model, it outputs answers predominantly from the vocabulary for a certain type of questions. And if the model failed to detect the corresponding text, question related text would be picked up from the dictionary (e.g. digits for "what number") as the answer. Although this heavy model achieves top performance on the TC task, its CLC score is even lower than the baseline QA R-CNN. Such a scenario suggests that the evaluation protocol used in the current conventional VQA task is not reasonable to some extent, because the VQA models can easily overfit to the answer space by using tricks. Therefore, we introduce a reasonable score $\Delta_r$ to measure the percentage of answers with sufficient evidence, and it is denoted as $\Delta_r = \frac{\mathrm{CLC}_{all}}{\mathrm{TC}_{all}}$ . Lower $\Delta_r$ means that the model has outputted many unreasonable but correct answers, which suggests that it might either overfit to the answer pool or use too many manual rules to achieve a higher score under conventional evaluation protocol. As shown in Table 3, the QA R-CNN w/ tricks obtained the lowest reasonable score although it outperforms all other models under the traditional evaluation protocol. Another interesting observation is that all methods achieve extremely low accuracy on the questions that have a longer answer. We believe this is because current models cannot combine multiple texts to generate a long answer. However, how to solve this issue is out of the scope of this paper, and thus we leave it for future work.
+
+Qualitative Results: Fig. 10 illustrates some selected visualization results of the baseline methods. Surprisingly, we found that some models do not learn the concept of question type at all. For example, the ‘P+LV’ model outputs a word ‘caffe’ for the question ‘What is the room number?’ that asks for a number, and ‘L+LV’ predicts a character ‘长’ (long) for the question ‘这里是河南中路多少门牌号’ (What is the house number of this shop here in Henan Middle Road?) that is also asking a number. Furthermore,
+
+incorrect recognition results will cause the models to output incorrect answers. Based on the first sample of Fig. 10, although the bounding box of the answer '708' was predicted correctly, it was however recognized as '8' and was further outputted as the answer. An interesting case is the 'L+LV' model answers the question 'When was this photo uploaded?' with '29/08/2012' when only '2012' appeared in the original image. Such a phenomenon tells us that similar answers in the vocabulary could interfere with the decision of classifier. Another noteworthy example is that 'P+SV' model predicts 'snowbird' for the question 'When was this photo uploaded'. We queried another image with the answer 'snowbird' in the training set (see the last image in Fig. 10) and it shows that the 'P+SV' model outputs the same answer when the image contains similar visual features. Therefore, we believe that this VQA model might rely too heavily on the image feature and learned to map the image feature with the answer space but it does not truly understand the question. Additionally, for the question that requires stronger reasoning ability and image with many texts, such as the third sample in Fig. 10, '伟业水电安装的联系人是谁? (Who is the contact person for Weiye Hydropower Installation?)', none of the models are able to predict the answer correctly.
+
+# 4. Conclusion
+
+We have introduced a new bilingual scene text+evidence VQA dataset named EST-VQA that is annotated with both English and Chinese QA pairs. Three related challenges are proposed, namely Cross Language, Localization and Traditional that are designed to evaluate the generalization of VQA models. An evidence-based measure of an algorithm's capacity to reason is also proposed that requires the VQA model to provide a bounding box for the predicted answer. This metric aims to uncover whether the VQA model learns deeper relationships between text and image content, rather than overfitting to a pre-defined dictionary. Future work includes extension of the proposed EvE metric to existing VQA datasets in the hope that it might improve generalization and thus the practicality of VQA technologies.
+
+# References
+
+[1] Aishwarya Agrawal, Dhruv Batra, Devi Parikh, and Aniruddha Kembhavi. Don't just assume; look and answer: Overcoming priors for visual question answering. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 4971-4980, 2018. 1, 2
+[2] Peter Anderson, Qi Wu, Damien Teney, Jake Bruce, Mark Johnson, Niko Sunderhauf, Ian Reid, Stephen Gould, and Anton van den Hengel. Vision-and-language navigation: Interpreting visually-grounded navigation instructions in real environments. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 3674-3683, 2018. 1
+[3] Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C Lawrence Zitnick, and Devi Parikh. Vqa: Visual question answering. In Proc. IEEE Int. Conf. Comp. Vis., pages 2425-2433, 2015. 1, 2
+[4] Ali Furkan Biten, Ruben Tito, Andres Mafla, Lluis Gomez, Marçal Rusinol, Ernest Valveny, CV Jawahar, and Dimosthenis Karatzas. Scene text visual question answering. Proc. IEEE Int. Conf. Comp. Vis., 2019. 2, 3, 4, 5
+[5] Chee Kheng Ch'ng, Chee Seng Chan, and Chenglin Liu. Total-text: Towards orientation robustness in scene text detection. Int. J. Doc. Anal. Recognit., 23:31-52, 2020. 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 Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 248-255. IEEE, 2009. 3
+[7] Yash Goyal, Tejas Khot, Douglas Summers-Stay, Dhruv Bartra, and Devi Parikh. Making the v in vqa matter: Elevating the role of image understanding in visual question answering. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 6904-6913, 2017. 1, 2, 4
+[8] Danna Gurari, Qing Li, Abigale J Stangl, Anhong Guo, Chi Lin, Kristen Grauman, Jiebo Luo, and Jeffrey P Bigham. Vizwiz grand challenge: Answering visual questions from blind people. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 3608-3617, 2018. 3
+[9] Brian Kenji Iwana, Syed Tahseen Raza Rizvi, Sheraz Ahmed, Andreas Dengel, and Seiichi Uchida. Judging a book by its cover. arXiv preprint arXiv:1610.09204, 2016.3
+[10] Justin Johnson, Bharath Hariharan, Laurens van der Maaten, Li Fei-Fei, C Lawrence Zitnick, and Ross Girshick. Clevr: A diagnostic dataset for compositional language and elementary visual reasoning. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., 2017. 1
+[11] Armand Joulin, Edouard Grave, Piotr Bojanowski, and Tomas Mikolov. Bag of tricks for efficient text classification. European Chapter of the Association for Computational Linguistics, 2016. 7
+[12] Kushal Kafle and Christopher Kanan. Visual question answering: Datasets, algorithms, and future challenges. Comput. Vis. Image Underst., 163:3-20, 2017. 2, 3
+[13] Dimosthenis Karatzas, Lluis Gomez-Bigorda, Anguelos Nicolaou, Suman Ghosh, Andrew Bagdanov, Masakazu Iwamura, Jiri Matas, Lukas Neumann, Vijay Ramaseshan Chandrasekhar, Shijian Lu, et al. Icdar 2015 competition on robust reading. In Proc. Int. Conf. Doc. Anal. and Recognit., pages 1156-1160. IEEE, 2015. 3, 4
+
+[14] Dimosthenis Karatzas, Faisal Shafait, Seiichi Uchida, Masakazu Iwamura, Lluis Gomez i Bigorda, Sergi Robles Mestre, Joan Mas, David Fernandez Mota, Jon Almazan Almazan, and Lluis Pere De Las Heras. Icdar 2013 robust reading competition. In Proc. Int. Conf. Doc. Anal. and Recognit., pages 1484-1493. IEEE, 2013. 3, 4
+[15] Aniruddha Kembhavi, Minjoon Seo, Dustin Schwenk, Jonghyun Choi, Ali Farhadi, and Hannaneh Hajishirzi. Are you smarter than a sixth grader? textbook question answering for multimodal machine comprehension. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 4999-5007, 2017. 2
+[16] Ivan Krasin, Tom Duerig, Neil Alldrin, Vittorio Ferrari, Sami Abu-El-Haija, Alina Kuznetsova, Hassan Rom, Jasper Uijlings, Stefan Popov, Andreas Veit, Serge Belongie, Victor Gomes, Abhinav Gupta, Chen Sun, Gal Chechik, David Cai, Zheyun Feng, Dhyanesh Narayanan, and Kevin Murphy. Openimages: A public dataset for large-scale multi-label and multi-class image classification. Dataset available from https://github.com/openimages, 2017.3
+[17] 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. Int. J. Comput. Vis., 123(1):32-73, 2017. 3
+[18] Vladimir Levenshtein. Binary codes capable of correcting deletions, insertions, and reversals. In Soviet physics doklady, volume 10, pages 707-710, 1966. 4
+[19] Shen Li, Zhe Zhao, Renfen Hu, Wensi Li, Tao Liu, and Xiaoyong Du. Analogical reasoning on Chinese morphological and semantic relations. Proc. Annu. Meet. Assoc. Comput. Linguist., 2018. 7
+[20] Yuliang Liu, Lianwen Jin, Shuai tao Zhang, Canjie Luo, and Sheng Zhang. Curved scene text detection via transverse and longitudinal sequence connection. Pattern Recogn., 90:337-345, 2019. 3, 4
+[21] Yuliang Liu, Sheng Zhang, Lianwen Jin, Lele Xie, Yaqiang Wu, and Zhepeng Wang. Omnidirectional scene text detection with sequential-free box discretization. Proc. Int. Joint Conf. Artificial Intell., 2019. 6, 7
+[22] Mateusz Malinowski and Mario Fritz. A multi-world approach to question answering about real-world scenes based on uncertain input. In Proc. Advances in Neural Inf. Process. Syst., pages 1682-1690, 2014. 2
+[23] Anand Mishra, Karteek Alahari, and CV Jawahar. Image retrieval using textual cues. In Proc. IEEE Int. Conf. Comp. Vis., pages 3040-3047, 2013. 3
+[24] Anand Mishra, Shashank Shekhar, Ajeet Kumar Singh, and Anirban Chakraborty. Ocr-vqa: Visual question answering by reading text in images. In Proc. Int. Conf. Doc. Anal. and Recognit., 2019. 2, 3, 5
+[25] Nibal Nayef, Yash Patel, Michal Busta, Pinaki Nath Chowdhury, Dimosthenis Karatzas, Wafa Khlif, Jiri Matas, Umapada Pal, Jean-Christophe Burie, Cheng-lin Liu, et al. Icdar2019 robust reading challenge on multi-lingual scene text detection and recognition-rrc-mlt-2019. arXiv preprint arXiv:1907.00945, 2019. 3, 4
+
+[26] Jeffrey Pennington, Richard Socher, and Christopher Manning. Glove: Global vectors for word representation. In Proc. Conf. Empir. Methods in Natural Language Process., pages 1532-1543, 2014. 7
+[27] Baoguang Shi, Xiang Bai, and Cong Yao. An end-to-end trainable neural network for image-based sequence recognition and its application to scene text recognition. IEEE Trans. Pattern Anal. Mach. Intell., 39(11):2298-2304, 2016. 6, 7
+[28] Amanpreet Singh, Vivek Natarajan, Yu Jiang, Xinlei Chen, Meet Shah, Marcus Rohrbach, Dhruv Batra, and Devi Parikh. Pythia-a platform for vision & language research. In SysML Workshop, Advances in Neural Inf. Process. Syst., 2018. 6, 7
+[29] Amanpreet Singh, Vivek Natarajan, Meet Shah, Yu Jiang, Xinlei Chen, Dhruv Batra, Devi Parikh, and Marcus Rohrbach. Towards vqa models that can read. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 8317-8326, 2019. 2, 3, 5, 6, 7
+[30] Junyi Sun. 'Jieba'. https://github.com/fxsjy/jieba, 2012.5
+[31] Yipeng Sun, Jiaming Liu, Wei Liu, Junyu Han, Errui Ding, and Jingtuo Liu. Chinese street view text: Large-scale chinese text reading with partially supervised learning. Proc. IEEE Int. Conf. Comp. Vis., 2019. 3, 4
+[32] Andreas Veit, Tomas Matera, Lukas Neumann, Jiri Matas, and Serge Belongie. Coco-text: Dataset and benchmark for text detection and recognition in natural images. arXiv preprint arXiv:1601.07140, 2016. 3, 4
+[33] Peng Wang, Qi Wu, Chunhua Shen, Anthony Dick, and Anton van den Hengel. FVQA: Fact-based visual question answering. IEEE Trans. Pattern Anal. Mach. Intell., 40(10):2413-2427, Oct. 2018. 2
+[34] Qi Wu, Damien Teney, Peng Wang, Chunhua Shen, Anthony Dick, and Anton van den Hengel. Visual question answering: A survey of methods and datasets. Comput. Vis. Image Underst., 163:21-40, 2017. 2, 3
+[35] Qi Wu, Peng Wang, Chunhua Shen, Anthony Dick, and Anton van den Hengel. Ask me anything: Free-form visual question answering based on knowledge from external sources. In Proc. IEEE Conf. Comp. Vis. Patt. Recogn., pages 4622-4630, 2016. 2
+[36] Kexin Yi, Jiajun Wu, Chuang Gan, Antonio Torralba, Pushmeet Kohli, and Josh Tenenbaum. Neural-symbolic vqa: Disentangling reasoning from vision and language understanding. In Proc. Advances in Neural Inf. Process. Syst., pages 1031-1042, 2018. 1
\ No newline at end of file
diff --git a/onthegeneralvalueofevidenceandbilingualscenetextvisualquestionanswering/images.zip b/onthegeneralvalueofevidenceandbilingualscenetextvisualquestionanswering/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..c4f14ccd2939368070ffff97e57aaa5b5a731126
--- /dev/null
+++ b/onthegeneralvalueofevidenceandbilingualscenetextvisualquestionanswering/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a86acd6d732c880facbf6671721b3b37d9c6212da6e0ad6b11860f7946016d74
+size 515050
diff --git a/onthegeneralvalueofevidenceandbilingualscenetextvisualquestionanswering/layout.json b/onthegeneralvalueofevidenceandbilingualscenetextvisualquestionanswering/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..7e6c8cd0934fd82ed86632cb4b39542881e80e28
--- /dev/null
+++ b/onthegeneralvalueofevidenceandbilingualscenetextvisualquestionanswering/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2a62718b998b53de8ba4f24bbadfad77c92abc49e493ff29ce7cf56b228f66e3
+size 380894
diff --git a/ontheregularizationpropertiesofstructureddropout/77f4484e-3168-429c-a995-43abb9c2bcfa_content_list.json b/ontheregularizationpropertiesofstructureddropout/77f4484e-3168-429c-a995-43abb9c2bcfa_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..dc0942de294ef2f4a8b8126354e2433cbc89ee6f
--- /dev/null
+++ b/ontheregularizationpropertiesofstructureddropout/77f4484e-3168-429c-a995-43abb9c2bcfa_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e66d60e0085568209a9cb6c07dbd87aa1cf24ec580f96dc12007b14219287e07
+size 83786
diff --git a/ontheregularizationpropertiesofstructureddropout/77f4484e-3168-429c-a995-43abb9c2bcfa_model.json b/ontheregularizationpropertiesofstructureddropout/77f4484e-3168-429c-a995-43abb9c2bcfa_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..a701c6478db9b4595642036ae4cb067022dcf5c1
--- /dev/null
+++ b/ontheregularizationpropertiesofstructureddropout/77f4484e-3168-429c-a995-43abb9c2bcfa_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:24290e0254ee1c157493b6e26ffafc2c20389fb6019a32cec5367716c1c2525a
+size 94539
diff --git a/ontheregularizationpropertiesofstructureddropout/77f4484e-3168-429c-a995-43abb9c2bcfa_origin.pdf b/ontheregularizationpropertiesofstructureddropout/77f4484e-3168-429c-a995-43abb9c2bcfa_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..3a51f553adf16510dac055c60a13b75bcca7660f
--- /dev/null
+++ b/ontheregularizationpropertiesofstructureddropout/77f4484e-3168-429c-a995-43abb9c2bcfa_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8524150d2e5736838177044dd412a947841dd26d87dcda5dea5805ef9dd80004
+size 968886
diff --git a/ontheregularizationpropertiesofstructureddropout/full.md b/ontheregularizationpropertiesofstructureddropout/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..b869f24b49be97f1e3ed9ff5845346f632de0875
--- /dev/null
+++ b/ontheregularizationpropertiesofstructureddropout/full.md
@@ -0,0 +1,364 @@
+# On the Regularization Properties of Structured Dropout
+
+Ambar Pal Connor Lane René Vidal Benjamin D. Haeffele Mathematical Institute for Data Science, Johns Hopkins University, Baltimore, MD
+
+{ambar,plane,rvidal,bhaeffele}@jhu.edu
+
+# Abstract
+
+Dropout and its extensions (e.g. DropBlock and DropConnect) are popular heuristics for training neural networks, which have been shown to improve generalization performance in practice. However, a theoretical understanding of their optimization and regularization properties remains elusive. Recent work shows that in the case of single hidden-layer linear networks, Dropout is a stochastic gradient descent method for minimizing a regularized loss, and that the regularizer induces solutions that are low-rank and balanced. In this work we show that for single hidden-layer linear networks, DropBlock induces spectral $k$ -support norm regularization, and promotes solutions that are low-rank and have factors with equal norm. We also show that the global minimizer for DropBlock can be computed in closed form, and that DropConnect is equivalent to Dropout. We then show that some of these results can be extended to a general class of Dropout-strategies, and, with some assumptions, to deep non-linear networks when Dropout is applied to the last layer. We verify our theoretical claims and assumptions experimentally with commonly used network architectures.
+
+# 1. Introduction
+
+Dropout is a widely-used heuristic for training deep neural networks (NN), which involves setting to zero the output of a random subset of hidden neurons at each training iteration. The improved generalization performance of Dropout in practice has led to many variants of dropout [3, 4, 5, 9], [10, 12, 13, 14]. However, despite the popularity and improved empirical performance of Dropout-style techniques, several theoretical questions remain regarding their optimization and regularization properties, e.g.: What objective function is minimized by general Dropout-style techniques? Do these techniques converge to a global minimum? Does Dropout-style regularization induce an explicit regularizer? What is the inductive bias of Dropout-style regularization?
+
+Related Work. Recent work has considered some of these questions in the case of single-layer linear neural networks trained with the squared loss. For example, [2] shows that
+
+Dropout is a stochastic gradient descent (SGD) method for minimizing the following objective:
+
+$$
+\min _ {\mathbf {U}, \mathbf {V}} \mathbb {E} _ {\mathbf {z}} \left\| \mathbf {Y} - \frac {1}{\theta} \mathbf {U} \operatorname {d i a g} (\mathbf {z}) \mathbf {V} ^ {\top} \mathbf {X} \right\| _ {\mathrm {F}} ^ {2}. \tag {1}
+$$
+
+Here $\mathbf{X} \in \mathbb{R}^{b \times N}$ and $\mathbf{Y} \in \mathbb{R}^{a \times N}$ denote a training set with $N$ training points, $\mathbf{U} \in \mathbb{R}^{a \times d}$ and $\mathbf{V} \in \mathbb{R}^{b \times d}$ are the output and input weight matrices, respectively, $d$ is number of hidden neurons, and $\mathbf{z}$ is a $d$ -dimensional vector of Dropout variables whose $i$ th entry $z_{i} \sim \mathrm{Ber}(\theta)$ is i.i.d. Bernoulli with parameter $\theta$ . In addition, [2] shows that Dropout induces explicit regularization in the form of a squared nuclear norm, which is known to induce low-rank solutions. Specifically, [2] shows that the optimization problem (1) reduces to
+
+$$
+\min _ {\mathbf {U}, \mathbf {V}} \| \mathbf {Y} - \mathbf {U V} ^ {\top} \mathbf {X} \| _ {F} ^ {2} + \frac {1 - \theta}{\theta} \sum_ {i = 1} ^ {d} \| \mathbf {u} _ {i} \| _ {2} ^ {2} \| \mathbf {X} ^ {\top} \mathbf {v} _ {i} \| _ {2} ^ {2}, \tag {2}
+$$
+
+where $\mathbf{u}_i$ and $\mathbf{v}_i$ denote the $i^{\mathrm{th}}$ columns of $\mathbf{U}$ and $\mathbf{V}$ , resp. Moreover, [2] shows that a global minimum $(\mathbf{U}^{*},\mathbf{V}^{*})$ of (2) yields a global minimum of $\min_{\mathbf{Z}}\| \mathbf{Y} - \mathbf{Z}\| _F^2 +\lambda \| \mathbf{Z}\|_*^2$ where $\mathbf{Z}^{*} = \mathbf{U}^{*}\mathbf{V}^{*^{\top}}\mathbf{X}$ and $\| \mathbf{Z}\|_{*}$ is the nuclear norm. In addition, [8] shows that the optimal weights $(\mathbf{U}^{*},\mathbf{V}^{*})$ can be found in polynomial time and are balanced, i.e., the product of the norms of incoming and outgoing weights, $\| \mathbf{u}_i\|_2\| \mathbf{X}^\top \mathbf{v}_i\|_2$ , is the same for all neurons.
+
+Paper Contributions. In this paper, we significantly generalize these results to more general Dropout schemes and more general neural network architectures. We first study DropBlock, an alternative to Dropout for convolutional networks which was recently proposed in [5] and displays improved performance compared to Dropout in practice. Instead of zeroing the output of each neuron independently, DropBlock introduces a structural dropping pattern by zeroing a block of neurons within a local neighborhood together to reflect the strong correlations in responses for neighboring pixels in a CNN. Specifically, for a block-size $r$ , we will look at the following optimization problem:
+
+$$
+\left. \min _ {\mathbf {U}, \mathbf {V}} \mathbb {E} _ {\mathbf {w}} \left\| \mathbf {Y} - \frac {1}{\theta} \mathbf {U} \left(\operatorname {d i a g} (\mathbf {w}) \otimes \mathbf {I} _ {\frac {d}{r}}\right) \mathbf {V} ^ {\top} \mathbf {X} \right\| _ {\mathrm {F}} ^ {2}, \right. \tag {3}
+$$
+
+where $\otimes$ denotes the Kronecker product and $\mathbf{w}$ are the stochastic Bernoulli variables with one entry $w_{i} \sim \mathrm{Ber}(\theta)$ getting applied simultaneously to a block of columns in $(\mathbf{U}, \mathbf{V})$ of size $r$ . In this paper, we study the regularization properties of DropBlock, and show that it induces low-rank regularization in the form of a $k$ -support norm on the singular values of the solution, which is known to have some favorable properties compared to the $\ell_1$ -norm [1]. This provides a step towards explaining the superior performance of DropBlock in practice, as compared to Dropout, which induces an $\ell_1$ -norm on the singular values. In this paper we also study the properties of the optimal solutions induced by DropBlock. Specifically, we prove that the solutions to (3) are such that the norms of the factors are balanced, i.e. products of corresponding blocks of $r$ columns of $\mathbf{U}$ and $\mathbf{V}$ have equal Frobenius norms. Combining these results will allow us to get a closed form solution to (3).
+
+We then extend our analysis to more general dropping strategies that allow for arbitrary sampling distributions for the Dropout variables and obtain the explicit regularizer for this general case. We also extend our analysis to Dropout applied to the last layer of a deep neural network and show that this as well as many existing results in the literature can be readily extended to this scenario. We end with a short result on an equivalence between Dropout and DropConnect, which is a different way of performing Dropout.
+
+Finally, various experiments are used to validate the theoretical results and assumptions whenever necessary.
+
+# 2. DropBlock Analysis
+
+In this section, we study the optimization and regularization properties of DropBlock, a variant of Dropout where blocks of neurons are dropped together. In this setting, we let $d$ be the final hidden layer dimension and let $r$ be the size of the block that is dropped. We make the simplifying assumption that the blocks form a partition of the neurons in the final hidden layer, which requires the hidden dimension $d$ to be a multiple of $r$ . This is a minor assumption when $d \gg r$ , which is typically satisfied. Then at each iteration, we sample a binary vector of $k = \frac{d}{r}$ i.i.d. $\mathrm{Ber}(\theta)$ random variables $\mathbf{w} \in \{0,1\}^k$ and set the corresponding block of variables in $\mathbf{z} \in \{0,1\}^d$ to the value of $w_i$ , i.e., $z_j = w_i$ for $(i - 1)r < j \leq ir$ . This sampling scheme, which we refer to as DropBlockSample $(\theta, r)$ , captures the key principle behind DropBlock by dropping a block of neighboring neurons at a time and is a very close approximation of DropBlock (which does not assume the blocks need to be non-overlapping) when $d \gg r$ . The resulting DropBlock algorithm that we will study is specified in Algorithm 1. Note that Dropout can be obtained as a particular
+
+Algorithm 1: Dropblock Algorithm
+1: Input: Training Data $\mathcal{D} = \{\mathbf{x}_t,\mathbf{y}_t\}$ , Learning Rate $\eta$ Retain Probability $\theta$ , Block Size $r$
+2: Output: Final Iterates $\mathbf{U}_T$ $\mathbf{V}_T$
+3: $\mathbf{U}_0\gets \mathbf{U}_{\mathrm{init}}$ $\mathbf{V}_0\gets \mathbf{V}_{\mathrm{init}}$
+4: for $t = 1,\dots ,T$ do
+5: $\mathbf{z}_{t - 1}\gets$ DropBlockSample( $\theta ,r)$
+6: $\mathbf{D_z}\gets$ diag $(\mathbf{z}_{t - 1})$
+7: Error, $\epsilon_t\gets ((\frac{1}{\theta}\mathbf{U}_{t - 1}\mathbf{D_z}\mathbf{V}_{t - 1}^\top \mathbf{x}_t) - \mathbf{y}_t)$
+8: $\mathbf{U}_t\gets \mathbf{U}_{t - 1} - \frac{\eta}{\theta}\epsilon_t\mathbf{x}_t^\top \mathbf{V}_{t - 1}\mathbf{D_z}$
+9: $\mathbf{V}_t\gets \mathbf{V}_{t - 1} - \frac{\eta}{\theta}\mathbf{x}_t\epsilon_t^\top \mathbf{U}_{t - 1}\mathbf{D_z}$
+10: end for
+
+case of DropBlock when the block size is set to $r = 1$ .
+
+Analysis Technique. Before presenting the details of our analysis in the subsequent subsections, we pause and comment on the analysis approach at a high level. Our goal is to understand the regularization induced by DropBlock training, i.e. Algorithm 1. We begin in Section 2.1 by observing that DropBlock training is equivalent to training the original un-regularized network with an additional regularization term. We continue in Section 2.2 by analyzing what happens to this regularizer when the network width is allowed to grow arbitrarily, and observe that the regularizer value goes to 0, hence providing no regularization to the problem. To address this issue, in Sec 2.3 we adaptively scale the dropout rate as a function of the network width and show that this induces a modified optimization problem whose optimal weights are balanced. These results are used in Sec 2.4 to obtain a convex lower bound to the optimization objective, which is shown to be tight, hence allowing us to relate the solutions of the convex lower bound to the solutions of the original objective of interest. Finally, we obtain a closed form solution to the convex lower bound, which additionally allows us to characterize solutions to the nonconvex DropBlock optimization problem in closed form.
+
+# 2.1. Regularizer Induced by DropBlock
+
+We first show that the DropBlock Algorithm 1 can be interpreted as applying SGD to the objective in (3). To that end, recall that the gradient of the expected value is equal to the expected value of the gradient. Thus, the gradient of $\| \mathbf{Y} - \frac{1}{\theta}\mathbf{U}(\mathrm{diag}(\mathbf{w})\otimes \mathbf{I}_{\frac{d}{r}})\mathbf{V}^{\top}\mathbf{X}\|_{\mathrm{F}}^{2}$ with respect to $\mathbf{U}$ and $\mathbf{V}$ for a random sample of $\mathbf{w}$ provides a stochastic gradient for the objective in (3). Steps 8 and 9 of Algorithm 1 compute such gradients. Therefore, we conclude that the DropBlock Algorithm 1 is a SGD method for minimizing (3).
+
+The next step is to understand the regularization properties of DropBlock. The following Lemma2 shows that the Dropblock optimization problem is equivalent to a deterministic formulation with a regularization term, which we
+
+denote by $\Omega_{\mathrm{DropBlock}}$ . That is, DropBlock induces explicit regularization.
+
+Lemma 1. The stochastic DropBlock objective (3) is equivalent to a regularized deterministic objective:
+
+$$
+\begin{array}{l} \mathbb {E} _ {\mathbf {w}} \left\| \mathbf {Y} - \frac {1}{\theta} \mathbf {U} (\operatorname {d i a g} (\mathbf {w}) \otimes \mathbf {I} _ {\frac {d}{r}}) \mathbf {V} ^ {\top} \mathbf {X} \right\| _ {\mathrm {F}} ^ {2} \\ = \| \mathbf {Y} - \mathbf {U V} ^ {\top} \mathbf {X} \| _ {\mathrm {F}} ^ {2} + \Omega_ {\text {D r o p B l o c k}} (\mathbf {U}, \mathbf {X} ^ {\top} \mathbf {V}), \tag {4} \\ \end{array}
+$$
+
+where $\Omega_{\mathrm{DropBlock}}$ is given by
+
+$$
+\Omega_ {\text {D r o p B l o c k}} \left(\mathbf {U}, \mathbf {X} ^ {\top} \mathbf {V}\right) = \frac {1 - \theta}{\theta} \sum_ {i = 1} ^ {k} \| \mathbf {U} _ {i} \mathbf {V} _ {i} ^ {\top} \mathbf {X} \| _ {\mathrm {F}} ^ {2} \tag {5}
+$$
+
+with $\mathbf{U}_i\in \mathbb{R}^{a\times r}$ and $\mathbf{V}_i\in \mathbb{R}^{b\times r}$ denoting the $i^{\text{th}}$ blocks of $r$ consecutive columns in $\mathbf{U}$ and $\mathbf{V}$ respectively and $k = \frac{d}{r}$ denoting the number of blocks.
+
+As expected, when we set $r = 1$ , i.e. when we drop blocks of 1 neuron independently, $\Omega_{\mathrm{DropBlock}}$ reduces to Dropout regularization in (2). Therefore, Dropout regularization generalizes Dropout regularization in (2) by taking the sum over the squared Frobenius norms of rank- $r$ submatrices. But what is the effect of this modification? Specifically, can we characterize the regularization properties of $\Omega_{\mathrm{DropBlock}}$ , and how it controls the capacity of the network?
+
+# 2.2. Capacity Control Property of DropBlock
+
+In this subsection we first study whether DropBlock is capable of constraining the capacity of the network alone. That is, if the network were allowed to be made arbitrarily large, is DropBlock regularization sufficient to constrain the capacity of the network?
+
+It is clear from the definition of $\Omega_{\mathrm{DropBlock}}$ that for any non-zero $(\mathbf{U},\mathbf{V})$ the regularizer will be strictly positive. However, it is not clear if the regularizer increases with $d$ . The following Lemma shows that when the Dropout probability, $1 - \theta$ , is constant with respect to $d$ , DropBlock alone cannot constrain the capacity of the network, because for any output $\mathbf{A}$ one can find a factorization into $\mathbf{U}\mathbf{V}^{\top}\mathbf{X}$ that makes $\Omega_{\mathrm{DropBlock}}$ arbitrarily small (approaching 0 in the limit) by making the width $d$ of the final layer large enough.
+
+Lemma 2. Given any matrix $\mathbf{A}$ , if the number of columns, $d$ , in $(\mathbf{U},\mathbf{V})$ is allowed to vary, with $\theta$ held constant, then
+
+$$
+\inf _ {d} \inf _ {\substack {\mathbf {U} \in \mathbb {R} ^ {m \times d}, \mathbf {V} \in \mathbb {R} ^ {n \times d} \\ \mathbf {A} = \mathbf {U V} ^ {\top} \mathbf {X}}} \Omega_ {\text {DropBlock}} (\mathbf {U}, \mathbf {X} ^ {\top} \mathbf {V}) = 0. \tag{6}
+$$
+
+Note that this result is also true for regular Dropout (a special case of DropBlock) with a fixed Dropout probability.
+
+In what follows, we show that if the Dropout probability, $1 - \theta$ , increases with $d$ , then DropBlock is capable of constraining the network capacity. Specifically, let us denote the retain probability for dimension $d$ as:
+
+$$
+\theta (d) = \frac {\bar {\theta} r}{\bar {\theta} r + (1 - \bar {\theta}) d}, \tag {7}
+$$
+
+where $\bar{\theta} = \theta (r)$ denotes the value of the DropBlock parameter when there is only one block, and $d = r$ . With $\theta = \theta (d)$ , Lemma 1 gives us the following deterministic equivalent of the DropBlock objective:
+
+$$
+f (\mathbf {U}, \mathbf {V}, d) = \| \mathbf {Y} - \mathbf {U V} ^ {\top} \mathbf {X} \| _ {\mathrm {F}} ^ {2} + \frac {d}{r} \frac {1 - \bar {\theta}}{\bar {\theta}} \sum_ {i = 1} ^ {k} \| \mathbf {U} _ {i} \mathbf {V} _ {i} ^ {\top} \mathbf {X} \| _ {\mathrm {F}} ^ {2}. \tag {8}
+$$
+
+In order to study the minimizers of $f(\mathbf{U},\mathbf{V},d)$ , note that at any minimizer $(\mathbf{U}^{*},\mathbf{V}^{*},d^{*})$ we would have the following:
+
+$$
+\begin{array}{l} f \left(\mathbf {U} ^ {*}, \mathbf {V} ^ {*}, d ^ {*}\right) = \| \mathbf {Y} - \mathbf {U} ^ {*} \mathbf {V} ^ {* ^ {\top}} \mathbf {X} \| _ {\mathrm {F}} ^ {2} + \\ \inf _ { \begin{array}{l} d \\ \mathbf {U} \in \mathbb {R} ^ {a \times d}, \mathbf {V} \in \mathbb {R} ^ {b \times d} \\ \mathbf {U V} ^ {\top} \mathbf {X} = \mathbf {U} ^ {*} \mathbf {V} ^ {* \top} \mathbf {X} \end{array} } \frac {d}{r} \frac {1 - \bar {\theta}}{\bar {\theta}} \sum_ {i = 1} ^ {k} \| \mathbf {U} _ {i} \mathbf {V} _ {i} ^ {\top} \mathbf {X} \| _ {\mathrm {F}} ^ {2} \tag {9} \\ \end{array}
+$$
+
+where the last term denotes the fact that given the global minimizer of the matrix product $(\mathbf{U}^{*}\mathbf{V}^{*^{\top}}\mathbf{X})$ the regularization induced by DropBlock will induce factors $(\mathbf{U}^{*},\mathbf{V}^{*})$ which minimize the induced regularization term $\Omega_{\mathrm{DropBlock}}$ .
+
+This motivates a study of the regularization induced by DropBlock in the product-space, which we denote as $\Lambda (\mathbf{A})$ :
+
+$$
+\Lambda (\mathbf {A}) = \frac {1 - \bar {\theta}}{\bar {\theta}} \inf _ {d} \inf _ {\substack {\mathbf {U} \in \mathbb {R} ^ {a \times d}, \mathbf {V} \in \mathbb {R} ^ {b \times d} \\ \mathbf {A} = \mathbf {U V} ^ {\top} \mathbf {X}}} \frac {d}{r} \sum_ {i = 1} ^ {k} \| \mathbf {U} _ {i} \mathbf {V} _ {i} ^ {\top} \mathbf {X} \| _ {\mathrm {F}} ^ {2}. \tag{10}
+$$
+
+By the definition of $\Lambda (\mathbf{A})$ in (10), one can define a function
+
+$$
+\bar {F} (\mathbf {A}) = \| \mathbf {Y} - \mathbf {A} \| _ {F} ^ {2} + \Lambda (\mathbf {A}) \tag {11}
+$$
+
+that globally lower bounds $f(\mathbf{U}, \mathbf{V}, d)$ , i.e.,
+
+$$
+\bar {F} (\mathbf {A}) \leq f (\mathbf {U}, \mathbf {V}, d), \forall (\mathbf {U}, \mathbf {V}, \mathbf {A}) \text {s . t .} \mathbf {U V} ^ {\top} \mathbf {X} = \mathbf {A} \tag {12}
+$$
+
+with equality for $(\mathbf{U},\mathbf{V},d)$ that achieve the infimum in (10). As a result, $\bar{F} (\mathbf{A})$ provides a useful analysis tool to study the properties of solutions to the problem of interest $f(\mathbf{U},\mathbf{V},d)$ as it provides a lower bound to our problem of interest in the output space (i.e., $\mathbf{UV}^{\top}\mathbf{X}$ ).
+
+While it is simple to see that $\bar{F} (\mathbf{A})$ is a lower bound of our problem of interest, it is not clear whether $\bar{F} (\mathbf{A})$ is a useful lower bound or whether the minimizers to $\bar{F}$ can characterize minimizers of $f$ . In the following analysis, we will prove that the answer to both questions is positive. That is, we will show that $\bar{F} (\mathbf{A})$ is a tight convex lower bound of $f$ , generalizing existing results in the literature [2, 8], and that minimizers of $\bar{F} (\mathbf{A})$ can be computed in closed form.
+
+# 2.3. DropBlock Induces Balanced Weights
+
+In order to characterize the minimizers of $f(\mathbf{U}, \mathbf{V}, d)$ , we first need to define the notion of balanced factors.
+
+Definition 3. A matrix pair $(\mathbf{U},\mathbf{V})$ is called balanced if the norms of the products of the corresponding blocks of $\mathbf{U}$ and $\mathbf{V}$ are equal, i.e., $\| \mathbf{U}_1\mathbf{V}_1^\top \mathbf{X}\|_{\mathrm{F}} = \| \mathbf{U}_2\mathbf{V}_2^\top \mathbf{X}\|_{\mathrm{F}} = \ldots = \| \mathbf{U}_k\mathbf{V}_k^\top \mathbf{X}\|_{\mathrm{F}}$ , where $\mathbf{U}_i$ and $\mathbf{V}_i$ denote the $i^{th}$ blocks of $r$ consecutive columns in $\mathbf{U}$ and $\mathbf{V}$ respectively.
+
+The following result shows that all minimizers of $f(\mathbf{U}, \mathbf{V}, d)$ are balanced.
+
+Theorem 4. If $(\mathbf{U}^{*},\mathbf{V}^{*},d^{*})$ is a minimizer of (8), then $(\mathbf{U}^{*},\mathbf{V}^{*})$ is balanced.
+
+Theorem 4 provides a characterisation of the minimizers of the DropBlock objective (8), saying that all the summands in the regulariser are equal at optimality. With this result, we will be able to link the minimizers of $f$ and $\bar{F}$ and hence find the regularization induced by DropBlock.
+
+We now note some connections to recent literature. Our result generalizes the balancing result obtained in [8], which corresponds to the particular case $k = 1$ . However, our proof technique is radically different. The proof in [8] exploits the rank-1 structure to show the existence of an orthonormal matrix $\mathbf{Q}$ such that a given factorization $(\mathbf{U},\mathbf{V},d)$ can be transformed to a balanced transformation $(\mathbf{U}\mathbf{Q},\mathbf{V}\mathbf{Q},d)$ . In contrast, the intuition behind our proof is that when $(\mathbf{U},\mathbf{V})$ are not balanced, we can add additional, duplicate blocks of neurons in a particular way to make the block-product-norms $\| \mathbf{U}_i\mathbf{V}_i^\top \mathbf{X}\|_{\mathrm{F}}$ more balanced, reducing the objective.
+
+Having shown this necessary condition for solutions to $f(\mathbf{U},\mathbf{V},d)$ , we now use this result to show that $\bar{F}$ is a tight lower bound of (8).
+
+Theorem 5. If $(\mathbf{U}^{*},\mathbf{V}^{*},d^{*})$ is a global minimizer of the factorized problem $f$ , then $\mathbf{A}^{*} = \mathbf{U}^{*}\mathbf{V}^{*^{\top}}\mathbf{X}$ is a global minimizer of the lower bound $\bar{F}$ . Furthermore, the lower bound is tight, i.e. we have $f(\mathbf{U}^{*},\mathbf{V}^{*},d^{*}) = \bar{F} (\mathbf{A}^{*})$ .
+
+Theorem 5 provides a link between the hard non-convex problem of interest, $f$ , and the lower bound, $\bar{F}$ , and gives us a guarantee that we can verify solutions to $f$ by showing they are solutions to $\bar{F}$ . Hence, we now focus our attention on characterizing solutions of $\bar{F}(\mathbf{A})$ .
+
+# 2.4. DropBlock Induces $k$ -support Norm Regularization
+
+Based on the above discussion, we now analyze the global minimizers of $\bar{F} (\mathbf{A})$ . Unfortunately, it is not clear yet whether $\Lambda (\mathbf{A})$ is convex w.r.t. $\mathbf{A}$ , which complicates the analysis of the global minimizers of $\bar{F} (\mathbf{A})$ . Therefore, we will consider instead the lower convex envelope
+
+of $\Lambda (\mathbf{A}),\Lambda^{**}(\mathbf{A})$ , and show that it gives a tight bound to the problem in (8). Furthermore, we will show that $\Lambda (\mathbf{A})$ (and by extension $\bar{F} (\mathbf{A}))$ is indeed convex by showing that $\Lambda (\mathbf{A}) = \Lambda^{**}(\mathbf{A}),\forall \mathbf{A}$
+
+First, recall that the lower convex envelope [11] of a function $h(x)$ is the largest convex function $g(x)$ such that $\forall x g(x) \leq h(x)$ , and is given by the Fenchel double dual (i.e., the Fenchel dual of the Fenchel dual). For $\Lambda(\mathbf{A})$ , the following result provides the lower convex envelope. Note that in this sub-section, we will assume that $\mathbf{X}$ has full column rank. This is typically a minor assumption since if $\mathbf{X}$ is not full rank adding a very small amount of noise will make $\mathbf{X}$ full rank.
+
+Theorem 6. When $\mathbf{X}$ has full column rank in (10), the lower convex envelope of the DropBlock regularizer $\Lambda(\mathbf{A})$ in (10) is given by
+
+$$
+\Lambda^ {* *} (\mathbf {A}) = \frac {1 - \bar {\theta}}{\bar {\theta}} \left(\sum_ {i = 1} ^ {\rho^ {*} - 1} a _ {i} ^ {2} + \frac {\left(\sum_ {i = \rho^ {*}} ^ {d} a _ {i}\right) ^ {2}}{r - \rho^ {*} + 1}\right), \tag {13}
+$$
+
+where $\rho^{*}$ is the integer in $\{1,2,\dots,r\}$ that maximizes (13), and $a_1\geq a_2\dots \geq a_d$ are the singular values of A.
+
+Note that the quantity $\rho^{*}$ mentioned in (13) is purely a property of the matrix $\mathbf{A}$ , the hidden dimension $d$ and the block size $r$ , and is determined completely in time $d\log d$ , given an SVD of $\mathbf{A}$ .
+
+We again note some connections to recent literature. The form of the solution (13) is particularly interesting because it is a matrix norm that has recently been discovered in the sparse prediction literature by [1], where it is called the $k$ -Support Norm and provides the tightest convex relaxation of sparsity combined with an $\ell_2$ penalty. When applied to the singular values of a matrix (as is the case here), it is called the Spectral $k$ -Support Norm, as studied recently in [7].
+
+Properties of the $k$ -Support Norm. We are often interested in obtaining sparse or low-rank solutions to problems, as they have been shown to generalize well and are useful in discarding irrelevant features. Specifically, if we are learning a vector $w$ , we can get sparse solutions by constraining the $\ell_0$ norm of $w$ , that is the number of non-zero entries in $w$ . However, $\| \cdot \|_0$ is not a convex function (and hence not a norm), and it is hard to solve an optimization problem with the constraint set $S_0 = \{w : \| w \|_0 \leq k\}$ . Hence, typically we relax the regularizer to be the $\ell_1$ norm, which has nicer properties. Constraining the $\ell_1$ norm does not yield a convex relaxation of $S_0$ , in the sense that $\| w \|_0$ might be small while $\| w \|_1$ is large. However, additionally constraining the $\ell_2$ norm fixes this problem, as the convex hull of the set $S_{0,2} = \{w : \| w \|_0 \leq k, \| w \|_2 \leq 1\}$ is a subset of $S_{1,2} = \{w : \| w \|_1 \leq \sqrt{k}, \| w \|_2 \leq 1\}$ , i.e. $\mathrm{conv}(S_{0,2}) \subseteq S_{1,2}$ . This motivates the use of the elastic-net
+
+regularizer in literature. Recently, researchers have looked at whether $S_{1,2}$ is the tightest convex relaxation of $S_{0,1}$ , and found that it is not. Specifically, [1] show that this tightest convex envelope can be obtained in closed form as a norm, which they call the $k$ -Support norm of $w$ .
+
+The $k$ -Support Norm is essentially a trade-off between an $\ell_2$ penalty on the largest components, and an $\ell_1$ penalty on the remaining smaller components. In our case, when $\rho^{*} = 1$ in (13), $\Lambda^{**}(\mathbf{A})$ reduces to $\frac{c_0}{r} (\sum_{i=1}^d a_i)^2 = \frac{c_0}{r} \| \mathbf{A} \|_*^2$ , which is (a scaling of) the nuclear norm (squared) of $\mathbf{A}$ . On the other hand, when the block size $r$ is larger, $\rho^{*}$ will take higher values, implying the regularizer $\Lambda^{**}(\mathbf{A})$ will move closer to $c_0 \sum_{i=1}^d a_i^2 = c_0 \| \mathbf{A} \|_{\mathrm{F}}^2$ , which is (a scaling of) the squared Frobenius norm of $\mathbf{A}$ . Therefore, the DropBlock regularizer acts as an interpolation between (squared) nuclear norm regularization when the block size is small to (squared) Frobenius norm regularization when the block size becomes very large. Further, [1, 7] observe that regularization using the $k$ -Support norm achieves better performance than other forms of regularization on some real-world datasets and this might be a step towards theoretically explaining the superior performance of DropBlock compared to Dropout, as was observed experimentally in [5].
+
+Closed Form Solutions for DropBlock. Continuing our analysis, with the convex envelope of $\Lambda (\mathbf{A})$ , we can construct a convex lower bound of the DropBlock objective $f(\mathbf{U},\mathbf{V},d)$ , as follows:
+
+$$
+\mathrm {F} (\mathbf {A}) = \left\| \mathbf {Y} - \mathbf {A} \right\| _ {\mathrm {F}} ^ {2} + \Lambda^ {* *} (\mathbf {A}) \tag {14}
+$$
+
+with the relationship $\mathrm{F}(\mathbf{A})\leq \bar{F} (\mathbf{A})\leq f(\mathbf{U},\mathbf{V})$ for all $(\mathbf{U},\mathbf{V},\mathbf{A})$ such that $\mathbf{UV}^{\top} = \mathbf{A}$ . As shown earlier in Theorem 5 the lower bound $\bar{F} (\cdot)$ takes the same minimum value as $f(\cdot ,\cdot ,\cdot)$ . By properties of the lower convex envelope, we know that the function $\bar{F} (\cdot)$ takes the same minimum value as its convex lower bound $\mathrm{F}(\cdot)$ . Following this reasoning, we now complete the analysis by deriving a closed form solution for the global minimum of $\mathrm{F}(\mathbf{A})$ .
+
+Theorem 7. When $\mathbf{X}$ has full column rank in (10), the global minimizer of $\mathrm{F}(\mathbf{A})$ is given by $\mathbf{A}_{\rho,\lambda} = \mathbf{U}_{\mathbf{Y}} \mathrm{diag}(\mathbf{a}_{\rho,\lambda}) \mathbf{V}_{\mathbf{Y}}^{\top}$ , where $\mathbf{Y} = \mathbf{U}_{\mathbf{Y}} \mathrm{diag}(\mathbf{m}) \mathbf{V}_{\mathbf{Y}}^{\top}$ is an SVD of $\mathbf{Y}$ , and $\mathbf{a}_{\rho,\lambda}$ is given by
+
+$$
+\mathbf {a} _ {\rho , \lambda} = \left\{ \begin{array}{l l} \left(\frac {m _ {1}}{\beta + 1}, \frac {m _ {2}}{\beta + 1}, \ldots , \frac {m _ {\lambda}}{\beta + 1}, 0, \ldots , 0\right) & i f \lambda \leq \rho - 1 \\ \left( \begin{array}{c} \frac {m _ {1}}{\beta + 1}, \frac {m _ {2}}{\beta + 1}, \ldots , \frac {m _ {\rho - 1}}{\beta + 1}, \\ m _ {\rho} - \frac {\beta}{c} S, m _ {\rho + 1} - \frac {\beta}{c} S, \ldots , \\ m _ {\lambda} - \frac {\beta}{c} S, 0, \ldots , 0 \end{array} \right) & i f \lambda \geq \rho . \end{array} \right.
+$$
+
+The constants are $\beta = \frac{1 - \bar{\theta}}{\theta}$ , $S = \sum_{i = \rho}^{\lambda}m_{i}$ , $c = r + \beta \lambda + (\beta + 1)(1 - \rho)$ , while $\rho \in \{1,2,\dots,r - 1\}$ and $\lambda \in \{1,2,\dots,d\}$ are chosen such that they minimize $\mathrm{F}(\mathbf{A}_{\rho,\lambda})$ .
+
+Note that the constants mentioned in Theorem 7 depend purely on the matrix $\mathbf{Y}$ , and can be computed in time $O(d^{2})$ given the singular values $m_{i}$ . Finally, the following Corollaries obtained from Theorem 4 complete the picture by showing that the solution computed in Theorem 7 recovers the value of the global minimizer of the DropBlock objective $f(\cdot ,\cdot ,\cdot)$ , and that $\Lambda$ is convex:
+
+Corollary 8. If $\mathbf{A}^*$ is a global minimizer of the lower convex envelope F, and $(\mathbf{U}^{*},\mathbf{V}^{*},d^{*})$ is a global minimizer of the non-convex objective f, then we have $\mathrm{F}(\mathbf{A}^{*}) = \bar{F} (\mathbf{A}^{*}) = f(\mathbf{U}^{*},\mathbf{V}^{*},d^{*})$ with $\mathbf{A}^{*} = \mathbf{U}(\mathbf{V}^{*})^{\top}\mathbf{X}$ .
+
+Corollary 9. $\Lambda (\mathbf{A})$ is convex and equal to its lower convex envelope $\Lambda^{**}(\mathbf{A})$ (i.e., $\Lambda (\mathbf{A}) = \Lambda^{**}(\mathbf{A}),\forall \mathbf{A}$ ).
+
+Note that the Corollary 8 also trivially applies if $\mathbf{A}^*$ is a global minimizer of $\bar{F}$ since $F$ and $\bar{F}$ share the same set of global minimizers. Having understood the properties of one particular generalization of dropout for a single hidden-layer linear network, we will now show how our methods can be generalised to other Dropout variants applied to the last layer of an overparameterized neural network.
+
+# 3. Generalized Dropout Framework
+
+In practice, commonly used neural network architectures typically have a fully-connected linear layer as the final layer in the network, and it is also common to use Dropout-style regularization only on this final fully-connected layer. This leads us to consider the effect of training deep NNs with Dropout-style regularization applied to a final linear layer. Specifically, we will consider a NN training problem with squared-loss of the form
+
+$$
+\min _ {\mathbf {U}, \Gamma} \mathbb {E} _ {\mathbf {z}} \| \mathbf {Y} - \mathbf {U} \operatorname {d i a g} (\boldsymbol {\mu}) ^ {- 1} \operatorname {d i a g} (\mathbf {z}) g _ {\Gamma} (\mathbf {X}) \| _ {\mathrm {F}} ^ {2}, \tag {15}
+$$
+
+where we follow the notation in the introduction, and in addition we let $g_{\Gamma}$ denote the output of the second to last layer of a NN with weight parameters $\Gamma$ (i.e., the $j^{\mathrm{th}}$ column of $g_{\Gamma}$ is the output of second to last layer of the network given input $\mathbf{x}_j$ ), $\mathbf{U} \in \mathbb{R}^{a \times d}$ be the weight matrix for the final linear layer, with $d$ being the size of the output of the second to last layer, and $\pmb{\mu} \in \mathbb{R}^{d} \backslash \mathbf{0}$ be a vector of the means of the Dropout variables, $\mu_i = \mathbb{E}[z_i]$ (note that in expectation, the output of the $i^{\mathrm{th}}$ hidden unit of $g_{\Gamma}$ is scaled by $\mathbb{E}[z_i]$ , so to counter this effect, we rescale the output by $\mathbb{E}[z_i]^{-1}$ ).
+
+We will assume that the Dropout variables $\mathbf{z}$ are stochastically sampled at each iteration of the algorithm from an arbitrary probability distribution $S$ with covariance matrix $\mathbf{C} = \mathrm{Cov}(\mathbf{z},\mathbf{z})$ and mean $\pmb{\mu}$ . Assuming that each entry of $\pmb{\mu}$ is non-zero, we define the Characteristic Matrix $\bar{\mathbf{C}}$ from entries of the mean and covariance of $\mathbf{z}$ , $\mu_{i}$ and $c_{i,j}$ , as
+
+$$
+\bar {c} _ {i, j} = \frac {c _ {i , j}}{\mu_ {i} \mu_ {j}} \quad \text {o r} \quad \bar {\mathbf {C}} = \operatorname {d i a g} (\boldsymbol {\mu}) ^ {- 1} \mathbf {C} \operatorname {d i a g} (\boldsymbol {\mu}) ^ {- 1}. \tag {16}
+$$
+
+Recall that one iteration of a typical Dropout algorithm can be interpreted as performing one iteration of stochastic gradient descent on (15), where the gradient of (15) is approximated by a single stochastic sample of the Dropout variables, $\mathbf{z}$ . In this setting, we can obtain the deterministic form of (15), which is a generalisation of Lemma 1:
+
+Lemma 10. The Generalized Dropout objective (15) is equivalent to a regularized deterministic objective:
+
+$$
+\begin{array}{l} \mathbb {E} _ {\mathbf {z}} \left\| \mathbf {Y} - \mathbf {U} \mathrm {d i a g} (\boldsymbol {\mu}) ^ {- 1} \mathrm {d i a g} (\mathbf {z}) g _ {\Gamma} (\mathbf {X}) \right\| _ {\mathrm {F}} ^ {2} \\ = \left\| \mathbf {Y} - \mathbf {U} g _ {\Gamma} (\mathbf {X}) \right\| _ {\mathrm {F}} ^ {2} + \Omega_ {\mathbf {C}, \boldsymbol {\mu}} \left(\mathbf {U}, g _ {\Gamma} (\mathbf {X}) ^ {\top}\right), \tag {17} \\ \end{array}
+$$
+
+where the "generalized Dropout" regularizer is defined as
+
+$$
+\begin{array}{l} \Omega_ {\mathbf {C}, \pmb {\mu}} (\mathbf {U}, \mathbf {V}) = \sum_ {i, j = 1} ^ {d} c _ {i, j} \frac {(\mathbf {u} _ {i} ^ {\top} \mathbf {u} _ {j}) (\mathbf {v} _ {i} ^ {\top} \mathbf {v} _ {j})}{\mu_ {i} \mu_ {j}} \\ = \langle \bar {\mathbf {C}}, \mathbf {U} ^ {\top} \mathbf {U} \odot \mathbf {V} ^ {\top} \mathbf {V} \rangle , \tag {18} \\ \end{array}
+$$
+
+with $\mathbf{u}_i$ and $\mathbf{v}_i$ denoting the $i^{th}$ columns of $\mathbf{U}$ and $\mathbf{V}$ , resp.
+
+Note we have defined $\Omega_{\mathbf{C},\mu}$ for general matrices $(\mathbf{U},\mathbf{V})$ for notational simplicity, but typically we will have $\mathbf{V} = g_{\Gamma}(\mathbf{X})^{\top}$ . Notice also that $\bar{\mathbf{C}}$ completely determines the regularization properties of any dropout scheme. For example, in classical Dropout, the entries of $\mathbf{z}$ are i.i.d. Bernoulli variables with mean $\theta$ , hence $\mathbf{C}$ is diagonal with diagonal entries $c_{i,i} = \theta (1 - \theta)$ and $\mu_{i} = \theta$ , hence $\bar{\mathbf{C}}$ is diagonal with diagonal entries $\bar{c}_{i,i} = \frac{1 - \theta}{\theta}$ . For DropBlock with block-size $r$ , we have $\bar{\mathbf{C}} = \frac{1 - \theta}{\theta}\mathrm{BlkDiag}(\mathbf{1}_r\mathbf{1}_r^\top,\dots,\mathbf{1}_r\mathbf{1}_r^\top)$ , where $\mathrm{BlkDiag}(\cdot)$ denotes forming a block diagonal matrix with the function arguments along the diagonal and $\mathbf{1}_r$ denotes an $r$ -dimensional vector of all ones. In the case of Dropout, we recover an immediate simple corollary for the regularization induced by Dropout in the final layer of nonlinear networks:
+
+Corollary 11. For regular Dropout applied to objective (15) the following equivalence holds:
+
+$$
+\begin{array}{l} \mathbb {E} _ {\mathbf {z}} \left\| \mathbf {Y} - \mathbf {U} \operatorname {d i a g} (\boldsymbol {\mu}) ^ {- 1} \operatorname {d i a g} (\mathbf {z}) g _ {\Gamma} (\mathbf {X}) \right\| _ {\mathrm {F}} ^ {2} \\ = \| \mathbf {Y} - \mathbf {U} g _ {\Gamma} (\mathbf {X}) \| _ {\mathrm {F}} ^ {2} + \sum_ {i = 1} ^ {d} \| \mathbf {u} _ {i} \| _ {2} ^ {2} \| g _ {\Gamma} ^ {i} (\mathbf {X}) \| _ {2} ^ {2}, \tag {19} \\ \end{array}
+$$
+
+where $g_{\Gamma}^{i}(\mathbf{X}) \in \mathbb{R}^{N}$ denotes the output of the $i^{th}$ neuron of $g_{\Gamma}$ (i.e., the $i^{th}$ row of $g_{\Gamma}(\mathbf{X})$ ).
+
+Given this result, a simple interpretation of Dropout in the final layer of the network is that it adds a form of weight-decay both to the weight parameters in the final layer, $\mathbf{U}$ , and the output of $g_{\Gamma}$ . Additionally, from this result it is relatively simple to show the following characterization of the regularization induced by Dropout applied to the final layer of a network. Note that the following result (Proposition 12) can be shown using similar arguments to those used in [2] along with a sufficient capacity assumption.
+
+Proposition 12. If the network architecture, $g_{\Gamma}$ , has sufficient capacity to span $\mathbb{R}^{d \times N}$ (i.e., for all $\mathbf{Q} \in \mathbb{R}^{d \times N}$ there is a set of network weights $\bar{\Gamma}$ such that $g_{\bar{\Gamma}}(\mathbf{X}) = \mathbf{Q}$ ) and $d \geq \min \{a, N\}$ , then the global optimum of (15) with $\mathbf{z}^{\text{i.i.d}}$ Bernoulli(θ) is given by:
+
+$$
+\begin{array}{l} \min _ {\mathbf {U}, \Gamma} \mathbb {E} _ {\mathbf {z}} \left\| \mathbf {Y} - \mathbf {U} \operatorname {d i a g} (\boldsymbol {\mu}) ^ {- 1} \operatorname {d i a g} (\mathbf {z}) g _ {\Gamma} (\mathbf {X}) \right\| _ {\mathrm {F}} ^ {2} \\ = \min _ {\mathbf {A}} \| \mathbf {Y} - \mathbf {A} \| _ {F} ^ {2} + \frac {1 - \theta}{\theta} \| \mathbf {A} \| _ {*} ^ {2} \tag {20} \\ \end{array}
+$$
+
+where $\| \mathbf{A}\|_{*}$ denotes the nuclear norm of $\mathbf{A}$ .
+
+The above result has interesting implications in the sense that it implies that even in the limit where the $g_{\Gamma}$ network has infinite capacity and can represent an arbitrary output perfectly, applying Dropout to the final layer still induces capacity constraints on the output of the overall network in the form of (squared) nuclear norm regularization, where the strength of the regularization depends on the Dropout rate $(1 - \theta)$ . A result similar to Proposition 12 can be obtained for DropBlock applied to the last layer of a network with sufficient capacity (the sampling strategy for $\mathbf{z}$ changes and the regularizer changes from nuclear norm squared to $k$ -support norm squared). Having analyzed Dropout and its variants, we now consider an alternative but closely related approach, DropConnect in the next section.
+
+# 4. DropConnect Analysis
+
+DropConnect, proposed in [12], is very similar to Dropout, but instead of setting the outputs of hidden neurons to zero, DropConnect instead sets elements of the connection weights to zero independently with probability $1 - \theta$ . Hence, the DropConnect algorithm samples a random matrix $\mathbf{Z} \in \mathbb{R}^{b \times d}$ , with each $z_{i,j}$ drawn independently from the Bernoulli distribution with parameter $\theta$ . For Dropconnect applied to the second-last layer weights $\mathbf{V}$ of a deep network parameterized as $\mathbf{U}\mathbf{V}^{\top}g_{\Gamma}(\mathbf{X})$ , the optimization problem then becomes the following:
+
+$$
+\left. \min _ {\mathbf {U}, \mathbf {V}, \Gamma} \mathbb {E} _ {\mathbf {Z}} \left\| \mathbf {Y} - \frac {1}{\theta} \mathbf {U} (\mathbf {Z} \odot \mathbf {V}) ^ {\top} g _ {\Gamma} (\mathbf {X}) \right\| _ {\mathrm {F}} ^ {2} \right. \tag {21}
+$$
+
+Note that we apply DropConnect to the second-last layer $\mathbf{V}$ instead of $\mathbf{U}$ in order to match the original authors proposal [12]. We show that DropConnect induces the same regularization as Dropout. Specifically, the regularizer induced in (21) is the same as applying vanilla Dropout on the last layer:
+
+Theorem 13. For Dropconnect applied to the second-to-last layer weights $\mathbf{V}$ of a deep network parameterized as $\mathbf{U}\mathbf{V}^{\top}g_{\Gamma}(\mathbf{X})$ , the following equivalence holds:
+
+$$
+\begin{array}{l} \mathbb {E} _ {\mathbf {Z}} \left\| \mathbf {Y} - \frac {1}{\theta} \mathbf {U} (\mathbf {Z} \odot \mathbf {V}) ^ {\top} g _ {\Gamma} (\mathbf {X}) \right\| _ {\mathrm {F}} ^ {2} \\ = \left\| \mathbf {Y} - \mathbf {U V} ^ {\top} g _ {\Gamma} (\mathbf {X}) \right\| _ {\mathrm {F}} ^ {2} + \frac {1 - \theta}{\theta} \sum_ {i = 1} ^ {d} \| \mathbf {u} _ {i} \| _ {2} ^ {2} \| g _ {\Gamma} (\mathbf {X}) ^ {\top} \mathbf {v} _ {i} \| _ {2} ^ {2} \\ \end{array}
+$$
+
+
+
+
+Figure 1. Top: Stochastic DropBlock training with SGD is equivalent to the deterministic objective (5). Bottom: DropBlock converges to the global minimum computed in Theorem 7.
+
+where $g_{\Gamma}^{i}(\mathbf{X}) \in \mathbb{R}^{N}$ denotes the output of the $i^{th}$ neuron of $g_{\Gamma}$ (i.e., the $i^{th}$ row of $g_{\Gamma}(\mathbf{X})$ ).
+
+Taking $g_{\Gamma}(\mathbf{X}) = \mathbf{X}$ in Theorem 13 then gives us the following result for a single layer linear network.
+
+Corollary 14. For single layer linear networks, the stochastic DropConnect objective (21) is equivalent to the vanilla Dropout deterministic objective:
+
+$$
+\begin{array}{l} \mathbb {E} _ {\mathbf {Z}} \left\| \mathbf {Y} - \frac {1}{\theta} \mathbf {U} (\mathbf {Z} \odot \mathbf {V}) ^ {\top} \mathbf {X} \right\| _ {2} ^ {2} \\ = \| \mathbf {Y} - \mathbf {U V} ^ {\top} \mathbf {X} \| _ {2} ^ {2} + \frac {1 - \theta}{\theta} \sum_ {i = 1} ^ {d} \| \mathbf {u} _ {i} \| _ {2} ^ {2} \| \mathbf {X} ^ {\top} \mathbf {v} _ {i} \| _ {2} ^ {2} \tag {22} \\ \end{array}
+$$
+
+Note that by an identical line of arguments as made in [2, 8] the above result also implies that DropConnect induces low-rank solutions in linear networks.
+
+# 5. Experiments
+
+In this section, we conduct experiments in training single hidden layer linear networks as well as multilayer nonlinear networks to validate the theory developed so far.
+
+# 5.1. Shallow Network Experiments
+
+We first create a simple synthetic dataset $\mathcal{D}_{\mathrm{syn}}$ by taking 1000 i.i.d samples of $\mathbf{x}$ from a 100-dimensional standard normal distribution. Then, $\mathbf{y} \in \mathbb{R}^{80}$ is generated as $\mathbf{y} = \mathbf{M}\mathbf{x}$ , where $\mathbf{M} = \mathbf{U}_{\mathrm{true}}\mathbf{V}_{\mathrm{true}}^{\top}$ . To ensure a reliable comparison, all the experiments start with the same choice of $\mathbf{U}_0 = \mathbf{U}_{\mathrm{init}} \in \mathbb{R}^{80 \times 50}$ and $\mathbf{V}_0 = \mathbf{V}_{\mathrm{init}} \in \mathbb{R}^{100 \times 50}$ . The entries of all the matrices $\mathbf{U}_{\mathrm{true}}, \mathbf{V}_{\mathrm{true}}, \mathbf{U}_{\mathrm{init}}, \mathbf{V}_{\mathrm{init}}$ are sampled elementwise from $\mathcal{N}(0,1)$ .
+
+Verifying Deterministic Formulations. We first verify the correctness of the deterministic formulations for various dropout schemes analyzed in this paper, i.e. (5) and (22),
+
+
+
+
+Figure 2. Comparing DropConnect to DropOut. Top: Stochastic DropConnect training with SGD is equivalent to the deterministic Objective (22). Bottom: DropConnect training is equivalent to Dropout training for the squared loss.
+
+in the top panels of Figure 1 and Figure 2. In Figure 1, the curve labelled $DropBlock$ Stochastic is the training objective plot, i.e. it plots $\left\| \mathbf{Y} - \frac{1}{\theta}\mathbf{U}_t(\mathrm{diag}(\mathbf{w}_t)\otimes \mathbf{I}_{\frac{d}{r}})\mathbf{V}_t^\top \mathbf{X}\right\|_{\mathrm{F}}^2$ as the training progresses via Algorithm 1. For generating the curve labeled $DropBlock$ Deterministic, we take the current iterate, i.e. $\mathbf{U}_t,\mathbf{V}_t$ , and plot the Deterministic $DropBlock$ objective obtained in Lemma 1 at every iteration. The deterministic equivalent of the DropConnect objective is similarly verified in Figure 2. Both the figures show plots for $\theta = 0.5$ , and the plots for more values of $\theta$ are deferred to the Appendix. It can be seen that the expected value of $DropConnect$ and $DropBlock$ over iterations matches the values derived in our results. Additionally, the bottom panel of Figure 2 shows that Dropout and $DropConnect$ have the same expected value of the objective at each iteration.
+
+Verifying Convergence to the Global Minimum. We next verify the convergence of DropBlock to the theoretical global minimum computed in Theorem 7. The bottom panel of Figure 1 plots the deterministic DropBlock objective as the training progresses, showing convergence to the computed theoretical global minimum. It can be seen that the training converges to the DropBlock Global minimum computed in Theorem 7.
+
+# 5.2. Deep Network Experiments
+
+In order to test our predictions on common network architectures, we modify the standard Resnet-50 architecture by removing the last layer and inserting a fully-connected (FC) layer to reduce the hidden layer dimensionality to 80 (to make the experiments consistent with the Synthetic Experiments). Hence, the network architecture now is, $\mathbf{x} \rightarrow$ Resnet-50 Layers $\rightarrow$ FC $\rightarrow$ Dropout $\rightarrow$ FC $\rightarrow$ y. We then train the entire network on small datasets $\mathcal{D}_{\mathrm{MNIST}}, \mathcal{D}_{\mathrm{CIFAR10}}$ with DropBlock applied to the last layer with a block size of 5. Figure 3 shows that the so
+
+
+
+
+
+
+
+
+Figure 3. Results for Resnet-50 training on MNIST (first and second panels) and CIFAR10 (third and fourth panels) data. The first and third panels show the deterministic loss during each training iteration as training progresses, and the second and fourth panels show the singular values of the product matrix of the final iterate.
+
+lution found by gradient descent is very close to the lower bound predicted by Theorem 7: The objective value is plotted on the first and third panels, and the singular values of the final predictions matrix $\mathbf{U}g_{\Gamma}(\mathbf{X})$ are plotted in decreasing order on the second and fourth panels. Note that qualitatively the singular values of the final predictions matrix closely match the theoretical prediction, with the exception of the least significant singular value, which we attribute to the highly non-convex network training problem not converging completely to the true global minimum.
+
+# 5.3. Effect of DropBlock approximation
+
+The original DropBlock method [5] allows dropping blocks at arbitrary locations, in this paper we made an approximation by constraining the blocks to be nonoverlapping, as mentioned in the beginning of Section 2. This approximation is a minor constraint, and the block
+
+
+Figure 4. Comparison of DropBlockOriginal and the approximation DropBlock we have made. The training curves correspond to $\theta_{\mathrm{DropBlock}} = 0.5$ of Fig 1. The curves have been smoothed via an exponential moving average.
+
+retraining probability $\theta$ can be scaled appropriately to recover the original behavior. DropBlockOriginal with the same $\theta$ as DropBlock leads to a higher effective dropping rate. This can be corrected by solving for $\theta_{\mathrm{DBOrliginal}}^{\prime}$ such that the probability of dropping any neuron in DropBlock with retain probability $\theta_{\mathrm{DropBlock}}$ is same as the probability of dropping a neuron in DropBlockOriginal with retain probability $\theta_{\mathrm{DBOrliginal}}^{\prime}$ . Specifically, referring to the notation in Section 2, under the Original DropBlock scheme, the probability of $z_{i} = 0$ is same as the probability of (none of the $w_{j} = 1$ ) over all $j$ , where $|i - j|\leq k$ . This probability is $(1 - \theta_{\mathrm{DBOrliginal}}^{\prime})^{2k - 1}$ . Under our approximation, the probability of $z_{i} = 0$ is $1 - \theta_{\mathrm{DropBlock}}$ . Equating these quantities, we can solve for $\theta_{\mathrm{DBOrliginal}}^{\prime}$ as $\theta_{\mathrm{DBOrliginal}}^{\prime} = 1 - (1 - \theta_{\mathrm{DropBlock}})^{\frac{1}{2k - 1}}$ . As can be seen in Fig 4, DropBlockOriginal with the appropriate correction is approximately the same as DropBlock, as the green, blue, orange curves are very close in log-scale at iteration $10^{5}$ .
+
+# 6. Conclusion
+
+In this work, we have analysed the regularization properties of structured Dropout training of neural networks, and characterized the global optimum obtained for some classes of networks and structured Dropout strategies. We showed that Dropout induces spectral $k$ -Support norm regularization on the weight matrices, providing a potential way of theoretically explaining the empirically observed superior performance of Dropout as compared to Dropout. We also proved that Dropout training is equivalent to DropConnect training for some network classes. Finally, we showed that our techniques can be extended to other generic Dropout strategies, and to Deep Networks with Dropout-style regularization applied to the last layer of the network, significantly generalizing prior results.
+
+Acknowledgements This work was supported by IARPA contract D17PC00345 and NSF Grants 1618485 and 1934979.
+
+# References
+
+[1] Andreas Argyriou, Rina Foygel, and Nathan Srebro. Sparse prediction with the $k$ -support norm. In Advances in Neural Information Processing Systems, pages 1457-1465, 2012. 2, 4, 5
+[2] J. Cavazza, B.D. Haeffele, C. Lane, P. Morerio, V. Murino, and R. Vidal. Dropout as a low-rank regularizer for matrix factorization. In International Conference on Artificial Intelligence and Statistics, volume 84, pages 435-444, 2018. 1, 3, 6, 7
+[3] Yarin Gal, Jiri Hron, and Alex Kendall. Concrete dropout. In Advances in Neural Information Processing Systems, 2017. 1
+[4] Xavier Gastaldi. Shake-shake regularization. In arXiv preprint arXiv:1705.07485, 2017. 1
+[5] Golnaz Ghiasi, Tsung-Yi Lin, and Quoc V Le. Dropblock: A regularization method for convolutional networks. In Advances in Neural Information Processing Systems, pages 10750-10760, 2018. 1, 5, 8
+[6] Benjamin David Haeffele and René Vidal. Structured low-rank matrix factorization: Global optimality, algorithms, and applications. IEEE transactions on pattern analysis and machine intelligence, 2019.
+[7] Andrew M McDonald, Massimiliano Pontil, and Dimitris Stamos. Spectral k-support norm regularization. In Advances in Neural Information Processing Systems, pages 3644-3652, 2014. 4, 5
+[8] Poorya Mianjy, Raman Arora, and Rene Vidal. On the implicit bias of dropout. In International Conference on Machine Learning, 2018. 1, 3, 4, 7
+[9] P. Morerio, J. Cavazza, R. Volpi, R. Vidal, and V. Murino. Curriculum dropout. In IEEE International Conference on Computer Vision, Oct 2017. 1
+[10] Steven J Rennie, Vaibhava Goel, and Samuel Thomas. Annealed dropout training of deep networks. In 2014 IEEE Spoken Language Technology Workshop (SLT), 2014. 1
+[11] Ralph Tyrell Rockafellar. Convex analysis. Princeton university press, 2015. 4
+[12] 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. 1, 6
+[13] Yoshihiro Yamada, Masakazu Iwamura, Takuya Akiba, and Koichi Kise. Shakedrop regularization for deep residual learning. In arXiv preprint arXiv:1802.02375, 2018. 1
+[14] Konrad Zolna, Devansh Arpit, Dendi Suhubdy, and Yoshua Bengio. Fraternal dropout. In arXiv preprint arXiv:1711.00066, 2017. 1
\ No newline at end of file
diff --git a/ontheregularizationpropertiesofstructureddropout/images.zip b/ontheregularizationpropertiesofstructureddropout/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..ba48009b3ce7d092700db6a6cf81ec33dba3ff73
--- /dev/null
+++ b/ontheregularizationpropertiesofstructureddropout/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8011ea206d4ca3f73de3815033977f46870d8ef367dc20fab3d125f9488aa7f7
+size 348199
diff --git a/ontheregularizationpropertiesofstructureddropout/layout.json b/ontheregularizationpropertiesofstructureddropout/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..96056df58dc0507bc827b0a635f3cb1c89f1bf5f
--- /dev/null
+++ b/ontheregularizationpropertiesofstructureddropout/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8126ea5bef45cd15ad417ef04c78e9578291d1337f57399cb6a2740fb00461de
+size 604339
diff --git a/ontheuncertaintyofselfsupervisedmonoculardepthestimation/2d768370-20a1-4d68-8aa7-7434cab10c5b_content_list.json b/ontheuncertaintyofselfsupervisedmonoculardepthestimation/2d768370-20a1-4d68-8aa7-7434cab10c5b_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..bfe83f1f0783eecbec761f36b680a6319b47741d
--- /dev/null
+++ b/ontheuncertaintyofselfsupervisedmonoculardepthestimation/2d768370-20a1-4d68-8aa7-7434cab10c5b_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ab74016061831340fe01950ef89f6717cc513c404feb429e77249138082673e5
+size 97603
diff --git a/ontheuncertaintyofselfsupervisedmonoculardepthestimation/2d768370-20a1-4d68-8aa7-7434cab10c5b_model.json b/ontheuncertaintyofselfsupervisedmonoculardepthestimation/2d768370-20a1-4d68-8aa7-7434cab10c5b_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..f78c2a6ac2732bbba5f40a6425fcbf84d0be9d59
--- /dev/null
+++ b/ontheuncertaintyofselfsupervisedmonoculardepthestimation/2d768370-20a1-4d68-8aa7-7434cab10c5b_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4f2fa93a38debb5658ffd53ac18f17c0456609fe2fa36cb3ce39d5b0d4ff74f4
+size 124141
diff --git a/ontheuncertaintyofselfsupervisedmonoculardepthestimation/2d768370-20a1-4d68-8aa7-7434cab10c5b_origin.pdf b/ontheuncertaintyofselfsupervisedmonoculardepthestimation/2d768370-20a1-4d68-8aa7-7434cab10c5b_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..975a61d6699e15d02c0756b4c0a51515615357fb
--- /dev/null
+++ b/ontheuncertaintyofselfsupervisedmonoculardepthestimation/2d768370-20a1-4d68-8aa7-7434cab10c5b_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:754dff6d295350aaad3429c26170b4842e8c4f9a092c2f4bc07d12b4c3afd43f
+size 656725
diff --git a/ontheuncertaintyofselfsupervisedmonoculardepthestimation/full.md b/ontheuncertaintyofselfsupervisedmonoculardepthestimation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..c61b66a277dbca1670727a348c7b5d5b09d55963
--- /dev/null
+++ b/ontheuncertaintyofselfsupervisedmonoculardepthestimation/full.md
@@ -0,0 +1,406 @@
+# On the uncertainty of self-supervised monocular depth estimation
+
+Matteo Poggi Filippo Aleotti Fabio Tosi Stefano Mattoccia Department of Computer Science and Engineering (DISI) University of Bologna, Italy
+
+{m.poggi, filippo.aleotti2, fabio.tosi5, stefano.mattoccia}@unibo.it
+
+# Abstract
+
+Self-supervised paradigms for monocular depth estimation are very appealing since they do not require ground truth annotations at all. Despite the astonishing results yielded by such methodologies, learning to reason about the uncertainty of the estimated depth maps is of paramount importance for practical applications, yet uncharted in the literature. Purposely, we explore for the first time how to estimate the uncertainty for this task and how this affects depth accuracy, proposing a novel peculiar technique specifically designed for self-supervised approaches. On the standard KITTI dataset, we exhaustively assess the performance of each method with different self-supervised paradigms. Such evaluation highlights that our proposal i) always improves depth accuracy significantly and ii) yields state-of-the-art results concerning uncertainty estimation when training on sequences and competitive results uniquely deploying stereo pairs.
+
+# 1. Introduction
+
+Depth estimation is often pivotal to a variety of high-level tasks in computer vision, such as autonomous driving, augmented reality, and more. Although active sensors such as LiDAR are deployed for some of the applications mentioned above, estimating depth from standard cameras is generally preferable due to several advantages. Among them: the much lower cost of standard imaging devices, their higher resolution and frame rate allow for more scalable and compelling solutions.
+
+In computer vision, depth perception from two [59] or multiple images [60] has a long history. Nonetheless, only in the last decade depth estimation from a single image [57] became an active research topic. On the one hand, this direction is particularly attractive because it overcomes several limitations of the traditional multi-view solutions (e.g., occlusions, overlapping framed area, and more), enabling depth perception with any device equipped with a camera. Unfortunately, it is an extremely challenging task due to the
+
+
+
+
+
+
+
+
+Figure 1. How much can we trust self-supervised monocular depth estimation? From a single input image (top) we estimate depth (middle) and uncertainty (bottom) maps. Best with colors.
+
+ill-posed nature of the problem.
+
+Deep learning ignited the spread of depth-from-mono frameworks [13, 38, 15], at the cost of requiring a large number of image samples annotated with ground truth depth labels [47, 68] to achieve satisfying results. However, sourcing annotated depth data is particularly expensive and cumbersome. Indeed, in contrast to many other supervised tasks for which offline handmade annotation is tedious, yet relatively easy, gathering accurate depth labels requires active (and often expensive) sensors and specific calibration, making offline annotation hardly achievable otherwise. Self-supervised [19, 82, 45, 56, 53] or weakly supervised [76, 65, 72] paradigms, leveraging on image reprojection and noisy labels respectively, have removed this issue and yield accuracy close to supervised methods [15], neglecting at all the deployment of additional depth sensors for labeling purposes. Among self-supervised paradigms, those deploying monocular sequences are more challenging since
+
+scale and camera poses are unknown, yet preferred for most practical applications since they allow gathering of training data with the same device used to infer depth.
+
+As for other perception strategies, it is essential to find out failure cases, when occurring, in monocular depth estimation networks. For instance, in an autonomous driving scenario, the erroneous perception of the distance to pedestrians or other vehicles might have dramatic consequences. Moreover, the ill-posed nature of depth-frommono perception task makes this eventuality much more likely to occur compared to techniques leveraging scene geometry [59, 60]. In these latter cases, estimating the uncertainty (or, complementary, the confidence) proved to be effective for depth-from-stereo, by means of both model-based [24] and learning-based [55, 30] methods, optical flow [27], and semantic segmentation [26, 30]. Despite the steady progress in other related fields, uncertainty estimation for self-supervised paradigms remains almost unexplored or, when faced, not quantitatively evaluated [32].
+
+Whereas concurrent works in this field [20, 72, 65] targeted uniquely depth accuracy, we take a breath on this rush and focus for the first time, to the best of our knowledge, on uncertainty estimation for self-supervised monocular depth estimation networks, showing how this practise enables to improve depth accuracy as well.
+
+Our main contributions can be summarized as follows:
+
+- A comprehensive evaluation of uncertainty estimation approaches tailored for the considered task.
+- An in-depth investigation of how the self-supervised training paradigm deployed impacts uncertainty and depth estimation.
+- A new and peculiar Self-Teaching paradigm to model uncertainty, particularly useful when the pose is unknown during the training process, always enabling to improve depth accuracy.
+
+Deploying standard metrics in this field, we provide exhaustive experimental results on the KITTI dataset [18]. Figure 1 shows the output of a state-of-the-art monocular depth estimator network enriched to model uncertainty. We can notice how our proposal effectively allows to detect wrong predictions (e.g., in the proximity of the person riding the bike).
+
+# 2. Related work
+
+In this section, we review the literature concerning self-supervised monocular depth estimation and techniques to estimate uncertainty in deep neural networks.
+
+Self-supervision for mono. The advent of deep learning, together with the increasing availability of ground truth depth data, led to the development of frameworks
+
+[38, 40, 74, 15] achieving unpaired accuracy compared to previous approaches [58, 37, 14]. Nonetheless, the effort to collect large amounts of labeled images is high. Thus, to overcome the need for ground truth data, self-supervision in the form of image reconstruction represents a prevalent research topic right now. Frameworks leveraging on this paradigm belong to two (not mutually exclusive) categories, respectively supervised through monocular sequences or stereo pairs.
+
+The first family of networks jointly learns to estimate the depth and relative pose between two images acquired by a moving camera. Seminal work in this direction is [82], extended by leveraging on point-cloud alignment [45], differentiable DVO [69], optical flow [78, 83, 11, 3], semantic [66] or scale consistency [5]. One of the shortcomings of these approaches is represented by moving objects appearing in the training images, addressed in [8, 75] employing instance segmentation and subsequent motion estimation of the segmented dynamic objects.
+
+For the second category, pivotal are the works by Garg et al. [17] and Godard et al. [19]. Other methods improved efficiency [53, 50] to enable deployment on embedded devices, or accuracy by simulating a trinocular setup [56], jointly learning for semantic [79], using higher resolution [51], GANs [1], sparse inputs from visual odometry [2] or a teacher-student scheme [52]. Finally, approaches leveraging both kind of supervisions have been proposed in [80, 77, 41, 20].
+
+Weak-supervision for mono. A trade-off between self and full supervision is represented by another family of approaches leveraging weaker annotations. In this case, labels can be sourced from synthetic datasets [46], used to train stereo networks for single view stereo [42] and label distillation [22] or in alternative to learn depth estimation and perform domain transfer when dealing with real images [4].
+
+Another source of weak supervision consists of using noisy annotations obtained employing the raw output of a LiDAR sensor [35] or model-based algorithms. In this latter case, the use of conventional stereo algorithms such as SGM [23] to obtain proxy labels [65, 72], optionally together with confidence measures [64], allowed improving self-supervision from stereo pairs. Other works distilled noisy labels leveraging on structure from motion [32] or direct stereo odometry [76].
+
+Uncertainty estimation. Estimating the uncertainty (or, complementary, confidence) of cues inferred from images is of paramount importance for their deployment in real computer vision applications. This aspect has been widely explored even before the spread of deep learning, for instance, when dealing with optical flow and stereo matching. Concerning optical flow, uncertainty estimation methods belong to two main categories: model-inherent and post-hoc. The former family [7, 36, 71] estimates uncertainty
+
+
+a)
+
+
+b)
+
+
+c)
+Figure 2. Overview of uncertainty estimation implementations. Respectively a) empirical methods model uncertainty as the variance of predictions from a subset of all the possible instances of the same network, b) predictive are trained to estimate depth and uncertainty as mean and variance of a distribution and c) Bayesian methods are approximated [48] by sampling multiple predictive models and summing single uncertainties with the variance of the depth predictions.
+
+scores based on the internal flow estimation model, i.e., energy minimization models, while the latter [43, 33, 34] analyzing already estimated flow fields. Regarding stereo vision, confidence estimation has been inferred similarly. At first, from features extracted by the internal disparity estimation model, i.e., the cost volume [24], then by means of deep learning on already estimated disparity maps [55, 61, 54, 67, 31].
+
+Uncertainty estimation has a long history in neural networks as well, starting with Bayesian neural networks [44, 10, 73]. Different models are sampled from the distribution of weights to estimate mean and variance of the target distribution in an empirical manner. In [21, 6], sampling was replaced by variational inference. Additional strategies to sample from the distribution of weights are bootstrapped ensembles [39] and Monte Carlo Dropout [16]. A different strategy consists of estimating uncertainty in a predictive manner. Purposely, a neural network is trained to infer the mean and variance of the distribution rather than a single value [49]. This strategy is both effective and cheaper than empirical strategies, since it does not require multiple forward passes and can be adapted to self-supervised approaches as shown in [32]. Recent works [29, 30] combined both in a joint framework.
+
+Finally, Ilg et al. [27] conducted studies about uncertainty modelling for deep optical flow networks. Nonetheless, in addition to the different nature of our task (i.e., the ill-posed monocular depth estimation problem), our work differs for the supervision paradigm, traditional in their case and self-supervised in ours.
+
+# 3. Depth-from-mono and uncertainty
+
+In this section, we introduce how to tackle uncertainty modelling with self-supervised depth estimation frameworks. Given a still image $\mathcal{I}$ any depth-from-mono framework produces an output map $d$ encoding the depth of the observed scene. When full supervision is available, to train such a network we aim at minimizing a loss signal $\mathcal{L}_{fs}$ obtained through a generic function $\mathcal{F}$ of inputs estimated $d$ and ground truth $d^{*}$ depth maps.
+
+$$
+\mathcal {L} _ {f s} = \mathcal {F} (d, d ^ {*}) \tag {1}
+$$
+
+When traditional supervision is not available, it can be replaced by self-supervision obtained through image reconstruction. In this case, the ground truth map $d^{*}$ is replaced by a second image $\mathcal{I}^{\dagger}$ . Then, by knowing camera intrinsics $K$ , $K^{\dagger}$ and the relative camera pose $(R|t)$ between the two images, a reconstructed image $\tilde{\mathcal{I}}$ is obtained as a function $\pi$ of intrinsics, pose, image $\mathcal{I}^{\dagger}$ and depth $d$ , enabling to compute a loss signal $\mathcal{L}_{ss}$ as a generic $\mathcal{F}$ of inputs $\tilde{\mathcal{I}}$ and $\mathcal{I}$ .
+
+$$
+\mathcal {L} _ {s s} = \mathcal {F} (\tilde {\mathcal {I}}, \mathcal {I}) = \mathcal {F} \left(\pi \left(\mathcal {I} ^ {\dagger}, K ^ {\dagger}, R | t, K, d\right), \mathcal {I}\right) \tag {2}
+$$
+
+$\mathcal{I}$ and $\mathcal{I}^{\dagger}$ can be acquired either by means of a single moving camera or with a stereo rig. In this latter case, $(R|t)$ is known beforehand thanks to the stereo calibration parameters, while for images acquired by a single camera it is usually learned jointly to depth, both up to a scale factor. A popular choice for $\mathcal{F}$ is a weighted sum between L1 and Structured Similarity Index Measure (SSIM) [70]
+
+$$
+\mathcal {F} (\tilde {\mathcal {I}}, \mathcal {I}) = \alpha \cdot \frac {1 - \operatorname {S S I M} (\tilde {\mathcal {I}} , \mathcal {I})}{2} + (1 - \alpha) \cdot | \tilde {\mathcal {I}} - \mathcal {I} | \tag {3}
+$$
+
+with $\alpha$ commonly set to 0.85 [20]. In case of $K$ frames used for supervision, coming for example by joint monocular and stereo supervision, for each pixel $q$ the minimum among computed losses allows for robust reprojection [20]
+
+$$
+\mathcal {L} _ {s s} (q) = \min _ {i \in [ 0.. K ]} \mathcal {F} (\tilde {\mathcal {I}} _ {i} (q), \mathcal {I} (q)) \tag {4}
+$$
+
+Traditional networks are deterministic, producing a single output typically corresponding to the mean value of the distribution of all possible outputs $p(d^{*}|\mathcal{I},\mathcal{D})$ , $\mathcal{D}$ being a dataset of images and corresponding depth maps. Estimating the variance of such distribution allows for modelling uncertainty on the network outputs, as shown in [28, 29] and depicted in Figure 2, a) in empirical way, b) by learning a predictive model or c) combining the two approaches.
+
+First and foremost, we point out that the self-supervision provided to the network is indirect with respect to its main
+
+
+Figure 3. Uncertainty by image flipping. The difference between the depth $d$ , inferred from image $\mathcal{I}$ , and the depth $\frac{\overleftrightarrow{z}}{d}$ , from the flipped image $\overleftarrow{I}$ , provides a basic form of uncertainty.
+
+task. This means that the network estimates are not optimized with respect to the desired statistical distribution, i.e. depth $d^{*}$ , but they are an input parameter of a function $(\pi)$ optimized over a different statistical model, i.e. image $\mathcal{I}$ . While this does not represent an issue for empirical methods, predictive methods like negative log-likelihood minimization can be adapted to this paradigm as done by Klotdt and Vedaldi [32]. Nevertheless, we will show how this solution is sub-optimal when the pose is unknown, i.e. when $\pi$ is function of two unknown parameters.
+
+# 3.1. Uncertainty by image flipping
+
+A simple strategy to estimate uncertainty is inspired by the post-processing (Post) step proposed by Godard et al. [19]. Such a refinement consists of estimating two depth maps $d$ and $\overleftarrow{d}$ for image $\mathcal{I}$ and its horizontally flipped counterpart $\overleftarrow{\mathcal{I}}$ . The refined depth map $d^r$ is obtained by averaging $d$ and $\overleftarrow{d}$ , i.e. back-flipped $\overleftarrow{d}$ . We encode the uncertainty for $d^r$ as the difference between the two
+
+$$
+u _ {P o s t} = | d - \overrightarrow {\frac {\rightarrow}{d}} | \tag {5}
+$$
+
+i.e., the variance over a small distribution of outputs (i.e., two), as typically done for empirical methods outlined in the next section. Although this method requires $2 \times$ forwards at test time compared to the raw depth-from-mono model, as shown in Figure 3, it can be applied seamlessly to any pretrained framework without any modification.
+
+# 3.2. Empirical estimation
+
+This class of methods aims at encoding uncertainty empirically, for instance, by measuring the variance between a set of all the possible network configurations. It allows to explain the model uncertainty, namely epistemic [29]. Strategies belonging to this category [27] can be applied to self-supervised frameworks straightforwardly.
+
+Dropout Sampling (Drop). Early works estimated uncertainty in neural networks [44] by sampling multiple networks from the distribution of weights of a single architecture. Monte Carlo Dropout [63] represents a popular method to sample N independent models without requiring multiple and independent trainings. At training time, connections between layers are randomly dropped with a
+
+probability $p$ to avoid overfitting. At test time, all connections are kept. By keeping dropout enabled at test time, we can perform multiple forwards sampling a different network every time. Empirical mean $\mu(d)$ and variance $\sigma^2(d)$ are computed, as follows, performing multiple (N) inferences:
+
+$$
+\mu (d) = \frac {1}{N} \sum_ {i = 1} ^ {N} d _ {i} \tag {6}
+$$
+
+$$
+u _ {D r o p} = \sigma^ {2} (d) = \frac {1}{N} \sum_ {i = 1} ^ {N} \left(d _ {i} - \mu (d)\right) ^ {2} \tag {7}
+$$
+
+At test time, using the same number of network parameters, $\mathbf{N}\times$ forwards are required.
+
+Bootstrapped Ensemble (Boot). A simple, yet effective alternative to weights sampling is represented by training an ensemble of N neural networks [39] randomly initializing N instances of the same architecture and training them with bootstrapping, i.e. on random subsets of the entire training set. This strategy produces N specialized models. Then, similarly to dropout sampling, we can obtain empirical mean $\mu(d)$ and variance $\sigma^2(d)$ in order to approximate the mean and variance of the distribution of depth values. It requires $\mathbf{N} \times$ parameters to be stored, results on $\mathbf{N} \times$ independent trainings, and a single forward pass for each stored configuration at test time.
+
+Snapshot Ensemble (Snap). Although the previous method is compelling, obtaining ensembles of neural networks is expensive since it requires carrying out N independent training. An alternative solution [25] consists of obtaining N snapshots out of a single training by leveraging on cyclic learning rate schedules to obtain $C$ pre-converged models. Assuming an initial learning rate $\lambda_0$ , we obtain $\lambda_t$ at any training iteration $t$ as a function of the total number of steps $T$ and cycles $C$ as in [25]
+
+$$
+\lambda_ {t} = \frac {\lambda_ {0}}{2} \cdot \left(\cos \left(\frac {\pi \cdot \mod (t - 1 , \lceil \frac {T}{C} \rceil)}{\lceil \frac {T}{C} \rceil}\right) + 1\right) \tag {8}
+$$
+
+Similarly to Boot and Drop, we obtain empirical mean $\mu (d)$ and variance $\sigma^2 (d)$ by choosing $N$ out of the $C$ models obtained from a single training procedure.
+
+# 3.3. Predictive estimation
+
+This category aims at encoding uncertainty by learning a predictive model. This means that at test time these methods produce estimates that are function of network parameters and the input image and thus reason about the current observations, modelling aleatoric heteroscedastic uncertainty [29]. Since often learned from real data distribution, for instance as a function of the distance between the predictions and the ground truth or by maximizing log-likelihood,
+
+these approaches need to be rethought to deal with self-supervised paradigms.
+
+Learned Reprojection (Repr). To learn a function over the prediction error employing a classifier is a popular technique used for both stereo [55, 62] and optical flow [43]. However, given the absence of ground truth labels, we cannot apply this approach to self-supervised frameworks seamlessly. Nevertheless, we can drive one output of our network to mimic the behavior of the self-supervised loss function used to train it, thus learning ambiguities affecting the paradigm itself (e.g., occlusions, low texture and more). Indeed, the per-pixel loss signal is supposed to be high when the estimated depth is wrong. Thus, uncertainty $u_{\text{Repr}}$ is trained adding the following term to $\mathcal{L}_{ss}$
+
+$$
+\mathcal {L} _ {\text {R e p r}} = \beta \cdot | u _ {\text {R e p r}} - \mathcal {F} (\tilde {\mathcal {I}}, \mathcal {I}) | \tag {9}
+$$
+
+Since multiple images $\mathcal{I}^{\dagger}$ may be used for supervision, i.e. when combining monocular and stereo, usually for each pixel $q$ the minimum reprojection signal is considered to train the network, thus $u_{\text{Repr}}$ is trained accordingly
+
+$$
+\mathcal {L} _ {\text {R e p r}} (q) = \beta \cdot | u _ {\text {R e p r}} (q) - \min _ {i \in [ 0.. K ]} \mathcal {F} (\tilde {\mathcal {I}} _ {i} (q), \mathcal {I} (q)) | \tag {10}
+$$
+
+In our experiments, we set $\beta$ to 0.1 and stop $\mathcal{F}$ gradients inside $\mathcal{L}_{\text{Repr}}$ for numerical stability. A similar technique appeared in [9], although not evaluated quantitatively.
+
+Log-Likelihood Maximization $(\mathcal{L}\mathcal{O})$ . Another popular strategy [49] consists of training the network to infer mean and variance of the distribution $p(d^{*}|\mathcal{I},\mathcal{D})$ of parameters $\Theta$ . The network is trained by log-likelihood maximization (i.e., negative log-likelihood minimization)
+
+$$
+\log p \left(d ^ {*} \mid w\right) = \frac {1}{N} \sum_ {q} \log p \left(d ^ {*} (q) \mid \Theta (\mathcal {I}, w)\right) \tag {11}
+$$
+
+$w$ being the network weights. As shown in [27], the predictive distribution can be modelled as Laplacian or Gaussian respectively in case of L1 or L2 loss computation with respect to $d^{*}$ . In the former case, this means minimizing the following loss function
+
+$$
+\mathcal {L} _ {\text {L o g}} = \frac {\left| \mu (d) - d ^ {*} \right|}{\sigma (d)} + \log \sigma (d) \tag {12}
+$$
+
+with $\mu (d)$ and $\sigma (d)$ outputs of the network encoding mean and variance of the distribution. The additional logarithmic term discourages infinite predictions for any pixel. Regarding numerical stability [29], the network is trained to estimate the log-variance in order to avoid zero values of the variance. As shown by Klodt and Vedaldi [32], in absence of ground truth $d^{*}$ one can model the uncertainty $u_{\mathrm{Log}}$ according to photometric matching
+
+
+Figure 4. Self-Teaching scheme. A network $\mathcal{T}$ is trained in self-supervised fashion, $e.g.$ on monocular sequences $[t - 1,t,t + 1]$ . A new instance $\mathcal{S}$ of the same is trained on $d_{\mathcal{T}}$ output of $\mathcal{T}$ .
+
+$$
+\mathcal {L} _ {L o g} = \frac {\min _ {i \in [ 0 . . K ]} \mathcal {F} (\tilde {\mathcal {I}} _ {i} (q) , \mathcal {I} (q))}{u _ {L o g}} + \log u _ {L o g} \tag {13}
+$$
+
+Recall that $\mathcal{F}$ is computed over $\pi$ according to Equation 2. Although for stereo supervision this formulation is equivalent to traditional supervision, i.e. $\pi$ is function of a single unknown parameter $d$ , in case of monocular supervision this formulation jointly explain uncertainty for depth and pose, both unknown variables in $\pi$ . We will show how this approach leads to sub-optimal modelling and how to overcome this limitation with the next approach.
+
+Self-Teaching (Self). In order to decouple depth and pose when modelling uncertainty, we propose to source a direct form of supervision from the learned model itself. By training a first network in a self-supervised manner, we obtain a network instance $\mathcal{T}$ producing a noisy distribution $d_{\mathcal{T}}$ . Then, we train a second instance of the same model, namely $\mathcal{S}$ , to mimic the distribution sourced from $\mathcal{T}$ . Typically, teacher-student frameworks [81] applied to monocular depth estimation [52] deploy a complex architecture to supervise a more compact one. In contrast, in our approach the teacher $\mathcal{T}$ and the student $\mathcal{S}$ share the same architecture and for this reason we refer to it as Self-Teaching (Self). By assuming an L1 loss, we can model for instance negative log-likelihood minimization as
+
+$$
+\mathcal {L} _ {\text {S e l f}} = \frac {| \mu (d _ {\mathcal {S}}) - d _ {\mathcal {T}} |}{\sigma (d _ {\mathcal {S}})} + \log \sigma (d _ {\mathcal {S}}) \tag {14}
+$$
+
+We will show how with this strategy i) we obtain a network $S$ more accurate than $\mathcal{T}$ and ii) in case of monocular supervision, we can decouple depth from pose and achieve a much more effective uncertainty estimation. Figure 4 summarizes our proposal.
+
+# 3.4. Bayesian estimation
+
+Finally, in Bayesian deep learning [29], the model uncertainty can be explained by marginalizing over all possible $w$ rather than choosing a point estimate. According to Neal
+
+[48], an approximate solution can be obtained by sampling N models and by modelling mean and variance as
+
+$$
+p \left(d ^ {*} \mid \mathcal {I}, \mathcal {D}\right) \approx \sum_ {i = 1} ^ {N} p \left(d ^ {*} \mid \Theta (\mathcal {I}, w _ {i})\right) \tag {15}
+$$
+
+If mean and variance are modelled for each $w_{i}$ sampling, we can obtain overall mean and variance as reported in [29, 27]
+
+$$
+\mu (d) = \frac {1}{N} \sum_ {i = 1} ^ {N} \mu_ {i} \left(d _ {i}\right) \tag {16}
+$$
+
+$$
+\sigma^ {2} (d) = \frac {1}{N} \sum_ {i = 1} ^ {N} \left(\mu_ {i} \left(d _ {i}\right) - \mu (d)\right) ^ {2} + \sigma_ {i} ^ {2} \left(d _ {i}\right) \tag {17}
+$$
+
+The implementation of this approximation is straightforward by combining empirical and predictive methods [29, 27]. Purposely, in our experiments we will pick the best empirical and predictive methods, e.g. combining Boot and Self (Boot+Self).
+
+# 4. Experimental results
+
+In this section, we exhaustively evaluate self-supervised strategies for joint depth and uncertainty estimation.
+
+# 4.1. Evaluation protocol, dataset and metrics
+
+At first, we describe all details concerning training and evaluation to ensure full reproducibility. Source code will be available at https://github.com/mattpoggi/ mono-uncertainty.
+
+Architecture and training schedule. We choose as baseline model Monodepth2 [20], thanks to the code made available and to its possibility to be trained seamlessly according to monocular, stereo, or both self-supervision paradigms. In our experiments, we train any variant of this method following the protocol defined in [20], on batches of 12 images resized to $192 \times 640$ for 20 epochs starting from pre-trained encoders on ImageNet [12]. Moreover, we always follow the augmentation and training practices described in [20]. Finally, to evaluate Post we use the same weights made publicly available by the authors. Regarding empirical methods, we set $N$ to 8 and the number of cycles $C$ for Snap to 20. We randomly extract $25\%$ of the training set for each independent network in Boot. Dropout is applied after convolutions in the decoder only. About predictive models, a single output channel is added in parallel to depth prediction channel.
+
+Dataset. We compare all the models on the KITTI dataset [18], made of 61 scenes (about 42K stereo frames) acquired in driving scenarios. The dataset contains images at an average resolution of $375 \times 1242$ and depth maps from a calibrated LiDAR sensor. Following standards in the field,
+
+we deploy the Eigen split [13] and set 80 meters as the maximum depth. For this purpose, we use the improved ground truth introduced in [68], much more accurate than the raw LiDAR data, since our aim is a strict evaluation rather than a comparison with existing monocular methods. Nevertheless, we report results on the raw LiDAR data using Garg's crop [17] as well in the supplementary material.
+
+Depth metrics. To assess depth accuracy, we report for the sake of page limit three out of seven standard metrics1 defined in [13]. Specifically, we report the absolute relative error (Abs Rel), root mean square error (RMSE), and the amount of inliers ( $\delta < 1.25$ ). We refer the reader to [13] or supplementary material for a complete description of these metrics. They enable a compact evaluation concerning both relative (Abs Rel and $\delta < 1.25$ ) and absolute (RMSE) errors. Moreover, we also report the number of training iterations (#Trn), parameters (#Par), and forwards (#Fwd) required at testing time to estimate depth. In the case of monocular supervision, we scale depth as in [82].
+
+Uncertainty metrics. To evaluate how significant the modelled uncertainties are, we use sparsification plots as in [27]. Given an error metric $\epsilon$ , we sort all pixels in each depth map in order of descending uncertainty. Then, we iteratively extract a subset of pixels (i.e., $2\%$ in our experiments) and compute $\epsilon$ on the remaining to plot a curve, that is supposed to shrink if the uncertainty properly encodes the errors in the depth map. An ideal sparsification (oracle) is obtained by sorting pixels in descending order of the $\epsilon$ magnitude. In contrast, a random uncertainty can be modelled as a constant, giving no information about how to remove erroneous measurements and, thus, a flat curve. By plotting the difference between estimated and oracle sparsification, we can measure the Area Under the Sparsification Error (AUSE, the lower the better). Subtracting estimated sparsification from random one enables computing the Area Under the Random Gain (AURG, the higher the better). The former quantifies how close the estimate is to the oracle uncertainty, the latter how better (or worse, as we will see in some cases) it is compared to no modelling at all. We assume Abs Rel, RMSE or $\delta \geq 1.25$ (since $\delta < 1.25$ defines an accuracy score) as $\epsilon$ .
+
+# 4.2. Monocular (M) supervision
+
+Depth. Table 1a reports depth accuracy for Monodepth2 variants implementing the different uncertainty estimation strategies when trained with monocular supervision. We can notice how, in general, empirical methods fail at improving depth prediction on most metrics, with $Drop$ having a large gap from the baseline. On the other hand, Boot and Snap slightly reduce RMSE. Predictive methods as well produce worse depth estimates, except the proposed Self method, which improves all the metrics compared to
+
+| Method | Sup | #Tm | #Par | #Fwd | Abs Rel | RMSE | δ <1.25 |
| Monodepth2 [20] | M | 1× | 1× | 1× | 0.090 | 3.942 | 0.914 |
| Monodepth2-Post [20] | M | 1× | 1× | 2× | 0.088 | 3.841 | 0.917 |
| Monodepth2-Drop | M | 1× | 1× | N× | 0.101 | 4.146 | 0.892 |
| Monodepth2-Boot | M | N× | N× | 1× | 0.092 | 3.821 | 0.911 |
| Monodepth2-Snap | M | 1× | N× | 1× | 0.091 | 3.921 | 0.912 |
| Monodepth2-Repr | M | 1× | 1× | 1× | 0.092 | 3.936 | 0.912 |
| Monodepth2-Log | M | 1× | 1× | 1× | 0.091 | 4.052 | 0.910 |
| Monodepth2-Self | M | (1+1)× | 1× | 1× | 0.087 | 3.826 | 0.920 |
| Monodepth2-Boot+Log | M | N× | N× | 1× | 0.092 | 3.850 | 0.910 |
| Monodepth2-Boot+Self | M | (1+N)× | N× | 1× | 0.088 | 3.799 | 0.918 |
| Monodepth2-Snap+Log | M | 1× | 1× | 1× | 0.092 | 3.961 | 0.911 |
| Monodepth2-Snap+Self | M | (1+1)× | 1× | 1× | 0.088 | 3.832 | 0.919 |
+
+| a) Depth evaluation |
| Abs Rel | RMSE | δ ≥ 1.25 |
| Method | AUSE | AURG | AUSE | AURG | AUSE | AURG |
| Monodepth2-Post | 0.044 | 0.012 | 2.864 | 0.412 | 0.056 | 0.022 |
| Monodepth2-Drop | 0.065 | 0.000 | 2.568 | 0.944 | 0.097 | 0.002 |
| Monodepth2-Boot | 0.058 | 0.001 | 3.982 | -0.743 | 0.084 | -0.001 |
| Monodepth2-Snap | 0.059 | -0.001 | 3.979 | -0.639 | 0.083 | -0.002 |
| Monodepth2-Repr | 0.051 | 0.008 | 2.972 | 0.381 | 0.069 | 0.013 |
| Monodepth2-Log | 0.039 | 0.020 | 2.562 | 0.916 | 0.044 | 0.038 |
| Monodepth2-Self | 0.030 | 0.026 | 2.009 | 1.266 | 0.030 | 0.045 |
| Monodepth2-Boot+Log | 0.038 | 0.021 | 2.449 | 0.820 | 0.046 | 0.037 |
| Monodepth2-Boot+Self | 0.029 | 0.028 | 1.924 | 1.316 | 0.028 | 0.049 |
| Monodepth2-Snap+Log | 0.038 | 0.022 | 2.385 | 1.001 | 0.043 | 0.039 |
| Monodepth2-Snap+Self | 0.031 | 0.026 | 2.043 | 1.230 | 0.030 | 0.045 |
+
+b) Uncertainty evaluation
+Table 1. Quantitative results for monocular (M) supervision. Evaluation on Eigen split [13] with improved ground truth [68].
+
+the baseline, even when post-processed. Regarding the Bayesian solutions, both Boot and Snap performs worse when combined with Log, while they are always improved by the proposed Self method.
+
+Uncertainty. Table 1b resumes performance of modelled uncertainties at reducing errors on the estimated depth maps. Surprisingly, empirical methods rarely perform better than the Post solution. In particular, empirical methods alone fail at performing better than a random chance, except for Drop that, on the other hand, produces much worse depth maps. Predictive methods perform better, with Log and Self yielding the best results. Among them, our method outperforms Log by a notable margin. Combining empirical and predictive methods is beneficial, often improving over single choices. In particular, Boot+Self achieves the best overall results.
+
+Summary. In general Self, combined with empirical methods, performs better for both depth accuracy and uncertainty modelling when dealing with M supervision, thanks to disentanglement between depth and pose. We believe that empirical methods performance can be ascribed to depth scale, being unknown during training.
+
+# 4.3. Stereo (S) supervision
+
+Depth. On Table 2a we show the results of the same approaches when trained with stereo supervision. Again, Drop fails to improve depth accuracy, together with Repr among predictive methods. Boot produces the best improvement, in particular in terms of RMSE. Traditional Log improves this time over the baseline, according to RMSE and $\delta < 1.25$ metrics while, Self consistently improves
+
+| Method | Sup | #Trn | #Par | #Fwd | Abs Rel | RMSE | δ <1.25 |
| Monodepth2 [20] | S | 1× | 1× | 1× | 0.085 | 3.942 | 0.912 |
| Monodepth2-Post [20] | S | 1× | 1× | 2× | 0.084 | 3.777 | 0.915 |
| Monodepth2-Drop | S | 1× | 1× | N× | 0.129 | 4.908 | 0.819 |
| Monodepth2-Boot | S | N× | N× | 1× | 0.085 | 3.772 | 0.914 |
| Monodepth2-Snap | S | 1× | N× | 1× | 0.085 | 3.849 | 0.912 |
| Monodepth2-Repr | S | 1× | 1× | 1× | 0.085 | 3.873 | 0.913 |
| Monodepth2-Log | S | 1× | 1× | 1× | 0.085 | 3.860 | 0.915 |
| Monodepth2-Self | S | (1+1)× | 1× | 1× | 0.084 | 3.835 | 0.915 |
| Monodepth2-Boot+Log | S | N× | N× | 1× | 0.085 | 3.777 | 0.913 |
| Monodepth2-Boot+Self | S | (1+N)× | N× | 1× | 0.085 | 3.793 | 0.914 |
| Monodepth2-Snap+Log | S | 1× | 1× | 1× | 0.083 | 3.833 | 0.914 |
| Monodepth2-Snap+Self | S | (1+1)× | 1× | 1× | 0.086 | 3.859 | 0.912 |
+
+| a) Depth evaluation |
| Abs Rel | RMSE | δ ≥ 1.25 |
| Method | AUSE | AURG | AUSE | AURG | AUSE | AURG |
| Monodepth2-Post | 0.036 | 0.020 | 2.523 | 0.736 | 0.044 | 0.034 |
| Monodepth2-Drop | 0.103 | -0.029 | 6.163 | -2.169 | 0.231 | -0.080 |
| Monodepth2-Boot | 0.028 | 0.029 | 2.291 | 0.964 | 0.031 | 0.048 |
| Monodepth2-Snap | 0.028 | 0.029 | 2.252 | 1.077 | 0.030 | 0.051 |
| Monodepth2-Repr | 0.040 | 0.017 | 2.275 | 1.074 | 0.050 | 0.030 |
| Monodepth2-Log | 0.022 | 0.036 | 0.938 | 2.402 | 0.018 | 0.061 |
| Monodepth2-Self | 0.022 | 0.035 | 1.679 | 1.642 | 0.022 | 0.056 |
| Monodepth2-Boot+Log | 0.020 | 0.038 | 0.807 | 2.455 | 0.018 | 0.063 |
| Monodepth2-Boot+Self | 0.023 | 0.035 | 1.646 | 1.628 | 0.021 | 0.058 |
| Monodepth2-Snap+Log | 0.021 | 0.037 | 0.891 | 2.426 | 0.018 | 0.061 |
| Monodepth2-Snap+Self | 0.023 | 0.035 | 1.710 | 1.623 | 0.023 | 0.058 |
+
+b) Uncertainty evaluation
+Table 2. Quantitative results for stereo (S) supervision. Evaluation on Eigen split [13] with improved ground truth [68].
+
+the baseline on all metrics, although it does not outperform Post, which requires two forward passes.
+
+Uncertainty. Table 2b summarizes the effectiveness of modelled uncertainties. This time, only $Drop$ performs worse than $Post$ achieving negative AURG, thus being detrimental at sparsification, while other empirical methods achieve much better results. In these experiments, thanks to the known pose of the stereo setup, $Log$ deals only with depth uncertainty and thus performs extremely well. Self, although allowing for more accurate depth as reported in Table 2a, ranks second this time. Considering Bayesian implementations, again, both $Boot$ and $Snap$ are always improved. Conversely, compared to the M case, $Log$ this time consistently outperforms Self in any Bayesian formulation.
+
+Summary. When the pose is known, the gap between Log and Self concerning depth accuracy is minor, with Self performing better when modelling only predictive uncertainty and Log slightly better with Bayesian formulations. For uncertainty estimation, Log consistently performs better. The behavior of empirical methods alone confirms our findings from the previous experiments: by knowing the scale, Boot and Snap model uncertainty much better. In contrast, Drop fails for this purpose.
+
+# 4.4. Monocular+Stereo (MS) supervision
+
+Depth. Table 3a reports the behavior of depth accuracy when monocular and stereo supervisions are combined. In this case, only Self consistently outperforms the baseline and is competitive with Post, which still requires two forward passes. Among empirical methods, Boot is the most effective. Regarding Bayesian solutions, those using Self
+
+| Method | Sup | #Ttn | #Par | #Fwd | Abs Rel | RMSE | δ <1.25 |
| Monodepth2 [20] | MS | 1× | 1× | 1× | 0.084 | 3.739 | 0.918 |
| Monodepth2-Post [20] | MS | 1× | 1× | 2× | 0.082 | 3.666 | 0.919 |
| Monodepth2-Drop | MS | 1× | 1× | N× | 0.172 | 5.885 | 0.679 |
| Monodepth2-Boot | MS | N× | N× | 1× | 0.086 | 3.787 | 0.910 |
| Monodepth2-Snap | MS | 1× | N× | 1× | 0.085 | 3.806 | 0.914 |
| Monodepth2-Repr | MS | 1× | 1× | 1× | 0.084 | 3.828 | 0.913 |
| Monodepth2-Log | MS | 1× | 1× | 1× | 0.083 | 3.790 | 0.916 |
| Monodepth2-Self | MS | (1+1)× | 1× | 1× | 0.083 | 3.682 | 0.919 |
| Monodepth2-Boot+Log | MS | N× | N× | 1× | 0.086 | 3.771 | 0.911 |
| Monodepth2-Boot+Self | MS | (1+N)× | N× | 1× | 0.085 | 3.704 | 0.915 |
| Monodepth2-Snap+Log | MS | 1× | 1× | 1× | 0.084 | 3.828 | 0.914 |
| Monodepth2-Snap+Self | MS | (1+1)× | 1× | 1× | 0.085 | 3.715 | 0.916 |
+
+| a) Depth evaluation |
| Abs Rel | RMSE | δ ≥ 1.25 |
| Method | AUSE | AURG | AUSE | AURG | AUSE | AURG |
| Monodepth2-Post | 0.036 | 0.018 | 2.498 | 0.655 | 0.044 | 0.031 |
| Monodepth2-Drop | 0.103 | -0.027 | 7.114 | -2.580 | 0.303 | -0.081 |
| Monodepth2-Boot | 0.028 | 0.030 | 2.269 | 0.985 | 0.034 | 0.049 |
| Monodepth2-Snap | 0.029 | 0.028 | 2.245 | 1.029 | 0.033 | 0.047 |
| Monodepth2-Repr | 0.046 | 0.010 | 2.662 | 0.635 | 0.062 | 0.018 |
| Monodepth2-Log | 0.028 | 0.029 | 1.714 | 1.562 | 0.028 | 0.050 |
| Monodepth2-Self | 0.022 | 0.033 | 1.654 | 1.515 | 0.023 | 0.052 |
| Monodepth2-Boot+Log | 0.030 | 0.028 | 1.962 | 1.282 | 0.032 | 0.051 |
| Monodepth2-Boot+Self | 0.023 | 0.033 | 1.688 | 1.494 | 0.023 | 0.056 |
| Monodepth2-Snap+Log | 0.030 | 0.027 | 2.032 | 1.272 | 0.032 | 0.048 |
| Monodepth2-Snap+Self | 0.023 | 0.034 | 1.684 | 1.510 | 0.023 | 0.055 |
+
+b) Uncertainty evaluation
+Table 3. Quantitative results for monocular+stereo (MS) supervision. Evaluation on Eigen split [13] with improved ground truth [68].
+
+are, in general, more accurate on most metrics, yet surprisingly worse than Self alone.
+
+Uncertainty. Table 3b shows the performance of the considered uncertainties. The behavior of all variants is similar to the one observed with stereo supervision, except for Log and Self. We can notice that Self outperforms Log, similarly to what observed with M supervision. It confirms that pose estimation drives Log to worse uncertainty estimation, while Self models are much better thanks to the training on proxy labels produced by the Teacher network. Concerning Bayesian solutions, in general, Boot and Snap are improved when combined with both Log and Self, with Self combinations typically better than their Log counterparts and equivalent to standalone Self.
+
+Summary. The evaluation with monocular and stereo supervision confirms that when the pose is estimated alongside with depth, Self proves to be a better solution compared to Log and, in general, other approaches to model uncertainty. Finally, empirical methods alone behave as for experiments with stereo supervision, confirming that the knowledge of the scale during training is crucial to the proper behavior of Drop, Boot and Snap.
+
+# 4.5. Sparsification curves
+
+In order to further outline our findings, we report in Figure 5 the RMSE sparsification error curves, averaged over the test set, when training with M, S or MS supervision. The plots show that methods leveraging on Self (blue) are the best to model uncertainty when dealing with pose estimation, i.e. M and MS, while those using Log (green) are better when training on S. We report curves for Abs Rel and
+
+
+Figure 5. Sparsification Error curves. From left to right, average RMSE with M, S and MS supervisions. Best viewed with colors.
+
+
+
+
+
+$\delta \geq 1.25$ in the supplementary material.
+
+# 4.6. Supplementary material
+
+For the sake of the pages limit, we report more details about the experiments shown so far in the supplementary material. Specifically, i) complete depth evaluation with all seven metrics defined in [13], ii) depth and uncertainty evaluation with reduced depth range to 50 meters, iii) evaluation assuming the raw LiDAR data as ground truth, for compliancy with previous works [20] and iv) sparsification curves for all metrics. We also provide additional qualitative results in the form of images and a video sequence, available at www.youtube.com/watch?v=bxVPXqf4zt4.
+
+# 5. Conclusion
+
+In this paper, we have thoroughly investigated for the first time in literature uncertainty modelling in self-supervised monocular depth estimation. We have reviewed and evaluated existing techniques, as well as introduced a novel Self-Teaching (Self) paradigm. We have considered up to 11 strategies to estimate the uncertainty on predictions of a depth-from-mono network trained in a self-supervised manner. Our experiments highlight how different supervision strategies lead to different winners among the considered methods. In particular, among empirical methods, only Dropout sampling performs well when the scale is unknown during training (M), while it is the only one failing when scale is known (S, MS). Empirical methods are affected by pose estimation, for which log-likelihood maximization gives sub-optimal results when the pose is unknown (M, MS). In these latter cases, potentially the most appealing for practical applications, the proposed Self technique results in the best strategy to model uncertainty. Moreover, uncertainty estimation also improves depth accuracy consistently, with any training paradigm.
+
+Acknowledgement. We gratefully acknowledge the support of NVIDIA Corporation with the donation of the Titan Xp GPU used for this research.
+
+# References
+
+[1] Filippo Aleotti, Fabio Tosi, Matteo Poggi, and Stefano Mattoccia. Generative adversarial networks for unsupervised monocular depth prediction. In 15th European Conference on Computer Vision (ECCV) Workshops, 2018. 2
+[2] Lorenzo Andraghetti, Panteleimon Myriokefalitakis, Pier Luigi Dovesi, Belen Luque, Matteo Poggi, Alessandro Pieropan, and Stefano Mattoccia. Enhancing self-supervised monocular depth estimation with traditional visual odometry. In 7th International Conference on 3D Vision (3DV), 2019. 2
+[3] Ranjan Anurag, Varun Jampani, 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 The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 2
+[4] Amir Atapour-Abarghouei and Toby P Breckon. Real-time monocular depth estimation using synthetic data with domain adaptation via image style transfer. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, volume 18, page 1, 2018. 2
+[5] Jia-Wang Bian, Zhichao Li, Naiyan Wang, Huangying Zhan, Chunhua Shen, Ming-Ming Cheng, and Ian Reid. Unsupervised scale-consistent depth and ego-motion learning from monocular video. In Thirty-third Conference on Neural Information Processing Systems (NeurIPS), 2019. 2
+[6] Charles Blundell, Julien Cornebise, Koray Kavukcuoglu, and Daan Wierstra. Weight uncertainty in neural networks. arXiv preprint arXiv:1505.05424, 2015. 3
+[7] Andres Bruhn and Joachim Weickert. A confidence measure for variational optic flow methods. In Geometric Properties for Incomplete Data, pages 283-298. Springer, 2006. 2
+[8] Vincent Casser, Soeren Pirk, Reza Mahjourian, and Anelia Angelova. Depth prediction without the sensors: Leveraging structure for unsupervised learning from monocular videos. In Thirty-Third AAAI Conference on Artificial Intelligence (AAAI-19), 2019. 2
+[9] Long Chen, Wen Tang, and Nigel John. Self-supervised monocular image depth learning and confidence estimation. arXiv preprint arXiv:1803.05530, 2018. 5
+[10] Tianqi Chen, Emily Fox, and Carlos Guestrin. Stochastic gradient hamiltonian monte carlo. In International conference on machine learning, pages 1683-1691, 2014. 3
+[11] Yuhua Chen, Cordelia Schmid, and Cristian Sminchisescu. Self-supervised learning with geometric constraints in monocular video: Connecting flow, depth, and camera. In ICCV, 2019. 2
+[12] 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. 6
+[13] David Eigen, Christian Puhrsch, and Rob Fergus. Depth map prediction from a single image using a multi-scale deep network. In Advances in neural information processing systems, pages 2366-2374, 2014. 1, 6, 7, 8
+
+[14] Sean Fanello, Cem Keskin, Shahram Izadi, Pushmeet Kohli, David Kim, David Sweeney, Antonio Criminisi, Jamie Shotton, Sing Bing Kang, and Tim Paek. Learning to be a depth camera for close-range human capture and interaction. ACM Transactions on Graphics (TOG) - Proceedings of ACM SIGGRAPH 2014, 33, July 2014. 2
+[15] Huan Fu, Mingming Gong, Chaohui Wang, Kayhan Bat-manghelich, and Dacheng Tao. Deep ordinal regression network for monocular depth estimation. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 1, 2
+[16] Yarin Gal and Zoubin Ghahramani. Dropout as a bayesian approximation: Representing model uncertainty in deep learning. In international conference on machine learning, pages 1050-1059, 2016. 3
+[17] Ravi Garg, Vijay Kumar BG, Gustavo Carneiro, and Ian Reid. Unsupervised cnn for single view depth estimation: Geometry to the rescue. In European Conference on Computer Vision, pages 740-756. Springer, 2016. 2, 6
+[18] 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, 6
+[19] Clément Godard, Oisin Mac Aodha, and Gabriel J. Brostow. Unsupervised monocular depth estimation with left-right consistency. In CVPR, 2017. 1, 2, 4
+[20] Clement Godard, Oisin Mac Aodha, Michael Firman, and Gabriel J. Brostow. Digging into self-supervised monocular depth estimation. In The IEEE International Conference on Computer Vision (ICCV), October 2019. 2, 3, 6, 7, 8
+[21] Alex Graves. Practical variational inference for neural networks. In Advances in neural information processing systems, pages 2348-2356, 2011. 3
+[22] Xiaoyang Guo, Hongsheng Li, Shuai Yi, Jimmy Ren, and Xiaogang Wang. Learning monocular depth by distilling cross-domain stereo networks. In Proceedings of the European Conference on Computer Vision (ECCV), pages 484-500, 2018. 2
+[23] Heiko Hirschmüller. Stereo processing by semiglobal matching and mutual information. PAMI, 30(2):328-341, 2008. 2
+[24] Xiaoyan Hu and Filippos Mordohai. A quantitative evaluation of confidence measures for stereo vision. PAMI, 34(11):2121-2133, 2012. 2, 3
+[25] Gao Huang, Yixuan Li, Geoff Pleiss, Zhuang Liu, John E Hopcroft, and Kilian Q Weinberger. Snapshot ensembles: Train 1, get m for free. In ICLR, 2017. 4
+[26] Po-Yu Huang, Wan-Ting Hsu, Chun-Yueh Chiu, Ting-Fan Wu, and Min Sun. Efficient uncertainty estimation for semantic segmentation in videos. In Proceedings of the European Conference on Computer Vision (ECCV), pages 520-535, 2018. 2
+[27] Eddy Ilg, Ozgun Cicek, Silvio Galesso, Aaron Klein, Osama Makansi, Frank Hutter, and Thomas Brox. Uncertainty estimates and multi-hypotheses networks for optical flow. In Proceedings of the European Conference on Computer Vision (ECCV), pages 652-667, 2018. 2, 3, 4, 5, 6
+
+[28] Eddy Ilg, Nikolaus Mayer, Tonmoy Saikia, Margret Keuper, Alexey Dosovitskiy, and Thomas Brox. Flownet 2.0: Evolution of optical flow estimation with deep networks. In CVPR, pages 2462-2470, 2017. 3
+[29] 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. 3, 4, 5, 6
+[30] Alex Kendall, Yarin Gal, and Roberto Cipolla. Multi-task learning using uncertainty to weight losses for scene geometry and semantics. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7482-7491, 2018. 2, 3
+[31] Sunok Kim, Seungryong Kim, Dongbo Min, and Kwanghoon Sohn. Laf-net: Locally adaptive fusion networks for stereo confidence estimation. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 3
+[32] Maria Klodt and Andrea Vedaldi. Supervising the new with the old: learning sfm from sfm. In The European Conference on Computer Vision (ECCV), September 2018. 2, 3, 4, 5
+[33] Claudia Kondermann, Daniel Kondermann, Bernd Jähne, and Christoph Garbe. An adaptive confidence measure for optical flows based on linear subspace projections. In Joint Pattern Recognition Symposium, pages 132-141. Springer, 2007. 3
+[34] Claudia Kondermann, Rudolf Mester, and Christoph Garbe. A statistical confidence measure for optical flows. In European Conference on Computer Vision, pages 290-301. Springer, 2008. 3
+[35] Yevhen Kuznetsov, Jorg Stuckler, and Bastian Leibe. Semi-supervised deep learning for monocular depth map prediction. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017. 2
+[36] Jan Kybic and Claudia Nieuwenhuis. Bootstrap optical flow confidence and uncertainty measure. Computer Vision and Image Understanding, 115(10):1449-1462, 2011. 2
+[37] Lubor Ladicky, Jianbo Shi, and Marc Pollefeys. Pulling things out of perspective. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 89-96, 2014. 2
+[38] Iro Laina, Christian Rupprecht, Vasileios Belagiannis, Federico Tombari, and Nassir Navab. Deeper depth prediction with fully convolutional residual networks. In 2016 Fourth international conference on 3D vision (3DV), pages 239-248. IEEE, 2016. 1, 2
+[39] Balaji Lakshminarayanan, Alexander Pritzel, and Charles Blundell. Simple and scalable predictive uncertainty estimation using deep ensembles. In Advances in Neural Information Processing Systems, pages 6402-6413, 2017. 3, 4
+[40] Fayao Liu, Chunhua Shen, Guosheng Lin, and Ian Reid. Learning depth from single monocular images using deep convolutional neural fields. IEEE transactions on pattern analysis and machine intelligence, 38(10):2024-2039, 2016. 2
+[41] Chenxu Luo, Zhenheng Yang, Peng Wang, Yang Wang, Wei Xu, Ram Nevatia, and Alan Yuille. Every pixel counts++.
+
+Joint learning of geometry and motion with 3d holistic understanding. PAMI, 2019. 2
+[42] Yue Luo, Jimmy Ren, Mude Lin, Jiahao Pang, Wenxiu Sun, Hongsheng Li, and Liang Lin. Single view stereo matching. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 155-163, 2018. 2
+[43] Oisin Mac Aodha, Ahmad Humayun, Marc Pollefeys, and Gabriel J Brostow. Learning a confidence measure for optical flow. IEEE transactions on pattern analysis and machine intelligence, 35(5):1107-1120, 2012. 3, 5
+[44] David JC MacKay. A practical bayesian framework for backpropagation networks. Neural computation, 4(3):448-472, 1992. 3, 4
+[45] Reza Mahjourian, Martin Wicke, and Anelia Angelova. Unsupervised learning of depth and ego-motion from monocular video using 3d geometric constraints. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 1, 2
+[46] Nikolaus Mayer, Eddy Ilg, Philip Hausser, Philipp Fischer, Daniel Cremers, Alexey Dosovitskiy, and Thomas Brox. A large dataset to train convolutional networks for disparity, optical flow, and scene flow estimation. In CVPR, pages 4040-4048, 2016. 2
+[47] Pushmeet Kohli Nathan Silberman, Derek Hoiem and Rob Fergus. Indoor segmentation and support inference from rgbd images. In ECCV, 2012. 1
+[48] Radford M Neal. Bayesian learning for neural networks, volume 118. Springer Science & Business Media, 2012. 3, 6
+[49] David A Nix and Andreas S Weigend. Estimating the mean and variance of the target probability distribution. In Proceedings of 1994 IEEE International Conference on Neural Networks (ICNN'94), volume 1, pages 55-60. IEEE, 1994. 3, 5
+[50] Valentino Peluso, Antonio Cipolletta, Andrea Calimera, Matteo Poggi, Fabio Tosi, and Stefano Mattoccia. Enabling energy-efficient unsupervised monocular depth estimation on armv7-based platforms. In Design Automation and Test in Europe (DATE 2019), 2019. 2
+[51] Sudeep Pillai, Rares Ambrus, and Adrien Gaidon. Superdepth: Self-supervised, super-resolved monocular depth estimation. In 2019 International Conference on Robotics and Automation (ICRA), pages 9250-9256. IEEE, 2019. 2
+[52] Andrea Pilzer, Stephane Lathuiliere, Nicu Sebe, and Elisa Ricci. Refine and distill: Exploiting cycle-inconsistency and knowledge distillation for unsupervised monocular depth estimation. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 2, 5
+[53] Matteo Poggi, Filippo Aleotti, Fabio Tosi, and Stefano Mattoccia. Towards real-time unsupervised monocular depth estimation on cpu. In IEEE/JRS Conference on Intelligent Robots and Systems (IROS), 2018. 1, 2
+[54] Matteo Poggi and Stefano Mattoccia. Learning from scratch: a confidence measure. In BMVC, 2016. 3
+[55] Matteo Poggi, Fabio Tosi, and Stefano Mattoccia. Quantitative evaluation of confidence measures in a machine learning world. In ICCV, pages 5228-5237, 2017. 2, 3, 5
+
+[56] Matteo Poggi, Fabio Tosi, and Stefano Mattoccia. Learning monocular depth estimation with unsupervised trinocular assumptions. In 6th International Conference on 3D Vision (3DV), 2018. 1, 2
+[57] Ashutosh Saxena, Min Sun, and Andrew Y Ng. Make3d: Learning 3d scene structure from a single still image. IEEE transactions on pattern analysis and machine intelligence, 31(5):824-840, 2008. 1
+[58] Ashutosh Saxena, Min Sun, and Andrew Y Ng. Make3d: Learning 3d scene structure from a single still image. IEEE transactions on pattern analysis and machine intelligence, 31(5):824-840, 2009. 2
+[59] Daniel Scharstein and Richard Szeliski. A taxonomy and evaluation of dense two-frame stereo correspondence algorithms. IJCV, 47(1-3):7-42, 2002. 1, 2
+[60] Steven M Seitz, Brian Curless, James Diebel, Daniel Scharstein, and Richard Szeliski. A comparison and evaluation of multi-view stereo reconstruction algorithms. In 2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'06), volume 1, pages 519-528. IEEE, 2006. 1, 2
+[61] Akihito Seki and Marc Pollefeys. Patch based confidence prediction for dense disparity map. In BMVC, volume 2, page 4, 2016. 3
+[62] Amit Shaked and Lior Wolf. Improved stereo matching with constant highway networks and reflective confidence learning. In CVPR, pages 4641-4650, 2017. 5
+[63] 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. 4
+[64] Alessio Tonioni, Matteo Poggi, Stefano Mattoccia, and Luigi Di Stefano. Unsupervised domain adaptation for depth prediction from images. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2019. Available at https://ieeexplore.ieee.org/document/8834825.2
+[65] Fabio Tosi, Filippo Aleotti, Matteo Poggi, and Stefano Mattoccia. Learning monocular depth estimation infusing traditional stereo knowledge. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 1, 2
+[66] Fabio Tosi, Filippo Aleotti, Pierluigi Zama Ramirez, Matteo Poggi, Samuele Salti, Luigi Di Stefano, and Stefano Mattoccia. Distilled semantics for comprehensive scene understanding from videos. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020. 2
+[67] Fabio Tosi, Matteo Poggi, Antonio Benincasa, and Stefano Mattoccia. Beyond local reasoning for stereo confidence estimation with deep learning. In ECCV, pages 319-334, 2018. 3
+[68] Jonas Uhrig, Nick Schneider, Lukas Schneider, Uwe Franke, Thomas Brox, and Andreas Geiger. Sparsity invariant cnns. In International Conference on 3D Vision (3DV), pages 11-20. IEEE, 2017. 1, 6, 7, 8
+[69] Chaoyang Wang, Jose Miguel Buenaposada, Rui Zhu, and Simon Lucey. Learning depth from monocular videos using direct methods. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 2
+
+[70] Zhou Wang, A. C. Bovik, H. R. Sheikh, and E. P. Simoncelli. Image quality assessment: From error visibility to structural similarity. Trans. Img. Proc., 13(4):600-612, Apr. 2004. 3
+[71] Anne S Wannenwetsch, Margret Keuper, and Stefan Roth. Probflow: Joint optical flow and uncertainty estimation. In Proceedings of the IEEE International Conference on Computer Vision, pages 1173-1182, 2017. 2
+[72] Jamie Watson, Michael Firman, Gabriel J. Brostow, and Daniyar Turmukhambetov. Self-supervised monocular depth hints. In The IEEE International Conference on Computer Vision (ICCV), October 2019. 1, 2
+[73] Max Welling and Yee W Teh. Bayesian learning via stochastic gradient Langevin dynamics. In Proceedings of the 28th international conference on machine learning (ICML-11), pages 681–688, 2011. 3
+[74] Dan Xu, Wei Wang, Hao Tang, Hong Liu, Nicu Sebe, and Elisa Ricci. Structured attention guided convolutional neural fields for monocular depth estimation. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 2
+[75] Haofei Xu, Jianmin Zheng, Jianfei Cai, and Juyong Zhang. Region deformer networks for unsupervised depth estimation from unconstrained monocular videos. In IJCAI, 2019. 2
+[76] Nan Yang, Rui Wang, Jörg Stuckler, and Daniel Cremers. Deep virtual stereo odometry: Leveraging deep depth prediction for monocular direct sparse odometry. In European Conference on Computer Vision, pages 835-852. Springer, 2018. 1, 2
+[77] Zhenheng Yang, Peng Wang, Yang Wang, Wei Xu, and Ram Nevatia. Every pixel counts: Unsupervised geometry learning with holistic 3d motion understanding. In The European Conference on Computer Vision (ECCV) Workshops, September 2018. 2
+[78] Zhichao Yin and Jianping Shi. Geonet: Unsupervised learning of dense depth, optical flow and camera pose. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 2
+[79] Pierluigi Zama Ramirez, Matteo Poggi, Fabio Tosi, Stefano Mattoccia, and Luigi Di Stefano. Geometry meets semantic for semi-supervised monocular depth estimation. In 14th Asian Conference on Computer Vision (ACCV), 2018. 2
+[80] Huangying Zhan, Ravi Garg, Chamara Saroj Weerasekera, Kejie Li, Harsh Agarwal, and Ian Reid. Unsupervised learning of monocular depth estimation and visual odometry with deep feature reconstruction. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. 2
+[81] Mengyu Zheng, Chuan Zhou, Jia Wu, and Li Guo. Smooth deep network embedding. In 2019 International Joint Conference on Neural Networks (IJCNN), pages 1-8. IEEE, 2019. 5
+[82] Tinghui Zhou, Matthew Brown, Noah Snavely, and David G Lowe. Unsupervised learning of depth and ego-motion from video. In CVPR, volume 2, page 7, 2017. 1, 2, 6
+[83] Yuliang Zou, Zelun Luo, and Jia-Bin Huang. Df-net: Unsupervised joint learning of depth and flow using cross-task consistency. In European Conference on Computer Vision, pages 38-55. Springer, 2018. 2
\ No newline at end of file
diff --git a/ontheuncertaintyofselfsupervisedmonoculardepthestimation/images.zip b/ontheuncertaintyofselfsupervisedmonoculardepthestimation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..bbbb8fa5368f4dd0a748d91eb75c6e96c60d3d8e
--- /dev/null
+++ b/ontheuncertaintyofselfsupervisedmonoculardepthestimation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7575f4bf1f8a1503349f34b4ff2ff3ef8a374a35ac9fa8238c391c90ae9d3553
+size 528746
diff --git a/ontheuncertaintyofselfsupervisedmonoculardepthestimation/layout.json b/ontheuncertaintyofselfsupervisedmonoculardepthestimation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..9b82c4ec5f90fe44cfd6e6c1b23054e73f4eebb8
--- /dev/null
+++ b/ontheuncertaintyofselfsupervisedmonoculardepthestimation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dbae665912a1b4064a5f9a6bdb54607a7f3c08b35255f9c3a9b52174b180a31f
+size 499352
diff --git a/ontranslationinvarianceincnnsconvolutionallayerscanexploitabsolutespatiallocation/c99cfbaf-9901-44c0-a16b-eac44e173270_content_list.json b/ontranslationinvarianceincnnsconvolutionallayerscanexploitabsolutespatiallocation/c99cfbaf-9901-44c0-a16b-eac44e173270_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..5e79d7bf640335c67fac62992fa27ef71182f96c
--- /dev/null
+++ b/ontranslationinvarianceincnnsconvolutionallayerscanexploitabsolutespatiallocation/c99cfbaf-9901-44c0-a16b-eac44e173270_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3e703c455b9207e45ee8410167a44a3d33129538113d3006e56b5fd380e698b5
+size 91678
diff --git a/ontranslationinvarianceincnnsconvolutionallayerscanexploitabsolutespatiallocation/c99cfbaf-9901-44c0-a16b-eac44e173270_model.json b/ontranslationinvarianceincnnsconvolutionallayerscanexploitabsolutespatiallocation/c99cfbaf-9901-44c0-a16b-eac44e173270_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..0f25201fa477dd5b69e15ad05b5a4f5d0efe3c05
--- /dev/null
+++ b/ontranslationinvarianceincnnsconvolutionallayerscanexploitabsolutespatiallocation/c99cfbaf-9901-44c0-a16b-eac44e173270_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:801a41cb50fa20c6b903011ab2e3e9b2027b9da81284cb62225087441027a4b3
+size 123372
diff --git a/ontranslationinvarianceincnnsconvolutionallayerscanexploitabsolutespatiallocation/c99cfbaf-9901-44c0-a16b-eac44e173270_origin.pdf b/ontranslationinvarianceincnnsconvolutionallayerscanexploitabsolutespatiallocation/c99cfbaf-9901-44c0-a16b-eac44e173270_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..bea92e4929429bdb4550f7cd1cadbb05a324f96e
--- /dev/null
+++ b/ontranslationinvarianceincnnsconvolutionallayerscanexploitabsolutespatiallocation/c99cfbaf-9901-44c0-a16b-eac44e173270_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:594711b5a36dee389b911188cee75cb16113304af33e574cc1b995862f29ca7c
+size 1734112
diff --git a/ontranslationinvarianceincnnsconvolutionallayerscanexploitabsolutespatiallocation/full.md b/ontranslationinvarianceincnnsconvolutionallayerscanexploitabsolutespatiallocation/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..6eed2545caab4f88bb94833cf36460a73075dafb
--- /dev/null
+++ b/ontranslationinvarianceincnnsconvolutionallayerscanexploitabsolutespatiallocation/full.md
@@ -0,0 +1,400 @@
+# On Translation Invariance in CNNs: Convolutional Layers can Exploit Absolute Spatial Location
+
+Osman Semih Kayhan Computer Vision Lab Delft University of Technology
+
+Jan C. van Gemert
+Computer Vision Lab
+Delft University of Technology
+
+# Abstract
+
+In this paper we challenge the common assumption that convolutional layers in modern CNNs are translation invariant. We show that CNNs can and will exploit the absolute spatial location by learning filters that respond exclusively to particular absolute locations by exploiting image boundary effects. Because modern CNNs filters have a huge receptive field, these boundary effects operate even far from the image boundary, allowing the network to exploit absolute spatial location all over the image. We give a simple solution to remove spatial location encoding which improves translation invariance and thus gives a stronger visual inductive bias which particularly benefits small data sets. We broadly demonstrate these benefits on several architectures and various applications such as image classification, patch matching, and two video classification datasets.
+
+# 1. Introduction
+
+The marriage of the convolution operator and deep learning yields the Convolutional Neural Network (CNN). The CNN arguably spawned the deep learning revolution with AlexNet [54] and convolutional layers are now the standard backbone for various Computer Vision domains such as image classification [35, 89, 95], object detection [65, 77, 79], semantic segmentation [34, 52, 81], matching [66, 32, 107], video [12, 33, 88], generative models [25, 29, 51], etc. The CNN is now even used in other modalities such as speech [1, 58, 73], audio [15, 40, 82], text [14, 20, 56], graphs [11, 21, 84], etc. It is difficult to overstate the importance of the convolution operator in deep learning. In this paper we analyze convolutional layers in CNNs which is broadly relevant for the entire deep learning research field.
+
+For images, adding convolution to neural networks adds a visual inductive prior that objects can appear anywhere. Convolution can informally be described as the dot product between the input image and a small patch of learnable weights—the kernel—sliding over all image locations. This
+
+
+Figure 1. We place an identical image patch on the top-left or on the bottom-right of an image. We evaluate a standard fully convolutional network [35, 43, 61, 93, 95, 105] if it can classify the patch location (top-left vs bottom-right). We use 1 layer, a single $5 \times 5$ kernel, zero-padding, same-convolution, ReLu, global max pooling, SGD, and a soft-max loss. Surprisingly, this network can classify perfectly, demonstrating that current convolutional layers can exploit the absolute spatial location in an image.
+
+
+
+shares the weights over locations yielding a huge reduction in learnable parameters. Convolution is equivariant to translation: If an object is shifted in an image then the convolution outcome is shifted equally. When convolution is followed by an operator that does not depend on the position, such as taking the global average or global maximum, that gives translation invariance and absolute location is lost. Translation invariance powers the visual inductive prior of the convolution operator, and we will demonstrate that improving translation invariance improves the prior, leading to increased data efficiency in the small data setting.
+
+In this paper we challenge standard assumptions about translation invariance and show that currently used convolutional layers can exploit the absolute location of an object in an image. Consider Fig. 1, where the exactly identical image patch is positioned on the top left (class 1) or on the bottom right (class 2) in an image. If a fully convolutional CNN is invariant, it should not be able to classify and give random performance on this task. Yet, surprisingly, a simple standard 1-layer fully convolutional network with a global max pooling operator can perfectly classify the location of the patch and thus exploit absolute spatial location.
+
+We show that CNNs can encode absolute spatial location by exploiting image boundary effects. These effects occur because images have finite support and convolving close to the boundary requires dealing with non-existing values beyond the image support [47, 94]. Boundary effects allow CNNs to learn filters whose output is placed outside the image conditioned on their absolute position in the image. This encodes position by only keeping filter outputs for specific absolute positions. It could, for example, learn filters that only fire for the top of the image, while the bottom responses are placed outside the image boundary. Boundary effects depend on the size of the convolution kernel and are small for a single $3 \times 3$ convolution. Yet, CNNs stack convolution layers, yielding receptive fields typically several times the input image size [4]. Boundary effects for such huge kernels are large and, as we will demonstrate, allows CNNs to exploit boundary effects all over the image, even far away from the image boundary.
+
+We have the following contributions. We show how boundary effects in discrete convolutions allow for location specific filters. We demonstrate how convolutional layers in various current CNN architectures can and will exploit absolute spatial location, even far away from the image boundary. We investigate simple solutions that removes the possibility to encode spatial location which increases the visual inductive bias which is beneficial for smaller datasets. We demonstrate these benefits on multiple CNN architectures on several application domains including image classification, patch matching, and video classification.
+
+# 2. Related Work and Relevance
+
+Fully connected and fully convolutional networks. Initial CNN variants have convolutional layers followed by fully connected layers. These fully connected layers can learn weights at each location in a feature map and thus can exploit absolute position. Variants of the seminal LeNet that included fully connected layers experimentally outperformed an exclusively convolutional setup [59]. The 2012 ImageNet breakthrough as heralded by AlexNet [54] followed the LeNet design, albeit at larger scale with 5 convolutional and 2 fully connected layers. Building upon AlexNet [54], the VGG [89] network family variants involve varying the depth of the convolutional layers followed by 3 fully connected layers. The fully connected layers, however, take up a huge part of the learnable parameters making such networks large and difficult to train.
+
+Instead of using fully connected layers, recent work questions their value. The Network In Network [61] is a fully convolutional network and simply replaces fully connected layers by the global average value of the last convolutional layer's output. Such a global average or global max operator is invariant to location, and makes the whole network theoretically insensitive to absolute position by build
+
+ing on top of equivariant convolutional layers. Several modern networks are now using global average pooling. Popular and successful examples include the The All Convolutional Net [93], Residual networks [35], The Inception family [95], the DenseNet [43], the ResNext network [105] etc. In this paper we show, contrary to popular belief, that fully convolutional networks will exploit the absolute position.
+
+Cropping image regions. Encoding absolute location has effect on cropping. Examples of region cropping in CNNs include: The bounding box in object detection [27, 34, 79]; processing a huge resolution image in patches [42, 86]; local image region matching [32, 66, 108, 107]; local CNN patch pooling encoders [3, 6, 8]. The region cropping can be done explicitly before feeding the patch to a CNN as done in R-CNN [27], high-res image processing [42] and aggregation methods [80, 87]. The other approach to cropping regions is implicitly on featuremaps after feeding the full image to a CNN as done in Faster R-CNN [79], BagNet [8], and CNN pooling methods such as sum [6], BoW [76], VLAD [3, 28], Fisher vector [16]. In our paper we show that CNNs can encode the absolute position. This means that in contrast to explicitly cropping a region before the CNN, cropping a region after the CNN can include absolute position information, which impacts all implicit region cropping methods.
+
+Robustness to image transformations. The semantic content of an image should be invariant to the accidental camera position. Robustness to such geometric transformation can be learned by adding them to the training set using data augmentation [18, 24, 39, 41, 50]. Instead of augmenting with random transformations there are geometric adversarial training methods [22, 23, 49] that intelligently add the most sensitive geometric transformations to the training data. Adding data to the training set by either data augmentation or adversarial training is a brute-force solution adding additional computation as the dataset grows.
+
+Instead of adding transformed versions of the training data there are methods specifically designed to learn geometric transformations in an equivariant or invariant representation [7, 53, 60] where examples include rotation [19, 69, 102, 103, 110], scale [68, 92, 99, 104, 106] and other transformations [17, 26, 38, 57, 90]. Closely related is the observation that through subsequent pooling and subsampling in CNN layers translation equivariance is lost [5, 109]. In our paper, we also investigate the loss of translation equivariance, yet do not focus on pooling but instead show that convolutional layers can exploit image boundary effects to encode the absolute position which was also found independently by Islam et al. [45].
+
+Boundary effects. Boundary effects cause statistical biases in finitely sampled data [30, 31]. For image processing this is textbook material [47, 94], where boundary handling has applications in image restoration and deconvolu
+
+tions [2, 63, 78]. Boundary handling in CNNs focuses on minimizing boundary effects by learning separate filters at the boundary [44], treating out of boundary pixels as missing values [62], circular convolutions for wrap-around input data such as $360^{\circ}$ degree images [85] and minimizing distortions in $360^{\circ}$ degree video [13]. We, instead, investigate how boundary effects can encode absolute spatial location.
+
+Location information in CNNs. Several deep learning methods aim to exploit an absolute spatial location bias in the data [64, 100]. This bias stems from how humans take pictures where for example a sofa tends to be located on the bottom of the image while the sky tends to be at the top. Explicitly adding absolute spatial location information helps for patch matching [67, 71], generative modeling [101], semantic segmentation [36, 100], instance segmentation [72]. In this paper we do not add spatial location information. Instead, we do the opposite and show how to remove such absolute spatial location information from current CNNs.
+
+Visual inductive priors for data efficiency. Adding visual inductive priors to deep learning increases data efficiency. Deep networks for image recognition benefit from a convolutional prior [97] and the architectural structure of a CNN with random weights already provides an inductive bias [48, 83, 96]. The seminal Scattering network [10] and its variants [74, 75] design a convolutional architecture to incorporate physical priors about image deformations. Other work shows that adding priors increases data efficiency by tying parameters [26], sharing rotation responses [103], and a prior scale-space filter basis [46]. In our paper we show that removing the ability of convolutional layers to exploit the absolute position improves translation equivariance and invariance which enforces the visual inductive prior of the convolution operator in deep learning.
+
+# 3. How boundary effects encode location
+
+We explore common convolution types for boundary handling with their image padding variants and explore their equivariant and invariant properties. In Fig. 2 we illustrate the convolution types. For clarity of presentation we mostly focus on $d = 1$ dimensional convolutions in a single channel, although the analysis readily extends to the multidimensional multi-channel case. We use the term 'image' broadly and also includes feature maps.
+
+Boundaries for convolution on finite samples. Let $\mathbf{x} \in \mathbb{R}^n$ be the 1-D single channel input image of size $n$ and $\mathbf{f} \in \mathbb{R}^{2k + 1}$ denote a 1-D single channel filter where for convenience we only consider odd sized filters of size $2k + 1$ . The output $y[t]$ for discrete convolution is
+
+$$
+\mathbf {y} [ t ] = \sum_ {j = - k} ^ {k} \mathbf {f} [ j ] \mathbf {x} [ t - j ]. \tag {1}
+$$
+
+Images have finite support and require handling boundary
+
+
+Figure 2. How convolution ignores positions close to the border. We show the first and the last position for three convolution types: Valid (V-Conv), Same (S-Conv) and Full (F-Conv) applied to an input with finite support (green) and border padding (red). Note that for V-conv, the blue filter at position 1 is never applied to the green input positions 1 and 2. For S-Conv, the pink filter position 1 is never applied to green input position 1. F-Conv has all filter values applied on the image.
+
+cases, for example where $t - j < 0$ and $x[t - j]$ falls outside the defined image. Providing values outside the image boundary is commonly referred to as padding. We consider two cases. Zero padding assumes that all values outside of the images are zero. Circular padding wraps the image values on one side around to the other side to provide the missing values.
+
+# 3.1. Common convolutions for boundary handling
+
+Valid convolution (V-Conv). V-Conv does not convolve across image boundaries. Thus, V-conv is a function $\mathbb{R}^n\to \mathbb{R}^{n - 2k}$ where the output range of Eq. (1) is in the interval:
+
+$$
+t \in [ k + 1, n - k ]. \tag {2}
+$$
+
+It only considers existing values and requires no padding. Note that the support of the output $y$ has $2kd$ fewer elements than the input $x$ , where $d$ is the dimensionality of the image, i.e., the output image shrinks with $k$ pixels at all boundaries.
+
+Same convolution (S-Conv). S-Conv slides only the filter center on all existing image values. The output range of Eq. (1) is the same as the input domain; i.e. the interval:
+
+$$
+t \in [ 1, n ]. \tag {3}
+$$
+
+The support of the output $y$ is the same size as the support of the input $x$ . Note that $2kd$ values fall outside the support of $x$ , i.e., at each boundary there are $k$ padding values required.
+
+Full convolution (F-Conv). F-Conv applies each value in the filter on all values in the image. Thus, F-conv is a function $\mathbb{R}^n\to \mathbb{R}^{n + 2k}$ where the output range of Eq. (1) is in the interval:
+
+$$
+t \in [ - k, n + k ]. \tag {4}
+$$
+
+The output support of $y$ has $2kd$ more elements than the input $x$ , i.e., the image grows with $k$ elements at each boundary. Note that $4kd$ values fall outside of the support of the input $x$ : At each boundary $2k$ padded values are required.
+
+
+Figure 3. A 2D Example where a pixel on the top left input (Class-1) and the same pixel on the bottom-right input (Class-2) can be classified using convolution. Comparing the output of 4 convolution types shows that V-Conv and S-Conv for Class-1 can no longer detect the pixel, while Class-2 still has the pixel. S-Conv with circular padding and F-Conv always retain the pixel value.
+
+# 3.2. Are all input locations equal?
+
+We investigate if convolution types are equally applied to all input position in an image. In Fig. 2 we illustrate the setting. To analyze if each location is equal, we modify Eq. (1) to count how often an absolute spatial position $a$ in the input signal $x$ is used in the convolution. The count $C(\cdot)$ sums over all input positions $i$ where the convolution is applied,
+
+$$
+C (a) = \sum_ {i} \sum_ {j = - k} ^ {k} [ [ i = a - j ] ], \tag {5}
+$$
+
+where $\llbracket \cdot \rrbracket$ are Iverson Brackets which evaluate to 1 if the expression in the brackets is true. Without boundary effects $C(a)$ always sums to $2k + 1$ for each value of $a$ .
+
+When there are boundary effects, there will be differences. For V-Conv, the input locations $i$ are determined by Eq. (2) and the equation becomes
+
+$$
+C _ {V} (a) = \sum_ {i = k + 1} ^ {n - k} \sum_ {j = - k} ^ {k} [ [ i = a - j ] ], \tag {6}
+$$
+
+where $i$ no longer sums over all values. Thus, for all locations in the input image the function $C_V(t)$ no longer sums to $2k + 1$ as it does in Eq. (5), instead they sum to a lower value. In fact, it reduces to
+
+$$
+C _ {V} (a) = \left\{ \begin{array}{l l} a & \text {i f} a \in [ 1, 2 k ] \\ n - a + 1 & \text {i f} a \in [ n - 2 k, n ] \\ 2 k + 1 & \text {O t h e r w i s e .} \end{array} \right. \tag {7}
+$$
+
+This shows that for V-Conv there are absolute spatial locations where the full filter is not applied.
+
+For S-Conv, where Eq. (3) defines the input, the count is
+
+$$
+C _ {S} (a) = \sum_ {i = 1} ^ {n} \sum_ {j = - k} ^ {k} [ [ i = a - j ] ], \tag {8}
+$$
+
+where $i$ sums over all values, and slides only the filter center over all locations. Thus, for S-Conv, when the locations are $a \leq k$ or $a \geq n - k$ , the function $C_S(a)$ no longer sums to $2k + 1$ . This reduces to
+
+$$
+C _ {S} (a) = \left\{ \begin{array}{l l} a + k & \text {i f} a \in [ 1, k ] \\ n - a + (k + 1) & \text {i f} a \in [ n - k, n ] \\ 2 k + 1 & \text {O t h e r w i s e .} \end{array} \right. \tag {9}
+$$
+
+This means that also for S-Conv there are absolute spatial locations where the full filter is not applied.
+
+S-Conv with circular padding 'wraps around' the image and uses the values on one side of the image to pad the border on the other side. Thus, while for S-Conv, Eq. (9) holds for the absolute position $i$ , it is by using circular padding that the value $x[i]$ at position $i$ is exactly wrapped around to the positions where the filter values were not applied. Hence, circular padding equalizes all responses, albeit at the other side of the image. Zero padding, in contrast, will have absolute spatial locations where filter values are never applied.
+
+For F-Conv, in Eq. (4), the counting equation becomes
+
+$$
+C _ {F} (a) = \sum_ {i = - k} ^ {n + k} \sum_ {j = - k} ^ {k} [ [ i = a - j ] ]. \tag {10}
+$$
+
+F-Conv sums the filter indices over all indices in the image and thus, as in Eq. (5), all locations $i$ sum to $2k + 1$ and thus no locations are left out.
+
+We conclude that V-Conv is the most sensitive to exploitation of the absolute spatial location. S-Conv with zero padding is also sensitive to location exploitation. S-Conv with circular padding is not sensitive, yet involves wrapping values around to the other side, which may introduce semantic artifacts. F-Conv is not sensitive to location information. In Fig. 3 we give an example of all convolution types and how they can learn absolute spatial position.
+
+
+Bagnet-33 with Variant Border Size
+Figure 4. Exp 1: Evaluating a BagNet-33 [8] (left), a ResNet-18 [35] (middle) and a DenseNet-121 [43] (right) on how far from the boundary absolute location can be exploited, see Fig. 5. The x-axis is the border size added to all 4 sides of the image and the y-axis is accuracy. All models can classify absolute position. The small RF of the BagNet allows for classification close to the border. The ResNet-18 and DenseNet-121 have larger RFs and can classify location far from the boundary. Random convolutional weights stay relatively close to the boundary while training on ImageNet learns filters that can go further. Training from scratch does best. Note that the most distant location from an image boundary for a kxxk image is a border size of $k/2$ , i.e., a border size of 128 corresponds to a 256x256 image.
+
+
+Resnet-18 with Variant Border Size
+
+
+Densenet-121 with Variant Border Size
+
+
+Class-1
+
+
+
+
+Class-2
+
+
+Border=16
+Border=32
+
+
+Border=64
+Figure 5. Exp 1: Example images. Evaluating how far from the image boundary absolute location can be exploited. The task is to classify the location of a $56 \times 56$ resized Imagenet image placed in the top-left (class-1) and bottom-right (class-2), see also Fig. 1. We add a border on all 4 sides of the image, where we increase the border size until location can no longer be classified.
+
+# 4. Experiments
+
+Implementation details for Full Convolution. For standard CNNs implementing F-Conv is trivially achieved by simply changing the padding size. For networks with residual connections, we add additional zero padding to the residual output to match the spatial size of the feature map. We will make all our experiments and code available1.
+
+# 4.1. Exp 1: How far from the image boundary can absolute location be exploited?
+
+CNNs can encode absolute position by exploiting boundary effects. In this experiment we investigate how far from the boundary these effects can occur. Can absolute position be encoded only close to the boundary or also far away from the boundary? To answer this question we revisit the location classification setting in Fig. 1 while adding an increasingly large border all around the image until location can no longer be classified. In Fig. 5 we show the setting.
+
+We randomly pick 3,000 samples from ImageNet validation set, resize them to $56 \times 56$ and distribute them equally in
+
+a train/val/test set. For each of the 3k samples we create two new images (so, 2,000 images in each of the 3 train/val/test sets) by taking a black $112 \times 112$ image and placing the resized ImageNet sample in the top-left corner (class-1) and in the bottom-right corner (class-2), see Fig. 1. To evaluate the distance from the boundary we create 7 versions by adding a black border of size $\in \{0, 16, 32, 64, 128, 256, 512\}$ on all 4 sides of the $112 \times 112$ image, see Fig. 5 for examples.
+
+We evaluate three networks with varying receptive field size. BagNet-33 [8] is a ResNet variant where the receptive field is constrained to be $33 \times 33$ pixels. ResNet-18 [35] is a medium-sized network, while a DenseNet-121 [43] is slightly larger. We evaluate three settings: (i) trained completely from scratch to see how well it can do; (ii) randomly initialized with frozen convolution weights to evaluate the architectural bias for location classification; (iii) ImageNet pre-trained with frozen convolution weights to evaluate the location classification capacity of a converged realistic model used in a typical image classification setting.
+
+Results in Fig. 4 show that all settings for BagNet, ResNet and DenseNet can classify absolute position. Random weights can do it for locations relatively close to the boundary. Surprisingly, the pre-trained models have learned filters on ImageNet that can classify position further away from the boundary as compared to random initialization. The models trained from scratch can classify absolute position the furthest away from the boundary. The BagNet fails for locations far from the boundary. Yet, the medium-sized ResNet-18 can still classify locations of 128 pixels away from the boundary, which fully captures ImageNet as for $224 \times 224$ images the most distant pixel is only 112 pixels from a boundary. We conclude that absolute location can even be exploited far from the boundary.
+
+
+Figure 6. Exp 2: Example images of the Red-Green two class classification dataset for evaluating exploitation of absolute position. The upper row of images is class 1: Red-to-the-left-of-Green. The lower row of images is class 2: Green-to-the-left-of-Red. The Similar Testset is matching the Train-Val set in absolute location: Class 1 at the top and class 2 at the bottom. The Dissimilar testset is an exact copy of the Similar testset where absolute location is swapped between classes: Class 1 at the bottom, Class 2 at the top. If absolute location plays no role then classification on the Similar Testset would perform equal to the Dissimilar Testset.
+
+
+
+
+
+# 4.2. Exp 2: Border handling variants
+
+Border handling is the key to absolute location coding. Here we evaluate the effect of various border handling variants on absolute location exploitation. To do so, we create an image classification task unrelated to the absolute position and introduce a location bias which should have no effect on translation invariant architectures.
+
+We construct the Red-Green data set for binary image classification of the relative order of colored blocks of 4x4 on a black $32 \times 32$ image. Class 1 has Red to the left of Green; class 2 has Green to the left of Red, see Fig. 6. The classification task is unrelated to the absolute position. We introduce a vertical absolute position bias by placing class 1 on the top of the image (8 pixels from the top, on average), and class 2 on the bottom (8 pixels from the bottom, on average). We then construct two test sets, one with similar absolute location bias, and a dissimilar test set where the location bias switched: class 1 at the bottom and class 2 on top, see Fig. 6.
+
+The train set has 2,000 images, the validation and test sets each have 1,000 images. Experiments are repeated 10 times with different initialization of the networks. A 4-layer fully convolutional deep network is used for evaluation. The first two layers have 32 filters and last two layers 64 filter followed by global max pooling. Sub-sampling for layers 2, 3, 4 uses stride 2 convolution.
+
+We evaluate the border handling of Section 3. $V$ -Conv uses only existing image values and no padding. For $S$ -Conv we evaluate zero and circular padding. $F$ -Conv has zero padding. Results are in Table 1. $V$ -Conv and $S$ -Conv zero have the best accuracy on the Similar test set, yet they exploit the absolute location bias and perform poorly on the Dissimilar test set, where $V$ -Conv relies exclusively on location and confuses the classes completely. $S$ -Conv-circ and $F$ -Conv perform identical on the Similar and Dissimilar test
+
+| Type | Pad | Similar test | Dissimilar test |
| V-Conv | - | 100.0 ± 0.0 | 0.2 ± 0.1 |
| S-Conv | Zero | 99.8 ± 0.1 | 8.4 ± 0.7 |
| S-Conv | Circ | 73.7 ± 1.0 | 73.7 ± 1.0 |
| F-Conv | Zero | 89.7 ± 0.5 | 89.7 ± 0.5 |
+
+Table 1. Exp 2: Accuracy on the Red-Green dataset shown in Fig. 6. Type is the convolution type, pad is how padding is done. Results are given on the Similar test set with matching absolute positions and the Dissimilar test set with an absolute position mismatch. Stddevs are computed by 10 repeats. Valid and same-zero exploit location and do poorly on the Dissimilar test set. Same-circ is translation invariant yet invents disturbing new content. Full-zero is translation invariant, doing well on both test sets.
+
+sets; they are translation invariant and thus cannot exploit the absolute location bias. $F$ -Conv does better than $S$ -Conv-circ because circular padding introduces new content. $F$ -Conv does best on both test sets as it is translation invariant and does not introduce semantic artifacts.
+
+# 4.3. Exp 3: Sensitivity to image shifts
+
+Does removing absolute location as a feature lead to robustness to location shifts? We investigate the effect of image shifts at test time on CNN output for various architectures on a subset of ImageNet. We train four different architectures from scratch with S-Conv and F-Conv: Resnet 18, 34, 50 and 101. To speed up training from scratch, we use $20\%$ of the full ImageNet and take the 200 classes from [37] which is still large but $5\mathrm{x}$ faster to train. To evaluate image shifts we follow the setting of BlurPool [109], which investigates the effect of pooling on CNN translation equivariance. As BlurPool improves equivariance, we also evaluate the effect of BlurPool Tri-3 [109].
+
+Diagonal Shift. We train the network with the usual central crop. Each testing image is diagonally shifted starting from the top-left corner towards the bottom-right corner. We shift 64 times 1 pixel diagonally. Accuracy is evaluated for each pixel shift and averaged over the full test set.
+
+Consistency. We measure how often the classification output of a model is the same for a pair of randomly chosen diagonal shifts between 1 and 64 pixels [109]. We evaluate each test image 5 times and average the results.
+
+Results are given in Table 2. For each architecture, using F-Conv improves both the classification performance and the consistency of all the models. The highest classification accuracy gain between S-Conv and F-Conv is $3.6\%$ and the best consistency gain is $2.49\%$ with Resnet-34. BlurPool makes S-Conv more robust to diagonal shifts and increase consistency. When F-Conv and BlurPool are combined, the accuracy on diagonal shifting and consistency are improved further. Resnet-34 (F+BlurPool) obtains more $4.85\%$ of accuracy and $3.91\%$ of consistency compared to
+
+
+ImageNet
+Figure 7. Exp 4: Data efficiency experiments. We reduce the amount of training data per class for the 1,000 classes of Imagenet for image classification and full Liberty, Notre Dame and Yosemite for patch matching. F-Conv outperforms S-Conv in both modality with smaller data size. (left) The Imagenet plot demonstrates the obtained accuracy difference when the number of data samples per class. The difference between F-Conv and S-Conv increases when the sample size decreases. (right) Correspondingly, F-Conv results in a performance increase for patch matching.
+
+
+Patch Matching
+
+| Diagonal Shift | S-Conv | F-Conv | S+BlurPool | F+BlurPool |
| RN18 | 79.43 | 82.74 | 81.96 | 83.95 |
| RN34 | 82.06 | 85.66 | 83.73 | 86.91 |
| RN50 | 86.36 | 87.92 | 87.50 | 88.93 |
| RN101 | 86.95 | 87.78 | 88.22 | 88.73 |
| Consistency | S-Conv | F-Conv | S+BlurPool | F+BlurPool |
| RN18 | 86.43 | 88.38 | 88.32 | 90.03 |
| RN34 | 87.62 | 90.12 | 89.21 | 91.53 |
| RN50 | 90.21 | 91.36 | 91.68 | 92.75 |
| RN101 | 90.76 | 91.71 | 92.36 | 92.86 |
+
+Table 2. Exp 3: Diagonal shift and consistency result for different Resnet architectures. S+BlurPool represents S-Convs with BlurPool Tri-3. Similarly, F+BlurPool corresponds the combination of F-Conv and BlurPool. In the most cases, F-Conv outperforms S-Conv and S+BlurPool (except for Resnet-101) in terms of diagonal shifting accuracy on testing set. Similar trend can be seen for consistency experiment, yet for Resnet-50 and Resnet-101, S+BlurPool has more consistent outputs. F+BlurPool achieves the highest score for both cases with all the architectures.
+
+the S-Conv baseline. If we compare each Resnet architecture, the deepest model of the experiment, Resnet-101, improves the least, both for classification and consistency. Resnet-101 has more filters and parameters and it can learn many more varied filters than other models. By this, it can capture many variants of location of objects and thus the gap between methods for Resnet-101 are smaller.
+
+# 4.4. Exp 4: Data efficiency
+
+Does improving equivariance and invariance for the inductive convolutional prior lead to benefits for smaller data sets? We evaluate S-Conv and F-Conv with the same random initialization seed for two different settings: Image classification and image patch matching.
+
+Image classification. We evaluate ResNet-50 classification accuracy for various training set sizes of the 1,000 classes in ImageNet. We vary the training set size as 50, 100, 250, 500, and all images per class.
+
+Patch matching. We use HardNet [70] and use FPR (false positive rate) at 0.95 true positive recall as an evaluation metric (lower is better). We evaluate on 3 common patch matching datasets (Liberty, Notre Dame and Yosemite) from Brown dataset [9] where the model is trained on one set and tested on the other two sets. Hardnet uses triplets loss and we vary the training set size as $50\mathrm{k}$ , $100\mathrm{k}$ , $250\mathrm{k}$ , $500\mathrm{k}$ triplet patches. Each test set has $100\mathrm{k}$ triplet patches.
+
+Results are given in Fig. 7. For both image classification as for patch matching S-Conv and F-Conv perform similar for a large amount of training data. Yet, when reducing the number of training samples there is a clear improvement for F-Conv. For ImageNet with only 50 samples per class S-Conv scores $26.4\%$ and F-Conv scores $31.1\%$ , which is a relative improvement of $17.8\%$ . For patch matching, S-Conv scores 0.145 and F-Conv 0.083 which is a relative improvement of $75\%$ . Clearly, removing absolute location improves data efficiency.
+
+ | UCF101 | HMDB51 |
| Baseline (S-Conv) | Ours (F-Conv) | Baseline (S-Conv) | Ours (F-Conv) |
| RN-18 | 38.6 | 40.6 | 16.1 | 19.3 |
| RN-34 | 37.0 | 46.9 | 15.2 | 18.3 |
| RN-50 | 36.2 | 44.1 | 14.3 | 19.0 |
+
+Table 3. Exp 5: Action recognition with 3D Resnet-18, 34 and 50 by using S-Conv and F-Conv methods. F-Conv outperforms S-Conv on UCF101 and HMDB51 datasets. S-Conv obtains its best result with the most shallow network, Resnet-18, however F-Conv still improves the results even the model becomes bigger.
+
+
+Figure 8. Exp 5: Training curves for 3D Resnet-18 S-Conv (left) and F-Conv (right) with HMDB51 dataset. Because the dataset is small, both models overfit. F-Conv achieves relatively $38.8\%$ less overfitting than S-Conv.
+
+
+
+# 4.5. Exp 5: Small datasets
+
+Here we evaluate if the improved data efficiency generalize to two small datasets for action recognition. We select small sized data sets where training from scratch gives significantly worse results due to overfitting and the common practice is pre-training on a huge third party dataset. We compare the standard S-Conv with the proposed F-Conv where both methods are trained from scratch.
+
+Action Recognition. We evaluate on two datasets: UCF101 [91] with 13k video clips from 101 action classes and HMDB51 [55] with 51 action classes and around 7k annotated video clips. We evaluate three 3D Resnet architectures [33], Resnet-18, 34 and 50.
+
+We show results in Table 3. F-Conv models outperform the S-Conv models. Interestingly, in UCF101 experiment, the baseline performance decreased by $2.4\%$ from Resnet-18 to Resnet-50; however, F-Conv still continue to improve the performance by $3.6\%$ for same architectures. According to Kensho et al [33] a 3D Resnet-18 overfits with UCF101 and HMDB51 which we confirm, yet F-Conv we overfit less than S-Conv. In Fig. 8, the difference between train and test of a 3D Resnet18 with S-Conv is $35.69\%$ , however F-Conv has $25.7\%$ overfitting. Similarly, S-Conv is relatively $41\%$ more overfitted than F-Conv in Fig. 9. Consequently, both methods overfit due to the number of parameter and the lack of data.
+
+
+Figure 9. Exp 5: Training curves for 3D Resnet-18 S-Conv (left) and F-Conv (right) with UCF101 dataset. Both models overfit, but S-Conv has higher difference between training and testing results $(49.1\%)$ . F-Conv has $34.8\%$ of gap and thus overfits less.
+
+
+
+# 5. Limitations and Conclusion
+
+One limitation of our method is the extra computation required for padding. There is no extra cost of using circular padding instead of zero padding. For using F-Conv instead of S-Conv, the costs are similar to using S-Conv instead of V-Conv, and we found a Resnet-50 with F-Conv $15\%$ slower to train onImagenet.
+
+Note that if absolute spatial location is truly discriminative between classes, it should be exploited [98], and not removed. For many internet images with a human photographer, there will be a location bias as humans tend to take pictures with the subject in the center, sofas on the bottom, and the sky up. The difficulty lies in having deep networks not exploit spurious location correlations due to lack of data. Addressing lack of data samples by sharing parameters over locations through added convolutions in deep networks is a wonderfully regularizer and we believe that convolutional layers should truly be translation equivariant.
+
+To conclude, we show that in contrary to popular belief, convolutional layers can encode the absolute spatial location in an image. With the strong presence of the convolution operator in deep learning this insight is relevant to a broad audience. We analyzed how boundary effects allow for ignoring certain parts of the image. We evaluated existing networks and demonstrated that their large receptive field makes absolute spatial location coding available all over the image. We demonstrate that removing spatial location as a feature increases the stability to image shifts and improves the visual inductive prior of the convolution operator which leads to increased accuracy in the low-data regime and small datasets which we demonstrate for ImageNet image classification, image patch matching, and two video classification data sets.
+
+# References
+
+[1] Ossama Abdel-Hamid, Abdel-rahman Mohamed, Hui Jiang, Li Deng, Gerald Penn, and Dong Yu. Convolutional neural networks for speech recognition. IEEE/ACM
+
+Transactions on audio, speech, and language processing, 22(10):1533-1545, 2014. 1
+[2] Farzin Aghdasi and Rabab K Ward. Reduction of boundary artifacts in image restoration. IEEE Transactions on Image Processing, 5(4):611-618, 1996. 3
+[3] Relja Arandjelovic, Petr Gronat, Akihiko Torii, Tomas Pajdla, and Josef Sivic. Netvlad: Cnn architecture for weakly supervised place recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 5297-5307, 2016. 2
+[4] Andr Araujo, Wade Norris, and Jack Sim. Computing receptive fields of convolutional neural networks. Distill, 2019. https://distill.pub/2019/computing-receptive-fields. 2
+[5] Aharon Azulay and Yair Weiss. Why do deep convolutional networks generalize so poorly to small image transformations? arXiv preprint arXiv:1805.12177, 2018. 2
+[6] Artem Babenko and Victor Lempitsky. Aggregating local deep features for image retrieval. In Proceedings of the IEEE international conference on computer vision, pages 1269-1277, 2015. 2
+[7] Alberto Bietti and Julien Mairal. Group invariance, stability to deformations, and complexity of deep convolutional representations. The Journal of Machine Learning Research, 20(1):876-924, 2019. 2
+[8] Wieland Brendel and Matthias Bethge. Approximating cnns with bag-of-local-features models works surprisingly well on imagenet. In ICLR, 2019. 2, 5
+[9] Matthew Brown and David G. Lowe. Automatic panoramic image stitching using invariant features. International Journal of Computer Vision, 74(1):59-73, Aug 2007. 7
+[10] Joan Bruna and Stéphane Mallat. Invariant scattering convolution networks. IEEE transactions on pattern analysis and machine intelligence, 35(8):1872-1886, 2013. 3
+[11] Joan Bruna, Wojciech Zaremba, Arthur Szlam, and Yann Lecun. Spectral networks and locally connected networks on graphs. In International Conference on Learning Representations (ICLR2014), CBLS, April 2014, pages http://openreview, 2014. 1
+[12] 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. 1
+[13] Hsien-Tzu Cheng, Chun-Hung Chao, Jin-Dong Dong, Hao-Kai Wen, Tyng-Luh Liu, and Min Sun. Cube padding for weakly-supervised saliency prediction in 360 videos. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1420-1429, 2018. 3
+[14] Kyunghyun Cho, Bart van Merrienboer, Dzmitry Bahdanau, and Yoshua Bengio. On the properties of neural machine translation: Encoder-decoder approaches. Syntax, Semantics and Structure in Statistical Translation, page 103, 2014. 1
+[15] Keunwoo Choi, György Fazekas, Mark Sandler, and Kyunghyun Cho. Convolutional recurrent neural networks for music classification. In 2017 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 2392-2396. IEEE, 2017. 1
+
+[16] Mircea Cimpoi, Subhransu Maji, Iasonas Kokkinos, and Andrea Vedaldi. Deep filter banks for texture recognition, description, and segmentation. International Journal of Computer Vision, 118(1):65-94, 2016. 2
+[17] Taco Cohen and Max Welling. Group equivariant convolutional networks. In International conference on machine learning, pages 2990-2999, 2016. 2
+[18] Ekin D Cubuk, Barret Zoph, Dandelion Mane, Vijay Vasudevan, and Quoc V Le. Autoaugment: Learning augmentation strategies from data. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 113-123, 2019. 2
+[19] Sander Dieleman, Jeffrey De Fauw, and Koray Kavukcuoglu. Exploiting cyclic symmetry in convolutional neural networks. In ICML, pages 1889-1898. JMLR.org, 2016. 2
+[20] Cicero Dos Santos and Maira Gatti. Deep convolutional neural networks for sentiment analysis of short texts. In Proceedings of COLING 2014, the 25th International Conference on Computational Linguistics: Technical Papers, pages 69-78, 2014. 1
+[21] David K Duvenaud, Dougal Maclaurin, Jorge Iparraguirre, Rafael Bombarell, Timothy Hirzel, Alán Aspuu-Guzik, and Ryan P Adams. Convolutional networks on graphs for learning molecular fingerprints. In Advances in neural information processing systems, pages 2224-2232, 2015. 1
+[22] Logan Engstrom, Brandon Tran, Dimitris Tsipras, Ludwig Schmidt, and Aleksander Madry. Exploring the landscape of spatial robustness. In International Conference on Machine Learning, pages 1802-1811, 2019. 2
+[23] Alhussein Fawzi and Pascal Frossard. Manifest: Are classifiers really invariant? In *British Machine Vision Conference (BMVC)*, number CONF, 2015. 2
+[24] Alhussein Fawzi, Horst Samulowitz, Deepak Turaga, and Pascal Frossard. Adaptive data augmentation for image classification. In 2016 IEEE International Conference on Image Processing (ICIP), pages 3688-3692. IEEE, 2016. 2
+[25] Leon A Gatys, Alexander S Ecker, and Matthias Bethge. Image style transfer using convolutional neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2414-2423, 2016. 1
+[26] Robert Gens and Pedro M Domingos. Deep symmetry networks. In Advances in neural information processing systems, pages 2537-2545, 2014. 2, 3
+[27] 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. 2
+[28] Yunchao Gong, Liwei Wang, Ruiqi Guo, and Svetlana Lazebnik. Multi-scale orderless pooling of deep convolutional activation features. In European conference on computer vision, pages 392-407. Springer, 2014. 2
+[29] Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pages 2672–2680, 2014. 1
+
+[30] Daniel A Griffith. The boundary value problem in spatial statistical analysis. Journal of regional science, 23(3):377-387, 1983. 2
+[31] Daniel A Griffith and Carl G Amrhein. An evaluation of correction techniques for boundary effects in spatial statistical analysis: traditional methods. Geographical Analysis, 15(4):352-360, 1983. 2
+[32] Xufeng Han, Thomas Leung, Yangqing Jia, Rahul Sukthankar, and Alexander C Berg. Matchnet: Unifying feature and metric learning for patch-based matching. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3279-3286, 2015. 1, 2
+[33] 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. 1, 8
+[34] 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. 1, 2
+[35] 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, 2, 5
+[36] Xiangyu He, Zitao Mo, Qiang Chen, Anda Cheng, Peisong Wang, and Jian Cheng. Location-aware upsampling for semantic segmentation, 2019. 3
+[37] Dan Hendrycks, Kevin Zhao, Steven Basart, Jacob Steinhardt, and Dawn Song. Natural adversarial examples. arXiv preprint arXiv:1907.07174, 2019. 6
+[38] Joao F Henriques and Andrea Vedaldi. Warped convolutions: Efficient invariance to spatial transformations. In ICML, pages 1461-1469. JMLR.org, 2017. 2
+[39] Alex Hernández-García and Peter König. Data augmentation instead of explicit regularization. arXiv preprint arXiv:1806.03852, 2018. 2
+[40] Shawn Hershey, Sourish Chaudhuri, Daniel PW Ellis, Jort F Gemmeke, Aren Jansen, R Channing Moore, Manoj Plakal, Devin Platt, Rif A Saurous, Bryan Seybold, et al. Cnn architectures for large-scale audio classification. In 2017 ieee international conference on acoustics, speech and signal processing (icassp), pages 131-135. IEEE, 2017. 1
+[41] Daniel Ho, Eric Liang, Xi Chen, Ion Stoica, and Pieter Abbeel. Population based augmentation: Efficient learning of augmentation policy schedules. In International Conference on Machine Learning, pages 2731-2741, 2019. 2
+[42] Le Hou, Dimitris Samaras, Tahsin M Kurc, Yi Gao, James E Davis, and Joel H Saltz. Patch-based convolutional neural network for whole slide tissue image classification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2424-2433, 2016. 2
+[43] Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4700-4708, 2017. 1, 2, 5
+
+[44] Carlo Innamorati, Tobias Ritschel, Tim Weyrich, and Niloy J Mitra. Learning on the edge: Investigating boundary filters in cnns. International Journal of Computer Vision, pages 1-10. 3
+[45] Md Amirul Islam, Sen Jia, and Neil DB Bruce. How much position information do convolutional neural networks encode? In ICLR, 2019. 2
+[46] Jorn-Henrik Jacobsen, Jan van Gemert, Zhongyu Lou, and Arnold WM Smeulders. Structured receptive fields in cnns. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2610-2619, 2016. 3
+[47] Bernd Jahne. Digital image processing, volume 4. Springer Berlin, 2005. 2
+[48] Kevin Jarrett, Koray Kavukcuoglu, Marc'Aurelio Ranzato, and Yann LeCun. What is the best multi-stage architecture for object recognition? In 2009 IEEE 12th international conference on computer vision, pages 2146-2153. IEEE, 2009. 3
+[49] Can Kanbak, Seyed-Mohsen Moosavi-Dezfooli, and Pascal Frossard. Geometric robustness of deep networks: Analysis and improvement. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018. 2
+[50] Eric Kauderer-Abrams. Quantifying translation-invariance in convolutional neural networks. arXiv preprint arXiv:1801.01450, 2017. 2
+[51] Durk P Kingma and Prafulla Dhariwal. Glow: Generative flow with invertible 1x1 convolutions. In Advances in Neural Information Processing Systems, pages 10215-10224, 2018. 1
+[52] Alexander Kirillov, Kaiming He, Ross Girshick, Carsten Rother, and Piotr Dólar. Panoptic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9404-9413, 2019. 1
+[53] Risi Kondor and Shubhendu Trivedi. On the generalization of equivariance and convolution in neural networks to the action of compact groups. In International Conference on Machine Learning, pages 2752-2760, 2018. 2
+[54] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pages 1097-1105, 2012. 1, 2
+[55] 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. 8
+[56] Siwei Lai, Liheng Xu, Kang Liu, and Jun Zhao. Recurrent convolutional neural networks for text classification. In Twenty-ninth AAAI conference on artificial intelligence, 2015. 1
+[57] Dmitry Laptev, Nikolay Savinov, Joachim M Buhmann, and Marc Pollefeys. Ti-pooling: transformation-invariant pooling for feature learning in convolutional neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 289-297, 2016. 2
+[58] Yann LeCun, *Yoshua Bengio*, et al. Convolutional networks for images, speech, and time series. *The handbook of brain theory and neural networks*, 3361(10):1995, 1995. 1
+
+[59] 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. 2
+[60] Karel Lenc and Andrea Vedaldi. Understanding image representations by measuring their equivariance and equivalence. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2015. 2
+[61] Min Lin, Qiang Chen, and Shuicheng Yan. Network in network. In ICLR, 2013. 1, 2
+[62] Guilin Liu, Kevin J Shih, Ting-Chun Wang, Fitsum A Reda, Karan Sapra, Zhiding Yu, Andrew Tao, and Bryan Catanzaro. Partial convolution based padding. arXiv preprint arXiv:1811.11718, 2018. 3
+[63] Renting Liu and Jiaya Jia. Reducing boundary artifacts in image deconvolution. In 2008 15th IEEE International Conference on Image Processing, pages 505-508. IEEE, 2008. 3
+[64] Rosanne Liu, Joel Lehman, Piero Molino, Felipe Petroski Such, Eric Frank, Alex Sergeev, and Jason Yosinski. An intriguing failing of convolutional neural networks and the coordconv solution. In Advances in Neural Information Processing Systems, pages 9605-9616, 2018. 3
+[65] 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
+[66] Jonathan L Long, Ning Zhang, and Trevor Darrell. Do convnets learn correspondence? In Advances in Neural Information Processing Systems, pages 1601-1609, 2014. 1, 2
+[67] Zixin Luo, Tianwei Shen, Lei Zhou, Siyu Zhu, Runze Zhang, Yao Yao, Tian Fang, and Long Quan. Geodesc: Learning local descriptors by integrating geometry constraints. In Proceedings of the European Conference on Computer Vision (ECCV), 2018. 3
+[68] Diego Marcos, Benjamin Kellenberger, Sylvain Lobry, and Devis Tuia. Scale equivariance in cnns with vector fields. arXiv preprint arXiv:1807.11783, 2018. 2
+[69] Diego Marcos, Michele Volpi, Nikos Komodakis, and Devis Tuia. Rotation equivariant vector field networks. In ICCV, pages 5048-5057, 2017. 2
+[70] Anastasiia Mishchuk, Dmytro Mishkin, Filip Radenovic, and Jiri Matas. Working hard to know your neighbor's margins: Local descriptor learning loss. In Advances in Neural Information Processing Systems, pages 4826-4837, 2017.
+[71] Arun Mukundan, Giorgos Tolias, and Ondrej Chum. Explicit spatial encoding for deep local descriptors. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9394–9403, 2019. 3
+[72] 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. 3
+[73] Aaron van den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alex Graves, Nal Kalchbrenner, Andrew Senior, and Koray Kavukcuoglu. Wavenet:
+
+A generative model for raw audio. arXiv preprint arXiv:1609.03499, 2016. 1
+[74] Edouard Oyallon and Stéphane Mallat. Deep roto-translation scattering for object classification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2865–2873, 2015. 3
+[75] Edouard Oyallon, Sergey Zagoruyko, Gabriel Huang, Nikos Komodakis, Simon Lacoste-Julien, Matthew B Blaschko, and Eugene Belilovsky. Scattering networks for hybrid representation learning. IEEE transactions on pattern analysis and machine intelligence, 2018. 3
+[76] Nikolaos Passalis and Anastasios Tefas. Learning bag-of-features pooling for deep convolutional neural networks. In Proceedings of the IEEE international conference on computer vision, pages 5755-5763, 2017. 2
+[77] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 779-788, 2016. 1
+[78] Stanley J Reeves. Fast image restoration without boundary artifacts. IEEE Transactions on image processing, 14(10):1448-1453, 2005. 3
+[79] 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
+[80] Alexander Richard and Juergen Gall. A bag-of-words equivalent recurrent neural network for action recognition. Computer Vision and Image Understanding, 156:79–91, 2017. 2
+[81] 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. 1
+[82] Justin Salamon and Juan Pablo Bello. Deep convolutional neural networks and data augmentation for environmental sound classification. IEEE Signal Processing Letters, 24(3):279-283, 2017. 1
+[83] Andrew M Saxe, Pang Wei Koh, Zhenghao Chen, Maneeesh Bhand, Bipin Suresh, and Andrew Y Ng. On random weights and unsupervised feature learning. In ICML, volume 2, page 6, 2011. 3
+[84] Michael Schlichtkrull, Thomas N Kipf, Peter Bloem, Rianne Van Den Berg, Ivan Titov, and Max Welling. Modeling relational data with graph convolutional networks. In European Semantic Web Conference, pages 593-607. Springer, 2018. 1
+[85] Stefan Schubert, Peer Neubert, Johannes Pöschmann, and Peter Pretzel. Circular convolutional neural networks for panoramic images and laser data. In 2019 IEEE Intelligent Vehicles Symposium (IV), pages 653-660. IEEE, 2019. 3
+[86] Atharva Sharma, Xiuwen Liu, Xiaojun Yang, and Di Shi. A patch-based convolutional neural network for remote sensing image classification. Neural Networks, 95:19-28, 2017. 2
+[87] Tao Shen, Yuyu Huang, and Zhijun Tong. Facebagnet: Bag-of-local-features model for multi-modal face anti-spoofing.
+
+In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR) Workshops, June 2019. 2
+[88] 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. 1
+[89] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. 1, 2
+[90] Kihyuk Sohn and Honglak Lee. Learning invariant representations with local transformations. In Proceedings of the 29th International Coherence on International Conference on Machine Learning, pages 1339-1346. Omnipress, 2012. 2
+[91] Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. UCF101: A dataset of 101 human actions classes from videos in the wild. CoRR, abs/1212.0402, 2012. 8
+[92] Ivan Sosnovik, Michal Szmaja, and Arnold Smeulders. Scale-equivariant steerable networks. arXiv preprint arXiv:1910.11093, 2019. 2
+[93] J Springenberg, Alexey Dosovitskiy, Thomas Brox, and M Riedmiller. Striving for simplicity: The all convolutional net. In ICLR (workshop track), 2015. 1, 2
+[94] Gilbert Strang and Truong Nguyen. Wavelets and filter banks. SIAM, 1996. 2
+[95] Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1-9, 2015. 1, 2
+[96] Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. Deep image prior. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9446-9454, 2018. 3
+[97] Gregor Urban, Krzysztof J Geras, Samira Ebrahimi Kahou, Ozlem Aslan, Shengjie Wang, Abdelrahman Mohamed, Matthai Philipse, Matt Richardson, and Rich Caruana. Do deep convolutional nets really need to be deep and convolutional? In ICLR, 2016. 3
+[98] Jan C Van Gemert. Exploiting photographic style for category-level image classification by generalizing the spatial pyramid. In Proceedings of the 1st ACM International Conference on Multimedia Retrieval, pages 1-8, 2011. 8
+[99] Yude Wang, Jie Zhang, Meina Kan, Shiguang Shan, and Xilin Chen. Self-supervised scale equivariant network for weakly supervised semantic segmentation. arXiv preprint arXiv:1909.03714, 2019. 2
+[100] Zhenyi Wang and Olga Veksler. Location augmentation for cnn. arXiv preprint arXiv:1807.07044, 2018. 3
+[101] Nicholas Watters, Loic Matthew, Christopher P Burgess, and Alexander Lerchner. Spatial broadcast decoder: A simple architecture for learning disentangled representations in vaes. In ICLR workshop, 2019. 3
+[102] Maurice Weiler, Fred A Hamprecht, and Martin Storath. Learning steerable filters for rotation equivariant cnns. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 849-858, 2018. 2
+
+[103] Daniel E Worrall, Stephan J Garbin, Daniyar Turmukhambetov, and Gabriel J Brostow. Harmonic networks: Deep translation and rotation equivariance. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5028-5037, 2017. 2, 3
+[104] Daniel E Worrall and Max Welling. Deep scale-spaces: Equivariance over scale. arXiv preprint arXiv:1905.11697, 2019. 2
+[105] Saining Xie, Ross Girshick, Piotr Dólar, 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. 1, 2
+[106] Yichong Xu, Tianjun Xiao, Jiaxing Zhang, Kuiyuan Yang, and Zheng Zhang. Scale-invariant convolutional neural networks. arXiv preprint arXiv:1411.6369, 2014. 2
+[107] Sergey Zagoruyko and Nikos Komodakis. Learning to compare image patches via convolutional neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4353-4361, 2015. 1, 2
+[108] Jure Zbontar, Yann LeCun, et al. Stereo matching by training a convolutional neural network to compare image patches. Journal of Machine Learning Research, 17(1-32):2, 2016. 2
+[109] Richard Zhang. Making convolutional networks shift-invariant again. In International Conference on Machine Learning, pages 7324-7334, 2019. 2, 6
+[110] Yanzhao Zhou, Qixiang Ye, Qiang Qiu, and Jianbin Jiao. Oriented response networks. In CVPR, pages 519-528, 2017. 2
\ No newline at end of file
diff --git a/ontranslationinvarianceincnnsconvolutionallayerscanexploitabsolutespatiallocation/images.zip b/ontranslationinvarianceincnnsconvolutionallayerscanexploitabsolutespatiallocation/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..cbb9f5b0455b41d078d75b2ffc4d839e4def53af
--- /dev/null
+++ b/ontranslationinvarianceincnnsconvolutionallayerscanexploitabsolutespatiallocation/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e348745a83579d4501e23241d900dc61831d0d9418f418fc85e6e2b0a6d39a9e
+size 505784
diff --git a/ontranslationinvarianceincnnsconvolutionallayerscanexploitabsolutespatiallocation/layout.json b/ontranslationinvarianceincnnsconvolutionallayerscanexploitabsolutespatiallocation/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..118519341a45281faf72e638a283740ed74fdce4
--- /dev/null
+++ b/ontranslationinvarianceincnnsconvolutionallayerscanexploitabsolutespatiallocation/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4c5f7981dee66b43745651a916eeb2274dd101a97821848516b224db31f6fec3
+size 505056
diff --git a/onvocabularyrelianceinscenetextrecognition/431a3be8-5b8f-425c-8725-8144b8667d68_content_list.json b/onvocabularyrelianceinscenetextrecognition/431a3be8-5b8f-425c-8725-8144b8667d68_content_list.json
new file mode 100644
index 0000000000000000000000000000000000000000..516bff67005b0afdea47b8722182436cd7adf655
--- /dev/null
+++ b/onvocabularyrelianceinscenetextrecognition/431a3be8-5b8f-425c-8725-8144b8667d68_content_list.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:be0e8d842e1b8f27bdbaf15814f6c50e54e3b6351e8aa01224f332d026169048
+size 84263
diff --git a/onvocabularyrelianceinscenetextrecognition/431a3be8-5b8f-425c-8725-8144b8667d68_model.json b/onvocabularyrelianceinscenetextrecognition/431a3be8-5b8f-425c-8725-8144b8667d68_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..08428f20c83c80eac70b24a6543816d259281019
--- /dev/null
+++ b/onvocabularyrelianceinscenetextrecognition/431a3be8-5b8f-425c-8725-8144b8667d68_model.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:52e137d603daedac39d60dcd16c9038d245f894bfd468f7ecf45d2b04b85c546
+size 106257
diff --git a/onvocabularyrelianceinscenetextrecognition/431a3be8-5b8f-425c-8725-8144b8667d68_origin.pdf b/onvocabularyrelianceinscenetextrecognition/431a3be8-5b8f-425c-8725-8144b8667d68_origin.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..296f5b360cf20e33fde44e627a5ba7d420b3e914
--- /dev/null
+++ b/onvocabularyrelianceinscenetextrecognition/431a3be8-5b8f-425c-8725-8144b8667d68_origin.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ed089929d4f7f3e90efa58df6560b962494104f1ffc4b142afdb50ae75f3659a
+size 501314
diff --git a/onvocabularyrelianceinscenetextrecognition/full.md b/onvocabularyrelianceinscenetextrecognition/full.md
new file mode 100644
index 0000000000000000000000000000000000000000..61ad0e8bb50567b9e7ac9d3521de6772b955d7c1
--- /dev/null
+++ b/onvocabularyrelianceinscenetextrecognition/full.md
@@ -0,0 +1,369 @@
+# On Vocabulary Reliance in Scene Text Recognition
+
+Zhaoyi Wan $^{1*}$ , Jielei Zhang $^{1*}$ , Liang Zhang $^{2}$ , Jiebo Luo $^{3,\dagger}$ , Cong Yao $^{1\dagger}$
+
+1Megvii, 2China University of Mining and Technology, 3University of Rochester
+
+i@wanzy.me, {yctmzjl,yaocong2010}@gmail.com , zhangliang04@hotmail.com, jluo@cs.ROchester.edu
+
+# Abstract
+
+The pursuit of high performance on public benchmarks has been the driving force for research in scene text recognition, and notable progress has been achieved. However, a close investigation reveals a startling fact that the state-of-the-art methods perform well on images with words within vocabulary but generalize poorly to images with words outside vocabulary. We call this phenomenon "vocabulary reliance". In this paper, we establish an analytical framework to conduct an in-depth study on the problem of vocabulary reliance in scene text recognition. Key findings include: (1) Vocabulary reliance is ubiquitous, i.e., all existing algorithms more or less exhibit such characteristic; (2) Attention-based decoders prove weak in generalizing to words outside vocabulary and segmentation-based decoders perform well in utilizing visual features; (3) Context modeling is highly coupled with the prediction layers. These findings provide new insights and can benefit future research in scene text recognition. Furthermore, we propose a simple yet effective mutual learning strategy to allow models of two families (attention-based and segmentation-based) to learn collaboratively. This remedy alleviates the problem of vocabulary reliance and improves the overall scene text recognition performance.
+
+# 1. Introduction
+
+As a pivotal task in many visual recognition and comprehension systems [42, 25, 17, 35, 22, 21], scene text recognition has been an active research field in computer vision for decades [24, 45, 43, 44, 32, 39, 36]. Recently, the pursuit of high performance on benchmarks has drawn much attention from the community. Driven by deep learning [50, 31, 2, 33, 12] and large volume of synthetic data [13, 29, 46], the recognition accuracy on standard benchmarks has escalated rapidly. For instance, the accuracy on IIIT-5k [27] without lexicon has increased from $78.2\%$ [31] to $96.0\%$ [12] in a very short period.
+
+
+Figure 1: The recurrent memory mechanism in RNN-attention based methods [33] is actually a double-edged sword. The positive aspect is that for text images with words in the vocabulary (Left), even though image qualities are degraded (blur or partial occlusion), the content can be still correctly recognized. The negative aspect, which is previously neglected, lies in that for text images with words outside the vocabulary (Right), mistakes (marked in red) might easily occur.
+
+
+
+However, an important issue has been overlooked for a long time: Even though achieving high accuracy on various benchmarks, state-of-the-art algorithms actually demonstrate obviously higher performance on images with words in the vocabulary1 than on those with words outside it. The gap is not caused by the image quality. As shown in Fig. 1, a top-performing text recognizer [33] can correctly read the content even for images with poor quality but might make mistakes for images with better quality. The secret lies in the vocabulary: state-of-the-art methods seem inclined to memorize words that have been seen in the training phase. We call this phenomenon "vocabulary reliance".
+
+To further verify whether vocabulary reliance is common in scene text recognition, we reproduce a number of representative methods for scene text recognition, including CRNN [31], FAN [2], CA-FCN [23] and ASTER [33]. The same backbone network (ResNet-50 [8]) and training data (SynText [7]) are used for these methods, in order to rule out interference factors. As can be observed from Tab. 1, the performance gaps between test images with words in and outside the vocabulary are significant for all evaluated methods. It reveals that vocabulary reliance is ubiquitous.
+
+In this paper, we systematically investigate the problem
+
+Table 1: Accuracy gap between test images with words in and outside vocabulary on IIIT-5k. "InVoc." and "OutVoc." stand for in and outside the vocabulary, respectively.
+
+| Methods | All | InVoc. | OutVoc. | Gap |
| CRNN [31] | 86.8 | 91.1 | 68.7 | 22.5 |
| FAN [2] | 89.9 | 93.1 | 75.3 | 17.8 |
| CA-FCN [23] | 89.3 | 91.6 | 76.3 | 15.3 |
| ASTER [33] | 89.2 | 92.9 | 74.6 | 18.4 |
+
+of vocabulary reliance in scene text recognition. An evaluation framework is established, in which training datasets with controlled vocabularies and targeted metrics are devised to assess and compare different module combinations.
+
+Using training data with controlled vocabularies, we are able to inspect the impact of vocabulary on algorithm performance and abilities of different algorithms in learning language prior. Meanwhile, targeted metrics allows for the evaluation of the strengths and weaknesses of different module combinations in a quantitative and precise manner. Through experiments, we obtain a series of valuable observations and findings and accordingly give a few guidelines for choosing module combinations and suggestions for developing scene text recognition algorithms in the future.
+
+Furthermore, in order to alleviate vocabulary reliance in existing methods, we propose a novel mutual learning strategy, which allows models with different PRED layers, i.e., attention-based decoder and segmentation-based decoder, to complement each other during training. Experimental results demonstrate its effectiveness in improving the accuracy and generalization ability of both attention decoders and segmentation-based methods.
+
+The contributions of this work are as follows:
+
+- We raise the problem of vocabulary reliance and propose an analytical framework for investigating it.
+- We discovered through experiments the advantages and limitations of current PRED layers. Attention-based decoders generalize poorly from the learned vocabulary but perform well when trained on data with a random corpus. Segmentation-based methods can accurately extract visual features while the CTC-family generally has weaker visual observation ability.
+- We found that the effect of CNTX modules, which perform context modeling, is highly coupled with PRED layers. We thus provide guidelines for choosing the CNTX modules according to PRED layers.
+- Moreover, we present a simple yet effective mutual learning approach to allow models of different families to optimize collaboratively, which can alleviate the problem of vocabulary reliance.
+
+# 2. Proposed Analytical Framework
+
+In this section, we describe our analytical framework, including data, modules, and metrics, in detail.
+
+# 2.1. Test Data
+
+To conduct experiments, we adopt various evaluation benchmarks, among which some are commonly used in prior works. We first briefly introduce public test datasets with real-word images, whose details are referred to [1].
+
+ICDAR2013 (IC13) [15] is a dataset of ICDAR 2013 Robust Reading Competition for camera-captured scene text. ICDAR2015 (IC15) [14] comes from scene text images collected by Google glasses, where cropped text images are blurred, oriented and with low-resolution. Street View Text (SVT) [37] is an outdoor street images collection from Google Street View, including noisy, blurry or low-resolution images. SVT Perspective (SVTP) [28] focuses on curved text images. The dataset contains 645 evaluation images, which are severely distorted by non-frontal perspectives. CUTE80 (CT) [30] consists of 80 natural scene images, from which 288 cropped word images are generated for scene text recognition.
+
+Basically, as shown in Fig. 1, the recognition of text images with difficulty in visual features, such as blur, stain, and irregular fonts, relies more on speculation according to the vocabulary. Thus, we group 5 datasets mentioned above into a set $\Omega$ . The ground truths of $\Omega$ are collected as our corpus for synthetic training data. Therefore, $\Omega$ and its complement $\Omega^c$ stand for the set of text images in and outside vocabulary, respectively.
+
+Another evaluation dataset, IIIT-5k (IIIT) [27], is excluded from corpus collecting, which generally contains regular text and is of clear appearance. We choose IIIT as the stand-alone set to conduct the $\Omega^c$ due to its relatively large amount of images and visual clearance. By the collected vocabulary, 1354 images in vocabulary are divided into $\Omega$ and the left 1646 images make $\Omega^c$ . They are named as IIIT-I and IIIT-O, respectively.
+
+The size of the datasets and the number of their vocabularies are shown in Tab. 2. Besides, there are 3172 distinct words in the vocabulary of $\Omega$ .
+
+# 2.2. Training Data
+
+Recent works for scene text recognition use synthetic data [7, 13] for training. SynthText (ST) is a dataset generated by a synthetic engine proposed in [7], whose background images are extracted from Google Image Search. It contains 80k images, from which researchers cropped about 7 million text instances for training.
+
+As shown in Tab. 2, ST is generated from a large corpus from Newgroup20 [16] dataset, which has tens of thousands of words in the vocabulary. The large vocabulary of ST obfuscates the impact and cause of vocabulary reliance on such training data. Therefore we generate new training data for study by constraining the vocabulary.
+
+Specifically, as stated in Sec. 2.1, our corpus is collected from test datasets. Using the synthetic engine of ST, three
+
+Table 2: The number of words and images in training and evaluation data. "Voc." is the vocabulary of datasets. "Test" is the vocabulary collected from test images except IIIT.
+
+| Dataset | Voc. | Images | Words |
| InVoc. | OutVoc. | InVoc. | OutVoc. |
| ST | ST | 7266715 | - | 76222 | - |
| IC13 | ST | 857 | 158 | 549 | 142 |
| IC15 | ST | 1369 | 442 | 669 | 348 |
| SVT | ST | 530 | 117 | 333 | 94 |
| SVTP | ST | 536 | 109 | 300 | 80 |
| CT | ST | 218 | 70 | 171 | 63 |
| IIIT | ST | 2429 | 571 | 1277 | 495 |
| IIIT | Test | 1354 | 1646 | 502 | 1270 |
+
+datasets with a similar appearance and diverse corpus are conducted for thorough and controlled comparison. Examples are illustrated in Fig. 2.
+
+LexiconSynth (LS) From collected ground truth words, we build the corpus for LS by uniformly sampling from instances. As the vocabulary of $\Omega$ is covered by LS, models trained with LS data acquire the facilitation of vocabulary learning when evaluated on $\Omega$ . However, this purified corpus also exacerbates the over-fitting to words in vocabulary. In observation of the performance gap, properties about vocabulary learning of models can be dogged out.
+
+RandomSynth (RS) In contrast to LS, the corpus of RS data is generated from characters in a random permutation. The lengths of the pseudowords are of the same distribution with those in LS, but the distribution of character classes is uniform. That is, the accuracy of models trained on RS is achieved without the assistance of vocabulary prior.
+
+MixedSynth (MS) An intuitive solution for preventing algorithms from vocabulary reliance is to mix RS data into LS data. In our experiments, MS data is the union of LS and RS. Instances are sampled from RS and LS with ratio $r:(1 - r), r \in [0,1]$ . The training steps are fixed in all experiments. In comparison with datasets with a large vocabulary, the mixture of RS and LS is more practicable in real-world situations where the vocabulary is seldom completely given in advance.
+
+Synthesis Details As the annotation of evaluation datasets serves in different manners on how to treat the case and punctuation of words, we collect the corpus as case-insensitive words without punctuation. During the rendering of LS data, each gathered word generates three instances with different variants: Uppercase, lowercase, and first-letter-capitalized case. Besides, words are inserted with a randomly chosen punctuation by a chance of $10\%$ .
+
+For the corpus of RS data, the proportion of letters, digits, and punctuation is about 6:3:1. Each word is rendered in the same three cases as LS data. Following the scale of ST, about 7 million cropped images are generated for RS and LS data respectively. When without special statements, the ratio $r$ of MS data is set as 0.5 empirically.
+
+
+Figure 2: Samples of generated training data. From top to bottom: all uppercase, all lowercase, and the first-letter-capitalized case. The left 2 columns are images picked up from LS, while the right 2 columns are ones from RS.
+
+# 2.3. Module Combinations
+
+According to [1], a typical scene text recognition method can be divided into four stages, transformation (TRAN), feature extraction (FEAT), context modeling (CNTX), and prediction (PRED). The CNTX stage is similar to sequence modeling (Seq.) in [1]. We extend to modeling context as we also take segmentation-based methods into consideration, for the sake of discussing the problem of vocabulary reliance in a broader perspective. The pipeline of scene text recognition is shown in Fig. 3.
+
+In our experiments and analyses, we focus on CNTX and PRED stages, as these two stages are highly relevant to vocabulary reliance. TRAN and FEAT stages are fixed to control variables: No transformation layer is adopted and ResNet50 backbone is used in all combinations. Below, we will introduce three PRED layers and three choices for the CNTX stage.
+
+Prediction Layers CTC [6] and attention-based decoders [3, 40] are two dominating approaches in the choices of prediction layers. As illustrated in Fig. 3d, CTC aligns the frame-wise predictions into the target string. Frames with the same characters without "BLANK", which is introduced to stand for no characters, are removed in final outputs. CTC is widely used in many real-world applications [20] and academic researches [4, 9], due to its superior inference speed [1].
+
+Attention-based (Atten. for short) decoders [2, 33] are state-of-the-art methods in the field of scene text recognition. A glimpse vector is generalized from the feature sequence, upon which an RNN is adopted to produce attention vectors over the feature sequence and produce character classification each in order (see Fig. 3c).
+
+Recently, MaskTextSpotter [26] introduces instance segmentation to localize and classify each character separately and inspires following works [5, 23, 41]. Although segmentation-based (Seg. for short) methods directly extract characters by finding connected components in the segmentation map, the large receptive field of deep convolutional networks might bring vocabulary reliance.
+
+Context Modules Bi-directional LSTM (BLSTM) [11] is employed for context modeling on top of feature maps ex
+
+
+
+
+(b) CTC-based decoder.
+
+
+(a) The frameworks of common scene text recognition methods.
+
+
+
+
+(e) Bi-directional LSTM (BLSTM).
+
+
+(c) Attention-based decoder.
+(d) Segmentation-based decoder.
+(f) Pyramid pooling module (PPM).
+Figure 3: Pipeline and typical modules applied in scene text recognition. "Skip" indicates stages which are not requisite thus can be omitted in specific recognition methods.
+
+tracted by CNNs in recent works [33, 19].
+
+As illustrated in Fig. 3e, the BLSTM module takes feature sequences as input, which are transformed from feature maps by pooling or convolution with strides. It is a common practice in many scene text recognition methods [34, 40] for context modeling, as the BLSTM scans and maps features in the bi-directional order.
+
+Pyramid pooling module (PPM) [49] shown in Fig. 3f is another choice for context modeling, which is proved effective on segmentation-based methods [18]. It utilizes adaptive average pooling to pool feature maps into different square resolutions (1, 3, 4, 6 in our experiments). Pooled features are then resized to the input resolution by bi-linear interpolation and concatenated with original features to gain global context information in different scales. Since segmentation-based methods are incompatible with BLSTM, PPM is a practical module for context modeling. Our experiments also validate its effectiveness in enhancing the vocabulary learning of models.
+
+Besides, the explicit contextual modeling is not requisite for robust text recognition, as deep convolutional networks usually have large receptive fields [38, 47]. Though, in our experiments, context modeling modules do bring diversity in vocabulary learning and reliance.
+
+The raw results are shown in Tab. 3, in which module combinations are named with circled numbers.
+
+# 2.4. Metrics
+
+Using our re-designed training data, we can evaluate the performance of algorithms on several training data. Several metrics are proposed for benchmarking the properties of models in aspects.
+
+Firstly, we introduce a conventional metric for performance evaluation, General Accuracy (G.A). The current practice for evaluating algorithms of scene text recognition is to evaluate models on public benchmarks with real-world images. We define the recognition accuracy on all test images of the mentioned evaluation datasets as G.A, corresponding to the common evaluation in previous works.
+
+In addition to the general metric, we further propose three specific metrics and their harmonic mean to fully reflect particular properties of different methods. For clarity, let's define two functions. $Acc(X_{train}, X_{test})$ is the accuracy of models trained on dataset $X_{train}$ and tested on dataset $X_{test}$ . $Gap(\cdot)$ is defined as the performance gap on IIIT-I and IIIT-O with the same training data $X_{train}$ :
+
+$$
+\begin{array}{l} G a p \left(X _ {t r a i n}\right) = A c c \left(X _ {t r a i n}, I I I T - I\right) \tag {1} \\ - \operatorname {A c c} \left(X _ {\text {t r a i n}}, I I I T - O\right). \\ \end{array}
+$$
+
+Observation Ability (O.A) Accurate visual feature extraction and recognition is the fundamental ability of scene text recognition methods. We define O.A as how accurately an algorithm recognizes words without any vocabulary given
+
+Table 3: The raw accuracy of models, which are numbered with circled numbers. "Gap" is the accuracy gap between IIIT-I and IIIT-O. "NGap" is normalized by recognition accuracy on IIIT.
+
+| PRED | CNTX | No. | Data. | ΣΩ | ΣΩc | Gap/NGap |
| AVG | IC13 | IC15 | SVT | SVTP | CUTE | IIIT-I | IIIT-O |
| Atten. | None | ① | RS | 68.5 | 82.2 | 55.1 | 71.7 | 57.0 | 54.2 | 83.2 | 73.3 | 9.8/12.6 | |
| MS | 81.8 | 89.9 | 72.2 | 86.4 | 75.2 | 65.6 | 93.0 | 80.1 | 12.9/15.0 | |
| LS | 85.7 | 92.7 | 77.4 | 90.5 | 82.3 | 71.5 | 93.7 | 61.0 | 32.7/43.2 | |
| PPM | ② | RS | 70.3 | 84.6 | 57.1 | 74.1 | 58.2 | 55.2 | 84.7 | 77.5 | 7.3/9.0 | |
| MS | 81.6 | 88.6 | 71.8 | 85.0 | 75.6 | 71.9 | 92.8 | 80.7 | 12.2/14.2 | |
| LS | 85.5 | 92.1 | 77.0 | 89.4 | 81.8 | 74.0 | 94.2 | 69.5 | 24.7/30.7 | |
| BLSTM | ③ | RS | 68.6 | 82.4 | 55.4 | 70.9 | 57.0 | 53.5 | 82.9 | 73.8 | 9.4/12.0 | |
| MS | 82.7 | 89.3 | 74.5 | 86.6 | 77.8 | 67.0 | 92.7 | 81.0 | 11.7/13.6 | |
| LS | 87.0 | 92.7 | 79.8 | 92.0 | 84.2 | 73.3 | 94.2 | 63.9 | 30.3/39.1 | |
| CTC | None | ④ | RS | 64.1 | 80.4 | 47.8 | 66.1 | 49.1 | 55.2 | 81.8 | 71.5 | 10.3/13.5 | |
| MS | 69.8 | 81.0 | 56.5 | 72.7 | 57.6 | 57.6 | 86.7 | 74.3 | 12.4/15.5 | |
| LS | 77.8 | 87.0 | 65.8 | 81.9 | 68.8 | 66.0 | 91.6 | 73.6 | 18.0/22.0 | |
| PPM | ⑤ | RS | 62.5 | 76.5 | 48.0 | 62.8 | 47.2 | 49.0 | 81.6 | 68.0 | 13.6/18.5 | |
| MS | 75.9 | 86.2 | 64.2 | 79.2 | 64.5 | 62.1 | 90.6 | 77.0 | 13.6/16.3 | |
| LS | 84.8 | 90.9 | 76.0 | 89.8 | 79.2 | 76.0 | 94.2 | 70.1 | 24.1/29.8 | |
| BLSTM | ⑥ | RS | 66.1 | 81.2 | 52.3 | 67.9 | 51.9 | 51.4 | 82.4 | 72.6 | 9.8/12.7 | |
| MS | 74.9 | 85.9 | 62.0 | 77.5 | 64.5 | 62.5 | 90.0 | 78.3 | 11.8/14.1 | |
| LS | 80.0 | 88.1 | 69.3 | 82.7 | 71.6 | 68.8 | 93.1 | 73.5 | 19.6/23.8 | |
| Seg. | None | ⑦ | RS | 68.9 | 80.4 | 56.1 | 71.6 | 57.9 | 55.2 | 84.2 | 73.3 | 10.9/13.9 | |
| MS | 76.9 | 85.4 | 65.7 | 81.5 | 66.4 | 64.2 | 91.2 | 80.6 | 10.6/12.4 | |
| LS | 79.7 | 88.4 | 68.7 | 85.7 | 72.1 | 62.2 | 92.3 | 78.8 | 13.5/15.9 | |
| PPM | ⑧ | RS | 69.3 | 82.4 | 56.5 | 70.5 | 56.8 | 59.0 | 84.5 | 74.4 | 10.1/12.8 | |
| MS | 77.6 | 87.3 | 66.8 | 81.5 | 67.1 | 64.2 | 90.9 | 79.9 | 11.0/13.0 | |
| LS | 81.6 | 89.3 | 72.3 | 85.8 | 75.2 | 64.6 | 92.9 | 76.8 | 16.1/19.2 | |
| Atten.+Mut. | None | ⑨ | RS | 70.4 | 82.8 | 57.0 | 72.7 | 58.8 | 56.9 | 86.3 | 75.8 | 10.5/13.1 | |
| MS | 82.0 | 89.9 | 72.3 | 86.4 | 75.2 | 68.1 | 93.1 | 80.7 | 12.4/14.3 | |
| LS | 85.8 | 91.9 | 77.2 | 90.8 | 83.1 | 72.7 | 94.5 | 77.6 | 16.9/19.9 | |
| Seg.+Mut. | None | ⑩ | RS | 70.0 | 82.4 | 56.1 | 70.8 | 57.4 | 59.0 | 84.3 | 74.7 | 10.0/12.1 | |
| MS | 78.3 | 87.8 | 66.7 | 82.1 | 67.7 | 68.0 | 91.2 | 79.3 | 12.4/14.4 | |
| LS | 82.3 | 89.4 | 71.3 | 86.4 | 78.6 | 72.5 | 93.6 | 80.0 | 13.6/15.7 | |
+
+Table 4: The computation of proposed metrics. Therein, $Acc(\cdot)$ and $Gap(\cdot)$ are defined in Sec. 2.4.
+
+| Metrics. | Computation |
| GA | Acc(Xtrain, Ω ∪ Ωc) |
| OA | Acc(RS, Ω ∪ Ωc) |
| VA | Acc(LS, Ω) |
| VG | 1 - (Gap(LS) - Gap(RS)) |
| HMC | 3(1/σA + 1/σA + 1/σG)^{-1} |
+
+in training data. In the context of our framework, $\mathcal{O}\mathcal{A}$ is measured by evaluating models trained on RS data with test images from all benchmarks (7406 images in total). As the recognition accuracy purely comes from the observation of visual features without learning any vocabulary, it indicates the ability of models to utilize visual observation.
+
+Vocabulary Learning Ability (V&A) As stated in Sec. 1, it is likely for algorithms to employ learned vocabulary to refine or constrain recognition results of text images. Similar to O&A, V&A is suggested for evaluating the recognition accu
+
+racy on limited vocabularies. In our experiments, measuring of $\mathcal{V}\mathcal{A}$ is to train models with LS data and evaluate the recognition accuracy on all images in $\Omega$ . $\mathcal{V}\mathcal{A}$ is meaningful for choosing models in text recognition tasks where lexicon is provided in advance.
+
+# Vocabulary Generalization (V9)
+
+Human beings can easily generalize things from what they learnt, which inspires us to evaluate the vocabulary generalization $(\mathcal{V}\mathcal{G})$ of an algorithm by measuring the performance of models trained with LS data on words out of vocabulary. In fact, we witness the vocabulary generalization of current recognition methods in our experiments. To fairly evaluate $\mathcal{V}\mathcal{G}$ , the influence of image visual feature on the dataset, which brings an intrinsic gap between two image sets, is supposed to be eliminated. Therefore $\mathcal{V}\mathcal{G}$ is indicated by
+
+$$
+\mathcal {V} \mathcal {G} = 1 - (G a p (L S) - G a p (R S)) \tag {2}
+$$
+
+where the score is subtracted from 1 in order to unify the monotonicity.
+
+Table 5: Metrics of models. The circled number corresponds to different combination of different module. No. is referred to Tab. 3.
+
+| No. | PRED | GA | VA | VG | OA | HCM |
| ① | Atten. | 81.0 | 85.7 | 77.1 | 69.6 | 76.9 |
| ② | Atten. | 81.3 | 85.5 | 82.6 | 71.9 | 79.5 |
| ③ | Atten. | 83.1 | 87.0 | 79.1 | 69.8 | 78.0 |
| ④ | CTC | 75.8 | 77.8 | 92.4 | 65.8 | 77.1 |
| ⑤ | CTC | 80.1 | 84.8 | 89.5 | 63.5 | 77.5 |
| ⑥ | CTC | 78.4 | 79.9 | 90.2 | 67.6 | 78.1 |
| ⑦ | Seg. | 80.8 | 79.7 | 97.3 | 69.9 | 80.8 |
| ⑧ | Seg. | 81.3 | 81.6 | 94.0 | 70.5 | 80.9 |
+
+Harmonic Mean (HM) For a overall metric, the harmonic mean of $\mathcal{O}\mathcal{A},\mathcal{V}\mathcal{A}$ , and $\mathcal{V}\mathcal{G}$ is adopted as the summary score:
+
+$$
+\mathcal {H M} = 3 \left(\frac {1}{\mathcal {O A}} + \frac {1}{\mathcal {V A}} + \frac {1}{\mathcal {V G}}\right) ^ {- 1}. \tag {3}
+$$
+
+$\mathcal{H}\mathcal{M}$ can be taken as a standard for general comparison of different models.
+
+Besides, evaluation on random string can be a metric, however, there is no standard benchmark that contains pure random labels with real-world complexity. Thus, it will not be discussed in this paper.
+
+# 3. Comparisons and Analyses
+
+Using our proposed framework in Sec. 2, we provide comparisons and analyses on various module combinations. Metrics of models are shown in Fig 5. Based on the specific evaluation, we assess and analyze module combinations in different aspects.
+
+# 3.1. Effect of Training Data
+
+Fundamentally, we should first validate the effectiveness of the proposed dataset and explore the relevance of vocabulary reliance on training data. Experiments are conducted by gradually adjusting the ratio $r$ in MS data from 0 to 1. Three models, ①, ④ and ⑦ in Tab. 3, are adopted for comparison. Besides the recognition accuracy on IIIT, we observe the probability of predicted words falling into the vocabulary, as shown in Fig. 4.
+
+With RS data mixed into the LS data, recognition accuracy on IIIT is improved as models trained with the mixed data are less prone to be misled by vocabulary reliance. Especially for model ①, the recognition accuracy on IIIT increases from $77.8\%$ to $84.4\%$ , benefiting from the mixed RS data with a ratio of $25\%$ .
+
+The improvement in accuracy ceases when $r$ reaches around 0.5. On one hand, the reduction of the probability to produce word prediction in vocabulary proves it effective to countervail vocabulary reliance with RS data. On the other hand, it requires a sufficient ratio of LS data to learn vocabulary from training data.
+
+
+Figure 4: Probability of model $①$ , $④$ and $⑦$ on making prediction inside vocabulary. "Ratio" is the ratio of RS in MS data.
+
+# 3.2. Comparison of Prediction Layers
+
+
+(a)
+
+
+(b)
+Figure 5: The accuracy gap between IIIT-I and IIIT-O. (a) Performance gap on IIIT-I and IIIT-O of module combinations. (b) The gap changes with adjusted ratio of RS data.
+
+From Fig. 5a, we perceive the consistent performance gap between models trained with RS, MS, and LS data, despite PRED layers nor CNTX modules. It shows that all the combinations suffer from the problem of vocabulary reliance, but the severity differs.
+
+Moreover, we illustrate the performance gap on IIIT of model ①, ④ and ⑦ trained with different training data. The models are built without CNTX modules, using the Atten., CTC, and Seg. PRED layers, respectively. The attention-based decoder starts with the highest gap on the point where $r = 0$ (LS data), as shown in Fig. 5b. With more RS data mixed into the training set, the gap of attention-based decoder decreases. The trend verifies the advantage of attention-based decoders on vocabulary learning and inferiority on vocabulary reliance.
+
+In addition to vocabulary reliance, a thorough comparison of our proposed metrics of the PRED layers is illustrated in Fig. 6a. The performance of CTC is generally covered by the other two prediction layers, on metrics including both accuracy and generalization. Attention-based and segmentation-based decoders gain advantages in $\mathcal{V}\mathcal{A}$ and $\mathcal{V}\mathcal{G}$ respectively. They also perform similarly well in $\mathcal{O}\mathcal{A}$ , indicating the ability to accurate recognition according to visual features only.
+
+
+(a)
+
+
+(b)
+
+
+Figure 6: Performance of PRED layers on our metrics. All models are built without CNTX module. (a) The comparison of PRED layers. (b) $\mathcal{OA}$ and $\mathcal{VA}$ improvement of mutual learning.
+Figure 7: $\mathcal{V}\mathcal{A}$ and corresponding $\mathcal{V}\mathcal{G}$ of module combinations.
+
+# 3.3. Comparison of Context Modules
+
+Basically, the adoption of context modules improves the vocabulary learning of models, as validated by the $\mathcal{V}\mathcal{A}$ of module combinations. For example, PPM, which is not widely used in prior scene text recognition methods, brings boost on $\mathcal{V}\mathcal{A}$ in combination with PRED layers: $3.9\%$ for Seg. and $10.5\%$ for CTC. On the other hand, as shown in Fig. 7, the strength in $\mathcal{V}\mathcal{A}$ usually carries a decrease in $\mathcal{V}\mathcal{G}$ .
+
+Similar to PRED layers, the evaluation results of CNTX modules are illustrated in Fig. 8a and Fig. 8b. We find that the effect of CNTX modules in detail is highly coupled with prediction layers.
+
+As stated in Sec. 3.2, attention-based decoders are more powerful in learning vocabulary from training data. Consequently, it brings less change in $\mathcal{V}\mathcal{A}$ and $\mathcal{V}\mathcal{G}$ to add more context modules to attention-based PRED layers. Besides, context modules, which perform as contextual information extractor, in fact, facilitates visual observation of attention-based and segmentation-based decoders.
+
+As for CTC-family models, the situation is different. PPM and BLSTM significantly improve their $\mathcal{V}\mathcal{A}$ and impair the $\mathcal{V}\mathcal{G}$ , as the CTC decoder itself lacks of proper context modeling. The performance change in the three metrics brought by context modules on CTC-family models is shown in Fig. 8a.
+
+In summary, it is effective to strengthen the vocabulary learning of models with proper context modules: BLSTM for attention-based, PPM for CTC and segmentation-based decoder. After all, it is a trade-off between $\mathcal{V}\mathcal{A}$ and $\mathcal{V}\mathcal{G}$ .
+
+
+(a) CTC PRED
+Figure 8: Comparison of CNTX modules.
+
+
+(b) Attention-based PRED
+
+# 3.4. Combination Recommendation
+
+Based on Tab. 5 and the previous analyses, we recommend two combinations for different situations, depending on whether the vocabulary of target images are given.
+
+Model ③, attention-based with BLSTM, achieves the best $\mathcal{V}\mathcal{A}$ benefiting from the powerful CNTX module and PRED layer. This merit of model ③ in vocabulary learning also leads to the best $\mathcal{G}\mathcal{A}$ , corresponding to the performance on conventional benchmarks. It is evidenced by the high score in $\mathcal{V}\mathcal{A}$ and $\mathcal{G}\mathcal{A}$ that ③ can perform well in applications where the vocabulary of test images are mostly a restricted subset of training data. Accordingly, model ③, similar to [40] in network design, is our first recommended combination for strong vocabulary learning ability.
+
+As for many applications in the industry, algorithms trained with data in limited vocabulary are supposed to generalize well to more general words. Model ⑦ maintains good vocabulary generalization ability as it gets the best $\mathcal{V}\mathcal{G}$ . Therefore, we recommend the combination ⑦, which is a CA-FCN-like [23] structure, for scenarios where the generalization of vocabulary is concerned.
+
+# 4. Remedy by Mutual Learning
+
+Previous sections demonstrate the trade-off between $\mathcal{V}\mathcal{A}$ and $\mathcal{V}\mathcal{G}$ and the diverse advantages of models. In this section, we propose a simple yet effective training strategy for combining advantages of models in different prediction layers, i.e., attention-based and segmentation-based decoders.
+
+The idea is basically inspired by knowledge distillation [10] and deep mutual learning [48]. Similar to knowledge distillation, mutual learning of two models is a training strategy where models learn collaboratively. Knowledge distillation strategy transfers knowledge from a pre-trained powerful teacher network to student networks, while our approach optimizes two models simultaneously from scratch.
+
+We choose the ensemble of the segmentation-based decoder and attention-based decoder as base models due to their advantages revealed in Fig. 6a. We suppose the generalization of segmentation-based decoders supervises attention-based decoders to learn to alleviate vocabulary reliance, and the accurate attention of attention-based decoders improves segmentation-based decoders in return.
+
+# 4.1. Optimization
+
+
+Figure 9: The mutual learning of attention-based decoder(top) and segmentation-based decoder(bottom). The KL divergence of logits are computed as auxiliary supervision, which makes the models learn collaboratively.
+
+Let $\Theta_{1}$ and $\Theta_{2}$ be the network applying attention-based PRED layer and segmentation-based PRED layer, respectively. In addition to the original loss of the network $L_{\Theta_1}$ and $L_{\Theta_2}$ , the Kullback Leibler (KL) Divergence is computed as an auxiliary loss. Then the ultimate loss for $\Theta_{1}$ and $\Theta_{2}$ are:
+
+$$
+L _ {1} = \sum_ {\substack {i \\ v}} ^ {Y} D _ {K L} \left(p _ {2} ^ {i} \| p _ {1} ^ {i}\right) + L _ {\Theta_ {1}} \tag{4}
+$$
+
+$$
+L _ {2} = \sum_ {i} ^ {Y} D _ {K L} (p _ {1} ^ {i} \| p _ {2} ^ {i}) + L _ {\Theta_ {2}}
+$$
+
+where $p_1, p_2$ are the sequence of logits produced by $\Theta_1$ and $\Theta_2$ , respectively. $D_{KL}$ is the KL Divergence and $Y$ is the sequential label. Note that for segmentation-based decoders, the logits are "voted" scores [23] inside the shrunken region of characters.
+
+From the Eq. 4, we can optimize the networks mutually supervised. The optimization is described in Alg. 1.
+
+Input : Training data $X$ and label $Y$
+
+Initialize: $\Theta_{1}$ and $\Theta_{2}$ separately.
+
+while not converged do
+
+$p_1\gets$ Forward $(\Theta_{1},X)$ $p_2\gets$ Forward $(\Theta_{2},X)$ Compute $L_{1}$ from Eq.4; Backward $(\Theta_{1},L_{1})$ . $p_1\gets$ Forward $(\Theta_{1},X)$ $p_2\gets$ Forward $(\Theta_{2},X)$ Compute $L_{2}$ from Eq.4; Backward $(\Theta_{2},L_{2})$
+
+end
+
+Algorithm 1: Optimization of mutual learning.
+
+# 4.2. Experimental Validation
+
+We evaluate the mutual learning strategy using the proposed evaluation framework and exhibit the raw accuracy and performance on our metrics in Tab. 3 and Tab. 6, respectively. Experimental results demonstrate the significant
+
+Table 6: Performance comparison of mutual learning strategy on our metrics. "Mut." indicates using mutual learning or not. The raw accuracy is shown in Tab. 3.
+
+| No. | PRED | Mut. | vA | vG | oA | fCM |
| ① | Atten. | x | 83.2 | 77.1 | 69.6 | 76.9 |
| ⑨ | Atten. | ✓ | 85.8 | 93.6 | 71.5 | 82.6 |
| ⑦ | Seg. | x | 75.8 | 97.3 | 69.9 | 80.8 |
| ⑩ | Seg. | ✓ | 82.3 | 96.0 | 70.7 | 81.7 |
+
+improvement of base models brought by the mutual learning strategy.
+
+These two models united by the mutual learning strategy maintains diverse properties and distinguishable advantage. The joint training procedure combines their inclination to visual features and vocabularies by harmonizing their estimation with the KL divergence. As evidence indicates, the $\mathcal{O}\mathcal{A}$ and $\mathcal{V}\mathcal{A}$ of both models are improved, which verifies the effectiveness of the mutual learning strategy.
+
+Moreover, the vocabulary reliance of attention-based decoder is neutralized by the segmentation-based decoder. In the training of attention-based decoder, the prediction of the segmentation-based model, which relies more on visual features, acts as an extra visual regularization. In addition to minimizing $L_{\Theta_1}$ , $\Theta_1$ is driven to fit the observation probability of $\Theta_2$ . Quantitatively, the $\mathcal{V}\mathcal{S}$ of $\Theta_1$ is boosted from 77.1% to 93.6%. In raw accuracy, the performance gap between images with words in and out of the vocabulary on LS data is almost halved (32.7% to 16.9%).
+
+The qualitative comparison of the proposed mutual learning strategy is shown in Fig. 6b. Notable improvement on benchmarks demonstrates the effectiveness of the proposed mutual learning strategy, thus validating it reasonable to integrate the advantages of different PRED layers.
+
+# 5. Conclusion
+
+In this paper, we investigate an important but long-neglected problem: vocabulary reliance in scene text recognition methods. A comprehensive framework is built for comparing and analyzing individual text recognition modules and their combinations. Based on this framework, a series of key observations and findings have been acquired, as well as valuable recommendations, which could be conducive to the future research of scene text recognition. Moreover, we have analyzed current contextual and prediction modules and proposed a mutual learning strategy for enhancing their vocabulary learning ability or generalization ability to words out of vocabulary.
+
+# Acknowledgement
+
+This research was supported by National Key RD Program of China (No. 2017YFA0700800). The authors would like to thank Minghui Liao for helpful discussions.
+
+# References
+
+[1] Jeonghun Baek, Geewook Kim, Junyeop Lee, Sungrae Park, Dongyoon Han, Sangdoo Yun, Seong Joon Oh, and Hwalsuk Lee. What is wrong with scene text recognition model comparisons? dataset and model analysis. 2019 IEEE International Conference on Computer Vision, 2019. 2, 3
+[2] Z. Cheng, F. Bai, Y. Xu, G. Zheng, S. Pu, and S. Zhou. Focusing attention: Towards accurate text recognition in natural images. In ICCV 2017, pages 5086-5094, Oct 2017. 1, 2, 3
+[3] Zhanzhan Cheng, Yangliu Xu, Fan Bai, Yi Niu, Shiliang Pu, and Shuigeng Zhou. AON: towards arbitrarily-oriented text recognition. In CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 5571-5579, 2018. 3
+[4] Yunze Gao, Yingying Chen, Jinqiao Wang, Hanqing Lu, 1National Lab of Pattern Recognition, Institute of Automation, Chinese Academy of Sciences, Beijing, and China. Reading scene text with attention convolutional sequence modeling. 1709. 3
+[5] Yunze Gao, Yingying Chen, Jinqiao Wang, Ming Tang, and Hanqing Lu. Reading scene text with fully convolutional sequence modeling. Neurocomputing, 339:161-170, 2019. 3
+[6] Alex Graves, Santiago Fernández, Faustino Gomez, and Jürgen 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, Pittsburgh, Pennsylvania, USA, 2006. IMLS. 3
+[7] Ankush Gupta, Andrea Vedaldi, and Andrew Zisserman. Synthetic data for text localisation in natural images. In CVPR, pages 2315-2324, 2016. 1, 2
+[8] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In PAMI, pages 770-778, 2016. 1
+[9] Pan He, Weilin Huang, Yu Qiao, Chen Change Loy, and Xiaou Tang. Reading scene text in deep convolutional sequences. In Proceedings of the Thirtieth AAAI Conference on Artificial Intelligence, February 12-17, 2016, Phoenix, Arizona, USA., pages 3501-3508, 2016. 3
+[10] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. 7
+[11] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735-1780, 1997. 3
+[12] Wenyang Hu, Xiaocong Cai, Jun Hou, Shuai Yi, and Zhiping Lin. Gtc: Guided training of ctc towards efficient and accurate scene text recognition. arXiv preprint arXiv:2002.01276, 2020. 1
+[13] Max Jaderberg, Karen Simonyan, Andrea Vedaldi, and Andrew Zisserman. Synthetic data and artificial neural networks for natural scene text recognition. NIPS Deep Learning Workshop, 2014. 1, 2
+[14] Dimosthenis Karatzas, Lluis Gomez-Bigorda, Anguelos Nicolaou, Suman Ghosh, Andrew Bagdanov, Masakazu Iwamura, Jiri Matas, Lukas Neumann, Vijay Ramaseshan Chandrasekhar, Shijian Lu, et al. Icdar 2015 competition on ro
+
+bust reading. In 2015 13th ICDAR, pages 1156-1160. IEEE, 2015. 2
+[15] D. Karatzas, F. Shafait, S. Uchida, M. Iwamura, L. G. i. Bigorda, S. R. Mestre, J. Mas, D. F. Mota, J. A. Almazán, and L. P. de las Heras. Icdar 2013 robust reading competition. In 2013 12th ICDAR, pages 1484–1493, Aug 2013. 2
+[16] Tom Mitchell Ken Lang. Newsgroup 20 dataset. 1999. 2
+[17] Vijeta Khare, Palaiahnakote Shivakumara, Chee Seng Chan, Tong Lu, Liang Kim Meng, Hon Hock Woon, and Michael Blumenstein. A novel character segmentation-reconstruction approach for license plate recognition. Expert Systems with Applications, 131:219-239, 2019. 1
+[18] Praveen Krishnan, Kartik Dutta, and CV Jawahar. Word spotting and recognition using deep embedding. In 2018 13th IAPR International Workshop on Document Analysis Systems (DAS), pages 1-6. IEEE, 2018. 4
+[19] Zhengchao Lei, Sanyuan Zhao, Hongmei Song, and Jianbing Shen. Scene text recognition using residual convolutional recurrent neural network. Machine Vision and Applications, 29(5):861-871, 2018. 4
+[20] Hui Li, Peng Wang, and Chunhua Shen. Toward end-to-end car license plate detection and recognition with deep neural networks. IEEE Transactions on Intelligent Transportation Systems, 20(3):1126-1136, 2018. 3
+[21] Minghui Liao, Pengyuan Lyu, Minghang He, Cong Yao, Wenhao Wu, and Xiang Bai. Mask textspotter: An end-to-end trainable neural network for spotting text with arbitrary shapes. IEEE transactions on pattern analysis and machine intelligence, 2019. 1
+[22] Minghui Liao, Zhaoyi Wan, Cong Yao, Kai Chen, and Xiang Bai. Real-time scene text detection with differentiable binarization. ArXiv, abs/1911.08947, 2019. 1
+[23] Minghui Liao, Jian Zhang, Zhaoyi Wan, Fengming Xie, Jia-jun Liang, Pengyuan Lyu, Cong Yao, and Xiang Bai. Scene text recognition from two-dimensional perspective. In AAAI, 2019. 1, 2, 3, 7, 8
+[24] Shangbang Long, Xin He, and Cong Yao. Scene text detection and recognition: The deep learning era. arXiv preprint arXiv:1811.04256, 2018. 1
+[25] Shangbang Long, Jiaqiang Ruan, Wenjie Zhang, Xin He, Wenhao Wu, and Cong Yao. Textsnake: A flexible representation for detecting text of arbitrary shapes. In ECCV, 2018. 1
+[26] Pengyuan Lyu, Minghui Liao, Cong Yao, Wenhao Wu, and Xiang Bai. Mask textspotter: An end-to-end trainable neural network for spotting text with arbitrary shapes. In ECCV, pages 67-83, 2018. 3
+[27] Anand Mishra, Karteek Alahari, and CV Jawahar. Scene text recognition using higher order language priors. In BMVC-British Machine Vision Conference. BMVA, 2012. 1, 2
+[28] T. Q. Phan, P. Shivakumara, S. Tian, and C. L. Tan. Recognizing text with perspective distortion in natural scenes. In 2013 IEEE International Conference on Computer Vision, pages 569-576, Dec 2013. 2
+[29] Xiaohang Ren, Kai Chen, and Jun Sun. A cnn based scene Chinese text recognition algorithm with synthetic data engine. arXiv preprint arXiv:1604.01891, 2016. 1
+
+[30] Anhar Risnumawan, Palaiahankote Shivakumara, Chee Seng Chan, and Chew Lim Tan. A robust arbitrary text detection system for natural scene images. Expert Systems with Applications, 41(18):8027-8048, 2014. 2
+[31] Baoguang Shi, Xiang Bai, and Cong Yao. An end-to-end trainable neural network for image-based sequence recognition and its application to scene text recognition. PAMI, 39(11):2298-2304, 2017. 1, 2
+[32] Baoguang Shi, Xinggang Wang, Pengyuan Lyu, Cong Yao, and Xiang Bai. Robust scene text recognition with automatic rectification. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4168-4176, 2016. 1
+[33] Baoguang Shi, Mingkun Yang, Xinggang Wang, Pengyuan Lyu, Cong Yao, and Xiang Bai. Aster: An and attentional scene and text recognizer and with flexible and rectification. In PAMI, pages 1-1. IEEE, 2018. 1, 2, 3, 4
+[34] Bolan Su and Shijian Lu. Accurate scene text recognition based on recurrent neural network. In Daniel Cremers, Ian Reid, Hideo Saito, and Ming-Hsuan Yang, editors, Computer Vision - ACCV 2014, pages 35-48, Cham, 2015. Springer International Publishing. 4
+[35] Shu Tian, Xu-Cheng Yin, Ya Su, and Hong-Wei Hao. A unified framework for tracking based text detection and recognition from web videos. IEEE transactions on pattern analysis and machine intelligence, 40(3):542-554, 2017. 1
+[36] Zhaoyi Wan, Mingling He, Haoran Chen, Xiang Bai, and Cong Yao. Textscanner: Reading characters in order for robust scene text recognition. ArXiv, abs/1912.12422, 2019. 1
+[37] Kai Wang, Boris Babenko, and Serge Belongie. End-to-end scene text recognition. In ICCV, ICCV '11, pages 1457-1464, Washington, DC, USA, Nov 2011. IEEE Computer Society. 2
+[38] Zecheng Xie, Zenghui Sun, Lianwen Jin, Ziyong Feng, and Shuye Zhang. Fully convolutional recurrent network for handwritten Chinese text recognition. In 2016 23rd International Conference on Pattern Recognition (ICPR), pages 4011-4016. IEEE, 2016. 4
+[39] Mingkun Yang, Yushuo Guan, Minghui Liao, Xin He, Kaigui Bian, Song Bai, Cong Yao, and Xiang Bai. Symmetry-constrained rectification network for scene text recognition. 2019 IEEE/CVF International Conference on Computer Vision (ICCV), pages 9146-9155, 2019. 1
+[40] MingKun Yang, Yushuo Guan, Minghui Liao, Xin He, Kaigui Bian, Song Bai, Cong Yao, and Xiang Bai. Symmetry-constrained rectification network for scene text recognition. 2019 IEEE International Conference on Computer Vision, 2019. 3, 4, 7
+[41] Xiao Yang, Dafang He, Zihan Zhou, Daniel Kifer, and C. Lee Giles. Learning to read irregular text with attention mechanisms. In Proceedings of the 26th International Joint Conference on Artificial Intelligence, IJCAI'17, pages 3280-3286. AAAI Press, 2017. 3
+[42] Cong Yao, Xiang Bai, and Wenyu Liu. A unified framework for multi-oriented text detection and recognition. 2014. 1
+[43] Cong Yao, Xiang Bai, Wenyu Liu, Yi Ma, and Zhuowen Tu. Detecting texts of arbitrary orientations in natural im
+
+ages. 2012 IEEE Conference on Computer Vision and Pattern Recognition, pages 1083-1090, 2012. 1
+[44] Cong Yao, Xiang Bai, Baoguang Shi, and Wenyu Liu. Strokes: A learned multi-scale representation for scene text recognition. 2014 IEEE Conference on Computer Vision and Pattern Recognition, pages 4042-4049, 2014. 1
+[45] Qixiang Ye and David Doermann. Text detection and recognition in imagery: A survey. IEEE transactions on pattern analysis and machine intelligence, 37(7):1480-1500, 2014. 1
+[46] Fangneng Zhan, Shijian Lu, and Chuhui Xue. Verisimilar image synthesis for accurate detection and recognition of texts in scenes. In Proceedings of the European Conference on Computer Vision (ECCV), pages 249-266, 2018. 1
+[47] Yaping Zhang, Shuai Nie, Wenju Liu, Xing Xu, Dongxiang Zhang, and Heng Tao Shen. Sequence-to-sequence domain adaptation network for robust text image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2740-2749, 2019. 4
+[48] Ying Zhang, Tao Xiang, Timothy M Hospedales, and Huchuan Lu. Deep mutual learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4320-4328, 2018. 7
+[49] H. Zhao, J. Shi, X. Qi, X. Wang, and J. Jia. Pyramid scene parsing network. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 6230-6239, Honolulu, HI, USA, July 2017. 4
+[50] Xinyu Zhou, Cong Yao, He Wen, Yuzhi Wang, Shuchang Zhou, Weiran He, and Jiajun Liang. East: An efficient and accurate scene text detector. 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2642-2651, 2017. 1
\ No newline at end of file
diff --git a/onvocabularyrelianceinscenetextrecognition/images.zip b/onvocabularyrelianceinscenetextrecognition/images.zip
new file mode 100644
index 0000000000000000000000000000000000000000..8935d6f8a42583110ea1ef538d8410a33ae16bbb
--- /dev/null
+++ b/onvocabularyrelianceinscenetextrecognition/images.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e68cc13ed204845c2b0bbc5114a63a9eaedbf32cec7cff15db50f19795ec5730
+size 616221
diff --git a/onvocabularyrelianceinscenetextrecognition/layout.json b/onvocabularyrelianceinscenetextrecognition/layout.json
new file mode 100644
index 0000000000000000000000000000000000000000..51161b192bf402075e61e62d53de9957fc53f1c8
--- /dev/null
+++ b/onvocabularyrelianceinscenetextrecognition/layout.json
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d54adc6a91a70e0a66f4ebbb9ada2c0bb5d583666d9c6537bbbf3a24ce02764b
+size 447150